-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Feature Request: Standardize Bank Module Funds Movement Events #9375
Comments
Another issue of similar nature is this one For developer and integrators to fully understand the balance state changes, it is also important for them to know the slashed amount if a slash occurs. This is especially important for indexer and coin analysis service because they will need to know the actions but not just the outcomes. |
I don't follow? What events are missing during what actions? |
Hi @alexanderbez! I currently have two examples, but there may be more. 1.
|
Name | Address |
---|---|
dist | cro1jv65s3grqf6v6jl3dp4t6c9t9rk99cd8lyv94w |
bonded_tokens_pool | cro1fl48vsnmsdzcv85q5d2q4z5ajdha8yu3dqpk9x |
not_bonded_tokens_pool | cro1tygms3xhhs3yv487phx3dw4a95jn7t7leqa8nj |
I'm in favor just capturing all fund movements under a singular event type of |
With adr-038 state streaming, is this level of granularity needed? I agree a good standard is needed but having every state movement when a state streaming should land anytime now. cc @calvinaco |
Summary
Right now only part of all funds movements' methods in the bank keeper will create an event in block results. The incompleteness of events will introduce difficulties for 3rd part integrations. Some data can not be retrieved by using the block results API and the Cosmos RESTful (LCD) APIs only have the latest state. Developers doing integrations will have to fully understand the internal implementation of different messages and they cannot rely solely on the block results to capture all state changes.
I propose we re-visit messages that will result in funds movement and update the bank keeper to always produce events that involve balance state changes.
Problem Definition
What problems may be addressed by introducing this feature?
Proposal
SetBalance
andAddCoins
of the bank keeperscosmos-sdk/x/bank/keeper/keeper.go
Line 84 in 4695808
cosmos-sdk/x/bank/keeper/keeper.go
Line 34 in 4695808
For Admin Use
The text was updated successfully, but these errors were encountered: