-
Notifications
You must be signed in to change notification settings - Fork 302
Expand file tree
/
Copy pathenvironment.ts
More file actions
36 lines (32 loc) · 1.44 KB
/
environment.ts
File metadata and controls
36 lines (32 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import should from 'should';
import { Environments } from '../../../src';
describe('zkSync Era Environment Configuration', function () {
it('should have evm config for mainnet zksyncera', function () {
const mainnetEnv = Environments.prod;
should.exist(mainnetEnv.evm);
should.exist(mainnetEnv.evm?.zksyncera);
mainnetEnv.evm?.zksyncera.baseUrl.should.equal('https://api.etherscan.io/v2');
});
it('should have evm config for testnet zksyncera', function () {
const testnetEnv = Environments.test;
should.exist(testnetEnv.evm);
should.exist(testnetEnv.evm?.zksyncera);
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');
});
});