Skip to main content
Version: 23.2.x

Class: Schedules

api/entities/Asset/Fungible/Checkpoints/Schedules.Schedules

Handles all Asset Checkpoint Schedules related functionality

Hierarchy

Methods

create

create(args, opts?): Promise<GenericPolymeshTransaction<CheckpointSchedule, CheckpointSchedule>>

Create a schedule for Checkpoint creation (e.g. "Create a checkpoint every week for 5 weeks, starting next tuesday")

Parameters

NameType
argsCreateCheckpointScheduleParams
opts?ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<CheckpointSchedule, CheckpointSchedule>>

Note

⚠️ Chain v6 introduces changes in how checkpoints are created. Only a set amount of points can be specified, infinitely repeating schedules are deprecated

Note

due to chain limitations, schedules are advanced and (if appropriate) executed whenever the Asset is redeemed, issued or transferred between portfolios. This means that on an Asset without much movement, there may be disparities between intended Checkpoint creation dates and the actual date when they are created. This, however, has no effect on the Checkpoint's accuracy regarding to balances

Note

this method is of type ProcedureMethod, which means you can call create.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Defined in

api/entities/Asset/Fungible/Checkpoints/Schedules.ts:57


get

get(): Promise<ScheduleWithDetails[]>

Retrieve all active Checkpoint Schedules

Returns

Promise<ScheduleWithDetails[]>

Defined in

api/entities/Asset/Fungible/Checkpoints/Schedules.ts:94


getOne

getOne(«destructured»): Promise<ScheduleWithDetails>

Retrieve a single Checkpoint Schedule associated to this Asset by its ID

Parameters

NameType
«destructured»Object
› idBigNumber

Returns

Promise<ScheduleWithDetails>

Throws

if there is no Schedule with the passed ID

Defined in

api/entities/Asset/Fungible/Checkpoints/Schedules.ts:76


maxComplexity

maxComplexity(): Promise<BigNumber>

Retrieve the maximum allowed Schedule complexity for this Asset

Returns

Promise<BigNumber>

Defined in

api/entities/Asset/Fungible/Checkpoints/Schedules.ts:137


remove

remove(args, opts?): Promise<GenericPolymeshTransaction<void, void>>

Remove the supplied Checkpoint Schedule for a given Asset

Parameters

NameType
argsRemoveCheckpointScheduleParams
opts?ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<void, void>>

Note

this method is of type ProcedureMethod, which means you can call remove.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Defined in

api/entities/Asset/Fungible/Checkpoints/Schedules.ts:67