You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is blocked until the protocol work is further along.
Approach Summary
The chosen approach is roughly as follows (finer details will depend on the protocol work).
Accounts providing some service will have a standard function which returns a fee estimate for a given user input note.
Users wishing to use this service will invoke this function to obtain a fee estimate.
Users submit their note, and an additional SponsorshipNote containing the fee for the service.
The sponsor note is linked to the user note directly, and can only be consumed if the user note is executed as well.
Service account consumes both, user note is executed, fee is claimed.
This applies to network accounts, and therefore network transactions need to support this flow.
Wrinkles
Sponsorship notes do not have to originate from the same transaction as the user note.
Some third party might sponsor the note, or
user may post it some time later/earlier
Multiple sponsorship notes may exist for a given note
This also means multiple asset types can exist, though perhaps we can simplify initially so we don't need a price oracle.
I imagine sponsorship notes can be reclaimable by the sender.
Price fluctuations and decisions on when a sponsorship note is insufficient.
Probably fair to just say one pass is good enough i.e. if it fails once then its dropped.
Network account may itself depend on other third party services i.e. fee estimates can fan out.
In general, fee estimations will require FPI.
This also means users will invoke FPI much more regularly, and perhaps we should consider some dedicated caching here for network accounts in the node.
For full context, see the protocols tracking issue 0xMiden/protocol#3264 which will implement option C from 0xMiden/protocol#2968 (comment).
Note
This is blocked until the protocol work is further along.
Approach Summary
The chosen approach is roughly as follows (finer details will depend on the protocol work).
SponsorshipNotecontaining the fee for the service.This applies to network accounts, and therefore network transactions need to support this flow.
Wrinkles