Update AssetHub Polkadot types to 1.6.0 (#6174)
* Update AssetHub Polkadot types to 1.6.0 * Fix tests
This commit is contained in:
@@ -8,7 +8,7 @@ import '@polkadot/api-base/types/consts';
|
||||
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
||||
import type { Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { Codec } from '@polkadot/types-codec/types';
|
||||
import type { Permill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId32, Permill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Location } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
@@ -134,6 +134,37 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
collatorSelection: {
|
||||
kickThreshold: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of candidates that we should have.
|
||||
*
|
||||
* This does not take into account the invulnerables.
|
||||
**/
|
||||
maxCandidates: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of invulnerables.
|
||||
**/
|
||||
maxInvulnerables: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Minimum number eligible collators. Should always be greater than zero. This includes
|
||||
* Invulnerable collators. This ensures that there will always be one collator who can
|
||||
* produce a block.
|
||||
**/
|
||||
minEligibleCollators: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Gets this pallet's derived pot account.
|
||||
**/
|
||||
potAccount: AccountId32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Account Identifier from which the internal Pot is generated.
|
||||
**/
|
||||
potId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
foreignAssets: {
|
||||
/**
|
||||
* The amount of funds that must be reserved when creating a new approval.
|
||||
@@ -307,6 +338,17 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
polkadotXcm: {
|
||||
/**
|
||||
* The latest supported version that we advertise. Generally just set it to
|
||||
* `pallet_xcm::CurrentXcmVersion`.
|
||||
**/
|
||||
advertisedXcmVersion: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
poolAssets: {
|
||||
/**
|
||||
* The amount of funds that must be reserved when creating a new approval.
|
||||
|
||||
@@ -141,6 +141,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Callback action resulted in error
|
||||
**/
|
||||
CallbackFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
||||
**/
|
||||
ContainsFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
||||
**/
|
||||
ContainsHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The origin account is frozen.
|
||||
**/
|
||||
@@ -362,6 +370,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Callback action resulted in error
|
||||
**/
|
||||
CallbackFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
||||
**/
|
||||
ContainsFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
||||
**/
|
||||
ContainsHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The origin account is frozen.
|
||||
**/
|
||||
@@ -496,7 +512,7 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NoApprovalsNeeded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Multisig operation not found when attempting to cancel.
|
||||
* Multisig operation not found in storage.
|
||||
**/
|
||||
NotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -504,7 +520,8 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
NoTimepoint: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Only the account that originally created the multisig is able to cancel it.
|
||||
* Only the account that originally created the multisig is able to cancel it or update
|
||||
* its deposits.
|
||||
**/
|
||||
NotOwner: AugmentedError<ApiType>;
|
||||
/**
|
||||
@@ -727,10 +744,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The inherent which supplies the host configuration did not run this block.
|
||||
**/
|
||||
HostConfigurationNotAvailable: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No code upgrade has been authorized.
|
||||
**/
|
||||
NothingAuthorized: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No validation function upgrade is currently scheduled.
|
||||
**/
|
||||
@@ -748,10 +761,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* willing to run.
|
||||
**/
|
||||
TooBig: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The given code upgrade has not been authorized.
|
||||
**/
|
||||
Unauthorized: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The inherent which supplies the validation data did not run this block.
|
||||
**/
|
||||
@@ -766,6 +775,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The given account is not an identifiable sovereign account for any location.
|
||||
**/
|
||||
AccountNotSovereign: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The alias to remove authorization for was not found.
|
||||
**/
|
||||
AliasNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The location is invalid since it already has a subscription from us.
|
||||
**/
|
||||
@@ -795,6 +808,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The assets to be sent are empty.
|
||||
**/
|
||||
Empty: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Expiry block number is in the past.
|
||||
**/
|
||||
ExpiresInPast: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The operation required fees to be paid which the initiator could not meet.
|
||||
**/
|
||||
@@ -844,6 +861,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Too many assets have been attempted for transfer.
|
||||
**/
|
||||
TooManyAssets: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Too many locations authorized to alias origin.
|
||||
**/
|
||||
TooManyAuthorizedAliases: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset owner has too many locks on the asset.
|
||||
**/
|
||||
@@ -895,6 +916,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Callback action resulted in error
|
||||
**/
|
||||
CallbackFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
||||
**/
|
||||
ContainsFreezes: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
||||
**/
|
||||
ContainsHolds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The origin account is frozen.
|
||||
**/
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, Permill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AssetHubPolkadotRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { AssetHubPolkadotRuntimeProxyType, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportMessagesProcessMessageError, FrameSupportTokensMiscBalanceStatus, FrameSystemDispatchEventInfo, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletProxyDepositKind, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpRuntimeDispatchError, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5AssetAssets, StagingXcmV5Location, StagingXcmV5Response, StagingXcmV5TraitsOutcome, StagingXcmV5Xcm, XcmV3TraitsSendError, XcmV5TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -470,6 +470,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
multisig: {
|
||||
/**
|
||||
* The deposit for a multisig operation has been updated/poked.
|
||||
**/
|
||||
DepositPoked: AugmentedEvent<ApiType, [who: AccountId32, callHash: U8aFixed, oldDeposit: u128, newDeposit: u128], { who: AccountId32, callHash: U8aFixed, oldDeposit: u128, newDeposit: u128 }>;
|
||||
/**
|
||||
* A multisig operation has been approved by someone.
|
||||
**/
|
||||
@@ -683,6 +687,19 @@ declare module '@polkadot/api-base/types/events' {
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
polkadotXcm: {
|
||||
/**
|
||||
* `target` removed alias authorization for `aliaser`.
|
||||
**/
|
||||
AliasAuthorizationRemoved: AugmentedEvent<ApiType, [aliaser: StagingXcmV5Location, target: StagingXcmV5Location], { aliaser: StagingXcmV5Location, target: StagingXcmV5Location }>;
|
||||
/**
|
||||
* An `aliaser` location was authorized by `target` to alias it, authorization valid until
|
||||
* `expiry` block number.
|
||||
**/
|
||||
AliasAuthorized: AugmentedEvent<ApiType, [aliaser: StagingXcmV5Location, target: StagingXcmV5Location, expiry: Option<u64>], { aliaser: StagingXcmV5Location, target: StagingXcmV5Location, expiry: Option<u64> }>;
|
||||
/**
|
||||
* `target` removed all alias authorizations.
|
||||
**/
|
||||
AliasesAuthorizationsRemoved: AugmentedEvent<ApiType, [target: StagingXcmV5Location], { target: StagingXcmV5Location }>;
|
||||
/**
|
||||
* Some assets have been claimed from an asset trap
|
||||
**/
|
||||
@@ -763,6 +780,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* sending the notification to it.
|
||||
**/
|
||||
NotifyTargetSendFail: AugmentedEvent<ApiType, [location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError], { location: StagingXcmV5Location, queryId: u64, error: XcmV5TraitsError }>;
|
||||
/**
|
||||
* An XCM message failed to process.
|
||||
**/
|
||||
ProcessXcmError: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, error: XcmV5TraitsError, messageId: U8aFixed], { origin: StagingXcmV5Location, error: XcmV5TraitsError, messageId: U8aFixed }>;
|
||||
/**
|
||||
* Query response has been received and is ready for taking with `take_response`. There is
|
||||
* no registered notification call.
|
||||
@@ -773,7 +794,11 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
ResponseTaken: AugmentedEvent<ApiType, [queryId: u64], { queryId: u64 }>;
|
||||
/**
|
||||
* A XCM message was sent.
|
||||
* An XCM message failed to send.
|
||||
**/
|
||||
SendFailed: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, destination: StagingXcmV5Location, error: XcmV3TraitsSendError, messageId: U8aFixed], { origin: StagingXcmV5Location, destination: StagingXcmV5Location, error: XcmV3TraitsSendError, messageId: U8aFixed }>;
|
||||
/**
|
||||
* An XCM message was sent.
|
||||
**/
|
||||
Sent: AugmentedEvent<ApiType, [origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed], { origin: StagingXcmV5Location, destination: StagingXcmV5Location, message: StagingXcmV5Xcm, messageId: U8aFixed }>;
|
||||
/**
|
||||
@@ -932,6 +957,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An announcement was placed to make a call in the future.
|
||||
**/
|
||||
Announced: AugmentedEvent<ApiType, [real: AccountId32, proxy: AccountId32, callHash: H256], { real: AccountId32, proxy: AccountId32, callHash: H256 }>;
|
||||
/**
|
||||
* A deposit stored for proxies or announcements was poked / updated.
|
||||
**/
|
||||
DepositPoked: AugmentedEvent<ApiType, [who: AccountId32, kind: PalletProxyDepositKind, oldDeposit: u128, newDeposit: u128], { who: AccountId32, kind: PalletProxyDepositKind, oldDeposit: u128, newDeposit: u128 }>;
|
||||
/**
|
||||
* A proxy was added.
|
||||
**/
|
||||
@@ -960,6 +989,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* block number as the type might suggest.
|
||||
**/
|
||||
NewSession: AugmentedEvent<ApiType, [sessionIndex: u32], { sessionIndex: u32 }>;
|
||||
/**
|
||||
* Validator has been disabled.
|
||||
**/
|
||||
ValidatorDisabled: AugmentedEvent<ApiType, [validator: AccountId32], { validator: AccountId32 }>;
|
||||
/**
|
||||
* Validator has been re-enabled.
|
||||
**/
|
||||
ValidatorReenabled: AugmentedEvent<ApiType, [validator: AccountId32], { validator: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1009,6 +1046,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A new account was created.
|
||||
**/
|
||||
NewAccount: AugmentedEvent<ApiType, [account: AccountId32], { account: AccountId32 }>;
|
||||
/**
|
||||
* An invalid authorized upgrade was rejected while trying to apply it.
|
||||
**/
|
||||
RejectedInvalidAuthorizedUpgrade: AugmentedEvent<ApiType, [codeHash: H256, error: SpRuntimeDispatchError], { codeHash: H256, error: SpRuntimeDispatchError }>;
|
||||
/**
|
||||
* On on-chain remark happened.
|
||||
**/
|
||||
@@ -1181,6 +1222,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A call was dispatched.
|
||||
**/
|
||||
DispatchedAs: AugmentedEvent<ApiType, [result: Result<Null, SpRuntimeDispatchError>], { result: Result<Null, SpRuntimeDispatchError> }>;
|
||||
/**
|
||||
* The fallback call was dispatched.
|
||||
**/
|
||||
IfElseFallbackCalled: AugmentedEvent<ApiType, [mainError: SpRuntimeDispatchError], { mainError: SpRuntimeDispatchError }>;
|
||||
/**
|
||||
* Main call was dispatched.
|
||||
**/
|
||||
IfElseMainSuccess: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* A single item within a Batch of dispatches has completed with no error.
|
||||
**/
|
||||
|
||||
@@ -8,8 +8,8 @@ import '@polkadot/api-base/types/storage';
|
||||
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
||||
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AssetHubPolkadotRuntimeRuntimeHoldReason, AssetHubPolkadotRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraEd25519AppEd25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5Instruction, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AssetHubPolkadotRuntimeRuntimeHoldReason, AssetHubPolkadotRuntimeSessionKeys, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmAuthorizedAliasesEntry, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, SpConsensusAuraEd25519AppEd25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Location, StagingXcmV5Instruction, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -101,11 +101,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusAuraEd25519AppEd25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Current slot paired with a number of authored blocks.
|
||||
* Current relay chain slot paired with a number of authored blocks.
|
||||
*
|
||||
* Updated on each block initialization.
|
||||
* This is updated in [`FixedVelocityConsensusHook::on_state_proof`] with the current relay
|
||||
* chain slot as provided by the relay chain state proof.
|
||||
**/
|
||||
slotInfo: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
relaySlotInfo: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
@@ -542,6 +543,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* times this pair has been trapped (usually just 1 if it exists at all).
|
||||
**/
|
||||
assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Map of authorized aliasers of local origins. Each local location can authorize a list of
|
||||
* other locations to alias into it. Each aliaser is only valid until its inner `expiry`
|
||||
* block number.
|
||||
**/
|
||||
authorizedAliases: AugmentedQuery<ApiType, (arg: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => Observable<Option<PalletXcmAuthorizedAliasesEntry>>, [XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [XcmVersionedLocation]>;
|
||||
/**
|
||||
* The current migration's stage, if any.
|
||||
**/
|
||||
@@ -677,7 +684,7 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
||||
* a new set of identities.
|
||||
**/
|
||||
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
||||
**/
|
||||
@@ -794,6 +801,16 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
||||
**/
|
||||
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* The weight reclaimed for the extrinsic.
|
||||
*
|
||||
* This information is available until the end of the extrinsic execution.
|
||||
* More precisely this information is removed in `note_applied_extrinsic`.
|
||||
*
|
||||
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
||||
* reduction.
|
||||
**/
|
||||
extrinsicWeightReclaimed: AugmentedQuery<ApiType, () => Observable<SpWeightsWeightV2Weight>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* Whether all inherents have been applied.
|
||||
**/
|
||||
|
||||
@@ -67,7 +67,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
/** 0xd7bdd8a272ca0d65/ */
|
||||
auraUnincludedSegmentApi: {
|
||||
/**
|
||||
* Whether it is legal to extend the chain, assuming the given block is the most, recently included one as-of the relay parent that will be built against, and, the given slot.,, This should be consistent with the logic the runtime uses when validating blocks to, avoid issues.,, When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block, whose state we are querying against, this must always return `true` as long as the slot, is more recent than the included block itself.
|
||||
* Whether it is legal to extend the chain, assuming the given block is the most, recently included one as-of the relay parent that will be built against, and, the given relay chain slot.,, This should be consistent with the logic the runtime uses when validating blocks to, avoid issues.,, When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block, whose state we are querying against, this must always return `true` as long as the slot, is more recent than the included block itself.
|
||||
**/
|
||||
canBuildUpon: AugmentedCall<ApiType, (included_hash: H256 | string | Uint8Array, slot: Slot | AnyNumber | Uint8Array) => Observable<bool>>;
|
||||
/**
|
||||
|
||||
@@ -403,6 +403,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* refunded.
|
||||
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
|
||||
@@ -416,6 +419,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `id`: The identifier of the asset for the account holding a deposit.
|
||||
* - `who`: The account to refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refundOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
|
||||
@@ -478,6 +484,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* an account contains holds or freezes in place.
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
@@ -1132,6 +1141,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* refunded.
|
||||
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refund: AugmentedSubmittable<(id: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV4Location, bool]>;
|
||||
@@ -1145,6 +1157,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `id`: The identifier of the asset for the account holding a deposit.
|
||||
* - `who`: The account to refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refundOther: AugmentedSubmittable<(id: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV4Location, MultiAddress]>;
|
||||
@@ -1207,6 +1222,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* an account contains holds or freezes in place.
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: StagingXcmV4Location | { parents?: any; interior?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [StagingXcmV4Location]>;
|
||||
/**
|
||||
@@ -1500,6 +1518,22 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - Storage: removes one item.
|
||||
**/
|
||||
cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | { height?: any; index?: any } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
|
||||
/**
|
||||
* Poke the deposit reserved for an existing multisig operation.
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_ and must be the original depositor of
|
||||
* the multisig operation.
|
||||
*
|
||||
* The transaction fee is waived if the deposit amount has changed.
|
||||
*
|
||||
* - `threshold`: The total number of approvals needed for this multisig.
|
||||
* - `other_signatories`: The accounts (other than the sender) who are part of the
|
||||
* multisig.
|
||||
* - `call_hash`: The hash of the call this deposit is reserved for.
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
@@ -2156,6 +2190,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
polkadotXcm: {
|
||||
/**
|
||||
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
||||
* The `aliaser` is only authorized until the provided `expiry` block number.
|
||||
* The call can also be used for a previously authorized alias in order to update its
|
||||
* `expiry` block number.
|
||||
*
|
||||
* Usually useful to allow your local account to be aliased into from a remote location
|
||||
* also under your control (like your account on another chain).
|
||||
*
|
||||
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
||||
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
||||
* `origin` in XCM programs executed on the local chain.
|
||||
**/
|
||||
addAuthorizedAlias: AugmentedSubmittable<(aliaser: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, expires: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, Option<u64>]>;
|
||||
/**
|
||||
* Claims assets trapped on this pallet because of leftover assets during XCM execution.
|
||||
*
|
||||
@@ -2270,6 +2318,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
||||
**/
|
||||
limitedTeleportAssets: AugmentedSubmittable<(dest: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, beneficiary: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, assets: XcmVersionedAssets | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array, feeAssetItem: u32 | AnyNumber | Uint8Array, weightLimit: XcmV3WeightLimit | { Unlimited: any } | { Limited: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
|
||||
/**
|
||||
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
||||
* making this call.
|
||||
**/
|
||||
removeAllAuthorizedAliases: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
||||
* the local `origin` making this call.
|
||||
**/
|
||||
removeAuthorizedAlias: AugmentedSubmittable<(aliaser: XcmVersionedLocation | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
|
||||
/**
|
||||
* Transfer some assets from the local chain to the destination chain through their local,
|
||||
* destination or remote reserve.
|
||||
@@ -2735,6 +2793,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* refunded.
|
||||
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refund: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, bool]>;
|
||||
@@ -2748,6 +2809,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `id`: The identifier of the asset for the account holding a deposit.
|
||||
* - `who`: The account to refund.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* the asset account contains holds or freezes in place.
|
||||
*
|
||||
* Emits `Refunded` event when successful.
|
||||
**/
|
||||
refundOther: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, MultiAddress]>;
|
||||
@@ -2810,6 +2874,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
||||
* an account contains holds or freezes in place.
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
|
||||
/**
|
||||
@@ -3033,6 +3100,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* account whose `pure` call has corresponding parameters.
|
||||
**/
|
||||
killPure: AugmentedSubmittable<(spawner: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, proxyType: AssetHubPolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'CancelProxy' | 'Assets' | 'AssetOwner' | 'AssetManager' | 'Collator' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, AssetHubPolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
|
||||
/**
|
||||
* Poke / Adjust deposits made for proxies and announcements based on current values.
|
||||
* This can be used by accounts to possibly lower their locked amount.
|
||||
*
|
||||
* The dispatch origin for this call must be _Signed_.
|
||||
*
|
||||
* The transaction fee is waived if the deposit amount has changed.
|
||||
*
|
||||
* Emits `DepositPoked` if successful.
|
||||
**/
|
||||
pokeDeposit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
||||
/**
|
||||
* Dispatch the given `call` from an account that the sender is authorised for through
|
||||
* `add_proxy`.
|
||||
@@ -3816,6 +3894,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - O(1).
|
||||
**/
|
||||
dispatchAs: AugmentedSubmittable<(asOrigin: AssetHubPolkadotRuntimeOriginCaller | { system: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AssetHubPolkadotRuntimeOriginCaller, Call]>;
|
||||
/**
|
||||
* Dispatches a function call with a provided origin.
|
||||
*
|
||||
* Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
|
||||
*
|
||||
* The dispatch origin for this call must be _Root_.
|
||||
**/
|
||||
dispatchAsFallible: AugmentedSubmittable<(asOrigin: AssetHubPolkadotRuntimeOriginCaller | { system: any } | { PolkadotXcm: any } | { CumulusXcm: any } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AssetHubPolkadotRuntimeOriginCaller, Call]>;
|
||||
/**
|
||||
* Send a batch of dispatch calls.
|
||||
* Unlike `batch`, it allows errors and won't interrupt.
|
||||
@@ -3832,6 +3918,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - O(C) where C is the number of calls to be batched.
|
||||
**/
|
||||
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
||||
/**
|
||||
* Dispatch a fallback call in the event the main call fails to execute.
|
||||
* May be called from any origin except `None`.
|
||||
*
|
||||
* This function first attempts to dispatch the `main` call.
|
||||
* If the `main` call fails, the `fallback` is attemted.
|
||||
* if the fallback is successfully dispatched, the weights of both calls
|
||||
* are accumulated and an event containing the main call error is deposited.
|
||||
*
|
||||
* In the event of a fallback failure the whole call fails
|
||||
* with the weights returned.
|
||||
*
|
||||
* - `main`: The main call to be dispatched. This is the primary action to execute.
|
||||
* - `fallback`: The fallback call to be dispatched in case the `main` call fails.
|
||||
*
|
||||
* ## Dispatch Logic
|
||||
* - If the origin is `root`, both the main and fallback calls are executed without
|
||||
* applying any origin filters.
|
||||
* - If the origin is not `root`, the origin filter is applied to both the `main` and
|
||||
* `fallback` calls.
|
||||
*
|
||||
* ## Use Case
|
||||
* - Some use cases might involve submitting a `batch` type call in either main, fallback
|
||||
* or both.
|
||||
**/
|
||||
ifElse: AugmentedSubmittable<(main: Call | IMethod | string | Uint8Array, fallback: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Call]>;
|
||||
/**
|
||||
* Dispatch a function call with a specified weight.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user