mirror of
https://github.com/hanzo-labs/arcadia.git
synced 2026-10-30 18:55:41 +00:00
128 lines
4.6 KiB
JavaScript
128 lines
4.6 KiB
JavaScript
'use strict';
|
|
var nodes = function() {}
|
|
nodes.customNode = require('./nodeHelpers/customNode');
|
|
nodes.infuraNode = require('./nodeHelpers/infura');
|
|
nodes.nodeTypes = {
|
|
ETH: "ETH",
|
|
ETC: "ETC",
|
|
Ropsten: "ROPSTEN ETH",
|
|
Kovan: "KOVAN ETH",
|
|
Rinkeby: "RINKEBY ETH",
|
|
RSK: "RSK",
|
|
Custom: "CUSTOM ETH"
|
|
};
|
|
nodes.ensNodeTypes = [nodes.nodeTypes.ETH, nodes.nodeTypes.Ropsten];
|
|
nodes.customNodeObj = {
|
|
'name': 'CUS',
|
|
'blockExplorerTX': '',
|
|
'blockExplorerAddr': '',
|
|
'type': nodes.nodeTypes.Custom,
|
|
'eip155': false,
|
|
'chainId': '',
|
|
'tokenList': [],
|
|
'abiList': [],
|
|
'service': 'Custom',
|
|
'lib': null
|
|
};
|
|
nodes.nodeList = {
|
|
'eth_mew': {
|
|
'name': 'ETH',
|
|
'blockExplorerTX': 'https://etherscan.io/tx/[[txHash]]',
|
|
'blockExplorerAddr': 'https://etherscan.io/address/[[address]]',
|
|
'type': nodes.nodeTypes.ETH,
|
|
'eip155': true,
|
|
'chainId': 1,
|
|
'tokenList': require('./tokens/ethTokens.json'),
|
|
'abiList': require('./abiDefinitions/ethAbi.json'),
|
|
'service': 'MyEtherWallet',
|
|
'lib': new nodes.customNode('https://api.myetherapi.com/eth', '')
|
|
},
|
|
'eth_ethscan': {
|
|
'name': 'ETH',
|
|
'blockExplorerTX': 'https://etherscan.io/tx/[[txHash]]',
|
|
'blockExplorerAddr': 'https://etherscan.io/address/[[address]]',
|
|
'type': nodes.nodeTypes.ETH,
|
|
'eip155': true,
|
|
'chainId': 1,
|
|
'tokenList': require('./tokens/ethTokens.json'),
|
|
'abiList': require('./abiDefinitions/ethAbi.json'),
|
|
'service': 'Etherscan.io',
|
|
'lib': require('./nodeHelpers/etherscan')
|
|
},
|
|
'eth_infura': {
|
|
'name': 'ETH',
|
|
'blockExplorerTX': 'https://etherscan.io/tx/[[txHash]]',
|
|
'blockExplorerAddr': 'https://etherscan.io/address/[[address]]',
|
|
'type': nodes.nodeTypes.ETH,
|
|
'eip155': true,
|
|
'chainId': 1,
|
|
'tokenList': require('./tokens/ethTokens.json'),
|
|
'abiList': require('./abiDefinitions/ethAbi.json'),
|
|
'service': 'infura.io',
|
|
'lib': new nodes.infuraNode('https://mainnet.infura.io/mew')
|
|
},
|
|
'etc_epool': {
|
|
'name': 'ETC',
|
|
'blockExplorerTX': 'https://gastracker.io/tx/[[txHash]]',
|
|
'blockExplorerAddr': 'https://gastracker.io/addr/[[address]]',
|
|
'type': nodes.nodeTypes.ETC,
|
|
'eip155': true,
|
|
'chainId': 61,
|
|
'tokenList': require('./tokens/etcTokens.json'),
|
|
'abiList': require('./abiDefinitions/etcAbi.json'),
|
|
'service': 'Epool.io',
|
|
'lib': new nodes.customNode('https://mewapi.epool.io', '')
|
|
},
|
|
'rop_mew': {
|
|
'name': 'Ropsten',
|
|
'type': nodes.nodeTypes.Ropsten,
|
|
'blockExplorerTX': 'https://ropsten.etherscan.io/tx/[[txHash]]',
|
|
'blockExplorerAddr': 'https://ropsten.etherscan.io/address/[[address]]',
|
|
'eip155': true,
|
|
'chainId': 3,
|
|
'tokenList': require('./tokens/ropstenTokens.json'),
|
|
'abiList': require('./abiDefinitions/ropstenAbi.json'),
|
|
'service': 'MyEtherWallet',
|
|
'lib': new nodes.customNode('https://api.myetherapi.com/rop', '')
|
|
},
|
|
'kov_ethscan': {
|
|
'name': 'Kovan',
|
|
'type': nodes.nodeTypes.Kovan,
|
|
'blockExplorerTX': 'https://kovan.etherscan.io/tx/[[txHash]]',
|
|
'blockExplorerAddr': 'https://kovan.etherscan.io/address/[[address]]',
|
|
'eip155': true,
|
|
'chainId': 42,
|
|
'tokenList': require('./tokens/kovanTokens.json'),
|
|
'abiList': require('./abiDefinitions/kovanAbi.json'),
|
|
'service': 'Etherscan.io',
|
|
'lib': require('./nodeHelpers/etherscanKov')
|
|
},
|
|
'rin_ethscan': {
|
|
'name': 'Rinkeby',
|
|
'type': nodes.nodeTypes.Rinkeby,
|
|
'blockExplorerTX': 'https://rinkeby.etherscan.io/tx/[[txHash]]',
|
|
'blockExplorerAddr': 'https://rinkeby.etherscan.io/address/[[address]]',
|
|
'eip155': true,
|
|
'chainId': 4,
|
|
'tokenList': require('./tokens/rinkebyTokens.json'),
|
|
'abiList': require('./abiDefinitions/rinkebyAbi.json'),
|
|
'service': 'Etherscan.io',
|
|
'lib': require('./nodeHelpers/etherscanRin')
|
|
},
|
|
'rsk': {
|
|
'name': 'RSK',
|
|
'blockExplorerTX': 'https://explorer.rsk.co/tx/[[txHash]]',
|
|
'blockExplorerAddr': 'https://explorer.rsk.co/addr/[[address]]',
|
|
'type': nodes.nodeTypes.RSK,
|
|
'eip155': true,
|
|
'chainId': 31,
|
|
'tokenList': require('./tokens/rskTokens.json'),
|
|
'abiList': require('./abiDefinitions/rskAbi.json'),
|
|
'estimateGas': true,
|
|
'service': 'GK2.sk',
|
|
'lib': new nodes.customNode('https://rsk-test.gk2.sk/', '')
|
|
}
|
|
};
|
|
nodes.ethPrice = require('./nodeHelpers/ethPrice');
|
|
module.exports = nodes;
|