From 7b30a3bba0d3fd75d69effea8c0c1f10544ae1d2 Mon Sep 17 00:00:00 2001 From: Benoit Devos Date: Thu, 6 Jun 2024 11:26:34 +0200 Subject: [PATCH] feat: generate node-api for polkadot-v1.10.0 and fee payer selection. logion-network/logion-internal#1280 logion-network/logion-internal#1283 --- packages/client-node/integration/Balance.ts | 2 +- packages/client/test/Utils.ts | 2 +- packages/node-api/package.json | 2 +- packages/node-api/src/Connection.ts | 2 +- .../src/interfaces/augment-api-consts.ts | 42 +- .../src/interfaces/augment-api-errors.ts | 13 + .../src/interfaces/augment-api-query.ts | 18 +- .../src/interfaces/augment-api-runtime.ts | 6 +- .../node-api/src/interfaces/augment-api-tx.ts | 1313 +++++++++++++++-- packages/node-api/src/interfaces/lookup.ts | 196 +-- packages/node-api/src/interfaces/registry.ts | 31 +- .../node-api/src/interfaces/types-lookup.ts | 189 +-- 12 files changed, 1452 insertions(+), 364 deletions(-) diff --git a/packages/client-node/integration/Balance.ts b/packages/client-node/integration/Balance.ts index 4da53074..409e4f8f 100644 --- a/packages/client-node/integration/Balance.ts +++ b/packages/client-node/integration/Balance.ts @@ -80,7 +80,7 @@ export function checkCoinBalanceDelta(current: TypesAccountData, expectedDelta: export function checkCoinBalance(balance: TypesAccountData, expectedValue: string) { const formatted = formatBalance(balance); - expect(expectedValue).toEqual(formatted) + expect(formatted).toEqual(expectedValue) } export function formatBalance(balance: TypesAccountData): string { diff --git a/packages/client/test/Utils.ts b/packages/client/test/Utils.ts index 70b639fd..9abe38d2 100644 --- a/packages/client/test/Utils.ts +++ b/packages/client/test/Utils.ts @@ -234,7 +234,7 @@ export function buildSimpleNodeApi(): LogionNodeApiClass { const api = { runtimeVersion: { specName: { toString: () => "logion" }, - specVersion: { toBigInt: () => 3000n }, + specVersion: { toBigInt: () => 4000n }, }, consts: { system: { diff --git a/packages/node-api/package.json b/packages/node-api/package.json index b60f3c37..104cc984 100644 --- a/packages/node-api/package.json +++ b/packages/node-api/package.json @@ -1,6 +1,6 @@ { "name": "@logion/node-api", - "version": "0.31.0-1", + "version": "0.31.0-2", "description": "logion API", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/packages/node-api/src/Connection.ts b/packages/node-api/src/Connection.ts index c6ec8657..0c97c4cd 100644 --- a/packages/node-api/src/Connection.ts +++ b/packages/node-api/src/Connection.ts @@ -22,7 +22,7 @@ export const EXPECTED_SPEC_NAME = "logion"; export const EXPECTED_SOLO_VERSION = 164n; -export const EXPECTED_PARA_VERSION = 3000n; +export const EXPECTED_PARA_VERSION = 4000n; /** * A Logion chain client. An instance of this class provides diff --git a/packages/node-api/src/interfaces/augment-api-consts.ts b/packages/node-api/src/interfaces/augment-api-consts.ts index 0b9b9f16..27cf4dc2 100644 --- a/packages/node-api/src/interfaces/augment-api-consts.ts +++ b/packages/node-api/src/interfaces/augment-api-consts.ts @@ -15,6 +15,19 @@ export type __AugmentedConst = AugmentedConst declare module '@polkadot/api-base/types/consts' { interface AugmentedConsts { + aura: { + /** + * The slot duration Aura should run with, expressed in milliseconds. + * The effective value of this type should not change while the chain is running. + * + * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const. + **/ + slotDuration: u64 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; balances: { /** * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! @@ -34,10 +47,14 @@ declare module '@polkadot/api-base/types/consts' { /** * The maximum number of locks that should exist on an account. * Not strictly enforced, but used for weight estimation. + * + * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` **/ maxLocks: u32 & AugmentedConst; /** * The maximum number of named reserves that can exist on an account. + * + * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` **/ maxReserves: u32 & AugmentedConst; /** @@ -146,6 +163,14 @@ declare module '@polkadot/api-base/types/consts' { * size is slightly lower than this as defined by [`MaxMessageLenOf`]. **/ heapSize: u32 & AugmentedConst; + /** + * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which + * should be provided to the message queue for servicing enqueued items `on_idle`. + * Useful for parachains to process messages at the same block they are received. + * + * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`. + **/ + idleMaxServiceWeight: Option & AugmentedConst; /** * The maximum number of stale pages (i.e. of overweight messages) allowed before culling * can happen. Once there are more stale pages than this, then historical pages may be @@ -154,10 +179,11 @@ declare module '@polkadot/api-base/types/consts' { maxStale: u32 & AugmentedConst; /** * The amount of weight (if any) which should be provided to the message queue for - * servicing enqueued items. + * servicing enqueued items `on_initialize`. * * This may be legitimately `None` in the case that you will call - * `ServiceQueues::service_queues` manually. + * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have + * it run in `on_idle`. **/ serviceWeight: Option & AugmentedConst; /** @@ -190,6 +216,16 @@ declare module '@polkadot/api-base/types/consts' { **/ [key: string]: Codec; }; + parachainSystem: { + /** + * Returns the parachain ID we are running with. + **/ + selfParaId: u32 & AugmentedConst; + /** + * Generic const + **/ + [key: string]: Codec; + }; recovery: { /** * The base amount of currency needed to reserve for creating a recovery configuration. @@ -256,7 +292,7 @@ declare module '@polkadot/api-base/types/consts' { **/ ss58Prefix: u16 & AugmentedConst; /** - * Get the chain's current version. + * Get the chain's in-code version. **/ version: SpVersionRuntimeVersion & AugmentedConst; /** diff --git a/packages/node-api/src/interfaces/augment-api-errors.ts b/packages/node-api/src/interfaces/augment-api-errors.ts index 07b646dc..33ccc9dd 100644 --- a/packages/node-api/src/interfaces/augment-api-errors.ts +++ b/packages/node-api/src/interfaces/augment-api-errors.ts @@ -774,6 +774,10 @@ declare module '@polkadot/api-base/types/errors' { * Too many assets with different reserve locations have been attempted for transfer. **/ TooManyReserves: AugmentedError; + /** + * Could not decode XCM. + **/ + UnableToDecode: AugmentedError; /** * The desired destination was unreachable, generally because there is a no way of routing * to it. @@ -783,6 +787,11 @@ declare module '@polkadot/api-base/types/errors' { * The message's weight could not be determined. **/ UnweighableMessage: AugmentedError; + /** + * XCM encoded length is too large. + * Returned when an XCM encoded length is larger than `MaxXcmEncodedSize`. + **/ + XcmTooLarge: AugmentedError; /** * Generic error **/ @@ -910,6 +919,10 @@ declare module '@polkadot/api-base/types/errors' { * and the new runtime. **/ InvalidSpecName: AugmentedError; + /** + * A multi-block migration is ongoing and prevents the current code from being replaced. + **/ + MultiBlockMigrationsOngoing: AugmentedError; /** * Suicide called when the account has non-default composite data. **/ diff --git a/packages/node-api/src/interfaces/augment-api-query.ts b/packages/node-api/src/interfaces/augment-api-query.ts index 64222362..1d2b3e81 100644 --- a/packages/node-api/src/interfaces/augment-api-query.ts +++ b/packages/node-api/src/interfaces/augment-api-query.ts @@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/ import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec'; import type { AnyNumber, ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; -import type { CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, LogionRuntimeRuntimeHoldReason, LogionRuntimeSessionKeys, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletLoAuthorityListLegalOfficerData, PalletLoAuthorityListStorageVersion, PalletLogionLocCollectionItem, PalletLogionLocLegalOfficerCase, PalletLogionLocSponsorship, PalletLogionLocStorageVersion, PalletLogionLocTokensRecord, PalletLogionLocVerifiedIssuer, PalletLogionVoteVote, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV6AbridgedHostConfiguration, PolkadotPrimitivesV6PersistedValidationData, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup'; +import type { CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, LogionRuntimeRuntimeHoldReason, LogionRuntimeSessionKeys, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletLoAuthorityListLegalOfficerData, PalletLoAuthorityListStorageVersion, PalletLogionLocCollectionItem, PalletLogionLocLegalOfficerCase, PalletLogionLocSponsorship, PalletLogionLocStorageVersion, PalletLogionLocTokensRecord, PalletLogionLocVerifiedIssuer, PalletLogionVoteVote, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV7AbridgedHostConfiguration, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup'; import type { Observable } from '@polkadot/types/types'; export type __AugmentedQuery = AugmentedQuery unknown>; @@ -109,10 +109,14 @@ declare module '@polkadot/api-base/types/storage' { /** * Any liquidity locks on some account balances. * NOTE: Should only be accessed when setting, changing and freeing a lock. + * + * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/` **/ locks: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; /** * Named reserves on some account balances. + * + * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/` **/ reserves: AugmentedQuery Observable>, [AccountId32]> & QueryableStorageEntry; /** @@ -351,7 +355,7 @@ declare module '@polkadot/api-base/types/storage' { * * This data is also absent from the genesis. **/ - hostConfiguration: AugmentedQuery Observable>, []> & QueryableStorageEntry; + hostConfiguration: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * HRMP messages that were sent in a block. * @@ -456,7 +460,7 @@ declare module '@polkadot/api-base/types/storage' { * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is * set after the inherent. **/ - upgradeGoAhead: AugmentedQuery Observable>, []> & QueryableStorageEntry; + upgradeGoAhead: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * An option which indicates if the relay-chain restricts signalling a validation code upgrade. * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced @@ -466,7 +470,7 @@ declare module '@polkadot/api-base/types/storage' { * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is * set after the inherent. **/ - upgradeRestrictionSignal: AugmentedQuery Observable>, []> & QueryableStorageEntry; + upgradeRestrictionSignal: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * The factor to multiply the base delivery fee by for UMP. **/ @@ -482,7 +486,7 @@ declare module '@polkadot/api-base/types/storage' { * This value is expected to be set only once per block and it's never stored * in the trie. **/ - validationData: AugmentedQuery Observable>, []> & QueryableStorageEntry; + validationData: AugmentedQuery Observable>, []> & QueryableStorageEntry; /** * Generic query **/ @@ -686,6 +690,10 @@ declare module '@polkadot/api-base/types/storage' { * Extrinsics data for the current block (maps an extrinsic's index to its data). **/ extrinsicData: AugmentedQuery Observable, [u32]> & QueryableStorageEntry; + /** + * Whether all inherents have been applied. + **/ + inherentsApplied: AugmentedQuery Observable, []> & QueryableStorageEntry; /** * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. **/ diff --git a/packages/node-api/src/interfaces/augment-api-runtime.ts b/packages/node-api/src/interfaces/augment-api-runtime.ts index 46025040..a2845dc8 100644 --- a/packages/node-api/src/interfaces/augment-api-runtime.ts +++ b/packages/node-api/src/interfaces/augment-api-runtime.ts @@ -17,7 +17,7 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics'; import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder'; import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata'; import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment'; -import type { AccountId, Balance, Block, Call, Header, Index, KeyTypeId, SlotDuration, Weight } from '@polkadot/types/interfaces/runtime'; +import type { AccountId, Balance, Block, Call, ExtrinsicInclusionMode, Header, Index, KeyTypeId, SlotDuration, Weight } from '@polkadot/types/interfaces/runtime'; import type { RuntimeVersion } from '@polkadot/types/interfaces/state'; import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system'; import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue'; @@ -88,7 +88,7 @@ declare module '@polkadot/api-base/types/calls' { **/ [key: string]: DecoratedCallBase; }; - /** 0xdf6acb689907609b/4 */ + /** 0xdf6acb689907609b/5 */ core: { /** * Execute the given block. @@ -97,7 +97,7 @@ declare module '@polkadot/api-base/types/calls' { /** * Initialize a block with the given header. **/ - initializeBlock: AugmentedCall Observable>; + initializeBlock: AugmentedCall Observable>; /** * Returns the version of the runtime. **/ diff --git a/packages/node-api/src/interfaces/augment-api-tx.ts b/packages/node-api/src/interfaces/augment-api-tx.ts index 72a2351e..83a9f850 100644 --- a/packages/node-api/src/interfaces/augment-api-tx.ts +++ b/packages/node-api/src/interfaces/augment-api-tx.ts @@ -19,35 +19,76 @@ declare module '@polkadot/api-base/types/submittable' { interface AugmentedSubmittables { balances: { /** - * See [`Pallet::force_adjust_total_issuance`]. + * Adjust the total issuance in a saturating way. + * + * Can only be called by root and always needs a positive `delta`. + * + * # Example **/ forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [PalletBalancesAdjustmentDirection, Compact]>; /** - * See [`Pallet::force_set_balance`]. + * Set the regular balance of a given account. + * + * The dispatch origin for this call is `root`. **/ forceSetBalance: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, newFree: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; /** - * See [`Pallet::force_transfer`]. + * Exactly as `transfer_allow_death`, except the origin must be root and the source account + * may be specified. **/ forceTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, Compact]>; /** - * See [`Pallet::force_unreserve`]. + * Unreserve some balance from a user by force. + * + * Can only be called by ROOT. **/ forceUnreserve: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u128]>; /** - * See [`Pallet::transfer_all`]. + * Transfer the entire transferable balance from the caller account. + * + * NOTE: This function only attempts to transfer _transferable_ balances. This means that + * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be + * transferred by this function. To ensure that this function results in a killed account, + * you might need to prepare the account by removing any reference counters, storage + * deposits, etc... + * + * The dispatch origin of this call must be Signed. + * + * - `dest`: The recipient of the transfer. + * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all + * of the funds the account has, causing the sender account to be killed (false), or + * transfer everything except at least the existential deposit, which will guarantee to + * keep the sender account alive (true). **/ transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic, [MultiAddress, bool]>; /** - * See [`Pallet::transfer_allow_death`]. + * Transfer some liquid free balance to another account. + * + * `transfer_allow_death` will set the `FreeBalance` of the sender and receiver. + * If the sender's account is below the existential deposit as a result + * of the transfer, the account will be reaped. + * + * The dispatch origin for this call must be `Signed` by the transactor. **/ transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; /** - * See [`Pallet::transfer_keep_alive`]. + * Same as the [`transfer_allow_death`] call, but with a check that the transfer will not + * kill the origin account. + * + * 99% of the time you want [`transfer_allow_death`] instead. + * + * [`transfer_allow_death`]: struct.Pallet.html#method.transfer **/ transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Compact]>; /** - * See [`Pallet::upgrade_accounts`]. + * Upgrade a specified account. + * + * - `origin`: Must be `Signed`. + * - `who`: The account to be upgraded. + * + * This will waive the transaction fee if at least all but 10% of the accounts needed to + * be upgraded. (We let some not have to be upgraded just in order to allow for the + * possibility of churn). **/ upgradeAccounts: AugmentedSubmittable<(who: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** @@ -57,39 +98,86 @@ declare module '@polkadot/api-base/types/submittable' { }; collatorSelection: { /** - * See [`Pallet::add_invulnerable`]. + * Add a new account `who` to the list of `Invulnerables` collators. `who` must have + * registered session keys. If `who` is a candidate, they will be removed. + * + * The origin for this call must be the `UpdateOrigin`. **/ addInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; /** - * See [`Pallet::leave_intent`]. + * Deregister `origin` as a collator candidate. Note that the collator can only leave on + * session change. The `CandidacyBond` will be unreserved immediately. + * + * This call will fail if the total number of candidates would drop below + * `MinEligibleCollators`. **/ leaveIntent: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * See [`Pallet::register_as_candidate`]. + * Register this account as a collator candidate. The account must (a) already have + * registered session keys and (b) be able to reserve the `CandidacyBond`. + * + * This call is not available to `Invulnerable` collators. **/ registerAsCandidate: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * See [`Pallet::remove_invulnerable`]. + * Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must + * be sorted. + * + * The origin for this call must be the `UpdateOrigin`. **/ removeInvulnerable: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; /** - * See [`Pallet::set_candidacy_bond`]. + * Set the candidacy bond amount. + * + * If the candidacy bond is increased by this call, all current candidates which have a + * deposit lower than the new bond will be kicked from the list and get their deposits + * back. + * + * The origin for this call must be the `UpdateOrigin`. **/ setCandidacyBond: AugmentedSubmittable<(bond: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u128]>; /** - * See [`Pallet::set_desired_candidates`]. + * Set the ideal number of non-invulnerable collators. If lowering this number, then the + * number of running collators could be higher than this figure. Aside from that edge case, + * there should be no other way to have more candidates than the desired number. + * + * The origin for this call must be the `UpdateOrigin`. **/ setDesiredCandidates: AugmentedSubmittable<(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * See [`Pallet::set_invulnerables`]. + * Set the list of invulnerable (fixed) collators. These collators must do some + * preparation, namely to have registered session keys. + * + * The call will remove any accounts that have not registered keys from the set. That is, + * it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as + * acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables. + * + * This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It + * is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A + * `batch_all` can also be used to enforce atomicity. If any candidates are included in + * `new`, they should be removed with `remove_invulnerable_candidate` after execution. + * + * Must be called by the `UpdateOrigin`. **/ setInvulnerables: AugmentedSubmittable<(updated: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * See [`Pallet::take_candidate_slot`]. + * The caller `origin` replaces a candidate `target` in the collator candidate list by + * reserving `deposit`. The amount `deposit` reserved by the caller must be greater than + * the existing bond of the target it is trying to replace. + * + * This call will fail if the caller is already a collator candidate or invulnerable, the + * caller does not have registered session keys, the target is not a collator candidate, + * and/or the `deposit` amount cannot be reserved. **/ takeCandidateSlot: AugmentedSubmittable<(deposit: u128 | AnyNumber | Uint8Array, target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [u128, AccountId32]>; /** - * See [`Pallet::update_bond`]. + * Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`. + * + * Setting a `new_deposit` that is lower than the current deposit while `origin` is + * occupying a top-`DesiredCandidates` slot is not allowed. + * + * This call will fail if `origin` is not a collator candidate, the updated bond is lower + * than the minimum candidacy bond, and/or the amount cannot be reserved. **/ updateBond: AugmentedSubmittable<(newDeposit: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u128]>; /** @@ -99,39 +187,196 @@ declare module '@polkadot/api-base/types/submittable' { }; communityTreasury: { /** - * See [`Pallet::approve_proposal`]. + * Approve a proposal. + * + * ## Dispatch Origin + * + * Must be [`Config::ApproveOrigin`]. + * + * ## Details + * + * At a later time, the proposal will be allocated to the beneficiary and the original + * deposit will be returned. + * + * ### Complexity + * - O(1). + * + * ## Events + * + * No events are emitted from this dispatch. **/ approveProposal: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::check_status`]. + * Check the status of the spend and remove it from the storage if processed. + * + * ## Dispatch Origin + * + * Must be signed. + * + * ## Details + * + * The status check is a prerequisite for retrying a failed payout. + * If a spend has either succeeded or expired, it is removed from the storage by this + * function. In such instances, transaction fees are refunded. + * + * ### Parameters + * - `index`: The spend index. + * + * ## Events + * + * Emits [`Event::PaymentFailed`] if the spend payout has failed. + * Emits [`Event::SpendProcessed`] if the spend payout has succeed. **/ checkStatus: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * See [`Pallet::payout`]. + * Claim a spend. + * + * ## Dispatch Origin + * + * Must be signed. + * + * ## Details + * + * Spends must be claimed within some temporal bounds. A spend may be claimed within one + * [`Config::PayoutPeriod`] from the `valid_from` block. + * In case of a payout failure, the spend status must be updated with the `check_status` + * dispatchable before retrying with the current function. + * + * ### Parameters + * - `index`: The spend index. + * + * ## Events + * + * Emits [`Event::Paid`] if successful. **/ payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * See [`Pallet::propose_spend`]. + * Put forward a suggestion for spending. + * + * ## Dispatch Origin + * + * Must be signed. + * + * ## Details + * A deposit proportional to the value is reserved and slashed if the proposal is rejected. + * It is returned once the proposal is awarded. + * + * ### Complexity + * - O(1) + * + * ## Events + * + * Emits [`Event::Proposed`] if successful. **/ proposeSpend: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; /** - * See [`Pallet::reject_proposal`]. + * Reject a proposed spend. + * + * ## Dispatch Origin + * + * Must be [`Config::RejectOrigin`]. + * + * ## Details + * The original deposit will be slashed. + * + * ### Complexity + * - O(1) + * + * ## Events + * + * Emits [`Event::Rejected`] if successful. **/ rejectProposal: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::remove_approval`]. + * Force a previously approved proposal to be removed from the approval queue. + * + * ## Dispatch Origin + * + * Must be [`Config::RejectOrigin`]. + * + * ## Details + * + * The original deposit will no longer be returned. + * + * ### Parameters + * - `proposal_id`: The index of a proposal + * + * ### Complexity + * - O(A) where `A` is the number of approvals + * + * ### Errors + * - [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the + * approval queue, i.e., the proposal has not been approved. This could also mean the + * proposal does not exist altogether, thus there is no way it would have been approved + * in the first place. **/ removeApproval: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::spend`]. + * Propose and approve a spend of treasury funds. + * + * ## Dispatch Origin + * + * Must be [`Config::SpendOrigin`] with the `Success` value being at least + * `amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted + * for assertion using the [`Config::BalanceConverter`]. + * + * ## Details + * + * Create an approved spend for transferring a specific `amount` of `asset_kind` to a + * designated beneficiary. The spend must be claimed using the `payout` dispatchable within + * the [`Config::PayoutPeriod`]. + * + * ### Parameters + * - `asset_kind`: An indicator of the specific asset class to be spent. + * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. + * - `beneficiary`: The beneficiary of the spend. + * - `valid_from`: The block number from which the spend can be claimed. It can refer to + * the past if the resulting spend has not yet expired according to the + * [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after + * approval. + * + * ## Events + * + * Emits [`Event::AssetSpendApproved`] if successful. **/ spend: AugmentedSubmittable<(assetKind: Null | null, amount: Compact | AnyNumber | Uint8Array, beneficiary: AccountId32 | string | Uint8Array, validFrom: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Null, Compact, AccountId32, Option]>; /** - * See [`Pallet::spend_local`]. + * Propose and approve a spend of treasury funds. + * + * ## Dispatch Origin + * + * Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`. + * + * ### Details + * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the + * beneficiary. + * + * ### Parameters + * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. + * - `beneficiary`: The destination account for the transfer. + * + * ## Events + * + * Emits [`Event::SpendApproved`] if successful. **/ spendLocal: AugmentedSubmittable<(amount: Compact | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; /** - * See [`Pallet::void_spend`]. + * Void previously approved spend. + * + * ## Dispatch Origin + * + * Must be [`Config::RejectOrigin`]. + * + * ## Details + * + * A spend void is only possible if the payout has not been attempted yet. + * + * ### Parameters + * - `index`: The spend index. + * + * ## Events + * + * Emits [`Event::AssetSpendVoided`] if successful. **/ voidSpend: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** @@ -147,23 +392,23 @@ declare module '@polkadot/api-base/types/submittable' { }; loAuthorityList: { /** - * See [`Pallet::add_legal_officer`]. + * Adds a new LO to the list **/ addLegalOfficer: AugmentedSubmittable<(legalOfficerId: AccountId32 | string | Uint8Array, data: PalletLoAuthorityListLegalOfficerDataParam | { Host: any } | { Guest: any } | string | Uint8Array) => SubmittableExtrinsic, [AccountId32, PalletLoAuthorityListLegalOfficerDataParam]>; /** - * See [`Pallet::import_guest_legal_officer`]. + * Import a guest LO **/ importGuestLegalOfficer: AugmentedSubmittable<(legalOfficerId: AccountId32 | string | Uint8Array, hostId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32, AccountId32]>; /** - * See [`Pallet::import_host_legal_officer`]. + * Import a host LO **/ importHostLegalOfficer: AugmentedSubmittable<(legalOfficerId: AccountId32 | string | Uint8Array, data: PalletLoAuthorityListHostDataParam | { nodeId?: any; baseUrl?: any; region?: any } | string | Uint8Array) => SubmittableExtrinsic, [AccountId32, PalletLoAuthorityListHostDataParam]>; /** - * See [`Pallet::remove_legal_officer`]. + * Removes a LO from the list **/ removeLegalOfficer: AugmentedSubmittable<(legalOfficerId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; /** - * See [`Pallet::update_legal_officer`]. + * Updates an existing LO's data **/ updateLegalOfficer: AugmentedSubmittable<(legalOfficerId: AccountId32 | string | Uint8Array, data: PalletLoAuthorityListLegalOfficerDataParam | { Host: any } | { Guest: any } | string | Uint8Array) => SubmittableExtrinsic, [AccountId32, PalletLoAuthorityListLegalOfficerDataParam]>; /** @@ -173,123 +418,125 @@ declare module '@polkadot/api-base/types/submittable' { }; logionLoc: { /** - * See [`Pallet::acknowledge_file`]. + * Acknowledge a file. **/ acknowledgeFile: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, hash: H256 | string | Uint8Array) => SubmittableExtrinsic, [Compact, H256]>; /** - * See [`Pallet::acknowledge_link`]. + * Acknowledge a link. **/ acknowledgeLink: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, target: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, Compact]>; /** - * See [`Pallet::acknowledge_metadata`]. + * Acknowledge a metadata item. **/ acknowledgeMetadata: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, name: H256 | string | Uint8Array) => SubmittableExtrinsic, [Compact, H256]>; /** - * See [`Pallet::add_collection_item`]. + * Adds an item to a collection **/ addCollectionItem: AugmentedSubmittable<(collectionLocId: Compact | AnyNumber | Uint8Array, itemId: H256 | string | Uint8Array, itemDescription: H256 | string | Uint8Array, itemFiles: Vec | (PalletLogionLocCollectionItemFile | { name?: any; contentType?: any; size_?: any; hash_?: any } | string | Uint8Array)[], itemToken: Option | null | Uint8Array | PalletLogionLocCollectionItemToken | { tokenType?: any; tokenId?: any; tokenIssuance?: any } | string, restrictedDelivery: bool | boolean | Uint8Array, termsAndConditions: Vec | (PalletLogionLocTermsAndConditionsElement | { tcType?: any; tcLoc?: any; details?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [Compact, H256, H256, Vec, Option, bool, Vec]>; /** - * See [`Pallet::add_file`]. + * Add file to LOC **/ addFile: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, file: PalletLogionLocFileParams | { hash_?: any; nature?: any; submitter?: any; size_?: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, PalletLogionLocFileParams]>; /** - * See [`Pallet::add_link`]. + * Add a link to LOC **/ addLink: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, link: PalletLogionLocLocLinkParams | { id?: any; nature?: any; submitter?: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, PalletLogionLocLocLinkParams]>; /** - * See [`Pallet::add_metadata`]. + * Add LOC metadata **/ addMetadata: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, item: PalletLogionLocMetadataItemParams | { name?: any; value?: any; submitter?: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, PalletLogionLocMetadataItemParams]>; /** - * See [`Pallet::add_tokens_record`]. + * Add token record **/ addTokensRecord: AugmentedSubmittable<(collectionLocId: Compact | AnyNumber | Uint8Array, recordId: H256 | string | Uint8Array, description: H256 | string | Uint8Array, files: Vec | (PalletLogionLocTokensRecordFile | { name?: any; contentType?: any; size_?: any; hash_?: any } | string | Uint8Array)[], chargeSubmitter: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, H256, H256, Vec, bool]>; /** - * See [`Pallet::close`]. + * Close LOC. **/ close: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, seal: Option | null | Uint8Array | H256 | string, autoAck: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, Option, bool]>; /** - * See [`Pallet::create_collection_loc`]. + * Creates a new Collection LOC **/ createCollectionLoc: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, legalOfficer: AccountId32 | string | Uint8Array, collectionLastBlockSubmission: Option | null | Uint8Array | u32 | AnyNumber, collectionMaxSize: Option | null | Uint8Array | u32 | AnyNumber, collectionCanUpload: bool | boolean | Uint8Array, valueFee: u128 | AnyNumber | Uint8Array, legalFee: u128 | AnyNumber | Uint8Array, collectionItemFee: u128 | AnyNumber | Uint8Array, tokensRecordFee: u128 | AnyNumber | Uint8Array, items: PalletLogionLocItemsParams | { metadata?: any; files?: any; links?: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, AccountId32, Option, Option, bool, u128, u128, u128, u128, PalletLogionLocItemsParams]>; /** - * See [`Pallet::create_logion_identity_loc`]. + * Creates a new logion Identity LOC i.e. a LOC describing a real identity not yet linked to an AccountId; + * No Legal Fee is applied. **/ createLogionIdentityLoc: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::create_logion_transaction_loc`]. + * Creates a new logion Transaction LOC i.e. a LOC requested with a logion Identity LOC; + * No Legal Fee is applied. **/ createLogionTransactionLoc: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, requesterLocId: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, u128]>; /** - * See [`Pallet::create_other_identity_loc`]. + * Creates a new Identity LOC whose requester is another address (Currently only Ethereum address is supported). **/ createOtherIdentityLoc: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, requesterAccountId: PalletLogionLocOtherAccountId | { Ethereum: any } | string | Uint8Array, sponsorshipId: Compact | AnyNumber | Uint8Array, legalFee: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, PalletLogionLocOtherAccountId, Compact, u128]>; /** - * See [`Pallet::create_polkadot_identity_loc`]. + * Creates a new Polkadot Identity LOC i.e. a LOC linking a real identity to an AccountId. **/ createPolkadotIdentityLoc: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, legalOfficer: AccountId32 | string | Uint8Array, legalFee: u128 | AnyNumber | Uint8Array, items: PalletLogionLocItemsParams | { metadata?: any; files?: any; links?: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, AccountId32, u128, PalletLogionLocItemsParams]>; /** - * See [`Pallet::create_polkadot_transaction_loc`]. + * Creates a new Polkadot Transaction LOC i.e. a LOC requested with an AccountId **/ createPolkadotTransactionLoc: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, legalOfficer: AccountId32 | string | Uint8Array, legalFee: u128 | AnyNumber | Uint8Array, items: PalletLogionLocItemsParams | { metadata?: any; files?: any; links?: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, AccountId32, u128, PalletLogionLocItemsParams]>; /** - * See [`Pallet::dismiss_issuer`]. + * Dismiss an issuer **/ dismissIssuer: AugmentedSubmittable<(issuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [AccountId32]>; /** - * See [`Pallet::import_collection_item`]. + * Imports a collection item **/ importCollectionItem: AugmentedSubmittable<(collectionLocId: Compact | AnyNumber | Uint8Array, itemId: H256 | string | Uint8Array, itemDescription: H256 | string | Uint8Array, itemFiles: Vec | (PalletLogionLocCollectionItemFile | { name?: any; contentType?: any; size_?: any; hash_?: any } | string | Uint8Array)[], itemToken: Option | null | Uint8Array | PalletLogionLocCollectionItemToken | { tokenType?: any; tokenId?: any; tokenIssuance?: any } | string, restrictedDelivery: bool | boolean | Uint8Array, termsAndConditions: Vec | (PalletLogionLocTermsAndConditionsElement | { tcType?: any; tcLoc?: any; details?: any } | string | Uint8Array)[]) => SubmittableExtrinsic, [Compact, H256, H256, Vec, Option, bool, Vec]>; /** - * See [`Pallet::import_invited_contributor_selection`]. + * Imports an invited contributor selection **/ importInvitedContributorSelection: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, invitedContributor: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [Compact, AccountId32]>; /** - * See [`Pallet::import_loc`]. + * Import LOC data. **/ importLoc: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, requester: PalletLogionLocRequester | { None: any } | { Account: any } | { Loc: any } | { OtherAccount: any } | string | Uint8Array, legalOfficer: AccountId32 | string | Uint8Array, locType: PalletLogionLocLocType | 'Transaction' | 'Identity' | 'Collection' | number | Uint8Array, items: PalletLogionLocItems | { metadata?: any; files?: any; links?: any } | string | Uint8Array, collectionLastBlockSubmission: Option | null | Uint8Array | u32 | AnyNumber, collectionMaxSize: Option | null | Uint8Array | u32 | AnyNumber, collectionCanUpload: bool | boolean | Uint8Array, valueFee: u128 | AnyNumber | Uint8Array, legalFee: u128 | AnyNumber | Uint8Array, collectionItemFee: u128 | AnyNumber | Uint8Array, tokensRecordFee: u128 | AnyNumber | Uint8Array, sponsorshipId: Option | null | Uint8Array | u128 | AnyNumber, seal: Option | null | Uint8Array | H256 | string, voidInfo: Option | null | Uint8Array | PalletLogionLocLocVoidInfo | { replacer?: any } | string, replacerOf: Option | null | Uint8Array | u128 | AnyNumber, closed: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, PalletLogionLocRequester, AccountId32, PalletLogionLocLocType, PalletLogionLocItems, Option, Option, bool, u128, u128, u128, u128, Option, Option, Option, Option, bool]>; /** - * See [`Pallet::import_sponsorship`]. + * Import a sponsorship. **/ importSponsorship: AugmentedSubmittable<(sponsorshipId: Compact | AnyNumber | Uint8Array, sponsor: AccountId32 | string | Uint8Array, sponsoredAccount: PalletLogionLocSupportedAccountId | { None: any } | { Polkadot: any } | { Other: any } | string | Uint8Array, legalOfficer: AccountId32 | string | Uint8Array, locId: Option | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic, [Compact, AccountId32, PalletLogionLocSupportedAccountId, AccountId32, Option]>; /** - * See [`Pallet::import_tokens_record`]. + * Imports a tokens record **/ importTokensRecord: AugmentedSubmittable<(collectionLocId: Compact | AnyNumber | Uint8Array, recordId: H256 | string | Uint8Array, description: H256 | string | Uint8Array, files: Vec | (PalletLogionLocTokensRecordFile | { name?: any; contentType?: any; size_?: any; hash_?: any } | string | Uint8Array)[], submitter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [Compact, H256, H256, Vec, AccountId32]>; /** - * See [`Pallet::import_verified_issuer`]. + * Import a verified issuer **/ importVerifiedIssuer: AugmentedSubmittable<(legalOfficer: AccountId32 | string | Uint8Array, issuer: AccountId32 | string | Uint8Array, identityLocId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [AccountId32, AccountId32, Compact]>; /** - * See [`Pallet::import_verified_issuer_selection`]. + * Import a verified issuer selection **/ importVerifiedIssuerSelection: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, issuer: AccountId32 | string | Uint8Array, locOwner: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [Compact, AccountId32, AccountId32]>; /** - * See [`Pallet::make_void`]. + * Make a LOC void. **/ makeVoid: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::make_void_and_replace`]. + * Make a LOC void and provide a replacer. **/ makeVoidAndReplace: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, replacerLocId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact, Compact]>; /** - * See [`Pallet::nominate_issuer`]. + * Nominate an issuer **/ nominateIssuer: AugmentedSubmittable<(issuer: AccountId32 | string | Uint8Array, identityLocId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [AccountId32, Compact]>; /** - * See [`Pallet::set_invited_contributor_selection`]. + * Select/unselect an invited contributor on a given LOC **/ setInvitedContributorSelection: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, invitedContributor: AccountId32 | string | Uint8Array, selected: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, AccountId32, bool]>; /** - * See [`Pallet::set_issuer_selection`]. + * Select/unselect an issuer on a given LOC **/ setIssuerSelection: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array, issuer: AccountId32 | string | Uint8Array, selected: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, AccountId32, bool]>; /** - * See [`Pallet::sponsor`]. + * Creates a sponsorship. **/ sponsor: AugmentedSubmittable<(sponsorshipId: Compact | AnyNumber | Uint8Array, sponsoredAccount: PalletLogionLocSupportedAccountId | { None: any } | { Polkadot: any } | { Other: any } | string | Uint8Array, legalOfficer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic, [Compact, PalletLogionLocSupportedAccountId, AccountId32]>; /** - * See [`Pallet::withdraw_sponsorship`]. + * Withdraws an unused sponsorship. **/ withdrawSponsorship: AugmentedSubmittable<(sponsorshipId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** @@ -299,39 +546,196 @@ declare module '@polkadot/api-base/types/submittable' { }; logionTreasury: { /** - * See [`Pallet::approve_proposal`]. + * Approve a proposal. + * + * ## Dispatch Origin + * + * Must be [`Config::ApproveOrigin`]. + * + * ## Details + * + * At a later time, the proposal will be allocated to the beneficiary and the original + * deposit will be returned. + * + * ### Complexity + * - O(1). + * + * ## Events + * + * No events are emitted from this dispatch. **/ approveProposal: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::check_status`]. + * Check the status of the spend and remove it from the storage if processed. + * + * ## Dispatch Origin + * + * Must be signed. + * + * ## Details + * + * The status check is a prerequisite for retrying a failed payout. + * If a spend has either succeeded or expired, it is removed from the storage by this + * function. In such instances, transaction fees are refunded. + * + * ### Parameters + * - `index`: The spend index. + * + * ## Events + * + * Emits [`Event::PaymentFailed`] if the spend payout has failed. + * Emits [`Event::SpendProcessed`] if the spend payout has succeed. **/ checkStatus: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * See [`Pallet::payout`]. + * Claim a spend. + * + * ## Dispatch Origin + * + * Must be signed. + * + * ## Details + * + * Spends must be claimed within some temporal bounds. A spend may be claimed within one + * [`Config::PayoutPeriod`] from the `valid_from` block. + * In case of a payout failure, the spend status must be updated with the `check_status` + * dispatchable before retrying with the current function. + * + * ### Parameters + * - `index`: The spend index. + * + * ## Events + * + * Emits [`Event::Paid`] if successful. **/ payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * See [`Pallet::propose_spend`]. + * Put forward a suggestion for spending. + * + * ## Dispatch Origin + * + * Must be signed. + * + * ## Details + * A deposit proportional to the value is reserved and slashed if the proposal is rejected. + * It is returned once the proposal is awarded. + * + * ### Complexity + * - O(1) + * + * ## Events + * + * Emits [`Event::Proposed`] if successful. **/ proposeSpend: AugmentedSubmittable<(value: Compact | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; /** - * See [`Pallet::reject_proposal`]. + * Reject a proposed spend. + * + * ## Dispatch Origin + * + * Must be [`Config::RejectOrigin`]. + * + * ## Details + * The original deposit will be slashed. + * + * ### Complexity + * - O(1) + * + * ## Events + * + * Emits [`Event::Rejected`] if successful. **/ rejectProposal: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::remove_approval`]. + * Force a previously approved proposal to be removed from the approval queue. + * + * ## Dispatch Origin + * + * Must be [`Config::RejectOrigin`]. + * + * ## Details + * + * The original deposit will no longer be returned. + * + * ### Parameters + * - `proposal_id`: The index of a proposal + * + * ### Complexity + * - O(A) where `A` is the number of approvals + * + * ### Errors + * - [`Error::ProposalNotApproved`]: The `proposal_id` supplied was not found in the + * approval queue, i.e., the proposal has not been approved. This could also mean the + * proposal does not exist altogether, thus there is no way it would have been approved + * in the first place. **/ removeApproval: AugmentedSubmittable<(proposalId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::spend`]. + * Propose and approve a spend of treasury funds. + * + * ## Dispatch Origin + * + * Must be [`Config::SpendOrigin`] with the `Success` value being at least + * `amount` of `asset_kind` in the native asset. The amount of `asset_kind` is converted + * for assertion using the [`Config::BalanceConverter`]. + * + * ## Details + * + * Create an approved spend for transferring a specific `amount` of `asset_kind` to a + * designated beneficiary. The spend must be claimed using the `payout` dispatchable within + * the [`Config::PayoutPeriod`]. + * + * ### Parameters + * - `asset_kind`: An indicator of the specific asset class to be spent. + * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. + * - `beneficiary`: The beneficiary of the spend. + * - `valid_from`: The block number from which the spend can be claimed. It can refer to + * the past if the resulting spend has not yet expired according to the + * [`Config::PayoutPeriod`]. If `None`, the spend can be claimed immediately after + * approval. + * + * ## Events + * + * Emits [`Event::AssetSpendApproved`] if successful. **/ spend: AugmentedSubmittable<(assetKind: Null | null, amount: Compact | AnyNumber | Uint8Array, beneficiary: AccountId32 | string | Uint8Array, validFrom: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Null, Compact, AccountId32, Option]>; /** - * See [`Pallet::spend_local`]. + * Propose and approve a spend of treasury funds. + * + * ## Dispatch Origin + * + * Must be [`Config::SpendOrigin`] with the `Success` value being at least `amount`. + * + * ### Details + * NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the + * beneficiary. + * + * ### Parameters + * - `amount`: The amount to be transferred from the treasury to the `beneficiary`. + * - `beneficiary`: The destination account for the transfer. + * + * ## Events + * + * Emits [`Event::SpendApproved`] if successful. **/ spendLocal: AugmentedSubmittable<(amount: Compact | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [Compact, MultiAddress]>; /** - * See [`Pallet::void_spend`]. + * Void previously approved spend. + * + * ## Dispatch Origin + * + * Must be [`Config::RejectOrigin`]. + * + * ## Details + * + * A spend void is only possible if the payout has not been attempted yet. + * + * ### Parameters + * - `index`: The spend index. + * + * ## Events + * + * Emits [`Event::AssetSpendVoided`] if successful. **/ voidSpend: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** @@ -341,11 +745,23 @@ declare module '@polkadot/api-base/types/submittable' { }; messageQueue: { /** - * See [`Pallet::execute_overweight`]. + * Execute an overweight message. + * + * Temporary processing errors will be propagated whereas permanent errors are treated + * as success condition. + * + * - `origin`: Must be `Signed`. + * - `message_origin`: The origin from which the message to be executed arrived. + * - `page`: The page in the queue in which the message to be executed is sitting. + * - `index`: The index into the queue of the message to be executed. + * - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution + * of the message. + * + * Benchmark complexity considerations: O(index + weight_limit). **/ executeOverweight: AugmentedSubmittable<(messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin | { Here: any } | { Parent: any } | { Sibling: any } | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesCoreAggregateMessageOrigin, u32, u32, SpWeightsWeightV2Weight]>; /** - * See [`Pallet::reap_page`]. + * Remove a page which has no more messages remaining to be processed or is stale. **/ reapPage: AugmentedSubmittable<(messageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin | { Here: any } | { Parent: any } | { Sibling: any } | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]>; /** @@ -355,19 +771,117 @@ declare module '@polkadot/api-base/types/submittable' { }; multisig: { /** - * See [`Pallet::approve_as_multi`]. + * Register approval for a dispatch to be made from a deterministic composite account if + * approved by a total of `threshold - 1` of `other_signatories`. + * + * Payment: `DepositBase` will be reserved if this is the first approval, plus + * `threshold` times `DepositFactor`. It is returned once this dispatch happens or + * is cancelled. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is + * not the first approval, then it must be `Some`, with the timepoint (block number and + * transaction index) of the first approval transaction. + * - `call_hash`: The hash of the call to be executed. + * + * NOTE: If this is the final approval, you will want to use `as_multi` instead. + * + * ## Complexity + * - `O(S)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One encode & hash, both of complexity `O(S)`. + * - Up to one binary search and insert (`O(logS + S)`). + * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. + * - One event. + * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit + * taken for its lifetime of `DepositBase + threshold * DepositFactor`. **/ approveAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, Option, U8aFixed, SpWeightsWeightV2Weight]>; /** - * See [`Pallet::as_multi`]. + * Register approval for a dispatch to be made from a deterministic composite account if + * approved by a total of `threshold - 1` of `other_signatories`. + * + * If there are enough, then dispatch the call. + * + * Payment: `DepositBase` will be reserved if this is the first approval, plus + * `threshold` times `DepositFactor`. It is returned once this dispatch happens or + * is cancelled. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is + * not the first approval, then it must be `Some`, with the timepoint (block number and + * transaction index) of the first approval transaction. + * - `call`: The call to be executed. + * + * NOTE: Unless this is the final approval, you will generally want to use + * `approve_as_multi` instead, since it only requires a hash of the call. + * + * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise + * on success, result is `Ok` and the result from the interior call, if it was executed, + * may be found in the deposited `MultisigExecuted` event. + * + * ## Complexity + * - `O(S + Z + Call)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len. + * - One encode & hash, both of complexity `O(S)`. + * - Up to one binary search and insert (`O(logS + S)`). + * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove. + * - One event. + * - The weight of the `call`. + * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit + * taken for its lifetime of `DepositBase + threshold * DepositFactor`. **/ asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option | null | Uint8Array | PalletMultisigTimepoint | { height?: any; index?: any } | string, call: Call | IMethod | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, Option, Call, SpWeightsWeightV2Weight]>; /** - * See [`Pallet::as_multi_threshold_1`]. + * Immediately dispatch a multi-signature call using a single approval from the caller. + * + * The dispatch origin for this call must be _Signed_. + * + * - `other_signatories`: The accounts (other than the sender) who are part of the + * multi-signature, but do not participate in the approval process. + * - `call`: The call to be executed. + * + * Result is equivalent to the dispatched result. + * + * ## Complexity + * O(Z + C) where Z is the length of the call and C its execution weight. **/ asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call]>; /** - * See [`Pallet::cancel_as_multi`]. + * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously + * for this operation will be unreserved on success. + * + * The dispatch origin for this call must be _Signed_. + * + * - `threshold`: The total number of approvals for this dispatch before it is executed. + * - `other_signatories`: The accounts (other than the sender) who can approve this + * dispatch. May not be empty. + * - `timepoint`: The timepoint (block number and transaction index) of the first approval + * transaction for this dispatch. + * - `call_hash`: The hash of the call to be executed. + * + * ## Complexity + * - `O(S)`. + * - Up to one balance-reserve or unreserve operation. + * - One passthrough operation, one insert, both `O(S)` where `S` is the number of + * signatories. `S` is capped by `MaxSignatories`, with weight being proportional. + * - One encode & hash, both of complexity `O(S)`. + * - One event. + * - I/O: 1 read `O(S)`, one remove. + * - Storage: removes one item. **/ cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic, [u16, Vec, PalletMultisigTimepoint, U8aFixed]>; /** @@ -383,20 +897,40 @@ declare module '@polkadot/api-base/types/submittable' { }; parachainSystem: { /** - * See [`Pallet::authorize_upgrade`]. + * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied + * later. + * + * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec + * version and name should be verified on upgrade. Since the authorization only has a hash, + * it cannot actually perform the verification. + * + * This call requires Root origin. **/ authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array, checkVersion: bool | boolean | Uint8Array) => SubmittableExtrinsic, [H256, bool]>; /** - * See [`Pallet::enact_authorized_upgrade`]. + * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. + * + * If the authorization required a version check, this call will ensure the spec name + * remains unchanged and that the spec version has increased. + * + * Note that this function will not apply the new `code`, but only attempt to schedule the + * upgrade with the Relay Chain. + * + * All origins are allowed. **/ enactAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * See [`Pallet::set_validation_data`]. + * Set the current validation data. + * + * This should be invoked exactly once per block. It will panic at the finalization + * phase if the call was not invoked. + * + * The dispatch origin for this call must be `Inherent` + * + * As a side effect, this function upgrades the current validation function + * if the appropriate time has come. **/ setValidationData: AugmentedSubmittable<(data: CumulusPrimitivesParachainInherentParachainInherentData | { validationData?: any; relayChainState?: any; downwardMessages?: any; horizontalMessages?: any } | string | Uint8Array) => SubmittableExtrinsic, [CumulusPrimitivesParachainInherentParachainInherentData]>; - /** - * See [`Pallet::sudo_send_upward_message`]. - **/ sudoSendUpwardMessage: AugmentedSubmittable<(message: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** * Generic tx @@ -405,51 +939,236 @@ declare module '@polkadot/api-base/types/submittable' { }; polkadotXcm: { /** - * See [`Pallet::execute`]. + * Claims assets trapped on this pallet because of leftover assets during XCM execution. + * + * - `origin`: Anyone can call this extrinsic. + * - `assets`: The exact assets that were trapped. Use the version to specify what version + * was the latest when they were trapped. + * - `beneficiary`: The location/account where the claimed assets will be deposited. + **/ + claimAssets: AugmentedSubmittable<(assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedAssets, XcmVersionedLocation]>; + /** + * Execute an XCM message from a local, signed, origin. + * + * An event is deposited indicating whether `msg` could be executed completely or only + * partially. + * + * No more than `max_weight` will be used in its attempted execution. If this is less than + * the maximum amount of weight that the message could take to be executed, then no + * execution attempt will be made. + * + * WARNING: DEPRECATED. `execute` will be removed after June 2024. Use `execute_blob` + * instead. **/ execute: AugmentedSubmittable<(message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedXcm, SpWeightsWeightV2Weight]>; /** - * See [`Pallet::force_default_xcm_version`]. + * Execute an XCM from a local, signed, origin. + * + * An event is deposited indicating whether the message could be executed completely + * or only partially. + * + * No more than `max_weight` will be used in its attempted execution. If this is less than + * the maximum amount of weight that the message could take to be executed, then no + * execution attempt will be made. + * + * The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`]. + **/ + executeBlob: AugmentedSubmittable<(encodedMessage: Bytes | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Bytes, SpWeightsWeightV2Weight]>; + /** + * Set a safe XCM version (the version that XCM should be encoded with if the most recent + * version a destination can accept is unknown). + * + * - `origin`: Must be an origin specified by AdminOrigin. + * - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable. **/ forceDefaultXcmVersion: AugmentedSubmittable<(maybeXcmVersion: Option | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic, [Option]>; /** - * See [`Pallet::force_subscribe_version_notify`]. + * Ask a location to notify us regarding their XCM version and any changes to it. + * + * - `origin`: Must be an origin specified by AdminOrigin. + * - `location`: The location to which we should subscribe for XCM version notifications. **/ forceSubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation]>; /** - * See [`Pallet::force_suspension`]. + * Set or unset the global suspension state of the XCM executor. + * + * - `origin`: Must be an origin specified by AdminOrigin. + * - `suspended`: `true` to suspend, `false` to resume. **/ forceSuspension: AugmentedSubmittable<(suspended: bool | boolean | Uint8Array) => SubmittableExtrinsic, [bool]>; /** - * See [`Pallet::force_unsubscribe_version_notify`]. + * Require that a particular destination should no longer notify us regarding any XCM + * version changes. + * + * - `origin`: Must be an origin specified by AdminOrigin. + * - `location`: The location to which we are currently subscribed for XCM version + * notifications which we no longer desire. **/ forceUnsubscribeVersionNotify: AugmentedSubmittable<(location: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation]>; /** - * See [`Pallet::force_xcm_version`]. + * Extoll that a particular destination can be communicated with through a particular + * version of XCM. + * + * - `origin`: Must be an origin specified by AdminOrigin. + * - `location`: The destination that is being described. + * - `xcm_version`: The latest version of XCM that `location` supports. **/ forceXcmVersion: AugmentedSubmittable<(location: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, version: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [StagingXcmV4Location, u32]>; /** - * See [`Pallet::limited_reserve_transfer_assets`]. + * Transfer some assets from the local chain to the destination chain through their local, + * destination or remote reserve. + * + * `assets` must have same reserve location and may not be teleportable to `dest`. + * - `assets` have local reserve: transfer assets to sovereign account of destination + * chain and forward a notification XCM to `dest` to mint and deposit reserve-based + * assets to `beneficiary`. + * - `assets` have destination reserve: burn local assets and forward a notification to + * `dest` chain to withdraw the reserve assets from this chain's sovereign account and + * deposit them to `beneficiary`. + * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move + * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` + * to mint and deposit reserve-based assets to `beneficiary`. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight + * is needed than `weight_limit`, then the operation will fail and the sent assets may be + * at risk. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `[Parent, + * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from + * relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will + * generally be an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the + * fee on the `dest` (and possibly reserve) chains. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. **/ limitedReserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>; /** - * See [`Pallet::limited_teleport_assets`]. + * Teleport some assets from the local chain to some destination chain. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight + * is needed than `weight_limit`, then the operation will fail and the sent assets may be + * at risk. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `[Parent, + * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from + * relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will + * generally be an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the + * fee on the `dest` chain. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. **/ limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>; /** - * See [`Pallet::reserve_transfer_assets`]. + * Transfer some assets from the local chain to the destination chain through their local, + * destination or remote reserve. + * + * `assets` must have same reserve location and may not be teleportable to `dest`. + * - `assets` have local reserve: transfer assets to sovereign account of destination + * chain and forward a notification XCM to `dest` to mint and deposit reserve-based + * assets to `beneficiary`. + * - `assets` have destination reserve: burn local assets and forward a notification to + * `dest` chain to withdraw the reserve assets from this chain's sovereign account and + * deposit them to `beneficiary`. + * - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move + * reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` + * to mint and deposit reserve-based assets to `beneficiary`. + * + * **This function is deprecated: Use `limited_reserve_transfer_assets` instead.** + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, + * with all fees taken as needed from the asset. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `[Parent, + * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from + * relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will + * generally be an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the + * fee on the `dest` (and possibly reserve) chains. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. **/ reserveTransferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>; /** - * See [`Pallet::send`]. + * WARNING: DEPRECATED. `send` will be removed after June 2024. Use `send_blob` instead. **/ send: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedXcm]>; /** - * See [`Pallet::teleport_assets`]. + * Send an XCM from a local, signed, origin. + * + * The destination, `dest`, will receive this message with a `DescendOrigin` instruction + * that makes the origin of the message be the origin on this system. + * + * The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`]. + **/ + sendBlob: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, encodedMessage: Bytes | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, Bytes]>; + /** + * Teleport some assets from the local chain to some destination chain. + * + * **This function is deprecated: Use `limited_teleport_assets` instead.** + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited, + * with all fees taken as needed from the asset. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `[Parent, + * Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from + * relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will + * generally be an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the + * fee on the `dest` chain. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. **/ teleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32]>; /** - * See [`Pallet::transfer_assets`]. + * Transfer some assets from the local chain to the destination chain through their local, + * destination or remote reserve, or through teleports. + * + * Fee payment on the destination side is made from the asset in the `assets` vector of + * index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for + * `weight_limit` of weight. If more weight is needed than `weight_limit`, then the + * operation will fail and the sent assets may be at risk. + * + * `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable + * to `dest`, no limitations imposed on `fees`. + * - for local reserve: transfer assets to sovereign account of destination chain and + * forward a notification XCM to `dest` to mint and deposit reserve-based assets to + * `beneficiary`. + * - for destination reserve: burn local assets and forward a notification to `dest` chain + * to withdraw the reserve assets from this chain's sovereign account and deposit them + * to `beneficiary`. + * - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves + * from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint + * and deposit reserve-based assets to `beneficiary`. + * - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport + * assets and deposit them to `beneficiary`. + * + * - `origin`: Must be capable of withdrawing the `assets` and executing XCM. + * - `dest`: Destination context for the assets. Will typically be `X2(Parent, + * Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send + * from relay to parachain. + * - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will + * generally be an `AccountId32` value. + * - `assets`: The assets to be withdrawn. This should include the assets used to pay the + * fee on the `dest` (and possibly reserve) chains. + * - `fee_asset_item`: The index into `assets` of the item which should be used to pay + * fees. + * - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase. **/ transferAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, assets: XcmVersionedAssets | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>; /** @@ -459,39 +1178,123 @@ declare module '@polkadot/api-base/types/submittable' { }; recovery: { /** - * See [`Pallet::as_recovered`]. + * Send a call through a recovered account. + * + * The dispatch origin for this call must be _Signed_ and registered to + * be able to make calls on behalf of the recovered account. + * + * Parameters: + * - `account`: The recovered account you want to make a call on-behalf-of. + * - `call`: The call you want to make with the recovered account. **/ asRecovered: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Call]>; /** - * See [`Pallet::cancel_recovered`]. + * Cancel the ability to use `as_recovered` for `account`. + * + * The dispatch origin for this call must be _Signed_ and registered to + * be able to make calls on behalf of the recovered account. + * + * Parameters: + * - `account`: The recovered account you are able to call on-behalf-of. **/ cancelRecovered: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * See [`Pallet::claim_recovery`]. + * Allow a successful rescuer to claim their recovered account. + * + * The dispatch origin for this call must be _Signed_ and must be a "rescuer" + * who has successfully completed the account recovery process: collected + * `threshold` or more vouches, waited `delay_period` blocks since initiation. + * + * Parameters: + * - `account`: The lost account that you want to claim has been successfully recovered by + * you. **/ claimRecovery: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * See [`Pallet::close_recovery`]. + * As the controller of a recoverable account, close an active recovery + * process for your account. + * + * Payment: By calling this function, the recoverable account will receive + * the recovery deposit `RecoveryDeposit` placed by the rescuer. + * + * The dispatch origin for this call must be _Signed_ and must be a + * recoverable account with an active recovery process for it. + * + * Parameters: + * - `rescuer`: The account trying to rescue this recoverable account. **/ closeRecovery: AugmentedSubmittable<(rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * See [`Pallet::create_recovery`]. + * Create a recovery configuration for your account. This makes your account recoverable. + * + * Payment: `ConfigDepositBase` + `FriendDepositFactor` * #_of_friends balance + * will be reserved for storing the recovery configuration. This deposit is returned + * in full when the user calls `remove_recovery`. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `friends`: A list of friends you trust to vouch for recovery attempts. Should be + * ordered and contain no duplicate values. + * - `threshold`: The number of friends that must vouch for a recovery attempt before the + * account can be recovered. Should be less than or equal to the length of the list of + * friends. + * - `delay_period`: The number of blocks after a recovery attempt is initialized that + * needs to pass before the account can be recovered. **/ createRecovery: AugmentedSubmittable<(friends: Vec | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Vec, u16, u32]>; /** - * See [`Pallet::initiate_recovery`]. + * Initiate the process for recovering a recoverable account. + * + * Payment: `RecoveryDeposit` balance will be reserved for initiating the + * recovery process. This deposit will always be repatriated to the account + * trying to be recovered. See `close_recovery`. + * + * The dispatch origin for this call must be _Signed_. + * + * Parameters: + * - `account`: The lost account that you want to recover. This account needs to be + * recoverable (i.e. have a recovery configuration). **/ initiateRecovery: AugmentedSubmittable<(account: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * See [`Pallet::remove_recovery`]. + * Remove the recovery process for your account. Recovered accounts are still accessible. + * + * NOTE: The user must make sure to call `close_recovery` on all active + * recovery attempts before calling this function else it will fail. + * + * Payment: By calling this function the recoverable account will unreserve + * their recovery configuration deposit. + * (`ConfigDepositBase` + `FriendDepositFactor` * #_of_friends) + * + * The dispatch origin for this call must be _Signed_ and must be a + * recoverable account (i.e. has a recovery configuration). **/ removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * See [`Pallet::set_recovered`]. + * Allow ROOT to bypass the recovery process and set an a rescuer account + * for a lost account directly. + * + * The dispatch origin for this call must be _ROOT_. + * + * Parameters: + * - `lost`: The "lost account" to be recovered. + * - `rescuer`: The "rescuer account" which can call as the lost account. **/ setRecovered: AugmentedSubmittable<(lost: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress]>; /** - * See [`Pallet::vouch_recovery`]. + * Allow a "friend" of a recoverable account to vouch for an active recovery + * process for that account. + * + * The dispatch origin for this call must be _Signed_ and must be a "friend" + * for the recoverable account. + * + * Parameters: + * - `lost`: The lost account that you want to recover. + * - `rescuer`: The account trying to rescue the lost account that you want to vouch for. + * + * The combination of these two parameters must point to an active recovery + * process. **/ vouchRecovery: AugmentedSubmittable<(lost: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, rescuer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress]>; /** @@ -501,11 +1304,30 @@ declare module '@polkadot/api-base/types/submittable' { }; session: { /** - * See [`Pallet::purge_keys`]. + * Removes any session key(s) of the function caller. + * + * This doesn't take effect until the next session. + * + * The dispatch origin of this function must be Signed and the account must be either be + * convertible to a validator ID using the chain's typical addressing system (this usually + * means being a controller account) or directly convertible into a validator ID (which + * usually means being a stash account). + * + * ## Complexity + * - `O(1)` in number of key types. Actual cost depends on the number of length of + * `T::Keys::key_ids()` which is fixed. **/ purgeKeys: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * See [`Pallet::set_keys`]. + * Sets the session key(s) of the function caller to `keys`. + * Allows an account to set its session key prior to becoming a validator. + * This doesn't take effect until the next session. + * + * The dispatch origin of this function must be signed. + * + * ## Complexity + * - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is + * fixed. **/ setKeys: AugmentedSubmittable<(keys: LogionRuntimeSessionKeys | { aura?: any } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic, [LogionRuntimeSessionKeys, Bytes]>; /** @@ -515,23 +1337,33 @@ declare module '@polkadot/api-base/types/submittable' { }; sudo: { /** - * See [`Pallet::remove_key`]. + * Permanently removes the sudo key. + * + * **This cannot be un-done.** **/ removeKey: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * See [`Pallet::set_key`]. + * Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo + * key. **/ setKey: AugmentedSubmittable<(updated: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** - * See [`Pallet::sudo`]. + * Authenticates the sudo key and dispatches a function call with `Root` origin. **/ sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [Call]>; /** - * See [`Pallet::sudo_as`]. + * Authenticates the sudo key and dispatches a function call with `Signed` origin from + * a given account. + * + * The dispatch origin for this call must be _Signed_. **/ sudoAs: AugmentedSubmittable<(who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, Call]>; /** - * See [`Pallet::sudo_unchecked_weight`]. + * Authenticates the sudo key and dispatches a function call with `Root` origin. + * This function does not check the weight of the call, and instead allows the + * Sudo user to specify the weight of the call. + * + * The dispatch origin for this call must be _Signed_. **/ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Call, SpWeightsWeightV2Weight]>; /** @@ -541,47 +1373,73 @@ declare module '@polkadot/api-base/types/submittable' { }; system: { /** - * See [`Pallet::apply_authorized_upgrade`]. + * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized. + * + * If the authorization required a version check, this call will ensure the spec name + * remains unchanged and that the spec version has increased. + * + * Depending on the runtime's `OnSetCode` configuration, this function may directly apply + * the new `code` in the same block or attempt to schedule the upgrade. + * + * All origins are allowed. **/ applyAuthorizedUpgrade: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * See [`Pallet::authorize_upgrade`]. + * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied + * later. + * + * This call requires Root origin. **/ authorizeUpgrade: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** - * See [`Pallet::authorize_upgrade_without_checks`]. + * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied + * later. + * + * WARNING: This authorizes an upgrade that will take place without any safety checks, for + * example that the spec name remains the same and that the version number increases. Not + * recommended for normal use. Use `authorize_upgrade` instead. + * + * This call requires Root origin. **/ authorizeUpgradeWithoutChecks: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic, [H256]>; /** - * See [`Pallet::kill_prefix`]. + * Kill all storage items with a key that starts with the given prefix. + * + * **NOTE:** We rely on the Root origin to provide us the number of subkeys under + * the prefix we are removing to accurately calculate the weight of this function. **/ killPrefix: AugmentedSubmittable<(prefix: Bytes | string | Uint8Array, subkeys: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Bytes, u32]>; /** - * See [`Pallet::kill_storage`]. + * Kill some items from storage. **/ killStorage: AugmentedSubmittable<(keys: Vec | (Bytes | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * See [`Pallet::remark`]. + * Make some on-chain remark. + * + * Can be executed by every `origin`. **/ remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * See [`Pallet::remark_with_event`]. + * Make some on-chain remark and emit event. **/ remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * See [`Pallet::set_code`]. + * Set the new runtime code. **/ setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * See [`Pallet::set_code_without_checks`]. + * Set the new runtime code without doing any checks of the given `code`. + * + * Note that runtime upgrades will not run if this is called with a not-increasing spec + * version! **/ setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic, [Bytes]>; /** - * See [`Pallet::set_heap_pages`]. + * Set the number of pages in the WebAssembly environment's heap. **/ setHeapPages: AugmentedSubmittable<(pages: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u64]>; /** - * See [`Pallet::set_storage`]. + * Set some items of storage. **/ setStorage: AugmentedSubmittable<(items: Vec> | ([Bytes | string | Uint8Array, Bytes | string | Uint8Array])[]) => SubmittableExtrinsic, [Vec>]>; /** @@ -591,7 +1449,25 @@ declare module '@polkadot/api-base/types/submittable' { }; timestamp: { /** - * See [`Pallet::set`]. + * Set the current time. + * + * This call should be invoked exactly once per block. It will panic at the finalization + * phase, if this call hasn't been invoked by that time. + * + * The timestamp should be greater than the previous one by the amount specified by + * [`Config::MinimumPeriod`]. + * + * The dispatch origin for this call must be _None_. + * + * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware + * that changing the complexity of this call could result exhausting the resources in a + * block to execute any other calls. + * + * ## Complexity + * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) + * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in + * `on_finalize`) + * - 1 event handler `on_timestamp_set`. Must be `O(1)`. **/ set: AugmentedSubmittable<(now: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** @@ -601,27 +1477,90 @@ declare module '@polkadot/api-base/types/submittable' { }; utility: { /** - * See [`Pallet::as_derivative`]. + * Send a call through an indexed pseudonym of the sender. + * + * Filter from origin are passed along. The call will be dispatched with an origin which + * use the same filter as the origin of this call. + * + * NOTE: If you need to ensure that any account-based filtering is not honored (i.e. + * because you expect `proxy` to have been used prior in the call stack and you do not want + * the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1` + * in the Multisig pallet instead. + * + * NOTE: Prior to version *12, this was called `as_limited_sub`. + * + * The dispatch origin for this call must be _Signed_. **/ asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [u16, Call]>; /** - * See [`Pallet::batch`]. + * Send a batch of dispatch calls. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatched without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. + * + * This will return `Ok` in all circumstances. To determine the success of the batch, an + * event is deposited. If a call failed and the batch was interrupted, then the + * `BatchInterrupted` event is deposited, along with the number of successful calls made + * and the error of the failed call. If all were successful, then the `BatchCompleted` + * event is deposited. **/ batch: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * See [`Pallet::batch_all`]. + * Send a batch of dispatch calls and atomically execute them. + * The whole transaction will rollback and fail if any of the calls failed. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatched without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. **/ batchAll: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * See [`Pallet::dispatch_as`]. + * Dispatches a function call with a provided origin. + * + * The dispatch origin for this call must be _Root_. + * + * ## Complexity + * - O(1). **/ dispatchAs: AugmentedSubmittable<(asOrigin: LogionRuntimeOriginCaller | { system: any } | { Void: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic, [LogionRuntimeOriginCaller, Call]>; /** - * See [`Pallet::force_batch`]. + * Send a batch of dispatch calls. + * Unlike `batch`, it allows errors and won't interrupt. + * + * May be called from any origin except `None`. + * + * - `calls`: The calls to be dispatched from the same origin. The number of call must not + * exceed the constant: `batched_calls_limit` (available in constant metadata). + * + * If origin is root then the calls are dispatch without checking origin filter. (This + * includes bypassing `frame_system::Config::BaseCallFilter`). + * + * ## Complexity + * - O(C) where C is the number of calls to be batched. **/ forceBatch: AugmentedSubmittable<(calls: Vec | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** - * See [`Pallet::with_weight`]. + * Dispatch a function call with a specified weight. + * + * This function does not check the weight of the call, and instead allows the + * Root origin to specify the weight of the call. + * + * The dispatch origin for this call must be _Root_. **/ withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Call, SpWeightsWeightV2Weight]>; /** @@ -631,11 +1570,11 @@ declare module '@polkadot/api-base/types/submittable' { }; vault: { /** - * See [`Pallet::approve_call`]. + * Approves a vault transfer. **/ approveCall: AugmentedSubmittable<(otherSignatories: Vec | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array, timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Vec, Call, PalletMultisigTimepoint, SpWeightsWeightV2Weight]>; /** - * See [`Pallet::request_call`]. + * Create a vault transfer. The creator must not be a legal officer. **/ requestCall: AugmentedSubmittable<(legalOfficers: Vec | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic, [Vec, U8aFixed, SpWeightsWeightV2Weight]>; /** @@ -645,7 +1584,7 @@ declare module '@polkadot/api-base/types/submittable' { }; verifiedRecovery: { /** - * See [`Pallet::create_recovery`]. + * Create a recovery configuration for your account. The legal officers must all have closed their Identity LOC. **/ createRecovery: AugmentedSubmittable<(legalOfficers: Vec | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic, [Vec]>; /** @@ -655,27 +1594,95 @@ declare module '@polkadot/api-base/types/submittable' { }; vesting: { /** - * See [`Pallet::force_remove_vesting_schedule`]. + * Force remove a vesting schedule + * + * The dispatch origin for this call must be _Root_. + * + * - `target`: An account that has a vesting schedule + * - `schedule_index`: The vesting schedule index that should be removed **/ forceRemoveVestingSchedule: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, scheduleIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [MultiAddress, u32]>; /** - * See [`Pallet::force_vested_transfer`]. + * Force a vested transfer. + * + * The dispatch origin for this call must be _Root_. + * + * - `source`: The account whose funds should be transferred. + * - `target`: The account that should be transferred the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. **/ forceVestedTransfer: AugmentedSubmittable<(source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: PalletVestingVestingInfo | { locked?: any; perBlock?: any; startingBlock?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, MultiAddress, PalletVestingVestingInfo]>; /** - * See [`Pallet::merge_schedules`]. + * Merge two vesting schedules together, creating a new vesting schedule that unlocks over + * the highest possible start and end blocks. If both schedules have already started the + * current block will be used as the schedule start; with the caveat that if one schedule + * is finished by the current block, the other will be treated as the new merged schedule, + * unmodified. + * + * NOTE: If `schedule1_index == schedule2_index` this is a no-op. + * NOTE: This will unlock all schedules through the current block prior to merging. + * NOTE: If both schedules have ended by the current block, no new schedule will be created + * and both will be removed. + * + * Merged schedule attributes: + * - `starting_block`: `MAX(schedule1.starting_block, scheduled2.starting_block, + * current_block)`. + * - `ending_block`: `MAX(schedule1.ending_block, schedule2.ending_block)`. + * - `locked`: `schedule1.locked_at(current_block) + schedule2.locked_at(current_block)`. + * + * The dispatch origin for this call must be _Signed_. + * + * - `schedule1_index`: index of the first schedule to merge. + * - `schedule2_index`: index of the second schedule to merge. **/ mergeSchedules: AugmentedSubmittable<(schedule1Index: u32 | AnyNumber | Uint8Array, schedule2Index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32, u32]>; /** - * See [`Pallet::vest`]. + * Unlock any vested funds of the sender account. + * + * The dispatch origin for this call must be _Signed_ and the sender must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. **/ vest: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * See [`Pallet::vested_transfer`]. + * Create a vested transfer. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account receiving the vested funds. + * - `schedule`: The vesting schedule attached to the transfer. + * + * Emits `VestingCreated`. + * + * NOTE: This will unlock all schedules through the current block. + * + * ## Complexity + * - `O(1)`. **/ vestedTransfer: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, schedule: PalletVestingVestingInfo | { locked?: any; perBlock?: any; startingBlock?: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress, PalletVestingVestingInfo]>; /** - * See [`Pallet::vest_other`]. + * Unlock any vested funds of a `target` account. + * + * The dispatch origin for this call must be _Signed_. + * + * - `target`: The account whose vested funds should be unlocked. Must have funds still + * locked under this pallet. + * + * Emits either `VestingCompleted` or `VestingUpdated`. + * + * ## Complexity + * - `O(1)`. **/ vestOther: AugmentedSubmittable<(target: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic, [MultiAddress]>; /** @@ -685,11 +1692,11 @@ declare module '@polkadot/api-base/types/submittable' { }; vote: { /** - * See [`Pallet::create_vote_for_all_legal_officers`]. + * Creates a new Vote. **/ createVoteForAllLegalOfficers: AugmentedSubmittable<(locId: Compact | AnyNumber | Uint8Array) => SubmittableExtrinsic, [Compact]>; /** - * See [`Pallet::vote`]. + * Vote. **/ vote: AugmentedSubmittable<(voteId: Compact | AnyNumber | Uint8Array, voteYes: bool | boolean | Uint8Array) => SubmittableExtrinsic, [Compact, bool]>; /** @@ -699,23 +1706,41 @@ declare module '@polkadot/api-base/types/submittable' { }; xcmpQueue: { /** - * See [`Pallet::resume_xcm_execution`]. + * Resumes all XCM executions for the XCMP queue. + * + * Note that this function doesn't change the status of the in/out bound channels. + * + * - `origin`: Must pass `ControllerOrigin`. **/ resumeXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * See [`Pallet::suspend_xcm_execution`]. + * Suspends all XCM executions for the XCMP queue, regardless of the sender's origin. + * + * - `origin`: Must pass `ControllerOrigin`. **/ suspendXcmExecution: AugmentedSubmittable<() => SubmittableExtrinsic, []>; /** - * See [`Pallet::update_drop_threshold`]. + * Overwrites the number of pages which must be in the queue after which we drop any + * further messages from the channel. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.drop_threshold` **/ updateDropThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * See [`Pallet::update_resume_threshold`]. + * Overwrites the number of pages which the queue must be reduced to before it signals + * that message sending may recommence after it has been suspended. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.resume_threshold` **/ updateResumeThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** - * See [`Pallet::update_suspend_threshold`]. + * Overwrites the number of pages which must be in the queue for the other side to be + * told to suspend their sending. + * + * - `origin`: Must pass `Root`. + * - `new`: Desired value for `QueueConfigData.suspend_value` **/ updateSuspendThreshold: AugmentedSubmittable<(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic, [u32]>; /** diff --git a/packages/node-api/src/interfaces/lookup.ts b/packages/node-api/src/interfaces/lookup.ts index 99856d1c..6234b254 100644 --- a/packages/node-api/src/interfaces/lookup.ts +++ b/packages/node-api/src/interfaces/lookup.ts @@ -24,7 +24,7 @@ export default { flags: 'u128' }, /** - * Lookup8: frame_support::dispatch::PerDispatchClass + * Lookup9: frame_support::dispatch::PerDispatchClass **/ FrameSupportDispatchPerDispatchClassWeight: { normal: 'SpWeightsWeightV2Weight', @@ -32,20 +32,20 @@ export default { mandatory: 'SpWeightsWeightV2Weight' }, /** - * Lookup9: sp_weights::weight_v2::Weight + * Lookup10: sp_weights::weight_v2::Weight **/ SpWeightsWeightV2Weight: { refTime: 'Compact', proofSize: 'Compact' }, /** - * Lookup14: sp_runtime::generic::digest::Digest + * Lookup15: sp_runtime::generic::digest::Digest **/ SpRuntimeDigest: { logs: 'Vec' }, /** - * Lookup16: sp_runtime::generic::digest::DigestItem + * Lookup17: sp_runtime::generic::digest::DigestItem **/ SpRuntimeDigestDigestItem: { _enum: { @@ -61,7 +61,7 @@ export default { } }, /** - * Lookup19: frame_system::EventRecord + * Lookup20: frame_system::EventRecord **/ FrameSystemEventRecord: { phase: 'FrameSystemPhase', @@ -69,7 +69,7 @@ export default { topics: 'Vec' }, /** - * Lookup21: frame_system::pallet::Event + * Lookup22: frame_system::pallet::Event **/ FrameSystemEvent: { _enum: { @@ -101,7 +101,7 @@ export default { } }, /** - * Lookup22: frame_support::dispatch::DispatchInfo + * Lookup23: frame_support::dispatch::DispatchInfo **/ FrameSupportDispatchDispatchInfo: { weight: 'SpWeightsWeightV2Weight', @@ -109,19 +109,19 @@ export default { paysFee: 'FrameSupportDispatchPays' }, /** - * Lookup23: frame_support::dispatch::DispatchClass + * Lookup24: frame_support::dispatch::DispatchClass **/ FrameSupportDispatchDispatchClass: { _enum: ['Normal', 'Operational', 'Mandatory'] }, /** - * Lookup24: frame_support::dispatch::Pays + * Lookup25: frame_support::dispatch::Pays **/ FrameSupportDispatchPays: { _enum: ['Yes', 'No'] }, /** - * Lookup25: sp_runtime::DispatchError + * Lookup26: sp_runtime::DispatchError **/ SpRuntimeDispatchError: { _enum: { @@ -142,26 +142,26 @@ export default { } }, /** - * Lookup26: sp_runtime::ModuleError + * Lookup27: sp_runtime::ModuleError **/ SpRuntimeModuleError: { index: 'u8', error: '[u8;4]' }, /** - * Lookup27: sp_runtime::TokenError + * Lookup28: sp_runtime::TokenError **/ SpRuntimeTokenError: { _enum: ['FundsUnavailable', 'OnlyProvider', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported', 'CannotCreateHold', 'NotExpendable', 'Blocked'] }, /** - * Lookup28: sp_arithmetic::ArithmeticError + * Lookup29: sp_arithmetic::ArithmeticError **/ SpArithmeticArithmeticError: { _enum: ['Underflow', 'Overflow', 'DivisionByZero'] }, /** - * Lookup29: sp_runtime::TransactionalError + * Lookup30: sp_runtime::TransactionalError **/ SpRuntimeTransactionalError: { _enum: ['LimitReached', 'NoLayer'] @@ -1711,7 +1711,7 @@ export default { * Lookup165: frame_system::pallet::Error **/ FrameSystemError: { - _enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered', 'NothingAuthorized', 'Unauthorized'] + _enum: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered', 'MultiBlockMigrationsOngoing', 'NothingAuthorized', 'Unauthorized'] }, /** * Lookup167: cumulus_pallet_parachain_system::unincluded_segment::Ancestor @@ -1719,7 +1719,7 @@ export default { CumulusPalletParachainSystemUnincludedSegmentAncestor: { usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth', paraHeadHash: 'Option', - consumedGoAheadSignal: 'Option' + consumedGoAheadSignal: 'Option' }, /** * Lookup168: cumulus_pallet_parachain_system::unincluded_segment::UsedBandwidth @@ -1737,9 +1737,9 @@ export default { totalBytes: 'u32' }, /** - * Lookup175: polkadot_primitives::v6::UpgradeGoAhead + * Lookup175: polkadot_primitives::v7::UpgradeGoAhead **/ - PolkadotPrimitivesV6UpgradeGoAhead: { + PolkadotPrimitivesV7UpgradeGoAhead: { _enum: ['Abort', 'GoAhead'] }, /** @@ -1748,21 +1748,21 @@ export default { CumulusPalletParachainSystemUnincludedSegmentSegmentTracker: { usedBandwidth: 'CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth', hrmpWatermark: 'Option', - consumedGoAheadSignal: 'Option' + consumedGoAheadSignal: 'Option' }, /** - * Lookup178: polkadot_primitives::v6::PersistedValidationData + * Lookup178: polkadot_primitives::v7::PersistedValidationData **/ - PolkadotPrimitivesV6PersistedValidationData: { + PolkadotPrimitivesV7PersistedValidationData: { parentHead: 'Bytes', relayParentNumber: 'u32', relayParentStorageRoot: 'H256', maxPovSize: 'u32' }, /** - * Lookup181: polkadot_primitives::v6::UpgradeRestriction + * Lookup181: polkadot_primitives::v7::UpgradeRestriction **/ - PolkadotPrimitivesV6UpgradeRestriction: { + PolkadotPrimitivesV7UpgradeRestriction: { _enum: ['Present'] }, /** @@ -1777,8 +1777,8 @@ export default { CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: { dmqMqcHead: 'H256', relayDispatchQueueRemainingCapacity: 'CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity', - ingressChannels: 'Vec<(u32,PolkadotPrimitivesV6AbridgedHrmpChannel)>', - egressChannels: 'Vec<(u32,PolkadotPrimitivesV6AbridgedHrmpChannel)>' + ingressChannels: 'Vec<(u32,PolkadotPrimitivesV7AbridgedHrmpChannel)>', + egressChannels: 'Vec<(u32,PolkadotPrimitivesV7AbridgedHrmpChannel)>' }, /** * Lookup185: cumulus_pallet_parachain_system::relay_state_snapshot::RelayDispatchQueueRemainingCapacity @@ -1788,9 +1788,9 @@ export default { remainingSize: 'u32' }, /** - * Lookup188: polkadot_primitives::v6::AbridgedHrmpChannel + * Lookup188: polkadot_primitives::v7::AbridgedHrmpChannel **/ - PolkadotPrimitivesV6AbridgedHrmpChannel: { + PolkadotPrimitivesV7AbridgedHrmpChannel: { maxCapacity: 'u32', maxTotalSize: 'u32', maxMessageSize: 'u32', @@ -1799,9 +1799,9 @@ export default { mqcHead: 'Option' }, /** - * Lookup189: polkadot_primitives::v6::AbridgedHostConfiguration + * Lookup189: polkadot_primitives::v7::AbridgedHostConfiguration **/ - PolkadotPrimitivesV6AbridgedHostConfiguration: { + PolkadotPrimitivesV7AbridgedHostConfiguration: { maxCodeSize: 'u32', maxHeadDataSize: 'u32', maxUpwardQueueCount: 'u32', @@ -1811,12 +1811,12 @@ export default { hrmpMaxMessageNumPerCandidate: 'u32', validationUpgradeCooldown: 'u32', validationUpgradeDelay: 'u32', - asyncBackingParams: 'PolkadotPrimitivesV6AsyncBackingAsyncBackingParams' + asyncBackingParams: 'PolkadotPrimitivesV7AsyncBackingAsyncBackingParams' }, /** - * Lookup190: polkadot_primitives::v6::async_backing::AsyncBackingParams + * Lookup190: polkadot_primitives::v7::async_backing::AsyncBackingParams **/ - PolkadotPrimitivesV6AsyncBackingAsyncBackingParams: { + PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: { maxCandidateDepth: 'u32', allowedAncestryLen: 'u32' }, @@ -1851,7 +1851,7 @@ export default { * Lookup199: cumulus_primitives_parachain_inherent::ParachainInherentData **/ CumulusPrimitivesParachainInherentParachainInherentData: { - validationData: 'PolkadotPrimitivesV6PersistedValidationData', + validationData: 'PolkadotPrimitivesV7PersistedValidationData', relayChainState: 'SpTrieStorageProof', downwardMessages: 'Vec', horizontalMessages: 'BTreeMap>' @@ -2103,13 +2103,9 @@ export default { /** * Lookup237: sp_consensus_aura::sr25519::app_sr25519::Public **/ - SpConsensusAuraSr25519AppSr25519Public: 'SpCoreSr25519Public', + SpConsensusAuraSr25519AppSr25519Public: '[u8;32]', /** - * Lookup238: sp_core::sr25519::Public - **/ - SpCoreSr25519Public: '[u8;32]', - /** - * Lookup239: cumulus_pallet_xcmp_queue::pallet::Call + * Lookup238: cumulus_pallet_xcmp_queue::pallet::Call **/ CumulusPalletXcmpQueueCall: { _enum: { @@ -2137,7 +2133,7 @@ export default { } }, /** - * Lookup240: pallet_xcm::pallet::Call + * Lookup239: pallet_xcm::pallet::Call **/ PalletXcmCall: { _enum: { @@ -2196,12 +2192,24 @@ export default { beneficiary: 'XcmVersionedLocation', assets: 'XcmVersionedAssets', feeAssetItem: 'u32', - weightLimit: 'XcmV3WeightLimit' + weightLimit: 'XcmV3WeightLimit', + }, + claim_assets: { + assets: 'XcmVersionedAssets', + beneficiary: 'XcmVersionedLocation', + }, + execute_blob: { + encodedMessage: 'Bytes', + maxWeight: 'SpWeightsWeightV2Weight', + }, + send_blob: { + dest: 'XcmVersionedLocation', + encodedMessage: 'Bytes' } } }, /** - * Lookup241: xcm::VersionedXcm + * Lookup240: xcm::VersionedXcm **/ XcmVersionedXcm: { _enum: { @@ -2213,11 +2221,11 @@ export default { } }, /** - * Lookup242: xcm::v2::Xcm + * Lookup241: xcm::v2::Xcm **/ XcmV2Xcm: 'Vec', /** - * Lookup244: xcm::v2::Instruction + * Lookup243: xcm::v2::Instruction **/ XcmV2Instruction: { _enum: { @@ -2315,7 +2323,7 @@ export default { } }, /** - * Lookup245: xcm::v2::Response + * Lookup244: xcm::v2::Response **/ XcmV2Response: { _enum: { @@ -2326,7 +2334,7 @@ export default { } }, /** - * Lookup248: xcm::v2::traits::Error + * Lookup247: xcm::v2::traits::Error **/ XcmV2TraitsError: { _enum: { @@ -2359,7 +2367,7 @@ export default { } }, /** - * Lookup249: xcm::v2::multiasset::MultiAssetFilter + * Lookup248: xcm::v2::multiasset::MultiAssetFilter **/ XcmV2MultiassetMultiAssetFilter: { _enum: { @@ -2368,7 +2376,7 @@ export default { } }, /** - * Lookup250: xcm::v2::multiasset::WildMultiAsset + * Lookup249: xcm::v2::multiasset::WildMultiAsset **/ XcmV2MultiassetWildMultiAsset: { _enum: { @@ -2380,13 +2388,13 @@ export default { } }, /** - * Lookup251: xcm::v2::multiasset::WildFungibility + * Lookup250: xcm::v2::multiasset::WildFungibility **/ XcmV2MultiassetWildFungibility: { _enum: ['Fungible', 'NonFungible'] }, /** - * Lookup252: xcm::v2::WeightLimit + * Lookup251: xcm::v2::WeightLimit **/ XcmV2WeightLimit: { _enum: { @@ -2395,11 +2403,11 @@ export default { } }, /** - * Lookup253: xcm::v3::Xcm + * Lookup252: xcm::v3::Xcm **/ XcmV3Xcm: 'Vec', /** - * Lookup255: xcm::v3::Instruction + * Lookup254: xcm::v3::Instruction **/ XcmV3Instruction: { _enum: { @@ -2541,7 +2549,7 @@ export default { } }, /** - * Lookup256: xcm::v3::Response + * Lookup255: xcm::v3::Response **/ XcmV3Response: { _enum: { @@ -2554,7 +2562,7 @@ export default { } }, /** - * Lookup258: xcm::v3::PalletInfo + * Lookup257: xcm::v3::PalletInfo **/ XcmV3PalletInfo: { index: 'Compact', @@ -2565,7 +2573,7 @@ export default { patch: 'Compact' }, /** - * Lookup262: xcm::v3::QueryResponseInfo + * Lookup261: xcm::v3::QueryResponseInfo **/ XcmV3QueryResponseInfo: { destination: 'StagingXcmV3MultiLocation', @@ -2573,7 +2581,7 @@ export default { maxWeight: 'SpWeightsWeightV2Weight' }, /** - * Lookup263: xcm::v3::multiasset::MultiAssetFilter + * Lookup262: xcm::v3::multiasset::MultiAssetFilter **/ XcmV3MultiassetMultiAssetFilter: { _enum: { @@ -2582,7 +2590,7 @@ export default { } }, /** - * Lookup264: xcm::v3::multiasset::WildMultiAsset + * Lookup263: xcm::v3::multiasset::WildMultiAsset **/ XcmV3MultiassetWildMultiAsset: { _enum: { @@ -2600,7 +2608,7 @@ export default { } }, /** - * Lookup265: xcm::v3::multiasset::WildFungibility + * Lookup264: xcm::v3::multiasset::WildFungibility **/ XcmV3MultiassetWildFungibility: { _enum: ['Fungible', 'NonFungible'] @@ -3419,7 +3427,7 @@ export default { * Lookup382: pallet_xcm::pallet::Error **/ PalletXcmError: { - _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'CannotCheckOutTeleport', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse', 'InvalidAssetNotConcrete', 'InvalidAssetUnknownReserve', 'InvalidAssetUnsupportedReserve', 'TooManyReserves', 'LocalExecutionIncomplete'] + _enum: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'CannotCheckOutTeleport', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse', 'InvalidAssetNotConcrete', 'InvalidAssetUnknownReserve', 'InvalidAssetUnsupportedReserve', 'TooManyReserves', 'LocalExecutionIncomplete', 'UnableToDecode', 'XcmTooLarge'] }, /** * Lookup383: pallet_message_queue::BookState @@ -3478,7 +3486,7 @@ export default { _enum: ['NotVesting', 'AtMaxVestingSchedules', 'AmountLow', 'ScheduleIndexOutOfBounds', 'InvalidScheduleParams'] }, /** - * Lookup395: pallet_logion_loc::LegalOfficerCase + * Lookup395: pallet_logion_loc::LegalOfficerCase **/ PalletLogionLocLegalOfficerCase: { owner: 'AccountId32', @@ -3502,17 +3510,17 @@ export default { imported: 'bool' }, /** - * Lookup396: logion_runtime::MaxLocMetadata + * Lookup396: logion_runtime::configs::logion_config::MaxLocMetadata **/ - LogionRuntimeMaxLocMetadata: 'Null', + LogionRuntimeConfigsLogionConfigMaxLocMetadata: 'Null', /** - * Lookup397: logion_runtime::MaxLocFiles + * Lookup397: logion_runtime::configs::logion_config::MaxLocFiles **/ - LogionRuntimeMaxLocFiles: 'Null', + LogionRuntimeConfigsLogionConfigMaxLocFiles: 'Null', /** - * Lookup398: logion_runtime::MaxLocLinks + * Lookup398: logion_runtime::configs::logion_config::MaxLocLinks **/ - LogionRuntimeMaxLocLinks: 'Null', + LogionRuntimeConfigsLogionConfigMaxLocLinks: 'Null', /** * Lookup405: pallet_logion_loc::CollectionItem, S>, bounded_collections::bounded_vec::BoundedVec, S>> **/ @@ -3563,7 +3571,7 @@ export default { _enum: ['AlreadyExists', 'NotFound', 'Unauthorized', 'CannotMutate', 'AlreadyClosed', 'LinkedLocNotFound', 'ReplacerLocNotFound', 'AlreadyVoid', 'ReplacerLocAlreadyVoid', 'ReplacerLocAlreadyReplacing', 'CannotMutateVoid', 'UnexpectedRequester', 'ReplacerLocWrongType', 'InvalidSubmitter', 'CollectionHasNoLimit', 'WrongCollectionLoc', 'CollectionItemAlreadyExists', 'CollectionItemTooMuchData', 'CollectionLimitsReached', 'MetadataItemInvalid', 'FileInvalid', 'LocLinkInvalid', 'CannotUpload', 'MustUpload', 'DuplicateFile', 'MissingToken', 'MissingFiles', 'TermsAndConditionsLocNotFound', 'TermsAndConditionsLocNotClosed', 'TermsAndConditionsLocVoid', 'DuplicateLocFile', 'DuplicateLocMetadata', 'DuplicateLocLink', 'TokensRecordTooMuchData', 'TokensRecordAlreadyExists', 'CannotAddRecord', 'InvalidIdentityLoc', 'AlreadyNominated', 'NotNominated', 'CannotSubmit', 'InsufficientFunds', 'AlreadyUsed', 'CannotLinkToSponsorship', 'ItemNotFound', 'ItemAlreadyAcknowledged', 'CannotCloseUnacknowledgedByOwner', 'BadTokenIssuance', 'CannotCloseUnacknowledgedByVerifiedIssuer', 'AccountNotIdentified', 'LocMetadataTooMuchData', 'LocFilesTooMuchData', 'LocLinksTooMuchData', 'CollectionItemFilesTooMuchData', 'CollectionItemTCsTooMuchData', 'AccountLocsTooMuchData'] }, /** - * Lookup417: pallet_lo_authority_list::LegalOfficerData + * Lookup417: pallet_lo_authority_list::LegalOfficerData **/ PalletLoAuthorityListLegalOfficerData: { _enum: { @@ -3572,15 +3580,15 @@ export default { } }, /** - * Lookup418: logion_runtime::MaxPeerIdLength + * Lookup418: logion_runtime::configs::logion_config::MaxPeerIdLength **/ - LogionRuntimeMaxPeerIdLength: 'Null', + LogionRuntimeConfigsLogionConfigMaxPeerIdLength: 'Null', /** - * Lookup419: logion_runtime::MaxBaseUrlLen + * Lookup419: logion_runtime::configs::logion_config::MaxBaseUrlLen **/ - LogionRuntimeMaxBaseUrlLen: 'Null', + LogionRuntimeConfigsLogionConfigMaxBaseUrlLen: 'Null', /** - * Lookup420: pallet_lo_authority_list::HostData + * Lookup420: pallet_lo_authority_list::HostData **/ PalletLoAuthorityListHostData: { nodeId: 'Option', @@ -3608,16 +3616,16 @@ export default { _enum: ['AlreadyExists', 'NotFound', 'PeerIdAlreadyInUse', 'HostHasGuest', 'GuestOfGuest', 'HostNotFound', 'HostCannotConvert', 'GuestCannotUpdate', 'CannotChangeRegion', 'TooManyNodes', 'BaseUrlTooLong', 'PeerIdTooLong'] }, /** - * Lookup432: pallet_logion_vote::Vote + * Lookup432: pallet_logion_vote::Vote **/ PalletLogionVoteVote: { locId: 'u128', ballots: 'Vec' }, /** - * Lookup433: logion_runtime::MaxBallots + * Lookup433: logion_runtime::configs::logion_config::MaxBallots **/ - LogionRuntimeMaxBallots: 'Null', + LogionRuntimeConfigsLogionConfigMaxBallots: 'Null', /** * Lookup436: pallet_logion_vote::pallet::Error **/ @@ -3679,53 +3687,45 @@ export default { **/ SpRuntimeMultiSignature: { _enum: { - Ed25519: 'SpCoreEd25519Signature', - Sr25519: 'SpCoreSr25519Signature', - Ecdsa: 'SpCoreEcdsaSignature' + Ed25519: '[u8;64]', + Sr25519: '[u8;64]', + Ecdsa: '[u8;65]' } }, /** - * Lookup449: sp_core::ed25519::Signature - **/ - SpCoreEd25519Signature: '[u8;64]', - /** - * Lookup451: sp_core::sr25519::Signature - **/ - SpCoreSr25519Signature: '[u8;64]', - /** - * Lookup452: sp_core::ecdsa::Signature - **/ - SpCoreEcdsaSignature: '[u8;65]', - /** - * Lookup455: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender + * Lookup452: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender **/ FrameSystemExtensionsCheckNonZeroSender: 'Null', /** - * Lookup456: frame_system::extensions::check_spec_version::CheckSpecVersion + * Lookup453: frame_system::extensions::check_spec_version::CheckSpecVersion **/ FrameSystemExtensionsCheckSpecVersion: 'Null', /** - * Lookup457: frame_system::extensions::check_tx_version::CheckTxVersion + * Lookup454: frame_system::extensions::check_tx_version::CheckTxVersion **/ FrameSystemExtensionsCheckTxVersion: 'Null', /** - * Lookup458: frame_system::extensions::check_genesis::CheckGenesis + * Lookup455: frame_system::extensions::check_genesis::CheckGenesis **/ FrameSystemExtensionsCheckGenesis: 'Null', /** - * Lookup461: frame_system::extensions::check_nonce::CheckNonce + * Lookup458: frame_system::extensions::check_nonce::CheckNonce **/ FrameSystemExtensionsCheckNonce: 'Compact', /** - * Lookup462: frame_system::extensions::check_weight::CheckWeight + * Lookup459: frame_system::extensions::check_weight::CheckWeight **/ FrameSystemExtensionsCheckWeight: 'Null', /** - * Lookup463: pallet_transaction_payment::ChargeTransactionPayment + * Lookup460: pallet_transaction_payment::ChargeTransactionPayment **/ PalletTransactionPaymentChargeTransactionPayment: 'Compact', /** - * Lookup464: logion_runtime::Runtime + * Lookup461: cumulus_primitives_storage_weight_reclaim::StorageWeightReclaim + **/ + CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim: 'Null', + /** + * Lookup462: logion_runtime::Runtime **/ LogionRuntimeRuntime: 'Null' }; diff --git a/packages/node-api/src/interfaces/registry.ts b/packages/node-api/src/interfaces/registry.ts index 052e567a..ab0a4e99 100644 --- a/packages/node-api/src/interfaces/registry.ts +++ b/packages/node-api/src/interfaces/registry.ts @@ -5,7 +5,7 @@ // this is required to allow for ambient/previous definitions import '@polkadot/types/types/registry'; -import type { CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth, CumulusPalletXcmCall, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportDispatchRawOrigin, FrameSupportMessagesProcessMessageError, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemCodeUpgradeAuthorization, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonZeroSender, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, LogionRuntimeMaxBallots, LogionRuntimeMaxBaseUrlLen, LogionRuntimeMaxLocFiles, LogionRuntimeMaxLocLinks, LogionRuntimeMaxLocMetadata, LogionRuntimeMaxPeerIdLength, LogionRuntimeOriginCaller, LogionRuntimeRegion, LogionRuntimeRuntime, LogionRuntimeRuntimeHoldReason, LogionRuntimeSessionKeys, LogionSharedBeneficiary, PalletBalancesAccountData, PalletBalancesAdjustmentDirection, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesIdAmount, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionCandidateInfo, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletLoAuthorityListCall, PalletLoAuthorityListError, PalletLoAuthorityListEvent, PalletLoAuthorityListGuestData, PalletLoAuthorityListHostData, PalletLoAuthorityListHostDataParam, PalletLoAuthorityListLegalOfficerData, PalletLoAuthorityListLegalOfficerDataParam, PalletLoAuthorityListStorageVersion, PalletLogionLocCall, PalletLogionLocCollectionItem, PalletLogionLocCollectionItemFile, PalletLogionLocCollectionItemToken, PalletLogionLocError, PalletLogionLocEvent, PalletLogionLocFile, PalletLogionLocFileParams, PalletLogionLocItems, PalletLogionLocItemsParams, PalletLogionLocLegalOfficerCase, PalletLogionLocLocLink, PalletLogionLocLocLinkParams, PalletLogionLocLocType, PalletLogionLocLocVoidInfo, PalletLogionLocMetadataItem, PalletLogionLocMetadataItemParams, PalletLogionLocOtherAccountId, PalletLogionLocRequester, PalletLogionLocSponsorship, PalletLogionLocStorageVersion, PalletLogionLocSupportedAccountId, PalletLogionLocTermsAndConditionsElement, PalletLogionLocTokensRecord, PalletLogionLocTokensRecordFile, PalletLogionLocVerifiedIssuer, PalletLogionVaultCall, PalletLogionVaultError, PalletLogionVaultEvent, PalletLogionVoteBallot, PalletLogionVoteBallotStatus, PalletLogionVoteCall, PalletLogionVoteError, PalletLogionVoteEvent, PalletLogionVoteVote, PalletMessageQueueBookState, PalletMessageQueueCall, PalletMessageQueueError, PalletMessageQueueEvent, PalletMessageQueueNeighbours, PalletMessageQueuePage, PalletMultisigCall, PalletMultisigError, PalletMultisigEvent, PalletMultisigMultisig, PalletMultisigTimepoint, PalletRecoveryActiveRecovery, PalletRecoveryCall, PalletRecoveryError, PalletRecoveryEvent, PalletRecoveryRecoveryConfig, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTimestampCall, PalletTransactionPaymentChargeTransactionPayment, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryPaymentState, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUtilityCall, PalletUtilityError, PalletUtilityEvent, PalletVerifiedRecoveryCall, PalletVerifiedRecoveryError, PalletVerifiedRecoveryEvent, PalletVestingCall, PalletVestingError, PalletVestingEvent, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV6AbridgedHostConfiguration, PolkadotPrimitivesV6AbridgedHrmpChannel, PolkadotPrimitivesV6AsyncBackingAsyncBackingParams, PolkadotPrimitivesV6PersistedValidationData, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, SpArithmeticArithmeticError, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingParachainInfoCall, StagingXcmV3MultiLocation, StagingXcmV4Asset, StagingXcmV4AssetAssetFilter, StagingXcmV4AssetAssetId, StagingXcmV4AssetAssetInstance, StagingXcmV4AssetAssets, StagingXcmV4AssetFungibility, StagingXcmV4AssetWildAsset, StagingXcmV4AssetWildFungibility, StagingXcmV4Instruction, StagingXcmV4Junction, StagingXcmV4JunctionNetworkId, StagingXcmV4Junctions, StagingXcmV4Location, StagingXcmV4PalletInfo, StagingXcmV4QueryResponseInfo, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmDoubleEncoded, XcmV2BodyId, XcmV2BodyPart, XcmV2Instruction, XcmV2Junction, XcmV2MultiAsset, XcmV2MultiLocation, XcmV2MultiassetAssetId, XcmV2MultiassetAssetInstance, XcmV2MultiassetFungibility, XcmV2MultiassetMultiAssetFilter, XcmV2MultiassetMultiAssets, XcmV2MultiassetWildFungibility, XcmV2MultiassetWildMultiAsset, XcmV2MultilocationJunctions, XcmV2NetworkId, XcmV2OriginKind, XcmV2Response, XcmV2TraitsError, XcmV2WeightLimit, XcmV2Xcm, XcmV3Instruction, XcmV3Junction, XcmV3JunctionBodyId, XcmV3JunctionBodyPart, XcmV3JunctionNetworkId, XcmV3Junctions, XcmV3MaybeErrorCode, XcmV3MultiAsset, XcmV3MultiassetAssetId, XcmV3MultiassetAssetInstance, XcmV3MultiassetFungibility, XcmV3MultiassetMultiAssetFilter, XcmV3MultiassetMultiAssets, XcmV3MultiassetWildFungibility, XcmV3MultiassetWildMultiAsset, XcmV3PalletInfo, XcmV3QueryResponseInfo, XcmV3Response, XcmV3TraitsError, XcmV3WeightLimit, XcmV3Xcm, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedResponse, XcmVersionedXcm } from '@polkadot/types/lookup'; +import type { CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth, CumulusPalletXcmCall, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, CumulusPrimitivesParachainInherentParachainInherentData, CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim, FrameSupportDispatchDispatchClass, FrameSupportDispatchDispatchInfo, FrameSupportDispatchPays, FrameSupportDispatchPerDispatchClassU32, FrameSupportDispatchPerDispatchClassWeight, FrameSupportDispatchPerDispatchClassWeightsPerClass, FrameSupportDispatchRawOrigin, FrameSupportMessagesProcessMessageError, FrameSupportPalletId, FrameSupportTokensMiscBalanceStatus, FrameSystemAccountInfo, FrameSystemCall, FrameSystemCodeUpgradeAuthorization, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonZeroSender, FrameSystemExtensionsCheckNonce, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, LogionRuntimeConfigsLogionConfigMaxBallots, LogionRuntimeConfigsLogionConfigMaxBaseUrlLen, LogionRuntimeConfigsLogionConfigMaxLocFiles, LogionRuntimeConfigsLogionConfigMaxLocLinks, LogionRuntimeConfigsLogionConfigMaxLocMetadata, LogionRuntimeConfigsLogionConfigMaxPeerIdLength, LogionRuntimeOriginCaller, LogionRuntimeRegion, LogionRuntimeRuntime, LogionRuntimeRuntimeHoldReason, LogionRuntimeSessionKeys, LogionSharedBeneficiary, PalletBalancesAccountData, PalletBalancesAdjustmentDirection, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesIdAmount, PalletBalancesReasons, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionCandidateInfo, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletLoAuthorityListCall, PalletLoAuthorityListError, PalletLoAuthorityListEvent, PalletLoAuthorityListGuestData, PalletLoAuthorityListHostData, PalletLoAuthorityListHostDataParam, PalletLoAuthorityListLegalOfficerData, PalletLoAuthorityListLegalOfficerDataParam, PalletLoAuthorityListStorageVersion, PalletLogionLocCall, PalletLogionLocCollectionItem, PalletLogionLocCollectionItemFile, PalletLogionLocCollectionItemToken, PalletLogionLocError, PalletLogionLocEvent, PalletLogionLocFile, PalletLogionLocFileParams, PalletLogionLocItems, PalletLogionLocItemsParams, PalletLogionLocLegalOfficerCase, PalletLogionLocLocLink, PalletLogionLocLocLinkParams, PalletLogionLocLocType, PalletLogionLocLocVoidInfo, PalletLogionLocMetadataItem, PalletLogionLocMetadataItemParams, PalletLogionLocOtherAccountId, PalletLogionLocRequester, PalletLogionLocSponsorship, PalletLogionLocStorageVersion, PalletLogionLocSupportedAccountId, PalletLogionLocTermsAndConditionsElement, PalletLogionLocTokensRecord, PalletLogionLocTokensRecordFile, PalletLogionLocVerifiedIssuer, PalletLogionVaultCall, PalletLogionVaultError, PalletLogionVaultEvent, PalletLogionVoteBallot, PalletLogionVoteBallotStatus, PalletLogionVoteCall, PalletLogionVoteError, PalletLogionVoteEvent, PalletLogionVoteVote, PalletMessageQueueBookState, PalletMessageQueueCall, PalletMessageQueueError, PalletMessageQueueEvent, PalletMessageQueueNeighbours, PalletMessageQueuePage, PalletMultisigCall, PalletMultisigError, PalletMultisigEvent, PalletMultisigMultisig, PalletMultisigTimepoint, PalletRecoveryActiveRecovery, PalletRecoveryCall, PalletRecoveryError, PalletRecoveryEvent, PalletRecoveryRecoveryConfig, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTimestampCall, PalletTransactionPaymentChargeTransactionPayment, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryPaymentState, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUtilityCall, PalletUtilityError, PalletUtilityEvent, PalletVerifiedRecoveryCall, PalletVerifiedRecoveryError, PalletVerifiedRecoveryEvent, PalletVestingCall, PalletVestingError, PalletVestingEvent, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV7AbridgedHostConfiguration, PolkadotPrimitivesV7AbridgedHrmpChannel, PolkadotPrimitivesV7AsyncBackingAsyncBackingParams, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, SpArithmeticArithmeticError, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreVoid, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingParachainInfoCall, StagingXcmV3MultiLocation, StagingXcmV4Asset, StagingXcmV4AssetAssetFilter, StagingXcmV4AssetAssetId, StagingXcmV4AssetAssetInstance, StagingXcmV4AssetAssets, StagingXcmV4AssetFungibility, StagingXcmV4AssetWildAsset, StagingXcmV4AssetWildFungibility, StagingXcmV4Instruction, StagingXcmV4Junction, StagingXcmV4JunctionNetworkId, StagingXcmV4Junctions, StagingXcmV4Location, StagingXcmV4PalletInfo, StagingXcmV4QueryResponseInfo, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmDoubleEncoded, XcmV2BodyId, XcmV2BodyPart, XcmV2Instruction, XcmV2Junction, XcmV2MultiAsset, XcmV2MultiLocation, XcmV2MultiassetAssetId, XcmV2MultiassetAssetInstance, XcmV2MultiassetFungibility, XcmV2MultiassetMultiAssetFilter, XcmV2MultiassetMultiAssets, XcmV2MultiassetWildFungibility, XcmV2MultiassetWildMultiAsset, XcmV2MultilocationJunctions, XcmV2NetworkId, XcmV2OriginKind, XcmV2Response, XcmV2TraitsError, XcmV2WeightLimit, XcmV2Xcm, XcmV3Instruction, XcmV3Junction, XcmV3JunctionBodyId, XcmV3JunctionBodyPart, XcmV3JunctionNetworkId, XcmV3Junctions, XcmV3MaybeErrorCode, XcmV3MultiAsset, XcmV3MultiassetAssetId, XcmV3MultiassetAssetInstance, XcmV3MultiassetFungibility, XcmV3MultiassetMultiAssetFilter, XcmV3MultiassetMultiAssets, XcmV3MultiassetWildFungibility, XcmV3MultiassetWildMultiAsset, XcmV3PalletInfo, XcmV3QueryResponseInfo, XcmV3Response, XcmV3TraitsError, XcmV3WeightLimit, XcmV3Xcm, XcmVersionedAssetId, XcmVersionedAssets, XcmVersionedLocation, XcmVersionedResponse, XcmVersionedXcm } from '@polkadot/types/lookup'; declare module '@polkadot/types/types/registry' { interface InterfaceTypes { @@ -29,6 +29,7 @@ declare module '@polkadot/types/types/registry' { CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData; CumulusPrimitivesCoreAggregateMessageOrigin: CumulusPrimitivesCoreAggregateMessageOrigin; CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData; + CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim: CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim; FrameSupportDispatchDispatchClass: FrameSupportDispatchDispatchClass; FrameSupportDispatchDispatchInfo: FrameSupportDispatchDispatchInfo; FrameSupportDispatchPays: FrameSupportDispatchPays; @@ -56,12 +57,12 @@ declare module '@polkadot/types/types/registry' { FrameSystemLimitsBlockWeights: FrameSystemLimitsBlockWeights; FrameSystemLimitsWeightsPerClass: FrameSystemLimitsWeightsPerClass; FrameSystemPhase: FrameSystemPhase; - LogionRuntimeMaxBallots: LogionRuntimeMaxBallots; - LogionRuntimeMaxBaseUrlLen: LogionRuntimeMaxBaseUrlLen; - LogionRuntimeMaxLocFiles: LogionRuntimeMaxLocFiles; - LogionRuntimeMaxLocLinks: LogionRuntimeMaxLocLinks; - LogionRuntimeMaxLocMetadata: LogionRuntimeMaxLocMetadata; - LogionRuntimeMaxPeerIdLength: LogionRuntimeMaxPeerIdLength; + LogionRuntimeConfigsLogionConfigMaxBallots: LogionRuntimeConfigsLogionConfigMaxBallots; + LogionRuntimeConfigsLogionConfigMaxBaseUrlLen: LogionRuntimeConfigsLogionConfigMaxBaseUrlLen; + LogionRuntimeConfigsLogionConfigMaxLocFiles: LogionRuntimeConfigsLogionConfigMaxLocFiles; + LogionRuntimeConfigsLogionConfigMaxLocLinks: LogionRuntimeConfigsLogionConfigMaxLocLinks; + LogionRuntimeConfigsLogionConfigMaxLocMetadata: LogionRuntimeConfigsLogionConfigMaxLocMetadata; + LogionRuntimeConfigsLogionConfigMaxPeerIdLength: LogionRuntimeConfigsLogionConfigMaxPeerIdLength; LogionRuntimeOriginCaller: LogionRuntimeOriginCaller; LogionRuntimeRegion: LogionRuntimeRegion; LogionRuntimeRuntime: LogionRuntimeRuntime; @@ -178,19 +179,15 @@ declare module '@polkadot/types/types/registry' { PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage; PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage; PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage; - PolkadotPrimitivesV6AbridgedHostConfiguration: PolkadotPrimitivesV6AbridgedHostConfiguration; - PolkadotPrimitivesV6AbridgedHrmpChannel: PolkadotPrimitivesV6AbridgedHrmpChannel; - PolkadotPrimitivesV6AsyncBackingAsyncBackingParams: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams; - PolkadotPrimitivesV6PersistedValidationData: PolkadotPrimitivesV6PersistedValidationData; - PolkadotPrimitivesV6UpgradeGoAhead: PolkadotPrimitivesV6UpgradeGoAhead; - PolkadotPrimitivesV6UpgradeRestriction: PolkadotPrimitivesV6UpgradeRestriction; + PolkadotPrimitivesV7AbridgedHostConfiguration: PolkadotPrimitivesV7AbridgedHostConfiguration; + PolkadotPrimitivesV7AbridgedHrmpChannel: PolkadotPrimitivesV7AbridgedHrmpChannel; + PolkadotPrimitivesV7AsyncBackingAsyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams; + PolkadotPrimitivesV7PersistedValidationData: PolkadotPrimitivesV7PersistedValidationData; + PolkadotPrimitivesV7UpgradeGoAhead: PolkadotPrimitivesV7UpgradeGoAhead; + PolkadotPrimitivesV7UpgradeRestriction: PolkadotPrimitivesV7UpgradeRestriction; SpArithmeticArithmeticError: SpArithmeticArithmeticError; SpConsensusAuraSr25519AppSr25519Public: SpConsensusAuraSr25519AppSr25519Public; SpCoreCryptoKeyTypeId: SpCoreCryptoKeyTypeId; - SpCoreEcdsaSignature: SpCoreEcdsaSignature; - SpCoreEd25519Signature: SpCoreEd25519Signature; - SpCoreSr25519Public: SpCoreSr25519Public; - SpCoreSr25519Signature: SpCoreSr25519Signature; SpCoreVoid: SpCoreVoid; SpRuntimeDigest: SpRuntimeDigest; SpRuntimeDigestDigestItem: SpRuntimeDigestDigestItem; diff --git a/packages/node-api/src/interfaces/types-lookup.ts b/packages/node-api/src/interfaces/types-lookup.ts index 5bc17e1d..6d1cd112 100644 --- a/packages/node-api/src/interfaces/types-lookup.ts +++ b/packages/node-api/src/interfaces/types-lookup.ts @@ -29,25 +29,25 @@ declare module '@polkadot/types/lookup' { readonly flags: u128; } - /** @name FrameSupportDispatchPerDispatchClassWeight (8) */ + /** @name FrameSupportDispatchPerDispatchClassWeight (9) */ interface FrameSupportDispatchPerDispatchClassWeight extends Struct { readonly normal: SpWeightsWeightV2Weight; readonly operational: SpWeightsWeightV2Weight; readonly mandatory: SpWeightsWeightV2Weight; } - /** @name SpWeightsWeightV2Weight (9) */ + /** @name SpWeightsWeightV2Weight (10) */ interface SpWeightsWeightV2Weight extends Struct { readonly refTime: Compact; readonly proofSize: Compact; } - /** @name SpRuntimeDigest (14) */ + /** @name SpRuntimeDigest (15) */ interface SpRuntimeDigest extends Struct { readonly logs: Vec; } - /** @name SpRuntimeDigestDigestItem (16) */ + /** @name SpRuntimeDigestDigestItem (17) */ interface SpRuntimeDigestDigestItem extends Enum { readonly isOther: boolean; readonly asOther: Bytes; @@ -61,14 +61,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'Other' | 'Consensus' | 'Seal' | 'PreRuntime' | 'RuntimeEnvironmentUpdated'; } - /** @name FrameSystemEventRecord (19) */ + /** @name FrameSystemEventRecord (20) */ interface FrameSystemEventRecord extends Struct { readonly phase: FrameSystemPhase; readonly event: Event; readonly topics: Vec; } - /** @name FrameSystemEvent (21) */ + /** @name FrameSystemEvent (22) */ interface FrameSystemEvent extends Enum { readonly isExtrinsicSuccess: boolean; readonly asExtrinsicSuccess: { @@ -101,14 +101,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'ExtrinsicSuccess' | 'ExtrinsicFailed' | 'CodeUpdated' | 'NewAccount' | 'KilledAccount' | 'Remarked' | 'UpgradeAuthorized'; } - /** @name FrameSupportDispatchDispatchInfo (22) */ + /** @name FrameSupportDispatchDispatchInfo (23) */ interface FrameSupportDispatchDispatchInfo extends Struct { readonly weight: SpWeightsWeightV2Weight; readonly class: FrameSupportDispatchDispatchClass; readonly paysFee: FrameSupportDispatchPays; } - /** @name FrameSupportDispatchDispatchClass (23) */ + /** @name FrameSupportDispatchDispatchClass (24) */ interface FrameSupportDispatchDispatchClass extends Enum { readonly isNormal: boolean; readonly isOperational: boolean; @@ -116,14 +116,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'Normal' | 'Operational' | 'Mandatory'; } - /** @name FrameSupportDispatchPays (24) */ + /** @name FrameSupportDispatchPays (25) */ interface FrameSupportDispatchPays extends Enum { readonly isYes: boolean; readonly isNo: boolean; readonly type: 'Yes' | 'No'; } - /** @name SpRuntimeDispatchError (25) */ + /** @name SpRuntimeDispatchError (26) */ interface SpRuntimeDispatchError extends Enum { readonly isOther: boolean; readonly isCannotLookup: boolean; @@ -146,13 +146,13 @@ declare module '@polkadot/types/lookup' { readonly type: 'Other' | 'CannotLookup' | 'BadOrigin' | 'Module' | 'ConsumerRemaining' | 'NoProviders' | 'TooManyConsumers' | 'Token' | 'Arithmetic' | 'Transactional' | 'Exhausted' | 'Corruption' | 'Unavailable' | 'RootNotAllowed'; } - /** @name SpRuntimeModuleError (26) */ + /** @name SpRuntimeModuleError (27) */ interface SpRuntimeModuleError extends Struct { readonly index: u8; readonly error: U8aFixed; } - /** @name SpRuntimeTokenError (27) */ + /** @name SpRuntimeTokenError (28) */ interface SpRuntimeTokenError extends Enum { readonly isFundsUnavailable: boolean; readonly isOnlyProvider: boolean; @@ -167,7 +167,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'FundsUnavailable' | 'OnlyProvider' | 'BelowMinimum' | 'CannotCreate' | 'UnknownAsset' | 'Frozen' | 'Unsupported' | 'CannotCreateHold' | 'NotExpendable' | 'Blocked'; } - /** @name SpArithmeticArithmeticError (28) */ + /** @name SpArithmeticArithmeticError (29) */ interface SpArithmeticArithmeticError extends Enum { readonly isUnderflow: boolean; readonly isOverflow: boolean; @@ -175,7 +175,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Underflow' | 'Overflow' | 'DivisionByZero'; } - /** @name SpRuntimeTransactionalError (29) */ + /** @name SpRuntimeTransactionalError (30) */ interface SpRuntimeTransactionalError extends Enum { readonly isLimitReached: boolean; readonly isNoLayer: boolean; @@ -1879,16 +1879,17 @@ declare module '@polkadot/types/lookup' { readonly isNonDefaultComposite: boolean; readonly isNonZeroRefCount: boolean; readonly isCallFiltered: boolean; + readonly isMultiBlockMigrationsOngoing: boolean; readonly isNothingAuthorized: boolean; readonly isUnauthorized: boolean; - readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered' | 'NothingAuthorized' | 'Unauthorized'; + readonly type: 'InvalidSpecName' | 'SpecVersionNeedsToIncrease' | 'FailedToExtractRuntimeVersion' | 'NonDefaultComposite' | 'NonZeroRefCount' | 'CallFiltered' | 'MultiBlockMigrationsOngoing' | 'NothingAuthorized' | 'Unauthorized'; } /** @name CumulusPalletParachainSystemUnincludedSegmentAncestor (167) */ interface CumulusPalletParachainSystemUnincludedSegmentAncestor extends Struct { readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; readonly paraHeadHash: Option; - readonly consumedGoAheadSignal: Option; + readonly consumedGoAheadSignal: Option; } /** @name CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth (168) */ @@ -1904,8 +1905,8 @@ declare module '@polkadot/types/lookup' { readonly totalBytes: u32; } - /** @name PolkadotPrimitivesV6UpgradeGoAhead (175) */ - interface PolkadotPrimitivesV6UpgradeGoAhead extends Enum { + /** @name PolkadotPrimitivesV7UpgradeGoAhead (175) */ + interface PolkadotPrimitivesV7UpgradeGoAhead extends Enum { readonly isAbort: boolean; readonly isGoAhead: boolean; readonly type: 'Abort' | 'GoAhead'; @@ -1915,19 +1916,19 @@ declare module '@polkadot/types/lookup' { interface CumulusPalletParachainSystemUnincludedSegmentSegmentTracker extends Struct { readonly usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth; readonly hrmpWatermark: Option; - readonly consumedGoAheadSignal: Option; + readonly consumedGoAheadSignal: Option; } - /** @name PolkadotPrimitivesV6PersistedValidationData (178) */ - interface PolkadotPrimitivesV6PersistedValidationData extends Struct { + /** @name PolkadotPrimitivesV7PersistedValidationData (178) */ + interface PolkadotPrimitivesV7PersistedValidationData extends Struct { readonly parentHead: Bytes; readonly relayParentNumber: u32; readonly relayParentStorageRoot: H256; readonly maxPovSize: u32; } - /** @name PolkadotPrimitivesV6UpgradeRestriction (181) */ - interface PolkadotPrimitivesV6UpgradeRestriction extends Enum { + /** @name PolkadotPrimitivesV7UpgradeRestriction (181) */ + interface PolkadotPrimitivesV7UpgradeRestriction extends Enum { readonly isPresent: boolean; readonly type: 'Present'; } @@ -1941,8 +1942,8 @@ declare module '@polkadot/types/lookup' { interface CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot extends Struct { readonly dmqMqcHead: H256; readonly relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity; - readonly ingressChannels: Vec>; - readonly egressChannels: Vec>; + readonly ingressChannels: Vec>; + readonly egressChannels: Vec>; } /** @name CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity (185) */ @@ -1951,8 +1952,8 @@ declare module '@polkadot/types/lookup' { readonly remainingSize: u32; } - /** @name PolkadotPrimitivesV6AbridgedHrmpChannel (188) */ - interface PolkadotPrimitivesV6AbridgedHrmpChannel extends Struct { + /** @name PolkadotPrimitivesV7AbridgedHrmpChannel (188) */ + interface PolkadotPrimitivesV7AbridgedHrmpChannel extends Struct { readonly maxCapacity: u32; readonly maxTotalSize: u32; readonly maxMessageSize: u32; @@ -1961,8 +1962,8 @@ declare module '@polkadot/types/lookup' { readonly mqcHead: Option; } - /** @name PolkadotPrimitivesV6AbridgedHostConfiguration (189) */ - interface PolkadotPrimitivesV6AbridgedHostConfiguration extends Struct { + /** @name PolkadotPrimitivesV7AbridgedHostConfiguration (189) */ + interface PolkadotPrimitivesV7AbridgedHostConfiguration extends Struct { readonly maxCodeSize: u32; readonly maxHeadDataSize: u32; readonly maxUpwardQueueCount: u32; @@ -1972,11 +1973,11 @@ declare module '@polkadot/types/lookup' { readonly hrmpMaxMessageNumPerCandidate: u32; readonly validationUpgradeCooldown: u32; readonly validationUpgradeDelay: u32; - readonly asyncBackingParams: PolkadotPrimitivesV6AsyncBackingAsyncBackingParams; + readonly asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams; } - /** @name PolkadotPrimitivesV6AsyncBackingAsyncBackingParams (190) */ - interface PolkadotPrimitivesV6AsyncBackingAsyncBackingParams extends Struct { + /** @name PolkadotPrimitivesV7AsyncBackingAsyncBackingParams (190) */ + interface PolkadotPrimitivesV7AsyncBackingAsyncBackingParams extends Struct { readonly maxCandidateDepth: u32; readonly allowedAncestryLen: u32; } @@ -2011,7 +2012,7 @@ declare module '@polkadot/types/lookup' { /** @name CumulusPrimitivesParachainInherentParachainInherentData (199) */ interface CumulusPrimitivesParachainInherentParachainInherentData extends Struct { - readonly validationData: PolkadotPrimitivesV6PersistedValidationData; + readonly validationData: PolkadotPrimitivesV7PersistedValidationData; readonly relayChainState: SpTrieStorageProof; readonly downwardMessages: Vec; readonly horizontalMessages: BTreeMap>; @@ -2283,12 +2284,9 @@ declare module '@polkadot/types/lookup' { } /** @name SpConsensusAuraSr25519AppSr25519Public (237) */ - interface SpConsensusAuraSr25519AppSr25519Public extends SpCoreSr25519Public {} + interface SpConsensusAuraSr25519AppSr25519Public extends U8aFixed {} - /** @name SpCoreSr25519Public (238) */ - interface SpCoreSr25519Public extends U8aFixed {} - - /** @name CumulusPalletXcmpQueueCall (239) */ + /** @name CumulusPalletXcmpQueueCall (238) */ interface CumulusPalletXcmpQueueCall extends Enum { readonly isSuspendXcmExecution: boolean; readonly isResumeXcmExecution: boolean; @@ -2307,7 +2305,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'SuspendXcmExecution' | 'ResumeXcmExecution' | 'UpdateSuspendThreshold' | 'UpdateDropThreshold' | 'UpdateResumeThreshold'; } - /** @name PalletXcmCall (240) */ + /** @name PalletXcmCall (239) */ interface PalletXcmCall extends Enum { readonly isSend: boolean; readonly asSend: { @@ -2378,10 +2376,25 @@ declare module '@polkadot/types/lookup' { readonly feeAssetItem: u32; readonly weightLimit: XcmV3WeightLimit; } & Struct; - readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets' | 'ForceSuspension' | 'TransferAssets'; + readonly isClaimAssets: boolean; + readonly asClaimAssets: { + readonly assets: XcmVersionedAssets; + readonly beneficiary: XcmVersionedLocation; + } & Struct; + readonly isExecuteBlob: boolean; + readonly asExecuteBlob: { + readonly encodedMessage: Bytes; + readonly maxWeight: SpWeightsWeightV2Weight; + } & Struct; + readonly isSendBlob: boolean; + readonly asSendBlob: { + readonly dest: XcmVersionedLocation; + readonly encodedMessage: Bytes; + } & Struct; + readonly type: 'Send' | 'TeleportAssets' | 'ReserveTransferAssets' | 'Execute' | 'ForceXcmVersion' | 'ForceDefaultXcmVersion' | 'ForceSubscribeVersionNotify' | 'ForceUnsubscribeVersionNotify' | 'LimitedReserveTransferAssets' | 'LimitedTeleportAssets' | 'ForceSuspension' | 'TransferAssets' | 'ClaimAssets' | 'ExecuteBlob' | 'SendBlob'; } - /** @name XcmVersionedXcm (241) */ + /** @name XcmVersionedXcm (240) */ interface XcmVersionedXcm extends Enum { readonly isV2: boolean; readonly asV2: XcmV2Xcm; @@ -2392,10 +2405,10 @@ declare module '@polkadot/types/lookup' { readonly type: 'V2' | 'V3' | 'V4'; } - /** @name XcmV2Xcm (242) */ + /** @name XcmV2Xcm (241) */ interface XcmV2Xcm extends Vec {} - /** @name XcmV2Instruction (244) */ + /** @name XcmV2Instruction (243) */ interface XcmV2Instruction extends Enum { readonly isWithdrawAsset: boolean; readonly asWithdrawAsset: XcmV2MultiassetMultiAssets; @@ -2515,7 +2528,7 @@ declare module '@polkadot/types/lookup' { 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 XcmV2Response (245) */ + /** @name XcmV2Response (244) */ interface XcmV2Response extends Enum { readonly isNull: boolean; readonly isAssets: boolean; @@ -2527,7 +2540,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version'; } - /** @name XcmV2TraitsError (248) */ + /** @name XcmV2TraitsError (247) */ interface XcmV2TraitsError extends Enum { readonly isOverflow: boolean; readonly isUnimplemented: boolean; @@ -2560,7 +2573,7 @@ declare module '@polkadot/types/lookup' { 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 XcmV2MultiassetMultiAssetFilter (249) */ + /** @name XcmV2MultiassetMultiAssetFilter (248) */ interface XcmV2MultiassetMultiAssetFilter extends Enum { readonly isDefinite: boolean; readonly asDefinite: XcmV2MultiassetMultiAssets; @@ -2569,7 +2582,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Definite' | 'Wild'; } - /** @name XcmV2MultiassetWildMultiAsset (250) */ + /** @name XcmV2MultiassetWildMultiAsset (249) */ interface XcmV2MultiassetWildMultiAsset extends Enum { readonly isAll: boolean; readonly isAllOf: boolean; @@ -2580,14 +2593,14 @@ declare module '@polkadot/types/lookup' { readonly type: 'All' | 'AllOf'; } - /** @name XcmV2MultiassetWildFungibility (251) */ + /** @name XcmV2MultiassetWildFungibility (250) */ interface XcmV2MultiassetWildFungibility extends Enum { readonly isFungible: boolean; readonly isNonFungible: boolean; readonly type: 'Fungible' | 'NonFungible'; } - /** @name XcmV2WeightLimit (252) */ + /** @name XcmV2WeightLimit (251) */ interface XcmV2WeightLimit extends Enum { readonly isUnlimited: boolean; readonly isLimited: boolean; @@ -2595,10 +2608,10 @@ declare module '@polkadot/types/lookup' { readonly type: 'Unlimited' | 'Limited'; } - /** @name XcmV3Xcm (253) */ + /** @name XcmV3Xcm (252) */ interface XcmV3Xcm extends Vec {} - /** @name XcmV3Instruction (255) */ + /** @name XcmV3Instruction (254) */ interface XcmV3Instruction extends Enum { readonly isWithdrawAsset: boolean; readonly asWithdrawAsset: XcmV3MultiassetMultiAssets; @@ -2780,7 +2793,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'ReportHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap' | 'SubscribeVersion' | 'UnsubscribeVersion' | 'BurnAsset' | 'ExpectAsset' | 'ExpectOrigin' | 'ExpectError' | 'ExpectTransactStatus' | 'QueryPallet' | 'ExpectPallet' | 'ReportTransactStatus' | 'ClearTransactStatus' | 'UniversalOrigin' | 'ExportMessage' | 'LockAsset' | 'UnlockAsset' | 'NoteUnlockable' | 'RequestUnlock' | 'SetFeesMode' | 'SetTopic' | 'ClearTopic' | 'AliasOrigin' | 'UnpaidExecution'; } - /** @name XcmV3Response (256) */ + /** @name XcmV3Response (255) */ interface XcmV3Response extends Enum { readonly isNull: boolean; readonly isAssets: boolean; @@ -2796,7 +2809,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Null' | 'Assets' | 'ExecutionResult' | 'Version' | 'PalletsInfo' | 'DispatchResult'; } - /** @name XcmV3PalletInfo (258) */ + /** @name XcmV3PalletInfo (257) */ interface XcmV3PalletInfo extends Struct { readonly index: Compact; readonly name: Bytes; @@ -2806,14 +2819,14 @@ declare module '@polkadot/types/lookup' { readonly patch: Compact; } - /** @name XcmV3QueryResponseInfo (262) */ + /** @name XcmV3QueryResponseInfo (261) */ interface XcmV3QueryResponseInfo extends Struct { readonly destination: StagingXcmV3MultiLocation; readonly queryId: Compact; readonly maxWeight: SpWeightsWeightV2Weight; } - /** @name XcmV3MultiassetMultiAssetFilter (263) */ + /** @name XcmV3MultiassetMultiAssetFilter (262) */ interface XcmV3MultiassetMultiAssetFilter extends Enum { readonly isDefinite: boolean; readonly asDefinite: XcmV3MultiassetMultiAssets; @@ -2822,7 +2835,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'Definite' | 'Wild'; } - /** @name XcmV3MultiassetWildMultiAsset (264) */ + /** @name XcmV3MultiassetWildMultiAsset (263) */ interface XcmV3MultiassetWildMultiAsset extends Enum { readonly isAll: boolean; readonly isAllOf: boolean; @@ -2841,7 +2854,7 @@ declare module '@polkadot/types/lookup' { readonly type: 'All' | 'AllOf' | 'AllCounted' | 'AllOfCounted'; } - /** @name XcmV3MultiassetWildFungibility (265) */ + /** @name XcmV3MultiassetWildFungibility (264) */ interface XcmV3MultiassetWildFungibility extends Enum { readonly isFungible: boolean; readonly isNonFungible: boolean; @@ -3685,7 +3698,9 @@ declare module '@polkadot/types/lookup' { readonly isInvalidAssetUnsupportedReserve: boolean; readonly isTooManyReserves: boolean; readonly isLocalExecutionIncomplete: boolean; - readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'CannotCheckOutTeleport' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse' | 'InvalidAssetNotConcrete' | 'InvalidAssetUnknownReserve' | 'InvalidAssetUnsupportedReserve' | 'TooManyReserves' | 'LocalExecutionIncomplete'; + readonly isUnableToDecode: boolean; + readonly isXcmTooLarge: boolean; + readonly type: 'Unreachable' | 'SendFailure' | 'Filtered' | 'UnweighableMessage' | 'DestinationNotInvertible' | 'Empty' | 'CannotReanchor' | 'TooManyAssets' | 'InvalidOrigin' | 'BadVersion' | 'BadLocation' | 'NoSubscription' | 'AlreadySubscribed' | 'CannotCheckOutTeleport' | 'LowBalance' | 'TooManyLocks' | 'AccountNotSovereign' | 'FeesNotMet' | 'LockNotFound' | 'InUse' | 'InvalidAssetNotConcrete' | 'InvalidAssetUnknownReserve' | 'InvalidAssetUnsupportedReserve' | 'TooManyReserves' | 'LocalExecutionIncomplete' | 'UnableToDecode' | 'XcmTooLarge'; } /** @name PalletMessageQueueBookState (383) */ @@ -3774,14 +3789,14 @@ declare module '@polkadot/types/lookup' { readonly imported: bool; } - /** @name LogionRuntimeMaxLocMetadata (396) */ - type LogionRuntimeMaxLocMetadata = Null; + /** @name LogionRuntimeConfigsLogionConfigMaxLocMetadata (396) */ + type LogionRuntimeConfigsLogionConfigMaxLocMetadata = Null; - /** @name LogionRuntimeMaxLocFiles (397) */ - type LogionRuntimeMaxLocFiles = Null; + /** @name LogionRuntimeConfigsLogionConfigMaxLocFiles (397) */ + type LogionRuntimeConfigsLogionConfigMaxLocFiles = Null; - /** @name LogionRuntimeMaxLocLinks (398) */ - type LogionRuntimeMaxLocLinks = Null; + /** @name LogionRuntimeConfigsLogionConfigMaxLocLinks (398) */ + type LogionRuntimeConfigsLogionConfigMaxLocLinks = Null; /** @name PalletLogionLocCollectionItem (405) */ interface PalletLogionLocCollectionItem extends Struct { @@ -3913,11 +3928,11 @@ declare module '@polkadot/types/lookup' { readonly type: 'Host' | 'Guest'; } - /** @name LogionRuntimeMaxPeerIdLength (418) */ - type LogionRuntimeMaxPeerIdLength = Null; + /** @name LogionRuntimeConfigsLogionConfigMaxPeerIdLength (418) */ + type LogionRuntimeConfigsLogionConfigMaxPeerIdLength = Null; - /** @name LogionRuntimeMaxBaseUrlLen (419) */ - type LogionRuntimeMaxBaseUrlLen = Null; + /** @name LogionRuntimeConfigsLogionConfigMaxBaseUrlLen (419) */ + type LogionRuntimeConfigsLogionConfigMaxBaseUrlLen = Null; /** @name PalletLoAuthorityListHostData (420) */ interface PalletLoAuthorityListHostData extends Struct { @@ -3966,8 +3981,8 @@ declare module '@polkadot/types/lookup' { readonly ballots: Vec; } - /** @name LogionRuntimeMaxBallots (433) */ - type LogionRuntimeMaxBallots = Null; + /** @name LogionRuntimeConfigsLogionConfigMaxBallots (433) */ + type LogionRuntimeConfigsLogionConfigMaxBallots = Null; /** @name PalletLogionVoteError (436) */ interface PalletLogionVoteError extends Enum { @@ -4059,45 +4074,39 @@ declare module '@polkadot/types/lookup' { /** @name SpRuntimeMultiSignature (448) */ interface SpRuntimeMultiSignature extends Enum { readonly isEd25519: boolean; - readonly asEd25519: SpCoreEd25519Signature; + readonly asEd25519: U8aFixed; readonly isSr25519: boolean; - readonly asSr25519: SpCoreSr25519Signature; + readonly asSr25519: U8aFixed; readonly isEcdsa: boolean; - readonly asEcdsa: SpCoreEcdsaSignature; + readonly asEcdsa: U8aFixed; readonly type: 'Ed25519' | 'Sr25519' | 'Ecdsa'; } - /** @name SpCoreEd25519Signature (449) */ - interface SpCoreEd25519Signature extends U8aFixed {} - - /** @name SpCoreSr25519Signature (451) */ - interface SpCoreSr25519Signature extends U8aFixed {} - - /** @name SpCoreEcdsaSignature (452) */ - interface SpCoreEcdsaSignature extends U8aFixed {} - - /** @name FrameSystemExtensionsCheckNonZeroSender (455) */ + /** @name FrameSystemExtensionsCheckNonZeroSender (452) */ type FrameSystemExtensionsCheckNonZeroSender = Null; - /** @name FrameSystemExtensionsCheckSpecVersion (456) */ + /** @name FrameSystemExtensionsCheckSpecVersion (453) */ type FrameSystemExtensionsCheckSpecVersion = Null; - /** @name FrameSystemExtensionsCheckTxVersion (457) */ + /** @name FrameSystemExtensionsCheckTxVersion (454) */ type FrameSystemExtensionsCheckTxVersion = Null; - /** @name FrameSystemExtensionsCheckGenesis (458) */ + /** @name FrameSystemExtensionsCheckGenesis (455) */ type FrameSystemExtensionsCheckGenesis = Null; - /** @name FrameSystemExtensionsCheckNonce (461) */ + /** @name FrameSystemExtensionsCheckNonce (458) */ interface FrameSystemExtensionsCheckNonce extends Compact {} - /** @name FrameSystemExtensionsCheckWeight (462) */ + /** @name FrameSystemExtensionsCheckWeight (459) */ type FrameSystemExtensionsCheckWeight = Null; - /** @name PalletTransactionPaymentChargeTransactionPayment (463) */ + /** @name PalletTransactionPaymentChargeTransactionPayment (460) */ interface PalletTransactionPaymentChargeTransactionPayment extends Compact {} - /** @name LogionRuntimeRuntime (464) */ + /** @name CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim (461) */ + type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = Null; + + /** @name LogionRuntimeRuntime (462) */ type LogionRuntimeRuntime = Null; } // declare module