Class: TransferActivityDoc<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:77
Extends
ActivityDoc<T>
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new TransferActivityDoc<
T>(data):TransferActivityDoc<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:98
Parameters
data
Returns
TransferActivityDoc<T>
Overrides
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:24
A unique stringified document ID
Implementation of
Inherited from
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:25
A unique document ID (Mongo DB ObjectID)
Implementation of
Inherited from
_notificationsHandled?
optional_notificationsHandled?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:23
Whether or not the notifications have been handled by the indexer or not.
Implementation of
iTransferActivityDoc._notificationsHandled
Inherited from
ActivityDoc._notificationsHandled
approvalsUsed?
optionalapprovalsUsed?:ApprovalIdentifierDetails<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:92
Approvals used for the transfer
Implementation of
iTransferActivityDoc.approvalsUsed
balances
balances:
BalanceArray<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:80
The list of balances and token IDs that were transferred.
Implementation of
block
block:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:22
The block number of the activity.
Implementation of
Inherited from
coinTransfers?
optionalcoinTransfers?:CoinTransferItem<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:91
Coin transfers details
Implementation of
iTransferActivityDoc.coinTransfers
collectionId
collectionId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:81
The collection ID for the tokens that was transferred.
Implementation of
iTransferActivityDoc.collectionId
denom?
optionaldenom?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:96
The denomination of the transfer
Implementation of
from
from:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:79
The sender of the tokens.
Implementation of
initiatedBy
initiatedBy:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:82
The user who initiated the transfer transaction.
Implementation of
iTransferActivityDoc.initiatedBy
memo?
optionalmemo?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:85
The memo of the transfer.
Implementation of
precalculateBalancesFromApproval?
optionalprecalculateBalancesFromApproval?:PrecalculateBalancesFromApprovalDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:86
Which approval to use to precalculate the balances?
Implementation of
iTransferActivityDoc.precalculateBalancesFromApproval
precalculationOptions?
optionalprecalculationOptions?:PrecalculationOptions<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:90
Precalculation options
Implementation of
iTransferActivityDoc.precalculationOptions
price?
optionalprice?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:94
The price of the transfer
Implementation of
prioritizedApprovals?
optionalprioritizedApprovals?:ApprovalIdentifierDetails<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:87
The prioritized approvals of the transfer. This is used to check certain approvals before others to ensure intended behavior.
Implementation of
iTransferActivityDoc.prioritizedApprovals
private?
optionalprivate?:boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:89
Only for private purposes?
Implementation of
timestamp
timestamp:
T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:21
The timestamp of the activity.
Implementation of
iTransferActivityDoc.timestamp
Inherited from
to
to:
string[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:78
The list of recipients.
Implementation of
tokenId?
optionaltokenId?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:93
The token ID for the transfer
Implementation of
txHash?
optionaltxHash?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:83
The transaction hash of the activity.
Implementation of
volume?
optionalvolume?:T
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:95
The volume of the transfer
Implementation of
Methods
clone()
clone():
ActivityDoc
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
Inherited from
convert()
convert<
U>(convertFunction,options?):TransferActivityDoc<U>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/activity.ts:125
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
TransferActivityDoc<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/api-indexer/docs-types/activity.ts:121
Internal helper method to convert the number fields of the object to a different NumberType equivalent.
Returns
string[]
Overrides
ActivityDoc.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
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