@polkadot/api-augment 9.2.2 → 9.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.
package/polkadot/tx.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u1
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
7
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- 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';
8
+ import type { FrameSupportScheduleMaybeHashed, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, 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';
9
9
  export declare type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export declare type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
11
11
  export declare type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -1235,7 +1235,17 @@ declare module '@polkadot/api-base/types/submittable' {
1235
1235
  * Weight: `O(R)` where R is the number of referendums the voter delegating to has
1236
1236
  * voted on. Weight is charged as if maximum votes.
1237
1237
  **/
1238
- delegate: AugmentedSubmittable<(to: AccountId32 | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PalletDemocracyConviction, u128]>;
1238
+ delegate: AugmentedSubmittable<(to: MultiAddress | {
1239
+ Id: any;
1240
+ } | {
1241
+ Index: any;
1242
+ } | {
1243
+ Raw: any;
1244
+ } | {
1245
+ Address32: any;
1246
+ } | {
1247
+ Address20: any;
1248
+ } | string | Uint8Array, conviction: PalletDemocracyConviction | 'None' | 'Locked1x' | 'Locked2x' | 'Locked3x' | 'Locked4x' | 'Locked5x' | 'Locked6x' | number | Uint8Array, balance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletDemocracyConviction, u128]>;
1239
1249
  /**
1240
1250
  * Schedule an emergency cancellation of a referendum. Cannot happen twice to the same
1241
1251
  * referendum.
@@ -1395,7 +1405,17 @@ declare module '@polkadot/api-base/types/submittable' {
1395
1405
  * Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on.
1396
1406
  * Weight is calculated for the maximum number of vote.
1397
1407
  **/
1398
- removeOtherVote: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
1408
+ removeOtherVote: AugmentedSubmittable<(target: MultiAddress | {
1409
+ Id: any;
1410
+ } | {
1411
+ Index: any;
1412
+ } | {
1413
+ Raw: any;
1414
+ } | {
1415
+ Address32: any;
1416
+ } | {
1417
+ Address20: any;
1418
+ } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
1399
1419
  /**
1400
1420
  * Remove a vote for a referendum.
1401
1421
  *
@@ -1463,7 +1483,17 @@ declare module '@polkadot/api-base/types/submittable' {
1463
1483
  *
1464
1484
  * Weight: `O(R)` with R number of vote of target.
1465
1485
  **/
1466
- unlock: AugmentedSubmittable<(target: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
1486
+ unlock: AugmentedSubmittable<(target: MultiAddress | {
1487
+ Id: any;
1488
+ } | {
1489
+ Index: any;
1490
+ } | {
1491
+ Raw: any;
1492
+ } | {
1493
+ Address32: any;
1494
+ } | {
1495
+ Address20: any;
1496
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
1467
1497
  /**
1468
1498
  * Veto and blacklist the external proposal hash.
1469
1499
  *
@@ -1729,7 +1759,17 @@ declare module '@polkadot/api-base/types/submittable' {
1729
1759
  * - One event.
1730
1760
  * # </weight>
1731
1761
  **/
1732
- addRegistrar: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
1762
+ addRegistrar: AugmentedSubmittable<(account: MultiAddress | {
1763
+ Id: any;
1764
+ } | {
1765
+ Index: any;
1766
+ } | {
1767
+ Raw: any;
1768
+ } | {
1769
+ Address32: any;
1770
+ } | {
1771
+ Address20: any;
1772
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
1733
1773
  /**
1734
1774
  * Add the given account to the sender's subs.
1735
1775
  *
@@ -1984,7 +2024,17 @@ declare module '@polkadot/api-base/types/submittable' {
1984
2024
  * - Benchmark: 8.823 + R * 0.32 µs (min squares analysis)
1985
2025
  * # </weight>
1986
2026
  **/
1987
- setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, AccountId32]>;
2027
+ setAccountId: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, updated: MultiAddress | {
2028
+ Id: any;
2029
+ } | {
2030
+ Index: any;
2031
+ } | {
2032
+ Raw: any;
2033
+ } | {
2034
+ Address32: any;
2035
+ } | {
2036
+ Address20: any;
2037
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
1988
2038
  /**
1989
2039
  * Set the fee required for a judgement to be requested from a registrar.
1990
2040
  *
@@ -2159,7 +2209,17 @@ declare module '@polkadot/api-base/types/submittable' {
2159
2209
  * - Writes: Indices Accounts, System Account (original owner)
2160
2210
  * # </weight>
2161
2211
  **/
2162
- forceTransfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, bool]>;
2212
+ forceTransfer: AugmentedSubmittable<(updated: MultiAddress | {
2213
+ Id: any;
2214
+ } | {
2215
+ Index: any;
2216
+ } | {
2217
+ Raw: any;
2218
+ } | {
2219
+ Address32: any;
2220
+ } | {
2221
+ Address20: any;
2222
+ } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32, bool]>;
2163
2223
  /**
2164
2224
  * Free up an index owned by the sender.
2165
2225
  *
@@ -2224,7 +2284,17 @@ declare module '@polkadot/api-base/types/submittable' {
2224
2284
  * - Writes: Indices Accounts, System Account (recipient)
2225
2285
  * # </weight>
2226
2286
  **/
2227
- transfer: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
2287
+ transfer: AugmentedSubmittable<(updated: MultiAddress | {
2288
+ Id: any;
2289
+ } | {
2290
+ Index: any;
2291
+ } | {
2292
+ Raw: any;
2293
+ } | {
2294
+ Address32: any;
2295
+ } | {
2296
+ Address20: any;
2297
+ } | string | Uint8Array, index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
2228
2298
  /**
2229
2299
  * Generic tx
2230
2300
  **/
@@ -2391,6 +2461,290 @@ declare module '@polkadot/api-base/types/submittable' {
2391
2461
  **/
2392
2462
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
2393
2463
  };
2464
+ nominationPools: {
2465
+ /**
2466
+ * Bond `extra` more funds from `origin` into the pool to which they already belong.
2467
+ *
2468
+ * Additional funds can come from either the free balance of the account, of from the
2469
+ * accumulated rewards, see [`BondExtra`].
2470
+ *
2471
+ * Bonding extra funds implies an automatic payout of all pending rewards as well.
2472
+ **/
2473
+ bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
2474
+ FreeBalance: any;
2475
+ } | {
2476
+ Rewards: any;
2477
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
2478
+ /**
2479
+ * Chill on behalf of the pool.
2480
+ *
2481
+ * The dispatch origin of this call must be signed by the pool nominator or the pool
2482
+ * root role, same as [`Pallet::nominate`].
2483
+ *
2484
+ * This directly forward the call to the staking pallet, on behalf of the pool bonded
2485
+ * account.
2486
+ **/
2487
+ chill: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2488
+ /**
2489
+ * A bonded member can use this to claim their payout based on the rewards that the pool
2490
+ * has accumulated since their last claimed payout (OR since joining if this is there first
2491
+ * time claiming rewards). The payout will be transferred to the member's account.
2492
+ *
2493
+ * The member will earn rewards pro rata based on the members stake vs the sum of the
2494
+ * members in the pools stake. Rewards do not "expire".
2495
+ **/
2496
+ claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2497
+ /**
2498
+ * Create a new delegation pool.
2499
+ *
2500
+ * # Arguments
2501
+ *
2502
+ * * `amount` - The amount of funds to delegate to the pool. This also acts of a sort of
2503
+ * deposit since the pools creator cannot fully unbond funds until the pool is being
2504
+ * destroyed.
2505
+ * * `index` - A disambiguation index for creating the account. Likely only useful when
2506
+ * creating multiple pools in the same extrinsic.
2507
+ * * `root` - The account to set as [`PoolRoles::root`].
2508
+ * * `nominator` - The account to set as the [`PoolRoles::nominator`].
2509
+ * * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
2510
+ *
2511
+ * # Note
2512
+ *
2513
+ * In addition to `amount`, the caller will transfer the existential deposit; so the caller
2514
+ * needs at have at least `amount + existential_deposit` transferrable.
2515
+ **/
2516
+ create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | {
2517
+ Id: any;
2518
+ } | {
2519
+ Index: any;
2520
+ } | {
2521
+ Raw: any;
2522
+ } | {
2523
+ Address32: any;
2524
+ } | {
2525
+ Address20: any;
2526
+ } | string | Uint8Array, nominator: MultiAddress | {
2527
+ Id: any;
2528
+ } | {
2529
+ Index: any;
2530
+ } | {
2531
+ Raw: any;
2532
+ } | {
2533
+ Address32: any;
2534
+ } | {
2535
+ Address20: any;
2536
+ } | string | Uint8Array, stateToggler: MultiAddress | {
2537
+ Id: any;
2538
+ } | {
2539
+ Index: any;
2540
+ } | {
2541
+ Raw: any;
2542
+ } | {
2543
+ Address32: any;
2544
+ } | {
2545
+ Address20: any;
2546
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress]>;
2547
+ /**
2548
+ * Stake funds with a pool. The amount to bond is transferred from the member to the
2549
+ * pools account and immediately increases the pools bond.
2550
+ *
2551
+ * # Note
2552
+ *
2553
+ * * An account can only be a member of a single pool.
2554
+ * * An account cannot join the same pool multiple times.
2555
+ * * This call will *not* dust the member account, so the member must have at least
2556
+ * `existential deposit + amount` in their account.
2557
+ * * Only a pool with [`PoolState::Open`] can be joined
2558
+ **/
2559
+ join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
2560
+ /**
2561
+ * Nominate on behalf of the pool.
2562
+ *
2563
+ * The dispatch origin of this call must be signed by the pool nominator or the pool
2564
+ * root role.
2565
+ *
2566
+ * This directly forward the call to the staking pallet, on behalf of the pool bonded
2567
+ * account.
2568
+ **/
2569
+ nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
2570
+ /**
2571
+ * Call `withdraw_unbonded` for the pools account. This call can be made by any account.
2572
+ *
2573
+ * This is useful if their are too many unlocking chunks to call `unbond`, and some
2574
+ * can be cleared by withdrawing. In the case there are too many unlocking chunks, the user
2575
+ * would probably see an error like `NoMoreChunks` emitted from the staking system when
2576
+ * they attempt to unbond.
2577
+ **/
2578
+ poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
2579
+ /**
2580
+ * Update configurations for the nomination pools. The origin for this call must be
2581
+ * Root.
2582
+ *
2583
+ * # Arguments
2584
+ *
2585
+ * * `min_join_bond` - Set [`MinJoinBond`].
2586
+ * * `min_create_bond` - Set [`MinCreateBond`].
2587
+ * * `max_pools` - Set [`MaxPools`].
2588
+ * * `max_members` - Set [`MaxPoolMembers`].
2589
+ * * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
2590
+ **/
2591
+ setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | {
2592
+ Noop: any;
2593
+ } | {
2594
+ Set: any;
2595
+ } | {
2596
+ Remove: any;
2597
+ } | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | {
2598
+ Noop: any;
2599
+ } | {
2600
+ Set: any;
2601
+ } | {
2602
+ Remove: any;
2603
+ } | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | {
2604
+ Noop: any;
2605
+ } | {
2606
+ Set: any;
2607
+ } | {
2608
+ Remove: any;
2609
+ } | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | {
2610
+ Noop: any;
2611
+ } | {
2612
+ Set: any;
2613
+ } | {
2614
+ Remove: any;
2615
+ } | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | {
2616
+ Noop: any;
2617
+ } | {
2618
+ Set: any;
2619
+ } | {
2620
+ Remove: any;
2621
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
2622
+ /**
2623
+ * Set a new metadata for the pool.
2624
+ *
2625
+ * The dispatch origin of this call must be signed by the state toggler, or the root role
2626
+ * of the pool.
2627
+ **/
2628
+ setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
2629
+ /**
2630
+ * Set a new state for the pool.
2631
+ *
2632
+ * If a pool is already in the `Destroying` state, then under no condition can its state
2633
+ * change again.
2634
+ *
2635
+ * The dispatch origin of this call must be either:
2636
+ *
2637
+ * 1. signed by the state toggler, or the root role of the pool,
2638
+ * 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
2639
+ * then the state of the pool can be permissionlessly changed to `Destroying`.
2640
+ **/
2641
+ setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
2642
+ /**
2643
+ * Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
2644
+ * implicitly collects the rewards one last time, since not doing so would mean some
2645
+ * rewards would be forfeited.
2646
+ *
2647
+ * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
2648
+ * account).
2649
+ *
2650
+ * # Conditions for a permissionless dispatch.
2651
+ *
2652
+ * * The pool is blocked and the caller is either the root or state-toggler. This is
2653
+ * refereed to as a kick.
2654
+ * * The pool is destroying and the member is not the depositor.
2655
+ * * The pool is destroying, the member is the depositor and no other members are in the
2656
+ * pool.
2657
+ *
2658
+ * ## Conditions for permissioned dispatch (i.e. the caller is also the
2659
+ * `member_account`):
2660
+ *
2661
+ * * The caller is not the depositor.
2662
+ * * The caller is the depositor, the pool is destroying and no other members are in the
2663
+ * pool.
2664
+ *
2665
+ * # Note
2666
+ *
2667
+ * If there are too many unlocking chunks to unbond with the pool account,
2668
+ * [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. If
2669
+ * there are too many unlocking chunks, the result of this call will likely be the
2670
+ * `NoMoreChunks` error from the staking system.
2671
+ **/
2672
+ unbond: AugmentedSubmittable<(memberAccount: MultiAddress | {
2673
+ Id: any;
2674
+ } | {
2675
+ Index: any;
2676
+ } | {
2677
+ Raw: any;
2678
+ } | {
2679
+ Address32: any;
2680
+ } | {
2681
+ Address20: any;
2682
+ } | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
2683
+ /**
2684
+ * Update the roles of the pool.
2685
+ *
2686
+ * The root is the only entity that can change any of the roles, including itself,
2687
+ * excluding the depositor, who can never change.
2688
+ *
2689
+ * It emits an event, notifying UIs of the role change. This event is quite relevant to
2690
+ * most pool members and they should be informed of changes to pool roles.
2691
+ **/
2692
+ updateRoles: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, newRoot: PalletNominationPoolsConfigOpAccountId32 | {
2693
+ Noop: any;
2694
+ } | {
2695
+ Set: any;
2696
+ } | {
2697
+ Remove: any;
2698
+ } | string | Uint8Array, newNominator: PalletNominationPoolsConfigOpAccountId32 | {
2699
+ Noop: any;
2700
+ } | {
2701
+ Set: any;
2702
+ } | {
2703
+ Remove: any;
2704
+ } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | {
2705
+ Noop: any;
2706
+ } | {
2707
+ Set: any;
2708
+ } | {
2709
+ Remove: any;
2710
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpAccountId32]>;
2711
+ /**
2712
+ * Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
2713
+ * error is returned.
2714
+ *
2715
+ * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
2716
+ * account).
2717
+ *
2718
+ * # Conditions for a permissionless dispatch
2719
+ *
2720
+ * * The pool is in destroy mode and the target is not the depositor.
2721
+ * * The target is the depositor and they are the only member in the sub pools.
2722
+ * * The pool is blocked and the caller is either the root or state-toggler.
2723
+ *
2724
+ * # Conditions for permissioned dispatch
2725
+ *
2726
+ * * The caller is the target and they are not the depositor.
2727
+ *
2728
+ * # Note
2729
+ *
2730
+ * If the target is the depositor, the pool will be destroyed.
2731
+ **/
2732
+ withdrawUnbonded: AugmentedSubmittable<(memberAccount: MultiAddress | {
2733
+ Id: any;
2734
+ } | {
2735
+ Index: any;
2736
+ } | {
2737
+ Raw: any;
2738
+ } | {
2739
+ Address32: any;
2740
+ } | {
2741
+ Address20: any;
2742
+ } | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
2743
+ /**
2744
+ * Generic tx
2745
+ **/
2746
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2747
+ };
2394
2748
  paraInclusion: {
2395
2749
  /**
2396
2750
  * Generic tx
@@ -2662,7 +3016,17 @@ declare module '@polkadot/api-base/types/submittable' {
2662
3016
  * Weight is a function of the number of proxies the user has (P).
2663
3017
  * # </weight>
2664
3018
  **/
2665
- addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u32]>;
3019
+ addProxy: AugmentedSubmittable<(delegate: MultiAddress | {
3020
+ Id: any;
3021
+ } | {
3022
+ Index: any;
3023
+ } | {
3024
+ Raw: any;
3025
+ } | {
3026
+ Address32: any;
3027
+ } | {
3028
+ Address20: any;
3029
+ } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
2666
3030
  /**
2667
3031
  * Publish the hash of a proxy-call that will be made in the future.
2668
3032
  *
@@ -2686,7 +3050,17 @@ declare module '@polkadot/api-base/types/submittable' {
2686
3050
  * - P: the number of proxies the user has.
2687
3051
  * # </weight>
2688
3052
  **/
2689
- announce: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
3053
+ announce: AugmentedSubmittable<(real: MultiAddress | {
3054
+ Id: any;
3055
+ } | {
3056
+ Index: any;
3057
+ } | {
3058
+ Raw: any;
3059
+ } | {
3060
+ Address32: any;
3061
+ } | {
3062
+ Address20: any;
3063
+ } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
2690
3064
  /**
2691
3065
  * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
2692
3066
  * initialize it with a proxy of `proxy_type` for `origin` sender.
@@ -2735,7 +3109,17 @@ declare module '@polkadot/api-base/types/submittable' {
2735
3109
  * Weight is a function of the number of proxies the user has (P).
2736
3110
  * # </weight>
2737
3111
  **/
2738
- killAnonymous: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
3112
+ killAnonymous: AugmentedSubmittable<(spawner: MultiAddress | {
3113
+ Id: any;
3114
+ } | {
3115
+ Index: any;
3116
+ } | {
3117
+ Raw: any;
3118
+ } | {
3119
+ Address32: any;
3120
+ } | {
3121
+ Address20: any;
3122
+ } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
2739
3123
  /**
2740
3124
  * Dispatch the given `call` from an account that the sender is authorised for through
2741
3125
  * `add_proxy`.
@@ -2753,7 +3137,17 @@ declare module '@polkadot/api-base/types/submittable' {
2753
3137
  * Weight is a function of the number of proxies the user has (P).
2754
3138
  * # </weight>
2755
3139
  **/
2756
- proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
3140
+ proxy: AugmentedSubmittable<(real: MultiAddress | {
3141
+ Id: any;
3142
+ } | {
3143
+ Index: any;
3144
+ } | {
3145
+ Raw: any;
3146
+ } | {
3147
+ Address32: any;
3148
+ } | {
3149
+ Address20: any;
3150
+ } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
2757
3151
  /**
2758
3152
  * Dispatch the given `call` from an account that the sender is authorized for through
2759
3153
  * `add_proxy`.
@@ -2773,7 +3167,27 @@ declare module '@polkadot/api-base/types/submittable' {
2773
3167
  * - P: the number of proxies the user has.
2774
3168
  * # </weight>
2775
3169
  **/
2776
- proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<PolkadotRuntimeProxyType>, Call]>;
3170
+ proxyAnnounced: AugmentedSubmittable<(delegate: MultiAddress | {
3171
+ Id: any;
3172
+ } | {
3173
+ Index: any;
3174
+ } | {
3175
+ Raw: any;
3176
+ } | {
3177
+ Address32: any;
3178
+ } | {
3179
+ Address20: any;
3180
+ } | string | Uint8Array, real: MultiAddress | {
3181
+ Id: any;
3182
+ } | {
3183
+ Index: any;
3184
+ } | {
3185
+ Raw: any;
3186
+ } | {
3187
+ Address32: any;
3188
+ } | {
3189
+ Address20: any;
3190
+ } | string | Uint8Array, forceProxyType: Option<PolkadotRuntimeProxyType> | null | Uint8Array | PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Option<PolkadotRuntimeProxyType>, Call]>;
2777
3191
  /**
2778
3192
  * Remove the given announcement of a delegate.
2779
3193
  *
@@ -2792,7 +3206,17 @@ declare module '@polkadot/api-base/types/submittable' {
2792
3206
  * - P: the number of proxies the user has.
2793
3207
  * # </weight>
2794
3208
  **/
2795
- rejectAnnouncement: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
3209
+ rejectAnnouncement: AugmentedSubmittable<(delegate: MultiAddress | {
3210
+ Id: any;
3211
+ } | {
3212
+ Index: any;
3213
+ } | {
3214
+ Raw: any;
3215
+ } | {
3216
+ Address32: any;
3217
+ } | {
3218
+ Address20: any;
3219
+ } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
2796
3220
  /**
2797
3221
  * Remove a given announcement.
2798
3222
  *
@@ -2811,7 +3235,17 @@ declare module '@polkadot/api-base/types/submittable' {
2811
3235
  * - P: the number of proxies the user has.
2812
3236
  * # </weight>
2813
3237
  **/
2814
- removeAnnouncement: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, H256]>;
3238
+ removeAnnouncement: AugmentedSubmittable<(real: MultiAddress | {
3239
+ Id: any;
3240
+ } | {
3241
+ Index: any;
3242
+ } | {
3243
+ Raw: any;
3244
+ } | {
3245
+ Address32: any;
3246
+ } | {
3247
+ Address20: any;
3248
+ } | string | Uint8Array, callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
2815
3249
  /**
2816
3250
  * Unregister all proxy accounts for the sender.
2817
3251
  *
@@ -2838,7 +3272,17 @@ declare module '@polkadot/api-base/types/submittable' {
2838
3272
  * Weight is a function of the number of proxies the user has (P).
2839
3273
  * # </weight>
2840
3274
  **/
2841
- removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, PolkadotRuntimeProxyType, u32]>;
3275
+ removeProxy: AugmentedSubmittable<(delegate: MultiAddress | {
3276
+ Id: any;
3277
+ } | {
3278
+ Index: any;
3279
+ } | {
3280
+ Raw: any;
3281
+ } | {
3282
+ Address32: any;
3283
+ } | {
3284
+ Address20: any;
3285
+ } | string | Uint8Array, proxyType: PolkadotRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Staking' | 'IdentityJudgement' | 'CancelProxy' | 'Auction' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PolkadotRuntimeProxyType, u32]>;
2842
3286
  /**
2843
3287
  * Generic tx
2844
3288
  **/
@@ -3783,7 +4227,17 @@ declare module '@polkadot/api-base/types/submittable' {
3783
4227
  *
3784
4228
  * May only be called from `T::AddOrigin`.
3785
4229
  **/
3786
- addMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
4230
+ addMember: AugmentedSubmittable<(who: MultiAddress | {
4231
+ Id: any;
4232
+ } | {
4233
+ Index: any;
4234
+ } | {
4235
+ Raw: any;
4236
+ } | {
4237
+ Address32: any;
4238
+ } | {
4239
+ Address20: any;
4240
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
3787
4241
  /**
3788
4242
  * Swap out the sending member for some other key `new`.
3789
4243
  *
@@ -3791,7 +4245,17 @@ declare module '@polkadot/api-base/types/submittable' {
3791
4245
  *
3792
4246
  * Prime membership is passed from the origin account to `new`, if extant.
3793
4247
  **/
3794
- changeKey: AugmentedSubmittable<(updated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
4248
+ changeKey: AugmentedSubmittable<(updated: MultiAddress | {
4249
+ Id: any;
4250
+ } | {
4251
+ Index: any;
4252
+ } | {
4253
+ Raw: any;
4254
+ } | {
4255
+ Address32: any;
4256
+ } | {
4257
+ Address20: any;
4258
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
3795
4259
  /**
3796
4260
  * Remove the prime member if it exists.
3797
4261
  *
@@ -3803,7 +4267,17 @@ declare module '@polkadot/api-base/types/submittable' {
3803
4267
  *
3804
4268
  * May only be called from `T::RemoveOrigin`.
3805
4269
  **/
3806
- removeMember: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
4270
+ removeMember: AugmentedSubmittable<(who: MultiAddress | {
4271
+ Id: any;
4272
+ } | {
4273
+ Index: any;
4274
+ } | {
4275
+ Raw: any;
4276
+ } | {
4277
+ Address32: any;
4278
+ } | {
4279
+ Address20: any;
4280
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
3807
4281
  /**
3808
4282
  * Change the membership to a new set, disregarding the existing membership. Be nice and
3809
4283
  * pass `members` pre-sorted.
@@ -3816,7 +4290,17 @@ declare module '@polkadot/api-base/types/submittable' {
3816
4290
  *
3817
4291
  * May only be called from `T::PrimeOrigin`.
3818
4292
  **/
3819
- setPrime: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
4293
+ setPrime: AugmentedSubmittable<(who: MultiAddress | {
4294
+ Id: any;
4295
+ } | {
4296
+ Index: any;
4297
+ } | {
4298
+ Raw: any;
4299
+ } | {
4300
+ Address32: any;
4301
+ } | {
4302
+ Address20: any;
4303
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
3820
4304
  /**
3821
4305
  * Swap out one member `remove` for another `add`.
3822
4306
  *
@@ -3824,7 +4308,27 @@ declare module '@polkadot/api-base/types/submittable' {
3824
4308
  *
3825
4309
  * Prime membership is *not* passed from `remove` to `add`, if extant.
3826
4310
  **/
3827
- swapMember: AugmentedSubmittable<(remove: AccountId32 | string | Uint8Array, add: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
4311
+ swapMember: AugmentedSubmittable<(remove: MultiAddress | {
4312
+ Id: any;
4313
+ } | {
4314
+ Index: any;
4315
+ } | {
4316
+ Raw: any;
4317
+ } | {
4318
+ Address32: any;
4319
+ } | {
4320
+ Address20: any;
4321
+ } | string | Uint8Array, add: MultiAddress | {
4322
+ Id: any;
4323
+ } | {
4324
+ Index: any;
4325
+ } | {
4326
+ Raw: any;
4327
+ } | {
4328
+ Address32: any;
4329
+ } | {
4330
+ Address20: any;
4331
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress]>;
3828
4332
  /**
3829
4333
  * Generic tx
3830
4334
  **/
@@ -3896,7 +4400,17 @@ declare module '@polkadot/api-base/types/submittable' {
3896
4400
  * - DbWrites: `Reasons`, `Tips`
3897
4401
  * # </weight>
3898
4402
  **/
3899
- reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32]>;
4403
+ reportAwesome: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
4404
+ Id: any;
4405
+ } | {
4406
+ Index: any;
4407
+ } | {
4408
+ Raw: any;
4409
+ } | {
4410
+ Address32: any;
4411
+ } | {
4412
+ Address20: any;
4413
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress]>;
3900
4414
  /**
3901
4415
  * Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
3902
4416
  *
@@ -3985,7 +4499,17 @@ declare module '@polkadot/api-base/types/submittable' {
3985
4499
  * - DbWrites: `Reasons`, `Tips`
3986
4500
  * # </weight>
3987
4501
  **/
3988
- tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: AccountId32 | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, AccountId32, Compact<u128>]>;
4502
+ tipNew: AugmentedSubmittable<(reason: Bytes | string | Uint8Array, who: MultiAddress | {
4503
+ Id: any;
4504
+ } | {
4505
+ Index: any;
4506
+ } | {
4507
+ Raw: any;
4508
+ } | {
4509
+ Address32: any;
4510
+ } | {
4511
+ Address20: any;
4512
+ } | string | Uint8Array, tipValue: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress, Compact<u128>]>;
3989
4513
  /**
3990
4514
  * Generic tx
3991
4515
  **/
@@ -4371,7 +4895,17 @@ declare module '@polkadot/api-base/types/submittable' {
4371
4895
  * - both nodes are within the same bag,
4372
4896
  * - and `origin` has a greater `Score` than `lighter`.
4373
4897
  **/
4374
- putInFrontOf: AugmentedSubmittable<(lighter: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
4898
+ putInFrontOf: AugmentedSubmittable<(lighter: MultiAddress | {
4899
+ Id: any;
4900
+ } | {
4901
+ Index: any;
4902
+ } | {
4903
+ Raw: any;
4904
+ } | {
4905
+ Address32: any;
4906
+ } | {
4907
+ Address20: any;
4908
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
4375
4909
  /**
4376
4910
  * Declare that some `dislocated` account has, through rewards or penalties, sufficiently
4377
4911
  * changed its score that it should properly fall into a different bag than its current
@@ -4384,7 +4918,17 @@ declare module '@polkadot/api-base/types/submittable' {
4384
4918
  *
4385
4919
  * If `dislocated` does not exists, it returns an error.
4386
4920
  **/
4387
- rebag: AugmentedSubmittable<(dislocated: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
4921
+ rebag: AugmentedSubmittable<(dislocated: MultiAddress | {
4922
+ Id: any;
4923
+ } | {
4924
+ Index: any;
4925
+ } | {
4926
+ Raw: any;
4927
+ } | {
4928
+ Address32: any;
4929
+ } | {
4930
+ Address20: any;
4931
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
4388
4932
  /**
4389
4933
  * Generic tx
4390
4934
  **/