-
Notifications
You must be signed in to change notification settings - Fork 404
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
Allow feegrant for whitelisted contracts #1571
Comments
Thanks for bringing this idea up!
I think the general concept of My last point is CLI support. This may be getting a bit messy when we keep adding more
|
If we make a CosmWasm specific alternative to AllowedMsgAllowance, we can reduce the inner allowance to basic and periodic fee allowance. This then covers amounts and expiration. // allowance can be any of basic and periodic fee allowance.
google.protobuf.Any allowance = 1 [(cosmos_proto.accepts_interface) = "cosmos.feegrant.v1beta1.FeeAllowanceI"];
I think that would be powerful and consistent, reusing existing code. |
Please do this 👍🏼 - At Gelotto, we'd love to reduce the number of approvals users have to perform in the FE as well as the tx fees they have to pay. Instead, we'd prefer to pay fees out of our own backend. Something like this would go a long way to make that possible without requiring us to build our own idiosyncratic solution |
Hi! at chelo labs we would love to see this feature 🙏 |
Feature : Allow feegrant for whitelisted contracts
Summary
Currently, we can create Feegrants for the msg
cosmwasm.wasm.v1.MsgExecuteContract
, however, that is an extremely broad feegrant. A granter might not be comfortable subsidizing most possible txs of the grantee, esp on a permissionless Cosmwasm chain. The solution we propose is to allow feegrant for individual/set-of-whitelisted contracts.Problem Definition
On permissionless wasm chains, where the dapp contracts are more decoupled from the protocol, a general feegrant using
AllowedMsgAllowance
forcosmwasm.wasm.v1.MsgExecuteContract
is too permissive.e.g If a new NFT marketplace dapp wants to subsidize its users fees for launch week, there is no way they can provide the feegrant ensuring that it cant be used for other contracts.
Proposed Feature
Similar to how wasmd provides custom Authz extensions, we propose the implementation of custom
FeeAllowanceI
extension.This allows a dapp developer to provide feegrants for all their contracts, while ensuring other dapps cannot take advantage of the granters funds. And thus enables improved UX for dapps.
The text was updated successfully, but these errors were encountered: