Skip to main content

Module tip403_registry

Module tip403_registry 

Source
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§

ITIP403Registry
Module containing a contract’s types and functions.
__packing_compound_policy_data
__packing_policy_data
__packing_policy_record
dispatch
ABI dispatch for the TIP403Registry precompile.
slots

Structs§

CompoundPolicyData
Data for compound policies (TIP-1015)
CompoundPolicyDataHandler
Type-safe handler for accessing #struct_name in storage.
PolicyData
Base policy metadata. Packed into a single storage slot.
PolicyDataHandler
Type-safe handler for accessing #struct_name in storage.
PolicyRecord
Policy record containing base data and optional data for compound policies (TIP-1015)
PolicyRecordHandler
Type-safe handler for accessing #struct_name in storage.
TIP403Registry

Enums§

AuthRole
Authorization role for policy checks.
PolicyType
TIP403RegistryError
Container for all the ITIP403Registry custom errors.
TIP403RegistryEvent
Container for all the ITIP403Registry events.

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§

PolicyTypeExt 🔒
Extension trait for PolicyType validation.

Functions§

is_policy_lookup_error
Returns true if the error indicates a failed policy lookup — the policy type is invalid or the policy doesn’t exist.