Add POA.network
This commit is contained in:
parent
816ce3180f
commit
749cfe9514
|
@ -5,6 +5,7 @@ import Rinkeby from './rinkeby.json';
|
|||
import Ropsten from './ropsten.json';
|
||||
import RSK from './rsk.json';
|
||||
import UBQ from './ubq.json';
|
||||
import POA from './poa.json';
|
||||
|
||||
export default {
|
||||
ETC,
|
||||
|
@ -13,5 +14,6 @@ export default {
|
|||
Rinkeby,
|
||||
Ropsten,
|
||||
RSK,
|
||||
UBQ
|
||||
UBQ,
|
||||
POA
|
||||
};
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
[]
|
|
@ -43,6 +43,11 @@ export const ETH_SINGULAR: DPath = {
|
|||
value: "m/0'/0'/0'"
|
||||
};
|
||||
|
||||
export const POA_DEFAULT: DPath = {
|
||||
label: 'Default (POA)',
|
||||
value: "m/44'/60'/0'/0"
|
||||
};
|
||||
|
||||
export const DPaths: DPath[] = [
|
||||
ETH_DEFAULT,
|
||||
ETH_TREZOR,
|
||||
|
@ -51,7 +56,8 @@ export const DPaths: DPath[] = [
|
|||
ETC_TREZOR,
|
||||
ETH_TESTNET,
|
||||
EXP_DEFAULT,
|
||||
UBQ_DEFAULT
|
||||
UBQ_DEFAULT,
|
||||
POA_DEFAULT
|
||||
];
|
||||
|
||||
// PATHS TO BE INCLUDED REGARDLESS OF WALLET FORMAT
|
||||
|
|
|
@ -6,6 +6,7 @@ import Rinkeby from './rinkeby.json';
|
|||
import Ropsten from './ropsten.json';
|
||||
import RSK from './rsk.json';
|
||||
import UBQ from './ubq.json';
|
||||
import POA from './poa.json';
|
||||
|
||||
export default {
|
||||
ETC,
|
||||
|
@ -15,5 +16,6 @@ export default {
|
|||
Rinkeby,
|
||||
Ropsten,
|
||||
RSK,
|
||||
UBQ
|
||||
UBQ,
|
||||
POA
|
||||
};
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
[]
|
|
@ -13,7 +13,8 @@ import {
|
|||
ETC_TREZOR,
|
||||
ETH_TESTNET,
|
||||
EXP_DEFAULT,
|
||||
UBQ_DEFAULT
|
||||
UBQ_DEFAULT,
|
||||
POA_DEFAULT
|
||||
} from 'config/dpaths';
|
||||
import { ConfigAction } from 'actions/config';
|
||||
import { StaticNetworkIds, StaticNetworkConfig, BlockExplorerConfig } from 'types/network';
|
||||
|
@ -171,6 +172,26 @@ export const INITIAL_STATE: State = {
|
|||
max: 20,
|
||||
initial: 2
|
||||
}
|
||||
},
|
||||
POA: {
|
||||
name: 'POA',
|
||||
unit: 'POA',
|
||||
chainId: 99,
|
||||
isCustom: false,
|
||||
color: '#8978ea',
|
||||
blockExplorer: makeExplorer('POAExplorer', 'https://www.poaexplorer.com'),
|
||||
tokens: require('config/tokens/poa.json'),
|
||||
contracts: require('config/contracts/poa.json'),
|
||||
dPathFormats: {
|
||||
[SecureWalletName.TREZOR]: POA_DEFAULT,
|
||||
[SecureWalletName.LEDGER_NANO_S]: POA_DEFAULT,
|
||||
[InsecureWalletName.MNEMONIC_PHRASE]: POA_DEFAULT
|
||||
},
|
||||
gasPriceSettings: {
|
||||
min: 1,
|
||||
max: 21,
|
||||
initial: 1
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -81,6 +81,13 @@ export const INITIAL_STATE: State = {
|
|||
service: 'Expanse.tech',
|
||||
lib: new RPCNode('https://node.expanse.tech/'),
|
||||
estimateGas: true
|
||||
},
|
||||
poa: {
|
||||
network: 'POA',
|
||||
isCustom: false,
|
||||
service: 'poa.network',
|
||||
lib: new RPCNode('https://core.poa.network/'),
|
||||
estimateGas: true
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { StaticNetworksState, CustomNetworksState } from 'reducers/config/networks';
|
||||
|
||||
type StaticNetworkIds = 'ETH' | 'Ropsten' | 'Kovan' | 'Rinkeby' | 'ETC' | 'UBQ' | 'EXP';
|
||||
type StaticNetworkIds = 'ETH' | 'Ropsten' | 'Kovan' | 'Rinkeby' | 'ETC' | 'UBQ' | 'EXP' | 'POA';
|
||||
|
||||
export interface BlockExplorerConfig {
|
||||
name: string;
|
||||
|
|
|
@ -41,7 +41,8 @@ declare enum StaticNodeId {
|
|||
RIN_INFURA = 'rin_infura',
|
||||
ETC_EPOOL = 'etc_epool',
|
||||
UBQ = 'ubq',
|
||||
EXP_TECH = 'exp_tech'
|
||||
EXP_TECH = 'exp_tech',
|
||||
POA = 'poa'
|
||||
}
|
||||
|
||||
type StaticNodeWithWeb3Id = StaticNodeId | 'web3';
|
||||
|
|
|
@ -83,6 +83,13 @@ const expectedInitialState = {
|
|||
service: 'Expanse.tech',
|
||||
lib: new RPCNode('https://node.expanse.tech/'),
|
||||
estimateGas: true
|
||||
},
|
||||
poa: {
|
||||
network: 'POA',
|
||||
isCustom: false,
|
||||
service: 'poa.network',
|
||||
lib: new RPCNode('https://core.poa.network/'),
|
||||
estimateGas: true
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue