EthersocialNetwork Support (ESN) (#1881) (#1881)

This commit is contained in:
HackyMiner 2018-06-26 02:59:39 +09:00 committed by Daniel Ternyak
parent aa68beb115
commit 1ab0d819d0
9 changed files with 80 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -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
};

View File

@ -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

View File

@ -0,0 +1,14 @@
[
{
"address": "0x72ea3508d9d817a91465abb59be10fef9857a055",
"symbol": "DGT",
"decimal": 0,
"type": "default"
},
{
"address": "0x0146b9dcd9fb2abc1b5b136c28d20d0037526961",
"symbol": "TOPM",
"decimal": 18,
"type": "default"
}
]

View File

@ -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
};

View File

@ -5,7 +5,7 @@ Object {
"@@redux-saga/IO": true,
"SELECT": Object {
"args": Array [
"EOSC",
"ESN",
],
"selector": [Function],
},

View File

@ -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
}
}
};

View File

@ -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'
}
]
};

View File

@ -15,7 +15,8 @@ type StaticNetworkIds =
| 'CLO'
| 'RSK_TESTNET'
| 'GO'
| 'EOSC';
| 'EOSC'
| 'ESN';
export interface BlockExplorerConfig {
name: string;