CLI for generating the Polkadot and Kusama chain specification from the state of the DOT Allocation and Claims contracts.
Clone this repository to your desired environment and install the dependencies using yarn
. You will also need Python3.
$ git clone https://github.com/w3f/kusama-genesis-spec.git
$ cd kusama-genesis-spec
$ yarn
In order to generate the kusama.json
chain specification from Ethereum state, run the command like so (this will use the default values for the environmental variables):
$ chmod +x genesis.sh
$ ./genesis.sh
In order to generate using the Ethereum state from a specific block, run the command with the AT_BLOCK
environmental variable. In order to use an archive node at a given HTTP endpoint, use the HTTP_ENDPOINT
variable.
$ HTTP_ENDPOINT=<URL> AT_BLOCK=<ETH_BLOCK_NUM> ./genesis.sh
Once you have started a chain using the kusama.json
chain specification, you can also use this tool to verify that the state initialized properly.
$ yarn verify --atBlock 8405350