MustOwnBadges represents a condition where a user must own specific badges to be approved to transfer.

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

from message badges.MustOwnBadges

Hierarchy

Constructors

Properties

amountRange?: proto.badges.UintRange

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

from field: badges.UintRange amountRange = 2;

badgeIds: proto.badges.UintRange[] = []

The badge IDs the user must own.

from field: repeated badges.UintRange badgeIds = 4;

collectionId: string = ""

The ID of the badge collection.

from field: string collectionId = 1;

mustSatisfyForAllAssets: boolean = false

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

from field: bool mustSatisfyForAllAssets = 6;

overrideWithCurrentTime: boolean = false

If true, override ownershipTimes with the current time.

from field: bool overrideWithCurrentTime = 5;

ownershipTimes: proto.badges.UintRange[] = []

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

from field: repeated badges.UintRange ownershipTimes = 3;

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

Methods