2018-07-11 08:50:14 -07:00
|
|
|
const constants = {}
|
2018-08-27 11:13:34 -07:00
|
|
|
constants.organization = 'poanetwork'
|
2018-07-11 08:50:14 -07:00
|
|
|
constants.repoName = 'poa-chain-spec'
|
|
|
|
constants.addressesSourceFile = 'contracts.json'
|
2018-02-01 14:48:48 -08:00
|
|
|
constants.ABIsSources = {
|
2018-07-11 08:50:14 -07:00
|
|
|
KeysManager: 'KeysManager.abi.json',
|
|
|
|
PoaNetworkConsensus: 'PoaNetworkConsensus.abi.json',
|
2018-08-27 05:22:10 -07:00
|
|
|
ValidatorMetadata: 'ValidatorMetadata.abi.json',
|
|
|
|
ProofOfPhysicalAddress: 'ProofOfPhysicalAddress.abi.json'
|
2018-07-11 08:50:14 -07:00
|
|
|
}
|
|
|
|
constants.userDeniedTransactionPattern = 'User denied transaction'
|
2019-01-07 12:45:51 -08:00
|
|
|
constants.rootPath = '/poa-dapps-validators'
|
2019-01-17 05:41:04 -08:00
|
|
|
constants.branches = {
|
|
|
|
DAI: 'dai',
|
|
|
|
CORE: 'core',
|
2019-04-26 01:16:48 -07:00
|
|
|
SOKOL: 'sokol',
|
|
|
|
KOVAN: 'kovan'
|
2019-01-17 05:41:04 -08:00
|
|
|
}
|
2019-01-07 12:45:51 -08:00
|
|
|
|
|
|
|
constants.navigationData = [
|
|
|
|
{
|
|
|
|
icon: 'all',
|
|
|
|
title: 'All',
|
|
|
|
url: constants.rootPath
|
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: 'set',
|
|
|
|
title: 'Set Metadata',
|
|
|
|
url: `${constants.rootPath}/set`
|
|
|
|
},
|
|
|
|
{
|
|
|
|
icon: 'pending',
|
|
|
|
title: 'Pending Changes',
|
|
|
|
url: `${constants.rootPath}/pending-changes`
|
|
|
|
}
|
|
|
|
]
|
2018-02-01 14:48:48 -08:00
|
|
|
|
2018-10-10 08:55:10 -07:00
|
|
|
constants.NETWORKS = {
|
2019-04-26 01:16:48 -07:00
|
|
|
'42': {
|
|
|
|
NAME: 'Kovan',
|
|
|
|
RPC: 'https://kovan.infura.io',
|
|
|
|
BRANCH: constants.branches.KOVAN,
|
|
|
|
TESTNET: true
|
|
|
|
},
|
2018-10-10 08:55:10 -07:00
|
|
|
'77': {
|
|
|
|
NAME: 'Sokol',
|
|
|
|
RPC: 'https://sokol.poa.network',
|
2019-01-17 05:41:04 -08:00
|
|
|
BRANCH: constants.branches.SOKOL,
|
2018-10-10 08:55:10 -07:00
|
|
|
TESTNET: true
|
|
|
|
},
|
|
|
|
'99': {
|
|
|
|
NAME: 'Core',
|
|
|
|
RPC: 'https://core.poa.network',
|
2019-01-17 05:41:04 -08:00
|
|
|
BRANCH: constants.branches.CORE,
|
2018-10-10 08:55:10 -07:00
|
|
|
TESTNET: false
|
|
|
|
},
|
|
|
|
'100': {
|
|
|
|
NAME: 'Dai',
|
|
|
|
RPC: 'https://dai.poa.network',
|
2019-01-17 05:41:04 -08:00
|
|
|
BRANCH: constants.branches.DAI,
|
2018-10-10 08:55:10 -07:00
|
|
|
TESTNET: false
|
|
|
|
}
|
|
|
|
}
|
2018-10-02 05:05:40 -07:00
|
|
|
|
2018-02-01 14:48:48 -08:00
|
|
|
module.exports = {
|
|
|
|
constants
|
2018-07-11 08:50:14 -07:00
|
|
|
}
|