-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-local.sh
23 lines (19 loc) · 1.03 KB
/
init-local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
VALIDATOR_NAME=validator1
CHAIN_ID=celestia-domain
KEY_NAME=celestia-domain-key
CHAINFLAG="--chain-id ${CHAIN_ID}"
TOKEN_AMOUNT="10000000000000000000000000stake"
STAKING_AMOUNT="1000000000stake"
NAMESPACE_ID=$(openssl rand -hex 8)
echo $NAMESPACE_ID
DA_BLOCK_HEIGHT=$(curl https://rpc-blockspacerace.pops.one/block | jq -r '.result.block.header.height')
echo $DA_BLOCK_HEIGHT
ignite chain build
celestia-domaind tendermint unsafe-reset-all
celestia-domaind init $VALIDATOR_NAME --chain-id $CHAIN_ID
celestia-domaind keys add $KEY_NAME --keyring-backend test
celestia-domaind add-genesis-account $KEY_NAME $TOKEN_AMOUNT --keyring-backend test
celestia-domaind gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID --keyring-backend test
celestia-domaind collect-gentxs
celestia-domaind start --rollkit.aggregator true --rollkit.da_layer celestia --rollkit.da_config='{"base_url":"http://127.0.0.1:26659","timeout":60000000000,"fee":6000,"gas_limit":6000000}' --rollkit.namespace_id $NAMESPACE_ID --rollkit.da_start_height $DA_BLOCK_HEIGHT