@polkadot/api-augment 9.11.3 → 9.13.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.
@@ -12,7 +12,7 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t
12
12
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
13
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
14
14
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
15
- import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, WeightV2 } from '@polkadot/types/interfaces/runtime';
15
+ import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
16
16
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
17
17
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
18
18
  import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
@@ -312,7 +312,7 @@ declare module '@polkadot/api-base/types/calls' {
312
312
  **/
313
313
  [key: string]: DecoratedCallBase<ApiType>;
314
314
  };
315
- /** 0x37c8bb1350a9a2a8/2 */
315
+ /** 0x37c8bb1350a9a2a8/3 */
316
316
  transactionPaymentApi: {
317
317
  /**
318
318
  * The transaction fee details
@@ -322,12 +322,23 @@ declare module '@polkadot/api-base/types/calls' {
322
322
  * The transaction info
323
323
  **/
324
324
  queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
325
+ /**
326
+ * Query the output of the current LengthToFee given some input
327
+ **/
328
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
329
+ /**
330
+ * Query the output of the current WeightToFee given some input
331
+ **/
332
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
333
+ refTime?: any;
334
+ proofSize?: any;
335
+ } | string | Uint8Array) => Observable<Balance>>;
325
336
  /**
326
337
  * Generic call
327
338
  **/
328
339
  [key: string]: DecoratedCallBase<ApiType>;
329
340
  };
330
- /** 0xf3ff14d5ab527059/2 */
341
+ /** 0xf3ff14d5ab527059/3 */
331
342
  transactionPaymentCallApi: {
332
343
  /**
333
344
  * The call fee details
@@ -337,6 +348,17 @@ declare module '@polkadot/api-base/types/calls' {
337
348
  * The call info
338
349
  **/
339
350
  queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
351
+ /**
352
+ * Query the output of the current LengthToFee given some input
353
+ **/
354
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
355
+ /**
356
+ * Query the output of the current WeightToFee given some input
357
+ **/
358
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
359
+ refTime?: any;
360
+ proofSize?: any;
361
+ } | string | Uint8Array) => Observable<Balance>>;
340
362
  /**
341
363
  * Generic call
342
364
  **/
package/substrate/tx.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
3
3
  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
- import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
6
+ import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
7
  import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
8
8
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
9
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -2668,7 +2668,7 @@ declare module '@polkadot/api-base/types/submittable' {
2668
2668
  *
2669
2669
  * Dispatch origin must be signed by the [`Config::ControlOrigin`].
2670
2670
  **/
2671
- control: AugmentedSubmittable<(uncheckedErasToCheck: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2671
+ control: AugmentedSubmittable<(erasToCheck: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
2672
2672
  /**
2673
2673
  * Deregister oneself from the fast-unstake.
2674
2674
  *
@@ -4376,6 +4376,10 @@ declare module '@polkadot/api-base/types/submittable' {
4376
4376
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
4377
4377
  };
4378
4378
  nis: {
4379
+ /**
4380
+ * Make a private receipt communal and create fungible counterparts for its owner.
4381
+ **/
4382
+ communify: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4379
4383
  /**
4380
4384
  * Ensure we have sufficient funding for all potential payouts.
4381
4385
  *
@@ -4396,6 +4400,10 @@ declare module '@polkadot/api-base/types/submittable' {
4396
4400
  * - `Queues[duration].len()` (just take max).
4397
4401
  **/
4398
4402
  placeBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
4403
+ /**
4404
+ * Make a communal receipt private and burn fungible counterparts from its owner.
4405
+ **/
4406
+ privatize: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4399
4407
  /**
4400
4408
  * Retract a previously placed bid.
4401
4409
  *
@@ -4406,6 +4414,15 @@ declare module '@polkadot/api-base/types/submittable' {
4406
4414
  * - `duration`: The duration of the previous bid.
4407
4415
  **/
4408
4416
  retractBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
4417
+ /**
4418
+ * Reduce or remove an outstanding receipt, placing the according proportion of funds into
4419
+ * the account of the owner.
4420
+ *
4421
+ * - `origin`: Must be Signed and the account must be the owner of the fungible counterpart
4422
+ * for receipt `index`.
4423
+ * - `index`: The index of the receipt.
4424
+ **/
4425
+ thawCommunal: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
4409
4426
  /**
4410
4427
  * Reduce or remove an outstanding receipt, placing the according proportion of funds into
4411
4428
  * the account of the owner.
@@ -4416,7 +4433,7 @@ declare module '@polkadot/api-base/types/submittable' {
4416
4433
  * - `portion`: If `Some`, then only the given portion of the receipt should be thawed. If
4417
4434
  * `None`, then all of it should be.
4418
4435
  **/
4419
- thaw: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, portion: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u128>]>;
4436
+ thawPrivate: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, maybeProportion: Option<Perquintill> | null | Uint8Array | Perquintill | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<Perquintill>]>;
4420
4437
  /**
4421
4438
  * Generic tx
4422
4439
  **/
@@ -4748,6 +4765,14 @@ declare module '@polkadot/api-base/types/submittable' {
4748
4765
  **/
4749
4766
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
4750
4767
  };
4768
+ pov: {
4769
+ emitEvent: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4770
+ noop: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
4771
+ /**
4772
+ * Generic tx
4773
+ **/
4774
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
4775
+ };
4751
4776
  preimage: {
4752
4777
  /**
4753
4778
  * Register a preimage on-chain.