Skip to content

Commit 722a645

Browse files
feat: add hypeevm bridging config details
Ticket: WIN-8770
1 parent 0931a9a commit 722a645

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ interface EnvironmentTemplate {
9494
baseUrl: string;
9595
apiToken?: string;
9696
rpcUrl?: string;
97+
tokenId?: number;
98+
systemAddr?: string;
9799
};
98100
};
99101
// The key here is coinFamily and it will be same for both mainnet and testnet (eg: 'cronos')
@@ -224,6 +226,9 @@ const mainnetBase: EnvironmentTemplate = {
224226
},
225227
hypeevm: {
226228
baseUrl: 'https://api.etherscan.io/v2',
229+
// These are used for Bridging assets on hype chain.
230+
tokenId: 150,
231+
systemAddr: '0x2222222222222222222222222222222222222222',
227232
},
228233
og: {
229234
baseUrl: 'https://chainscan.0g.ai/open',
@@ -406,6 +411,9 @@ const testnetBase: EnvironmentTemplate = {
406411
},
407412
hypeevm: {
408413
baseUrl: 'https://rpc.hyperliquid-testnet.xyz/evm', // Not Available
414+
// These are used for Bridging assets on hype chain.
415+
tokenId: 1105,
416+
systemAddr: '0x2222222222222222222222222222222222222222',
409417
},
410418
og: {
411419
baseUrl: 'https://chainscan-test.0g.ai/open',

modules/sdk-core/test/unit/bitgo/environment.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,21 @@ describe('zkSync Era Environment Configuration', function () {
1616
testnetEnv.evm?.zksyncera.baseUrl.should.equal('https://api.etherscan.io/v2');
1717
});
1818
});
19+
20+
describe('HypeEvm Bridging Environment Configuration', function () {
21+
it('should have bridging config for mainnet Hypeevm', function () {
22+
const mainnetEnv = Environments.prod;
23+
should.exist(mainnetEnv.evm);
24+
should.exist(mainnetEnv.evm?.hypeevm);
25+
mainnetEnv.evm?.hypeevm.tokenId?.should.equal(150);
26+
mainnetEnv.evm?.hypeevm.systemAddr?.should.equal('0x2222222222222222222222222222222222222222');
27+
});
28+
29+
it('should have bridging config for testnet Hypeevm', function () {
30+
const testnetEnv = Environments.test;
31+
should.exist(testnetEnv.evm);
32+
should.exist(testnetEnv.evm?.hypeevm);
33+
testnetEnv.evm?.hypeevm.tokenId?.should.equal(1105);
34+
testnetEnv.evm?.hypeevm.systemAddr?.should.equal('0x2222222222222222222222222222222222222222');
35+
});
36+
});

0 commit comments

Comments
 (0)