forked from deltaDAO/portal-sbb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchains.config.js
75 lines (70 loc) · 2.67 KB
/
chains.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
67
68
69
70
71
72
73
74
75
// chain configs in ocean.js ConfigHelperConfig format
// see: https://github.com/oceanprotocol/ocean.js/blob/e07a7cb6ecea12b39ed96f994b4abe37806799a1/src/utils/ConfigHelper.ts#L8
const GX_NETWORK_ID = 2021000
const GEN_X_NETWORK_ID = 100
const chains = [
{
chainId: GX_NETWORK_ID,
dispenserAddress: '0x4E6058dC00e90C0DCA47A5d0D3346F409939A5ab',
explorerUri: 'https://blockscout.gaiaxtestnet.oceanprotocol.com/',
factoryAddress: '0x2720d405ef7cDC8a2E2e5AeBC8883C99611d893C',
fixedRateExchangeAddress: '0x3c21a90599b5B7f37014cA5Bf30d3f1b73d7e391',
gasFeeMultiplier: 1,
isDefault: false,
metadataCacheUri: 'https://aquarius.delta-dao.com/',
metadataContractAddress: '0xCfDdA22C9837aE76E0faA845354f33C62E03653a',
name: 'Gaia-X',
network: 'gaiaxtestnet',
networkId: GX_NETWORK_ID,
nodeUri: 'https://rpc.gaiaxtestnet.oceanprotocol.com/',
oceanTokenAddress: '0x80E63f73cAc60c1662f27D2DFd2EA834acddBaa8',
oceanTokenSymbol: 'OCEAN',
poolFactoryAddress: '0xc37F8341Ac6e4a94538302bCd4d49Cf0852D30C0',
providerUri: 'https://provider.gaiax.delta-dao.com/',
startBlock: 177644,
subgraphUri: 'https://subgraph.gaiaxtestnet.oceanprotocol.com',
transactionBlockTimeout: 50,
transactionConfirmationBlocks: 1,
transactionPollingTimeout: 750
},
{
chainId: GEN_X_NETWORK_ID,
dispenserAddress: '0x2a39940D98A4f9D01Ff0738c8420F360435b6A59',
explorerUri: 'https://explorer.genx.minimal-gaia-x.eu/',
factoryAddress: '0x325c09E2093C56AbDc86c5ccD68c77952e8034Af',
fixedRateExchangeAddress: '0x69Df9594E6A30a5751D170093059E7adb3Bf5e92',
gasFeeMultiplier: 1,
isActive: true,
isDefault: true,
metadataCacheUri: 'https://aquarius.delta-dao.com/',
metadataContractAddress: '0xfA89407778041EF51B9e1aA16Ff85bDf908D17e6',
name: 'GEN-X',
network: 'genxtestnet',
networkId: GEN_X_NETWORK_ID,
nodeUri: 'https://rpc.genx.minimal-gaia-x.eu',
oceanTokenAddress: '0x0995527d3473b3A98C471f1ED8787ACD77fBF009',
oceanTokenSymbol: 'OCEAN',
providerUri: 'https://provider.genx.delta-dao.com',
startBlock: 1099,
subgraphUri: 'https://subgraph.genx.minimal-gaia-x.eu',
transactionBlockTimeout: 100,
transactionConfirmationBlocks: 1,
transactionPollingTimeout: 60000,
BFactory: '0x7da756d49DFECb750B5ABa51c04088f257c3f8B4'
}
]
const getDefaultChainIds = () => {
return chains
.filter((chain) => chain.isDefault && chain.isActive)
.map((c) => c.chainId)
}
const getSupportedChainIds = () => {
return chains.filter((chain) => chain.isActive).map((c) => c.chainId)
}
module.exports = {
chains,
getDefaultChainIds,
getSupportedChainIds,
GX_NETWORK_ID,
GEN_X_NETWORK_ID
}