access_policy
Module0x34a2…c82c
- Move path
- 0xbc3d…e5f9::access_policy
- Functions
- 1912 public, 3 entry
- Structs
- 4
- Friend modules
- None
access_policy
- access_policy19
- attributes18
- collection19
- composable_nft28
- composable_svg27
- composable_url10
- creators16
- display_info14
- frozen_pub1
- mint_cap15
- mint_event3
- mint_pass12
- mint_supply19
- nft18
- nft_bag28
- nft_protocol5
- p2p_list8
- p2p_list_domain13
- plugins14
- royalty29
- royalty_strategy_bps23
- session_token8
- supply27
- svg13
- symbol10
- tags11
- transfer_allowlist6
- transfer_allowlist_domain13
- transfer_token5
- url7
Functions19
- public fun add_field_access<T0: store + key, T1: store>(witness::Witness<T0>,&mut collection::Collection<T0>,vector<address>)
- public fun add_field_access_to_policy<T0: store + key, T1: store>(witness::Witness<T0>,&mut AccessPolicy<T0>,vector<address>)
- public fun add_parent_access<T0: store + key>(witness::Witness<T0>,&mut collection::Collection<T0>,vector<address>)
- public fun add_parent_access_to_policy<T0: store + key>(witness::Witness<T0>,&mut AccessPolicy<T0>,vector<address>)
- public fun confirm<T0: drop, T1: store + key>(&AccessPolicy<T1>,&mut borrow_request::BorrowRequest<T0, T1>)
- public fun confirm_from_collection<T0: drop, T1: store + key>(&collection::Collection<T1>,&mut borrow_request::BorrowRequest<T0, T1>)
- public entry fun enforce<T0, T1>(&mut request::Policy<request::WithNft<T0, T1>>,&request::PolicyCap)
Structs4
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
id UID version u64 parent_access VecSet<address> field_access Table<TypeName, VecSet<address>> - AccessPolicyRuledrop
dummy_field bool - NewPolicyEventcopydrop
policy_id ID type_name TypeName - Witnessdrop
dummy_field bool
Constants5
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 2 | u64 | Abort code | create_newadd_newassert_field_authassert_versionand 3 more |
| 1 | 999 | u64 | Value | |
| 2 | 1000 | u64 | Abort code | assert_version |
| 3 | 1 | u64 | Abort code | assert_no_access_policy |
| 4 | 3 | u64 | Abort code | assert_parent_auth |