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.

Re-exports§

pub use slots as tip403_registry_slots;

Modules§

ITIP403Registry
Module containing a contract’s types and functions.
__packing_compound_policy_data
__packing_policy_data
__packing_policy_record
__packing_receive_policy
__packing_receive_policy_config
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
TIP403 policy data
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.
ReceivePolicy 🔒
Per-account TIP-1028 receive policy configuration.
ReceivePolicyConfig 🔒
Per-account TIP-1028 receive policy configuration. Packed in a single slot.
ReceivePolicyConfigHandler
Type-safe handler for accessing #struct_name in storage.
ReceivePolicyHandler
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.
ALWAYS_AUTHORIZED
System addresses that cannot be policed.
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.