diff --git a/modules/sdk-core/src/bitgo/environments.ts b/modules/sdk-core/src/bitgo/environments.ts index ff8168b8a4..f0d73dc7e2 100644 --- a/modules/sdk-core/src/bitgo/environments.ts +++ b/modules/sdk-core/src/bitgo/environments.ts @@ -94,6 +94,8 @@ interface EnvironmentTemplate { baseUrl: string; apiToken?: string; rpcUrl?: string; + tokenId?: number; + systemAddr?: string; }; }; // The key here is coinFamily and it will be same for both mainnet and testnet (eg: 'cronos') @@ -224,6 +226,9 @@ const mainnetBase: EnvironmentTemplate = { }, hypeevm: { baseUrl: 'https://api.etherscan.io/v2', + // These are used for Bridging assets on hype chain. + tokenId: 150, + systemAddr: '0x2222222222222222222222222222222222222222', }, og: { baseUrl: 'https://chainscan.0g.ai/open', @@ -406,6 +411,9 @@ const testnetBase: EnvironmentTemplate = { }, hypeevm: { baseUrl: 'https://rpc.hyperliquid-testnet.xyz/evm', // Not Available + // These are used for Bridging assets on hype chain. + tokenId: 1105, + systemAddr: '0x2222222222222222222222222222222222222222', }, og: { baseUrl: 'https://chainscan-test.0g.ai/open', diff --git a/modules/sdk-core/test/unit/bitgo/environment.ts b/modules/sdk-core/test/unit/bitgo/environment.ts index a2ea98910c..ce791e1ddb 100644 --- a/modules/sdk-core/test/unit/bitgo/environment.ts +++ b/modules/sdk-core/test/unit/bitgo/environment.ts @@ -16,3 +16,21 @@ describe('zkSync Era Environment Configuration', function () { testnetEnv.evm?.zksyncera.baseUrl.should.equal('https://api.etherscan.io/v2'); }); }); + +describe('HypeEvm Bridging Environment Configuration', function () { + it('should have bridging config for mainnet Hypeevm', function () { + const mainnetEnv = Environments.prod; + should.exist(mainnetEnv.evm); + should.exist(mainnetEnv.evm?.hypeevm); + mainnetEnv.evm?.hypeevm.tokenId?.should.equal(150); + mainnetEnv.evm?.hypeevm.systemAddr?.should.equal('0x2222222222222222222222222222222222222222'); + }); + + it('should have bridging config for testnet Hypeevm', function () { + const testnetEnv = Environments.test; + should.exist(testnetEnv.evm); + should.exist(testnetEnv.evm?.hypeevm); + testnetEnv.evm?.hypeevm.tokenId?.should.equal(1105); + testnetEnv.evm?.hypeevm.systemAddr?.should.equal('0x2222222222222222222222222222222222222222'); + }); +});