-
Notifications
You must be signed in to change notification settings - Fork 193
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
feat(evm): keeper collections and grpc query impls for EthAccount, NibiruAccount #1873
Changes from all commits
3159973
820f50e
0dbba9e
40a0a9a
0c5cffb
a6437fd
fc5f463
289b1d7
f874b87
69865ec
1554b64
7d96d1c
5187d0f
31e2cec
75d3990
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -58,7 +58,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||||
- [#1855](https://github.com/NibiruChain/nibiru/pull/1855) - feat(eth-pubsub): Implement in-memory EventBus for real-time topic management and event distribution | ||||||
- [#1856](https://github.com/NibiruChain/nibiru/pull/1856) - feat(eth-rpc): Conversion types and functions between Ethereum txs and blocks and Tendermint ones. | ||||||
- [#1861](https://github.com/NibiruChain/nibiru/pull/1861) - feat(eth-rpc): RPC backend, Ethereum tracer, KV indexer, and RPC APIs | ||||||
- [#1869](https://github.com/NibiruChain/nibiru/pull/1869) - feat(eth): Module and start of keeper tests | ||||||
- [#1869](https://github.com/NibiruChain/nibiru/pull/1869) - feat(eth): Module and start of keeper tests | ||||||
- [#1873](https://github.com/NibiruChain/nibiru/pull/1873) - feat(evm): keeper collections and grpc query impls for EthAccount, NibiruAccount | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a period at the end of the entry for consistency. - - [#1873](https://github.com/NibiruChain/nibiru/pull/1873) - feat(evm): keeper collections and grpc query impls for EthAccount, NibiruAccount
+ - [#1873](https://github.com/NibiruChain/nibiru/pull/1873) - feat(evm): keeper collections and grpc query impls for EthAccount, NibiruAccount. Committable suggestion
Suggested change
|
||||||
|
||||||
#### Dapp modules: perp, spot, oracle, etc | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -105,6 +105,7 @@ import ( | |||||||||||||||||||||||||
// --------------------------------------------------------------- | ||||||||||||||||||||||||||
// Nibiru Custom Modules | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
"github.com/NibiruChain/nibiru/eth" | ||||||||||||||||||||||||||
"github.com/NibiruChain/nibiru/x/common" | ||||||||||||||||||||||||||
"github.com/NibiruChain/nibiru/x/devgas/v1" | ||||||||||||||||||||||||||
devgaskeeper "github.com/NibiruChain/nibiru/x/devgas/v1/keeper" | ||||||||||||||||||||||||||
|
@@ -280,11 +281,12 @@ func (app *NibiruApp) InitKeepers( | |||||||||||||||||||||||||
// seal capability keeper after scoping modules | ||||||||||||||||||||||||||
// app.capabilityKeeper.Seal() | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
// add keepers | ||||||||||||||||||||||||||
// TODO: chore(upgrade): Potential breaking change on AccountKeeper dur | ||||||||||||||||||||||||||
// to ProtoBaseAccount replacement. | ||||||||||||||||||||||||||
app.AccountKeeper = authkeeper.NewAccountKeeper( | ||||||||||||||||||||||||||
appCodec, | ||||||||||||||||||||||||||
keys[authtypes.StoreKey], | ||||||||||||||||||||||||||
authtypes.ProtoBaseAccount, | ||||||||||||||||||||||||||
eth.ProtoBaseAccount, | ||||||||||||||||||||||||||
Comment on lines
+284
to
+289
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clarify the TODO comment and ensure the initialization of The TODO comment should be more specific about the potential breaking change and what needs to be done to address it. Additionally, verify that - // TODO: chore(upgrade): Potential breaking change on AccountKeeper dur
- // to ProtoBaseAccount replacement.
+ // TODO: chore(upgrade): Investigate potential breaking change on AccountKeeper due to ProtoBaseAccount replacement and ensure compatibility. Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
maccPerms, | ||||||||||||||||||||||||||
sdk.GetConfig().GetBech32AccountAddrPrefix(), | ||||||||||||||||||||||||||
govModuleAddr, | ||||||||||||||||||||||||||
|
@@ -396,6 +398,8 @@ func (app *NibiruApp) InitKeepers( | |||||||||||||||||||||||||
keys[evm.StoreKey], | ||||||||||||||||||||||||||
tkeys[evm.TransientKey], | ||||||||||||||||||||||||||
authtypes.NewModuleAddress(govtypes.ModuleName), | ||||||||||||||||||||||||||
app.AccountKeeper, | ||||||||||||||||||||||||||
app.BankKeeper, | ||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
// ---------------------------------- IBC keepers | ||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -41,7 +41,7 @@ func TestAddGenesisAccountCmd(t *testing.T) { | |||||||
cfg, err := genutiltest.CreateDefaultTendermintConfig(home) | ||||||||
require.NoError(t, err) | ||||||||
|
||||||||
appCodec := app.MakeEncodingConfig().Marshaler | ||||||||
appCodec := app.MakeEncodingConfig().Codec | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update test description. Update the test description to reflect the change from - appCodec := app.MakeEncodingConfig().Codec
+ // Use Codec instead of Marshaler for encoding configuration
+ appCodec := app.MakeEncodingConfig().Codec Committable suggestion
Suggested change
|
||||||||
err = genutiltest.ExecInitCmd( | ||||||||
testModuleBasicManager, home, appCodec) | ||||||||
require.NoError(t, err) | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove trailing space.
Committable suggestion