Add musicoin network and node.
This commit is contained in:
parent
c7c17843b0
commit
1f7bde3153
|
@ -53,6 +53,11 @@ export const ELLA_DEFAULT: DPath = {
|
|||
value: "m/44'/163'/0'/0"
|
||||
};
|
||||
|
||||
export const MUSIC_DEFAULT: DPath = {
|
||||
label: 'Default (MUSIC)',
|
||||
value: "m/44'/184'/0'/0"
|
||||
};
|
||||
|
||||
export const ETH_SINGULAR: DPath = {
|
||||
label: 'SingularDTV',
|
||||
value: "m/0'/0'/0'"
|
||||
|
@ -69,7 +74,8 @@ export const DPaths: DPath[] = [
|
|||
UBQ_DEFAULT,
|
||||
POA_DEFAULT,
|
||||
TOMO_DEFAULT,
|
||||
ELLA_DEFAULT
|
||||
ELLA_DEFAULT,
|
||||
MUSIC_DEFAULT
|
||||
];
|
||||
|
||||
// PATHS TO BE INCLUDED REGARDLESS OF WALLET FORMAT
|
||||
|
|
|
@ -99,6 +99,9 @@ shepherd.useProvider('rpc', 'tomo', regTomoConf, 'https://core.tomocoin.io');
|
|||
const regEllaConf = makeProviderConfig({ network: 'ELLA' });
|
||||
shepherd.useProvider('rpc', 'ella', regEllaConf, 'https://jsonrpc.ellaism.org');
|
||||
|
||||
const regMusicConf = makeProviderConfig({ network: 'MUSIC' });
|
||||
shepherd.useProvider('rpc', 'music', regMusicConf, 'https://mewapi.musicoin.tw');
|
||||
|
||||
/**
|
||||
* Pseudo-networks to support metamask / web3 interaction
|
||||
*/
|
||||
|
|
|
@ -16,7 +16,8 @@ import {
|
|||
EXP_DEFAULT,
|
||||
POA_DEFAULT,
|
||||
TOMO_DEFAULT,
|
||||
UBQ_DEFAULT
|
||||
UBQ_DEFAULT,
|
||||
MUSIC_DEFAULT
|
||||
} from 'config/dpaths';
|
||||
import { ConfigAction } from 'actions/config';
|
||||
import { makeExplorer } from 'utils/helpers';
|
||||
|
@ -252,6 +253,28 @@ export const INITIAL_STATE: State = {
|
|||
max: 60,
|
||||
initial: 20
|
||||
}
|
||||
},
|
||||
MUSIC: {
|
||||
name: 'MUSIC',
|
||||
unit: 'MUSIC',
|
||||
chainId: 7762959,
|
||||
isCustom: false,
|
||||
color: '#ffbb00',
|
||||
blockExplorer: makeExplorer({
|
||||
name: 'Musicoin Explorer',
|
||||
origin: 'https://explorer.musicoin.org',
|
||||
addressPath: 'account'
|
||||
}),
|
||||
tokens: [],
|
||||
contracts: [],
|
||||
dPathFormats: {
|
||||
[InsecureWalletName.MNEMONIC_PHRASE]: MUSIC_DEFAULT
|
||||
},
|
||||
gasPriceSettings: {
|
||||
min: 1,
|
||||
max: 60,
|
||||
initial: 20
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -184,6 +184,21 @@ export const INITIAL_STATE: StaticNodesState = {
|
|||
service: 'ellaism.org',
|
||||
lib: shepherdProvider,
|
||||
estimateGas: true
|
||||
},
|
||||
|
||||
music_auto: {
|
||||
network: 'MUSIC',
|
||||
isCustom: false,
|
||||
service: 'AUTO',
|
||||
lib: shepherdProvider,
|
||||
estimateGas: true
|
||||
},
|
||||
music: {
|
||||
network: 'MUSIC',
|
||||
isCustom: false,
|
||||
service: 'musicoin.tw',
|
||||
lib: shepherdProvider,
|
||||
estimateGas: true
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@ type StaticNetworkIds =
|
|||
| 'EXP'
|
||||
| 'POA'
|
||||
| 'TOMO'
|
||||
| 'ELLA';
|
||||
| 'ELLA'
|
||||
| 'MUSIC';
|
||||
|
||||
export interface BlockExplorerConfig {
|
||||
name: string;
|
||||
|
|
|
@ -50,7 +50,9 @@ declare enum StaticNodeId {
|
|||
TOMO_AUTO = 'tomo_auto',
|
||||
TOMO = 'tomo',
|
||||
ELLA_AUTO = 'ella_auto',
|
||||
ELLA = 'ella'
|
||||
ELLA = 'ella',
|
||||
MUSIC_AUTO = 'music_auto',
|
||||
MUSIC = 'music'
|
||||
}
|
||||
|
||||
type StaticNodeConfigs = { [key in StaticNodeId]: StaticNodeConfig } & { web3?: StaticNodeConfig };
|
||||
|
|
Loading…
Reference in New Issue