diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index 08a702e60a..6b926b350d 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -37,6 +37,7 @@ import { FullIdentification, IdentificationTuple, Keys, MembershipProof, Session import { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society'; import { ActiveEraInfo, CompactAssignments, CompactScore, ElectionCompute, ElectionResult, ElectionStatus, EraIndex, EraPoints, EraRewardPoints, EraRewards, Exposure, Forcing, IndividualExposure, KeyType, MomentOf, Nominations, NominatorIndex, OffchainAccuracy, PerU16, PhragmenScore, Points, ReleasesStaking, RewardDestination, RewardPoint, SlashJournalEntry, SlashingSpans, SlashingSpansTo204, SpanIndex, SpanRecord, StakingLedger, StakingLedgerTo223, StakingLedgerTo240, UnappliedSlash, UnappliedSlashOther, UnlockChunk, ValidatorIndex, ValidatorPrefs, ValidatorPrefsTo145, ValidatorPrefsTo196 } from '@polkadot/types/interfaces/staking'; import { ApiId, KeyValueOption, ReadProof, RuntimeVersion, RuntimeVersionApi, StorageChangeSet } from '@polkadot/types/interfaces/state'; +import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support'; import { AccountInfo, ChainProperties, ChainType, DigestOf, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Health, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, Phase, RefCount } from '@polkadot/types/interfaces/system'; import { OpenTip, OpenTipFinder, OpenTipTip, TreasuryProposal } from '@polkadot/types/interfaces/treasury'; import { Multiplier } from '@polkadot/types/interfaces/txpayment'; @@ -965,6 +966,9 @@ declare module '@polkadot/types/types/registry' { ValidatorPrefsTo145: ValidatorPrefsTo145; 'Option': Option; 'Vec': Vec; + WeightToFeeCoefficient: WeightToFeeCoefficient; + 'Option': Option; + 'Vec': Vec; AccountInfo: AccountInfo; 'Option': Option; 'Vec': Vec; diff --git a/packages/types/src/interfaces/definitions.ts b/packages/types/src/interfaces/definitions.ts index 560b509bff..4e56717eae 100644 --- a/packages/types/src/interfaces/definitions.ts +++ b/packages/types/src/interfaces/definitions.ts @@ -28,6 +28,7 @@ export { default as scheduler } from './scheduler/definitions'; export { default as session } from './session/definitions'; export { default as society } from './society/definitions'; export { default as staking } from './staking/definitions'; +export { default as support } from './support/definitions'; export { default as system } from './system/definitions'; export { default as treasury } from './treasury/definitions'; export { default as txpayment } from './txpayment/definitions'; diff --git a/packages/types/src/interfaces/support/definitions.ts b/packages/types/src/interfaces/support/definitions.ts new file mode 100644 index 0000000000..c75183a6e0 --- /dev/null +++ b/packages/types/src/interfaces/support/definitions.ts @@ -0,0 +1,20 @@ +// Copyright 2017-2020 @polkadot/types authors & contributors +// This software may be modified and distributed under the terms +// of the Apache-2.0 license. See the LICENSE file for details. + +// order important in structs... :) +/* eslint-disable sort-keys */ + +import { Definitions } from '../../types'; + +export default { + rpc: {}, + types: { + WeightToFeeCoefficient: { + coeffInteger: 'Balance', + coeffFrac: 'Perbill', + negative: 'bool', + degree: 'u8' + } + } +} as Definitions; diff --git a/packages/types/src/interfaces/support/index.ts b/packages/types/src/interfaces/support/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/packages/types/src/interfaces/support/index.ts @@ -0,0 +1,4 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +export * from './types'; diff --git a/packages/types/src/interfaces/support/types.ts b/packages/types/src/interfaces/support/types.ts new file mode 100644 index 0000000000..45e53e9d20 --- /dev/null +++ b/packages/types/src/interfaces/support/types.ts @@ -0,0 +1,16 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +import { Struct } from '@polkadot/types/codec'; +import { bool, u8 } from '@polkadot/types/primitive'; +import { Balance, Perbill } from '@polkadot/types/interfaces/runtime'; + +/** @name WeightToFeeCoefficient */ +export interface WeightToFeeCoefficient extends Struct { + readonly coeffInteger: Balance; + readonly coeffFrac: Perbill; + readonly negative: bool; + readonly degree: u8; +} + +export type PHANTOM_SUPPORT = 'support'; diff --git a/packages/types/src/interfaces/types.ts b/packages/types/src/interfaces/types.ts index f02434b72f..d3a6b722b0 100644 --- a/packages/types/src/interfaces/types.ts +++ b/packages/types/src/interfaces/types.ts @@ -24,6 +24,7 @@ export * from './scheduler/types'; export * from './session/types'; export * from './society/types'; export * from './staking/types'; +export * from './support/types'; export * from './system/types'; export * from './treasury/types'; export * from './txpayment/types';