bitbadgesjs-sdk - v0.27.2
    Preparing search index...

    Class MustOwnTokens

    MustOwnTokens represents a condition where a user must own specific tokens to be approved to transfer.

    • collectionId: The ID of the collection for the tokens that must be owned
    • amountRange: The range of amounts the user must own (min to max)
    • ownershipTimes: The time ranges during which the user must own the tokens.
    • tokenIds: The token IDs the user must own.
    • overrideWithCurrentTime: If true, auto override ownershipTimes with the current time.
    • mustSatisfyForAllAssets: If true, the user must own all specified tokens; otherwise, owning any one for >= 1 millisecond is sufficient.

    from message badges.MustOwnTokens

    Hierarchy

    Index

    Constructors

    Properties

    amountRange?: badges.UintRange

    The range of amounts the user must own (min to max).

    from field: badges.UintRange amountRange = 2;

    collectionId: string = ""

    The ID of the collection.

    from field: string collectionId = 1;

    mustSatisfyForAllAssets: boolean = false

    If true, the user must meet ownership requirements for all specified tokens; else, must meet requirements for any single token.

    from field: bool mustSatisfyForAllAssets = 6;

    overrideWithCurrentTime: boolean = false

    If true, override ownershipTimes with the current time.

    from field: bool overrideWithCurrentTime = 5;

    ownershipCheckParty: string = ""

    The party to check ownership for. Options are "initiator", "sender", "recipient", or any valid bb1 address. If a valid bb1 address is provided, ownership will be checked for that specific address. This enables use cases like halt tokens where ownership is checked for an arbitrary address (e.g., halt token owner). Defaults to "initiator" if empty or if the value is not a recognized option or valid bb1 address.

    from field: string ownershipCheckParty = 7;

    ownershipTimes: badges.UintRange[] = []

    The time ranges during which the user must own the tokens.

    from field: repeated badges.UintRange ownershipTimes = 3;

    tokenIds: badges.UintRange[] = []

    The token IDs the user must own.

    from field: repeated badges.UintRange tokenIds = 4;

    fields: FieldList = ...
    runtime: ProtoRuntime = proto3
    typeName: "badges.MustOwnTokens"

    Methods