Skip to content

Commit

Permalink
Merge pull request #658 from neutron-org/chore/gaia-v19
Browse files Browse the repository at this point in the history
Chore: Gaia v19
  • Loading branch information
pr0n00gler authored Aug 12, 2024
2 parents 73beb0b + 055d276 commit 81ac11d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion network/hermes/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,5 @@ clock_drift = '5s'
max_block_time = '10s'
trusting_period = '14days'
trust_threshold = { numerator = '1', denominator = '3' }
address_type = { derivation = 'cosmos' }
address_type = { derivation = 'cosmos' }
dynamic_gas_price = { enabled = false, multiplier = 1.1, max = 0.6 }
13 changes: 13 additions & 0 deletions network/init-gaiad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,21 @@ CHAIN_DIR="$BASE_DIR/$CHAINID"

STAKEDENOM=${STAKEDENOM:-stake}

function set_genesis_param_jq() {
param_path=$1
param_value=$2
jq "${param_path} = ${param_value}" > tmp_genesis_file.json < "$CHAIN_DIR/config/genesis.json" && mv tmp_genesis_file.json "$CHAIN_DIR/config/genesis.json"
}

echo "Creating and collecting gentx..."
$BINARY genesis gentx val1 "7000000000$STAKEDENOM" --home "$CHAIN_DIR" --chain-id "$CHAINID" --keyring-backend test
$BINARY genesis collect-gentxs --home "$CHAIN_DIR"

sed -i -e 's/\*/\/cosmos.bank.v1beta1.MsgSend\", \"\/cosmos.staking.v1beta1.MsgDelegate\", \"\/cosmos.staking.v1beta1.MsgUndelegate/g' "$CHAIN_DIR/config/genesis.json"

set_genesis_param_jq ".app_state.feemarket.params.enabled" "false" # feemarket
set_genesis_param_jq ".app_state.feemarket.params.fee_denom" "\"uatom\"" # feemarket
set_genesis_param_jq ".app_state.feemarket.state.base_gas_price" "\"0.0025\"" # feemarket
set_genesis_param_jq ".app_state.feemarket.params.min_base_gas_price" "\"0.0025\"" # feemarket

set_genesis_param_jq ".app_state.ibc.client_genesis.params.allowed_clients" "[\"*\"]" # ibc

0 comments on commit 81ac11d

Please sign in to comment.