Closed Unique-Divine closed 2 months ago
The changes in the NibiruChain/nibiru
project encompass significant updates related to Ethereum integration, including new keeper collections and gRPC query implementations for Ethereum and Nibiru accounts. Additionally, the codebase has undergone a refactor to improve readability and maintainability, such as consolidating validation logic and renaming various functions and variables for clarity. The codec handling has been standardized across multiple files, switching from Marshaler
to Codec
.
File/Path | Change Summary |
---|---|
CHANGELOG.md |
Added features related to Ethereum (eth) and Ethereum Virtual Machine (evm). |
app/ante.go |
Refactored NewAnteHandler to use ValidateAndClean method for validation. |
app/ante/fixed_gas_test.go |
Updated expected gas value in TestOraclePostPriceTransactionsHaveFixedPrice . |
app/ante/testutil_test.go |
Modified NewNibiruTestApp to use Codec instead of Marshaler . |
app/app.go |
Changed appCodec to use Codec instead of Marshaler . |
app/appconst/appconst.go |
Renamed Version() to RuntimeVersion() . |
app/codec/codec.go |
Renamed Marshaler field in EncodingConfig struct to Codec . |
app/ibc_test.go |
Updated parameter to app.NewDefaultGenesisState to use Codec . |
app/keepers.go |
Added import for eth and modified AccountKeeper initialization. |
app/modules_test.go |
Updated to use Codec instead of Marshaler in multiple functions. |
cmd/nibid/cmd/decode_base64_test.go |
Replaced Marshaler with Codec in TestBase64Decode . |
cmd/nibid/cmd/genaccounts_test.go |
Replaced Marshaler with Codec in TestAddGenesisAccountCmd . |
cmd/nibid/cmd/root.go |
Replaced Marshaler with Codec in WithCodec method call. |
cmd/nibid/cmd/testnet_test.go |
Switched from Marshaler to Codec in multiple function calls. |
eth/chain_id.go |
Removed errorsmod import and refactored error handling. |
eth/chain_id_test.go |
Refactored TestParseChainID into TestParseChainID_Happy and TestParseChainID_Sad . |
eth/codec.go |
Added constants for transaction extension protobuf type URLs. |
eth/encoding/config.go |
Registered Amino codec with mb before registering interfaces. |
eth/eth_account.go |
Introduced functionality related to Ethereum accounts. |
eth/indexer/kv_indexer_test.go |
Updated encCfg declaration to use app.MakeEncodingConfig() . |
eth/rpc/backend/account_info.go |
Renamed QueryAccountRequest to QueryEthAccountRequest . |
eth/rpc/backend/evm_query_client_test.go |
Renamed function call and request/response types. |
eth/rpc/backend/mocks/evm_query_client.go |
Renamed functions and updated request/response types. |
eth/rpc/rpcapi/web3_api.go |
ClientVersion now returns appconst.RuntimeVersion() . |
proto/eth/evm/v1/query.proto |
Renamed RPC methods and message types related to Ethereum account queries. |
x/common/error.go |
Renamed ErrNilMsg() to ErrNilGrpcMsg() . |
x/common/testutil/cli/network.go |
Changed Codec field assignment to use Codec . |
x/common/testutil/cli/network_test.go |
Modified cdc variable declaration in TestLogMnemonic . |
x/common/testutil/cli/util.go |
Updated NewKeyring to use Codec . |
x/common/testutil/genesis/genesis.go |
Replaced Marshaler with Codec in NewTestGenesisState . |
x/common/testutil/genesis/oracle_genesis.go |
Replaced Marshaler with Codec in AddOracleGenesis . |
x/common/testutil/genesis/sudo_genesis.go |
Replaced Marshaler with Codec in AddSudoGenesis . |
x/common/testutil/testapp/testapp.go |
Switched from Marshaler to Codec for JSON operations. |
In the code's realm, where bytes do dance,
Ethereum's magic takes its stance.
Keepers and queries now align,
WithCodec
's touch, the stars do shine.
Ante's logic, clean and bright,
Nibiru's future, ever in sight.
A rabbit's joy, in code's delight. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 38.83162%
with 178 lines
in your changes are missing coverage. Please review.
Project coverage is 67.13%. Comparing base (
6e38c19
) to head (5187d0f
).:exclamation: Current head 5187d0f differs from pull request most recent head 75d3990. Consider uploading reports for the commit 75d3990 to get more accurate results
MapTransient
andItemTransient
NibiruAccount
andEthAccount
queries