virto-network / virto-node

Virto Network blockchain node.
GNU General Public License v3.0
21 stars 10 forks source link

Membership gas to pay fees #411

Open olanod opened 2 months ago

olanod commented 2 months ago

The main utility of memberships is to be able to interact with the blockchain without having to hold an asset as the membership contains an amount "auto-refilling gas". One way to make transactions use the gas in the membership for fees is to wrap every call with an extrinsic that implements a feeless_if condition, but as we want users to use their membership gas for everything, to make the submission of an extrinsic simpler and not require a wrapping transaction we should look into adding a signed extension that checks at a lower level of the extrinsic lifetime how to use the gas of the membership.