Viewing File: /home/ubuntu/efiexchange-node-base/node_modules/@ethereumjs/common/dist/genesisStates/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.genesisStateByName = exports.genesisStateById = void 0;
const genesisStates = {
names: {
'1': 'mainnet',
'3': 'ropsten',
'4': 'rinkeby',
'42': 'kovan',
'5': 'goerli',
'11155111': 'sepolia',
},
mainnet: require('./mainnet.json'),
ropsten: require('./ropsten.json'),
rinkeby: require('./rinkeby.json'),
kovan: require('./kovan.json'),
goerli: require('./goerli.json'),
sepolia: require('./sepolia.json'),
};
/**
* Returns the genesis state by network ID
* @param id ID of the network (e.g. 1)
* @returns Dictionary with genesis accounts
*
* @deprecated use {@link Common.genesisState} instead
*/
function genesisStateById(id) {
return genesisStates[genesisStates['names'][id]];
}
exports.genesisStateById = genesisStateById;
/**
* Returns the genesis state by network name
* @param name Name of the network (e.g. 'mainnet')
* @returns Dictionary with genesis accounts
*
* @deprecated use {@link Common.genesisState} instead
*/
function genesisStateByName(name) {
return genesisStates[name];
}
exports.genesisStateByName = genesisStateByName;
//# sourceMappingURL=index.js.map
Back to Directory
File Manager