@polkadot/api-augment 9.5.2 → 9.6.2

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 (47) hide show
  1. package/base.js +1 -0
  2. package/bundle.js +1 -0
  3. package/cjs/base.js +0 -1
  4. package/cjs/bundle.js +0 -2
  5. package/cjs/detectOther.js +0 -4
  6. package/cjs/detectPackage.js +2 -4
  7. package/cjs/index.js +0 -3
  8. package/cjs/kusama/index.js +0 -7
  9. package/cjs/kusama/registry.js +0 -2
  10. package/cjs/packageInfo.js +3 -1
  11. package/cjs/polkadot/index.js +0 -7
  12. package/cjs/polkadot/registry.js +0 -1
  13. package/cjs/substrate/index.js +0 -7
  14. package/detectOther.js +1 -0
  15. package/detectPackage.js +2 -0
  16. package/index.js +1 -0
  17. package/kusama/consts.js +4 -2
  18. package/kusama/errors.js +4 -2
  19. package/kusama/events.js +4 -2
  20. package/kusama/index.js +1 -0
  21. package/kusama/query.js +4 -2
  22. package/kusama/registry.js +1 -0
  23. package/kusama/runtime.js +4 -2
  24. package/kusama/tx.js +4 -2
  25. package/package.json +7 -7
  26. package/packageInfo.js +3 -1
  27. package/polkadot/consts.js +4 -2
  28. package/polkadot/errors.js +4 -2
  29. package/polkadot/events.js +4 -2
  30. package/polkadot/index.js +1 -0
  31. package/polkadot/query.js +4 -2
  32. package/polkadot/registry.js +1 -0
  33. package/polkadot/runtime.js +4 -2
  34. package/polkadot/tx.js +4 -2
  35. package/substrate/consts.d.ts +10 -29
  36. package/substrate/consts.js +4 -2
  37. package/substrate/errors.d.ts +8 -28
  38. package/substrate/errors.js +4 -2
  39. package/substrate/events.d.ts +29 -63
  40. package/substrate/events.js +4 -2
  41. package/substrate/index.js +1 -0
  42. package/substrate/query.d.ts +14 -25
  43. package/substrate/query.js +4 -2
  44. package/substrate/registry.js +1 -0
  45. package/substrate/runtime.js +4 -2
  46. package/substrate/tx.d.ts +70 -168
  47. package/substrate/tx.js +4 -2
package/substrate/tx.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import '@polkadot/api-base/types/submittable';
2
2
  import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
3
3
  import type { Data } from '@polkadot/types';
4
- import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
8
8
  export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
9
  export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
10
  export declare type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -1630,22 +1630,7 @@ declare module '@polkadot/api-base/types/submittable' {
1630
1630
  proofSize?: any;
1631
1631
  } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, SpWeightsWeightV2Weight, Option<Compact<u128>>, Bytes]>;
1632
1632
  /**
1633
- * Makes a call to an account, optionally transferring some balance.
1634
- *
1635
- * # Parameters
1636
- *
1637
- * * `dest`: Address of the contract to call.
1638
- * * `value`: The balance to transfer from the `origin` to `dest`.
1639
- * * `gas_limit`: The gas limit enforced when executing the constructor.
1640
- * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
1641
- * caller to pay for the storage consumed.
1642
- * * `data`: The input data to pass to the contract.
1643
- *
1644
- * * If the account is a smart-contract account, the associated code will be
1645
- * executed and any value will be transferred.
1646
- * * If the account is a regular account, any value will be transferred.
1647
- * * If no account exists and the call value is not less than `existential_deposit`,
1648
- * a regular account will be created and any value will be transferred.
1633
+ * Deprecated version if [`Self::call`] for use in an in-storage `Call`.
1649
1634
  **/
1650
1635
  callOldWeight: AugmentedSubmittable<(dest: MultiAddress | {
1651
1636
  Id: any;
@@ -1670,11 +1655,7 @@ declare module '@polkadot/api-base/types/submittable' {
1670
1655
  proofSize?: any;
1671
1656
  } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Option<Compact<u128>>, H256, Bytes, Bytes]>;
1672
1657
  /**
1673
- * Instantiates a contract from a previously deployed wasm binary.
1674
- *
1675
- * This function is identical to [`Self::instantiate_with_code`] but without the
1676
- * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
1677
- * must be supplied.
1658
+ * Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`.
1678
1659
  **/
1679
1660
  instantiateOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, H256, Bytes, Bytes]>;
1680
1661
  /**
@@ -1710,32 +1691,7 @@ declare module '@polkadot/api-base/types/submittable' {
1710
1691
  proofSize?: any;
1711
1692
  } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
1712
1693
  /**
1713
- * Instantiates a new contract from the supplied `code` optionally transferring
1714
- * some balance.
1715
- *
1716
- * This dispatchable has the same effect as calling [`Self::upload_code`] +
1717
- * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
1718
- * also check the documentation of [`Self::upload_code`].
1719
- *
1720
- * # Parameters
1721
- *
1722
- * * `value`: The balance to transfer from the `origin` to the newly created contract.
1723
- * * `gas_limit`: The gas limit enforced when executing the constructor.
1724
- * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
1725
- * from the caller to pay for the storage consumed.
1726
- * * `code`: The contract code to deploy in raw bytes.
1727
- * * `data`: The input data to pass to the contract constructor.
1728
- * * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
1729
- *
1730
- * Instantiation is executed as follows:
1731
- *
1732
- * - The supplied `code` is instrumented, deployed, and a `code_hash` is created for that
1733
- * code.
1734
- * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
1735
- * - The destination address is computed based on the sender, code_hash and the salt.
1736
- * - The smart-contract account is created at the computed address.
1737
- * - The `value` is transferred to the new account.
1738
- * - The `deploy` function is executed in the context of the newly-created account.
1694
+ * Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`.
1739
1695
  **/
1740
1696
  instantiateWithCodeOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, Compact<u64>, Option<Compact<u128>>, Bytes, Bytes, Bytes]>;
1741
1697
  /**
@@ -2172,16 +2128,6 @@ declare module '@polkadot/api-base/types/submittable' {
2172
2128
  * Weight: `O(p)` where `p = PublicProps::<T>::decode_len()`
2173
2129
  **/
2174
2130
  cancelProposal: AugmentedSubmittable<(propIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
2175
- /**
2176
- * Cancel a proposal queued for enactment.
2177
- *
2178
- * The dispatch origin of this call must be _Root_.
2179
- *
2180
- * - `which`: The index of the referendum to cancel.
2181
- *
2182
- * Weight: `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`.
2183
- **/
2184
- cancelQueued: AugmentedSubmittable<(which: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2185
2131
  /**
2186
2132
  * Remove a referendum.
2187
2133
  *
@@ -2244,10 +2190,6 @@ declare module '@polkadot/api-base/types/submittable' {
2244
2190
  * Weight: `O(1)`.
2245
2191
  **/
2246
2192
  emergencyCancel: AugmentedSubmittable<(refIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2247
- /**
2248
- * Enact a proposal from a referendum. For now we just make the weight be the maximum.
2249
- **/
2250
- enactProposal: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32]>;
2251
2193
  /**
2252
2194
  * Schedule a referendum to be tabled once it is legal to schedule an external
2253
2195
  * referendum.
@@ -2255,11 +2197,14 @@ declare module '@polkadot/api-base/types/submittable' {
2255
2197
  * The dispatch origin of this call must be `ExternalOrigin`.
2256
2198
  *
2257
2199
  * - `proposal_hash`: The preimage hash of the proposal.
2258
- *
2259
- * Weight: `O(V)` with V number of vetoers in the blacklist of proposal.
2260
- * Decoding vec of length V. Charged as maximum
2261
2200
  **/
2262
- externalPropose: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
2201
+ externalPropose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
2202
+ Legacy: any;
2203
+ } | {
2204
+ Inline: any;
2205
+ } | {
2206
+ Lookup: any;
2207
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
2263
2208
  /**
2264
2209
  * Schedule a negative-turnout-bias referendum to be tabled next once it is legal to
2265
2210
  * schedule an external referendum.
@@ -2273,7 +2218,13 @@ declare module '@polkadot/api-base/types/submittable' {
2273
2218
  *
2274
2219
  * Weight: `O(1)`
2275
2220
  **/
2276
- externalProposeDefault: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
2221
+ externalProposeDefault: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
2222
+ Legacy: any;
2223
+ } | {
2224
+ Inline: any;
2225
+ } | {
2226
+ Lookup: any;
2227
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
2277
2228
  /**
2278
2229
  * Schedule a majority-carries referendum to be tabled next once it is legal to schedule
2279
2230
  * an external referendum.
@@ -2287,7 +2238,13 @@ declare module '@polkadot/api-base/types/submittable' {
2287
2238
  *
2288
2239
  * Weight: `O(1)`
2289
2240
  **/
2290
- externalProposeMajority: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
2241
+ externalProposeMajority: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
2242
+ Legacy: any;
2243
+ } | {
2244
+ Inline: any;
2245
+ } | {
2246
+ Lookup: any;
2247
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded]>;
2291
2248
  /**
2292
2249
  * Schedule the currently externally-proposed majority-carries referendum to be tabled
2293
2250
  * immediately. If there is no externally-proposed referendum currently, or if there is one
@@ -2296,7 +2253,7 @@ declare module '@polkadot/api-base/types/submittable' {
2296
2253
  * The dispatch of this call must be `FastTrackOrigin`.
2297
2254
  *
2298
2255
  * - `proposal_hash`: The hash of the current external proposal.
2299
- * - `voting_period`: The period that is allowed for voting on this proposal.
2256
+ * - `voting_period`: The period that is allowed for voting on this proposal. Increased to
2300
2257
  * Must be always greater than zero.
2301
2258
  * For `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`.
2302
2259
  * - `delay`: The number of block after voting has ended in approval and this should be
@@ -2307,42 +2264,6 @@ declare module '@polkadot/api-base/types/submittable' {
2307
2264
  * Weight: `O(1)`
2308
2265
  **/
2309
2266
  fastTrack: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, votingPeriod: u32 | AnyNumber | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, u32]>;
2310
- /**
2311
- * Register the preimage for an upcoming proposal. This requires the proposal to be
2312
- * in the dispatch queue. No deposit is needed. When this call is successful, i.e.
2313
- * the preimage has not been uploaded before and matches some imminent proposal,
2314
- * no fee is paid.
2315
- *
2316
- * The dispatch origin of this call must be _Signed_.
2317
- *
2318
- * - `encoded_proposal`: The preimage of a proposal.
2319
- *
2320
- * Emits `PreimageNoted`.
2321
- *
2322
- * Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
2323
- **/
2324
- noteImminentPreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
2325
- /**
2326
- * Same as `note_imminent_preimage` but origin is `OperationalPreimageOrigin`.
2327
- **/
2328
- noteImminentPreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
2329
- /**
2330
- * Register the preimage for an upcoming proposal. This doesn't require the proposal to be
2331
- * in the dispatch queue but does require a deposit, returned once enacted.
2332
- *
2333
- * The dispatch origin of this call must be _Signed_.
2334
- *
2335
- * - `encoded_proposal`: The preimage of a proposal.
2336
- *
2337
- * Emits `PreimageNoted`.
2338
- *
2339
- * Weight: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
2340
- **/
2341
- notePreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
2342
- /**
2343
- * Same as `note_preimage` but origin is `OperationalPreimageOrigin`.
2344
- **/
2345
- notePreimageOperational: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
2346
2267
  /**
2347
2268
  * Propose a sensitive action to be taken.
2348
2269
  *
@@ -2353,28 +2274,14 @@ declare module '@polkadot/api-base/types/submittable' {
2353
2274
  * - `value`: The amount of deposit (must be at least `MinimumDeposit`).
2354
2275
  *
2355
2276
  * Emits `Proposed`.
2356
- *
2357
- * Weight: `O(p)`
2358
2277
  **/
2359
- propose: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u128>]>;
2360
- /**
2361
- * Remove an expired proposal preimage and collect the deposit.
2362
- *
2363
- * The dispatch origin of this call must be _Signed_.
2364
- *
2365
- * - `proposal_hash`: The preimage hash of a proposal.
2366
- * - `proposal_length_upper_bound`: an upper bound on length of the proposal. Extrinsic is
2367
- * weighted according to this value with no refund.
2368
- *
2369
- * This will only work after `VotingPeriod` blocks from the time that the preimage was
2370
- * noted, if it's the same account doing it. If it's a different account, then it'll only
2371
- * work an additional `EnactmentPeriod` later.
2372
- *
2373
- * Emits `PreimageReaped`.
2374
- *
2375
- * Weight: `O(D)` where D is length of proposal.
2376
- **/
2377
- reapPreimage: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array, proposalLenUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, Compact<u32>]>;
2278
+ propose: AugmentedSubmittable<(proposal: FrameSupportPreimagesBounded | {
2279
+ Legacy: any;
2280
+ } | {
2281
+ Inline: any;
2282
+ } | {
2283
+ Lookup: any;
2284
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportPreimagesBounded, Compact<u128>]>;
2378
2285
  /**
2379
2286
  * Remove a vote for a referendum.
2380
2287
  *
@@ -2440,12 +2347,8 @@ declare module '@polkadot/api-base/types/submittable' {
2440
2347
  * must have funds to cover the deposit, equal to the original deposit.
2441
2348
  *
2442
2349
  * - `proposal`: The index of the proposal to second.
2443
- * - `seconds_upper_bound`: an upper bound on the current number of seconds on this
2444
- * proposal. Extrinsic is weighted according to this value with no refund.
2445
- *
2446
- * Weight: `O(S)` where S is the number of seconds a proposal already has.
2447
2350
  **/
2448
- second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array, secondsUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Compact<u32>]>;
2351
+ second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
2449
2352
  /**
2450
2353
  * Undelegate the voting power of the sending account.
2451
2354
  *
@@ -2501,8 +2404,6 @@ declare module '@polkadot/api-base/types/submittable' {
2501
2404
  *
2502
2405
  * - `ref_index`: The index of the referendum to vote for.
2503
2406
  * - `vote`: The vote configuration.
2504
- *
2505
- * Weight: `O(R)` where R is the number of referendums the voter has voted on.
2506
2407
  **/
2507
2408
  vote: AugmentedSubmittable<(refIndex: Compact<u32> | AnyNumber | Uint8Array, vote: PalletDemocracyVoteAccountVote | {
2508
2409
  Standard: any;
@@ -3564,18 +3465,18 @@ declare module '@polkadot/api-base/types/submittable' {
3564
3465
  * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
3565
3466
  * -------------------------------
3566
3467
  * - DB Weight:
3567
- * - Reads: Multisig Storage, [Caller Account], Calls (if `store_call`)
3568
- * - Writes: Multisig Storage, [Caller Account], Calls (if `store_call`)
3468
+ * - Reads: Multisig Storage, [Caller Account]
3469
+ * - Writes: Multisig Storage, [Caller Account]
3569
3470
  * - Plus Call Weight
3570
3471
  * # </weight>
3571
3472
  **/
3572
3473
  asMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], maybeTimepoint: Option<PalletMultisigTimepoint> | null | Uint8Array | PalletMultisigTimepoint | {
3573
3474
  height?: any;
3574
3475
  index?: any;
3575
- } | string, call: WrapperKeepOpaque<Call> | object | string | Uint8Array, storeCall: bool | boolean | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
3476
+ } | string, call: Call | IMethod | string | Uint8Array, maxWeight: SpWeightsWeightV2Weight | {
3576
3477
  refTime?: any;
3577
3478
  proofSize?: any;
3578
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, WrapperKeepOpaque<Call>, bool, SpWeightsWeightV2Weight]>;
3479
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Vec<AccountId32>, Option<PalletMultisigTimepoint>, Call, SpWeightsWeightV2Weight]>;
3579
3480
  /**
3580
3481
  * Immediately dispatch a multi-signature call using a single approval from the caller.
3581
3482
  *
@@ -3619,8 +3520,8 @@ declare module '@polkadot/api-base/types/submittable' {
3619
3520
  * - Storage: removes one item.
3620
3521
  * ----------------------------------
3621
3522
  * - DB Weight:
3622
- * - Read: Multisig Storage, [Caller Account], Refund Account, Calls
3623
- * - Write: Multisig Storage, [Caller Account], Refund Account, Calls
3523
+ * - Read: Multisig Storage, [Caller Account], Refund Account
3524
+ * - Write: Multisig Storage, [Caller Account], Refund Account
3624
3525
  * # </weight>
3625
3526
  **/
3626
3527
  cancelAsMulti: AugmentedSubmittable<(threshold: u16 | AnyNumber | Uint8Array, otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], timepoint: PalletMultisigTimepoint | {
@@ -3933,6 +3834,11 @@ declare module '@polkadot/api-base/types/submittable' {
3933
3834
  requestPreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
3934
3835
  /**
3935
3836
  * Clear an unrequested preimage from the runtime storage.
3837
+ *
3838
+ * If `len` is provided, then it will be a much cheaper operation.
3839
+ *
3840
+ * - `hash`: The hash of the preimage to be removed from the store.
3841
+ * - `len`: The length of the preimage of `hash`.
3936
3842
  **/
3937
3843
  unnotePreimage: AugmentedSubmittable<(hash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
3938
3844
  /**
@@ -4362,7 +4268,7 @@ declare module '@polkadot/api-base/types/submittable' {
4362
4268
  * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
4363
4269
  * available.
4364
4270
  * - `proposal_origin`: The origin from which the proposal should be executed.
4365
- * - `proposal_hash`: The hash of the proposal preimage.
4271
+ * - `proposal`: The proposal.
4366
4272
  * - `enactment_moment`: The moment that the proposal should be enacted.
4367
4273
  *
4368
4274
  * Emits `Submitted`.
@@ -4377,11 +4283,17 @@ declare module '@polkadot/api-base/types/submittable' {
4377
4283
  TechnicalCommittee: any;
4378
4284
  } | {
4379
4285
  AllianceMotion: any;
4380
- } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
4286
+ } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | {
4287
+ Legacy: any;
4288
+ } | {
4289
+ Inline: any;
4290
+ } | {
4291
+ Lookup: any;
4292
+ } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
4381
4293
  At: any;
4382
4294
  } | {
4383
4295
  After: any;
4384
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, H256, FrameSupportScheduleDispatchTime]>;
4296
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
4385
4297
  /**
4386
4298
  * Generic tx
4387
4299
  **/
@@ -4668,7 +4580,7 @@ declare module '@polkadot/api-base/types/submittable' {
4668
4580
  * - `origin`: must be `SubmitOrigin` and the account must have `SubmissionDeposit` funds
4669
4581
  * available.
4670
4582
  * - `proposal_origin`: The origin from which the proposal should be executed.
4671
- * - `proposal_hash`: The hash of the proposal preimage.
4583
+ * - `proposal`: The proposal.
4672
4584
  * - `enactment_moment`: The moment that the proposal should be enacted.
4673
4585
  *
4674
4586
  * Emits `Submitted`.
@@ -4683,11 +4595,17 @@ declare module '@polkadot/api-base/types/submittable' {
4683
4595
  TechnicalCommittee: any;
4684
4596
  } | {
4685
4597
  AllianceMotion: any;
4686
- } | string | Uint8Array, proposalHash: H256 | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
4598
+ } | string | Uint8Array, proposal: FrameSupportPreimagesBounded | {
4599
+ Legacy: any;
4600
+ } | {
4601
+ Inline: any;
4602
+ } | {
4603
+ Lookup: any;
4604
+ } | string | Uint8Array, enactmentMoment: FrameSupportScheduleDispatchTime | {
4687
4605
  At: any;
4688
4606
  } | {
4689
4607
  After: any;
4690
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, H256, FrameSupportScheduleDispatchTime]>;
4608
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeOriginCaller, FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime]>;
4691
4609
  /**
4692
4610
  * Generic tx
4693
4611
  **/
@@ -4711,15 +4629,11 @@ declare module '@polkadot/api-base/types/submittable' {
4711
4629
  /**
4712
4630
  * Cancel a named scheduled task.
4713
4631
  **/
4714
- cancelNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4632
+ cancelNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed]>;
4715
4633
  /**
4716
4634
  * Anonymously schedule a task.
4717
4635
  **/
4718
- schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4719
- Value: any;
4720
- } | {
4721
- Hash: any;
4722
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
4636
+ schedule: AugmentedSubmittable<(when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
4723
4637
  /**
4724
4638
  * Anonymously schedule a task after a delay.
4725
4639
  *
@@ -4727,19 +4641,11 @@ declare module '@polkadot/api-base/types/submittable' {
4727
4641
  * Same as [`schedule`].
4728
4642
  * # </weight>
4729
4643
  **/
4730
- scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4731
- Value: any;
4732
- } | {
4733
- Hash: any;
4734
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
4644
+ scheduleAfter: AugmentedSubmittable<(after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
4735
4645
  /**
4736
4646
  * Schedule a named task.
4737
4647
  **/
4738
- scheduleNamed: AugmentedSubmittable<(id: Bytes | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4739
- Value: any;
4740
- } | {
4741
- Hash: any;
4742
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
4648
+ scheduleNamed: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, when: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
4743
4649
  /**
4744
4650
  * Schedule a named task after a delay.
4745
4651
  *
@@ -4747,11 +4653,7 @@ declare module '@polkadot/api-base/types/submittable' {
4747
4653
  * Same as [`schedule_named`](Self::schedule_named).
4748
4654
  * # </weight>
4749
4655
  **/
4750
- scheduleNamedAfter: AugmentedSubmittable<(id: Bytes | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: FrameSupportScheduleMaybeHashed | {
4751
- Value: any;
4752
- } | {
4753
- Hash: any;
4754
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, u32, Option<ITuple<[u32, u32]>>, u8, FrameSupportScheduleMaybeHashed]>;
4656
+ scheduleNamedAfter: AugmentedSubmittable<(id: U8aFixed | string | Uint8Array, after: u32 | AnyNumber | Uint8Array, maybePeriodic: Option<ITuple<[u32, u32]>> | null | Uint8Array | ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array], priority: u8 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [U8aFixed, u32, Option<ITuple<[u32, u32]>>, u8, Call]>;
4755
4657
  /**
4756
4658
  * Generic tx
4757
4659
  **/
@@ -7366,7 +7268,7 @@ declare module '@polkadot/api-base/types/submittable' {
7366
7268
  **/
7367
7269
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
7368
7270
  };
7369
- voterBagsList: {
7271
+ voterList: {
7370
7272
  /**
7371
7273
  * Move the caller's Id directly in front of `lighter`.
7372
7274
  *
package/substrate/tx.js CHANGED
@@ -1,6 +1,8 @@
1
1
  // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
-
3
2
  /* eslint-disable */
3
+
4
4
  // import type lookup before we augment - in some environments
5
5
  // this is required to allow for ambient/previous definitions
6
- import '@polkadot/api-base/types/submittable'; // declare module
6
+ import '@polkadot/api-base/types/submittable';
7
+
8
+ // declare module