interbtc-api

@interlay/interbtc-api / Exports / DefaultConstantsAPI

Class: DefaultConstantsAPI

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DefaultConstantsAPI(api): DefaultConstantsAPI

Parameters

Name Type
api ApiPromise

Returns

DefaultConstantsAPI

Defined in

src/parachain/constants.ts:29

Properties

api

Private api: ApiPromise

Defined in

src/parachain/constants.ts:29

Methods

getSystemBlockHashCount

getSystemBlockHashCount(): BlockNumber

Returns

BlockNumber

Maximum number of block number to block hash mappings to keep (oldest pruned first).

Implementation of

ConstantsAPI.getSystemBlockHashCount

Defined in

src/parachain/constants.ts:31


getSystemDbWeight

getSystemDbWeight(): SpWeightsRuntimeDbWeight

Returns

SpWeightsRuntimeDbWeight

The weight of database operations that the runtime can invoke.

Implementation of

ConstantsAPI.getSystemDbWeight

Defined in

src/parachain/constants.ts:35


getTimestampMinimumPeriod

getTimestampMinimumPeriod(): Moment

Returns

Moment

The minimum period between blocks. Beware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. e.g. For Aura, it will be double this period on default settings.

Implementation of

ConstantsAPI.getTimestampMinimumPeriod

Defined in

src/parachain/constants.ts:39