Class MsgTransferBadges<T>

MsgTransferBadges represents a message to transfer badges from one user to another. For a transfer to be successful, the transfer has to satisfy the following conditions:

  • Be approved on the collection level
  • Be approved by the recipient's incoming transfers (if not forcefully overriden by the collection)
  • Be approved by the sender's outgoing transfers (if not forcefully overriden by the collection)
  • The sender must have enough badges to transfer
  • All restrictions and challenges for each approval must be satisfied (merkle challenges, approved amounts, max num transfers, ...)

Note that the transfer transaction is atomic, meaning that either all transfers succeed or all fail.

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

collectionId: T

The ID of the collection to transfer badges from.

creator: string

The creator of the transaction.

transfers: Transfer<T>[]

The transfers to perform.

Methods

  • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

    If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

    Type Parameters

    Parameters

    • other: undefined | null | CustomType<U>
    • OptionalnormalizeNumberTypes: boolean

    Returns boolean