Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

103 update dymension rdk dependency #107

Merged
merged 6 commits into from
Mar 24, 2024
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
7 changes: 5 additions & 2 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ set_denom() {
set_EVM_params() {
jq '.consensus_params["block"]["max_gas"] = "40000000"' "$GENESIS_FILE" > "$tmp" && mv "$tmp" "$GENESIS_FILE"
jq '.app_state["feemarket"]["params"]["no_base_fee"] = true' "$GENESIS_FILE" > "$tmp" && mv "$tmp" "$GENESIS_FILE"
jq '.app_state["feemarket"]["params"]["min_gas_price"] = "0.0"' "$GENESIS_FILE" > "$tmp" && mv "$tmp" "$GENESIS_FILE"
}

# ---------------------------- initial parameters ---------------------------- #
Expand All @@ -28,7 +29,7 @@ STAKING_AMOUNT="500000000000000000000000$DENOM"

CONFIG_DIRECTORY="$ROLLAPP_CHAIN_DIR/config"
GENESIS_FILE="$CONFIG_DIRECTORY/genesis.json"
TENDERMINT_CONFIG_FILE="$CONFIG_DIRECTORY/config.toml"
DYMINT_CONFIG_FILE="$CONFIG_DIRECTORY/dymint.toml"
APP_CONFIG_FILE="$CONFIG_DIRECTORY/app.toml"

# --------------------------------- run init --------------------------------- #
Expand Down Expand Up @@ -71,7 +72,9 @@ set_EVM_params
#local genesis account
$EXECUTABLE keys add "$KEY_NAME_ROLLAPP" --keyring-backend test
$EXECUTABLE add-genesis-account "$KEY_NAME_ROLLAPP" "$TOKEN_AMOUNT" --keyring-backend test
$EXECUTABLE gentx_seq --pubkey "$($EXECUTABLE dymint show-sequencer)" --from "$KEY_NAME_ROLLAPP" --keyring-backend test

awk -v home="$ROLLAPP_CHAIN_DIR" '/operator_keyring_home_dir/{$0="operator_keyring_home_dir = \""home"\""}1' "$DYMINT_CONFIG_FILE" > temp && mv temp "$DYMINT_CONFIG_FILE"
awk -v name="$KEY_NAME_ROLLAPP" '/operator_account_name/{$0="operator_account_name = \""name"\""}1' "$DYMINT_CONFIG_FILE" > temp && mv temp "$DYMINT_CONFIG_FILE"

echo "Do you want to include staker on genesis? (Y/n) "
read -r answer
Expand Down
8 changes: 3 additions & 5 deletions scripts/settlement/register_rollapp_to_hub.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/bin/bash

KEYRING_PATH="$HOME/.rollapp_evm/sequencer_keys"
KEY_NAME_SEQUENCER="sequencer"

MAX_SEQUENCERS=5
DEPLOYER="local-user"

#Register rollapp
dymd tx rollapp create-rollapp "$ROLLAPP_CHAIN_ID" "$MAX_SEQUENCERS" '{"Addresses":[]}' \
--from "$KEY_NAME_SEQUENCER" \
--from "$DEPLOYER" \
--keyring-backend test \
--keyring-dir "$KEYRING_PATH" \
--broadcast-mode block \
--fees 1dym

Loading