@polkadot/api-augment 10.11.1 → 10.11.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.
package/substrate/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
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 { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeTask, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletAssetConversionNativeOrAssetId, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
8
8
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
9
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
10
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -744,34 +744,6 @@ declare module '@polkadot/api-base/types/submittable' {
744
744
  } | {
745
745
  Address20: any;
746
746
  } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
747
- /**
748
- * See [`Pallet::set_balance_deprecated`].
749
- **/
750
- setBalanceDeprecated: AugmentedSubmittable<(who: MultiAddress | {
751
- Id: any;
752
- } | {
753
- Index: any;
754
- } | {
755
- Raw: any;
756
- } | {
757
- Address32: any;
758
- } | {
759
- Address20: any;
760
- } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, oldReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
761
- /**
762
- * See [`Pallet::transfer`].
763
- **/
764
- transfer: AugmentedSubmittable<(dest: MultiAddress | {
765
- Id: any;
766
- } | {
767
- Index: any;
768
- } | {
769
- Raw: any;
770
- } | {
771
- Address32: any;
772
- } | {
773
- Address20: any;
774
- } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
775
747
  /**
776
748
  * See [`Pallet::transfer_all`].
777
749
  **/
@@ -1764,11 +1736,11 @@ declare module '@polkadot/api-base/types/submittable' {
1764
1736
  /**
1765
1737
  * See [`Pallet::set_fields`].
1766
1738
  **/
1767
- setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: PalletIdentityBitFlags) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletIdentityBitFlags]>;
1739
+ setFields: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, fields: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u64]>;
1768
1740
  /**
1769
1741
  * See [`Pallet::set_identity`].
1770
1742
  **/
1771
- setIdentity: AugmentedSubmittable<(info: PalletIdentityIdentityInfo | {
1743
+ setIdentity: AugmentedSubmittable<(info: PalletIdentityLegacyIdentityInfo | {
1772
1744
  additional?: any;
1773
1745
  display?: any;
1774
1746
  legal?: any;
@@ -1778,7 +1750,7 @@ declare module '@polkadot/api-base/types/submittable' {
1778
1750
  pgpFingerprint?: any;
1779
1751
  image?: any;
1780
1752
  twitter?: any;
1781
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityIdentityInfo]>;
1753
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletIdentityLegacyIdentityInfo]>;
1782
1754
  /**
1783
1755
  * See [`Pallet::set_subs`].
1784
1756
  **/
@@ -1900,6 +1872,21 @@ declare module '@polkadot/api-base/types/submittable' {
1900
1872
  **/
1901
1873
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1902
1874
  };
1875
+ mixnet: {
1876
+ /**
1877
+ * See `Pallet::register`.
1878
+ **/
1879
+ register: AugmentedSubmittable<(registration: PalletMixnetRegistration | {
1880
+ blockNumber?: any;
1881
+ sessionIndex?: any;
1882
+ authorityIndex?: any;
1883
+ mixnode?: any;
1884
+ } | string | Uint8Array, signature: SpMixnetAppSignature | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMixnetRegistration, SpMixnetAppSignature]>;
1885
+ /**
1886
+ * Generic tx
1887
+ **/
1888
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
1889
+ };
1903
1890
  multisig: {
1904
1891
  /**
1905
1892
  * See [`Pallet::approve_as_multi`].
@@ -2408,6 +2395,10 @@ declare module '@polkadot/api-base/types/submittable' {
2408
2395
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
2409
2396
  };
2410
2397
  nominationPools: {
2398
+ /**
2399
+ * See [`Pallet::adjust_pool_deposit`].
2400
+ **/
2401
+ adjustPoolDeposit: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2411
2402
  /**
2412
2403
  * See [`Pallet::bond_extra`].
2413
2404
  **/
@@ -2545,6 +2536,14 @@ declare module '@polkadot/api-base/types/submittable' {
2545
2536
  maxIncrease?: any;
2546
2537
  minDelay?: any;
2547
2538
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsCommissionChangeRate]>;
2539
+ /**
2540
+ * See [`Pallet::set_commission_claim_permission`].
2541
+ **/
2542
+ setCommissionClaimPermission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, permission: Option<PalletNominationPoolsCommissionClaimPermission> | null | Uint8Array | PalletNominationPoolsCommissionClaimPermission | {
2543
+ Permissionless: any;
2544
+ } | {
2545
+ Account: any;
2546
+ } | string) => SubmittableExtrinsic<ApiType>, [u32, Option<PalletNominationPoolsCommissionClaimPermission>]>;
2548
2547
  /**
2549
2548
  * See [`Pallet::set_commission_max`].
2550
2549
  **/
@@ -3071,6 +3070,10 @@ declare module '@polkadot/api-base/types/submittable' {
3071
3070
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
3072
3071
  };
3073
3072
  preimage: {
3073
+ /**
3074
+ * See [`Pallet::ensure_updated`].
3075
+ **/
3076
+ ensureUpdated: AugmentedSubmittable<(hashes: Vec<H256> | (H256 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<H256>]>;
3074
3077
  /**
3075
3078
  * See [`Pallet::note_preimage`].
3076
3079
  **/
@@ -3566,9 +3569,13 @@ declare module '@polkadot/api-base/types/submittable' {
3566
3569
  };
3567
3570
  rootTesting: {
3568
3571
  /**
3569
- * See [`Pallet::fill_block`].
3572
+ * See `Pallet::fill_block`.
3570
3573
  **/
3571
3574
  fillBlock: AugmentedSubmittable<(ratio: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
3575
+ /**
3576
+ * See `Pallet::trigger_defensive`.
3577
+ **/
3578
+ triggerDefensive: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3572
3579
  /**
3573
3580
  * Generic tx
3574
3581
  **/
@@ -3689,6 +3696,7 @@ declare module '@polkadot/api-base/types/submittable' {
3689
3696
  babe?: any;
3690
3697
  imOnline?: any;
3691
3698
  authorityDiscovery?: any;
3699
+ mixnet?: any;
3692
3700
  } | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeSessionKeys, Bytes]>;
3693
3701
  /**
3694
3702
  * Generic tx
@@ -3851,7 +3859,7 @@ declare module '@polkadot/api-base/types/submittable' {
3851
3859
  /**
3852
3860
  * See [`Pallet::chill_other`].
3853
3861
  **/
3854
- chillOther: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
3862
+ chillOther: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
3855
3863
  /**
3856
3864
  * See [`Pallet::force_apply_min_commission`].
3857
3865
  **/
@@ -3908,6 +3916,10 @@ declare module '@polkadot/api-base/types/submittable' {
3908
3916
  * See [`Pallet::payout_stakers`].
3909
3917
  **/
3910
3918
  payoutStakers: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
3919
+ /**
3920
+ * See [`Pallet::payout_stakers_by_page`].
3921
+ **/
3922
+ payoutStakersByPage: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32, u32]>;
3911
3923
  /**
3912
3924
  * See [`Pallet::reap_stash`].
3913
3925
  **/
@@ -3994,6 +4006,10 @@ declare module '@polkadot/api-base/types/submittable' {
3994
4006
  * See [`Pallet::unbond`].
3995
4007
  **/
3996
4008
  unbond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
4009
+ /**
4010
+ * See [`Pallet::update_payee`].
4011
+ **/
4012
+ updatePayee: AugmentedSubmittable<(controller: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
3997
4013
  /**
3998
4014
  * See [`Pallet::validate`].
3999
4015
  **/
@@ -4068,6 +4084,10 @@ declare module '@polkadot/api-base/types/submittable' {
4068
4084
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
4069
4085
  };
4070
4086
  sudo: {
4087
+ /**
4088
+ * See [`Pallet::remove_key`].
4089
+ **/
4090
+ removeKey: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4071
4091
  /**
4072
4092
  * See [`Pallet::set_key`].
4073
4093
  **/
@@ -4113,6 +4133,12 @@ declare module '@polkadot/api-base/types/submittable' {
4113
4133
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
4114
4134
  };
4115
4135
  system: {
4136
+ /**
4137
+ * See [`Pallet::do_task`].
4138
+ **/
4139
+ doTask: AugmentedSubmittable<(task: KitchensinkRuntimeRuntimeTask | {
4140
+ TasksExample: any;
4141
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [KitchensinkRuntimeRuntimeTask]>;
4116
4142
  /**
4117
4143
  * See [`Pallet::kill_prefix`].
4118
4144
  **/
@@ -4363,6 +4389,14 @@ declare module '@polkadot/api-base/types/submittable' {
4363
4389
  * See [`Pallet::approve_proposal`].
4364
4390
  **/
4365
4391
  approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4392
+ /**
4393
+ * See [`Pallet::check_status`].
4394
+ **/
4395
+ checkStatus: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4396
+ /**
4397
+ * See [`Pallet::payout`].
4398
+ **/
4399
+ payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4366
4400
  /**
4367
4401
  * See [`Pallet::propose_spend`].
4368
4402
  **/
@@ -4388,7 +4422,21 @@ declare module '@polkadot/api-base/types/submittable' {
4388
4422
  /**
4389
4423
  * See [`Pallet::spend`].
4390
4424
  **/
4391
- spend: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
4425
+ spend: AugmentedSubmittable<(assetKind: u32 | AnyNumber | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
4426
+ Id: any;
4427
+ } | {
4428
+ Index: any;
4429
+ } | {
4430
+ Raw: any;
4431
+ } | {
4432
+ Address32: any;
4433
+ } | {
4434
+ Address20: any;
4435
+ } | string | Uint8Array, validFrom: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Compact<u128>, MultiAddress, Option<u32>]>;
4436
+ /**
4437
+ * See [`Pallet::spend_local`].
4438
+ **/
4439
+ spendLocal: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
4392
4440
  Id: any;
4393
4441
  } | {
4394
4442
  Index: any;
@@ -4399,6 +4447,10 @@ declare module '@polkadot/api-base/types/submittable' {
4399
4447
  } | {
4400
4448
  Address20: any;
4401
4449
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
4450
+ /**
4451
+ * See [`Pallet::void_spend`].
4452
+ **/
4453
+ voidSpend: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4402
4454
  /**
4403
4455
  * Generic tx
4404
4456
  **/
@@ -4736,6 +4788,20 @@ declare module '@polkadot/api-base/types/submittable' {
4736
4788
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
4737
4789
  };
4738
4790
  vesting: {
4791
+ /**
4792
+ * See [`Pallet::force_remove_vesting_schedule`].
4793
+ **/
4794
+ forceRemoveVestingSchedule: AugmentedSubmittable<(target: MultiAddress | {
4795
+ Id: any;
4796
+ } | {
4797
+ Index: any;
4798
+ } | {
4799
+ Raw: any;
4800
+ } | {
4801
+ Address32: any;
4802
+ } | {
4803
+ Address20: any;
4804
+ } | string | Uint8Array, scheduleIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u32]>;
4739
4805
  /**
4740
4806
  * See [`Pallet::force_vested_transfer`].
4741
4807
  **/