Checkpoint
Represents a snapshot of the Security Token's supply and Tokenholder balances at a certain point in time
Hierarchy
Entity‹Params›
↳ Checkpoint
Index
Constructors
constructor
Properties
createdAt
dividendDistributions
index
securityTokenId
securityTokenSymbol
tokenholderBalances
totalSupply
uid
Methods
_refresh
toPojo
generateId
unserialize
Constructors
constructor
+ new Checkpoint(params
: Params & UniqueIdentifiers): Checkpoint
Create a new Chekpoint instance
Parameters:
Name
Type
params
Returns: Checkpoint
Properties
createdAt
• createdAt: Date
dividendDistributions
• dividendDistributions: DividendDistribution[]
dividend distributions associated to this snapshot
index
• index: number
numerical index of the checkpoint associated to this snapshot
securityTokenId
• securityTokenId: string
securityTokenSymbol
• securityTokenSymbol: string
tokenholderBalances
• tokenholderBalances: TokenholderBalance[]
tokenholder balances at this specific checkpoint
totalSupply
• totalSupply: BigNumber
uid
• uid: string
Overrides Entity.uid
Methods
_refresh
▸ _refresh(params
: Partial‹Params›): void
Overrides Entity._refresh
Hydrate the entity
Parameters:
Name
Type
params
Returns: void
toPojo
▸ toPojo(): object
Overrides Entity.toPojo
Convert entity to a POJO (Plain Old Javascript Object)
Returns: object
createdAt: Date
dividendDistributions: object[] = dividendDistributions.map(distribution => distribution.toPojo())
index: number
securityTokenId: string
securityTokenSymbol: string
tokenholderBalances: TokenholderBalance[]
totalSupply: BigNumber
uid: string
Static
generateId
Static
generateId▸ generateId(__namedParameters
: object): string
Generate the Checkpoint's UUID from its identifying properties
Parameters:
▪ __namedParameters: object
Name
Type
index
number
securityTokenId
string
Returns: string
Static
unserialize
Static
unserialize▸ unserialize(serialized
: string): UniqueIdentifiers
Unserialize string to Checkpoint object
Parameters:
Name
Type
serialized
string
Returns: UniqueIdentifiers
Last updated
Was this helpful?