3.0.2 • Published 8 months ago

@rei-network/common v3.0.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
8 months ago

@rei-network/common

NPM Version License

The basic settings of rei, based on @ethereumjs/common, including parameters of the mainnet and testnet:

  • chains Chain information of each chain
  • genesisStates Initial state of each chain
  • RIP(REI-Network Improvement Proposal) of each chain
  • hardforks Fork information of each chain

INSTALL

npm install @rei-network/common

USAGE

// create chain start common with chain name
Common.createChainStartCommon("rei-mainnet");
// create with chain id
Common.createCommonByBlockNumber(0, 12347);
// create with chain name
Common.createCommonByBlockNumber(0, "goerli");
// create with an object containing chain information
Common.createCommonByBlockNumber(0, {
  chain: "mychain",
  networkId: 100,
  genesis: {
    // ...genesis block
  },
  hardforks: [],
  bootstrapNodes: [],
});

License

GNU General Public License v3.0

3.0.2

8 months ago

3.0.0

11 months ago

2.0.1

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.1.2

1 year ago

2.0.0

1 year ago

1.0.0

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.4-testnet.1

2 years ago

0.0.2

2 years ago