diff --git a/.clconfig.json b/.clconfig.json index 513e7d6..f147a50 100644 --- a/.clconfig.json +++ b/.clconfig.json @@ -24,10 +24,10 @@ "types" ], "change_types": { - "API Breaking": "api\\s*breaking", - "Bug Fixes": "bug\\s*fixes", - "Improvements": "improvements", - "State Machine Breaking": "state\\s*machine\\s*breaking" + "API Breaking": "feat-api", + "Bug Fixes": "fix", + "Improvements": "imp", + "State Machine Breaking": "feat-smb" }, "expected_spellings": { "ABI": "abi", diff --git a/CHANGELOG.md b/CHANGELOG.md index a98ec8a..62243da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This changelog was created using the `clu` binary ### Improvements +- (erc20) [#57](https://github.com/evmos/os/pull/57) Reference EIP-7528 (native asset address) in default ERC-20 params. - (all) [#60](https://github.com/evmos/os/pull/60) Apply latest changes from Evmos repo (f943af3b to b72a32d76). - (cli) [#55](https://github.com/evmos/os/pull/55) Add missing list key types subcommand. - (cli) [#54](https://github.com/evmos/os/pull/54) Align debug CLI commands with Cosmos SDK plus other minor clean up. diff --git a/example_chain/local_node.sh b/example_chain/local_node.sh index bd36481..11524b3 100755 --- a/example_chain/local_node.sh +++ b/example_chain/local_node.sh @@ -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","0x0000000000000000000000000000000000000805"]' "$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" diff --git a/x/erc20/types/params.go b/x/erc20/types/params.go index 0d854d0..d119f20 100644 --- a/x/erc20/types/params.go +++ b/x/erc20/types/params.go @@ -20,6 +20,11 @@ var ( ) var ( + // NOTE: We strongly recommend to use the canonical address for the ERC-20 representation + // of the chain's native denomination as defined by + // [ERC-7528](https://eips.ethereum.org/EIPS/eip-7528). + // + // 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE DefaultNativePrecompiles []string DefaultDynamicPrecompiles []string )