@polkadot/types
Version:
Implementation of the Parity codec
33 lines (32 loc) • 1.14 kB
TypeScript
import type { Option, Struct } from '@polkadot/types-codec';
import type { Balance, Weight, WeightV1, WeightV2 } from '@polkadot/types/interfaces/runtime';
import type { DispatchClass } from '@polkadot/types/interfaces/system';
/** @name FeeDetails */
export interface FeeDetails extends Struct {
readonly inclusionFee: Option<InclusionFee>;
}
/** @name InclusionFee */
export interface InclusionFee extends Struct {
readonly baseFee: Balance;
readonly lenFee: Balance;
readonly adjustedWeightFee: Balance;
}
/** @name RuntimeDispatchInfo */
export interface RuntimeDispatchInfo extends Struct {
readonly weight: Weight;
readonly class: DispatchClass;
readonly partialFee: Balance;
}
/** @name RuntimeDispatchInfoV1 */
export interface RuntimeDispatchInfoV1 extends Struct {
readonly weight: WeightV1;
readonly class: DispatchClass;
readonly partialFee: Balance;
}
/** @name RuntimeDispatchInfoV2 */
export interface RuntimeDispatchInfoV2 extends Struct {
readonly weight: WeightV2;
readonly class: DispatchClass;
readonly partialFee: Balance;
}
export type PHANTOM_PAYMENT = 'payment';