@polkadot/api-augment 16.2.2 → 16.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/assetHubKusama/consts.d.ts +95 -2
  2. package/assetHubKusama/errors.d.ts +254 -10
  3. package/assetHubKusama/events.d.ts +103 -3
  4. package/assetHubKusama/query.d.ts +72 -6
  5. package/assetHubKusama/runtime.d.ts +113 -4
  6. package/assetHubKusama/tx.d.ts +278 -1
  7. package/cjs/assetHubKusama/consts.d.ts +95 -2
  8. package/cjs/assetHubKusama/errors.d.ts +254 -10
  9. package/cjs/assetHubKusama/events.d.ts +103 -3
  10. package/cjs/assetHubKusama/query.d.ts +72 -6
  11. package/cjs/assetHubKusama/runtime.d.ts +113 -4
  12. package/cjs/assetHubKusama/tx.d.ts +278 -1
  13. package/cjs/kusama/consts.d.ts +31 -7
  14. package/cjs/kusama/errors.d.ts +41 -2
  15. package/cjs/kusama/events.d.ts +167 -4
  16. package/cjs/kusama/query.d.ts +31 -12
  17. package/cjs/kusama/runtime.d.ts +10 -2
  18. package/cjs/kusama/tx.d.ts +205 -26
  19. package/cjs/packageInfo.js +1 -1
  20. package/cjs/polkadot/consts.d.ts +27 -5
  21. package/cjs/polkadot/errors.d.ts +41 -2
  22. package/cjs/polkadot/events.d.ts +167 -4
  23. package/cjs/polkadot/query.d.ts +31 -12
  24. package/cjs/polkadot/runtime.d.ts +10 -2
  25. package/cjs/polkadot/tx.d.ts +204 -25
  26. package/cjs/substrate/runtime.d.ts +7 -7
  27. package/kusama/consts.d.ts +31 -7
  28. package/kusama/errors.d.ts +41 -2
  29. package/kusama/events.d.ts +167 -4
  30. package/kusama/query.d.ts +31 -12
  31. package/kusama/runtime.d.ts +10 -2
  32. package/kusama/tx.d.ts +205 -26
  33. package/package.json +7 -7
  34. package/packageInfo.js +1 -1
  35. package/polkadot/consts.d.ts +27 -5
  36. package/polkadot/errors.d.ts +41 -2
  37. package/polkadot/events.d.ts +167 -4
  38. package/polkadot/query.d.ts +31 -12
  39. package/polkadot/runtime.d.ts +10 -2
  40. package/polkadot/tx.d.ts +204 -25
  41. package/substrate/runtime.d.ts +7 -7
@@ -1263,6 +1263,7 @@ declare module '@polkadot/api-base/types/submittable' {
1263
1263
  } | {
1264
1264
  Task: any;
1265
1265
  } | string | Uint8Array, u16 | AnyNumber | Uint8Array])[], endHint: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u16, u32, Vec<ITuple<[PalletBrokerCoretimeInterfaceCoreAssignment, u16]>>, Option<u32>]>;
1266
+ creditAccount: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u128]>;
1266
1267
  /**
1267
1268
  * Request the configuration to be updated with the specified number of cores. Warning:
1268
1269
  * Since this only schedules a configuration update, it takes two sessions to come into
@@ -1789,6 +1790,19 @@ declare module '@polkadot/api-base/types/submittable' {
1789
1790
  * - `O(1)`.
1790
1791
  **/
1791
1792
  freeze: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1793
+ /**
1794
+ * Poke the deposit reserved for an index.
1795
+ *
1796
+ * The dispatch origin for this call must be _Signed_ and the signing account must have a
1797
+ * non-frozen account `index`.
1798
+ *
1799
+ * The transaction fees is waived if the deposit is changed after poking/reconsideration.
1800
+ *
1801
+ * - `index`: the index whose deposit is to be poked/reconsidered.
1802
+ *
1803
+ * Emits `DepositPoked` if successful.
1804
+ **/
1805
+ pokeDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1792
1806
  /**
1793
1807
  * Assign an index already owned by the sender to another account. The balance reservation
1794
1808
  * is effectively transferred to the new account.
@@ -1994,6 +2008,22 @@ declare module '@polkadot/api-base/types/submittable' {
1994
2008
  height?: any;
1995
2009
  index?: any;
1996
2010
  } | string | Uint8Array, callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, PalletMultisigTimepoint, U8aFixed]>;
2011
+ /**
2012
+ * Poke the deposit reserved for an existing multisig operation.
2013
+ *
2014
+ * The dispatch origin for this call must be _Signed_ and must be the original depositor of
2015
+ * the multisig operation.
2016
+ *
2017
+ * The transaction fee is waived if the deposit amount has changed.
2018
+ *
2019
+ * - `threshold`: The total number of approvals needed for this multisig.
2020
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
2021
+ * multisig.
2022
+ * - `call_hash`: The hash of the call this deposit is reserved for.
2023
+ *
2024
+ * Emits `DepositPoked` if successful.
2025
+ **/
2026
+ pokeDeposit: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], callHash: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, U8aFixed]>;
1997
2027
  /**
1998
2028
  * Generic tx
1999
2029
  **/
@@ -2016,8 +2046,10 @@ declare module '@polkadot/api-base/types/submittable' {
2016
2046
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
2017
2047
  * [`adapter::StakeStrategyType::Delegate`].
2018
2048
  *
2019
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
2020
- * slash to be applied, caller may be rewarded with the part of the slash.
2049
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
2050
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
2051
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
2052
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
2021
2053
  **/
2022
2054
  applySlash: AugmentedSubmittable<(memberAccount: MultiAddress | {
2023
2055
  Id: any;
@@ -2076,25 +2108,37 @@ declare module '@polkadot/api-base/types/submittable' {
2076
2108
  * The dispatch origin of this call can be signed by the pool nominator or the pool
2077
2109
  * root role, same as [`Pallet::nominate`].
2078
2110
  *
2111
+ * This directly forwards the call to an implementation of `StakingInterface` (e.g.,
2112
+ * `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
2113
+ *
2079
2114
  * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
2080
2115
  * account).
2081
2116
  *
2082
2117
  * # Conditions for a permissionless dispatch:
2083
- * * When pool depositor has less than `MinNominatorBond` staked, otherwise pool members
2118
+ * * When pool depositor has less than `MinNominatorBond` staked, otherwise pool members
2084
2119
  * are unable to unbond.
2085
2120
  *
2086
2121
  * # Conditions for permissioned dispatch:
2087
- * * The caller has a nominator or root role of the pool.
2088
- * This directly forward the call to the staking pallet, on behalf of the pool bonded
2089
- * account.
2122
+ * * The caller is the pool's nominator or root.
2090
2123
  **/
2091
2124
  chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2092
2125
  /**
2093
2126
  * Claim pending commission.
2094
2127
  *
2095
- * The dispatch origin of this call must be signed by the `root` role of the pool. Pending
2096
- * commission is paid out and added to total claimed commission`. Total pending commission
2097
- * is reset to zero. the current.
2128
+ * The `root` role of the pool is _always_ allowed to claim the pool's commission.
2129
+ *
2130
+ * If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
2131
+ * trigger the process of claiming the pool's commission.
2132
+ *
2133
+ * If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
2134
+ * accounts
2135
+ * * `acc`, and
2136
+ * * the pool's root account
2137
+ *
2138
+ * may call this extrinsic on behalf of the pool.
2139
+ *
2140
+ * Pending commissions are paid out and added to the total claimed commission.
2141
+ * The total pending commission is reset to zero.
2098
2142
  **/
2099
2143
  claimCommission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2100
2144
  /**
@@ -2205,8 +2249,9 @@ declare module '@polkadot/api-base/types/submittable' {
2205
2249
  Address20: any;
2206
2250
  } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
2207
2251
  /**
2208
- * Stake funds with a pool. The amount to bond is transferred from the member to the pool
2209
- * account and immediately increases the pools bond.
2252
+ * Stake funds with a pool. The amount to bond is delegated (or transferred based on
2253
+ * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
2254
+ * increases the pool's bond.
2210
2255
  *
2211
2256
  * The method of transferring the amount to the pool account is determined by
2212
2257
  * [`adapter::StakeStrategyType`]. If the pool is configured to use
@@ -2262,13 +2307,13 @@ declare module '@polkadot/api-base/types/submittable' {
2262
2307
  * The dispatch origin of this call must be signed by the pool nominator or the pool
2263
2308
  * root role.
2264
2309
  *
2265
- * This directly forward the call to the staking pallet, on behalf of the pool bonded
2266
- * account.
2310
+ * This directly forwards the call to an implementation of `StakingInterface` (e.g.,
2311
+ * `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
2267
2312
  *
2268
2313
  * # Note
2269
2314
  *
2270
- * In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to have
2271
- * at least `depositor_min_bond` in the pool to start nominating.
2315
+ * In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
2316
+ * have at least `depositor_min_bond` in the pool to start nominating.
2272
2317
  **/
2273
2318
  nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
2274
2319
  /**
@@ -2546,6 +2591,26 @@ declare module '@polkadot/api-base/types/submittable' {
2546
2591
  * - `OnDemandOrderPlaced`
2547
2592
  **/
2548
2593
  placeOrderKeepAlive: AugmentedSubmittable<(maxAmount: u128 | AnyNumber | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u32]>;
2594
+ /**
2595
+ * Create a single on demand core order with credits.
2596
+ * Will charge the owner's on-demand credit account the spot price for the current block.
2597
+ *
2598
+ * Parameters:
2599
+ * - `origin`: The sender of the call, on-demand credits will be withdrawn from this
2600
+ * account.
2601
+ * - `max_amount`: The maximum number of credits to spend from the origin to place an
2602
+ * order.
2603
+ * - `para_id`: A `ParaId` the origin wants to provide blockspace for.
2604
+ *
2605
+ * Errors:
2606
+ * - `InsufficientCredits`
2607
+ * - `QueueFull`
2608
+ * - `SpotPriceHigherThanMaxAmount`
2609
+ *
2610
+ * Events:
2611
+ * - `OnDemandOrderPlaced`
2612
+ **/
2613
+ placeOrderWithCredits: AugmentedSubmittable<(maxAmount: u128 | AnyNumber | Uint8Array, paraId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u32]>;
2549
2614
  /**
2550
2615
  * Generic tx
2551
2616
  **/
@@ -2670,7 +2735,7 @@ declare module '@polkadot/api-base/types/submittable' {
2670
2735
  };
2671
2736
  preimage: {
2672
2737
  /**
2673
- * Ensure that the a bulk of pre-images is upgraded.
2738
+ * Ensure that the bulk of pre-images is upgraded.
2674
2739
  *
2675
2740
  * The caller pays no fee if at least 90% of pre-images were successfully updated.
2676
2741
  **/
@@ -2810,6 +2875,17 @@ declare module '@polkadot/api-base/types/submittable' {
2810
2875
  } | {
2811
2876
  Address20: any;
2812
2877
  } | string | Uint8Array, proxyType: PolkadotRuntimeConstantsProxyProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'CancelProxy' | 'Auction' | 'NominationPools' | 'ParaRegistration' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeConstantsProxyProxyType, u16, Compact<u32>, Compact<u32>]>;
2878
+ /**
2879
+ * Poke / Adjust deposits made for proxies and announcements based on current values.
2880
+ * This can be used by accounts to possibly lower their locked amount.
2881
+ *
2882
+ * The dispatch origin for this call must be _Signed_.
2883
+ *
2884
+ * The transaction fee is waived if the deposit amount has changed.
2885
+ *
2886
+ * Emits `DepositPoked` if successful.
2887
+ **/
2888
+ pokeDeposit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2813
2889
  /**
2814
2890
  * Dispatch the given `call` from an account that the sender is authorised for through
2815
2891
  * `add_proxy`.
@@ -3516,6 +3592,40 @@ declare module '@polkadot/api-base/types/submittable' {
3516
3592
  } | {
3517
3593
  Address20: any;
3518
3594
  } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<MultiAddress>]>;
3595
+ /**
3596
+ * This function allows governance to manually slash a validator and is a
3597
+ * **fallback mechanism**.
3598
+ *
3599
+ * The dispatch origin must be `T::AdminOrigin`.
3600
+ *
3601
+ * ## Parameters
3602
+ * - `validator_stash` - The stash account of the validator to slash.
3603
+ * - `era` - The era in which the validator was in the active set.
3604
+ * - `slash_fraction` - The percentage of the stake to slash, expressed as a Perbill.
3605
+ *
3606
+ * ## Behavior
3607
+ *
3608
+ * The slash will be applied using the standard slashing mechanics, respecting the
3609
+ * configured `SlashDeferDuration`.
3610
+ *
3611
+ * This means:
3612
+ * - If the validator was already slashed by a higher percentage for the same era, this
3613
+ * slash will have no additional effect.
3614
+ * - If the validator was previously slashed by a lower percentage, only the difference
3615
+ * will be applied.
3616
+ * - The slash will be deferred by `SlashDeferDuration` eras before being enacted.
3617
+ **/
3618
+ manualSlash: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, slashFraction: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, Perbill]>;
3619
+ /**
3620
+ * Removes the legacy Staking locks if they exist.
3621
+ *
3622
+ * This removes the legacy lock on the stake with [`Config::OldCurrency`] and creates a
3623
+ * hold on it if needed. If all stake cannot be held, the best effort is made to hold as
3624
+ * much as possible. The remaining stake is forced withdrawn from the ledger.
3625
+ *
3626
+ * The fee is waived if the migration is successful.
3627
+ **/
3628
+ migrateCurrency: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
3519
3629
  /**
3520
3630
  * Declare the desire to nominate `targets` for the origin controller.
3521
3631
  *
@@ -3801,15 +3911,6 @@ declare module '@polkadot/api-base/types/submittable' {
3801
3911
  commission?: any;
3802
3912
  blocked?: any;
3803
3913
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletStakingValidatorPrefs]>;
3804
- /**
3805
- * Adjusts the staking ledger by withdrawing any excess staked amount.
3806
- *
3807
- * This function corrects cases where a user's recorded stake in the ledger
3808
- * exceeds their actual staked funds. This situation can arise due to cases such as
3809
- * external slashing by another pallet, leading to an inconsistency between the ledger
3810
- * and the actual stake.
3811
- **/
3812
- withdrawOverstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
3813
3914
  /**
3814
3915
  * Remove any unlocked chunks from the `unlocking` queue from our management.
3815
3916
  *
@@ -4275,6 +4376,22 @@ declare module '@polkadot/api-base/types/submittable' {
4275
4376
  } | {
4276
4377
  XcmPallet: any;
4277
4378
  } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
4379
+ /**
4380
+ * Dispatches a function call with a provided origin.
4381
+ *
4382
+ * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
4383
+ *
4384
+ * The dispatch origin for this call must be _Root_.
4385
+ **/
4386
+ dispatchAsFallible: AugmentedSubmittable<(asOrigin: PolkadotRuntimeOriginCaller | {
4387
+ system: any;
4388
+ } | {
4389
+ Origins: any;
4390
+ } | {
4391
+ ParachainsOrigin: any;
4392
+ } | {
4393
+ XcmPallet: any;
4394
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
4278
4395
  /**
4279
4396
  * Send a batch of dispatch calls.
4280
4397
  * Unlike `batch`, it allows errors and won't interrupt.
@@ -4291,6 +4408,32 @@ declare module '@polkadot/api-base/types/submittable' {
4291
4408
  * - O(C) where C is the number of calls to be batched.
4292
4409
  **/
4293
4410
  forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4411
+ /**
4412
+ * Dispatch a fallback call in the event the main call fails to execute.
4413
+ * May be called from any origin except `None`.
4414
+ *
4415
+ * This function first attempts to dispatch the `main` call.
4416
+ * If the `main` call fails, the `fallback` is attemted.
4417
+ * if the fallback is successfully dispatched, the weights of both calls
4418
+ * are accumulated and an event containing the main call error is deposited.
4419
+ *
4420
+ * In the event of a fallback failure the whole call fails
4421
+ * with the weights returned.
4422
+ *
4423
+ * - `main`: The main call to be dispatched. This is the primary action to execute.
4424
+ * - `fallback`: The fallback call to be dispatched in case the `main` call fails.
4425
+ *
4426
+ * ## Dispatch Logic
4427
+ * - If the origin is `root`, both the main and fallback calls are executed without
4428
+ * applying any origin filters.
4429
+ * - If the origin is not `root`, the origin filter is applied to both the `main` and
4430
+ * `fallback` calls.
4431
+ *
4432
+ * ## Use Case
4433
+ * - Some use cases might involve submitting a `batch` type call in either main, fallback
4434
+ * or both.
4435
+ **/
4436
+ ifElse: AugmentedSubmittable<(main: Call | IMethod | string | Uint8Array, fallback: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Call]>;
4294
4437
  /**
4295
4438
  * Dispatch a function call with a specified weight.
4296
4439
  *
@@ -4556,6 +4699,26 @@ declare module '@polkadot/api-base/types/submittable' {
4556
4699
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
4557
4700
  };
4558
4701
  xcmPallet: {
4702
+ /**
4703
+ * Authorize another `aliaser` location to alias into the local `origin` making this call.
4704
+ * The `aliaser` is only authorized until the provided `expiry` block number.
4705
+ * The call can also be used for a previously authorized alias in order to update its
4706
+ * `expiry` block number.
4707
+ *
4708
+ * Usually useful to allow your local account to be aliased into from a remote location
4709
+ * also under your control (like your account on another chain).
4710
+ *
4711
+ * WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
4712
+ * their/your name. Once authorized using this call, the `aliaser` can freely impersonate
4713
+ * `origin` in XCM programs executed on the local chain.
4714
+ **/
4715
+ addAuthorizedAlias: AugmentedSubmittable<(aliaser: XcmVersionedLocation | {
4716
+ V3: any;
4717
+ } | {
4718
+ V4: any;
4719
+ } | {
4720
+ V5: any;
4721
+ } | string | Uint8Array, expires: Option<u64> | null | Uint8Array | u64 | AnyNumber) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, Option<u64>]>;
4559
4722
  /**
4560
4723
  * Claims assets trapped on this pallet because of leftover assets during XCM execution.
4561
4724
  *
@@ -4750,6 +4913,22 @@ declare module '@polkadot/api-base/types/submittable' {
4750
4913
  } | {
4751
4914
  Limited: any;
4752
4915
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation, XcmVersionedLocation, XcmVersionedAssets, u32, XcmV3WeightLimit]>;
4916
+ /**
4917
+ * Remove all previously authorized `aliaser`s that can alias into the local `origin`
4918
+ * making this call.
4919
+ **/
4920
+ removeAllAuthorizedAliases: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4921
+ /**
4922
+ * Remove a previously authorized `aliaser` from the list of locations that can alias into
4923
+ * the local `origin` making this call.
4924
+ **/
4925
+ removeAuthorizedAlias: AugmentedSubmittable<(aliaser: XcmVersionedLocation | {
4926
+ V3: any;
4927
+ } | {
4928
+ V4: any;
4929
+ } | {
4930
+ V5: any;
4931
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [XcmVersionedLocation]>;
4753
4932
  /**
4754
4933
  * Transfer some assets from the local chain to the destination chain through their local,
4755
4934
  * destination or remote reserve.
@@ -6,7 +6,7 @@ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
6
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
7
7
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
8
8
  import type { AccountId32, H160, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
9
- import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesCallTrace, PalletReviveEvmApiDebugRpcTypesTracerConfig, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
9
+ import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletReviveEvmApiDebugRpcTypesTrace, PalletReviveEvmApiDebugRpcTypesTracerType, PalletReviveEvmApiRpcTypesGenGenericTransaction, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResultExecReturnValue, PalletRevivePrimitivesContractResultInstantiateReturnValue, PalletRevivePrimitivesEthTransactError, PalletRevivePrimitivesEthTransactInfo, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
10
10
  import type { IExtrinsic, Observable } from '@polkadot/types/types';
11
11
  export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
12
12
  export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
@@ -564,9 +564,9 @@ declare module '@polkadot/api-base/types/calls' {
564
564
  traceBlock: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
565
565
  header?: any;
566
566
  extrinsics?: any;
567
- } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | {
567
+ } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | {
568
568
  CallTracer: any;
569
- } | string | Uint8Array) => Observable<Vec<ITuple<[u32, PalletReviveEvmApiDebugRpcTypesCallTrace]>>>>;
569
+ } | string | Uint8Array) => Observable<Vec<ITuple<[u32, PalletReviveEvmApiDebugRpcTypesTrace]>>>>;
570
570
  /**
571
571
  * Dry run and return the trace of the given call.,, See eth-rpc `debug_traceCall` for usage.
572
572
  **/
@@ -586,18 +586,18 @@ declare module '@polkadot/api-base/types/calls' {
586
586
  to?: any;
587
587
  r_type?: any;
588
588
  value?: any;
589
- } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | {
589
+ } | string | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | {
590
590
  CallTracer: any;
591
- } | string | Uint8Array) => Observable<Result<PalletReviveEvmApiDebugRpcTypesCallTrace, PalletRevivePrimitivesEthTransactError>>>;
591
+ } | string | Uint8Array) => Observable<Result<PalletReviveEvmApiDebugRpcTypesTrace, PalletRevivePrimitivesEthTransactError>>>;
592
592
  /**
593
593
  * Traces the execution of a specific transaction within a block.,, This is intended to be called through `state_call` to replay the block from the, parent hash up to the transaction.,, See eth-rpc `debug_traceTransaction` for usage.
594
594
  **/
595
595
  traceTx: AugmentedCall<ApiType, (block: SpRuntimeBlock | {
596
596
  header?: any;
597
597
  extrinsics?: any;
598
- } | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerConfig | {
598
+ } | string | Uint8Array, tx_index: u32 | AnyNumber | Uint8Array, config: PalletReviveEvmApiDebugRpcTypesTracerType | {
599
599
  CallTracer: any;
600
- } | string | Uint8Array) => Observable<Option<PalletReviveEvmApiDebugRpcTypesCallTrace>>>;
600
+ } | string | Uint8Array) => Observable<Option<PalletReviveEvmApiDebugRpcTypesTrace>>>;
601
601
  /**
602
602
  * Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
603
603
  **/
@@ -2,8 +2,8 @@ import '@polkadot/api-base/types/consts';
2
2
  import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
3
  import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { Codec, ITuple } from '@polkadot/types-codec/types';
5
- import type { Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV5Junctions } from '@polkadot/types/lookup';
5
+ import type { AccountId32, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
6
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackDetails, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV5Junctions } from '@polkadot/types/lookup';
7
7
  export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
8
  declare module '@polkadot/api-base/types/consts' {
9
9
  interface AugmentedConsts<ApiType extends ApiTypes> {
@@ -120,7 +120,12 @@ declare module '@polkadot/api-base/types/consts' {
120
120
  **/
121
121
  bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
122
122
  /**
123
- * Bounty duration in blocks.
123
+ * The time limit for a curator to act before a bounty expires.
124
+ *
125
+ * The period that starts when a curator is approved, during which they must execute or
126
+ * update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
127
+ * curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
128
+ * removing the need for `extend_bounty_expiry`.
124
129
  **/
125
130
  bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
126
131
  /**
@@ -340,9 +345,11 @@ declare module '@polkadot/api-base/types/consts' {
340
345
  **/
341
346
  submissionDeposit: u128 & AugmentedConst<ApiType>;
342
347
  /**
343
- * Information concerning the different referendum tracks.
348
+ * A list of tracks.
349
+ *
350
+ * Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
344
351
  **/
345
- tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
352
+ tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
346
353
  /**
347
354
  * The number of blocks after submission that a referendum must begin being decided by.
348
355
  * Once this passes, then anyone may cancel the referendum.
@@ -699,9 +706,11 @@ declare module '@polkadot/api-base/types/consts' {
699
706
  **/
700
707
  submissionDeposit: u128 & AugmentedConst<ApiType>;
701
708
  /**
702
- * Information concerning the different referendum tracks.
709
+ * A list of tracks.
710
+ *
711
+ * Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
703
712
  **/
704
- tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
713
+ tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
705
714
  /**
706
715
  * The number of blocks after submission that a referendum must begin being decided by.
707
716
  * Once this passes, then anyone may cancel the referendum.
@@ -975,6 +984,10 @@ declare module '@polkadot/api-base/types/consts' {
975
984
  * The period during which an approved treasury spend has to be claimed.
976
985
  **/
977
986
  payoutPeriod: u32 & AugmentedConst<ApiType>;
987
+ /**
988
+ * Gets this pallet's derived pot account.
989
+ **/
990
+ potAccount: AccountId32 & AugmentedConst<ApiType>;
978
991
  /**
979
992
  * Period between successive spends.
980
993
  **/
@@ -1057,5 +1070,16 @@ declare module '@polkadot/api-base/types/consts' {
1057
1070
  **/
1058
1071
  [key: string]: Codec;
1059
1072
  };
1073
+ xcmPallet: {
1074
+ /**
1075
+ * The latest supported version that we advertise. Generally just set it to
1076
+ * `pallet_xcm::CurrentXcmVersion`.
1077
+ **/
1078
+ advertisedXcmVersion: u32 & AugmentedConst<ApiType>;
1079
+ /**
1080
+ * Generic const
1081
+ **/
1082
+ [key: string]: Codec;
1083
+ };
1060
1084
  }
1061
1085
  }
@@ -946,7 +946,7 @@ declare module '@polkadot/api-base/types/errors' {
946
946
  **/
947
947
  NoApprovalsNeeded: AugmentedError<ApiType>;
948
948
  /**
949
- * Multisig operation not found when attempting to cancel.
949
+ * Multisig operation not found in storage.
950
950
  **/
951
951
  NotFound: AugmentedError<ApiType>;
952
952
  /**
@@ -954,7 +954,8 @@ declare module '@polkadot/api-base/types/errors' {
954
954
  **/
955
955
  NoTimepoint: AugmentedError<ApiType>;
956
956
  /**
957
- * Only the account that originally created the multisig is able to cancel it.
957
+ * Only the account that originally created the multisig is able to cancel it or update
958
+ * its deposits.
958
959
  **/
959
960
  NotOwner: AugmentedError<ApiType>;
960
961
  /**
@@ -1252,10 +1253,19 @@ declare module '@polkadot/api-base/types/errors' {
1252
1253
  * A (bonded) pool id does not exist.
1253
1254
  **/
1254
1255
  PoolNotFound: AugmentedError<ApiType>;
1256
+ /**
1257
+ * Account is restricted from participation in pools. This may happen if the account is
1258
+ * staking in another way already.
1259
+ **/
1260
+ Restricted: AugmentedError<ApiType>;
1255
1261
  /**
1256
1262
  * A reward pool does not exist. In all cases this is a system logic error.
1257
1263
  **/
1258
1264
  RewardPoolNotFound: AugmentedError<ApiType>;
1265
+ /**
1266
+ * The slash amount is too low to be applied.
1267
+ **/
1268
+ SlashTooLow: AugmentedError<ApiType>;
1259
1269
  /**
1260
1270
  * A sub pool does not exist.
1261
1271
  **/
@@ -1266,6 +1276,10 @@ declare module '@polkadot/api-base/types/errors' {
1266
1276
  [key: string]: AugmentedError<ApiType>;
1267
1277
  };
1268
1278
  onDemandAssignmentProvider: {
1279
+ /**
1280
+ * The account doesn't have enough credits to purchase on-demand coretime.
1281
+ **/
1282
+ InsufficientCredits: AugmentedError<ApiType>;
1269
1283
  /**
1270
1284
  * The order queue is full, `place_order` will not continue.
1271
1285
  **/
@@ -1993,6 +2007,10 @@ declare module '@polkadot/api-base/types/errors' {
1993
2007
  * Rewards for this era have already been claimed for this validator.
1994
2008
  **/
1995
2009
  AlreadyClaimed: AugmentedError<ApiType>;
2010
+ /**
2011
+ * The stake of this account is already migrated to `Fungible` holds.
2012
+ **/
2013
+ AlreadyMigrated: AugmentedError<ApiType>;
1996
2014
  /**
1997
2015
  * Controller is already paired.
1998
2016
  **/
@@ -2013,6 +2031,10 @@ declare module '@polkadot/api-base/types/errors' {
2013
2031
  * The user has enough bond and thus cannot be chilled forcefully by an external person.
2014
2032
  **/
2015
2033
  CannotChillOther: AugmentedError<ApiType>;
2034
+ /**
2035
+ * Stash could not be reaped as other pallet might depend on it.
2036
+ **/
2037
+ CannotReapStash: AugmentedError<ApiType>;
2016
2038
  /**
2017
2039
  * Cannot reset a ledger.
2018
2040
  **/
@@ -2091,6 +2113,11 @@ declare module '@polkadot/api-base/types/errors' {
2091
2113
  * Can not rebond without unlocking chunks.
2092
2114
  **/
2093
2115
  NoUnlockChunk: AugmentedError<ApiType>;
2116
+ /**
2117
+ * Account is restricted from participation in staking. This may happen if the account is
2118
+ * staking in another way already, such as via pool.
2119
+ **/
2120
+ Restricted: AugmentedError<ApiType>;
2094
2121
  /**
2095
2122
  * Provided reward destination is not allowed.
2096
2123
  **/
@@ -2293,6 +2320,10 @@ declare module '@polkadot/api-base/types/errors' {
2293
2320
  * The given account is not an identifiable sovereign account for any location.
2294
2321
  **/
2295
2322
  AccountNotSovereign: AugmentedError<ApiType>;
2323
+ /**
2324
+ * The alias to remove authorization for was not found.
2325
+ **/
2326
+ AliasNotFound: AugmentedError<ApiType>;
2296
2327
  /**
2297
2328
  * The location is invalid since it already has a subscription from us.
2298
2329
  **/
@@ -2322,6 +2353,10 @@ declare module '@polkadot/api-base/types/errors' {
2322
2353
  * The assets to be sent are empty.
2323
2354
  **/
2324
2355
  Empty: AugmentedError<ApiType>;
2356
+ /**
2357
+ * Expiry block number is in the past.
2358
+ **/
2359
+ ExpiresInPast: AugmentedError<ApiType>;
2325
2360
  /**
2326
2361
  * The operation required fees to be paid which the initiator could not meet.
2327
2362
  **/
@@ -2371,6 +2406,10 @@ declare module '@polkadot/api-base/types/errors' {
2371
2406
  * Too many assets have been attempted for transfer.
2372
2407
  **/
2373
2408
  TooManyAssets: AugmentedError<ApiType>;
2409
+ /**
2410
+ * Too many locations authorized to alias origin.
2411
+ **/
2412
+ TooManyAuthorizedAliases: AugmentedError<ApiType>;
2374
2413
  /**
2375
2414
  * The asset owner has too many locks on the asset.
2376
2415
  **/