diff --git a/.env.example b/.env.example index 0bfcfb0..7951733 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ AUTH0_AUDIENCE= AUTH0_ISSUER_URL= REDIS_HOST= REDIS_PORT= -TOPOS_SUBNET_ENDPOINT= +TOPOS_SUBNET_ENDPOINT_WS= SUBNET_REGISTRATOR_CONTRACT_ADDRESS= TOPOS_CORE_PROXY_CONTRACT_ADDRESS= TRACING_SERVICE_NAME= diff --git a/README.md b/README.md index 3b503ff..9bfed0c 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ AUTH0_AUDIENCE= AUTH0_ISSUER_URL= REDIS_HOST= REDIS_PORT= -TOPOS_SUBNET_ENDPOINT= +TOPOS_SUBNET_ENDPOINT_WS= SUBNET_REGISTRATOR_CONTRACT_ADDRESS= TOPOS_CORE_PROXY_CONTRACT_ADDRESS= ERC20_MESSAGING_CONTRACT_ADDRESS= diff --git a/src/execute/execute.processor.spec.ts b/src/execute/execute.processor.spec.ts index d394f90..1e638a8 100644 --- a/src/execute/execute.processor.spec.ts +++ b/src/execute/execute.processor.spec.ts @@ -13,7 +13,7 @@ const VALID_PRIVATE_KEY = '0xc6cbd7d76bc5baca530c875663711b947efa6a86a900a9e8645ce32e5821484e' const TOPOS_CORE_PROXY_CONTRACT_ADDRESS = '0x1D7b9f9b1FF6cf0A3BEB0F84fA6F8628E540E97F' -const TOPOS_SUBNET_ENDPOINT = 'ws://topos-subnet-endpoint/ws' +const TOPOS_SUBNET_ENDPOINT_WS = 'ws://topos-subnet-endpoint/ws' const validExecuteJob: Partial> = { data: { @@ -57,8 +57,8 @@ describe('ExecuteProcessor', () => { return VALID_PRIVATE_KEY case 'TOPOS_CORE_PROXY_CONTRACT_ADDRESS': return TOPOS_CORE_PROXY_CONTRACT_ADDRESS - case 'TOPOS_SUBNET_ENDPOINT': - return TOPOS_SUBNET_ENDPOINT + case 'TOPOS_SUBNET_ENDPOINT_WS': + return TOPOS_SUBNET_ENDPOINT_WS } }), } @@ -97,7 +97,7 @@ describe('ExecuteProcessor', () => { validExecuteJob as unknown as Job ) - expect(ethersProviderMock).toHaveBeenCalledWith(TOPOS_SUBNET_ENDPOINT) + expect(ethersProviderMock).toHaveBeenCalledWith(TOPOS_SUBNET_ENDPOINT_WS) expect(ethersProviderMock).toHaveBeenCalledWith(subnetMock.endpointWs) expect(ethersWalletMock).toHaveBeenCalledWith( VALID_PRIVATE_KEY, diff --git a/src/execute/execute.processor.ts b/src/execute/execute.processor.ts index 1095524..01b4d6e 100644 --- a/src/execute/execute.processor.ts +++ b/src/execute/execute.processor.ts @@ -136,7 +136,7 @@ export class ExecutionProcessorV1 { private async _getReceivingSubnetEndpointFromId(subnetId: string) { const toposSubnetEndpoint = this.configService.get( - 'TOPOS_SUBNET_ENDPOINT' + 'TOPOS_SUBNET_ENDPOINT_WS' ) const toposCoreContractAddress = this.configService.get( 'TOPOS_CORE_PROXY_CONTRACT_ADDRESS'