Skip to content

T extends NumberType

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1897

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

new UserIncomingApprovalWithDetails<T>(data): UserIncomingApprovalWithDetails<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1903

Parameters

data

iUserIncomingApprovalWithDetails<T>

Returns

UserIncomingApprovalWithDetails<T>

Overrides

UserIncomingApproval.constructor

Properties

approvalCriteria?

optional approvalCriteria?: IncomingApprovalCriteriaWithDetails<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1901

The criteria to be met. These represent the restrictions that must be obeyed such as the total amount approved, max num transfers, merkle challenges, must own tokens, etc.

Implementation of

iUserIncomingApprovalWithDetails.approvalCriteria

Overrides

UserIncomingApproval.approvalCriteria


approvalId

approvalId: string

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1056

The ID of the approval. Must not be a duplicate of another approval ID in the same timeline.

Implementation of

iUserIncomingApprovalWithDetails.approvalId

Inherited from

UserIncomingApproval.approvalId


customData?

optional customData?: string

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1058

Arbitrary custom data of the approval

Implementation of

iUserIncomingApprovalWithDetails.customData

Inherited from

UserIncomingApproval.customData


details?

optional details?: ApprovalInfoDetails<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1898

Implementation of

iUserIncomingApprovalWithDetails.details


fromList

fromList: AddressList

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1899

The populated address list for fromListId

Implementation of

iUserIncomingApprovalWithDetails.fromList


fromListId

fromListId: string

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1051

The list ID for the user(s) who is sending the tokens. The ID is either registered on-chain for reusability or follows the reserved ID system.

Implementation of

iUserIncomingApprovalWithDetails.fromListId

Inherited from

UserIncomingApproval.fromListId


initiatedByList

initiatedByList: AddressList

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1900

The populated address list for initiatedByListId

Implementation of

iUserIncomingApprovalWithDetails.initiatedByList


initiatedByListId

initiatedByListId: string

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1052

The list ID for the user(s) who initiate the transfer. The ID is either registered on-chain for reusability or follows the reserved ID system.

Implementation of

iUserIncomingApprovalWithDetails.initiatedByListId

Inherited from

UserIncomingApproval.initiatedByListId


ownershipTimes

ownershipTimes: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1055

The ownership times of the tokens being transferred.

Implementation of

iUserIncomingApprovalWithDetails.ownershipTimes

Inherited from

UserIncomingApproval.ownershipTimes


tokenIds

tokenIds: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1054

The token IDs to be transferred.

Implementation of

iUserIncomingApprovalWithDetails.tokenIds

Inherited from

UserIncomingApproval.tokenIds


transferTimes

transferTimes: UintRangeArray<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1053

The times allowed for the transfer transaction.

Implementation of

iUserIncomingApprovalWithDetails.transferTimes

Inherited from

UserIncomingApproval.transferTimes


uri?

optional uri?: string

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1057

The URI of the approval.

Implementation of

iUserIncomingApprovalWithDetails.uri

Inherited from

UserIncomingApproval.uri


version

version: T

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1060

The version of the approval.

Implementation of

iUserIncomingApprovalWithDetails.version

Inherited from

UserIncomingApproval.version

Methods

castToCollectionTransfer()

castToCollectionTransfer(toAddress): CollectionApprovalWithDetails<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1919

Parameters

toAddress

string

Returns

CollectionApprovalWithDetails<T>

Overrides

UserIncomingApproval.castToCollectionTransfer


castToUniversalPermission()

castToUniversalPermission(toAddress): UniversalPermission

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1928

Parameters

toAddress

string

Returns

UniversalPermission


clone()

clone(): UserIncomingApprovalWithDetails<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1911

Deep copies the object and returns a new instance.

Returns

UserIncomingApprovalWithDetails<T>

Overrides

UserIncomingApproval.clone


convert()

convert<U>(convertFunction, options?): UserIncomingApprovalWithDetails<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1915

Converts the object to a different NumberType equivalent.

Type Parameters

U

U extends NumberType

Parameters

convertFunction

(item) => U

options?

ConvertOptions

Returns

UserIncomingApprovalWithDetails<U>

Overrides

UserIncomingApproval.convert


equals()

equals<U>(other, normalizeNumberTypes?): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:147

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

U

U extends CustomType<U>

Parameters

other

CustomType<U> | null | undefined

normalizeNumberTypes?

boolean

Returns

boolean

Inherited from

UserIncomingApproval.equals


getNumberFieldNames()

getNumberFieldNames(): string[]

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1076

Internal helper method to convert the number fields of the object to a different NumberType equivalent.

Returns

string[]

Inherited from

UserIncomingApproval.getNumberFieldNames


hasNumberFields()

hasNumberFields(): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:161

Checks if the object has number fields.

Returns

boolean

Inherited from

UserIncomingApproval.hasNumberFields


toBech32Addresses()

toBech32Addresses(prefix): UserIncomingApproval<T>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1127

Parameters

prefix

string

Returns

UserIncomingApproval<T>

Inherited from

UserIncomingApproval.toBech32Addresses


toJson()

toJson(): JsonObject

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:139

Converts the object to a JSON object with all primitive types.

Returns

JsonObject

Inherited from

UserIncomingApproval.toJson


toJsonString()

toJsonString(): string

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:143

Converts the object to a JSON string.

Returns

string

Inherited from

UserIncomingApproval.toJsonString


toProto()

toProto(): UserIncomingApproval

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1084

Returns

UserIncomingApproval

Inherited from

UserIncomingApproval.toProto


fromJson()

static fromJson<U>(jsonValue, convertFunction, options?): UserIncomingApproval<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1088

Type Parameters

U

U extends NumberType

Parameters

jsonValue

JsonValue

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

UserIncomingApproval<U>

Inherited from

UserIncomingApproval.fromJson


fromJsonString()

static fromJsonString<U>(jsonString, convertFunction, options?): UserIncomingApproval<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1096

Type Parameters

U

U extends NumberType

Parameters

jsonString

string

convertFunction

(item) => U

options?

Partial<JsonReadOptions>

Returns

UserIncomingApproval<U>

Inherited from

UserIncomingApproval.fromJsonString


fromProto()

static fromProto<U>(item, convertFunction): UserIncomingApproval<U>

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1104

Type Parameters

U

U extends NumberType

Parameters

item

UserIncomingApproval

convertFunction

(item) => U

Returns

UserIncomingApproval<U>

Inherited from

UserIncomingApproval.fromProto

Edit this page on GitHub