@polkadot/api-augment 8.3.2-2 → 8.3.3-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.
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/api-augment',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '8.3.2-2'
14
+ version: '8.3.3-1'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/kusama/tx.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ApiTypes } from '@polkadot/api-base/types';
2
2
  import type { Data } from '@polkadot/types';
3
3
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
- import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
4
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
7
  import type { FrameSupportScheduleMaybeHashed, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
@@ -994,10 +994,7 @@ declare module '@polkadot/api-base/types/submittable' {
994
994
  * - 1 event
995
995
  * # </weight>
996
996
  **/
997
- execute: AugmentedSubmittable<(proposal: Call | {
998
- callIndex?: any;
999
- args?: any;
1000
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
997
+ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
1001
998
  /**
1002
999
  * Add a new proposal to either be voted on or executed directly.
1003
1000
  *
@@ -1027,10 +1024,7 @@ declare module '@polkadot/api-base/types/submittable' {
1027
1024
  * - 1 event
1028
1025
  * # </weight>
1029
1026
  **/
1030
- propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | {
1031
- callIndex?: any;
1032
- args?: any;
1033
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1027
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1034
1028
  /**
1035
1029
  * Set the collective's membership.
1036
1030
  *
@@ -2394,10 +2388,7 @@ declare module '@polkadot/api-base/types/submittable' {
2394
2388
  * - Plus Call Weight
2395
2389
  * # </weight>
2396
2390
  **/
2397
- asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | {
2398
- callIndex?: any;
2399
- args?: any;
2400
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2391
+ asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2401
2392
  /**
2402
2393
  * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
2403
2394
  * for this operation will be unreserved on success.
@@ -2793,10 +2784,7 @@ declare module '@polkadot/api-base/types/submittable' {
2793
2784
  * Weight is a function of the number of proxies the user has (P).
2794
2785
  * # </weight>
2795
2786
  **/
2796
- proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | object | string | Uint8Array, call: Call | {
2797
- callIndex?: any;
2798
- args?: any;
2799
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
2787
+ proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
2800
2788
  /**
2801
2789
  * Dispatch the given `call` from an account that the sender is authorized for through
2802
2790
  * `add_proxy`.
@@ -2816,10 +2804,7 @@ declare module '@polkadot/api-base/types/submittable' {
2816
2804
  * - P: the number of proxies the user has.
2817
2805
  * # </weight>
2818
2806
  **/
2819
- proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | object | string | Uint8Array, call: Call | {
2820
- callIndex?: any;
2821
- args?: any;
2822
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
2807
+ proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<KusamaRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<KusamaRuntimeProxyType>, Call]>;
2823
2808
  /**
2824
2809
  * Remove the given announcement of a delegate.
2825
2810
  *
@@ -2901,10 +2886,7 @@ declare module '@polkadot/api-base/types/submittable' {
2901
2886
  * - `account`: The recovered account you want to make a call on-behalf-of.
2902
2887
  * - `call`: The call you want to make with the recovered account.
2903
2888
  **/
2904
- asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | {
2905
- callIndex?: any;
2906
- args?: any;
2907
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
2889
+ asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
2908
2890
  /**
2909
2891
  * Cancel the ability to use `as_recovered` for `account`.
2910
2892
  *
@@ -4200,10 +4182,7 @@ declare module '@polkadot/api-base/types/submittable' {
4200
4182
  * - 1 event
4201
4183
  * # </weight>
4202
4184
  **/
4203
- execute: AugmentedSubmittable<(proposal: Call | {
4204
- callIndex?: any;
4205
- args?: any;
4206
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
4185
+ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
4207
4186
  /**
4208
4187
  * Add a new proposal to either be voted on or executed directly.
4209
4188
  *
@@ -4233,10 +4212,7 @@ declare module '@polkadot/api-base/types/submittable' {
4233
4212
  * - 1 event
4234
4213
  * # </weight>
4235
4214
  **/
4236
- propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | {
4237
- callIndex?: any;
4238
- args?: any;
4239
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
4215
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
4240
4216
  /**
4241
4217
  * Set the collective's membership.
4242
4218
  *
@@ -4617,10 +4593,7 @@ declare module '@polkadot/api-base/types/submittable' {
4617
4593
  *
4618
4594
  * The dispatch origin for this call must be _Signed_.
4619
4595
  **/
4620
- asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | {
4621
- callIndex?: any;
4622
- args?: any;
4623
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
4596
+ asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
4624
4597
  /**
4625
4598
  * Send a batch of dispatch calls.
4626
4599
  *
@@ -4642,10 +4615,7 @@ declare module '@polkadot/api-base/types/submittable' {
4642
4615
  * and the error of the failed call. If all were successful, then the `BatchCompleted`
4643
4616
  * event is deposited.
4644
4617
  **/
4645
- batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
4646
- callIndex?: any;
4647
- args?: any;
4648
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4618
+ batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4649
4619
  /**
4650
4620
  * Send a batch of dispatch calls and atomically execute them.
4651
4621
  * The whole transaction will rollback and fail if any of the calls failed.
@@ -4662,10 +4632,7 @@ declare module '@polkadot/api-base/types/submittable' {
4662
4632
  * - Complexity: O(C) where C is the number of calls to be batched.
4663
4633
  * # </weight>
4664
4634
  **/
4665
- batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
4666
- callIndex?: any;
4667
- args?: any;
4668
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4635
+ batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4669
4636
  /**
4670
4637
  * Dispatches a function call with a provided origin.
4671
4638
  *
@@ -4690,10 +4657,7 @@ declare module '@polkadot/api-base/types/submittable' {
4690
4657
  ParachainsOrigin: any;
4691
4658
  } | {
4692
4659
  XcmPallet: any;
4693
- } | string | Uint8Array, call: Call | {
4694
- callIndex?: any;
4695
- args?: any;
4696
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, Call]>;
4660
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KusamaRuntimeOriginCaller, Call]>;
4697
4661
  /**
4698
4662
  * Generic tx
4699
4663
  **/
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "8.3.2-2",
23
+ "version": "8.3.3-1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -171,11 +171,11 @@
171
171
  },
172
172
  "dependencies": {
173
173
  "@babel/runtime": "^7.17.9",
174
- "@polkadot/api-base": "8.3.2-2",
175
- "@polkadot/rpc-augment": "8.3.2-2",
176
- "@polkadot/types": "8.3.2-2",
177
- "@polkadot/types-augment": "8.3.2-2",
178
- "@polkadot/types-codec": "8.3.2-2",
174
+ "@polkadot/api-base": "8.3.3-1",
175
+ "@polkadot/rpc-augment": "8.3.3-1",
176
+ "@polkadot/types": "8.3.3-1",
177
+ "@polkadot/types-augment": "8.3.3-1",
178
+ "@polkadot/types-codec": "8.3.3-1",
179
179
  "@polkadot/util": "^9.1.1"
180
180
  }
181
181
  }
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/api-augment',
6
6
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
7
  type: 'esm',
8
- version: '8.3.2-2'
8
+ version: '8.3.3-1'
9
9
  };
package/polkadot/tx.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ApiTypes } from '@polkadot/api-base/types';
2
2
  import type { Data } from '@polkadot/types';
3
3
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
- import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
4
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
7
  import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
@@ -994,10 +994,7 @@ declare module '@polkadot/api-base/types/submittable' {
994
994
  * - 1 event
995
995
  * # </weight>
996
996
  **/
997
- execute: AugmentedSubmittable<(proposal: Call | {
998
- callIndex?: any;
999
- args?: any;
1000
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
997
+ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
1001
998
  /**
1002
999
  * Add a new proposal to either be voted on or executed directly.
1003
1000
  *
@@ -1027,10 +1024,7 @@ declare module '@polkadot/api-base/types/submittable' {
1027
1024
  * - 1 event
1028
1025
  * # </weight>
1029
1026
  **/
1030
- propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | {
1031
- callIndex?: any;
1032
- args?: any;
1033
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1027
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1034
1028
  /**
1035
1029
  * Set the collective's membership.
1036
1030
  *
@@ -2343,10 +2337,7 @@ declare module '@polkadot/api-base/types/submittable' {
2343
2337
  * - Plus Call Weight
2344
2338
  * # </weight>
2345
2339
  **/
2346
- asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | {
2347
- callIndex?: any;
2348
- args?: any;
2349
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2340
+ asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2350
2341
  /**
2351
2342
  * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
2352
2343
  * for this operation will be unreserved on success.
@@ -2742,10 +2733,7 @@ declare module '@polkadot/api-base/types/submittable' {
2742
2733
  * Weight is a function of the number of proxies the user has (P).
2743
2734
  * # </weight>
2744
2735
  **/
2745
- proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | {
2746
- callIndex?: any;
2747
- args?: any;
2748
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
2736
+ proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
2749
2737
  /**
2750
2738
  * Dispatch the given `call` from an account that the sender is authorized for through
2751
2739
  * `add_proxy`.
@@ -2765,10 +2753,7 @@ declare module '@polkadot/api-base/types/submittable' {
2765
2753
  * - P: the number of proxies the user has.
2766
2754
  * # </weight>
2767
2755
  **/
2768
- proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | {
2769
- callIndex?: any;
2770
- args?: any;
2771
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
2756
+ proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
2772
2757
  /**
2773
2758
  * Remove the given announcement of a delegate.
2774
2759
  *
@@ -3683,10 +3668,7 @@ declare module '@polkadot/api-base/types/submittable' {
3683
3668
  * - 1 event
3684
3669
  * # </weight>
3685
3670
  **/
3686
- execute: AugmentedSubmittable<(proposal: Call | {
3687
- callIndex?: any;
3688
- args?: any;
3689
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
3671
+ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
3690
3672
  /**
3691
3673
  * Add a new proposal to either be voted on or executed directly.
3692
3674
  *
@@ -3716,10 +3698,7 @@ declare module '@polkadot/api-base/types/submittable' {
3716
3698
  * - 1 event
3717
3699
  * # </weight>
3718
3700
  **/
3719
- propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | {
3720
- callIndex?: any;
3721
- args?: any;
3722
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
3701
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
3723
3702
  /**
3724
3703
  * Set the collective's membership.
3725
3704
  *
@@ -4100,10 +4079,7 @@ declare module '@polkadot/api-base/types/submittable' {
4100
4079
  *
4101
4080
  * The dispatch origin for this call must be _Signed_.
4102
4081
  **/
4103
- asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | {
4104
- callIndex?: any;
4105
- args?: any;
4106
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
4082
+ asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
4107
4083
  /**
4108
4084
  * Send a batch of dispatch calls.
4109
4085
  *
@@ -4125,10 +4101,7 @@ declare module '@polkadot/api-base/types/submittable' {
4125
4101
  * and the error of the failed call. If all were successful, then the `BatchCompleted`
4126
4102
  * event is deposited.
4127
4103
  **/
4128
- batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
4129
- callIndex?: any;
4130
- args?: any;
4131
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4104
+ batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4132
4105
  /**
4133
4106
  * Send a batch of dispatch calls and atomically execute them.
4134
4107
  * The whole transaction will rollback and fail if any of the calls failed.
@@ -4145,10 +4118,7 @@ declare module '@polkadot/api-base/types/submittable' {
4145
4118
  * - Complexity: O(C) where C is the number of calls to be batched.
4146
4119
  * # </weight>
4147
4120
  **/
4148
- batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
4149
- callIndex?: any;
4150
- args?: any;
4151
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4121
+ batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
4152
4122
  /**
4153
4123
  * Dispatches a function call with a provided origin.
4154
4124
  *
@@ -4173,10 +4143,7 @@ declare module '@polkadot/api-base/types/submittable' {
4173
4143
  ParachainsOrigin: any;
4174
4144
  } | {
4175
4145
  XcmPallet: any;
4176
- } | string | Uint8Array, call: Call | {
4177
- callIndex?: any;
4178
- args?: any;
4179
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
4146
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PolkadotRuntimeOriginCaller, Call]>;
4180
4147
  /**
4181
4148
  * Generic tx
4182
4149
  **/
package/substrate/tx.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ApiTypes } from '@polkadot/api-base/types';
2
2
  import type { Data } from '@polkadot/types';
3
3
  import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
- import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
4
+ import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
6
6
  import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
7
7
  declare module '@polkadot/api-base/types/submittable' {
@@ -1565,10 +1565,7 @@ declare module '@polkadot/api-base/types/submittable' {
1565
1565
  * - 1 event
1566
1566
  * # </weight>
1567
1567
  **/
1568
- execute: AugmentedSubmittable<(proposal: Call | {
1569
- callIndex?: any;
1570
- args?: any;
1571
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
1568
+ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
1572
1569
  /**
1573
1570
  * Add a new proposal to either be voted on or executed directly.
1574
1571
  *
@@ -1598,10 +1595,7 @@ declare module '@polkadot/api-base/types/submittable' {
1598
1595
  * - 1 event
1599
1596
  * # </weight>
1600
1597
  **/
1601
- propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | {
1602
- callIndex?: any;
1603
- args?: any;
1604
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1598
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
1605
1599
  /**
1606
1600
  * Set the collective's membership.
1607
1601
  *
@@ -2831,10 +2825,7 @@ declare module '@polkadot/api-base/types/submittable' {
2831
2825
  *
2832
2826
  * This extrinsic must be called by a signed origin.
2833
2827
  **/
2834
- buyTicket: AugmentedSubmittable<(call: Call | {
2835
- callIndex?: any;
2836
- args?: any;
2837
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
2828
+ buyTicket: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
2838
2829
  /**
2839
2830
  * Set calls in storage which can be used to purchase a lottery ticket.
2840
2831
  *
@@ -2843,10 +2834,7 @@ declare module '@polkadot/api-base/types/submittable' {
2843
2834
  *
2844
2835
  * This extrinsic must be called by the Manager origin.
2845
2836
  **/
2846
- setCalls: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
2847
- callIndex?: any;
2848
- args?: any;
2849
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
2837
+ setCalls: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
2850
2838
  /**
2851
2839
  * Start a lottery using the provided configuration.
2852
2840
  *
@@ -2977,10 +2965,7 @@ declare module '@polkadot/api-base/types/submittable' {
2977
2965
  * - Plus Call Weight
2978
2966
  * # </weight>
2979
2967
  **/
2980
- asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | {
2981
- callIndex?: any;
2982
- args?: any;
2983
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2968
+ asMultiThreshold1: AugmentedSubmittable<(otherSignatories: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Call]>;
2984
2969
  /**
2985
2970
  * Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously
2986
2971
  * for this operation will be unreserved on success.
@@ -3322,10 +3307,7 @@ declare module '@polkadot/api-base/types/submittable' {
3322
3307
  * Weight is a function of the number of proxies the user has (P).
3323
3308
  * # </weight>
3324
3309
  **/
3325
- proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | {
3326
- callIndex?: any;
3327
- args?: any;
3328
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<NodeRuntimeProxyType>, Call]>;
3310
+ proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<NodeRuntimeProxyType>, Call]>;
3329
3311
  /**
3330
3312
  * Dispatch the given `call` from an account that the sender is authorized for through
3331
3313
  * `add_proxy`.
@@ -3345,10 +3327,7 @@ declare module '@polkadot/api-base/types/submittable' {
3345
3327
  * - P: the number of proxies the user has.
3346
3328
  * # </weight>
3347
3329
  **/
3348
- proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | {
3349
- callIndex?: any;
3350
- args?: any;
3351
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<NodeRuntimeProxyType>, Call]>;
3330
+ proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<NodeRuntimeProxyType> | null | object | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<NodeRuntimeProxyType>, Call]>;
3352
3331
  /**
3353
3332
  * Remove the given announcement of a delegate.
3354
3333
  *
@@ -3430,10 +3409,7 @@ declare module '@polkadot/api-base/types/submittable' {
3430
3409
  * - `account`: The recovered account you want to make a call on-behalf-of.
3431
3410
  * - `call`: The call you want to make with the recovered account.
3432
3411
  **/
3433
- asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | {
3434
- callIndex?: any;
3435
- args?: any;
3436
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
3412
+ asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Call]>;
3437
3413
  /**
3438
3414
  * Cancel the ability to use `as_recovered` for `account`.
3439
3415
  *
@@ -4714,10 +4690,7 @@ declare module '@polkadot/api-base/types/submittable' {
4714
4690
  * - Weight of derivative `call` execution + 10,000.
4715
4691
  * # </weight>
4716
4692
  **/
4717
- sudo: AugmentedSubmittable<(call: Call | {
4718
- callIndex?: any;
4719
- args?: any;
4720
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
4693
+ sudo: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
4721
4694
  /**
4722
4695
  * Authenticates the sudo key and dispatches a function call with `Signed` origin from
4723
4696
  * a given account.
@@ -4741,10 +4714,7 @@ declare module '@polkadot/api-base/types/submittable' {
4741
4714
  Address32: any;
4742
4715
  } | {
4743
4716
  Address20: any;
4744
- } | string | Uint8Array, call: Call | {
4745
- callIndex?: any;
4746
- args?: any;
4747
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
4717
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Call]>;
4748
4718
  /**
4749
4719
  * Authenticates the sudo key and dispatches a function call with `Root` origin.
4750
4720
  * This function does not check the weight of the call, and instead allows the
@@ -4757,10 +4727,7 @@ declare module '@polkadot/api-base/types/submittable' {
4757
4727
  * - The weight of this call is defined by the caller.
4758
4728
  * # </weight>
4759
4729
  **/
4760
- sudoUncheckedWeight: AugmentedSubmittable<(call: Call | {
4761
- callIndex?: any;
4762
- args?: any;
4763
- } | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
4730
+ sudoUncheckedWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, u64]>;
4764
4731
  /**
4765
4732
  * Generic tx
4766
4733
  **/
@@ -4900,10 +4867,7 @@ declare module '@polkadot/api-base/types/submittable' {
4900
4867
  * - 1 event
4901
4868
  * # </weight>
4902
4869
  **/
4903
- execute: AugmentedSubmittable<(proposal: Call | {
4904
- callIndex?: any;
4905
- args?: any;
4906
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
4870
+ execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
4907
4871
  /**
4908
4872
  * Add a new proposal to either be voted on or executed directly.
4909
4873
  *
@@ -4933,10 +4897,7 @@ declare module '@polkadot/api-base/types/submittable' {
4933
4897
  * - 1 event
4934
4898
  * # </weight>
4935
4899
  **/
4936
- propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | {
4937
- callIndex?: any;
4938
- args?: any;
4939
- } | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
4900
+ propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
4940
4901
  /**
4941
4902
  * Set the collective's membership.
4942
4903
  *
@@ -5851,10 +5812,7 @@ declare module '@polkadot/api-base/types/submittable' {
5851
5812
  *
5852
5813
  * The dispatch origin for this call must be _Signed_.
5853
5814
  **/
5854
- asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | {
5855
- callIndex?: any;
5856
- args?: any;
5857
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
5815
+ asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
5858
5816
  /**
5859
5817
  * Send a batch of dispatch calls.
5860
5818
  *
@@ -5876,10 +5834,7 @@ declare module '@polkadot/api-base/types/submittable' {
5876
5834
  * and the error of the failed call. If all were successful, then the `BatchCompleted`
5877
5835
  * event is deposited.
5878
5836
  **/
5879
- batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
5880
- callIndex?: any;
5881
- args?: any;
5882
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
5837
+ batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
5883
5838
  /**
5884
5839
  * Send a batch of dispatch calls and atomically execute them.
5885
5840
  * The whole transaction will rollback and fail if any of the calls failed.
@@ -5896,10 +5851,7 @@ declare module '@polkadot/api-base/types/submittable' {
5896
5851
  * - Complexity: O(C) where C is the number of calls to be batched.
5897
5852
  * # </weight>
5898
5853
  **/
5899
- batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | {
5900
- callIndex?: any;
5901
- args?: any;
5902
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
5854
+ batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
5903
5855
  /**
5904
5856
  * Dispatches a function call with a provided origin.
5905
5857
  *
@@ -5920,10 +5872,7 @@ declare module '@polkadot/api-base/types/submittable' {
5920
5872
  Council: any;
5921
5873
  } | {
5922
5874
  TechnicalCommittee: any;
5923
- } | string | Uint8Array, call: Call | {
5924
- callIndex?: any;
5925
- args?: any;
5926
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, Call]>;
5875
+ } | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [NodeRuntimeOriginCaller, Call]>;
5927
5876
  /**
5928
5877
  * Generic tx
5929
5878
  **/
@@ -6084,10 +6033,7 @@ declare module '@polkadot/api-base/types/submittable' {
6084
6033
  };
6085
6034
  whitelist: {
6086
6035
  dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u64]>;
6087
- dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | {
6088
- callIndex?: any;
6089
- args?: any;
6090
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
6036
+ dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
6091
6037
  removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
6092
6038
  whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
6093
6039
  /**