-
Notifications
You must be signed in to change notification settings - Fork 5
/
chains.config.js
70 lines (65 loc) · 2.49 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
// chain configs in ocean.js ConfigHelperConfig format
// see: https://github.com/oceanprotocol/ocean.js/blob/e07a7cb6ecea12b39ed96f994b4abe37806799a1/src/utils/ConfigHelper.ts#L8
const chains = [
{
chainId: 32456,
isDefault: true,
isCustom: true,
network: 'pontusx-devnet',
oceanTokenSymbol: 'OCEAN',
oceanTokenAddress: '0xdF171F74a8d3f4e2A789A566Dce9Fa4945196112',
nftFactoryAddress: '0xFdC4a5DEaCDfc6D82F66e894539461a269900E13',
fixedRateExchangeAddress: '0x8372715D834d286c9aECE1AcD51Da5755B32D505',
dispenserAddress: '0x5461b629E01f72E0A468931A36e039Eea394f9eA',
opfCommunityFeeCollector: '0x1f84fB438292269219f9396D57431eA9257C23d4',
startBlock: 57428,
transactionBlockTimeout: 50,
transactionConfirmationBlocks: 1,
transactionPollingTimeout: 750,
gasFeeMultiplier: 1.1,
providerUri: 'https://provider.dev.pontus-x.eu',
providerAddress: '0x68C24FA5b2319C81b34f248d1f928601D2E5246B',
metadataCacheUri: 'https://aquarius.pontus-x.eu',
nodeUri: 'https://rpc.dev.pontus-x.eu',
subgraphUri: 'https://subgraph.dev.pontus-x.eu',
explorerUri: 'https://explorer.pontus-x.eu/devnet/pontusx'
},
{
chainId: 32457,
isDefault: true,
isCustom: true,
network: 'pontusx-testnet',
oceanTokenSymbol: 'OCEAN',
oceanTokenAddress: '0x5B190F9E2E721f8c811E4d584383E3d57b865C69',
nftFactoryAddress: '0x2C4d542ff791890D9290Eec89C9348A4891A6Fd2',
fixedRateExchangeAddress: '0xcE0F39abB6DA2aE4d072DA78FA0A711cBB62764E',
dispenserAddress: '0xaB5B68F88Bc881CAA427007559E9bbF8818026dE',
opfCommunityFeeCollector: '0xACC8d1B2a0007951fb4ed622ACB1C4fcCAbe778D',
startBlock: 82191,
transactionBlockTimeout: 50,
transactionConfirmationBlocks: 1,
transactionPollingTimeout: 750,
gasFeeMultiplier: 1.1,
providerUri: 'https://provider.test.pontus-x.eu',
providerAddress: '0x9546d39CE3E48BC942f0be4AA9652cBe0Aff3592',
metadataCacheUri: 'https://aquarius.pontus-x.eu',
nodeUri: 'https://rpc.test.pontus-x.eu',
subgraphUri: 'https://subgraph.test.pontus-x.eu',
explorerUri: 'https://explorer.pontus-x.eu/testnet/pontusx'
}
]
const getDefaultChainIds = () => {
return chains.filter((chain) => chain.isDefault).map((c) => c.chainId)
}
const getSupportedChainIds = () => {
return chains.map((c) => c.chainId)
}
const getCustomChainIds = () => {
return chains.filter((c) => c.isCustom).map((c) => c.chainId)
}
module.exports = {
chains,
getDefaultChainIds,
getSupportedChainIds,
getCustomChainIds
}