diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index 36e8b002b4..2d28a0fbc0 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -24,6 +24,7 @@ import type { EthAccount, EthBlock, EthBloom, EthCallRequest, EthFilter, EthFilt import type { EvmAccount, EvmLog, EvmVicinity, ExitError, ExitFatal, ExitReason, ExitRevert, ExitSucceed } from '@polkadot/types/interfaces/evm'; import type { AnySignature, EcdsaSignature, Ed25519Signature, Extrinsic, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicUnknown, ExtrinsicV4, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics'; import type { AssetOptions, Owner, PermissionLatest, PermissionVersions, PermissionsV1 } from '@polkadot/types/interfaces/genericAsset'; +import type { ActiveGilt, ActiveGiltsTotal, ActiveIndex, GiltBid } from '@polkadot/types/interfaces/gilt'; import type { AuthorityIndex, AuthorityList, AuthorityWeight, EncodedFinalityProofs, GrandpaEquivocation, GrandpaEquivocationProof, GrandpaEquivocationValue, GrandpaPrevote, JustificationNotification, KeyOwnerProof, NextAuthority, PendingPause, PendingResume, Precommits, Prevotes, ReportedRoundStates, RoundState, SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa'; import type { IdentityFields, IdentityInfo, IdentityInfoAdditional, IdentityJudgement, RegistrarIndex, RegistrarInfo, Registration, RegistrationJudgement } from '@polkadot/types/interfaces/identity'; import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiaddr, OpaqueNetworkState, OpaquePeerId } from '@polkadot/types/interfaces/imOnline'; @@ -55,6 +56,7 @@ import type { VestingInfo } from '@polkadot/types/interfaces/vesting'; declare module '@polkadot/types/types/registry' { export interface InterfaceTypes { 'Compact': Compact; + 'Compact': Compact; 'Compact': Compact; 'Compact': Compact; 'Compact': Compact; @@ -159,6 +161,9 @@ declare module '@polkadot/types/types/registry' { 'Option': Option; 'Option': Option; 'Option': Option; + 'Option': Option; + 'Option': Option; + 'Option': Option; 'Option': Option; 'Option
': Option
; 'Option': Option; @@ -421,6 +426,7 @@ declare module '@polkadot/types/types/registry' { 'Option': Option; 'Option': Option; 'Option': Option; + 'Option': Option; 'Option': Option; 'Option': Option; 'Option': Option; @@ -899,6 +905,9 @@ declare module '@polkadot/types/types/registry' { 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; + 'Vec': Vec; + 'Vec': Vec; + 'Vec': Vec; 'Vec': Vec; 'Vec
': Vec
; 'Vec': Vec; @@ -1161,6 +1170,7 @@ declare module '@polkadot/types/types/registry' { 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; + 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; 'Vec': Vec; @@ -1639,6 +1649,9 @@ declare module '@polkadot/types/types/registry' { AccountVoteSplit: AccountVoteSplit; AccountVoteStandard: AccountVoteStandard; ActiveEraInfo: ActiveEraInfo; + ActiveGilt: ActiveGilt; + ActiveGiltsTotal: ActiveGiltsTotal; + ActiveIndex: ActiveIndex; ActiveRecovery: ActiveRecovery; Address: Address; AliveContractInfo: AliveContractInfo; @@ -1901,6 +1914,7 @@ declare module '@polkadot/types/types/registry' { FundIndex: FundIndex; FundInfo: FundInfo; Gas: Gas; + GiltBid: GiltBid; GlobalValidationSchedule: GlobalValidationSchedule; GrandpaEquivocation: GrandpaEquivocation; GrandpaEquivocationProof: GrandpaEquivocationProof; diff --git a/packages/types/src/interfaces/definitions.ts b/packages/types/src/interfaces/definitions.ts index 0ad53669ec..83e24bb4a2 100644 --- a/packages/types/src/interfaces/definitions.ts +++ b/packages/types/src/interfaces/definitions.ts @@ -19,6 +19,7 @@ export { default as engine } from './engine/definitions'; export { default as evm } from './evm/definitions'; export { default as extrinsics } from './extrinsics/definitions'; export { default as genericAsset } from './genericAsset/definitions'; +export { default as gilt } from './gilt/definitions'; export { default as grandpa } from './grandpa/definitions'; export { default as identity } from './identity/definitions'; export { default as imOnline } from './imOnline/definitions'; diff --git a/packages/types/src/interfaces/gilt/definitions.ts b/packages/types/src/interfaces/gilt/definitions.ts new file mode 100644 index 0000000000..fa2ad47b27 --- /dev/null +++ b/packages/types/src/interfaces/gilt/definitions.ts @@ -0,0 +1,30 @@ +// Copyright 2017-2021 @polkadot/types authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +// order important in structs... :) +/* eslint-disable sort-keys */ + +import type { Definitions } from '../../types'; + +export default { + rpc: {}, + types: { + ActiveGilt: { + proportion: 'Perquintill', + amount: 'Balance', + who: 'AccountId', + expiry: 'BlockNumber' + }, + ActiveGiltsTotal: { + frozen: 'Balance', + proportion: 'Perquintill', + index: 'ActiveIndex', + target: 'Perquintill' + }, + ActiveIndex: 'u32', + GiltBid: { + amount: 'Balance', + who: 'AccountId' + } + } +} as Definitions; diff --git a/packages/types/src/interfaces/gilt/index.ts b/packages/types/src/interfaces/gilt/index.ts new file mode 100644 index 0000000000..2d307291c3 --- /dev/null +++ b/packages/types/src/interfaces/gilt/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/gilt/types.ts b/packages/types/src/interfaces/gilt/types.ts new file mode 100644 index 0000000000..68e230263d --- /dev/null +++ b/packages/types/src/interfaces/gilt/types.ts @@ -0,0 +1,32 @@ +// Auto-generated via `yarn polkadot-types-from-defs`, do not edit +/* eslint-disable */ + +import type { Struct, u32 } from '@polkadot/types'; +import type { AccountId, Balance, BlockNumber, Perquintill } from '@polkadot/types/interfaces/runtime'; + +/** @name ActiveGilt */ +export interface ActiveGilt extends Struct { + readonly proportion: Perquintill; + readonly amount: Balance; + readonly who: AccountId; + readonly expiry: BlockNumber; +} + +/** @name ActiveGiltsTotal */ +export interface ActiveGiltsTotal extends Struct { + readonly frozen: Balance; + readonly proportion: Perquintill; + readonly index: ActiveIndex; + readonly target: Perquintill; +} + +/** @name ActiveIndex */ +export interface ActiveIndex extends u32 {} + +/** @name GiltBid */ +export interface GiltBid extends Struct { + readonly amount: Balance; + readonly who: AccountId; +} + +export type PHANTOM_GILT = 'gilt'; diff --git a/packages/types/src/interfaces/types.ts b/packages/types/src/interfaces/types.ts index f42bbc1993..de73ec22c2 100644 --- a/packages/types/src/interfaces/types.ts +++ b/packages/types/src/interfaces/types.ts @@ -16,6 +16,7 @@ export * from './engine/types'; export * from './evm/types'; export * from './extrinsics/types'; export * from './genericAsset/types'; +export * from './gilt/types'; export * from './grandpa/types'; export * from './identity/types'; export * from './imOnline/types';