Checkpoint

Represents a snapshot of the Asset's holders and their respective balances at a certain point in time

Hierarchy

Index

Properties

Methods

Properties

asset

asset: Asset

Defined in src/api/entities/Checkpoint.ts:51arrow-up-right

Asset whose balances are being recorded in this Checkpoint


Protected context

context: Context

Inherited from CheckpointSchedule.context

Defined in src/api/entities/Entity.ts:48arrow-up-right


id

id: BigNumber

Defined in src/api/entities/Checkpoint.ts:46arrow-up-right

Checkpoint identifier number


uuid

uuid: string

Inherited from CheckpointSchedule.uuid

Defined in src/api/entities/Entity.ts:46arrow-up-right

Methods

allBalances

allBalances(paginationOpts?: PaginationOptionsarrow-up-right): Promise‹ResultSetarrow-up-rightIdentityBalancearrow-up-right››

Defined in src/api/entities/Checkpoint.ts:108arrow-up-right

Retrieve all Asset Holder balances at this Checkpoint

note supports pagination

note current Asset holders who didn't hold any tokens when the Checkpoint was created will be listed with a balance of 0. This arises from a chain storage optimization and pagination. @see balance for a more detailed explanation of the logic

Parameters:

Name
Type

Returns: Promise‹ResultSetarrow-up-rightIdentityBalancearrow-up-right››


balance

balance(args?: undefined | object): Promise‹BigNumber›

Defined in src/api/entities/Checkpoint.ts:201arrow-up-right

Retrieve the balance of a specific Asset Holder Identity at this Checkpoint

note A checkpoint only records balances when they change. The implementation is to query for all balance updates for [ticker, did] pair. If no balance updates have happened since the Checkpoint has been created, then the storage will not have an entry for the user. Instead the current balance should be used. The balance is stored only when the Identity makes a transaction after a Checkpoint is created. This helps keep storage usage to a minimum

Parameters:

Name
Type

args?

undefined | object

Returns: Promise‹BigNumber›


createdAt

createdAt(): Promise‹Date›

Defined in src/api/entities/Checkpoint.ts:86arrow-up-right

Retrieve this Checkpoint's creation date

Returns: Promise‹Date›


exists

exists(): Promise‹boolean›

Overrides Entity.exists

Defined in src/api/entities/Checkpoint.ts:245arrow-up-right

Determine whether this Checkpoint exists on chain

Returns: Promise‹boolean›


isEqual

isEqual(entity: Entity‹unknown, unknown›): boolean

Inherited from CheckpointSchedule.isEqual

Defined in src/api/entities/Entity.ts:61arrow-up-right

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Entity‹unknown, unknown›

Returns: boolean


toJson

toJson(): HumanReadablearrow-up-right

Overrides Entity.toJson

Defined in src/api/entities/Checkpoint.ts:265arrow-up-right

Return the Checkpoint's ticker and identifier

Returns: HumanReadablearrow-up-right


totalSupply

totalSupply(): Promise‹BigNumber›

Defined in src/api/entities/Checkpoint.ts:68arrow-up-right

Retrieve the Asset's total supply at this checkpoint

Returns: Promise‹BigNumber›


Static generateUuid

generateUuidIdentifiers›(identifiers: Identifiers): string

Inherited from CheckpointSchedule.generateUuid

Defined in src/api/entities/Entity.ts:14arrow-up-right

Generate the Entity's UUID from its identifying properties

Type parameters:

Identifiers

Parameters:

Name
Type
Description

identifiers

Identifiers

Returns: string


Static unserialize

unserializeIdentifiers›(serialized: string): Identifiers

Inherited from CheckpointSchedule.unserialize

Defined in src/api/entities/Entity.ts:23arrow-up-right

Unserialize a UUID into its Unique Identifiers

Type parameters:

Identifiers

Parameters:

Name
Type
Description

serialized

string

UUID to unserialize

Returns: Identifiers

Last updated

Was this helpful?