Expose type on generated interfaces (#4295)

This commit is contained in:
Jaco
2021-12-08 10:36:12 +02:00
committed by GitHub
parent 5ceaa53c59
commit 9643a2e026
39 changed files with 461 additions and 70 deletions
+31 -32
View File
@@ -52,42 +52,41 @@ const tsWrapperOpaque = tsExport;
function tsEnum (registry: Registry, definitions: Record<string, ModuleTypes>, { lookupIndex, name: enumName, sub }: TypeDef, imports: TypeImports): string {
setImports(definitions, imports, ['Enum']);
const keys = (sub as TypeDef[])
.filter(({ name }) => !!name && !name.startsWith('__Unused'))
.map((def, index): string => {
const { info, lookupName, name = `unknown${index}`, type } = def;
const getter = stringPascalCase(name.replace(' ', '_'));
const isComplex = [TypeDefInfo.Option, TypeDefInfo.Result, TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
const asGetter = type === 'Null' || info === TypeDefInfo.DoNotConstruct
? ''
: createGetter(definitions, `as${getter}`, lookupName || (isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports, false) : type), imports);
const isGetter = info === TypeDefInfo.DoNotConstruct
? ''
: createGetter(definitions, `is${getter}`, 'boolean', imports);
const named = (sub as TypeDef[]).filter(({ name }) => !!name && !name.startsWith('__Unused'));
const keys = named.map((def): string => {
const { info, lookupName, name = '', type } = def;
const getter = stringPascalCase(name.replace(' ', '_'));
const isComplex = [TypeDefInfo.Option, TypeDefInfo.Result, TypeDefInfo.Struct, TypeDefInfo.Tuple, TypeDefInfo.Vec, TypeDefInfo.VecFixed].includes(info);
const asGetter = type === 'Null' || info === TypeDefInfo.DoNotConstruct
? ''
: createGetter(definitions, `as${getter}`, lookupName || (isComplex ? formatType(registry, definitions, info === TypeDefInfo.Struct ? def : type, imports, false) : type), imports);
const isGetter = info === TypeDefInfo.DoNotConstruct
? ''
: createGetter(definitions, `is${getter}`, 'boolean', imports);
switch (info) {
case TypeDefInfo.Compact:
case TypeDefInfo.Plain:
case TypeDefInfo.Result:
case TypeDefInfo.Si:
case TypeDefInfo.Struct:
case TypeDefInfo.Tuple:
case TypeDefInfo.Vec:
case TypeDefInfo.Option:
case TypeDefInfo.VecFixed:
case TypeDefInfo.WrapperOpaque:
return `${isGetter}${asGetter}`;
switch (info) {
case TypeDefInfo.Compact:
case TypeDefInfo.Plain:
case TypeDefInfo.Result:
case TypeDefInfo.Si:
case TypeDefInfo.Struct:
case TypeDefInfo.Tuple:
case TypeDefInfo.Vec:
case TypeDefInfo.Option:
case TypeDefInfo.VecFixed:
case TypeDefInfo.WrapperOpaque:
return `${isGetter}${asGetter}`;
case TypeDefInfo.DoNotConstruct:
case TypeDefInfo.Null:
return `${isGetter}`;
case TypeDefInfo.DoNotConstruct:
case TypeDefInfo.Null:
return `${isGetter}`;
default:
throw new Error(`Enum: ${enumName || 'undefined'}: Unhandled type ${TypeDefInfo[info]}, ${stringify(def)}`);
}
});
default:
throw new Error(`Enum: ${enumName || 'undefined'}: Unhandled type ${TypeDefInfo[info]}, ${stringify(def)}`);
}
});
return exportInterface(lookupIndex, enumName, 'Enum', keys.join(''));
return exportInterface(lookupIndex, enumName, 'Enum', `${keys.join('')} readonly type: ${named.map(({ name = '' }) => `'${stringPascalCase(name.replace(' ', '_'))}'`).join(' | ')};\n`);
}
function tsInt (_: Registry, definitions: Record<string, ModuleTypes>, def: TypeDef, imports: TypeImports, type: 'Int' | 'UInt' = 'Int'): string {
@@ -15,6 +15,7 @@ declare module '@polkadot/types/lookup' {
readonly isIdentityJudgement: boolean;
readonly isCancelProxy: boolean;
readonly isAuction: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction';
}
/** @name PolkadotRuntimeParachainsDisputesPalletEvent (102) */
@@ -27,18 +28,21 @@ declare module '@polkadot/types/lookup' {
readonly asDisputeTimedOut: H256;
readonly isRevert: boolean;
readonly asRevert: u32;
readonly type: 'DisputeInitiated' | 'DisputeConcluded' | 'DisputeTimedOut' | 'Revert';
}
/** @name PolkadotRuntimeParachainsDisputesDisputeLocation (104) */
export interface PolkadotRuntimeParachainsDisputesDisputeLocation extends Enum {
readonly isLocal: boolean;
readonly isRemote: boolean;
readonly type: 'Local' | 'Remote';
}
/** @name PolkadotRuntimeParachainsDisputesDisputeResult (105) */
export interface PolkadotRuntimeParachainsDisputesDisputeResult extends Enum {
readonly isValid: boolean;
readonly isInvalid: boolean;
readonly type: 'Valid' | 'Invalid';
}
/** @name KusamaRuntimeSessionKeys (244) */
@@ -64,6 +68,7 @@ declare module '@polkadot/types/lookup' {
readonly asParachainsOrigin: PolkadotRuntimeParachainsOriginPalletOrigin;
readonly isXcmPallet: boolean;
readonly asXcmPallet: PalletXcmOrigin;
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name KusamaRuntimeNposCompactSolution24 (380) */
@@ -97,6 +102,7 @@ declare module '@polkadot/types/lookup' {
/** @name PolkadotRuntimeParachainsDisputesPalletCall (499) */
export interface PolkadotRuntimeParachainsDisputesPalletCall extends Enum {
readonly isForceUnfreeze: boolean;
readonly type: 'ForceUnfreeze';
}
/** @name PolkadotPrimitivesV1DisputeState (679) */
@@ -116,6 +122,7 @@ declare module '@polkadot/types/lookup' {
readonly isDuplicateStatement: boolean;
readonly isPotentialSpam: boolean;
readonly isSingleSidedDispute: boolean;
readonly type: 'DuplicateDisputeStatementSets' | 'AncientDisputeStatement' | 'ValidatorIndexOutOfBounds' | 'InvalidSignature' | 'DuplicateStatement' | 'PotentialSpam' | 'SingleSidedDispute';
}
/** @name KusamaRuntimeRuntime (715) */
@@ -11,6 +11,7 @@ declare module '@polkadot/types/lookup' {
export interface PolkadotRuntimeCommonClaimsPalletEvent extends Enum {
readonly isClaimed: boolean;
readonly asClaimed: ITuple<[AccountId32, EthereumAddress, u128]>;
readonly type: 'Claimed';
}
/** @name PolkadotRuntimeProxyType (71) */
@@ -22,6 +23,7 @@ declare module '@polkadot/types/lookup' {
readonly isIdentityJudgement: boolean;
readonly isCancelProxy: boolean;
readonly isAuction: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction';
}
/** @name PolkadotRuntimeParachainsInclusionPalletEvent (81) */
@@ -32,6 +34,7 @@ declare module '@polkadot/types/lookup' {
readonly asCandidateIncluded: ITuple<[PolkadotPrimitivesV1CandidateReceipt, Bytes, u32, u32]>;
readonly isCandidateTimedOut: boolean;
readonly asCandidateTimedOut: ITuple<[PolkadotPrimitivesV1CandidateReceipt, Bytes, u32]>;
readonly type: 'CandidateBacked' | 'CandidateIncluded' | 'CandidateTimedOut';
}
/** @name PolkadotPrimitivesV1CandidateReceipt (82) */
@@ -71,6 +74,7 @@ declare module '@polkadot/types/lookup' {
readonly asNewHeadNoted: u32;
readonly isActionQueued: boolean;
readonly asActionQueued: ITuple<[u32, u32]>;
readonly type: 'CurrentCodeUpdated' | 'CurrentHeadUpdated' | 'CodeUpgradeScheduled' | 'NewHeadNoted' | 'ActionQueued';
}
/** @name PolkadotRuntimeParachainsUmpPalletEvent (94) */
@@ -89,6 +93,7 @@ declare module '@polkadot/types/lookup' {
readonly asOverweightEnqueued: ITuple<[u32, U8aFixed, u64, u64]>;
readonly isOverweightServiced: boolean;
readonly asOverweightServiced: ITuple<[u64, u64]>;
readonly type: 'InvalidFormat' | 'UnsupportedVersion' | 'ExecutedUpward' | 'WeightExhausted' | 'UpwardMessagesReceived' | 'OverweightEnqueued' | 'OverweightServiced';
}
/** @name XcmV2TraitsOutcome (95) */
@@ -99,6 +104,7 @@ declare module '@polkadot/types/lookup' {
readonly asIncomplete: ITuple<[u64, XcmV2TraitsError]>;
readonly isError: boolean;
readonly asError: XcmV2TraitsError;
readonly type: 'Complete' | 'Incomplete' | 'Error';
}
/** @name XcmV2TraitsError (96) */
@@ -131,6 +137,7 @@ declare module '@polkadot/types/lookup' {
readonly asWeightLimitReached: u64;
readonly isBarrier: boolean;
readonly isWeightNotComputable: boolean;
readonly type: 'Overflow' | 'Unimplemented' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'BadOrigin' | 'InvalidLocation' | 'AssetNotFound' | 'FailedToTransactAsset' | 'NotWithdrawable' | 'LocationCannotHold' | 'ExceedsMaxMessageSize' | 'DestinationUnsupported' | 'Transport' | 'Unroutable' | 'UnknownClaim' | 'FailedToDecode' | 'MaxWeightInvalid' | 'NotHoldingFees' | 'TooExpensive' | 'Trap' | 'UnhandledXcmVersion' | 'WeightLimitReached' | 'Barrier' | 'WeightNotComputable';
}
/** @name PolkadotRuntimeParachainsHrmpPalletEvent (97) */
@@ -143,6 +150,7 @@ declare module '@polkadot/types/lookup' {
readonly asOpenChannelAccepted: ITuple<[u32, u32]>;
readonly isChannelClosed: boolean;
readonly asChannelClosed: ITuple<[u32, PolkadotParachainPrimitivesHrmpChannelId]>;
readonly type: 'OpenChannelRequested' | 'OpenChannelCanceled' | 'OpenChannelAccepted' | 'ChannelClosed';
}
/** @name PolkadotParachainPrimitivesHrmpChannelId (98) */
@@ -159,6 +167,7 @@ declare module '@polkadot/types/lookup' {
readonly asDeregistered: u32;
readonly isReserved: boolean;
readonly asReserved: ITuple<[u32, AccountId32]>;
readonly type: 'Registered' | 'Deregistered' | 'Reserved';
}
/** @name PolkadotRuntimeCommonSlotsPalletEvent (100) */
@@ -167,6 +176,7 @@ declare module '@polkadot/types/lookup' {
readonly asNewLeasePeriod: u32;
readonly isLeased: boolean;
readonly asLeased: ITuple<[u32, AccountId32, u32, u32, u128, u128]>;
readonly type: 'NewLeasePeriod' | 'Leased';
}
/** @name PolkadotRuntimeCommonAuctionsPalletEvent (101) */
@@ -185,6 +195,7 @@ declare module '@polkadot/types/lookup' {
readonly asBidAccepted: ITuple<[AccountId32, u32, u128, u32, u32]>;
readonly isWinningOffset: boolean;
readonly asWinningOffset: ITuple<[u32, u32]>;
readonly type: 'AuctionStarted' | 'AuctionClosed' | 'Reserved' | 'Unreserved' | 'ReserveConfiscated' | 'BidAccepted' | 'WinningOffset';
}
/** @name PolkadotRuntimeCommonCrowdloanPalletEvent (102) */
@@ -209,6 +220,7 @@ declare module '@polkadot/types/lookup' {
readonly asMemoUpdated: ITuple<[AccountId32, u32, Bytes]>;
readonly isAddedToNewRaise: boolean;
readonly asAddedToNewRaise: u32;
readonly type: 'Created' | 'Contributed' | 'Withdrew' | 'PartiallyRefunded' | 'AllRefunded' | 'Dissolved' | 'HandleBidResult' | 'Edited' | 'MemoUpdated' | 'AddedToNewRaise';
}
/** @name PalletXcmEvent (103) */
@@ -245,6 +257,7 @@ declare module '@polkadot/types/lookup' {
readonly asNotifyTargetSendFail: ITuple<[XcmV1MultiLocation, u64, XcmV2TraitsError]>;
readonly isNotifyTargetMigrationFail: boolean;
readonly asNotifyTargetMigrationFail: ITuple<[XcmVersionedMultiLocation, u64]>;
readonly type: 'Attempted' | 'Sent' | 'UnexpectedResponse' | 'ResponseReady' | 'Notified' | 'NotifyOverweight' | 'NotifyDispatchError' | 'NotifyDecodeFailed' | 'InvalidResponder' | 'InvalidResponderVersion' | 'ResponseTaken' | 'AssetsTrapped' | 'VersionChangeNotified' | 'SupportedVersionChanged' | 'NotifyTargetSendFail' | 'NotifyTargetMigrationFail';
}
/** @name XcmV1MultiLocation (104) */
@@ -272,6 +285,7 @@ declare module '@polkadot/types/lookup' {
readonly asX7: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
readonly isX8: boolean;
readonly asX8: ITuple<[XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction, XcmV1Junction]>;
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
/** @name XcmV1Junction (106) */
@@ -305,6 +319,7 @@ declare module '@polkadot/types/lookup' {
readonly id: XcmV0JunctionBodyId;
readonly part: XcmV0JunctionBodyPart;
} & Struct;
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
/** @name XcmV0JunctionNetworkId (108) */
@@ -314,6 +329,7 @@ declare module '@polkadot/types/lookup' {
readonly asNamed: Bytes;
readonly isPolkadot: boolean;
readonly isKusama: boolean;
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
}
/** @name XcmV0JunctionBodyId (110) */
@@ -327,6 +343,7 @@ declare module '@polkadot/types/lookup' {
readonly isTechnical: boolean;
readonly isLegislative: boolean;
readonly isJudicial: boolean;
readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
}
/** @name XcmV0JunctionBodyPart (111) */
@@ -351,6 +368,7 @@ declare module '@polkadot/types/lookup' {
readonly nom: Compact<u32>;
readonly denom: Compact<u32>;
} & Struct;
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
}
/** @name XcmV2Xcm (112) */
@@ -473,6 +491,7 @@ declare module '@polkadot/types/lookup' {
readonly maxResponseWeight: Compact<u64>;
} & Struct;
readonly isUnsubscribeVersion: boolean;
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion';
}
/** @name XcmV1MultiassetMultiAssets (115) */
@@ -490,6 +509,7 @@ declare module '@polkadot/types/lookup' {
readonly asConcrete: XcmV1MultiLocation;
readonly isAbstract: boolean;
readonly asAbstract: Bytes;
readonly type: 'Concrete' | 'Abstract';
}
/** @name XcmV1MultiassetFungibility (119) */
@@ -498,6 +518,7 @@ declare module '@polkadot/types/lookup' {
readonly asFungible: Compact<u128>;
readonly isNonFungible: boolean;
readonly asNonFungible: XcmV1MultiassetAssetInstance;
readonly type: 'Fungible' | 'NonFungible';
}
/** @name XcmV1MultiassetAssetInstance (120) */
@@ -515,6 +536,7 @@ declare module '@polkadot/types/lookup' {
readonly asArray32: U8aFixed;
readonly isBlob: boolean;
readonly asBlob: Bytes;
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
}
/** @name XcmV2Response (122) */
@@ -526,6 +548,7 @@ declare module '@polkadot/types/lookup' {
readonly asExecutionResult: Option<ITuple<[u32, XcmV2TraitsError]>>;
readonly isVersion: boolean;
readonly asVersion: u32;
readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version';
}
/** @name XcmV0OriginKind (125) */
@@ -534,6 +557,7 @@ declare module '@polkadot/types/lookup' {
readonly isSovereignAccount: boolean;
readonly isSuperuser: boolean;
readonly isXcm: boolean;
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
}
/** @name XcmDoubleEncoded (126) */
@@ -547,6 +571,7 @@ declare module '@polkadot/types/lookup' {
readonly asDefinite: XcmV1MultiassetMultiAssets;
readonly isWild: boolean;
readonly asWild: XcmV1MultiassetWildMultiAsset;
readonly type: 'Definite' | 'Wild';
}
/** @name XcmV1MultiassetWildMultiAsset (128) */
@@ -557,12 +582,14 @@ declare module '@polkadot/types/lookup' {
readonly id: XcmV1MultiassetAssetId;
readonly fun: XcmV1MultiassetWildFungibility;
} & Struct;
readonly type: 'All' | 'AllOf';
}
/** @name XcmV1MultiassetWildFungibility (129) */
export interface XcmV1MultiassetWildFungibility extends Enum {
readonly isFungible: boolean;
readonly isNonFungible: boolean;
readonly type: 'Fungible' | 'NonFungible';
}
/** @name XcmV2WeightLimit (130) */
@@ -570,6 +597,7 @@ declare module '@polkadot/types/lookup' {
readonly isUnlimited: boolean;
readonly isLimited: boolean;
readonly asLimited: Compact<u64>;
readonly type: 'Unlimited' | 'Limited';
}
/** @name XcmVersionedMultiAssets (132) */
@@ -578,6 +606,7 @@ declare module '@polkadot/types/lookup' {
readonly asV0: Vec<XcmV0MultiAsset>;
readonly isV1: boolean;
readonly asV1: XcmV1MultiassetMultiAssets;
readonly type: 'V0' | 'V1';
}
/** @name XcmV0MultiAsset (134) */
@@ -622,6 +651,7 @@ declare module '@polkadot/types/lookup' {
readonly class: XcmV0MultiLocation;
readonly instance: XcmV1MultiassetAssetInstance;
} & Struct;
readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
}
/** @name XcmV0MultiLocation (135) */
@@ -643,6 +673,7 @@ declare module '@polkadot/types/lookup' {
readonly asX7: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
readonly isX8: boolean;
readonly asX8: ITuple<[XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction, XcmV0Junction]>;
readonly type: 'Null' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
/** @name XcmV0Junction (136) */
@@ -677,6 +708,7 @@ declare module '@polkadot/types/lookup' {
readonly id: XcmV0JunctionBodyId;
readonly part: XcmV0JunctionBodyPart;
} & Struct;
readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
/** @name XcmVersionedMultiLocation (137) */
@@ -685,6 +717,7 @@ declare module '@polkadot/types/lookup' {
readonly asV0: XcmV0MultiLocation;
readonly isV1: boolean;
readonly asV1: XcmV1MultiLocation;
readonly type: 'V0' | 'V1';
}
/** @name PolkadotRuntimeSessionKeys (193) */
@@ -733,6 +766,7 @@ declare module '@polkadot/types/lookup' {
readonly new_: EthereumAddress;
readonly maybePreclaim: Option<AccountId32>;
} & Struct;
readonly type: 'Claim' | 'MintClaim' | 'ClaimAttest' | 'Attest' | 'MoveClaim';
}
/** @name PolkadotRuntimeCommonClaimsEcdsaSignature (225) */
@@ -742,6 +776,7 @@ declare module '@polkadot/types/lookup' {
export interface PolkadotRuntimeCommonClaimsStatementKind extends Enum {
readonly isRegular: boolean;
readonly isSaft: boolean;
readonly type: 'Regular' | 'Saft';
}
/** @name PolkadotRuntimeOriginCaller (235) */
@@ -757,12 +792,14 @@ declare module '@polkadot/types/lookup' {
readonly asParachainsOrigin: PolkadotRuntimeParachainsOriginPalletOrigin;
readonly isXcmPallet: boolean;
readonly asXcmPallet: PalletXcmOrigin;
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee' | 'ParachainsOrigin' | 'XcmPallet';
}
/** @name PolkadotRuntimeParachainsOriginPalletOrigin (239) */
export interface PolkadotRuntimeParachainsOriginPalletOrigin extends Enum {
readonly isParachain: boolean;
readonly asParachain: u32;
readonly type: 'Parachain';
}
/** @name PalletXcmOrigin (240) */
@@ -771,6 +808,7 @@ declare module '@polkadot/types/lookup' {
readonly asXcm: XcmV1MultiLocation;
readonly isResponse: boolean;
readonly asResponse: XcmV1MultiLocation;
readonly type: 'Xcm' | 'Response';
}
/** @name PolkadotRuntimeNposCompactSolution16 (291) */
@@ -959,6 +997,7 @@ declare module '@polkadot/types/lookup' {
readonly asSetUmpMaxIndividualWeight: {
readonly new_: u64;
} & Struct;
readonly type: 'SetValidationUpgradeFrequency' | 'SetValidationUpgradeDelay' | 'SetCodeRetentionPeriod' | 'SetMaxCodeSize' | 'SetMaxPovSize' | 'SetMaxHeadDataSize' | 'SetParathreadCores' | 'SetParathreadRetries' | 'SetGroupRotationFrequency' | 'SetChainAvailabilityPeriod' | 'SetThreadAvailabilityPeriod' | 'SetSchedulingLookahead' | 'SetMaxValidatorsPerCore' | 'SetMaxValidators' | 'SetDisputePeriod' | 'SetDisputePostConclusionAcceptancePeriod' | 'SetDisputeMaxSpamSlots' | 'SetDisputeConclusionByTimeOutPeriod' | 'SetNoShowSlots' | 'SetNDelayTranches' | 'SetZerothDelayTrancheWidth' | 'SetNeededApprovals' | 'SetRelayVrfModuloSamples' | 'SetMaxUpwardQueueCount' | 'SetMaxUpwardQueueSize' | 'SetMaxDownwardMessageSize' | 'SetUmpServiceTotalWeight' | 'SetMaxUpwardMessageSize' | 'SetMaxUpwardMessageNumPerCandidate' | 'SetHrmpOpenRequestTtl' | 'SetHrmpSenderDeposit' | 'SetHrmpRecipientDeposit' | 'SetHrmpChannelMaxCapacity' | 'SetHrmpChannelMaxTotalSize' | 'SetHrmpMaxParachainInboundChannels' | 'SetHrmpMaxParathreadInboundChannels' | 'SetHrmpChannelMaxMessageSize' | 'SetHrmpMaxParachainOutboundChannels' | 'SetHrmpMaxParathreadOutboundChannels' | 'SetHrmpMaxMessageNumPerCandidate' | 'SetUmpMaxIndividualWeight';
}
/** @name PolkadotRuntimeParachainsSharedPalletCall (350) */
@@ -973,6 +1012,7 @@ declare module '@polkadot/types/lookup' {
readonly asEnter: {
readonly data: PolkadotPrimitivesV1InherentData;
} & Struct;
readonly type: 'Enter';
}
/** @name PolkadotPrimitivesV1InherentData (353) */
@@ -1031,6 +1071,7 @@ declare module '@polkadot/types/lookup' {
readonly asImplicit: PolkadotPrimitivesV0ValidatorAppSignature;
readonly isExplicit: boolean;
readonly asExplicit: PolkadotPrimitivesV0ValidatorAppSignature;
readonly type: 'Implicit' | 'Explicit';
}
/** @name PolkadotPrimitivesV1DisputeStatementSet (372) */
@@ -1046,6 +1087,7 @@ declare module '@polkadot/types/lookup' {
readonly asValid: PolkadotPrimitivesV1ValidDisputeStatementKind;
readonly isInvalid: boolean;
readonly asInvalid: PolkadotPrimitivesV1InvalidDisputeStatementKind;
readonly type: 'Valid' | 'Invalid';
}
/** @name PolkadotPrimitivesV1ValidDisputeStatementKind (377) */
@@ -1056,11 +1098,13 @@ declare module '@polkadot/types/lookup' {
readonly isBackingValid: boolean;
readonly asBackingValid: H256;
readonly isApprovalChecking: boolean;
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking';
}
/** @name PolkadotPrimitivesV1InvalidDisputeStatementKind (378) */
export interface PolkadotPrimitivesV1InvalidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly type: 'Explicit';
}
/** @name PolkadotRuntimeParachainsParasPalletCall (379) */
@@ -1090,6 +1134,7 @@ declare module '@polkadot/types/lookup' {
readonly asForceQueueAction: {
readonly para: u32;
} & Struct;
readonly type: 'ForceSetCurrentCode' | 'ForceSetCurrentHead' | 'ForceScheduleCodeUpgrade' | 'ForceNoteNewHead' | 'ForceQueueAction';
}
/** @name PolkadotRuntimeParachainsInitializerPalletCall (380) */
@@ -1098,6 +1143,7 @@ declare module '@polkadot/types/lookup' {
readonly asForceApprove: {
readonly upTo: u32;
} & Struct;
readonly type: 'ForceApprove';
}
/** @name PolkadotRuntimeParachainsDmpPalletCall (381) */
@@ -1110,6 +1156,7 @@ declare module '@polkadot/types/lookup' {
readonly index: u64;
readonly weightLimit: u64;
} & Struct;
readonly type: 'ServiceOverweight';
}
/** @name PolkadotRuntimeParachainsHrmpPalletCall (383) */
@@ -1138,6 +1185,7 @@ declare module '@polkadot/types/lookup' {
readonly asHrmpCancelOpenRequest: {
readonly channelId: PolkadotParachainPrimitivesHrmpChannelId;
} & Struct;
readonly type: 'HrmpInitOpenChannel' | 'HrmpAcceptOpenChannel' | 'HrmpCloseChannel' | 'ForceCleanHrmp' | 'ForceProcessHrmpOpen' | 'ForceProcessHrmpClose' | 'HrmpCancelOpenRequest';
}
/** @name PolkadotRuntimeCommonParasRegistrarPalletCall (384) */
@@ -1170,6 +1218,7 @@ declare module '@polkadot/types/lookup' {
readonly para: u32;
} & Struct;
readonly isReserve: boolean;
readonly type: 'Register' | 'ForceRegister' | 'Deregister' | 'Swap' | 'ForceRemoveLock' | 'Reserve';
}
/** @name PolkadotRuntimeCommonSlotsPalletCall (385) */
@@ -1190,6 +1239,7 @@ declare module '@polkadot/types/lookup' {
readonly asTriggerOnboard: {
readonly para: u32;
} & Struct;
readonly type: 'ForceLease' | 'ClearAllLeases' | 'TriggerOnboard';
}
/** @name PolkadotRuntimeCommonAuctionsPalletCall (386) */
@@ -1208,6 +1258,7 @@ declare module '@polkadot/types/lookup' {
readonly amount: Compact<u128>;
} & Struct;
readonly isCancelAuction: boolean;
readonly type: 'NewAuction' | 'Bid' | 'CancelAuction';
}
/** @name PolkadotRuntimeCommonCrowdloanPalletCall (388) */
@@ -1258,6 +1309,7 @@ declare module '@polkadot/types/lookup' {
readonly asPoke: {
readonly index: u32;
} & Struct;
readonly type: 'Create' | 'Contribute' | 'Withdraw' | 'Refund' | 'Dissolve' | 'Edit' | 'AddMemo' | 'Poke';
}
/** @name SpRuntimeMultiSigner (390) */
@@ -1268,6 +1320,7 @@ declare module '@polkadot/types/lookup' {
readonly asSr25519: SpCoreSr25519Public;
readonly isEcdsa: boolean;
readonly asEcdsa: SpCoreEcdsaPublic;
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
/** @name SpCoreEcdsaPublic (391) */
@@ -1332,6 +1385,7 @@ declare module '@polkadot/types/lookup' {
readonly feeAssetItem: u32;
readonly weightLimit: XcmV2WeightLimit;
} & Struct;
readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets';
}
/** @name XcmVersionedXcm (397) */
@@ -1342,6 +1396,7 @@ declare module '@polkadot/types/lookup' {
readonly asV1: XcmV1Xcm;
readonly isV2: boolean;
readonly asV2: XcmV2Xcm;
readonly type: 'V0' | 'V1' | 'V2';
}
/** @name XcmV0Xcm (398) */
@@ -1404,6 +1459,7 @@ declare module '@polkadot/types/lookup' {
readonly who: XcmV0MultiLocation;
readonly message: XcmV0Xcm;
} & Struct;
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'TeleportAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
}
/** @name XcmV0Order (400) */
@@ -1451,12 +1507,14 @@ declare module '@polkadot/types/lookup' {
readonly haltOnError: bool;
readonly xcm: Vec<XcmV0Xcm>;
} & Struct;
readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
/** @name XcmV0Response (402) */
export interface XcmV0Response extends Enum {
readonly isAssets: boolean;
readonly asAssets: Vec<XcmV0MultiAsset>;
readonly type: 'Assets';
}
/** @name XcmV1Xcm (403) */
@@ -1525,6 +1583,7 @@ declare module '@polkadot/types/lookup' {
readonly maxResponseWeight: Compact<u64>;
} & Struct;
readonly isUnsubscribeVersion: boolean;
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom' | 'SubscribeVersion' | 'UnsubscribeVersion';
}
/** @name XcmV1Order (405) */
@@ -1574,6 +1633,7 @@ declare module '@polkadot/types/lookup' {
readonly haltOnError: bool;
readonly instructions: Vec<XcmV1Xcm>;
} & Struct;
readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
/** @name XcmV1Response (407) */
@@ -1582,6 +1642,7 @@ declare module '@polkadot/types/lookup' {
readonly asAssets: XcmV1MultiassetMultiAssets;
readonly isVersion: boolean;
readonly asVersion: u32;
readonly type: 'Assets' | 'Version';
}
/** @name PolkadotRuntimeCommonClaimsPalletError (519) */
@@ -1592,6 +1653,7 @@ declare module '@polkadot/types/lookup' {
readonly isPotUnderflow: boolean;
readonly isInvalidStatement: boolean;
readonly isVestedBalanceExists: boolean;
readonly type: 'InvalidEthereumSignature' | 'SignerHasNoClaim' | 'SenderHasNoClaim' | 'PotUnderflow' | 'InvalidStatement' | 'VestedBalanceExists';
}
/** @name PolkadotRuntimeParachainsConfigurationHostConfiguration (569) */
@@ -1641,6 +1703,7 @@ declare module '@polkadot/types/lookup' {
/** @name PolkadotRuntimeParachainsConfigurationPalletError (570) */
export interface PolkadotRuntimeParachainsConfigurationPalletError extends Enum {
readonly isInvalidNewValue: boolean;
readonly type: 'InvalidNewValue';
}
/** @name PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord (573) */
@@ -1687,6 +1750,7 @@ declare module '@polkadot/types/lookup' {
readonly isInvalidValidationCodeHash: boolean;
readonly isParaHeadMismatch: boolean;
readonly isBitfieldReferencesFreedCore: boolean;
readonly type: 'WrongBitfieldSize' | 'BitfieldDuplicateOrUnordered' | 'ValidatorIndexOutOfBounds' | 'InvalidBitfieldSignature' | 'UnscheduledCandidate' | 'CandidateScheduledBeforeParaFree' | 'WrongCollator' | 'ScheduledOutOfOrder' | 'HeadDataTooLarge' | 'PrematureCodeUpgrade' | 'NewCodeTooLarge' | 'CandidateNotInParentContext' | 'InvalidGroupIndex' | 'InsufficientBacking' | 'InvalidBacking' | 'NotCollatorSigned' | 'ValidationDataHashMismatch' | 'IncorrectDownwardMessageHandling' | 'InvalidUpwardMessages' | 'HrmpWatermarkMishandling' | 'InvalidOutboundHrmp' | 'InvalidValidationCodeHash' | 'ParaHeadMismatch' | 'BitfieldReferencesFreedCore';
}
/** @name PolkadotPrimitivesV1ScrapedOnChainVotes (576) */
@@ -1702,6 +1766,7 @@ declare module '@polkadot/types/lookup' {
readonly isInvalidParentHeader: boolean;
readonly isCandidateConcludedInvalid: boolean;
readonly isInherentOverweight: boolean;
readonly type: 'TooManyInclusionInherents' | 'InvalidParentHeader' | 'CandidateConcludedInvalid' | 'InherentOverweight';
}
/** @name PolkadotRuntimeParachainsSchedulerParathreadClaimQueue (583) */
@@ -1730,6 +1795,7 @@ declare module '@polkadot/types/lookup' {
readonly isParathread: boolean;
readonly asParathread: PolkadotPrimitivesV1ParathreadEntry;
readonly isParachain: boolean;
readonly type: 'Parathread' | 'Parachain';
}
/** @name PolkadotRuntimeParachainsSchedulerCoreAssignment (593) */
@@ -1745,6 +1811,7 @@ declare module '@polkadot/types/lookup' {
readonly isParachain: boolean;
readonly isParathread: boolean;
readonly asParathread: ITuple<[PolkadotPrimitivesV0CollatorAppPublic, u32]>;
readonly type: 'Parachain' | 'Parathread';
}
/** @name PolkadotRuntimeParachainsParasParaLifecycle (595) */
@@ -1756,6 +1823,7 @@ declare module '@polkadot/types/lookup' {
readonly isDowngradingParachain: boolean;
readonly isOffboardingParathread: boolean;
readonly isOffboardingParachain: boolean;
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingParathread' | 'DowngradingParachain' | 'OffboardingParathread' | 'OffboardingParachain';
}
/** @name PolkadotRuntimeParachainsParasParaPastCodeMeta (597) */
@@ -1774,11 +1842,13 @@ declare module '@polkadot/types/lookup' {
export interface PolkadotPrimitivesV1UpgradeGoAhead extends Enum {
readonly isAbort: boolean;
readonly isGoAhead: boolean;
readonly type: 'Abort' | 'GoAhead';
}
/** @name PolkadotPrimitivesV1UpgradeRestriction (602) */
export interface PolkadotPrimitivesV1UpgradeRestriction extends Enum {
readonly isPresent: boolean;
readonly type: 'Present';
}
/** @name PolkadotRuntimeParachainsParasParaGenesisArgs (603) */
@@ -1795,6 +1865,7 @@ declare module '@polkadot/types/lookup' {
readonly isCannotOffboard: boolean;
readonly isCannotUpgrade: boolean;
readonly isCannotDowngrade: boolean;
readonly type: 'NotRegistered' | 'CannotOnboard' | 'CannotOffboard' | 'CannotUpgrade' | 'CannotDowngrade';
}
/** @name PolkadotRuntimeParachainsInitializerBufferedSessionChange (606) */
@@ -1814,6 +1885,7 @@ declare module '@polkadot/types/lookup' {
export interface PolkadotRuntimeParachainsUmpPalletError extends Enum {
readonly isUnknownMessageIndex: boolean;
readonly isWeightOverLimit: boolean;
readonly type: 'UnknownMessageIndex' | 'WeightOverLimit';
}
/** @name PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest (611) */
@@ -1864,6 +1936,7 @@ declare module '@polkadot/types/lookup' {
readonly isCancelHrmpOpenChannelUnauthorized: boolean;
readonly isOpenHrmpChannelDoesntExist: boolean;
readonly isOpenHrmpChannelAlreadyConfirmed: boolean;
readonly type: 'OpenHrmpChannelToSelf' | 'OpenHrmpChannelInvalidRecipient' | 'OpenHrmpChannelZeroCapacity' | 'OpenHrmpChannelCapacityExceedsLimit' | 'OpenHrmpChannelZeroMessageSize' | 'OpenHrmpChannelMessageSizeExceedsLimit' | 'OpenHrmpChannelAlreadyExists' | 'OpenHrmpChannelAlreadyRequested' | 'OpenHrmpChannelLimitExceeded' | 'AcceptHrmpChannelDoesntExist' | 'AcceptHrmpChannelAlreadyConfirmed' | 'AcceptHrmpChannelLimitExceeded' | 'CloseHrmpChannelUnauthorized' | 'CloseHrmpChannelDoesntExist' | 'CloseHrmpChannelAlreadyUnderway' | 'CancelHrmpOpenChannelUnauthorized' | 'OpenHrmpChannelDoesntExist' | 'OpenHrmpChannelAlreadyConfirmed';
}
/** @name PolkadotPrimitivesV1SessionInfo (621) */
@@ -1902,12 +1975,14 @@ declare module '@polkadot/types/lookup' {
readonly isParaLocked: boolean;
readonly isNotReserved: boolean;
readonly isEmptyCode: boolean;
readonly type: 'NotRegistered' | 'AlreadyRegistered' | 'NotOwner' | 'CodeTooLarge' | 'HeadDataTooLarge' | 'NotParachain' | 'NotParathread' | 'CannotDeregister' | 'CannotDowngrade' | 'CannotUpgrade' | 'ParaLocked' | 'NotReserved' | 'EmptyCode';
}
/** @name PolkadotRuntimeCommonSlotsPalletError (627) */
export interface PolkadotRuntimeCommonSlotsPalletError extends Enum {
readonly isParaNotOnboarding: boolean;
readonly isLeaseError: boolean;
readonly type: 'ParaNotOnboarding' | 'LeaseError';
}
/** @name PolkadotRuntimeCommonAuctionsPalletError (632) */
@@ -1919,6 +1994,7 @@ declare module '@polkadot/types/lookup' {
readonly isNotAuction: boolean;
readonly isAuctionEnded: boolean;
readonly isAlreadyLeasedOut: boolean;
readonly type: 'AuctionInProgress' | 'LeasePeriodInPast' | 'ParaNotRegistered' | 'NotCurrentAuction' | 'NotAuction' | 'AuctionEnded' | 'AlreadyLeasedOut';
}
/** @name PolkadotRuntimeCommonCrowdloanFundInfo (633) */
@@ -1942,6 +2018,7 @@ declare module '@polkadot/types/lookup' {
readonly asPreEnding: u32;
readonly isEnding: boolean;
readonly asEnding: u32;
readonly type: 'Never' | 'PreEnding' | 'Ending';
}
/** @name PolkadotRuntimeCommonCrowdloanPalletError (635) */
@@ -1969,6 +2046,7 @@ declare module '@polkadot/types/lookup' {
readonly isAlreadyInNewRaise: boolean;
readonly isVrfDelayInProgress: boolean;
readonly isNoLeasePeriod: boolean;
readonly type: 'FirstPeriodInPast' | 'FirstPeriodTooFarInFuture' | 'LastPeriodBeforeFirstPeriod' | 'LastPeriodTooFarInFuture' | 'CannotEndInPast' | 'EndTooFarInFuture' | 'Overflow' | 'ContributionTooSmall' | 'InvalidParaId' | 'CapExceeded' | 'ContributionPeriodOver' | 'InvalidOrigin' | 'NotParachain' | 'LeaseActive' | 'BidOrLeaseActive' | 'FundNotEnded' | 'NoContributions' | 'NotReadyToDissolve' | 'InvalidSignature' | 'MemoTooLarge' | 'AlreadyInNewRaise' | 'VrfDelayInProgress' | 'NoLeasePeriod';
}
/** @name PalletXcmQueryStatus (636) */
@@ -1989,6 +2067,7 @@ declare module '@polkadot/types/lookup' {
readonly response: XcmVersionedResponse;
readonly at: u32;
} & Struct;
readonly type: 'Pending' | 'VersionNotifier' | 'Ready';
}
/** @name XcmVersionedResponse (639) */
@@ -1999,6 +2078,7 @@ declare module '@polkadot/types/lookup' {
readonly asV1: XcmV1Response;
readonly isV2: boolean;
readonly asV2: XcmV2Response;
readonly type: 'V0' | 'V1' | 'V2';
}
/** @name PalletXcmVersionMigrationStage (645) */
@@ -2008,6 +2088,7 @@ declare module '@polkadot/types/lookup' {
readonly isNotifyCurrentTargets: boolean;
readonly asNotifyCurrentTargets: Option<Bytes>;
readonly isMigrateAndNotifyOldTargets: boolean;
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
}
/** @name PalletXcmError (646) */
@@ -2025,6 +2106,7 @@ declare module '@polkadot/types/lookup' {
readonly isBadLocation: boolean;
readonly isNoSubscription: boolean;
readonly isAlreadySubscribed: boolean;
readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed';
}
/** @name PalletTransactionPaymentChargeTransactionPayment (656) */
@@ -48,6 +48,7 @@ declare module '@polkadot/types/lookup' {
readonly isPreRuntime: boolean;
readonly asPreRuntime: ITuple<[U8aFixed, Bytes]>;
readonly isRuntimeEnvironmentUpdated: boolean;
readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated';
}
/** @name FrameSystemEventRecord (16) */
@@ -82,6 +83,7 @@ declare module '@polkadot/types/lookup' {
readonly sender: AccountId32;
readonly hash_: H256;
} & Struct;
readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked';
}
/** @name FrameSupportWeightsDispatchInfo (19) */
@@ -96,12 +98,14 @@ declare module '@polkadot/types/lookup' {
readonly isNormal: boolean;
readonly isOperational: boolean;
readonly isMandatory: boolean;
readonly type: 'Normal' | 'Operational' | 'Mandatory';
}
/** @name FrameSupportWeightsPays (21) */
export interface FrameSupportWeightsPays extends Enum {
readonly isYes: boolean;
readonly isNo: boolean;
readonly type: 'Yes' | 'No';
}
/** @name SpRuntimeDispatchError (22) */
@@ -120,6 +124,7 @@ declare module '@polkadot/types/lookup' {
readonly asToken: SpRuntimeTokenError;
readonly isArithmetic: boolean;
readonly asArithmetic: SpRuntimeArithmeticError;
readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'Token' | 'Arithmetic';
}
/** @name SpRuntimeTokenError (23) */
@@ -131,6 +136,7 @@ declare module '@polkadot/types/lookup' {
readonly isUnknownAsset: boolean;
readonly isFrozen: boolean;
readonly isUnsupported: boolean;
readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported';
}
/** @name SpRuntimeArithmeticError (24) */
@@ -138,6 +144,7 @@ declare module '@polkadot/types/lookup' {
readonly isUnderflow: boolean;
readonly isOverflow: boolean;
readonly isDivisionByZero: boolean;
readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
}
/** @name PalletUtilityEvent (25) */
@@ -153,6 +160,7 @@ declare module '@polkadot/types/lookup' {
readonly asDispatchedAs: {
readonly result: Result<Null, SpRuntimeDispatchError>;
} & Struct;
readonly type: 'BatchInterrupted' | 'BatchCompleted' | 'ItemCompleted' | 'DispatchedAs';
}
/** @name PalletIndicesEvent (28) */
@@ -171,6 +179,7 @@ declare module '@polkadot/types/lookup' {
readonly index: u32;
readonly who: AccountId32;
} & Struct;
readonly type: 'IndexAssigned' | 'IndexFreed' | 'IndexFrozen';
}
/** @name PalletBalancesEvent (29) */
@@ -229,12 +238,14 @@ declare module '@polkadot/types/lookup' {
readonly who: AccountId32;
readonly amount: u128;
} & Struct;
readonly type: 'Endowed' | 'DustLost' | 'Transfer' | 'BalanceSet' | 'Reserved' | 'Unreserved' | 'ReserveRepatriated' | 'Deposit' | 'Withdraw' | 'Slashed';
}
/** @name FrameSupportTokensMiscBalanceStatus (30) */
export interface FrameSupportTokensMiscBalanceStatus extends Enum {
readonly isFree: boolean;
readonly isReserved: boolean;
readonly type: 'Free' | 'Reserved';
}
/** @name PalletElectionProviderMultiPhaseEvent (31) */
@@ -266,6 +277,7 @@ declare module '@polkadot/types/lookup' {
readonly asUnsignedPhaseStarted: {
readonly round: u32;
} & Struct;
readonly type: 'SolutionStored' | 'ElectionFinalized' | 'Rewarded' | 'Slashed' | 'SignedPhaseStarted' | 'UnsignedPhaseStarted';
}
/** @name PalletElectionProviderMultiPhaseElectionCompute (32) */
@@ -275,6 +287,7 @@ declare module '@polkadot/types/lookup' {
readonly isUnsigned: boolean;
readonly isFallback: boolean;
readonly isEmergency: boolean;
readonly type: 'OnChain' | 'Signed' | 'Unsigned' | 'Fallback' | 'Emergency';
}
/** @name PalletStakingPalletEvent (35) */
@@ -301,6 +314,7 @@ declare module '@polkadot/types/lookup' {
readonly asChilled: AccountId32;
readonly isPayoutStarted: boolean;
readonly asPayoutStarted: ITuple<[u32, AccountId32]>;
readonly type: 'EraPaid' | 'Rewarded' | 'Slashed' | 'OldSlashingReportDiscarded' | 'StakersElected' | 'Bonded' | 'Unbonded' | 'Withdrawn' | 'Kicked' | 'StakingElectionFailed' | 'Chilled' | 'PayoutStarted';
}
/** @name PalletSessionEvent (36) */
@@ -309,6 +323,7 @@ declare module '@polkadot/types/lookup' {
readonly asNewSession: {
readonly sessionIndex: u32;
} & Struct;
readonly type: 'NewSession';
}
/** @name PalletDemocracyEvent (37) */
@@ -406,6 +421,7 @@ declare module '@polkadot/types/lookup' {
readonly seconder: AccountId32;
readonly propIndex: u32;
} & Struct;
readonly type: 'Proposed' | 'Tabled' | 'ExternalTabled' | 'Started' | 'Passed' | 'NotPassed' | 'Cancelled' | 'Executed' | 'Delegated' | 'Undelegated' | 'Vetoed' | 'PreimageNoted' | 'PreimageUsed' | 'PreimageInvalid' | 'PreimageMissing' | 'PreimageReaped' | 'Blacklisted' | 'Voted' | 'Seconded';
}
/** @name PalletDemocracyVoteThreshold (39) */
@@ -413,6 +429,7 @@ declare module '@polkadot/types/lookup' {
readonly isSuperMajorityApprove: boolean;
readonly isSuperMajorityAgainst: boolean;
readonly isSimpleMajority: boolean;
readonly type: 'SuperMajorityApprove' | 'SuperMajorityAgainst' | 'SimpleMajority';
}
/** @name PalletDemocracyVoteAccountVote (40) */
@@ -427,6 +444,7 @@ declare module '@polkadot/types/lookup' {
readonly aye: u128;
readonly nay: u128;
} & Struct;
readonly type: 'Standard' | 'Split';
}
/** @name PalletCollectiveEvent (42) */
@@ -470,6 +488,7 @@ declare module '@polkadot/types/lookup' {
readonly yes: u32;
readonly no: u32;
} & Struct;
readonly type: 'Proposed' | 'Voted' | 'Approved' | 'Disapproved' | 'Executed' | 'MemberExecuted' | 'Closed';
}
/** @name PalletElectionsPhragmenEvent (44) */
@@ -498,6 +517,7 @@ declare module '@polkadot/types/lookup' {
readonly seatHolder: AccountId32;
readonly amount: u128;
} & Struct;
readonly type: 'NewTerm' | 'EmptyTerm' | 'ElectionError' | 'MemberKicked' | 'Renounced' | 'CandidateSlashed' | 'SeatHolderSlashed';
}
/** @name PalletMembershipEvent (47) */
@@ -508,6 +528,7 @@ declare module '@polkadot/types/lookup' {
readonly isMembersReset: boolean;
readonly isKeyChanged: boolean;
readonly isDummy: boolean;
readonly type: 'MemberAdded' | 'MemberRemoved' | 'MembersSwapped' | 'MembersReset' | 'KeyChanged' | 'Dummy';
}
/** @name PalletGrandpaEvent (48) */
@@ -518,6 +539,7 @@ declare module '@polkadot/types/lookup' {
} & Struct;
readonly isPaused: boolean;
readonly isResumed: boolean;
readonly type: 'NewAuthorities' | 'Paused' | 'Resumed';
}
/** @name SpFinalityGrandpaAppPublic (51) */
@@ -559,6 +581,7 @@ declare module '@polkadot/types/lookup' {
readonly asDeposit: {
readonly value: u128;
} & Struct;
readonly type: 'Proposed' | 'Spending' | 'Awarded' | 'Rejected' | 'Burnt' | 'Rollover' | 'Deposit';
}
/** @name PalletContractsEvent (54) */
@@ -590,6 +613,7 @@ declare module '@polkadot/types/lookup' {
readonly asCodeRemoved: {
readonly codeHash: H256;
} & Struct;
readonly type: 'Instantiated' | 'Terminated' | 'CodeStored' | 'ScheduleUpdated' | 'ContractEmitted' | 'CodeRemoved';
}
/** @name PalletSudoEvent (55) */
@@ -606,6 +630,7 @@ declare module '@polkadot/types/lookup' {
readonly asSudoAsDone: {
readonly sudoResult: Result<Null, SpRuntimeDispatchError>;
} & Struct;
readonly type: 'Sudid' | 'KeyChanged' | 'SudoAsDone';
}
/** @name PalletImOnlineEvent (56) */
@@ -619,6 +644,7 @@ declare module '@polkadot/types/lookup' {
readonly asSomeOffline: {
readonly offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>>;
} & Struct;
readonly type: 'HeartbeatReceived' | 'AllGood' | 'SomeOffline';
}
/** @name PalletImOnlineSr25519AppSr25519Public (57) */
@@ -647,6 +673,7 @@ declare module '@polkadot/types/lookup' {
readonly kind: U8aFixed;
readonly timeslot: Bytes;
} & Struct;
readonly type: 'Offence';
}
/** @name PalletIdentityEvent (67) */
@@ -702,6 +729,7 @@ declare module '@polkadot/types/lookup' {
readonly main: AccountId32;
readonly deposit: u128;
} & Struct;
readonly type: 'IdentitySet' | 'IdentityCleared' | 'IdentityKilled' | 'JudgementRequested' | 'JudgementUnrequested' | 'JudgementGiven' | 'RegistrarAdded' | 'SubIdentityAdded' | 'SubIdentityRemoved' | 'SubIdentityRevoked';
}
/** @name PalletSocietyEvent (68) */
@@ -778,6 +806,7 @@ declare module '@polkadot/types/lookup' {
readonly asDeposit: {
readonly value: u128;
} & Struct;
readonly type: 'Founded' | 'Bid' | 'Vouch' | 'AutoUnbid' | 'Unbid' | 'Unvouch' | 'Inducted' | 'SuspendedMemberJudgement' | 'CandidateSuspended' | 'MemberSuspended' | 'Challenged' | 'Vote' | 'DefenderVote' | 'NewMaxMembers' | 'Unfounded' | 'Deposit';
}
/** @name PalletRecoveryEvent (69) */
@@ -811,6 +840,7 @@ declare module '@polkadot/types/lookup' {
readonly asRecoveryRemoved: {
readonly lostAccount: AccountId32;
} & Struct;
readonly type: 'RecoveryCreated' | 'RecoveryInitiated' | 'RecoveryVouched' | 'RecoveryClosed' | 'AccountRecovered' | 'RecoveryRemoved';
}
/** @name PalletVestingEvent (70) */
@@ -824,6 +854,7 @@ declare module '@polkadot/types/lookup' {
readonly asVestingCompleted: {
readonly account: AccountId32;
} & Struct;
readonly type: 'VestingUpdated' | 'VestingCompleted';
}
/** @name PalletSchedulerEvent (71) */
@@ -844,6 +875,7 @@ declare module '@polkadot/types/lookup' {
readonly id: Option<Bytes>;
readonly result: Result<Null, SpRuntimeDispatchError>;
} & Struct;
readonly type: 'Scheduled' | 'Canceled' | 'Dispatched';
}
/** @name PalletProxyEvent (74) */
@@ -872,6 +904,7 @@ declare module '@polkadot/types/lookup' {
readonly proxyType: NodeRuntimeProxyType;
readonly delay: u32;
} & Struct;
readonly type: 'ProxyExecuted' | 'AnonymousCreated' | 'Announced' | 'ProxyAdded';
}
/** @name NodeRuntimeProxyType (75) */
@@ -880,6 +913,7 @@ declare module '@polkadot/types/lookup' {
readonly isNonTransfer: boolean;
readonly isGovernance: boolean;
readonly isStaking: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking';
}
/** @name PalletMultisigEvent (77) */
@@ -912,6 +946,7 @@ declare module '@polkadot/types/lookup' {
readonly multisig: AccountId32;
readonly callHash: U8aFixed;
} & Struct;
readonly type: 'NewMultisig' | 'MultisigApproval' | 'MultisigExecuted' | 'MultisigCancelled';
}
/** @name PalletMultisigTimepoint (78) */
@@ -954,6 +989,7 @@ declare module '@polkadot/types/lookup' {
readonly asBountyExtended: {
readonly index: u32;
} & Struct;
readonly type: 'BountyProposed' | 'BountyRejected' | 'BountyBecameActive' | 'BountyAwarded' | 'BountyClaimed' | 'BountyCanceled' | 'BountyExtended';
}
/** @name PalletTipsEvent (80) */
@@ -982,6 +1018,7 @@ declare module '@polkadot/types/lookup' {
readonly finder: AccountId32;
readonly deposit: u128;
} & Struct;
readonly type: 'NewTip' | 'TipClosing' | 'TipClosed' | 'TipRetracted' | 'TipSlashed';
}
/** @name PalletAssetsEvent (81) */
@@ -1087,6 +1124,7 @@ declare module '@polkadot/types/lookup' {
readonly asAssetStatusChanged: {
readonly assetId: u32;
} & Struct;
readonly type: 'Created' | 'Issued' | 'Transferred' | 'Burned' | 'TeamChanged' | 'OwnerChanged' | 'Frozen' | 'Thawed' | 'AssetFrozen' | 'AssetThawed' | 'Destroyed' | 'ForceCreated' | 'MetadataSet' | 'MetadataCleared' | 'ApprovedTransfer' | 'ApprovalCancelled' | 'TransferredApproved' | 'AssetStatusChanged';
}
/** @name PalletLotteryEvent (82) */
@@ -1103,6 +1141,7 @@ declare module '@polkadot/types/lookup' {
readonly who: AccountId32;
readonly callIndex: ITuple<[u8, u8]>;
} & Struct;
readonly type: 'LotteryStarted' | 'CallsUpdated' | 'Winner' | 'TicketBought';
}
/** @name PalletGiltEvent (84) */
@@ -1133,6 +1172,7 @@ declare module '@polkadot/types/lookup' {
readonly originalAmount: u128;
readonly additionalAmount: u128;
} & Struct;
readonly type: 'BidPlaced' | 'BidRetracted' | 'GiltIssued' | 'GiltThawed';
}
/** @name PalletUniquesEvent (85) */
@@ -1259,6 +1299,7 @@ declare module '@polkadot/types/lookup' {
readonly maybeInstance: Option<u32>;
readonly key: Bytes;
} & Struct;
readonly type: 'Created' | 'ForceCreated' | 'Destroyed' | 'Issued' | 'Transferred' | 'Burned' | 'Frozen' | 'Thawed' | 'ClassFrozen' | 'ClassThawed' | 'OwnerChanged' | 'TeamChanged' | 'ApprovedTransfer' | 'ApprovalCancelled' | 'AssetStatusChanged' | 'ClassMetadataSet' | 'ClassMetadataCleared' | 'MetadataSet' | 'MetadataCleared' | 'Redeposited' | 'AttributeSet' | 'AttributeCleared';
}
/** @name PalletTransactionStorageEvent (91) */
@@ -1272,6 +1313,7 @@ declare module '@polkadot/types/lookup' {
readonly index: u32;
} & Struct;
readonly isProofChecked: boolean;
readonly type: 'Stored' | 'Renewed' | 'ProofChecked';
}
/** @name PalletBagsListEvent (92) */
@@ -1282,6 +1324,7 @@ declare module '@polkadot/types/lookup' {
readonly from: u64;
readonly to: u64;
} & Struct;
readonly type: 'Rebagged';
}
/** @name FrameSystemPhase (93) */
@@ -1290,6 +1333,7 @@ declare module '@polkadot/types/lookup' {
readonly asApplyExtrinsic: u32;
readonly isFinalization: boolean;
readonly isInitialization: boolean;
readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';
}
/** @name FrameSystemLastRuntimeUpgradeInfo (96) */
@@ -1337,6 +1381,7 @@ declare module '@polkadot/types/lookup' {
readonly asRemarkWithEvent: {
readonly remark: Bytes;
} & Struct;
readonly type: 'FillBlock' | 'Remark' | 'SetHeapPages' | 'SetCode' | 'SetCodeWithoutChecks' | 'SetStorage' | 'KillStorage' | 'KillPrefix' | 'RemarkWithEvent';
}
/** @name FrameSystemLimitsBlockWeights (104) */
@@ -1398,6 +1443,7 @@ declare module '@polkadot/types/lookup' {
readonly isNonDefaultComposite: boolean;
readonly isNonZeroRefCount: boolean;
readonly isCallFiltered: boolean;
readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered';
}
/** @name PalletUtilityCall (117) */
@@ -1420,6 +1466,7 @@ declare module '@polkadot/types/lookup' {
readonly asOrigin: NodeRuntimeOriginCaller;
readonly call: Call;
} & Struct;
readonly type: 'Batch' | 'AsDerivative' | 'BatchAll' | 'DispatchAs';
}
/** @name PalletBabeCall (120) */
@@ -1438,6 +1485,7 @@ declare module '@polkadot/types/lookup' {
readonly asPlanConfigChange: {
readonly config: SpConsensusBabeDigestsNextConfigDescriptor;
} & Struct;
readonly type: 'ReportEquivocation' | 'ReportEquivocationUnsigned' | 'PlanConfigChange';
}
/** @name SpConsensusSlotsEquivocationProof (121) */
@@ -1477,6 +1525,7 @@ declare module '@polkadot/types/lookup' {
readonly c: ITuple<[u64, u64]>;
readonly allowedSlots: SpConsensusBabeAllowedSlots;
} & Struct;
readonly type: 'V1';
}
/** @name SpConsensusBabeAllowedSlots (129) */
@@ -1484,6 +1533,7 @@ declare module '@polkadot/types/lookup' {
readonly isPrimarySlots: boolean;
readonly isPrimaryAndSecondaryPlainSlots: boolean;
readonly isPrimaryAndSecondaryVRFSlots: boolean;
readonly type: 'PrimarySlots' | 'PrimaryAndSecondaryPlainSlots' | 'PrimaryAndSecondaryVRFSlots';
}
/** @name PalletTimestampCall (130) */
@@ -1492,6 +1542,7 @@ declare module '@polkadot/types/lookup' {
readonly asSet: {
readonly now: Compact<u64>;
} & Struct;
readonly type: 'Set';
}
/** @name PalletAuthorshipCall (132) */
@@ -1500,6 +1551,7 @@ declare module '@polkadot/types/lookup' {
readonly asSetUncles: {
readonly newUncles: Vec<SpRuntimeHeader>;
} & Struct;
readonly type: 'SetUncles';
}
/** @name PalletIndicesCall (134) */
@@ -1527,6 +1579,7 @@ declare module '@polkadot/types/lookup' {
readonly asFreeze: {
readonly index: u32;
} & Struct;
readonly type: 'Claim' | 'Transfer' | 'Free' | 'ForceTransfer' | 'Freeze';
}
/** @name PalletBalancesCall (135) */
@@ -1563,6 +1616,7 @@ declare module '@polkadot/types/lookup' {
readonly who: MultiAddress;
readonly amount: u128;
} & Struct;
readonly type: 'Transfer' | 'SetBalance' | 'ForceTransfer' | 'TransferKeepAlive' | 'TransferAll' | 'ForceUnreserve';
}
/** @name PalletElectionProviderMultiPhaseCall (138) */
@@ -1585,6 +1639,7 @@ declare module '@polkadot/types/lookup' {
readonly rawSolution: PalletElectionProviderMultiPhaseRawSolution;
readonly numSignedSubmissions: u32;
} & Struct;
readonly type: 'SubmitUnsigned' | 'SetMinimumUntrustedScore' | 'SetEmergencyElectionResult' | 'Submit';
}
/** @name PalletElectionProviderMultiPhaseRawSolution (139) */
@@ -1728,6 +1783,7 @@ declare module '@polkadot/types/lookup' {
readonly asChillOther: {
readonly controller: AccountId32;
} & Struct;
readonly type: 'Bond' | 'BondExtra' | 'Unbond' | 'WithdrawUnbonded' | 'Validate' | 'Nominate' | 'Chill' | 'SetPayee' | 'SetController' | 'SetValidatorCount' | 'IncreaseValidatorCount' | 'ScaleValidatorCount' | 'ForceNoEras' | 'ForceNewEra' | 'SetInvulnerables' | 'ForceUnstake' | 'ForceNewEraAlways' | 'CancelDeferredSlash' | 'PayoutStakers' | 'Rebond' | 'SetHistoryDepth' | 'ReapStash' | 'Kick' | 'SetStakingConfigs' | 'ChillOther';
}
/** @name PalletStakingRewardDestination (198) */
@@ -1738,6 +1794,7 @@ declare module '@polkadot/types/lookup' {
readonly isAccount: boolean;
readonly asAccount: AccountId32;
readonly isNone: boolean;
readonly type: 'Staked' | 'Stash' | 'Controller' | 'Account' | 'None';
}
/** @name PalletStakingValidatorPrefs (199) */
@@ -1754,6 +1811,7 @@ declare module '@polkadot/types/lookup' {
readonly proof: Bytes;
} & Struct;
readonly isPurgeKeys: boolean;
readonly type: 'SetKeys' | 'PurgeKeys';
}
/** @name NodeRuntimeSessionKeys (205) */
@@ -1874,6 +1932,7 @@ declare module '@polkadot/types/lookup' {
readonly asCancelProposal: {
readonly propIndex: Compact<u32>;
} & Struct;
readonly type: 'Propose' | 'Second' | 'Vote' | 'EmergencyCancel' | 'ExternalPropose' | 'ExternalProposeMajority' | 'ExternalProposeDefault' | 'FastTrack' | 'VetoExternal' | 'CancelReferendum' | 'CancelQueued' | 'Delegate' | 'Undelegate' | 'ClearPublicProposals' | 'NotePreimage' | 'NotePreimageOperational' | 'NoteImminentPreimage' | 'NoteImminentPreimageOperational' | 'ReapPreimage' | 'Unlock' | 'RemoveVote' | 'RemoveOtherVote' | 'EnactProposal' | 'Blacklist' | 'CancelProposal';
}
/** @name PalletDemocracyConviction (208) */
@@ -1885,6 +1944,7 @@ declare module '@polkadot/types/lookup' {
readonly isLocked4x: boolean;
readonly isLocked5x: boolean;
readonly isLocked6x: boolean;
readonly type: 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x';
}
/** @name PalletCollectiveCall (209) */
@@ -1923,6 +1983,7 @@ declare module '@polkadot/types/lookup' {
readonly asDisapproveProposal: {
readonly proposalHash: H256;
} & Struct;
readonly type: 'SetMembers' | 'Execute' | 'Propose' | 'Vote' | 'Close' | 'DisapproveProposal';
}
/** @name PalletElectionsPhragmenCall (212) */
@@ -1951,6 +2012,7 @@ declare module '@polkadot/types/lookup' {
readonly numVoters: u32;
readonly numDefunct: u32;
} & Struct;
readonly type: 'Vote' | 'RemoveVoter' | 'SubmitCandidacy' | 'RenounceCandidacy' | 'RemoveMember' | 'CleanDefunctVoters';
}
/** @name PalletElectionsPhragmenRenouncing (213) */
@@ -1959,6 +2021,7 @@ declare module '@polkadot/types/lookup' {
readonly isRunnerUp: boolean;
readonly isCandidate: boolean;
readonly asCandidate: Compact<u32>;
readonly type: 'Member' | 'RunnerUp' | 'Candidate';
}
/** @name PalletMembershipCall (214) */
@@ -1989,6 +2052,7 @@ declare module '@polkadot/types/lookup' {
readonly who: AccountId32;
} & Struct;
readonly isClearPrime: boolean;
readonly type: 'AddMember' | 'RemoveMember' | 'SwapMember' | 'ResetMembers' | 'ChangeKey' | 'SetPrime' | 'ClearPrime';
}
/** @name PalletGrandpaCall (215) */
@@ -2008,6 +2072,7 @@ declare module '@polkadot/types/lookup' {
readonly delay: u32;
readonly bestFinalizedBlockNumber: u32;
} & Struct;
readonly type: 'ReportEquivocation' | 'ReportEquivocationUnsigned' | 'NoteStalled';
}
/** @name SpFinalityGrandpaEquivocationProof (216) */
@@ -2022,6 +2087,7 @@ declare module '@polkadot/types/lookup' {
readonly asPrevote: FinalityGrandpaEquivocationPrevote;
readonly isPrecommit: boolean;
readonly asPrecommit: FinalityGrandpaEquivocationPrecommit;
readonly type: 'Prevote' | 'Precommit';
}
/** @name FinalityGrandpaEquivocationPrevote (218) */
@@ -2073,6 +2139,7 @@ declare module '@polkadot/types/lookup' {
readonly asApproveProposal: {
readonly proposalId: Compact<u32>;
} & Struct;
readonly type: 'ProposeSpend' | 'RejectProposal' | 'ApproveProposal';
}
/** @name PalletContractsCall (228) */
@@ -2100,6 +2167,7 @@ declare module '@polkadot/types/lookup' {
readonly data: Bytes;
readonly salt: Bytes;
} & Struct;
readonly type: 'Call' | 'InstantiateWithCode' | 'Instantiate';
}
/** @name PalletSudoCall (229) */
@@ -2122,6 +2190,7 @@ declare module '@polkadot/types/lookup' {
readonly who: MultiAddress;
readonly call: Call;
} & Struct;
readonly type: 'Sudo' | 'SudoUncheckedWeight' | 'SetKey' | 'SudoAs';
}
/** @name PalletImOnlineCall (230) */
@@ -2131,6 +2200,7 @@ declare module '@polkadot/types/lookup' {
readonly heartbeat: PalletImOnlineHeartbeat;
readonly signature: PalletImOnlineSr25519AppSr25519Signature;
} & Struct;
readonly type: 'Heartbeat';
}
/** @name PalletImOnlineHeartbeat (231) */
@@ -2218,6 +2288,7 @@ declare module '@polkadot/types/lookup' {
readonly sub: MultiAddress;
} & Struct;
readonly isQuitSub: boolean;
readonly type: 'AddRegistrar' | 'SetIdentity' | 'SetSubs' | 'ClearIdentity' | 'RequestJudgement' | 'CancelRequest' | 'SetFee' | 'SetAccountId' | 'SetFields' | 'ProvideJudgement' | 'KillIdentity' | 'AddSub' | 'RenameSub' | 'RemoveSub' | 'QuitSub';
}
/** @name PalletIdentityIdentityInfo (239) */
@@ -2255,6 +2326,7 @@ declare module '@polkadot/types/lookup' {
readonly isPgpFingerprint: boolean;
readonly isImage: boolean;
readonly isTwitter: boolean;
readonly type: 'Display' | 'Legal' | 'Web' | 'Riot' | 'Email' | 'PgpFingerprint' | 'Image' | 'Twitter';
}
/** @name PalletIdentityJudgement (277) */
@@ -2267,6 +2339,7 @@ declare module '@polkadot/types/lookup' {
readonly isOutOfDate: boolean;
readonly isLowQuality: boolean;
readonly isErroneous: boolean;
readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';
}
/** @name PalletSocietyCall (278) */
@@ -2320,6 +2393,7 @@ declare module '@polkadot/types/lookup' {
readonly asSetMaxMembers: {
readonly max: u32;
} & Struct;
readonly type: 'Bid' | 'Unbid' | 'Vouch' | 'Unvouch' | 'Vote' | 'DefenderVote' | 'Payout' | 'Found' | 'Unfound' | 'JudgeSuspendedMember' | 'JudgeSuspendedCandidate' | 'SetMaxMembers';
}
/** @name PalletSocietyJudgement (279) */
@@ -2327,6 +2401,7 @@ declare module '@polkadot/types/lookup' {
readonly isRebid: boolean;
readonly isReject: boolean;
readonly isApprove: boolean;
readonly type: 'Rebid' | 'Reject' | 'Approve';
}
/** @name PalletRecoveryCall (280) */
@@ -2369,6 +2444,7 @@ declare module '@polkadot/types/lookup' {
readonly asCancelRecovered: {
readonly account: AccountId32;
} & Struct;
readonly type: 'AsRecovered' | 'SetRecovered' | 'CreateRecovery' | 'InitiateRecovery' | 'VouchRecovery' | 'ClaimRecovery' | 'CloseRecovery' | 'RemoveRecovery' | 'CancelRecovered';
}
/** @name PalletVestingCall (281) */
@@ -2394,6 +2470,7 @@ declare module '@polkadot/types/lookup' {
readonly schedule1Index: u32;
readonly schedule2Index: u32;
} & Struct;
readonly type: 'Vest' | 'VestOther' | 'VestedTransfer' | 'ForceVestedTransfer' | 'MergeSchedules';
}
/** @name PalletVestingVestingInfo (282) */
@@ -2444,6 +2521,7 @@ declare module '@polkadot/types/lookup' {
readonly priority: u8;
readonly call: Call;
} & Struct;
readonly type: 'Schedule' | 'Cancel' | 'ScheduleNamed' | 'CancelNamed' | 'ScheduleAfter' | 'ScheduleNamedAfter';
}
/** @name PalletProxyCall (285) */
@@ -2503,6 +2581,7 @@ declare module '@polkadot/types/lookup' {
readonly forceProxyType: Option<NodeRuntimeProxyType>;
readonly call: Call;
} & Struct;
readonly type: 'Proxy' | 'AddProxy' | 'RemoveProxy' | 'RemoveProxies' | 'Anonymous' | 'KillAnonymous' | 'Announce' | 'RemoveAnnouncement' | 'RejectAnnouncement' | 'ProxyAnnounced';
}
/** @name PalletMultisigCall (287) */
@@ -2536,6 +2615,7 @@ declare module '@polkadot/types/lookup' {
readonly timepoint: PalletMultisigTimepoint;
readonly callHash: U8aFixed;
} & Struct;
readonly type: 'AsMultiThreshold1' | 'AsMulti' | 'ApproveAsMulti' | 'CancelAsMulti';
}
/** @name PalletBountiesCall (290) */
@@ -2581,6 +2661,7 @@ declare module '@polkadot/types/lookup' {
readonly bountyId: Compact<u32>;
readonly remark: Bytes;
} & Struct;
readonly type: 'ProposeBounty' | 'ApproveBounty' | 'ProposeCurator' | 'UnassignCurator' | 'AcceptCurator' | 'AwardBounty' | 'ClaimBounty' | 'CloseBounty' | 'ExtendBountyExpiry';
}
/** @name PalletTipsCall (291) */
@@ -2613,6 +2694,7 @@ declare module '@polkadot/types/lookup' {
readonly asSlashTip: {
readonly hash_: H256;
} & Struct;
readonly type: 'ReportAwesome' | 'RetractTip' | 'TipNew' | 'Tip' | 'CloseTip' | 'SlashTip';
}
/** @name PalletAssetsCall (292) */
@@ -2754,6 +2836,7 @@ declare module '@polkadot/types/lookup' {
readonly destination: MultiAddress;
readonly amount: Compact<u128>;
} & Struct;
readonly type: 'Create' | 'ForceCreate' | 'Destroy' | 'Mint' | 'Burn' | 'Transfer' | 'TransferKeepAlive' | 'ForceTransfer' | 'Freeze' | 'Thaw' | 'FreezeAsset' | 'ThawAsset' | 'TransferOwnership' | 'SetTeam' | 'SetMetadata' | 'ClearMetadata' | 'ForceSetMetadata' | 'ForceClearMetadata' | 'ForceAssetStatus' | 'ApproveTransfer' | 'CancelApproval' | 'ForceCancelApproval' | 'TransferApproved';
}
/** @name PalletAssetsDestroyWitness (293) */
@@ -2781,6 +2864,7 @@ declare module '@polkadot/types/lookup' {
readonly repeat: bool;
} & Struct;
readonly isStopRepeat: boolean;
readonly type: 'BuyTicket' | 'SetCalls' | 'StartLottery' | 'StopRepeat';
}
/** @name PalletGiltCall (295) */
@@ -2803,6 +2887,7 @@ declare module '@polkadot/types/lookup' {
readonly asThaw: {
readonly index: Compact<u32>;
} & Struct;
readonly type: 'PlaceBid' | 'RetractBid' | 'SetTarget' | 'Thaw';
}
/** @name PalletUniquesCall (298) */
@@ -2933,6 +3018,7 @@ declare module '@polkadot/types/lookup' {
readonly asClearClassMetadata: {
readonly class: Compact<u32>;
} & Struct;
readonly type: 'Create' | 'ForceCreate' | 'Destroy' | 'Mint' | 'Burn' | 'Transfer' | 'Redeposit' | 'Freeze' | 'Thaw' | 'FreezeClass' | 'ThawClass' | 'TransferOwnership' | 'SetTeam' | 'ApproveTransfer' | 'CancelApproval' | 'ForceAssetStatus' | 'SetAttribute' | 'ClearAttribute' | 'SetMetadata' | 'ClearMetadata' | 'SetClassMetadata' | 'ClearClassMetadata';
}
/** @name PalletUniquesDestroyWitness (299) */
@@ -2957,6 +3043,7 @@ declare module '@polkadot/types/lookup' {
readonly asCheckProof: {
readonly proof: SpTransactionStorageProofTransactionStorageProof;
} & Struct;
readonly type: 'Store' | 'Renew' | 'CheckProof';
}
/** @name SpTransactionStorageProofTransactionStorageProof (302) */
@@ -2971,6 +3058,7 @@ declare module '@polkadot/types/lookup' {
readonly asRebag: {
readonly dislocated: AccountId32;
} & Struct;
readonly type: 'Rebag';
}
/** @name NodeRuntimeOriginCaller (304) */
@@ -2982,6 +3070,7 @@ declare module '@polkadot/types/lookup' {
readonly asCouncil: PalletCollectiveRawOrigin;
readonly isTechnicalCommittee: boolean;
readonly asTechnicalCommittee: PalletCollectiveRawOrigin;
readonly type: 'System' | 'Void' | 'Council' | 'TechnicalCommittee';
}
/** @name FrameSystemRawOrigin (305) */
@@ -2990,6 +3079,7 @@ declare module '@polkadot/types/lookup' {
readonly isSigned: boolean;
readonly asSigned: AccountId32;
readonly isNone: boolean;
readonly type: 'Root' | 'Signed' | 'None';
}
/** @name PalletCollectiveRawOrigin (306) */
@@ -2999,6 +3089,7 @@ declare module '@polkadot/types/lookup' {
readonly isMember: boolean;
readonly asMember: AccountId32;
readonly isPhantom: boolean;
readonly type: 'Members' | 'Member' | 'Phantom';
}
/** @name SpCoreVoid (308) */
@@ -3007,6 +3098,7 @@ declare module '@polkadot/types/lookup' {
/** @name PalletUtilityError (309) */
export interface PalletUtilityError extends Enum {
readonly isTooManyCalls: boolean;
readonly type: 'TooManyCalls';
}
/** @name SpConsensusBabeBabeEpochConfiguration (316) */
@@ -3020,6 +3112,7 @@ declare module '@polkadot/types/lookup' {
readonly isInvalidEquivocationProof: boolean;
readonly isInvalidKeyOwnershipProof: boolean;
readonly isDuplicateOffenceReport: boolean;
readonly type: 'InvalidEquivocationProof' | 'InvalidKeyOwnershipProof' | 'DuplicateOffenceReport';
}
/** @name PalletAuthorshipUncleEntryItem (319) */
@@ -3028,6 +3121,7 @@ declare module '@polkadot/types/lookup' {
readonly asInclusionHeight: u32;
readonly isUncle: boolean;
readonly asUncle: ITuple<[H256, Option<AccountId32>]>;
readonly type: 'InclusionHeight' | 'Uncle';
}
/** @name PalletAuthorshipError (320) */
@@ -3039,6 +3133,7 @@ declare module '@polkadot/types/lookup' {
readonly isTooHighUncle: boolean;
readonly isUncleAlreadyIncluded: boolean;
readonly isOldUncle: boolean;
readonly type: 'InvalidUncleParent' | 'UnclesAlreadySet' | 'TooManyUncles' | 'GenesisUncle' | 'TooHighUncle' | 'UncleAlreadyIncluded' | 'OldUncle';
}
/** @name PalletIndicesError (322) */
@@ -3048,6 +3143,7 @@ declare module '@polkadot/types/lookup' {
readonly isInUse: boolean;
readonly isNotTransfer: boolean;
readonly isPermanent: boolean;
readonly type: 'NotAssigned' | 'NotOwner' | 'InUse' | 'NotTransfer' | 'Permanent';
}
/** @name PalletBalancesBalanceLock (324) */
@@ -3062,6 +3158,7 @@ declare module '@polkadot/types/lookup' {
readonly isFee: boolean;
readonly isMisc: boolean;
readonly isAll: boolean;
readonly type: 'Fee' | 'Misc' | 'All';
}
/** @name PalletBalancesReserveData (328) */
@@ -3074,6 +3171,7 @@ declare module '@polkadot/types/lookup' {
export interface PalletBalancesReleases extends Enum {
readonly isV100: boolean;
readonly isV200: boolean;
readonly type: 'V100' | 'V200';
}
/** @name PalletBalancesError (331) */
@@ -3086,12 +3184,14 @@ declare module '@polkadot/types/lookup' {
readonly isExistingVestingSchedule: boolean;
readonly isDeadAccount: boolean;
readonly isTooManyReserves: boolean;
readonly type: 'VestingBalance' | 'LiquidityRestrictions' | 'InsufficientBalance' | 'ExistentialDeposit' | 'KeepAlive' | 'ExistingVestingSchedule' | 'DeadAccount' | 'TooManyReserves';
}
/** @name PalletTransactionPaymentReleases (333) */
export interface PalletTransactionPaymentReleases extends Enum {
readonly isV1Ancient: boolean;
readonly isV2: boolean;
readonly type: 'V1Ancient' | 'V2';
}
/** @name FrameSupportWeightsWeightToFeeCoefficient (335) */
@@ -3109,6 +3209,7 @@ declare module '@polkadot/types/lookup' {
readonly isUnsigned: boolean;
readonly asUnsigned: ITuple<[bool, u32]>;
readonly isEmergency: boolean;
readonly type: 'Off' | 'Signed' | 'Unsigned' | 'Emergency';
}
/** @name PalletElectionProviderMultiPhaseReadySolution (338) */
@@ -3145,6 +3246,7 @@ declare module '@polkadot/types/lookup' {
readonly isMissingSnapshotMetadata: boolean;
readonly isInvalidSubmissionIndex: boolean;
readonly isCallNotAllowed: boolean;
readonly type: 'PreDispatchEarlySubmission' | 'PreDispatchWrongWinnerCount' | 'PreDispatchWeakSubmission' | 'SignedQueueFull' | 'SignedCannotPayDeposit' | 'SignedInvalidWitness' | 'SignedTooMuchWeight' | 'OcwCallWrongEra' | 'MissingSnapshotMetadata' | 'InvalidSubmissionIndex' | 'CallNotAllowed';
}
/** @name PalletStakingStakingLedger (348) */
@@ -3187,6 +3289,7 @@ declare module '@polkadot/types/lookup' {
readonly isForceNew: boolean;
readonly isForceNone: boolean;
readonly isForceAlways: boolean;
readonly type: 'NotForcing' | 'ForceNew' | 'ForceNone' | 'ForceAlways';
}
/** @name PalletStakingUnappliedSlash (360) */
@@ -3222,6 +3325,7 @@ declare module '@polkadot/types/lookup' {
readonly isV600: boolean;
readonly isV700: boolean;
readonly isV800: boolean;
readonly type: 'V100Ancient' | 'V200' | 'V300' | 'V400' | 'V500' | 'V600' | 'V700' | 'V800';
}
/** @name PalletStakingPalletError (367) */
@@ -3250,6 +3354,7 @@ declare module '@polkadot/types/lookup' {
readonly isTooManyNominators: boolean;
readonly isTooManyValidators: boolean;
readonly isCommissionTooLow: boolean;
readonly type: 'NotController' | 'NotStash' | 'AlreadyBonded' | 'AlreadyPaired' | 'EmptyTargets' | 'DuplicateIndex' | 'InvalidSlashIndex' | 'InsufficientBond' | 'NoMoreChunks' | 'NoUnlockChunk' | 'FundedTarget' | 'InvalidEraToReward' | 'InvalidNumberOfNominations' | 'NotSortedAndUnique' | 'AlreadyClaimed' | 'IncorrectHistoryDepth' | 'IncorrectSlashingSpans' | 'BadState' | 'TooManyTargets' | 'BadTarget' | 'CannotChillOther' | 'TooManyNominators' | 'TooManyValidators' | 'CommissionTooLow';
}
/** @name SpCoreCryptoKeyTypeId (371) */
@@ -3262,6 +3367,7 @@ declare module '@polkadot/types/lookup' {
readonly isDuplicatedKey: boolean;
readonly isNoKeys: boolean;
readonly isNoAccount: boolean;
readonly type: 'InvalidProof' | 'NoAssociatedValidatorId' | 'DuplicatedKey' | 'NoKeys' | 'NoAccount';
}
/** @name PalletDemocracyPreimageStatus (376) */
@@ -3276,6 +3382,7 @@ declare module '@polkadot/types/lookup' {
readonly since: u32;
readonly expiry: Option<u32>;
} & Struct;
readonly type: 'Missing' | 'Available';
}
/** @name PalletDemocracyReferendumInfo (377) */
@@ -3287,6 +3394,7 @@ declare module '@polkadot/types/lookup' {
readonly approved: bool;
readonly end: u32;
} & Struct;
readonly type: 'Ongoing' | 'Finished';
}
/** @name PalletDemocracyReferendumStatus (378) */
@@ -3321,6 +3429,7 @@ declare module '@polkadot/types/lookup' {
readonly delegations: PalletDemocracyDelegations;
readonly prior: PalletDemocracyVotePriorLock;
} & Struct;
readonly type: 'Direct' | 'Delegating';
}
/** @name PalletDemocracyDelegations (383) */
@@ -3335,6 +3444,7 @@ declare module '@polkadot/types/lookup' {
/** @name PalletDemocracyReleases (387) */
export interface PalletDemocracyReleases extends Enum {
readonly isV1: boolean;
readonly type: 'V1';
}
/** @name PalletDemocracyError (388) */
@@ -3367,6 +3477,7 @@ declare module '@polkadot/types/lookup' {
readonly isWrongUpperBound: boolean;
readonly isMaxVotesReached: boolean;
readonly isTooManyProposals: boolean;
readonly type: 'ValueLow' | 'ProposalMissing' | 'AlreadyCanceled' | 'DuplicateProposal' | 'ProposalBlacklisted' | 'NotSimpleMajority' | 'InvalidHash' | 'NoProposal' | 'AlreadyVetoed' | 'DuplicatePreimage' | 'NotImminent' | 'TooEarly' | 'Imminent' | 'PreimageMissing' | 'ReferendumInvalid' | 'PreimageInvalid' | 'NoneWaiting' | 'NotVoter' | 'NoPermission' | 'AlreadyDelegating' | 'InsufficientFunds' | 'NotDelegating' | 'VotesExist' | 'InstantNotAllowed' | 'Nonsense' | 'WrongUpperBound' | 'MaxVotesReached' | 'TooManyProposals';
}
/** @name PalletCollectiveVotes (390) */
@@ -3390,6 +3501,7 @@ declare module '@polkadot/types/lookup' {
readonly isTooManyProposals: boolean;
readonly isWrongProposalWeight: boolean;
readonly isWrongProposalLength: boolean;
readonly type: 'NotMember' | 'DuplicateProposal' | 'ProposalMissing' | 'WrongIndex' | 'DuplicateVote' | 'AlreadyInitialized' | 'TooEarly' | 'TooManyProposals' | 'WrongProposalWeight' | 'WrongProposalLength';
}
/** @name PalletElectionsPhragmenSeatHolder (395) */
@@ -3425,12 +3537,14 @@ declare module '@polkadot/types/lookup' {
readonly isInvalidVoteCount: boolean;
readonly isInvalidRenouncing: boolean;
readonly isInvalidReplacement: boolean;
readonly type: 'UnableToVote' | 'NoVotes' | 'TooManyVotes' | 'MaximumVotesExceeded' | 'LowBalance' | 'UnableToPayBond' | 'MustBeVoter' | 'ReportSelf' | 'DuplicatedCandidate' | 'MemberSubmit' | 'RunnerUpSubmit' | 'InsufficientCandidateFunds' | 'NotMember' | 'InvalidWitnessData' | 'InvalidVoteCount' | 'InvalidRenouncing' | 'InvalidReplacement';
}
/** @name PalletMembershipError (398) */
export interface PalletMembershipError extends Enum {
readonly isAlreadyMember: boolean;
readonly isNotMember: boolean;
readonly type: 'AlreadyMember' | 'NotMember';
}
/** @name PalletGrandpaStoredState (399) */
@@ -3447,6 +3561,7 @@ declare module '@polkadot/types/lookup' {
readonly scheduledAt: u32;
readonly delay: u32;
} & Struct;
readonly type: 'Live' | 'PendingPause' | 'Paused' | 'PendingResume';
}
/** @name PalletGrandpaStoredPendingChange (400) */
@@ -3466,6 +3581,7 @@ declare module '@polkadot/types/lookup' {
readonly isInvalidKeyOwnershipProof: boolean;
readonly isInvalidEquivocationProof: boolean;
readonly isDuplicateOffenceReport: boolean;
readonly type: 'PauseFailed' | 'ResumeFailed' | 'ChangePending' | 'TooSoon' | 'InvalidKeyOwnershipProof' | 'InvalidEquivocationProof' | 'DuplicateOffenceReport';
}
/** @name PalletTreasuryProposal (403) */
@@ -3484,6 +3600,7 @@ declare module '@polkadot/types/lookup' {
readonly isInsufficientProposersBalance: boolean;
readonly isInvalidIndex: boolean;
readonly isTooManyApprovals: boolean;
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'TooManyApprovals';
}
/** @name PalletContractsWasmPrefabWasmModule (408) */
@@ -3663,11 +3780,13 @@ declare module '@polkadot/types/lookup' {
readonly isTerminatedInConstructor: boolean;
readonly isDebugMessageInvalidUTF8: boolean;
readonly isReentranceDenied: boolean;
readonly type: 'InvalidScheduleVersion' | 'OutOfGas' | 'OutputBufferTooSmall' | 'BelowSubsistenceThreshold' | 'NewContractNotFunded' | 'TransferFailed' | 'MaxCallDepthReached' | 'ContractNotFound' | 'CodeTooLarge' | 'CodeNotFound' | 'OutOfBounds' | 'DecodingFailed' | 'ContractTrapped' | 'ValueTooLarge' | 'TerminatedWhileReentrant' | 'InputForwarded' | 'RandomSubjectTooLong' | 'TooManyTopics' | 'DuplicateTopics' | 'NoChainExtension' | 'DeletionQueueFull' | 'StorageExhausted' | 'DuplicateContract' | 'TerminatedInConstructor' | 'DebugMessageInvalidUTF8' | 'ReentranceDenied';
}
/** @name PalletSudoError (418) */
export interface PalletSudoError extends Enum {
readonly isRequireSudo: boolean;
readonly type: 'RequireSudo';
}
/** @name PalletImOnlineBoundedOpaqueNetworkState (422) */
@@ -3680,6 +3799,7 @@ declare module '@polkadot/types/lookup' {
export interface PalletImOnlineError extends Enum {
readonly isInvalidKey: boolean;
readonly isDuplicatedHeartbeat: boolean;
readonly type: 'InvalidKey' | 'DuplicatedHeartbeat';
}
/** @name SpStakingOffenceOffenceDetails (429) */
@@ -3720,6 +3840,7 @@ declare module '@polkadot/types/lookup' {
readonly isAlreadyClaimed: boolean;
readonly isNotSub: boolean;
readonly isNotOwned: boolean;
readonly type: 'TooManySubAccounts' | 'NotFound' | 'NotNamed' | 'EmptyIndex' | 'FeeChanged' | 'NoIdentity' | 'StickyJudgement' | 'JudgementGiven' | 'InvalidJudgement' | 'InvalidIndex' | 'InvalidTarget' | 'TooManyFields' | 'TooManyRegistrars' | 'AlreadyClaimed' | 'NotSub' | 'NotOwned';
}
/** @name PalletSocietyBid (443) */
@@ -3735,12 +3856,14 @@ declare module '@polkadot/types/lookup' {
readonly asDeposit: u128;
readonly isVouch: boolean;
readonly asVouch: ITuple<[AccountId32, u128]>;
readonly type: 'Deposit' | 'Vouch';
}
/** @name PalletSocietyVouchingStatus (446) */
export interface PalletSocietyVouchingStatus extends Enum {
readonly isVouching: boolean;
readonly isBanned: boolean;
readonly type: 'Vouching' | 'Banned';
}
/** @name PalletSocietyVote (450) */
@@ -3748,6 +3871,7 @@ declare module '@polkadot/types/lookup' {
readonly isSkeptic: boolean;
readonly isReject: boolean;
readonly isApprove: boolean;
readonly type: 'Skeptic' | 'Reject' | 'Approve';
}
/** @name PalletSocietyError (451) */
@@ -3770,6 +3894,7 @@ declare module '@polkadot/types/lookup' {
readonly isMaxMembers: boolean;
readonly isNotFounder: boolean;
readonly isNotHead: boolean;
readonly type: 'BadPosition' | 'NotMember' | 'AlreadyMember' | 'Suspended' | 'NotSuspended' | 'NoPayout' | 'AlreadyFounded' | 'InsufficientPot' | 'AlreadyVouching' | 'NotVouching' | 'Head' | 'Founder' | 'AlreadyBid' | 'AlreadyCandidate' | 'NotCandidate' | 'MaxMembers' | 'NotFounder' | 'NotHead';
}
/** @name PalletRecoveryRecoveryConfig (452) */
@@ -3805,12 +3930,14 @@ declare module '@polkadot/types/lookup' {
readonly isStillActive: boolean;
readonly isAlreadyProxy: boolean;
readonly isBadState: boolean;
readonly type: 'NotAllowed' | 'ZeroThreshold' | 'NotEnoughFriends' | 'MaxFriends' | 'NotSorted' | 'NotRecoverable' | 'AlreadyRecoverable' | 'AlreadyStarted' | 'NotStarted' | 'NotFriend' | 'DelayPeriod' | 'AlreadyVouched' | 'Threshold' | 'StillActive' | 'AlreadyProxy' | 'BadState';
}
/** @name PalletVestingReleases (457) */
export interface PalletVestingReleases extends Enum {
readonly isV0: boolean;
readonly isV1: boolean;
readonly type: 'V0' | 'V1';
}
/** @name PalletVestingError (458) */
@@ -3820,6 +3947,7 @@ declare module '@polkadot/types/lookup' {
readonly isAmountLow: boolean;
readonly isScheduleIndexOutOfBounds: boolean;
readonly isInvalidScheduleParams: boolean;
readonly type: 'NotVesting' | 'AtMaxVestingSchedules' | 'AmountLow' | 'ScheduleIndexOutOfBounds' | 'InvalidScheduleParams';
}
/** @name PalletSchedulerScheduledV2 (461) */
@@ -3835,6 +3963,7 @@ declare module '@polkadot/types/lookup' {
export interface PalletSchedulerReleases extends Enum {
readonly isV1: boolean;
readonly isV2: boolean;
readonly type: 'V1' | 'V2';
}
/** @name PalletSchedulerError (463) */
@@ -3843,6 +3972,7 @@ declare module '@polkadot/types/lookup' {
readonly isNotFound: boolean;
readonly isTargetBlockNumberInPast: boolean;
readonly isRescheduleNoChange: boolean;
readonly type: 'FailedToSchedule' | 'NotFound' | 'TargetBlockNumberInPast' | 'RescheduleNoChange';
}
/** @name PalletProxyProxyDefinition (466) */
@@ -3869,6 +3999,7 @@ declare module '@polkadot/types/lookup' {
readonly isNoPermission: boolean;
readonly isUnannounced: boolean;
readonly isNoSelfProxy: boolean;
readonly type: 'TooMany' | 'NotFound' | 'NotProxy' | 'Unproxyable' | 'Duplicate' | 'NoPermission' | 'Unannounced' | 'NoSelfProxy';
}
/** @name PalletMultisigMultisig (474) */
@@ -3895,6 +4026,7 @@ declare module '@polkadot/types/lookup' {
readonly isUnexpectedTimepoint: boolean;
readonly isMaxWeightTooLow: boolean;
readonly isAlreadyStored: boolean;
readonly type: 'MinimumThreshold' | 'AlreadyApproved' | 'NoApprovalsNeeded' | 'TooFewSignatories' | 'TooManySignatories' | 'SignatoriesOutOfOrder' | 'SenderInSignatories' | 'NotFound' | 'NotOwner' | 'NoTimepoint' | 'WrongTimepoint' | 'UnexpectedTimepoint' | 'MaxWeightTooLow' | 'AlreadyStored';
}
/** @name PalletBountiesBounty (477) */
@@ -3927,6 +4059,7 @@ declare module '@polkadot/types/lookup' {
readonly beneficiary: AccountId32;
readonly unlockAt: u32;
} & Struct;
readonly type: 'Proposed' | 'Approved' | 'Funded' | 'CuratorProposed' | 'Active' | 'PendingPayout';
}
/** @name PalletBountiesError (479) */
@@ -3940,6 +4073,7 @@ declare module '@polkadot/types/lookup' {
readonly isInvalidFee: boolean;
readonly isPendingPayout: boolean;
readonly isPremature: boolean;
readonly type: 'InsufficientProposersBalance' | 'InvalidIndex' | 'ReasonTooBig' | 'UnexpectedStatus' | 'RequireCurator' | 'InvalidValue' | 'InvalidFee' | 'PendingPayout' | 'Premature';
}
/** @name PalletTipsOpenTip (480) */
@@ -3961,6 +4095,7 @@ declare module '@polkadot/types/lookup' {
readonly isNotFinder: boolean;
readonly isStillOpen: boolean;
readonly isPremature: boolean;
readonly type: 'ReasonTooBig' | 'AlreadyKnown' | 'UnknownTip' | 'NotFinder' | 'StillOpen' | 'Premature';
}
/** @name PalletAssetsAssetDetails (482) */
@@ -4016,6 +4151,7 @@ declare module '@polkadot/types/lookup' {
readonly isBadMetadata: boolean;
readonly isUnapproved: boolean;
readonly isWouldDie: boolean;
readonly type: 'BalanceLow' | 'BalanceZero' | 'NoPermission' | 'Unknown' | 'Frozen' | 'InUse' | 'BadWitness' | 'MinBalanceZero' | 'NoProvider' | 'BadMetadata' | 'Unapproved' | 'WouldDie';
}
/** @name PalletLotteryLotteryConfig (488) */
@@ -4036,6 +4172,7 @@ declare module '@polkadot/types/lookup' {
readonly isAlreadyParticipating: boolean;
readonly isTooManyCalls: boolean;
readonly isEncodingFailed: boolean;
readonly type: 'NotConfigured' | 'InProgress' | 'AlreadyEnded' | 'InvalidCall' | 'AlreadyParticipating' | 'TooManyCalls' | 'EncodingFailed';
}
/** @name PalletGiltGiltBid (493) */
@@ -4070,6 +4207,7 @@ declare module '@polkadot/types/lookup' {
readonly isNotOwner: boolean;
readonly isNotExpired: boolean;
readonly isNotFound: boolean;
readonly type: 'DurationTooSmall' | 'DurationTooBig' | 'AmountTooSmall' | 'BidTooLow' | 'Unknown' | 'NotOwner' | 'NotExpired' | 'NotFound';
}
/** @name PalletUniquesClassDetails (497) */
@@ -4120,6 +4258,7 @@ declare module '@polkadot/types/lookup' {
readonly isWrongDelegate: boolean;
readonly isNoDelegate: boolean;
readonly isUnapproved: boolean;
readonly type: 'NoPermission' | 'Unknown' | 'AlreadyExists' | 'WrongOwner' | 'BadWitness' | 'InUse' | 'Frozen' | 'WrongDelegate' | 'NoDelegate' | 'Unapproved';
}
/** @name PalletTransactionStorageTransactionInfo (506) */
@@ -4145,6 +4284,7 @@ declare module '@polkadot/types/lookup' {
readonly isTransactionTooLarge: boolean;
readonly isTooManyTransactions: boolean;
readonly isBadContext: boolean;
readonly type: 'InsufficientFunds' | 'NotConfigured' | 'RenewedNotFound' | 'EmptyTransaction' | 'UnexpectedProof' | 'InvalidProof' | 'MissingProof' | 'MissingStateData' | 'DoubleCheck' | 'ProofNotChecked' | 'TransactionTooLarge' | 'TooManyTransactions' | 'BadContext';
}
/** @name PalletBagsListListNode (508) */
@@ -4169,6 +4309,7 @@ declare module '@polkadot/types/lookup' {
readonly asSr25519: SpCoreSr25519Signature;
readonly isEcdsa: boolean;
readonly asEcdsa: SpCoreEcdsaSignature;
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
/** @name SpCoreEcdsaSignature (513) */
@@ -10,6 +10,7 @@ export interface ExtrinsicOrHash extends Enum {
readonly asHash: Hash;
readonly isExtrinsic: boolean;
readonly asExtrinsic: Bytes;
readonly type: 'Hash' | 'Extrinsic';
}
/** @name ExtrinsicStatus */
@@ -30,6 +31,7 @@ export interface ExtrinsicStatus extends Enum {
readonly asUsurped: Hash;
readonly isDropped: boolean;
readonly isInvalid: boolean;
readonly type: 'Future' | 'Ready' | 'Broadcast' | 'InBlock' | 'Retracted' | 'FinalityTimeout' | 'Finalized' | 'Usurped' | 'Dropped' | 'Invalid';
}
export type PHANTOM_AUTHOR = 'author';
@@ -11,6 +11,7 @@ export interface UncleEntryItem extends Enum {
readonly asInclusionHeight: BlockNumber;
readonly isUncle: boolean;
readonly asUncle: ITuple<[Hash, Option<AccountId>]>;
readonly type: 'InclusionHeight' | 'Uncle';
}
export type PHANTOM_AUTHORSHIP = 'authorship';
@@ -11,6 +11,7 @@ export interface AllowedSlots extends Enum {
readonly isPrimarySlots: boolean;
readonly isPrimaryAndSecondaryPlainSlots: boolean;
readonly isPrimaryAndSecondaryVRFSlots: boolean;
readonly type: 'PrimarySlots' | 'PrimaryAndSecondaryPlainSlots' | 'PrimaryAndSecondaryVRFSlots';
}
/** @name BabeAuthorityWeight */
@@ -54,6 +55,7 @@ export interface NextConfigDescriptor extends Enum {
readonly isV0: boolean;
readonly isV1: boolean;
readonly asV1: NextConfigDescriptorV1;
readonly type: 'V0' | 'V1';
}
/** @name NextConfigDescriptorV1 */
@@ -74,6 +76,7 @@ export interface RawBabePreDigest extends Enum {
readonly asSecondaryPlain: RawBabePreDigestSecondaryPlain;
readonly isSecondaryVRF: boolean;
readonly asSecondaryVRF: RawBabePreDigestSecondaryVRF;
readonly type: 'Phantom' | 'Primary' | 'SecondaryPlain' | 'SecondaryVRF';
}
/** @name RawBabePreDigestCompat */
@@ -86,6 +89,7 @@ export interface RawBabePreDigestCompat extends Enum {
readonly asTwo: u32;
readonly isThree: boolean;
readonly asThree: u32;
readonly type: 'Zero' | 'One' | 'Two' | 'Three';
}
/** @name RawBabePreDigestPrimary */
@@ -132,6 +136,7 @@ export interface RawBabePreDigestTo159 extends Enum {
readonly asPrimary: RawBabePreDigestPrimaryTo159;
readonly isSecondary: boolean;
readonly asSecondary: RawBabePreDigestSecondaryTo159;
readonly type: 'Primary' | 'Secondary';
}
/** @name SlotNumber */
@@ -31,6 +31,7 @@ export interface BalanceLockTo212 extends Struct {
export interface BalanceStatus extends Enum {
readonly isFree: boolean;
readonly isReserved: boolean;
readonly type: 'Free' | 'Reserved';
}
/** @name Reasons */
@@ -38,6 +39,7 @@ export interface Reasons extends Enum {
readonly isFee: boolean;
readonly isMisc: boolean;
readonly isAll: boolean;
readonly type: 'Fee' | 'Misc' | 'All';
}
/** @name ReserveData */
@@ -27,6 +27,7 @@ export interface CallOrigin extends Enum {
readonly asTargetAccount: ITuple<[AccountId, MultiSigner, MultiSignature]>;
readonly isSourceAccount: boolean;
readonly asSourceAccount: AccountId;
readonly type: 'SourceRoot' | 'TargetAccount' | 'SourceAccount';
}
/** @name ChainId */
@@ -43,6 +44,7 @@ export interface DeliveredMessages extends Struct {
export interface DispatchFeePayment extends Enum {
readonly isAtSourceChain: boolean;
readonly isAtTargetChain: boolean;
readonly type: 'AtSourceChain' | 'AtTargetChain';
}
/** @name InboundLaneData */
@@ -101,6 +103,7 @@ export interface OperatingMode extends Enum {
readonly isNormal: boolean;
readonly isRejectingOutboundMessages: boolean;
readonly isHalted: boolean;
readonly type: 'Normal' | 'RejectingOutboundMessages' | 'Halted';
}
/** @name OutboundLaneData */
@@ -7,6 +7,7 @@ import type { Enum } from '@polkadot/types';
export interface StatementKind extends Enum {
readonly isRegular: boolean;
readonly isSaft: boolean;
readonly type: 'Regular' | 'Saft';
}
export type PHANTOM_CLAIMS = 'claims';
@@ -11,6 +11,7 @@ export interface CollectiveOrigin extends Enum {
readonly asMembers: ITuple<[MemberCount, MemberCount]>;
readonly isMember: boolean;
readonly asMember: AccountId;
readonly type: 'Members' | 'Member';
}
/** @name MemberCount */
@@ -45,6 +45,7 @@ export interface ContractExecResultErr extends Enum {
readonly isBadOrigin: boolean;
readonly isModule: boolean;
readonly asModule: ContractExecResultErrModule;
readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module';
}
/** @name ContractExecResultErrModule */
@@ -66,6 +67,7 @@ export interface ContractExecResultResult extends Enum {
readonly asOk: ContractExecResultOk;
readonly isErr: boolean;
readonly asErr: ContractExecResultErr;
readonly type: 'Ok' | 'Err';
}
/** @name ContractExecResultSuccessTo255 */
@@ -86,6 +88,7 @@ export interface ContractExecResultTo255 extends Enum {
readonly isSuccess: boolean;
readonly asSuccess: ContractExecResultSuccessTo255;
readonly isError: boolean;
readonly type: 'Success' | 'Error';
}
/** @name ContractExecResultTo260 */
@@ -93,6 +96,7 @@ export interface ContractExecResultTo260 extends Enum {
readonly isSuccess: boolean;
readonly asSuccess: ContractExecResultSuccessTo260;
readonly isError: boolean;
readonly type: 'Success' | 'Error';
}
/** @name ContractExecResultTo267 */
@@ -108,6 +112,7 @@ export interface ContractInfo extends Enum {
readonly asAlive: AliveContractInfo;
readonly isTombstone: boolean;
readonly asTombstone: TombstoneContractInfo;
readonly type: 'Alive' | 'Tombstone';
}
/** @name ContractInstantiateResult */
@@ -115,6 +120,7 @@ export interface ContractInstantiateResult extends Enum {
readonly isOk: boolean;
readonly asOk: InstantiateReturnValue;
readonly isErr: boolean;
readonly type: 'Ok' | 'Err';
}
/** @name ContractInstantiateResultTo267 */
@@ -122,6 +128,7 @@ export interface ContractInstantiateResultTo267 extends Enum {
readonly isOk: boolean;
readonly asOk: InstantiateReturnValueTo267;
readonly isErr: boolean;
readonly type: 'Ok' | 'Err';
}
/** @name ContractStorageKey */
@@ -366,6 +373,7 @@ export interface RentProjection extends Enum {
readonly isEvictionAt: boolean;
readonly asEvictionAt: BlockNumber;
readonly isNoEviction: boolean;
readonly type: 'EvictionAt' | 'NoEviction';
}
/** @name Schedule */
@@ -27,6 +27,7 @@ export interface ContractCryptoHasher extends Enum {
readonly isBlake2x256: boolean;
readonly isSha2x256: boolean;
readonly isKeccak256: boolean;
readonly type: 'Blake2x256' | 'Sha2x256' | 'Keccak256';
}
/** @name ContractDiscriminant */
@@ -121,6 +122,7 @@ export interface ContractMetadata extends Enum {
readonly asV0: ContractMetadataV0;
readonly isV1: boolean;
readonly asV1: ContractMetadataV1;
readonly type: 'V0' | 'V1';
}
/** @name ContractMetadataLatest */
@@ -191,6 +193,7 @@ export interface ContractStorageLayout extends Enum {
readonly asStruct: ContractLayoutStruct;
readonly isEnum: boolean;
readonly asEnum: ContractLayoutEnum;
readonly type: 'Cell' | 'Hash' | 'Array' | 'Struct' | 'Enum';
}
/** @name ContractTypeSpec */
@@ -29,6 +29,7 @@ export interface LastContribution extends Enum {
readonly asPreEnding: u32;
readonly isEnding: boolean;
readonly asEnding: BlockNumber;
readonly type: 'Never' | 'PreEnding' | 'Ending';
}
/** @name TrieIndex */
@@ -12,6 +12,7 @@ export interface AccountVote extends Enum {
readonly asStandard: AccountVoteStandard;
readonly isSplit: boolean;
readonly asSplit: AccountVoteSplit;
readonly type: 'Standard' | 'Split';
}
/** @name AccountVoteSplit */
@@ -35,6 +36,7 @@ export interface Conviction extends Enum {
readonly isLocked4x: boolean;
readonly isLocked5x: boolean;
readonly isLocked6x: boolean;
readonly type: 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x';
}
/** @name Delegations */
@@ -49,6 +51,7 @@ export interface PreimageStatus extends Enum {
readonly asMissing: BlockNumber;
readonly isAvailable: boolean;
readonly asAvailable: PreimageStatusAvailable;
readonly type: 'Missing' | 'Available';
}
/** @name PreimageStatusAvailable */
@@ -75,6 +78,7 @@ export interface ProxyState extends Enum {
readonly asOpen: AccountId;
readonly isActive: boolean;
readonly asActive: AccountId;
readonly type: 'Open' | 'Active';
}
/** @name ReferendumIndex */
@@ -86,6 +90,7 @@ export interface ReferendumInfo extends Enum {
readonly asOngoing: ReferendumStatus;
readonly isFinished: boolean;
readonly asFinished: ReferendumInfoFinished;
readonly type: 'Ongoing' | 'Finished';
}
/** @name ReferendumInfoFinished */
@@ -124,6 +129,7 @@ export interface Voting extends Enum {
readonly asDirect: VotingDirect;
readonly isDelegating: boolean;
readonly asDelegating: VotingDelegating;
readonly type: 'Direct' | 'Delegating';
}
/** @name VotingDelegating */
@@ -20,6 +20,7 @@ export interface Renouncing extends Enum {
readonly isRunnerUp: boolean;
readonly isCandidate: boolean;
readonly asCandidate: Compact<u32>;
readonly type: 'Member' | 'RunnerUp' | 'Candidate';
}
/** @name SetIndex */
@@ -44,6 +45,7 @@ export interface VoteThreshold extends Enum {
readonly isSuperMajorityApprove: boolean;
readonly isSuperMajorityAgainst: boolean;
readonly isSimpleMajority: boolean;
readonly type: 'SuperMajorityApprove' | 'SuperMajorityAgainst' | 'SimpleMajority';
}
export type PHANTOM_ELECTIONS = 'elections';
@@ -128,6 +128,7 @@ export interface EthFilterAddress extends Enum {
readonly isMultiple: boolean;
readonly asMultiple: Vec<EthAddress>;
readonly isNull: boolean;
readonly type: 'Single' | 'Multiple' | 'Null';
}
/** @name EthFilterChanges */
@@ -137,6 +138,7 @@ export interface EthFilterChanges extends Enum {
readonly isHashes: boolean;
readonly asHashes: Vec<H256>;
readonly isEmpty: boolean;
readonly type: 'Logs' | 'Hashes' | 'Empty';
}
/** @name EthFilterTopic */
@@ -146,6 +148,7 @@ export interface EthFilterTopic extends Enum {
readonly isMultiple: boolean;
readonly asMultiple: Vec<EthFilterTopicInner>;
readonly isNull: boolean;
readonly type: 'Single' | 'Multiple' | 'Null';
}
/** @name EthFilterTopicEntry */
@@ -158,6 +161,7 @@ export interface EthFilterTopicInner extends Enum {
readonly isMultiple: boolean;
readonly asMultiple: Vec<EthFilterTopicEntry>;
readonly isNull: boolean;
readonly type: 'Single' | 'Multiple' | 'Null';
}
/** @name EthHeader */
@@ -268,6 +272,7 @@ export interface EthSubKind extends Enum {
readonly isLogs: boolean;
readonly isNewPendingTransactions: boolean;
readonly isSyncing: boolean;
readonly type: 'NewHeads' | 'Logs' | 'NewPendingTransactions' | 'Syncing';
}
/** @name EthSubParams */
@@ -275,6 +280,7 @@ export interface EthSubParams extends Enum {
readonly isNone: boolean;
readonly isLogs: boolean;
readonly asLogs: EthFilter;
readonly type: 'None' | 'Logs';
}
/** @name EthSubResult */
@@ -287,6 +293,7 @@ export interface EthSubResult extends Enum {
readonly asTransactionHash: H256;
readonly isSyncState: boolean;
readonly asSyncState: EthSyncStatus;
readonly type: 'Header' | 'Log' | 'TransactionHash' | 'SyncState';
}
/** @name EthSyncInfo */
@@ -303,6 +310,7 @@ export interface EthSyncStatus extends Enum {
readonly isInfo: boolean;
readonly asInfo: EthSyncInfo;
readonly isNone: boolean;
readonly type: 'Info' | 'None';
}
/** @name EthTransaction */
@@ -313,6 +321,7 @@ export interface EthTransactionAction extends Enum {
readonly isCall: boolean;
readonly asCall: H160;
readonly isCreate: boolean;
readonly type: 'Call' | 'Create';
}
/** @name EthTransactionCondition */
@@ -321,6 +330,7 @@ export interface EthTransactionCondition extends Enum {
readonly asBlock: u64;
readonly isTime: boolean;
readonly asTime: u64;
readonly type: 'Block' | 'Time';
}
/** @name EthTransactionRequest */
@@ -380,6 +390,7 @@ export interface TransactionV1 extends Enum {
readonly asLegacy: LegacyTransaction;
readonly isEip2930: boolean;
readonly asEip2930: EIP2930Transaction;
readonly type: 'Legacy' | 'Eip2930';
}
/** @name TransactionV2 */
@@ -390,6 +401,7 @@ export interface TransactionV2 extends Enum {
readonly asEip2930: EIP2930Transaction;
readonly isEip1559: boolean;
readonly asEip1559: EIP1559Transaction;
readonly type: 'Legacy' | 'Eip2930' | 'Eip1559';
}
export type PHANTOM_ETH = 'eth';
@@ -40,6 +40,7 @@ export interface ExitError extends Enum {
readonly isCreateEmpty: boolean;
readonly isOther: boolean;
readonly asOther: Text;
readonly type: 'StackUnderflow' | 'StackOverflow' | 'InvalidJump' | 'InvalidRange' | 'DesignatedInvalid' | 'CallTooDeep' | 'CreateCollision' | 'CreateContractLimit' | 'OutOfOffset' | 'OutOfGas' | 'OutOfFund' | 'PCUnderflow' | 'CreateEmpty' | 'Other';
}
/** @name ExitFatal */
@@ -50,6 +51,7 @@ export interface ExitFatal extends Enum {
readonly asCallErrorAsFatal: ExitError;
readonly isOther: boolean;
readonly asOther: Text;
readonly type: 'NotSupported' | 'UnhandledInterrupt' | 'CallErrorAsFatal' | 'Other';
}
/** @name ExitReason */
@@ -62,11 +64,13 @@ export interface ExitReason extends Enum {
readonly asRevert: ExitRevert;
readonly isFatal: boolean;
readonly asFatal: ExitFatal;
readonly type: 'Succeed' | 'Error' | 'Revert' | 'Fatal';
}
/** @name ExitRevert */
export interface ExitRevert extends Enum {
readonly isReverted: boolean;
readonly type: 'Reverted';
}
/** @name ExitSucceed */
@@ -74,6 +78,7 @@ export interface ExitSucceed extends Enum {
readonly isStopped: boolean;
readonly isReturned: boolean;
readonly isSuicided: boolean;
readonly type: 'Stopped' | 'Returned' | 'Suicided';
}
export type PHANTOM_EVM = 'evm';
@@ -57,6 +57,7 @@ export interface MultiSignature extends Enum {
readonly asSr25519: Sr25519Signature;
readonly isEcdsa: boolean;
readonly asEcdsa: EcdsaSignature;
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
/** @name Signature */
@@ -15,6 +15,7 @@ export interface Owner extends Enum {
readonly isNone: boolean;
readonly isAddress: boolean;
readonly asAddress: AccountId;
readonly type: 'None' | 'Address';
}
/** @name PermissionLatest */
@@ -31,6 +32,7 @@ export interface PermissionsV1 extends Struct {
export interface PermissionVersions extends Enum {
readonly isV1: boolean;
readonly asV1: PermissionsV1;
readonly type: 'V1';
}
export type PHANTOM_GENERICASSET = 'genericAsset';
@@ -38,6 +38,7 @@ export interface DelayKind extends Enum {
readonly isFinalized: boolean;
readonly isBest: boolean;
readonly asBest: DelayKindBest;
readonly type: 'Finalized' | 'Best';
}
/** @name DelayKindBest */
@@ -75,6 +76,7 @@ export interface GrandpaEquivocation extends Enum {
readonly asPrevote: GrandpaEquivocationValue;
readonly isPrecommit: boolean;
readonly asPrecommit: GrandpaEquivocationValue;
readonly type: 'Prevote' | 'Precommit';
}
/** @name GrandpaEquivocationProof */
@@ -193,6 +195,7 @@ export interface StoredState extends Enum {
readonly isPaused: boolean;
readonly isPendingResume: boolean;
readonly asPendingResume: PendingResume;
readonly type: 'Live' | 'PendingPause' | 'Paused' | 'PendingResume';
}
export type PHANTOM_GRANDPA = 'grandpa';
@@ -55,6 +55,7 @@ export interface IdentityJudgement extends Enum {
readonly isOutOfDate: boolean;
readonly isLowQuality: boolean;
readonly isErroneous: boolean;
readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';
}
/** @name RegistrarIndex */
@@ -160,6 +160,7 @@ export interface MetadataAll extends Enum {
readonly asV13: MetadataV13;
readonly isV14: boolean;
readonly asV14: MetadataV14;
readonly type: 'V0' | 'V1' | 'V2' | 'V3' | 'V4' | 'V5' | 'V6' | 'V7' | 'V8' | 'V9' | 'V10' | 'V11' | 'V12' | 'V13' | 'V14';
}
/** @name MetadataLatest */
@@ -424,6 +425,7 @@ export interface StorageEntryModifierV9 extends Enum {
readonly isOptional: boolean;
readonly isDefault: boolean;
readonly isRequired: boolean;
readonly type: 'Optional' | 'Default' | 'Required';
}
/** @name StorageEntryTypeLatest */
@@ -448,6 +450,7 @@ export interface StorageEntryTypeV10 extends Enum {
readonly value: Type;
readonly key2Hasher: StorageHasherV10;
} & Struct;
readonly type: 'Plain' | 'Map' | 'DoubleMap';
}
/** @name StorageEntryTypeV11 */
@@ -469,6 +472,7 @@ export interface StorageEntryTypeV11 extends Enum {
readonly value: Type;
readonly key2Hasher: StorageHasherV11;
} & Struct;
readonly type: 'Plain' | 'Map' | 'DoubleMap';
}
/** @name StorageEntryTypeV12 */
@@ -499,6 +503,7 @@ export interface StorageEntryTypeV13 extends Enum {
readonly hashers: Vec<StorageHasherV13>;
readonly value: Type;
} & Struct;
readonly type: 'Plain' | 'Map' | 'DoubleMap' | 'NMap';
}
/** @name StorageEntryTypeV14 */
@@ -511,6 +516,7 @@ export interface StorageEntryTypeV14 extends Enum {
readonly key: SiLookupTypeId;
readonly value: SiLookupTypeId;
} & Struct;
readonly type: 'Plain' | 'Map';
}
/** @name StorageEntryTypeV9 */
@@ -532,6 +538,7 @@ export interface StorageEntryTypeV9 extends Enum {
readonly value: Type;
readonly key2Hasher: StorageHasherV9;
} & Struct;
readonly type: 'Plain' | 'Map' | 'DoubleMap';
}
/** @name StorageHasher */
@@ -545,6 +552,7 @@ export interface StorageHasherV10 extends Enum {
readonly isTwox128: boolean;
readonly isTwox256: boolean;
readonly isTwox64Concat: boolean;
readonly type: 'Blake2128' | 'Blake2256' | 'Blake2128Concat' | 'Twox128' | 'Twox256' | 'Twox64Concat';
}
/** @name StorageHasherV11 */
@@ -556,6 +564,7 @@ export interface StorageHasherV11 extends Enum {
readonly isTwox256: boolean;
readonly isTwox64Concat: boolean;
readonly isIdentity: boolean;
readonly type: 'Blake2128' | 'Blake2256' | 'Blake2128Concat' | 'Twox128' | 'Twox256' | 'Twox64Concat' | 'Identity';
}
/** @name StorageHasherV12 */
@@ -574,6 +583,7 @@ export interface StorageHasherV9 extends Enum {
readonly isTwox128: boolean;
readonly isTwox256: boolean;
readonly isTwox64Concat: boolean;
readonly type: 'Blake2128' | 'Blake2256' | 'Twox128' | 'Twox256' | 'Twox64Concat';
}
/** @name StorageMetadataV10 */
@@ -7,6 +7,7 @@ import type { Enum } from '@polkadot/types';
export interface StorageKind extends Enum {
readonly isPersistent: boolean;
readonly isLocal: boolean;
readonly type: 'Persistent' | 'Local';
}
export type PHANTOM_OFFCHAIN = 'offchain';
@@ -49,6 +49,7 @@ export interface AssignmentKind extends Enum {
readonly isParachain: boolean;
readonly isParathread: boolean;
readonly asParathread: ITuple<[CollatorId, u32]>;
readonly type: 'Parachain' | 'Parathread';
}
/** @name AttestedCandidate */
@@ -86,6 +87,7 @@ export interface Bidder extends Enum {
readonly asNew: NewBidder;
readonly isExisting: boolean;
readonly asExisting: ParaId;
readonly type: 'New' | 'Existing';
}
/** @name BufferedSessionChange */
@@ -174,18 +176,21 @@ export interface CoreOccupied extends Enum {
readonly isParathread: boolean;
readonly asParathread: ParathreadEntry;
readonly isParachain: boolean;
readonly type: 'Parathread' | 'Parachain';
}
/** @name DisputeLocation */
export interface DisputeLocation extends Enum {
readonly isLocal: boolean;
readonly isRemote: boolean;
readonly type: 'Local' | 'Remote';
}
/** @name DisputeResult */
export interface DisputeResult extends Enum {
readonly isValid: boolean;
readonly isInvalid: boolean;
readonly type: 'Valid' | 'Invalid';
}
/** @name DisputeState */
@@ -202,6 +207,7 @@ export interface DisputeStatement extends Enum {
readonly asValid: ValidDisputeStatementKind;
readonly isInvalid: boolean;
readonly asInvalid: InvalidDisputeStatementKind;
readonly type: 'Valid' | 'Invalid';
}
/** @name DisputeStatementSet */
@@ -345,6 +351,7 @@ export interface IncomingParachain extends Enum {
readonly asFixed: IncomingParachainFixed;
readonly isDeploy: boolean;
readonly asDeploy: IncomingParachainDeploy;
readonly type: 'Unset' | 'Fixed' | 'Deploy';
}
/** @name IncomingParachainDeploy */
@@ -363,6 +370,7 @@ export interface IncomingParachainFixed extends Struct {
/** @name InvalidDisputeStatementKind */
export interface InvalidDisputeStatementKind extends Enum {
readonly isExplicit: boolean;
readonly type: 'Explicit';
}
/** @name LeasePeriod */
@@ -416,6 +424,7 @@ export interface ParachainDispatchOrigin extends Enum {
readonly isSigned: boolean;
readonly isParachain: boolean;
readonly isRoot: boolean;
readonly type: 'Signed' | 'Parachain' | 'Root';
}
/** @name ParachainInherentData */
@@ -469,6 +478,7 @@ export interface ParaLifecycle extends Enum {
readonly isDowngradingToParathread: boolean;
readonly isOutgoingParathread: boolean;
readonly isOutgoingParachain: boolean;
readonly type: 'Onboarding' | 'Parathread' | 'Parachain' | 'UpgradingToParachain' | 'DowngradingToParathread' | 'OutgoingParathread' | 'OutgoingParachain';
}
/** @name ParaPastCodeMeta */
@@ -481,6 +491,7 @@ export interface ParaPastCodeMeta extends Struct {
export interface ParaScheduling extends Enum {
readonly isAlways: boolean;
readonly isDynamic: boolean;
readonly type: 'Always' | 'Dynamic';
}
/** @name ParathreadClaim */
@@ -547,18 +558,21 @@ export interface Retriable extends Enum {
readonly isNever: boolean;
readonly isWithRetries: boolean;
readonly asWithRetries: u32;
readonly type: 'Never' | 'WithRetries';
}
/** @name Scheduling */
export interface Scheduling extends Enum {
readonly isAlways: boolean;
readonly isDynamic: boolean;
readonly type: 'Always' | 'Dynamic';
}
/** @name ServiceQuality */
export interface ServiceQuality extends Enum {
readonly isOrdered: boolean;
readonly isFast: boolean;
readonly type: 'Ordered' | 'Fast';
}
/** @name SessionInfo */
@@ -606,6 +620,7 @@ export interface SlotRange extends Enum {
readonly isTwoTwo: boolean;
readonly isTwoThree: boolean;
readonly isThreeThree: boolean;
readonly type: 'ZeroZero' | 'ZeroOne' | 'ZeroTwo' | 'ZeroThree' | 'OneOne' | 'OneTwo' | 'OneThree' | 'TwoTwo' | 'TwoThree' | 'ThreeThree';
}
/** @name Statement */
@@ -617,6 +632,7 @@ export interface Statement extends Enum {
readonly asValid: Hash;
readonly isInvalid: boolean;
readonly asInvalid: Hash;
readonly type: 'Never' | 'Candidate' | 'Valid' | 'Invalid';
}
/** @name SubId */
@@ -638,11 +654,13 @@ export interface TransientValidationData extends Struct {
export interface UpgradeGoAhead extends Enum {
readonly isAbort: boolean;
readonly isGoAhead: boolean;
readonly type: 'Abort' | 'GoAhead';
}
/** @name UpgradeRestriction */
export interface UpgradeRestriction extends Enum {
readonly isPresent: boolean;
readonly type: 'Present';
}
/** @name UpwardMessage */
@@ -684,6 +702,7 @@ export interface ValidDisputeStatementKind extends Enum {
readonly isBackingValid: boolean;
readonly asBackingValid: Hash;
readonly isApprovalChecking: boolean;
readonly type: 'Explicit' | 'BackingSeconded' | 'BackingValid' | 'ApprovalChecking';
}
/** @name ValidityAttestation */
@@ -693,6 +712,7 @@ export interface ValidityAttestation extends Enum {
readonly asImplicit: ValidatorSignature;
readonly isExplicit: boolean;
readonly asExplicit: ValidatorSignature;
readonly type: 'Never' | 'Implicit' | 'Explicit';
}
/** @name VecInboundHrmpMessage */
@@ -24,6 +24,7 @@ export interface ProxyType extends Enum {
readonly isNonTransfer: boolean;
readonly isGovernance: boolean;
readonly isStaking: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Staking';
}
export type PHANTOM_PROXY = 'proxy';
@@ -21,6 +21,7 @@ export interface AccountValidity extends Enum {
readonly isValidLow: boolean;
readonly isValidHigh: boolean;
readonly isCompleted: boolean;
readonly type: 'Invalid' | 'Initiated' | 'Pending' | 'ValidLow' | 'ValidHigh' | 'Completed';
}
export type PHANTOM_PURCHASE = 'purchase';
@@ -65,6 +65,7 @@ export interface ChangesTrieConfiguration extends Struct {
export interface ChangesTrieSignal extends Enum {
readonly isNewConfiguration: boolean;
readonly asNewConfiguration: Option<ChangesTrieConfiguration>;
readonly type: 'NewConfiguration';
}
/** @name CodecHash */
@@ -107,6 +108,7 @@ export interface DigestItem extends Enum {
readonly isChangesTrieSignal: boolean;
readonly asChangesTrieSignal: ChangesTrieSignal;
readonly isRuntimeEnvironmentUpdated: boolean;
readonly type: 'Other' | 'AuthoritiesChange' | 'ChangesTrieRoot' | 'SealV0' | 'Consensus' | 'Seal' | 'PreRuntime' | 'ChangesTrieSignal' | 'RuntimeEnvironmentUpdated';
}
/** @name EncodedJustification */
@@ -225,6 +227,7 @@ export interface MultiSigner extends Enum {
readonly asSr25519: U8aFixed;
readonly isEcdsa: boolean;
readonly asEcdsa: U8aFixed;
readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa';
}
/** @name OpaqueCall */
@@ -237,6 +240,7 @@ export interface Origin extends DoNotConstruct {}
export interface OriginCaller extends Enum {
readonly isSystem: boolean;
readonly asSystem: SystemOrigin;
readonly type: 'System';
}
/** @name PalletId */
@@ -256,6 +260,7 @@ export interface PalletVersion extends Struct {
export interface Pays extends Enum {
readonly isYes: boolean;
readonly isNo: boolean;
readonly type: 'Yes' | 'No';
}
/** @name Perbill */
@@ -294,6 +299,7 @@ export interface Releases extends Enum {
readonly isV8: boolean;
readonly isV9: boolean;
readonly isV10: boolean;
readonly type: 'V1' | 'V2' | 'V3' | 'V4' | 'V5' | 'V6' | 'V7' | 'V8' | 'V9' | 'V10';
}
/** @name RuntimeDbWeight */
@@ -44,6 +44,7 @@ export interface Si0TypeDef extends Enum {
readonly asPhantom: Si0TypeDefPhantom;
readonly isBitSequence: boolean;
readonly asBitSequence: Si0TypeDefBitSequence;
readonly type: 'Composite' | 'Variant' | 'Sequence' | 'Array' | 'Tuple' | 'Primitive' | 'Compact' | 'Phantom' | 'BitSequence';
}
/** @name Si0TypeDefArray */
@@ -88,6 +89,7 @@ export interface Si0TypeDefPrimitive extends Enum {
readonly isI64: boolean;
readonly isI128: boolean;
readonly isI256: boolean;
readonly type: 'Bool' | 'Char' | 'Str' | 'U8' | 'U16' | 'U32' | 'U64' | 'U128' | 'U256' | 'I8' | 'I16' | 'I32' | 'I64' | 'I128' | 'I256';
}
/** @name Si0TypeDefSequence */
@@ -160,6 +162,7 @@ export interface Si1TypeDef extends Enum {
readonly asBitSequence: Si1TypeDefBitSequence;
readonly isHistoricMetaCompat: boolean;
readonly asHistoricMetaCompat: Type;
readonly type: 'Composite' | 'Variant' | 'Sequence' | 'Array' | 'Tuple' | 'Primitive' | 'Compact' | 'BitSequence' | 'HistoricMetaCompat';
}
/** @name Si1TypeDefArray */
@@ -18,6 +18,7 @@ export interface BidKind extends Enum {
readonly asDeposit: Balance;
readonly isVouch: boolean;
readonly asVouch: ITuple<[AccountId, Balance]>;
readonly type: 'Deposit' | 'Vouch';
}
/** @name SocietyJudgement */
@@ -25,6 +26,7 @@ export interface SocietyJudgement extends Enum {
readonly isRebid: boolean;
readonly isReject: boolean;
readonly isApprove: boolean;
readonly type: 'Rebid' | 'Reject' | 'Approve';
}
/** @name SocietyVote */
@@ -32,6 +34,7 @@ export interface SocietyVote extends Enum {
readonly isSkeptic: boolean;
readonly isReject: boolean;
readonly isApprove: boolean;
readonly type: 'Skeptic' | 'Reject' | 'Approve';
}
/** @name StrikeCount */
@@ -41,6 +44,7 @@ export interface StrikeCount extends u32 {}
export interface VouchingStatus extends Enum {
readonly isVouching: boolean;
readonly isBanned: boolean;
readonly type: 'Vouching' | 'Banned';
}
export type PHANTOM_SOCIETY = 'society';
@@ -96,6 +96,7 @@ export interface ElectionCompute extends Enum {
readonly isOnChain: boolean;
readonly isSigned: boolean;
readonly isUnsigned: boolean;
readonly type: 'OnChain' | 'Signed' | 'Unsigned';
}
/** @name ElectionPhase */
@@ -105,6 +106,7 @@ export interface ElectionPhase extends Enum {
readonly isUnsigned: boolean;
readonly asUnsigned: ITuple<[bool, BlockNumber]>;
readonly isEmergency: boolean;
readonly type: 'Off' | 'Signed' | 'Unsigned' | 'Emergency';
}
/** @name ElectionResult */
@@ -129,6 +131,7 @@ export interface ElectionStatus extends Enum {
readonly isClose: boolean;
readonly isOpen: boolean;
readonly asOpen: BlockNumber;
readonly type: 'Close' | 'Open';
}
/** @name EraIndex */
@@ -168,6 +171,7 @@ export interface Forcing extends Enum {
readonly isForceNew: boolean;
readonly isForceNone: boolean;
readonly isForceAlways: boolean;
readonly type: 'NotForcing' | 'ForceNew' | 'ForceNone' | 'ForceAlways';
}
/** @name IndividualExposure */
@@ -242,6 +246,7 @@ export interface RewardDestination extends Enum {
readonly isAccount: boolean;
readonly asAccount: AccountId;
readonly isNone: boolean;
readonly type: 'Staked' | 'Stash' | 'Controller' | 'Account' | 'None';
}
/** @name RewardPoint */
@@ -83,6 +83,7 @@ export interface TraceBlockResponse extends Enum {
readonly asTraceError: TraceError;
readonly isBlockTrace: boolean;
readonly asBlockTrace: BlockTrace;
readonly type: 'TraceError' | 'BlockTrace';
}
/** @name TraceError */
@@ -60,6 +60,7 @@ export interface ArithmeticError extends Enum {
readonly isUnderflow: boolean;
readonly isOverflow: boolean;
readonly isDivisionByZero: boolean;
readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero';
}
/** @name BlockLength */
@@ -84,6 +85,7 @@ export interface ChainType extends Enum {
readonly isLive: boolean;
readonly isCustom: boolean;
readonly asCustom: Text;
readonly type: 'Development' | 'Local' | 'Live' | 'Custom';
}
/** @name ConsumedWeight */
@@ -97,6 +99,7 @@ export interface DispatchClass extends Enum {
readonly isNormal: boolean;
readonly isOperational: boolean;
readonly isMandatory: boolean;
readonly type: 'Normal' | 'Operational' | 'Mandatory';
}
/** @name DispatchError */
@@ -112,6 +115,7 @@ export interface DispatchError extends Enum {
readonly asToken: TokenError;
readonly isArithmetic: boolean;
readonly asArithmetic: ArithmeticError;
readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'Token' | 'Arithmetic';
}
/** @name DispatchErrorModule */
@@ -221,6 +225,7 @@ export interface InvalidTransaction extends Enum {
readonly asCustom: u8;
readonly isBadMandatory: boolean;
readonly isMandatoryDispatch: boolean;
readonly type: 'Call' | 'Payment' | 'Future' | 'Stale' | 'BadProof' | 'AncientBirthBlock' | 'ExhaustsResources' | 'Custom' | 'BadMandatory' | 'MandatoryDispatch';
}
/** @name Key */
@@ -263,6 +268,7 @@ export interface NodeRole extends Enum {
readonly isAuthority: boolean;
readonly isUnknownRole: boolean;
readonly asUnknownRole: u8;
readonly type: 'Full' | 'LightClient' | 'Authority' | 'UnknownRole';
}
/** @name NotConnectedPeer */
@@ -335,6 +341,7 @@ export interface Phase extends Enum {
readonly asApplyExtrinsic: u32;
readonly isFinalization: boolean;
readonly isInitialization: boolean;
readonly type: 'ApplyExtrinsic' | 'Finalization' | 'Initialization';
}
/** @name RawOrigin */
@@ -343,6 +350,7 @@ export interface RawOrigin extends Enum {
readonly isSigned: boolean;
readonly asSigned: AccountId;
readonly isNone: boolean;
readonly type: 'Root' | 'Signed' | 'None';
}
/** @name RefCount */
@@ -371,6 +379,7 @@ export interface TokenError extends Enum {
readonly isFrozen: boolean;
readonly isUnderflow: boolean;
readonly isOverflow: boolean;
readonly type: 'NoFunds' | 'WouldDie' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Underflow' | 'Overflow';
}
/** @name TransactionValidityError */
@@ -379,6 +388,7 @@ export interface TransactionValidityError extends Enum {
readonly asInvalid: InvalidTransaction;
readonly isUnknown: boolean;
readonly asUnknown: UnknownTransaction;
readonly type: 'Invalid' | 'Unknown';
}
/** @name UnknownTransaction */
@@ -387,6 +397,7 @@ export interface UnknownTransaction extends Enum {
readonly isNoUnsignedValidator: boolean;
readonly isCustom: boolean;
readonly asCustom: u8;
readonly type: 'CannotLookup' | 'NoUnsignedValidator' | 'Custom';
}
/** @name WeightPerClass */
@@ -29,6 +29,7 @@ export interface BountyStatus extends Enum {
readonly asActive: BountyStatusActive;
readonly isPendingPayout: boolean;
readonly asPendingPayout: BountyStatusPendingPayout;
readonly type: 'Proposed' | 'Approved' | 'Funded' | 'CuratorProposed' | 'Active' | 'PendingPayout';
}
/** @name BountyStatusActive */
@@ -31,6 +31,7 @@ export interface AssetInstanceV0 extends Enum {
readonly asArray32: U8aFixed;
readonly isBlob: boolean;
readonly asBlob: Bytes;
readonly type: 'Undefined' | 'Index8' | 'Index16' | 'Index32' | 'Index64' | 'Index128' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
}
/** @name AssetInstanceV1 */
@@ -48,6 +49,7 @@ export interface AssetInstanceV1 extends Enum {
readonly asArray32: U8aFixed;
readonly isBlob: boolean;
readonly asBlob: Bytes;
readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
}
/** @name AssetInstanceV2 */
@@ -64,6 +66,7 @@ export interface BodyId extends Enum {
readonly isTechnical: boolean;
readonly isLegislative: boolean;
readonly isJudicial: boolean;
readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
}
/** @name BodyPart */
@@ -86,6 +89,7 @@ export interface BodyPart extends Enum {
readonly nom: Compact<u32>;
readonly denom: Compact<u32>;
} & Struct;
readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
}
/** @name DoubleEncodedCall */
@@ -105,6 +109,7 @@ export interface FungibilityV1 extends Enum {
readonly asFungible: Compact<u128>;
readonly isNonFungible: boolean;
readonly asNonFungible: AssetInstanceV1;
readonly type: 'Fungible' | 'NonFungible';
}
/** @name FungibilityV2 */
@@ -114,6 +119,7 @@ export interface FungibilityV2 extends FungibilityV1 {}
export interface InboundStatus extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
/** @name InstructionV2 */
@@ -227,6 +233,7 @@ export interface InstructionV2 extends Enum {
} & Struct;
readonly isTrap: boolean;
readonly asTrap: u64;
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap';
}
/** @name InteriorMultiLocation */
@@ -257,6 +264,7 @@ export interface JunctionsV1 extends Enum {
readonly asX7: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
readonly isX8: boolean;
readonly asX8: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
/** @name JunctionsV2 */
@@ -294,6 +302,7 @@ export interface JunctionV0 extends Enum {
readonly id: BodyId;
readonly part: BodyPart;
} & Struct;
readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
/** @name JunctionV1 */
@@ -327,6 +336,7 @@ export interface JunctionV1 extends Enum {
readonly id: BodyId;
readonly part: BodyPart;
} & Struct;
readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
}
/** @name JunctionV2 */
@@ -344,6 +354,7 @@ export interface MultiAssetFilterV1 extends Enum {
readonly asDefinite: MultiAssetsV1;
readonly isWild: boolean;
readonly asWild: WildMultiAssetV1;
readonly type: 'Definite' | 'Wild';
}
/** @name MultiAssetFilterV2 */
@@ -392,6 +403,7 @@ export interface MultiAssetV0 extends Enum {
readonly class: MultiLocationV0;
readonly instance: AssetInstanceV0;
} & Struct;
readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
}
/** @name MultiAssetV1 */
@@ -425,6 +437,7 @@ export interface MultiLocationV0 extends Enum {
readonly asX7: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
readonly isX8: boolean;
readonly asX8: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
}
/** @name MultiLocationV1 */
@@ -443,6 +456,7 @@ export interface NetworkId extends Enum {
readonly asNamed: Bytes;
readonly isPolkadot: boolean;
readonly isKusama: boolean;
readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
}
/** @name OriginKindV0 */
@@ -451,6 +465,7 @@ export interface OriginKindV0 extends Enum {
readonly isSovereignAccount: boolean;
readonly isSuperuser: boolean;
readonly isXcm: boolean;
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
}
/** @name OriginKindV1 */
@@ -463,6 +478,7 @@ export interface OriginKindV2 extends OriginKindV1 {}
export interface OutboundStatus extends Enum {
readonly isOk: boolean;
readonly isSuspended: boolean;
readonly type: 'Ok' | 'Suspended';
}
/** @name Outcome */
@@ -473,6 +489,7 @@ export interface Outcome extends Enum {
readonly asIncomplete: ITuple<[Weight, XcmErrorV0]>;
readonly isError: boolean;
readonly asError: XcmErrorV0;
readonly type: 'Complete' | 'Incomplete' | 'Error';
}
/** @name QueryId */
@@ -491,6 +508,7 @@ export interface QueryStatus extends Enum {
readonly response: VersionedResponse;
readonly at: BlockNumber;
} & Struct;
readonly type: 'Pending' | 'Ready';
}
/** @name QueueConfigData */
@@ -509,12 +527,14 @@ export interface Response extends ResponseV2 {}
export interface ResponseV0 extends Enum {
readonly isAssets: boolean;
readonly asAssets: Vec<MultiAssetV0>;
readonly type: 'Assets';
}
/** @name ResponseV1 */
export interface ResponseV1 extends Enum {
readonly isAssets: boolean;
readonly asAssets: MultiAssetsV1;
readonly type: 'Assets';
}
/** @name ResponseV2 */
@@ -524,6 +544,7 @@ export interface ResponseV2 extends Enum {
readonly asAssets: MultiAssetsV2;
readonly isExecutionResult: boolean;
readonly asExecutionResult: ResponseV2Result;
readonly type: 'Null' | 'Assets' | 'ExecutionResult';
}
/** @name ResponseV2Error */
@@ -548,6 +569,7 @@ export interface VersionedMultiAsset extends Enum {
readonly asV1: MultiAssetV1;
readonly isV2: boolean;
readonly asV2: MultiAssetV2;
readonly type: 'V0' | 'V1' | 'V2';
}
/** @name VersionedMultiAssets */
@@ -558,6 +580,7 @@ export interface VersionedMultiAssets extends Enum {
readonly asV1: MultiAssetsV1;
readonly isV2: boolean;
readonly asV2: MultiAssetsV2;
readonly type: 'V0' | 'V1' | 'V2';
}
/** @name VersionedMultiLocation */
@@ -568,6 +591,7 @@ export interface VersionedMultiLocation extends Enum {
readonly asV1: MultiLocationV1;
readonly isV2: boolean;
readonly asV2: MultiLocationV2;
readonly type: 'V0' | 'V1' | 'V2';
}
/** @name VersionedResponse */
@@ -585,6 +609,7 @@ export interface VersionedXcm extends Enum {
readonly asV1: XcmV1;
readonly isV2: boolean;
readonly asV2: XcmV2;
readonly type: 'V0' | 'V1' | 'V2';
}
/** @name VersionMigrationStage */
@@ -594,6 +619,7 @@ export interface VersionMigrationStage extends Enum {
readonly isNotifyCurrentTargets: boolean;
readonly asNotifyCurrentTargets: Option<Bytes>;
readonly isMigrateAndNotifyOldTargets: boolean;
readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
}
/** @name WeightLimitV2 */
@@ -601,6 +627,7 @@ export interface WeightLimitV2 extends Enum {
readonly isUnlimited: boolean;
readonly isLimited: boolean;
readonly asLimited: Compact<u64>;
readonly type: 'Unlimited' | 'Limited';
}
/** @name WildFungibility */
@@ -613,6 +640,7 @@ export interface WildFungibilityV0 extends WildFungibilityV1 {}
export interface WildFungibilityV1 extends Enum {
readonly isFungible: boolean;
readonly isNonFungible: boolean;
readonly type: 'Fungible' | 'NonFungible';
}
/** @name WildFungibilityV2 */
@@ -629,6 +657,7 @@ export interface WildMultiAssetV1 extends Enum {
readonly id: XcmAssetId;
readonly fungibility: WildFungibilityV1;
} & Struct;
readonly type: 'All' | 'AllOf';
}
/** @name WildMultiAssetV2 */
@@ -643,6 +672,7 @@ export interface XcmAssetId extends Enum {
readonly asConcrete: MultiLocation;
readonly isAbstract: boolean;
readonly asAbstract: Bytes;
readonly type: 'Concrete' | 'Abstract';
}
/** @name XcmError */
@@ -680,6 +710,7 @@ export interface XcmErrorV0 extends Enum {
readonly isTooExpensive: boolean;
readonly isAssetNotFound: boolean;
readonly isRecursionLimitReached: boolean;
readonly type: 'Undefined' | 'Overflow' | 'Unimplemented' | 'UnhandledXcmVersion' | 'UnhandledXcmMessage' | 'UnhandledEffect' | 'EscalationOfPrivilege' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'DestinationBufferOverflow' | 'SendFailed' | 'CannotReachDestination' | 'MultiLocationFull' | 'FailedToDecode' | 'BadOrigin' | 'ExceedsMaxMessageSize' | 'FailedToTransactAsset' | 'WeightLimitReached' | 'Wildcard' | 'TooMuchWeightRequired' | 'NotHoldingFees' | 'WeightNotComputable' | 'Barrier' | 'NotWithdrawable' | 'LocationCannotHold' | 'TooExpensive' | 'AssetNotFound' | 'RecursionLimitReached';
}
/** @name XcmErrorV1 */
@@ -715,6 +746,7 @@ export interface XcmErrorV1 extends Enum {
readonly isAssetNotFound: boolean;
readonly isDestinationUnsupported: boolean;
readonly isRecursionLimitReached: boolean;
readonly type: 'Undefined' | 'Overflow' | 'Unimplemented' | 'UnhandledXcmVersion' | 'UnhandledXcmMessage' | 'UnhandledEffect' | 'EscalationOfPrivilege' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'DestinationBufferOverflow' | 'SendFailed' | 'CannotReachDestination' | 'MultiLocationFull' | 'FailedToDecode' | 'BadOrigin' | 'ExceedsMaxMessageSize' | 'FailedToTransactAsset' | 'WeightLimitReached' | 'Wildcard' | 'TooMuchWeightRequired' | 'NotHoldingFees' | 'WeightNotComputable' | 'Barrier' | 'NotWithdrawable' | 'LocationCannotHold' | 'TooExpensive' | 'AssetNotFound' | 'DestinationUnsupported' | 'RecursionLimitReached';
}
/** @name XcmErrorV2 */
@@ -755,6 +787,7 @@ export interface XcmErrorV2 extends Enum {
readonly asTrap: u64;
readonly isUnknownClaim: boolean;
readonly isInvalidLocation: boolean;
readonly type: 'Undefined' | 'Overflow' | 'Unimplemented' | 'UnhandledXcmVersion' | 'UnhandledXcmMessage' | 'UnhandledEffect' | 'EscalationOfPrivilege' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'DestinationBufferOverflow' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'FailedToDecode' | 'BadOrigin' | 'ExceedsMaxMessageSize' | 'FailedToTransactAsset' | 'WeightLimitReached' | 'Wildcard' | 'TooMuchWeightRequired' | 'NotHoldingFees' | 'WeightNotComputable' | 'Barrier' | 'NotWithdrawable' | 'LocationCannotHold' | 'TooExpensive' | 'AssetNotFound' | 'DestinationUnsupported' | 'RecursionLimitReached' | 'Transport' | 'Unroutable' | 'UnknownWeightRequired' | 'Trap' | 'UnknownClaim' | 'InvalidLocation';
}
/** @name XcmOrder */
@@ -805,6 +838,7 @@ export interface XcmOrderV0 extends Enum {
readonly haltOnError: bool;
readonly xcm: Vec<XcmV0>;
} & Struct;
readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
/** @name XcmOrderV1 */
@@ -854,6 +888,7 @@ export interface XcmOrderV1 extends Enum {
readonly haltOnError: bool;
readonly instructions: Vec<XcmV1>;
} & Struct;
readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
}
/** @name XcmOrderV2 */
@@ -863,6 +898,7 @@ export interface XcmOrderV2 extends XcmOrderV1 {}
export interface XcmOrigin extends Enum {
readonly isXcm: boolean;
readonly asXcm: MultiLocation;
readonly type: 'Xcm';
}
/** @name XcmOriginKind */
@@ -871,6 +907,7 @@ export interface XcmOriginKind extends Enum {
readonly isSovereignAccount: boolean;
readonly isSuperuser: boolean;
readonly isXcm: boolean;
readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
}
/** @name XcmpMessageFormat */
@@ -878,6 +915,7 @@ export interface XcmpMessageFormat extends Enum {
readonly isConcatenatedVersionedXcm: boolean;
readonly isConcatenatedEncodedBlob: boolean;
readonly isSignals: boolean;
readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
}
/** @name XcmV0 */
@@ -940,6 +978,7 @@ export interface XcmV0 extends Enum {
readonly who: MultiLocationV0;
readonly message: XcmV0;
} & Struct;
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
}
/** @name XcmV1 */
@@ -1002,6 +1041,7 @@ export interface XcmV1 extends Enum {
readonly who: MultiLocationV1;
readonly message: XcmV1;
} & Struct;
readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
}
/** @name XcmV2 */
@@ -14,6 +14,7 @@ import { withTypeString } from '../../create/encodeTypes';
import { getTypeDef } from '../../create/getTypeDef';
import { sanitize } from '../../create/sanitize';
import { TypeDefInfo } from '../../types';
import { assertUnreachable } from './util';
// Just a placeholder for a type.unrwapOr()
const TYPE_UNWRAP = { toNumber: () => -1 };
@@ -456,26 +457,19 @@ export class PortableRegistry extends Struct {
try {
if (aliasType) {
typeDef = this.#extractAliasPath(lookupIndex, aliasType);
} else if (type.def.isArray) {
typeDef = this.#extractArray(lookupIndex, type.def.asArray);
} else if (type.def.isBitSequence) {
typeDef = this.#extractBitSequence(lookupIndex, type.def.asBitSequence);
} else if (type.def.isCompact) {
typeDef = this.#extractCompact(lookupIndex, type.def.asCompact);
} else if (type.def.isComposite) {
typeDef = this.#extractComposite(lookupIndex, type, type.def.asComposite);
} else if (type.def.isHistoricMetaCompat) {
typeDef = this.#extractHistoric(lookupIndex, type.def.asHistoricMetaCompat);
} else if (type.def.isPrimitive) {
typeDef = this.#extractPrimitive(lookupIndex, type);
} else if (type.def.isSequence) {
typeDef = this.#extractSequence(lookupIndex, type.def.asSequence);
} else if (type.def.isTuple) {
typeDef = this.#extractTuple(lookupIndex, type.def.asTuple);
} else if (type.def.isVariant) {
typeDef = this.#extractVariant(lookupIndex, type, type.def.asVariant);
} else {
throw new Error(`No SiTypeDef handler for ${type.def.toString()}`);
switch (type.def.type) {
case 'Array': typeDef = this.#extractArray(lookupIndex, type.def.asArray); break;
case 'BitSequence': typeDef = this.#extractBitSequence(lookupIndex, type.def.asBitSequence); break;
case 'Compact': typeDef = this.#extractCompact(lookupIndex, type.def.asCompact); break;
case 'Composite': typeDef = this.#extractComposite(lookupIndex, type, type.def.asComposite); break;
case 'HistoricMetaCompat': typeDef = this.#extractHistoric(lookupIndex, type.def.asHistoricMetaCompat); break;
case 'Primitive': typeDef = this.#extractPrimitive(lookupIndex, type); break;
case 'Sequence': typeDef = this.#extractSequence(lookupIndex, type.def.asSequence); break;
case 'Tuple': typeDef = this.#extractTuple(lookupIndex, type.def.asTuple); break;
case 'Variant': typeDef = this.#extractVariant(lookupIndex, type, type.def.asVariant); break;
default: assertUnreachable(type.def.type);
}
}
} catch (error) {
throw new Error(`PortableRegistry: ${lookupIndex}${namespace ? ` (${namespace})` : ''}: Error extracting ${stringify(type)}: ${(error as Error).message}`);
@@ -4,6 +4,8 @@
import type { PortableType, Si0Field, Si0LookupTypeId, Si0Path, Si0Type, Si0TypeDefArray, Si0TypeDefBitSequence, Si0TypeDefComposite, Si0TypeDefPrimitive, Si0TypeDefSequence, Si0TypeDefVariant, Si1Field, Si1TypeDef } from '../../interfaces';
import type { Registry } from '../../types';
import { assertUnreachable } from './util';
function convertArray (registry: Registry, { len, type }: Si0TypeDefArray): Si1TypeDef {
return registry.createType('Si1TypeDef', {
Array: {
@@ -95,27 +97,22 @@ function convertVariant (registry: Registry, { variants }: Si0TypeDefVariant): S
}
function convertDef (registry: Registry, { def, path }: Si0Type): Si1TypeDef {
if (def.isArray) {
return convertArray(registry, def.asArray);
} else if (def.isBitSequence) {
return convertBitSequence(registry, def.asBitSequence);
} else if (def.isCompact) {
return convertCompact(registry, def.asCompact);
} else if (def.isComposite) {
return convertComposite(registry, def.asComposite);
} else if (def.isPhantom) {
return convertPhantom(registry, path);
} else if (def.isPrimitive) {
return convertPrimitive(registry, def.asPrimitive);
} else if (def.isSequence) {
return convertSequence(registry, def.asSequence);
} else if (def.isTuple) {
return convertTuple(registry, def.asTuple);
} else if (def.isVariant) {
return convertVariant(registry, def.asVariant);
let result: Si1TypeDef;
switch (def.type) {
case 'Array': result = convertArray(registry, def.asArray); break;
case 'BitSequence': result = convertBitSequence(registry, def.asBitSequence); break;
case 'Compact': result = convertCompact(registry, def.asCompact); break;
case 'Composite': result = convertComposite(registry, def.asComposite); break;
case 'Phantom': result = convertPhantom(registry, path); break;
case 'Primitive': result = convertPrimitive(registry, def.asPrimitive); break;
case 'Sequence': result = convertSequence(registry, def.asSequence); break;
case 'Tuple': result = convertTuple(registry, def.asTuple); break;
case 'Variant': result = convertVariant(registry, def.asVariant); break;
default: assertUnreachable(def.type);
}
throw new Error(`Cannot convert type ${def.toString()}`);
return result;
}
export function toV1 (registry: Registry, types: Si0Type[]): PortableType[] {
@@ -0,0 +1,7 @@
// Copyright 2017-2021 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function assertUnreachable (_x: never): never {
throw new Error("Didn't expect to get here");
}