Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion fendermint/testing/graph-test/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -e
KEYS_DIR=/data/keys
CMT_DIR=/data/${NODE_NAME}/cometbft
GENESIS_FILE=/data/genesis.json
SEALED_GENESIS_FILE=/data/sealed.car

# Create a genesis file
fendermint \
Expand Down Expand Up @@ -47,10 +48,20 @@ fendermint \
genesis --genesis-file $GENESIS_FILE \
add-validator --public-key $KEYS_DIR/$VALIDATOR_NAME.pk --power 1

# Seal the genesis state
fendermint \
genesis --genesis-file $GENESIS_FILE \
ipc \
seal-state \
--builtin-actors-path /fendermint/bundle.car \
--custom-actors-path /fendermint/custom_actors_bundle.car \
--artifacts-path /fendermint/contracts \
--output-path "${SEALED_GENESIS_FILE}"

# Convert FM genesis to CMT
fendermint \
genesis --genesis-file $GENESIS_FILE \
into-tendermint --out $CMT_DIR/config/genesis.json
into-tendermint --out $CMT_DIR/config/genesis.json --sealed "${SEALED_GENESIS_FILE}"

# Copy the default validator key
cp $KEYS_DIR/$VALIDATOR_NAME.priv_validator_key.json \
Expand Down
13 changes: 12 additions & 1 deletion fendermint/testing/smoke-test/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -e
KEYS_DIR=/data/keys
CMT_DIR=/data/${NODE_NAME}/cometbft
GENESIS_FILE=/data/genesis.json
SEALED_GENESIS_FILE=/data/sealed.car

# Create a genesis file
fendermint \
Expand Down Expand Up @@ -63,10 +64,20 @@ fendermint \
--msg-fee 10 \
--majority-percentage 66

# Seal the genesis state
fendermint \
genesis --genesis-file $GENESIS_FILE \
ipc \
seal-state \
--builtin-actors-path /fendermint/bundle.car \
--custom-actors-path /fendermint/custom_actors_bundle.car \
--artifacts-path /fendermint/contracts \
--output-path "${SEALED_GENESIS_FILE}"

# Convert FM genesis to CMT
fendermint \
genesis --genesis-file $GENESIS_FILE \
into-tendermint --out $CMT_DIR/config/genesis.json
into-tendermint --out $CMT_DIR/config/genesis.json --sealed "${SEALED_GENESIS_FILE}"

# Convert FM validator key to CMT
fendermint \
Expand Down
13 changes: 12 additions & 1 deletion fendermint/testing/snapshot-test/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -e
KEYS_DIR=/data/keys
CMT_DIR=/data/${NODE_NAME}/cometbft
GENESIS_FILE=/data/genesis.json
SEALED_GENESIS_FILE=/data/sealed.car

# Create a genesis file
fendermint \
Expand Down Expand Up @@ -42,10 +43,20 @@ fendermint \
genesis --genesis-file $GENESIS_FILE \
add-validator --public-key $KEYS_DIR/$VALIDATOR_NAME.pk --power 1

# Seal the genesis state
fendermint \
genesis --genesis-file $GENESIS_FILE \
ipc \
seal-state \
--builtin-actors-path /fendermint/bundle.car \
--custom-actors-path /fendermint/custom_actors_bundle.car \
--artifacts-path /fendermint/contracts \
--output-path "${SEALED_GENESIS_FILE}"

# Convert FM genesis to CMT
fendermint \
genesis --genesis-file $GENESIS_FILE \
into-tendermint --out $CMT_DIR/config/genesis.json
into-tendermint --out $CMT_DIR/config/genesis.json --sealed "${SEALED_GENESIS_FILE}"

# Copy the default validator key
cp $KEYS_DIR/$VALIDATOR_NAME.priv_validator_key.json \
Expand Down