-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-testnet.sh
23 lines (19 loc) · 1006 Bytes
/
init-testnet.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=interchange
KEY_NAME=ith-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
interchanged tendermint unsafe-reset-all
interchanged init $VALIDATOR_NAME --chain-id $CHAIN_ID
interchanged keys add $KEY_NAME --keyring-backend test
interchanged add-genesis-account $KEY_NAME $TOKEN_AMOUNT --keyring-backend test
interchanged gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID --keyring-backend test
interchanged collect-gentxs
interchanged start --rollkit.aggregator true --rollkit.da_layer celestia --rollkit.da_config='{"base_url":"http://localhost:26659","timeout":60000000000,"fee":6000,"gas_limit":6000000}' --rollkit.namespace_id $NAMESPACE_ID --rollkit.da_start_height $DA_BLOCK_HEIGHT