chore: rename the ethermint to chibaclonk

1. rename `ethermint` to `chiba-clonk`

2. fix the `make localnet-start`
This commit is contained in:
Sai Kumar
2022-04-05 21:00:20 +05:30
parent 96393bfc36
commit 548f2a7b92
24 changed files with 269 additions and 252 deletions
+14 -14
View File
@@ -1,5 +1,5 @@
rem ethermint compile on windows
rem chibaclonk compile on windows
rem install golang , gcc, sed for windows
rem 1. install msys2 : https://www.msys2.org/
rem 2. pacman -S mingw-w64-x86_64-toolchain
@@ -9,7 +9,7 @@ rem 3. add path C:\msys64\mingw64\bin
rem C:\msys64\usr\bin
set KEY="mykey"
set CHAINID="ethermint_9000-1"
set CHAINID="chibaclonk_9000-1"
set MONIKER="localtestnet"
set KEYRING="test"
set KEYALGO="eth_secp256k1"
@@ -17,26 +17,26 @@ set LOGLEVEL="info"
rem to trace evm
rem TRACE="--trace"
set TRACE=""
set HOME=%USERPROFILE%\.ethermintd
set HOME=%USERPROFILE%\.chibaclonkd
echo %HOME%
set ETHCONFIG=%HOME%\config\config.toml
set GENESIS=%HOME%\config\genesis.json
set TMPGENESIS=%HOME%\config\tmp_genesis.json
@echo build binary
go build .\cmd\ethermintd
go build .\cmd\chibaclonkd
@echo clear home folder
del /s /q %HOME%
ethermintd config keyring-backend %KEYRING%
ethermintd config chain-id %CHAINID%
chibaclonkd config keyring-backend %KEYRING%
chibaclonkd config chain-id %CHAINID%
ethermintd keys add %KEY% --keyring-backend %KEYRING% --algo %KEYALGO%
chibaclonkd keys add %KEY% --keyring-backend %KEYRING% --algo %KEYALGO%
rem Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer)
ethermintd init %MONIKER% --chain-id %CHAINID%
rem Set moniker and chain-id for chibaclonk (Moniker can be anything, chain-id must be an integer)
chibaclonkd init %MONIKER% --chain-id %CHAINID%
rem Change parameter token denominations to aphoton
cat %GENESIS% | jq ".app_state[\"staking\"][\"params\"][\"bond_denom\"]=\"aphoton\"" > %TMPGENESIS% && move %TMPGENESIS% %GENESIS%
@@ -54,18 +54,18 @@ rem setup
sed -i "s/create_empty_blocks = true/create_empty_blocks = false/g" %ETHCONFIG%
rem Allocate genesis accounts (cosmos formatted addresses)
ethermintd add-genesis-account %KEY% 100000000000000000000000000aphoton --keyring-backend %KEYRING%
chibaclonkd add-genesis-account %KEY% 100000000000000000000000000aphoton --keyring-backend %KEYRING%
rem Sign genesis transaction
ethermintd gentx %KEY% 1000000000000000000000aphoton --keyring-backend %KEYRING% --chain-id %CHAINID%
chibaclonkd gentx %KEY% 1000000000000000000000aphoton --keyring-backend %KEYRING% --chain-id %CHAINID%
rem Collect genesis tx
ethermintd collect-gentxs
chibaclonkd collect-gentxs
rem Run this to ensure everything worked and that the genesis file is setup correctly
ethermintd validate-genesis
chibaclonkd validate-genesis
rem Start the node (remove the --pruning=nothing flag if historical queries are not needed)
ethermintd start --pruning=nothing %TRACE% --log_level %LOGLEVEL% --minimum-gas-prices=0.0001aphoton
chibaclonkd start --pruning=nothing %TRACE% --log_level %LOGLEVEL% --minimum-gas-prices=0.0001aphoton