Expand description
TIP-403 transfer policy registry precompile.
Manages whitelist, blacklist, and compound transfer policies that TIP-20 tokens reference to gate sender/recipient authorization.
Modules§
- ITIP403
Registry - Module containing a contract’s types and functions.
- __
packing_ compound_ policy_ data - __
packing_ policy_ data - __
packing_ policy_ record - dispatch
- ABI dispatch for the
TIP403Registryprecompile. - slots
Structs§
- Compound
Policy Data - Data for compound policies (TIP-1015)
- Compound
Policy Data Handler - Type-safe handler for accessing
#struct_namein storage. - Policy
Data - Base policy metadata. Packed into a single storage slot.
- Policy
Data Handler - Type-safe handler for accessing
#struct_namein storage. - Policy
Record - Policy record containing base data and optional data for compound policies (TIP-1015)
- Policy
Record Handler - Type-safe handler for accessing
#struct_namein storage. - TIP403
Registry
Enums§
- Auth
Role - Authorization role for policy checks.
- Policy
Type - TIP403
Registry Error - Container for all the
ITIP403Registrycustom errors. - TIP403
Registry Event - Container for all the
ITIP403Registryevents.
Constants§
- ALLOW_
ALL_ POLICY_ ID - Built-in policy ID that always allows authorization.
- REJECT_
ALL_ POLICY_ ID - Built-in policy ID that always rejects authorization.
Traits§
- Policy
Type 🔒Ext - Extension trait for
PolicyTypevalidation.
Functions§
- is_
policy_ lookup_ error - Returns
trueif the error indicates a failed policy lookup — the policy type is invalid or the policy doesn’t exist.