Expand description
Rust bindings for sui::allowance.
At signing, a transaction’s declared (funder, allowance) pair is checked against the loaded
Allowance object, and the withdrawal is reserved against the funder’s balance. At execution,
the adapter mints the AllowanceWithdrawal<T> that the allowance’s spend paths consume.
Structs§
- Allowance
- Mirror of the Move struct
sui::allowance::Allowance<T>. - Resolved
Allowance - Sign-time view of an
Allowance<T>. NB: The spender can rotate from transaction to transaction. - Settings
- Mirror of the Move struct
sui::allowance::Settings.
Enums§
- Rate
Limit - Mirror of the Move enum
sui::allowance::RateLimit. - Window
- Mirror of the Move enum
sui::allowance::Window.
Constants§
- ALLOWANCE_
MODULE_ NAME - ALLOWANCE_
STRUCT_ NAME - ALLOWANCE_
WITHDRAWAL_ STRUCT_ NAME - RESOLVED_
ALLOWANCE_ WITHDRAWAL_ STRUCT
Functions§
- parse_
allowance_ object - Parses an object as an
Allowance, extracting the sign-time-relevant fields.