forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Injective Cherry Picks for v0.50.x #21
Closed
Closed
Changes from 10 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
11faa47
cherry pick: af4b61c
alexanderbez b90b568
cherry pick: f1ab5db
alexanderbez 5995da9
cherry pick: c33c5e7
alexanderbez 99bddcd
cherry pick: 42cbd4
alexanderbez a53729c
patch some x/staking tests
alexanderbez 53295da
cherry pick: 140749
alexanderbez 47b0907
cherry pick: 3d27fac5
alexanderbez a5c5f11
cherry pick: 2ec442da9
alexanderbez 0bd8045
cherry pick: bd4b4580d
alexanderbez 78ce3fc
cherry pick: 9cbd6048e
alexanderbez 099592c
cherry pick: f3a4246e45
alexanderbez 8b4be44
cherry pick: 1fdb0f55bf
alexanderbez 85b5519
cherry pick: 2a6009162
alexanderbez 68f66ce
cherry pick: cfbd896eb
alexanderbez 743451e
cherry pick: 88ca41d7bdf
alexanderbez bae333c
cherry pick: 88ca41d7bdf
alexanderbez ea049d7
cherry pick: 726fea9e0b9
alexanderbez a2c4205
cherry pick: c6e918bbee1
alexanderbez 23bcf14
cherry pick: d6115f387ac0
alexanderbez 9a88930
cherry pick: fbb4d525bd433
alexanderbez b726928
cherry pick: 6b233a7877c
alexanderbez dddb8b4
cherry pick: 003a8c9c0
alexanderbez 3ef76da
cherry pick: 5c9627ded
alexanderbez ebf5a40
cherry pick: 0427b6f53
alexanderbez 562218d
cherry pick: d5f931fe0b
alexanderbez 4bb2d50
cherry pick: 3a97c08f884
alexanderbez dc17911
fix Proto and tests
alexanderbez c34e1d8
updates
alexanderbez e42311a
updates
alexanderbez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
syntax = "proto3"; | ||
package cosmos.bank.v1beta1; | ||
|
||
import "cosmos_proto/cosmos.proto"; | ||
import "gogoproto/gogo.proto"; | ||
import "amino/amino.proto"; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; | ||
|
||
// EventSetBalance is an event that tracks the latest bank balance. | ||
message EventSetBalances { | ||
repeated BalanceUpdate balance_updates = 1; | ||
} | ||
|
||
// BalanceUpdate contains a given address's latest balance | ||
message BalanceUpdate { | ||
bytes addr = 1; | ||
bytes denom = 2; | ||
// the latest amount | ||
string amt = 3 [ | ||
(cosmos_proto.scalar) = "cosmos.Int", | ||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", | ||
(gogoproto.nullable) = false, | ||
(amino.dont_omitempty) = true | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package bank | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/x/bank/keeper" | ||
) | ||
|
||
// EndBlocker is called every block, emits balance event | ||
func EndBlocker(ctx sdk.Context, k keeper.Keeper) { | ||
k.EmitAllTransientBalances(ctx) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning