-
Notifications
You must be signed in to change notification settings - Fork 4k
refactor: PoC for unordered txs per new spec #24010
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
Changes from 24 commits
007e9f1
d0c7237
e0cef44
fd79847
304bfd4
d8aa37e
9375652
4bd3769
f5ca415
e163124
bfc6c46
164ce70
6fd8b98
a2949e7
87ae5c6
6512d5a
6f2a710
5adc7c2
4202b27
0bebc3b
afc389f
0ca4fca
7816fe5
c8805af
1f52d1f
5acf257
070e3c9
5387be1
2deed33
450e2dc
a93d895
ec0157e
9a5a588
2db0155
a4a40c2
f38e629
f08858d
52f17be
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ package ante | |
|
||
import ( | ||
"context" | ||
"time" | ||
|
||
"cosmossdk.io/core/address" | ||
|
||
|
@@ -19,6 +20,13 @@ type AccountKeeper interface { | |
AddressCodec() address.Codec | ||
} | ||
|
||
// UnorderedNonceManager defines the contract needed for UnorderedNonce management. | ||
type UnorderedNonceManager interface { | ||
RemoveExpiredUnorderedNonces(ctx sdk.Context) error | ||
AddUnorderedNonce(ctx sdk.Context, sender []byte, timestamp time.Time) error | ||
ContainsUnorderedNonce(ctx sdk.Context, sender []byte, timestamp time.Time) (bool, error) | ||
|
||
} | ||
|
||
// FeegrantKeeper defines the expected feegrant keeper. | ||
type FeegrantKeeper interface { | ||
UseGrantedFees(ctx context.Context, granter, grantee sdk.AccAddress, fee sdk.Coins, msgs []sdk.Msg) error | ||
|
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.
note to make sure we have this added in the upgrade guide for adding utx
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.
opened #24078