@wharfkit/atomicassets - v4.0.2
    Preparing search index...

    Class RoyaltyAttributeRule

    A royaltyattr row: the attribute-matched recipient override. AtomicMarket v2 only.

    Hierarchy

    • Struct$1
      • RoyaltyAttributeRule
    Index
    collection_name: Name
    created_at_block: UInt64
    created_at_time: string
    field: string
    lookup_hash: string

    Hex-encoded sha256 of the matched attribute, as the contract stores it.

    market_contract: Name
    recipients: RoyaltyPair[]
    rule_id: UInt64
    source: UInt8

    Which data source the matched attribute is read from, as the contract stores it.

    updated_at_block: UInt64
    updated_at_time: string
    value: [string, unknown]

    The raw ["type", value] variant tuple the rule matches on. It is kept untyped so an integer payload stays the string the API sent and nothing is reparsed. The content is chain-authored by the collection and relayed by the indexer, so a caller shape-checks it before use.

    weight: UInt32
    abiBase: ABISerializableConstructor
    abiFields: ABIField[]
    abiName: string
    • get structFields(): ABIField[]

      Returns ABIField[]

    • Return true if this struct equals the other.

      Note: This compares the ABI encoded bytes of both structs, subclasses should implement their own fast equality check when possible.

      Parameters

      • other: any

      Returns boolean

    • Type Parameters

      • T extends StructConstructor

      Parameters

      • this: T
      • value: any

      Returns InstanceType<T>

    • Parameters

      • value: any

      Returns unknown