Polymesh SDK API Reference
beta
beta
  • Globals
  • Classes
    • Account
    • AccountManagement
    • Asset
    • AssetHolders
    • AssetPermissions
    • Assets
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • CorporateAction
    • CorporateActionBase
    • CorporateActions
    • Count
    • CustomPermissionGroup
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identities
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • KnownPermissionGroup
    • Network
    • NumberedPortfolio
    • Offering
    • Offerings
    • Percentage
    • PermissionGroup
    • Permissions
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • Settlements
    • Subsidy
    • TickerReservation
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
  • Interfaces
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Properties
  • Methods
  • Properties
  • asset
  • Protected context
  • id
  • uuid
  • Methods
  • allBalances
  • balance
  • createdAt
  • exists
  • isEqual
  • toHuman
  • totalSupply
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

Checkpoint

PreviousAuthorizationsNextCheckpointSchedule

Last updated 2 years ago

Was this helpful?

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

Hierarchy

  • ‹UniqueIdentifiers, ›

    ↳ Checkpoint

Index

Properties

Methods

Properties

asset

Asset whose balances are being recorded in this Checkpoint


Protected context

• context: Context


id

• id: BigNumber

Checkpoint identifier number


uuid

• uuid: string

Methods

allBalances

Retrieve all Asset Holder balances at this Checkpoint

note supports pagination

Parameters:

Name
Type

paginationOpts?


balance

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

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›

Retrieve this Checkpoint's creation date

Returns: Promise‹Date›


exists

▸ exists(): Promise‹boolean›

Determine whether this Checkpoint exists on chain

Returns: Promise‹boolean›


isEqual

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Returns: boolean


toHuman

Return the Checkpoint's ticker and identifier


totalSupply

▸ totalSupply(): Promise‹BigNumber›

Retrieve the Asset's total supply at this checkpoint

Returns: Promise‹BigNumber›


Static generateUuid

▸ generateUuid‹Identifiers›(identifiers: Identifiers): string

Generate the Entity's UUID from its identifying properties

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

identifiers

Identifiers

Returns: string


Static unserialize

▸ unserialize‹Identifiers›(serialized: string): Identifiers

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

serialized

string

UUID to unserialize

Returns: Identifiers

• asset:

Defined in

Inherited from .

Defined in

Defined in

Inherited from .

Defined in

▸ allBalances(paginationOpts?: ): Promise‹‹››

Defined in

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 for a more detailed explanation of the logic

Returns: Promise‹‹››

Defined in

Defined in

Overrides .

Defined in

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

Inherited from .

Defined in

‹unknown, unknown›

â–¸ toHuman():

Overrides .

Defined in

Returns:

Defined in

Inherited from .

Defined in

Inherited from .

Defined in

Asset
src/api/entities/Checkpoint.ts:51
src/api/entities/Entity.ts:48
src/api/entities/Checkpoint.ts:46
src/api/entities/Entity.ts:46
PaginationOptions
ResultSet
IdentityBalance
src/api/entities/Checkpoint.ts:108
ResultSet
IdentityBalance
src/api/entities/Checkpoint.ts:201
src/api/entities/Checkpoint.ts:86
src/api/entities/Checkpoint.ts:245
Entity
src/api/entities/Entity.ts:61
HumanReadable
src/api/entities/Checkpoint.ts:265
HumanReadable
src/api/entities/Checkpoint.ts:68
src/api/entities/Entity.ts:14
src/api/entities/Entity.ts:23
Entity
HumanReadable
asset
context
id
uuid
allBalances
balance
createdAt
exists
isEqual
toHuman
totalSupply
generateUuid
unserialize
balance
PaginationOptions
Entity
CheckpointSchedule
CheckpointSchedule
Entity
CheckpointSchedule
Entity
CheckpointSchedule
CheckpointSchedule
exists
toHuman
context
uuid
isEqual
generateUuid
unserialize