@polkadot/api-augment 12.0.2 → 12.2.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/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, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, 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, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, 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, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, 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>;
@@ -568,7 +568,7 @@ declare module '@polkadot/api-base/types/submittable' {
568
568
  *
569
569
  * Parameters:
570
570
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
571
- * an existing asset.
571
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
572
572
  * - `admin`: The admin of this class of assets. The admin is the initial address of each
573
573
  * member of the asset class's admin team.
574
574
  * - `min_balance`: The minimum balance of this new asset that any single account must
@@ -757,7 +757,7 @@ declare module '@polkadot/api-base/types/submittable' {
757
757
  * Unlike `create`, no funds are reserved.
758
758
  *
759
759
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
760
- * an existing asset.
760
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
761
761
  * - `owner`: The owner of this class of assets. The owner has full superuser permissions
762
762
  * over this asset, but may later change and configure the permissions using
763
763
  * `transfer_ownership` and `set_team`.
@@ -1724,6 +1724,10 @@ declare module '@polkadot/api-base/types/submittable' {
1724
1724
  mask?: any;
1725
1725
  } | string | Uint8Array, pivot: PalletBrokerCoreMask | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerRegionId, PalletBrokerCoreMask]>;
1726
1726
  notifyCoreCount: AugmentedSubmittable<(coreCount: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16]>;
1727
+ notifyRevenue: AugmentedSubmittable<(revenue: PalletBrokerOnDemandRevenueRecord | {
1728
+ until?: any;
1729
+ amount?: any;
1730
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerOnDemandRevenueRecord]>;
1727
1731
  /**
1728
1732
  * Split a Bulk Coretime Region into two non-overlapping Regions at a particular time into
1729
1733
  * the region.
@@ -2419,6 +2423,14 @@ declare module '@polkadot/api-base/types/submittable' {
2419
2423
  * - `to_rank`: One more than the current rank of `who`.
2420
2424
  **/
2421
2425
  promote: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, toRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
2426
+ /**
2427
+ * Fast promotions can skip ranks and ignore the `min_promotion_period`.
2428
+ *
2429
+ * This is useful for out-of-band promotions, hence it has its own `FastPromoteOrigin` to
2430
+ * be (possibly) more restrictive than `PromoteOrigin`. Note that the member must already
2431
+ * be inducted.
2432
+ **/
2433
+ promoteFast: AugmentedSubmittable<(who: AccountId32 | string | Uint8Array, toRank: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u16]>;
2422
2434
  /**
2423
2435
  * Set whether a member is active or not.
2424
2436
  *
@@ -2432,13 +2444,29 @@ declare module '@polkadot/api-base/types/submittable' {
2432
2444
  * - `origin`: An origin complying with `ParamsOrigin` or root.
2433
2445
  * - `params`: The new parameters for the pallet.
2434
2446
  **/
2435
- setParams: AugmentedSubmittable<(params: PalletCoreFellowshipParamsType | {
2447
+ setParams: AugmentedSubmittable<(params: PalletCoreFellowshipParamsTypeU128 | {
2436
2448
  activeSalary?: any;
2437
2449
  passiveSalary?: any;
2438
2450
  demotionPeriod?: any;
2439
2451
  minPromotionPeriod?: any;
2440
2452
  offboardTimeout?: any;
2441
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsType]>;
2453
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsTypeU128]>;
2454
+ /**
2455
+ * Set the parameters partially.
2456
+ *
2457
+ * - `origin`: An origin complying with `ParamsOrigin` or root.
2458
+ * - `partial_params`: The new parameters for the pallet.
2459
+ *
2460
+ * This update config with multiple arguments without duplicating
2461
+ * the fields that does not need to update (set to None).
2462
+ **/
2463
+ setPartialParams: AugmentedSubmittable<(partialParams: PalletCoreFellowshipParamsTypeOption | {
2464
+ activeSalary?: any;
2465
+ passiveSalary?: any;
2466
+ demotionPeriod?: any;
2467
+ minPromotionPeriod?: any;
2468
+ offboardTimeout?: any;
2469
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletCoreFellowshipParamsTypeOption]>;
2442
2470
  /**
2443
2471
  * Provide evidence that a rank is deserved.
2444
2472
  *
@@ -3190,6 +3218,10 @@ declare module '@polkadot/api-base/types/submittable' {
3190
3218
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
3191
3219
  };
3192
3220
  glutton: {
3221
+ /**
3222
+ * Increase the block size by including the specified garbage bytes.
3223
+ **/
3224
+ bloat: AugmentedSubmittable<(garbage: Vec<U8aFixed>) => SubmittableExtrinsic<ApiType>, [Vec<U8aFixed>]>;
3193
3225
  /**
3194
3226
  * Initialize the pallet. Should be called once, if no genesis state was provided.
3195
3227
  *
@@ -3199,6 +3231,15 @@ declare module '@polkadot/api-base/types/submittable' {
3199
3231
  * Only callable by Root or `AdminOrigin`. A good default for `new_count` is `5_000`.
3200
3232
  **/
3201
3233
  initializePallet: AugmentedSubmittable<(newCount: u32 | AnyNumber | Uint8Array, witnessCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>]>;
3234
+ /**
3235
+ * Set how much of the block length should be filled with trash data on each block.
3236
+ *
3237
+ * `1.0` means that all block should be filled. If set to `1.0`, storage proof size will
3238
+ * be close to zero.
3239
+ *
3240
+ * Only callable by Root or `AdminOrigin`.
3241
+ **/
3242
+ setBlockLength: AugmentedSubmittable<(blockLength: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
3202
3243
  /**
3203
3244
  * Set how much of the remaining `ref_time` weight should be consumed by `on_idle`.
3204
3245
  *
@@ -5713,7 +5754,7 @@ declare module '@polkadot/api-base/types/submittable' {
5713
5754
  *
5714
5755
  * Parameters:
5715
5756
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
5716
- * an existing asset.
5757
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
5717
5758
  * - `admin`: The admin of this class of assets. The admin is the initial address of each
5718
5759
  * member of the asset class's admin team.
5719
5760
  * - `min_balance`: The minimum balance of this new asset that any single account must
@@ -5902,7 +5943,7 @@ declare module '@polkadot/api-base/types/submittable' {
5902
5943
  * Unlike `create`, no funds are reserved.
5903
5944
  *
5904
5945
  * - `id`: The identifier of the new asset. This must not be currently in use to identify
5905
- * an existing asset.
5946
+ * an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
5906
5947
  * - `owner`: The owner of this class of assets. The owner has full superuser permissions
5907
5948
  * over this asset, but may later change and configure the permissions using
5908
5949
  * `transfer_ownership` and `set_team`.
@@ -8966,26 +9007,6 @@ declare module '@polkadot/api-base/types/submittable' {
8966
9007
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
8967
9008
  };
8968
9009
  treasury: {
8969
- /**
8970
- * Approve a proposal.
8971
- *
8972
- * ## Dispatch Origin
8973
- *
8974
- * Must be [`Config::ApproveOrigin`].
8975
- *
8976
- * ## Details
8977
- *
8978
- * At a later time, the proposal will be allocated to the beneficiary and the original
8979
- * deposit will be returned.
8980
- *
8981
- * ### Complexity
8982
- * - O(1).
8983
- *
8984
- * ## Events
8985
- *
8986
- * No events are emitted from this dispatch.
8987
- **/
8988
- approveProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
8989
9010
  /**
8990
9011
  * Check the status of the spend and remove it from the storage if processed.
8991
9012
  *
@@ -9013,7 +9034,7 @@ declare module '@polkadot/api-base/types/submittable' {
9013
9034
  *
9014
9035
  * ## Dispatch Origin
9015
9036
  *
9016
- * Must be signed.
9037
+ * Must be signed
9017
9038
  *
9018
9039
  * ## Details
9019
9040
  *
@@ -9030,53 +9051,6 @@ declare module '@polkadot/api-base/types/submittable' {
9030
9051
  * Emits [`Event::Paid`] if successful.
9031
9052
  **/
9032
9053
  payout: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
9033
- /**
9034
- * Put forward a suggestion for spending.
9035
- *
9036
- * ## Dispatch Origin
9037
- *
9038
- * Must be signed.
9039
- *
9040
- * ## Details
9041
- * A deposit proportional to the value is reserved and slashed if the proposal is rejected.
9042
- * It is returned once the proposal is awarded.
9043
- *
9044
- * ### Complexity
9045
- * - O(1)
9046
- *
9047
- * ## Events
9048
- *
9049
- * Emits [`Event::Proposed`] if successful.
9050
- **/
9051
- proposeSpend: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
9052
- Id: any;
9053
- } | {
9054
- Index: any;
9055
- } | {
9056
- Raw: any;
9057
- } | {
9058
- Address32: any;
9059
- } | {
9060
- Address20: any;
9061
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress]>;
9062
- /**
9063
- * Reject a proposed spend.
9064
- *
9065
- * ## Dispatch Origin
9066
- *
9067
- * Must be [`Config::RejectOrigin`].
9068
- *
9069
- * ## Details
9070
- * The original deposit will be slashed.
9071
- *
9072
- * ### Complexity
9073
- * - O(1)
9074
- *
9075
- * ## Events
9076
- *
9077
- * Emits [`Event::Rejected`] if successful.
9078
- **/
9079
- rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
9080
9054
  /**
9081
9055
  * Force a previously approved proposal to be removed from the approval queue.
9082
9056
  *