Skip to content

Commit

Permalink
add token pair for native denom to example chain genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteHerrmann committed Nov 1, 2024
1 parent 762c86a commit 3dcd669
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example_chain/local_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ if [[ $overwrite == "y" || $overwrite == "Y" ]]; then
# Enable precompiles in EVM params
jq '.app_state["evm"]["params"]["active_static_precompiles"]=["0x0000000000000000000000000000000000000100","0x0000000000000000000000000000000000000400","0x0000000000000000000000000000000000000800","0x0000000000000000000000000000000000000801","0x0000000000000000000000000000000000000802","0x0000000000000000000000000000000000000803","0x0000000000000000000000000000000000000804"]' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"

# Enable native denomination as a token pair for STRv2
jq '.app_state.erc20.params.native_precompiles=["0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"]' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq '.app_state.erc20.token_pairs=[{contract_owner:1,erc20_address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",denom:"aevmos",enabled:true}]' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"

# Set gas limit in genesis
jq '.consensus_params["block"]["max_gas"]="10000000"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"

Expand Down

0 comments on commit 3dcd669

Please sign in to comment.