Class: UserOutgoingApprovalWithDetails<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1858
Extends
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new UserOutgoingApprovalWithDetails<
T>(data):UserOutgoingApprovalWithDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1864
Parameters
data
iUserOutgoingApprovalWithDetails<T>
Returns
UserOutgoingApprovalWithDetails<T>
Overrides
UserOutgoingApproval.constructor
Properties
approvalCriteria?
optionalapprovalCriteria?:OutgoingApprovalCriteriaWithDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1861
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
iUserOutgoingApprovalWithDetails.approvalCriteria
Overrides
UserOutgoingApproval.approvalCriteria
approvalId
approvalId:
string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:217
The ID of the approval. Must not be a duplicate of another approval ID in the same timeline.
Implementation of
iUserOutgoingApprovalWithDetails.approvalId
Inherited from
UserOutgoingApproval.approvalId
customData?
optionalcustomData?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:219
Arbitrary custom data of the approval
Implementation of
iUserOutgoingApprovalWithDetails.customData
Inherited from
UserOutgoingApproval.customData
details?
optionaldetails?:iApprovalInfoDetails
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1862
Implementation of
iUserOutgoingApprovalWithDetails.details
initiatedByList
initiatedByList:
AddressList
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1860
The populated address list for the initiatedByListId
Implementation of
iUserOutgoingApprovalWithDetails.initiatedByList
initiatedByListId
initiatedByListId:
string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:213
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
iUserOutgoingApprovalWithDetails.initiatedByListId
Inherited from
UserOutgoingApproval.initiatedByListId
ownershipTimes
ownershipTimes:
UintRangeArray<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:216
The ownership times of the tokens being transferred.
Implementation of
iUserOutgoingApprovalWithDetails.ownershipTimes
Inherited from
UserOutgoingApproval.ownershipTimes
tokenIds
tokenIds:
UintRangeArray<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:215
The token IDs to be transferred.
Implementation of
iUserOutgoingApprovalWithDetails.tokenIds
Inherited from
toList
toList:
AddressList
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1859
The populated address list for the toListId
Implementation of
iUserOutgoingApprovalWithDetails.toList
toListId
toListId:
string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:212
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
iUserOutgoingApprovalWithDetails.toListId
Inherited from
transferTimes
transferTimes:
UintRangeArray<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:214
The times allowed for the transfer transaction.
Implementation of
iUserOutgoingApprovalWithDetails.transferTimes
Inherited from
UserOutgoingApproval.transferTimes
uri?
optionaluri?:string
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:218
The URI of the approval.
Implementation of
iUserOutgoingApprovalWithDetails.uri
Inherited from
version
version:
T
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:221
The version of the approval.
Implementation of
iUserOutgoingApprovalWithDetails.version
Inherited from
Methods
castToCollectionTransfer()
castToCollectionTransfer(
fromAddress):CollectionApprovalWithDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1880
Parameters
fromAddress
string
Returns
CollectionApprovalWithDetails<T>
Overrides
UserOutgoingApproval.castToCollectionTransfer
castToUniversalPermission()
castToUniversalPermission(
fromAddress):UniversalPermission
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1889
Parameters
fromAddress
string
Returns
clone()
clone():
UserOutgoingApprovalWithDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1876
Deep copies the object and returns a new instance.
Returns
UserOutgoingApprovalWithDetails<T>
Overrides
convert()
convert<
U>(convertFunction,options?):UserOutgoingApprovalWithDetails<U>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:1872
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
UserOutgoingApprovalWithDetails<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:237
Internal helper method to convert the number fields of the object to a different NumberType equivalent.
Returns
string[]
Inherited from
UserOutgoingApproval.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
UserOutgoingApproval.hasNumberFields
toBech32Addresses()
toBech32Addresses(
prefix):UserOutgoingApproval<T>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:280
Parameters
prefix
string
Returns
Inherited from
UserOutgoingApproval.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
UserOutgoingApproval.toJsonString
toProto()
toProto():
UserOutgoingApproval
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:245
Returns
UserOutgoingApproval
Inherited from
fromJson()
staticfromJson<U>(jsonValue,convertFunction,options?):UserOutgoingApproval<U>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:249
Type Parameters
U
U extends NumberType
Parameters
jsonValue
JsonValue
convertFunction
(item) => U
options?
Partial<JsonReadOptions>
Returns
Inherited from
fromJsonString()
staticfromJsonString<U>(jsonString,convertFunction,options?):UserOutgoingApproval<U>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:257
Type Parameters
U
U extends NumberType
Parameters
jsonString
string
convertFunction
(item) => U
options?
Partial<JsonReadOptions>
Returns
Inherited from
UserOutgoingApproval.fromJsonString
fromProto()
staticfromProto<U>(item,convertFunction):UserOutgoingApproval<U>
Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:265
Type Parameters
U
U extends NumberType
Parameters
item
UserOutgoingApproval
convertFunction
(item) => U