poa-dapps-voting/src/utils/constants.js

82 lines
1.9 KiB
JavaScript

let constants = {}
constants.organization = 'poanetwork'
constants.repoName = 'poa-chain-spec'
constants.addressesSourceFile = 'contracts.json'
constants.ABIsSources = {
KeysManager: 'KeysManager.abi.json',
PoaNetworkConsensus: 'PoaNetworkConsensus.abi.json',
BallotStorage: 'BallotsStorage.abi.json',
EmissionFunds: 'EmissionFunds.abi.json',
ProxyStorage: 'ProxyStorage.abi.json',
ValidatorMetadata: 'ValidatorMetadata.abi.json',
VotingToChangeKeys: 'VotingToChangeKeys.abi.json',
VotingToChangeMinThreshold: 'VotingToChangeMinThreshold.abi.json',
VotingToChangeProxyAddress: 'VotingToChangeProxyAddress.abi.json',
VotingToManageEmissionFunds: 'VotingToManageEmissionFunds.abi.json'
}
constants.NEW_MINING_KEY = {
label: 'New Mining Key',
lastNameAndKey: '',
fullName: '',
value: '0x0000000000000000000000000000000000000000'
}
constants.minBallotDurationInDays = 2
constants.startTimeOffsetInMinutes = 5
constants.endTimeDefaultInMinutes = 2890
constants.getTransactionReceiptInterval = 5000
constants.rootPath = '/poa-dapps-voting'
constants.navigationData = [
{
icon: 'all',
title: 'All',
url: `${constants.rootPath}`
},
{
icon: 'active',
title: 'Active',
url: `${constants.rootPath}/active`
},
{
icon: 'finalize',
title: 'To Finalize',
url: `${constants.rootPath}/tofinalize`
},
{
disabled: true,
title: 'New Ballot',
url: `${constants.rootPath}/new`
}
]
constants.SOKOL = 'sokol'
constants.CORE = 'core'
constants.DAI = 'dai'
constants.NETWORKS = {
'77': {
NAME: 'Sokol',
RPC: 'https://sokol.poa.network',
BRANCH: constants.SOKOL,
TESTNET: true
},
'99': {
NAME: 'Core',
RPC: 'https://core.poa.network',
BRANCH: constants.CORE,
TESTNET: false
},
'100': {
NAME: 'Dai',
RPC: 'https://dai.poa.network',
BRANCH: constants.DAI,
TESTNET: false
}
}
module.exports = {
constants
}