Skip to main content
Version: 30.0.x

Class: Schedules

Defined in: src/api/entities/Asset/Fungible/Checkpoints/Schedules.ts:26

Handles all Asset Checkpoint Schedules related functionality

Extends

Methods

create()

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

Defined in: src/api/entities/Asset/Fungible/Checkpoints/Schedules.ts:52

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

Parameters

ParameterType

args

CreateCheckpointScheduleParams

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


get()

get(): Promise<ScheduleWithDetails[]>

Defined in: src/api/entities/Asset/Fungible/Checkpoints/Schedules.ts:82

Retrieve all active Checkpoint Schedules

Returns

Promise<ScheduleWithDetails[]>


getOne()

getOne(__namedParameters: object): Promise<ScheduleWithDetails>

Defined in: src/api/entities/Asset/Fungible/Checkpoints/Schedules.ts:64

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

Parameters

ParameterType

__namedParameters

{ id: BigNumber; }

__namedParameters.id

BigNumber

Returns

Promise<ScheduleWithDetails>

Throws

if there is no Schedule with the passed ID


maxComplexity()

maxComplexity(): Promise<BigNumber>

Defined in: src/api/entities/Asset/Fungible/Checkpoints/Schedules.ts:127

Retrieve the maximum allowed Schedule complexity for this Asset

Returns

Promise<BigNumber>


remove()

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

Defined in: src/api/entities/Asset/Fungible/Checkpoints/Schedules.ts:57

Remove the supplied Checkpoint Schedule for a given Asset

Parameters

ParameterType

args

RemoveCheckpointScheduleParams

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