-
Notifications
You must be signed in to change notification settings - Fork 261
/
config.js
66 lines (64 loc) · 2.85 KB
/
config.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
const dotenv = require('dotenv');
const path = require('path');
const env = dotenv.config({
path: path.join(__dirname, '.env')
});
if (env.error) {
throw new Error("no env file found");
}
module.exports = {
rpc: {
pos: {
parent: process.env.GOERLI_ROOT_RPC,
child: process.env.MATIC_RPC || 'https://rpc-mumbai.matic.today',
},
zkEvm: {
parent: process.env.GOERLI_ROOT_RPC,
child: process.env.ZKEVM_RPC || 'https://rpc.public.zkevm-test.net',
},
},
pos: {
parent: {
erc20: '0x655f2166b0709cd575202630952d71e2bb0d61af',
erc721: '0x16F7EF3774c59264C46E5063b1111bCFd6e7A72f',
erc1155: '0x2e3Ef7931F2d0e4a7da3dea950FF3F19269d9063',
chainManagerAddress: '0xBbD7cBFA79faee899Eaf900F13C9065bF03B1A74', // Address of RootChainManager for POS Portal
},
child: {
erc721: '0xbD88C3A7c0e242156a46Fbdf87141Aa6D0c0c649',
erc20: '0xfe4F5145f6e09952a5ba9e956ED0C25e3Fa4c7F1',
weth: '0x714550C2C1Ea08688607D86ed8EeF4f5E4F22323',
erc1155: '0xA07e45A987F19E25176c877d98388878622623FA',
},
},
zkEvm: {
parent: {
bridgeAdapter: "0x5eB6485573C2Ea289554A044e1D34b41958c0842",
ether: '0x0000000000000000000000000000000000000000',
// erc20: '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6', // WETH
// erc20: '0x5C221E77624690fff6dd741493D735a17716c26B' // DAI
// erc20: '0x27b4861cf36453b9478cd5416426ca6fbd06f67a', // DAI TEMP
// erc20: '0xe7e7ad60b75614829be79a3014c5c6aeb006e079', // UNI TEMP
erc20: '0x4701Aa9471d7bfAc765D87dcb1Ea6BB23AD32733' // Polygon
},
child: {
bridgeAdapter: "0x6b0393fD45B1a95EfB1bcd93536DaB44417119C3",
ether: '0x0000000000000000000000000000000000000000',
// erc20: '0x270969e59d170fB576cBB5E254493e9bfB13684f', // WETH
// erc20: '0x08bd5b6d0237FaAED3C5E04fB131de2f843aC756', // DAI
erc20: '0x73DeceDCa3d3aD2fFdB7FD5afd819a11dbc297f5' // Polygon
},
},
SYNCER_URL: 'https://testnetv3-syncer.api.matic.network/api/v1', // Backend service which syncs the Matic sidechain state to a MySQL database which we use for faster querying. This comes in handy especially for constructing withdrawal proofs while exiting assets from Plasma.
WATCHER_URL: 'https://testnetv3-watcher.api.matic.network/api/v1', // Backend service which syncs the Matic Plasma contract events on Ethereum mainchain to a MySQL database which we use for faster querying. This comes in handy especially for listening to asset deposits on the Plasma contract.
user1: {
// '<paste your private key here>' - A sample private key prefix with `0x`
privateKey: process.env.USER1_PRIVATE_KEY,
//'<paste address belonging to private key here>', Your address
address: process.env.USER1_FROM
},
user2: {
address: process.env.USER2_FROM
},
proofApi: process.env.PROOF_API || 'https://proof-generator.polygon.technology/'
}