Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

RelationLib

Git Source

Structs

RelationInitiatorDataPreset

Data for Delegate-based authorization

struct RelationInitiatorDataPreset {
    uint96 padding;
    address delegateAddr; // Authorized address allowed to initiate the relation
}

RelationInitiatorDataEligible

Data for Verified-based authorization

struct RelationInitiatorDataEligible {
    uint96 padding;
    address contractAddr; // Address of the rule-verifying contract
}

RelationInitiatorDataHolder

Data for Holder-based authorization

struct RelationInitiatorDataHolder {
    TokenType tokenType; // Value, Unique, or Object
    uint8 padding;
    uint48 tokenSet; // The set ID of the token
    uint64 tokenId; // The token ID of uniques or objects, 0 for values
    uint128 tokenAmount; // The requried amount of values, 1 for uniques or objects
}