@polkadot/api-augment 9.14.2 → 10.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/base.js +0 -4
  2. package/bundle.d.ts +2 -2
  3. package/bundle.js +2 -5
  4. package/cjs/base.js +1 -1
  5. package/cjs/bundle.js +5 -12
  6. package/cjs/detectOther.js +5 -12
  7. package/cjs/detectPackage.js +6 -11
  8. package/cjs/index.js +4 -16
  9. package/cjs/kusama/consts.js +2 -1
  10. package/cjs/kusama/errors.js +2 -1
  11. package/cjs/kusama/events.js +2 -1
  12. package/cjs/kusama/index.js +9 -9
  13. package/cjs/kusama/query.js +2 -1
  14. package/cjs/kusama/registry.js +1 -1
  15. package/cjs/kusama/runtime.js +2 -1
  16. package/cjs/kusama/tx.js +2 -1
  17. package/cjs/packageInfo.js +2 -16
  18. package/cjs/polkadot/consts.js +2 -1
  19. package/cjs/polkadot/errors.js +2 -1
  20. package/cjs/polkadot/events.js +2 -1
  21. package/cjs/polkadot/index.js +9 -9
  22. package/cjs/polkadot/query.js +2 -1
  23. package/cjs/polkadot/registry.js +1 -1
  24. package/cjs/polkadot/runtime.js +2 -1
  25. package/cjs/polkadot/tx.js +2 -1
  26. package/cjs/substrate/consts.js +2 -1
  27. package/cjs/substrate/errors.js +2 -1
  28. package/cjs/substrate/events.js +2 -1
  29. package/cjs/substrate/index.js +9 -9
  30. package/cjs/substrate/query.js +2 -1
  31. package/cjs/substrate/registry.js +1 -1
  32. package/cjs/substrate/runtime.js +2 -1
  33. package/cjs/substrate/tx.js +2 -1
  34. package/detectOther.js +0 -3
  35. package/detectPackage.js +2 -7
  36. package/index.d.ts +2 -2
  37. package/index.js +2 -5
  38. package/kusama/consts.js +1 -7
  39. package/kusama/errors.d.ts +4 -0
  40. package/kusama/errors.js +1 -7
  41. package/kusama/events.d.ts +5 -5
  42. package/kusama/events.js +1 -7
  43. package/kusama/index.d.ts +8 -8
  44. package/kusama/index.js +8 -11
  45. package/kusama/query.d.ts +16 -1
  46. package/kusama/query.js +1 -7
  47. package/kusama/registry.js +0 -3
  48. package/kusama/runtime.d.ts +39 -4
  49. package/kusama/runtime.js +1 -7
  50. package/kusama/tx.d.ts +65 -14
  51. package/kusama/tx.js +1 -7
  52. package/package.json +12 -9
  53. package/packageInfo.js +1 -11
  54. package/polkadot/consts.js +1 -7
  55. package/polkadot/errors.d.ts +4 -0
  56. package/polkadot/errors.js +1 -7
  57. package/polkadot/events.d.ts +5 -5
  58. package/polkadot/events.js +1 -7
  59. package/polkadot/index.d.ts +8 -8
  60. package/polkadot/index.js +8 -11
  61. package/polkadot/query.d.ts +16 -1
  62. package/polkadot/query.js +1 -7
  63. package/polkadot/registry.js +0 -3
  64. package/polkadot/runtime.d.ts +39 -4
  65. package/polkadot/runtime.js +1 -7
  66. package/polkadot/tx.d.ts +65 -14
  67. package/polkadot/tx.js +1 -7
  68. package/substrate/consts.d.ts +27 -0
  69. package/substrate/consts.js +1 -7
  70. package/substrate/errors.d.ts +89 -0
  71. package/substrate/errors.js +1 -7
  72. package/substrate/events.d.ts +100 -17
  73. package/substrate/events.js +1 -7
  74. package/substrate/index.d.ts +8 -8
  75. package/substrate/index.js +8 -11
  76. package/substrate/query.d.ts +56 -18
  77. package/substrate/query.js +1 -7
  78. package/substrate/registry.js +0 -3
  79. package/substrate/runtime.d.ts +65 -1
  80. package/substrate/runtime.js +1 -7
  81. package/substrate/tx.d.ts +207 -36
  82. package/substrate/tx.js +1 -7
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, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, 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, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, 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>;
@@ -782,6 +782,21 @@ declare module '@polkadot/api-base/types/submittable' {
782
782
  * Weight: `O(1)`
783
783
  **/
784
784
  setMetadata: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes, Bytes, u8]>;
785
+ /**
786
+ * Sets the minimum balance of an asset.
787
+ *
788
+ * Only works if there aren't any accounts that are holding the asset or if
789
+ * the new value of `min_balance` is less than the old one.
790
+ *
791
+ * Origin must be Signed and the sender has to be the Owner of the
792
+ * asset `id`.
793
+ *
794
+ * - `id`: The identifier of the asset.
795
+ * - `min_balance`: The new value of `min_balance`.
796
+ *
797
+ * Emits `AssetMinBalanceChanged` event when successful.
798
+ **/
799
+ setMinBalance: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u128]>;
785
800
  /**
786
801
  * Change the Issuer, Admin and Freezer of an asset.
787
802
  *
@@ -2597,6 +2612,32 @@ declare module '@polkadot/api-base/types/submittable' {
2597
2612
  **/
2598
2613
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
2599
2614
  };
2615
+ glutton: {
2616
+ /**
2617
+ * Initializes the pallet by writing into `TrashData`.
2618
+ *
2619
+ * Only callable by Root. A good default for `trash_count` is `5_000`.
2620
+ **/
2621
+ initializePallet: AugmentedSubmittable<(newCount: u32 | AnyNumber | Uint8Array, witnessCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>]>;
2622
+ /**
2623
+ * Set the `Compute` storage value that determines how much of the
2624
+ * block's weight `ref_time` to use during `on_idle`.
2625
+ *
2626
+ * Only callable by Root.
2627
+ **/
2628
+ setCompute: AugmentedSubmittable<(compute: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
2629
+ /**
2630
+ * Set the `Storage` storage value that determines the PoV size usage
2631
+ * for each block.
2632
+ *
2633
+ * Only callable by Root.
2634
+ **/
2635
+ setStorage: AugmentedSubmittable<(storage: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
2636
+ /**
2637
+ * Generic tx
2638
+ **/
2639
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2640
+ };
2600
2641
  grandpa: {
2601
2642
  /**
2602
2643
  * Note that the current authority set of the GRANDPA finality gadget has stalled.
@@ -2619,14 +2660,14 @@ declare module '@polkadot/api-base/types/submittable' {
2619
2660
  * against the extracted offender. If both are valid, the offence
2620
2661
  * will be reported.
2621
2662
  **/
2622
- reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
2663
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
2623
2664
  setId?: any;
2624
2665
  equivocation?: any;
2625
2666
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
2626
2667
  session?: any;
2627
2668
  trieNodes?: any;
2628
2669
  validatorCount?: any;
2629
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
2670
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
2630
2671
  /**
2631
2672
  * Report voter equivocation/misbehavior. This method will verify the
2632
2673
  * equivocation proof and validate the given key ownership proof
@@ -2638,14 +2679,14 @@ declare module '@polkadot/api-base/types/submittable' {
2638
2679
  * if the block author is defined it will be defined as the equivocation
2639
2680
  * reporter.
2640
2681
  **/
2641
- reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
2682
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
2642
2683
  setId?: any;
2643
2684
  equivocation?: any;
2644
2685
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
2645
2686
  session?: any;
2646
2687
  trieNodes?: any;
2647
2688
  validatorCount?: any;
2648
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
2689
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
2649
2690
  /**
2650
2691
  * Generic tx
2651
2692
  **/
@@ -3192,6 +3233,9 @@ declare module '@polkadot/api-base/types/submittable' {
3192
3233
  /**
3193
3234
  * Execute an overweight message.
3194
3235
  *
3236
+ * Temporary processing errors will be propagated whereas permanent errors are treated
3237
+ * as success condition.
3238
+ *
3195
3239
  * - `origin`: Must be `Signed`.
3196
3240
  * - `message_origin`: The origin from which the message to be executed arrived.
3197
3241
  * - `page`: The page in the queue in which the message to be executed is sitting.
@@ -3201,26 +3245,14 @@ declare module '@polkadot/api-base/types/submittable' {
3201
3245
  *
3202
3246
  * Benchmark complexity considerations: O(index + weight_limit).
3203
3247
  **/
3204
- executeOverweight: AugmentedSubmittable<(messageOrigin: PalletMessageQueueMockHelpersMessageOrigin | {
3205
- Here: any;
3206
- } | {
3207
- There: any;
3208
- } | {
3209
- Everywhere: any;
3210
- } | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
3248
+ executeOverweight: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
3211
3249
  refTime?: any;
3212
3250
  proofSize?: any;
3213
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMessageQueueMockHelpersMessageOrigin, u32, u32, SpWeightsWeightV2Weight]>;
3251
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, SpWeightsWeightV2Weight]>;
3214
3252
  /**
3215
3253
  * Remove a page which has no more messages remaining to be processed or is stale.
3216
3254
  **/
3217
- reapPage: AugmentedSubmittable<(messageOrigin: PalletMessageQueueMockHelpersMessageOrigin | {
3218
- Here: any;
3219
- } | {
3220
- There: any;
3221
- } | {
3222
- Everywhere: any;
3223
- } | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
3255
+ reapPage: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
3224
3256
  /**
3225
3257
  * Generic tx
3226
3258
  **/
@@ -3568,7 +3600,7 @@ declare module '@polkadot/api-base/types/submittable' {
3568
3600
  *
3569
3601
  * Weight: `O(1)`
3570
3602
  **/
3571
- clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
3603
+ clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
3572
3604
  Pallet: any;
3573
3605
  } | {
3574
3606
  CollectionOwner: any;
@@ -3576,7 +3608,7 @@ declare module '@polkadot/api-base/types/submittable' {
3576
3608
  ItemOwner: any;
3577
3609
  } | {
3578
3610
  Account: any;
3579
- } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
3611
+ } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
3580
3612
  /**
3581
3613
  * Clear the metadata for a collection.
3582
3614
  *
@@ -3803,7 +3835,7 @@ declare module '@polkadot/api-base/types/submittable' {
3803
3835
  *
3804
3836
  * Weight: `O(1)`
3805
3837
  **/
3806
- forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
3838
+ forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
3807
3839
  Pallet: any;
3808
3840
  } | {
3809
3841
  CollectionOwner: any;
@@ -3811,7 +3843,7 @@ declare module '@polkadot/api-base/types/submittable' {
3811
3843
  ItemOwner: any;
3812
3844
  } | {
3813
3845
  Account: any;
3814
- } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
3846
+ } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
3815
3847
  /**
3816
3848
  * Disallows specified settings for the whole collection.
3817
3849
  *
@@ -3887,7 +3919,7 @@ declare module '@polkadot/api-base/types/submittable' {
3887
3919
  } | {
3888
3920
  Address20: any;
3889
3921
  } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | {
3890
- ownerOfItem?: any;
3922
+ ownedItem?: any;
3891
3923
  } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
3892
3924
  /**
3893
3925
  * Mint an item by providing the pre-signed approval.
@@ -3990,7 +4022,7 @@ declare module '@polkadot/api-base/types/submittable' {
3990
4022
  *
3991
4023
  * Weight: `O(1)`
3992
4024
  **/
3993
- setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
4025
+ setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
3994
4026
  Pallet: any;
3995
4027
  } | {
3996
4028
  CollectionOwner: any;
@@ -3998,7 +4030,35 @@ declare module '@polkadot/api-base/types/submittable' {
3998
4030
  ItemOwner: any;
3999
4031
  } | {
4000
4032
  Account: any;
4001
- } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
4033
+ } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
4034
+ /**
4035
+ * Set attributes for an item by providing the pre-signed approval.
4036
+ *
4037
+ * Origin must be Signed and must be an owner of the `data.item`.
4038
+ *
4039
+ * - `data`: The pre-signed approval that consists of the information about the item,
4040
+ * attributes to update and until what block number.
4041
+ * - `signature`: The signature of the `data` object.
4042
+ * - `signer`: The `data` object's signer. Should be an owner of the collection for the
4043
+ * `CollectionOwner` namespace.
4044
+ *
4045
+ * Emits `AttributeSet` for each provided attribute.
4046
+ * Emits `ItemAttributesApprovalAdded` if the approval wasn't set before.
4047
+ * Emits `PreSignedAttributesSet` on success.
4048
+ **/
4049
+ setAttributesPreSigned: AugmentedSubmittable<(data: PalletNftsPreSignedAttributes | {
4050
+ collection?: any;
4051
+ item?: any;
4052
+ attributes?: any;
4053
+ namespace?: any;
4054
+ deadline?: any;
4055
+ } | string | Uint8Array, signature: SpRuntimeMultiSignature | {
4056
+ Ed25519: any;
4057
+ } | {
4058
+ Sr25519: any;
4059
+ } | {
4060
+ Ecdsa: any;
4061
+ } | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNftsPreSignedAttributes, SpRuntimeMultiSignature, AccountId32]>;
4002
4062
  /**
4003
4063
  * Set the maximum number of items a collection could have.
4004
4064
  *
@@ -4278,12 +4338,39 @@ declare module '@polkadot/api-base/types/submittable' {
4278
4338
  * accumulated rewards, see [`BondExtra`].
4279
4339
  *
4280
4340
  * Bonding extra funds implies an automatic payout of all pending rewards as well.
4341
+ * See `bond_extra_other` to bond pending rewards of `other` members.
4281
4342
  **/
4282
4343
  bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
4283
4344
  FreeBalance: any;
4284
4345
  } | {
4285
4346
  Rewards: any;
4286
4347
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
4348
+ /**
4349
+ * `origin` bonds funds from `extra` for some pool member `member` into their respective
4350
+ * pools.
4351
+ *
4352
+ * `origin` can bond extra funds from free balance or pending rewards when `origin ==
4353
+ * other`.
4354
+ *
4355
+ * In the case of `origin != other`, `origin` can only bond extra pending rewards of
4356
+ * `other` members assuming set_claim_permission for the given member is
4357
+ * `PermissionlessAll` or `PermissionlessCompound`.
4358
+ **/
4359
+ bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
4360
+ Id: any;
4361
+ } | {
4362
+ Index: any;
4363
+ } | {
4364
+ Raw: any;
4365
+ } | {
4366
+ Address32: any;
4367
+ } | {
4368
+ Address20: any;
4369
+ } | string | Uint8Array, extra: PalletNominationPoolsBondExtra | {
4370
+ FreeBalance: any;
4371
+ } | {
4372
+ Rewards: any;
4373
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
4287
4374
  /**
4288
4375
  * Chill on behalf of the pool.
4289
4376
  *
@@ -4301,8 +4388,17 @@ declare module '@polkadot/api-base/types/submittable' {
4301
4388
  *
4302
4389
  * The member will earn rewards pro rata based on the members stake vs the sum of the
4303
4390
  * members in the pools stake. Rewards do not "expire".
4391
+ *
4392
+ * See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
4304
4393
  **/
4305
4394
  claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4395
+ /**
4396
+ * `origin` can claim payouts on some pool member `other`'s behalf.
4397
+ *
4398
+ * Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
4399
+ * for this call to be successful.
4400
+ **/
4401
+ claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
4306
4402
  /**
4307
4403
  * Create a new delegation pool.
4308
4404
  *
@@ -4315,7 +4411,7 @@ declare module '@polkadot/api-base/types/submittable' {
4315
4411
  * creating multiple pools in the same extrinsic.
4316
4412
  * * `root` - The account to set as [`PoolRoles::root`].
4317
4413
  * * `nominator` - The account to set as the [`PoolRoles::nominator`].
4318
- * * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
4414
+ * * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
4319
4415
  *
4320
4416
  * # Note
4321
4417
  *
@@ -4342,7 +4438,7 @@ declare module '@polkadot/api-base/types/submittable' {
4342
4438
  Address32: any;
4343
4439
  } | {
4344
4440
  Address20: any;
4345
- } | string | Uint8Array, stateToggler: MultiAddress | {
4441
+ } | string | Uint8Array, bouncer: MultiAddress | {
4346
4442
  Id: any;
4347
4443
  } | {
4348
4444
  Index: any;
@@ -4381,7 +4477,7 @@ declare module '@polkadot/api-base/types/submittable' {
4381
4477
  Address32: any;
4382
4478
  } | {
4383
4479
  Address20: any;
4384
- } | string | Uint8Array, stateToggler: MultiAddress | {
4480
+ } | string | Uint8Array, bouncer: MultiAddress | {
4385
4481
  Id: any;
4386
4482
  } | {
4387
4483
  Index: any;
@@ -4424,6 +4520,21 @@ declare module '@polkadot/api-base/types/submittable' {
4424
4520
  * they attempt to unbond.
4425
4521
  **/
4426
4522
  poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
4523
+ /**
4524
+ * Allows a pool member to set a claim permission to allow or disallow permissionless
4525
+ * bonding and withdrawing.
4526
+ *
4527
+ * By default, this is `Permissioned`, which implies only the pool member themselves can
4528
+ * claim their pending rewards. If a pool member wishes so, they can set this to
4529
+ * `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
4530
+ * pool.
4531
+ *
4532
+ * # Arguments
4533
+ *
4534
+ * * `origin` - Member of a pool.
4535
+ * * `actor` - Account to claim reward. // improve this
4536
+ **/
4537
+ setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
4427
4538
  /**
4428
4539
  * Update configurations for the nomination pools. The origin for this call must be
4429
4540
  * Root.
@@ -4470,7 +4581,7 @@ declare module '@polkadot/api-base/types/submittable' {
4470
4581
  /**
4471
4582
  * Set a new metadata for the pool.
4472
4583
  *
4473
- * The dispatch origin of this call must be signed by the state toggler, or the root role
4584
+ * The dispatch origin of this call must be signed by the bouncer, or the root role
4474
4585
  * of the pool.
4475
4586
  **/
4476
4587
  setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
@@ -4482,7 +4593,7 @@ declare module '@polkadot/api-base/types/submittable' {
4482
4593
  *
4483
4594
  * The dispatch origin of this call must be either:
4484
4595
  *
4485
- * 1. signed by the state toggler, or the root role of the pool,
4596
+ * 1. signed by the bouncer, or the root role of the pool,
4486
4597
  * 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
4487
4598
  * then the state of the pool can be permissionlessly changed to `Destroying`.
4488
4599
  **/
@@ -4497,8 +4608,8 @@ declare module '@polkadot/api-base/types/submittable' {
4497
4608
  *
4498
4609
  * # Conditions for a permissionless dispatch.
4499
4610
  *
4500
- * * The pool is blocked and the caller is either the root or state-toggler. This is
4501
- * refereed to as a kick.
4611
+ * * The pool is blocked and the caller is either the root or bouncer. This is refereed to
4612
+ * as a kick.
4502
4613
  * * The pool is destroying and the member is not the depositor.
4503
4614
  * * The pool is destroying, the member is the depositor and no other members are in the
4504
4615
  * pool.
@@ -4552,7 +4663,7 @@ declare module '@polkadot/api-base/types/submittable' {
4552
4663
  Set: any;
4553
4664
  } | {
4554
4665
  Remove: any;
4555
- } | string | Uint8Array, newStateToggler: PalletNominationPoolsConfigOpAccountId32 | {
4666
+ } | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | {
4556
4667
  Noop: any;
4557
4668
  } | {
4558
4669
  Set: any;
@@ -4570,7 +4681,7 @@ declare module '@polkadot/api-base/types/submittable' {
4570
4681
  *
4571
4682
  * * The pool is in destroy mode and the target is not the depositor.
4572
4683
  * * The target is the depositor and they are the only member in the sub pools.
4573
- * * The pool is blocked and the caller is either the root or state-toggler.
4684
+ * * The pool is blocked and the caller is either the root or bouncer.
4574
4685
  *
4575
4686
  * # Conditions for permissioned dispatch
4576
4687
  *
@@ -5456,6 +5567,66 @@ declare module '@polkadot/api-base/types/submittable' {
5456
5567
  **/
5457
5568
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
5458
5569
  };
5570
+ salary: {
5571
+ /**
5572
+ * Move to next payout cycle, assuming that the present block is now within that cycle.
5573
+ *
5574
+ * - `origin`: A `Signed` origin of an account.
5575
+ **/
5576
+ bump: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5577
+ /**
5578
+ * Update a payment's status; if it failed, alter the state so the payment can be retried.
5579
+ *
5580
+ * This must be called within the same cycle as the failed payment. It will fail with
5581
+ * `Event::NotCurrent` otherwise.
5582
+ *
5583
+ * - `origin`: A `Signed` origin of an account which is a member of `Members` who has
5584
+ * received a payment this cycle.
5585
+ **/
5586
+ checkPayment: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5587
+ /**
5588
+ * Induct oneself into the payout system.
5589
+ **/
5590
+ induct: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5591
+ /**
5592
+ * Start the first payout cycle.
5593
+ *
5594
+ * - `origin`: A `Signed` origin of an account.
5595
+ **/
5596
+ init: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5597
+ /**
5598
+ * Request a payout.
5599
+ *
5600
+ * Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
5601
+ * started but by no more than `PayoutPeriod` blocks.
5602
+ *
5603
+ * - `origin`: A `Signed` origin of an account which is a member of `Members`.
5604
+ **/
5605
+ payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5606
+ /**
5607
+ * Request a payout to a secondary account.
5608
+ *
5609
+ * Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
5610
+ * started but by no more than `PayoutPeriod` blocks.
5611
+ *
5612
+ * - `origin`: A `Signed` origin of an account which is a member of `Members`.
5613
+ * - `beneficiary`: The account to receive payment.
5614
+ **/
5615
+ payoutOther: AugmentedSubmittable<(beneficiary: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
5616
+ /**
5617
+ * Register for a payout.
5618
+ *
5619
+ * Will only work if we are in the first `RegistrationPeriod` blocks since the cycle
5620
+ * started.
5621
+ *
5622
+ * - `origin`: A `Signed` origin of an account which is a member of `Members`.
5623
+ **/
5624
+ register: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5625
+ /**
5626
+ * Generic tx
5627
+ **/
5628
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
5629
+ };
5459
5630
  scheduler: {
5460
5631
  /**
5461
5632
  * Cancel an anonymously scheduled task.
package/substrate/tx.js CHANGED
@@ -1,8 +1,2 @@
1
- // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
1
  /* eslint-disable */
3
-
4
- // import type lookup before we augment - in some environments
5
- // this is required to allow for ambient/previous definitions
6
- import '@polkadot/api-base/types/submittable';
7
-
8
- // declare module
2
+ import '@polkadot/api-base/types/submittable';