-
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
x/feegrant Updates #9115
Milestone
Comments
This was referenced Apr 14, 2021
14 tasks
9 tasks
This was referenced Apr 23, 2021
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Any issues that come from the x/feegrant audit #8983 .
Completeness audit @blushi x/feegrant completeness audit updates #9177
InitGenesis
in case of errorQueryServer
inx/feegrant/keeper/grpc_query.go
is not covered by tests inx/feegrant/keeper/keeper_test.go
but indirectly inx/feegrant/client/rest/grpc_query_test.go
using grpc-gateway REST endpoints. Thisx/feegrant/client/rest
folder must be some leftovers of legacy REST routes from the initial feegrant module implementation but it doesn't make sense to keep it since the module doesn't support legacy REST routes. Those tests should be moved tox/feegrant/keeper/keeper_test.go
.Use
field, we usegranter
andgrantee
as arguments names in one command and in the other one, we usegranter_address
andgrantee_address
. It would be good to have consistent naming across all feegrant commands.Improve
types
package test coverage @technicallyty x/feegrant audit: clean up / add test coverage to types package #9193Simulation: see x/feegrant State machine audit #9029 (comment) @atheeshp x/feegrant simulation audit changes #9145
State machine audit @aleem1314 x/feegrant state machine audit updates #9176
Msg server:
UseGrantedFees
logic and improve commentspanic
inside keeper here. Lets useUnmarshalBinaryBare
instead ofMustUnmarshalBinaryBare
.Tests:
x/feegrant/keeper/keeper.go
) covered by unit tests but not Msg server (x/feegrant/keeper/msg_server.go
) Get rid of most of the keeper public methods (except the one used in ante handler) and test msg_server methods instead(k Keeper) RevokeFeeAllowance
: add test case if fee grant not found(k Keeper) GrantFeeAllowance
: add test case with grantee account not yet in account stateIn the file
periodic_fee_test.go
in testTestPeriodicFeeValidAllow
a fieldblockTime
exists in the test case struct, but is never used. Add a test case with a differentblockTime
. Same forbasic_fee_test.go
in testTestBasicFeeValidAllow
These sections involve larger code changes/refactor so they should be worked on independently (not at the same time as others to avoid too many merge conflicts):
cosmos/feegrant/v1beta1/query.proto:4:1: warning: Import gogoproto/gogo.proto is unused
.(a FeeAllowanceGrant) GetFeeGrant()
method naming is a bit confusing. Why not just useGetAllowance()
?ExportGenesis
and remove height support in general and get rid ofPrepareForExport
method fromFeeAllowanceI
iface @aleem1314 x/feegrant remove height base expiration #9206x/feegrant/types
tox/feegrant
@blushi Move x/feegrant/types to x/feegrant #9273The text was updated successfully, but these errors were encountered: