mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-02 06:16:06 +00:00
parent
aa68beb115
commit
1ab0d819d0
16
common/config/contracts/esn.json
Normal file
16
common/config/contracts/esn.json
Normal file
File diff suppressed because one or more lines are too long
@ -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 ESN from './esn.json';
|
||||
|
||||
export default {
|
||||
ETC,
|
||||
@ -13,5 +14,6 @@ export default {
|
||||
Rinkeby,
|
||||
Ropsten,
|
||||
RSK,
|
||||
UBQ
|
||||
UBQ,
|
||||
ESN
|
||||
};
|
||||
|
@ -93,6 +93,11 @@ export const EOSC_DEFAULT: DPath = {
|
||||
value: "m/44'/2018'/0'/0"
|
||||
};
|
||||
|
||||
export const ESN_DEFAULT: DPath = {
|
||||
label: 'Default (ESN)',
|
||||
value: "m/44'/31102'/0'/0"
|
||||
};
|
||||
|
||||
export const DPaths: DPath[] = [
|
||||
ETH_DEFAULT,
|
||||
ETH_TREZOR,
|
||||
@ -111,7 +116,8 @@ export const DPaths: DPath[] = [
|
||||
CLO_DEFAULT,
|
||||
RSK_TESTNET,
|
||||
GO_DEFAULT,
|
||||
EOSC_DEFAULT
|
||||
EOSC_DEFAULT,
|
||||
ESN_DEFAULT
|
||||
];
|
||||
|
||||
// PATHS TO BE INCLUDED REGARDLESS OF WALLET FORMAT
|
||||
|
14
common/config/tokens/esn.json
Normal file
14
common/config/tokens/esn.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"address": "0x72ea3508d9d817a91465abb59be10fef9857a055",
|
||||
"symbol": "DGT",
|
||||
"decimal": 0,
|
||||
"type": "default"
|
||||
},
|
||||
{
|
||||
"address": "0x0146b9dcd9fb2abc1b5b136c28d20d0037526961",
|
||||
"symbol": "TOPM",
|
||||
"decimal": 18,
|
||||
"type": "default"
|
||||
}
|
||||
]
|
@ -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 ESN from './esn.json';
|
||||
|
||||
export default {
|
||||
ETC,
|
||||
@ -15,5 +16,6 @@ export default {
|
||||
Rinkeby,
|
||||
Ropsten,
|
||||
RSK,
|
||||
UBQ
|
||||
UBQ,
|
||||
ESN
|
||||
};
|
||||
|
@ -5,7 +5,7 @@ Object {
|
||||
"@@redux-saga/IO": true,
|
||||
"SELECT": Object {
|
||||
"args": Array [
|
||||
"EOSC",
|
||||
"ESN",
|
||||
],
|
||||
"selector": [Function],
|
||||
},
|
||||
|
@ -23,7 +23,8 @@ import {
|
||||
CLO_DEFAULT,
|
||||
RSK_TESTNET,
|
||||
GO_DEFAULT,
|
||||
EOSC_DEFAULT
|
||||
EOSC_DEFAULT,
|
||||
ESN_DEFAULT
|
||||
} from 'config/dpaths';
|
||||
import { makeExplorer } from 'utils/helpers';
|
||||
import { StaticNetworksState } from './types';
|
||||
@ -440,6 +441,29 @@ export const STATIC_NETWORKS_INITIAL_STATE: StaticNetworksState = {
|
||||
max: 60,
|
||||
initial: 20
|
||||
}
|
||||
},
|
||||
ESN: {
|
||||
id: 'ESN',
|
||||
name: 'EthersocialNetwork',
|
||||
unit: 'ESN',
|
||||
chainId: 31102,
|
||||
isCustom: false,
|
||||
color: '#7a56ad',
|
||||
blockExplorer: makeExplorer({
|
||||
name: 'ESN Explorer',
|
||||
origin: 'https://ethersocial.net'
|
||||
}),
|
||||
tokens: require('config/tokens/esn.json'),
|
||||
contracts: require('config/contracts/esn.json'),
|
||||
dPathFormats: {
|
||||
[SecureWalletName.TREZOR]: ESN_DEFAULT,
|
||||
[InsecureWalletName.MNEMONIC_PHRASE]: ESN_DEFAULT
|
||||
},
|
||||
gasPriceSettings: {
|
||||
min: 1,
|
||||
max: 60,
|
||||
initial: 20
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -193,6 +193,15 @@ export const NODE_CONFIGS: { [key in StaticNetworkIds]: RawNodeConfig[] } = {
|
||||
service: 'eos-classic.io',
|
||||
url: 'https://node.eos-classic.io/'
|
||||
}
|
||||
],
|
||||
|
||||
ESN: [
|
||||
{
|
||||
name: makeNodeName('ESN', 'esn'),
|
||||
type: 'rpc',
|
||||
service: 'ethersocial.org',
|
||||
url: 'https://api.esn.gonspool.com'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
3
shared/types/network.d.ts
vendored
3
shared/types/network.d.ts
vendored
@ -15,7 +15,8 @@ type StaticNetworkIds =
|
||||
| 'CLO'
|
||||
| 'RSK_TESTNET'
|
||||
| 'GO'
|
||||
| 'EOSC';
|
||||
| 'EOSC'
|
||||
| 'ESN';
|
||||
|
||||
export interface BlockExplorerConfig {
|
||||
name: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user