Module snip1155_reference_impl::state::permissions
source · Structs
- struct to store permission for a
[token_id, owner, allowed_addr]combination - to store all keys to access all permissions for a given
owner
Statics
Functions
- Return (Vec<
PermissionKey { token_id, allowed_addr }>, u64) returns a list and total number of PermissionKeys for a given owner. The PermissionKeys represents (part of) the keys to retrieve all permissions anownerhas currently granted - returns StdResult<Option
> for a given [ owner,token_id,allowed_addr] combination. Returns “dormant” permissions we well, ie: where owner doesn’t currently own tokens. If permission does not exist -> returns StdResult - saves new permission entry and adds identifier to the list of permissions the owner address has
- updates an existing permission entry. Returns error if permission entry does not aleady exist