Class: UserIncomingApprovalWithDetails<T>
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?
optionalapprovalCriteria?: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?
optionalcustomData?: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?
optionaldetails?: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
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?
optionaluri?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1057
The URI of the approval.
Implementation of
iUserIncomingApprovalWithDetails.uri
Inherited from
version
version:
T
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1060
The version of the approval.
Implementation of
iUserIncomingApprovalWithDetails.version
Inherited from
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
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
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?
Returns
UserIncomingApprovalWithDetails<U>
Overrides
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
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
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
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
fromJson()
staticfromJson<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
Inherited from
fromJsonString()
staticfromJsonString<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
Inherited from
UserIncomingApproval.fromJsonString
fromProto()
staticfromProto<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