@dedot/chaintypes 0.114.0 → 0.116.0

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.
@@ -9,11 +9,11 @@ import type {
9
9
  UncheckedExtrinsicLike,
10
10
  UncheckedExtrinsic,
11
11
  AccountId32Like,
12
+ AccountId32,
12
13
  H256,
13
14
  BitSequence,
14
15
  Bytes,
15
16
  BytesLike,
16
- AccountId32,
17
17
  } from 'dedot/codecs';
18
18
  import type {
19
19
  RelayCommonApisInflationInfo,
@@ -28,18 +28,18 @@ import type {
28
28
  PolkadotPrimitivesV8ValidatorAppPublic,
29
29
  PolkadotPrimitivesV8ValidatorIndex,
30
30
  PolkadotPrimitivesV8GroupRotationInfo,
31
- PolkadotPrimitivesV8CoreState,
31
+ PolkadotPrimitivesVstagingCoreState,
32
32
  PolkadotPrimitivesV8PersistedValidationData,
33
33
  PolkadotParachainPrimitivesPrimitivesId,
34
34
  PolkadotPrimitivesV8OccupiedCoreAssumption,
35
35
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
36
36
  PolkadotPrimitivesV8CandidateCommitments,
37
37
  PolkadotParachainPrimitivesPrimitivesValidationCode,
38
- PolkadotPrimitivesV8CommittedCandidateReceipt,
39
- PolkadotPrimitivesV8CandidateEvent,
38
+ PolkadotPrimitivesVstagingCommittedCandidateReceiptV2,
39
+ PolkadotPrimitivesVstagingCandidateEvent,
40
40
  PolkadotCorePrimitivesInboundDownwardMessage,
41
41
  PolkadotCorePrimitivesInboundHrmpMessage,
42
- PolkadotPrimitivesV8ScrapedOnChainVotes,
42
+ PolkadotPrimitivesVstagingScrapedOnChainVotes,
43
43
  PolkadotPrimitivesV8SessionInfo,
44
44
  PolkadotPrimitivesV8PvfCheckStatement,
45
45
  PolkadotPrimitivesV8ValidatorAppSignature,
@@ -49,7 +49,7 @@ import type {
49
49
  PolkadotPrimitivesV8SlashingPendingSlashes,
50
50
  PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
51
51
  PolkadotPrimitivesV8SlashingDisputeProof,
52
- PolkadotPrimitivesV8AsyncBackingBackingState,
52
+ PolkadotPrimitivesVstagingAsyncBackingBackingState,
53
53
  PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
54
54
  PolkadotPrimitivesV8ApprovalVotingParams,
55
55
  PolkadotPrimitivesV8CoreIndex,
@@ -326,6 +326,14 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
326
326
  **/
327
327
  poolBalance: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<bigint>>;
328
328
 
329
+ /**
330
+ * Returns the bonded account and reward account associated with the pool_id.
331
+ *
332
+ * @callname: NominationPoolsApi_pool_accounts
333
+ * @param {number} pool_id
334
+ **/
335
+ poolAccounts: GenericRuntimeApiMethod<Rv, (poolId: number) => Promise<[AccountId32, AccountId32]>>;
336
+
329
337
  /**
330
338
  * Generic runtime api call
331
339
  **/
@@ -448,7 +456,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
448
456
  *
449
457
  * @callname: ParachainHost_availability_cores
450
458
  **/
451
- availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CoreState>>>;
459
+ availabilityCores: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesVstagingCoreState>>>;
452
460
 
453
461
  /**
454
462
  * Yields the persisted validation data for the given `ParaId` along with an assumption that
@@ -542,7 +550,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
542
550
  Rv,
543
551
  (
544
552
  paraId: PolkadotParachainPrimitivesPrimitivesId,
545
- ) => Promise<PolkadotPrimitivesV8CommittedCandidateReceipt | undefined>
553
+ ) => Promise<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2 | undefined>
546
554
  >;
547
555
 
548
556
  /**
@@ -550,7 +558,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
550
558
  *
551
559
  * @callname: ParachainHost_candidate_events
552
560
  **/
553
- candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesV8CandidateEvent>>>;
561
+ candidateEvents: GenericRuntimeApiMethod<Rv, () => Promise<Array<PolkadotPrimitivesVstagingCandidateEvent>>>;
554
562
 
555
563
  /**
556
564
  * Get all the pending inbound messages in the downward message queue for a para.
@@ -597,7 +605,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
597
605
  *
598
606
  * @callname: ParachainHost_on_chain_votes
599
607
  **/
600
- onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>>;
608
+ onChainVotes: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>>;
601
609
 
602
610
  /**
603
611
  * Get the session info for the given session, if stored.
@@ -727,13 +735,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
727
735
  * Returns the state of parachain backing for a given para.
728
736
  *
729
737
  * @callname: ParachainHost_para_backing_state
730
- * @param {PolkadotParachainPrimitivesPrimitivesId} _
738
+ * @param {PolkadotParachainPrimitivesPrimitivesId} __runtime_api_generated_name_0__
731
739
  **/
732
740
  paraBackingState: GenericRuntimeApiMethod<
733
741
  Rv,
734
742
  (
735
- undefined: PolkadotParachainPrimitivesPrimitivesId,
736
- ) => Promise<PolkadotPrimitivesV8AsyncBackingBackingState | undefined>
743
+ runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
744
+ ) => Promise<PolkadotPrimitivesVstagingAsyncBackingBackingState | undefined>
737
745
  >;
738
746
 
739
747
  /**
@@ -783,9 +791,18 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
783
791
  **/
784
792
  candidatesPendingAvailability: GenericRuntimeApiMethod<
785
793
  Rv,
786
- (paraId: PolkadotParachainPrimitivesPrimitivesId) => Promise<Array<PolkadotPrimitivesV8CommittedCandidateReceipt>>
794
+ (
795
+ paraId: PolkadotParachainPrimitivesPrimitivesId,
796
+ ) => Promise<Array<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2>>
787
797
  >;
788
798
 
799
+ /**
800
+ * Retrieve the maximum uncompressed code size.
801
+ *
802
+ * @callname: ParachainHost_validation_code_bomb_limit
803
+ **/
804
+ validationCodeBombLimit: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
805
+
789
806
  /**
790
807
  * Generic runtime api call
791
808
  **/
@@ -1486,9 +1503,10 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1486
1503
  * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
1487
1504
  * storage.
1488
1505
  *
1489
- * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
1490
- * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
1491
- * deserialization fails, an error is returned.
1506
+ * In the case of a FRAME-based runtime, this function deserializes the full
1507
+ * `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
1508
+ * provided JSON blob is incorrect or incomplete or the deserialization fails, an error
1509
+ * is returned.
1492
1510
  *
1493
1511
  * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
1494
1512
  * defaults will be used.
@@ -1502,7 +1520,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1502
1520
  * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
1503
1521
  * `id`.
1504
1522
  *
1505
- * If `id` is `None` the function returns JSON blob representation of the default
1523
+ * If `id` is `None` the function should return JSON blob representation of the default
1506
1524
  * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
1507
1525
  * `RuntimeGenesisConfig`.
1508
1526
  *
package/paseo/tx.d.ts CHANGED
@@ -69,7 +69,7 @@ import type {
69
69
  PolkadotPrimitivesV8ExecutorParams,
70
70
  PolkadotPrimitivesV8ApprovalVotingParams,
71
71
  PolkadotPrimitivesV8SchedulerParams,
72
- PolkadotPrimitivesV8InherentData,
72
+ PolkadotPrimitivesVstagingInherentData,
73
73
  PolkadotParachainPrimitivesPrimitivesId,
74
74
  PolkadotParachainPrimitivesPrimitivesValidationCode,
75
75
  PolkadotParachainPrimitivesPrimitivesHeadData,
@@ -86,7 +86,7 @@ import type {
86
86
  PalletStateTrieMigrationProgress,
87
87
  XcmVersionedXcm,
88
88
  XcmVersionedAssets,
89
- StagingXcmV4Location,
89
+ StagingXcmV5Location,
90
90
  XcmV3WeightLimit,
91
91
  StagingXcmExecutorAssetTransferTransferType,
92
92
  XcmVersionedAssetId,
@@ -1411,7 +1411,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1411
1411
  /**
1412
1412
  * Schedule a portion of the stash to be unlocked ready for transfer out after the bond
1413
1413
  * period ends. If this leaves an amount actively bonded less than
1414
- * T::Currency::minimum_balance(), then it is increased to the full amount.
1414
+ * [`asset::existential_deposit`], then it is increased to the full amount.
1415
1415
  *
1416
1416
  * The dispatch origin for this call must be _Signed_ by the controller, not the stash.
1417
1417
  *
@@ -3451,7 +3451,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3451
3451
  * Attest to a statement, needed to finalize the claims process.
3452
3452
  *
3453
3453
  * WARNING: Insecure unless your chain includes `PrevalidateAttests` as a
3454
- * `SignedExtension`.
3454
+ * `TransactionExtension`.
3455
3455
  *
3456
3456
  * Unsigned Validation:
3457
3457
  * A call to attest is deemed valid if the sender has a `Preclaim` registered
@@ -4786,6 +4786,41 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4786
4786
  >
4787
4787
  >;
4788
4788
 
4789
+ /**
4790
+ * Approve bountry and propose a curator simultaneously.
4791
+ * This call is a shortcut to calling `approve_bounty` and `propose_curator` separately.
4792
+ *
4793
+ * May only be called from `T::SpendOrigin`.
4794
+ *
4795
+ * - `bounty_id`: Bounty ID to approve.
4796
+ * - `curator`: The curator account whom will manage this bounty.
4797
+ * - `fee`: The curator fee.
4798
+ *
4799
+ * ## Complexity
4800
+ * - O(1).
4801
+ *
4802
+ * @param {number} bountyId
4803
+ * @param {MultiAddressLike} curator
4804
+ * @param {bigint} fee
4805
+ **/
4806
+ approveBountyWithCurator: GenericTxCall<
4807
+ Rv,
4808
+ (
4809
+ bountyId: number,
4810
+ curator: MultiAddressLike,
4811
+ fee: bigint,
4812
+ ) => ChainSubmittableExtrinsic<
4813
+ Rv,
4814
+ {
4815
+ pallet: 'Bounties';
4816
+ palletCall: {
4817
+ name: 'ApproveBountyWithCurator';
4818
+ params: { bountyId: number; curator: MultiAddressLike; fee: bigint };
4819
+ };
4820
+ }
4821
+ >
4822
+ >;
4823
+
4789
4824
  /**
4790
4825
  * Generic pallet tx call
4791
4826
  **/
@@ -6428,25 +6463,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6428
6463
  >
6429
6464
  >;
6430
6465
 
6431
- /**
6432
- * Set the max number of times a claim may timeout on a core before it is abandoned
6433
- *
6434
- * @param {number} new_
6435
- **/
6436
- setMaxAvailabilityTimeouts: GenericTxCall<
6437
- Rv,
6438
- (new_: number) => ChainSubmittableExtrinsic<
6439
- Rv,
6440
- {
6441
- pallet: 'Configuration';
6442
- palletCall: {
6443
- name: 'SetMaxAvailabilityTimeouts';
6444
- params: { new: number };
6445
- };
6446
- }
6447
- >
6448
- >;
6449
-
6450
6466
  /**
6451
6467
  * Set the parachain validator-group rotation frequency
6452
6468
  *
@@ -7119,25 +7135,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7119
7135
  >
7120
7136
  >;
7121
7137
 
7122
- /**
7123
- * Set the on demand (parathreads) ttl in the claimqueue.
7124
- *
7125
- * @param {number} new_
7126
- **/
7127
- setOnDemandTtl: GenericTxCall<
7128
- Rv,
7129
- (new_: number) => ChainSubmittableExtrinsic<
7130
- Rv,
7131
- {
7132
- pallet: 'Configuration';
7133
- palletCall: {
7134
- name: 'SetOnDemandTtl';
7135
- params: { new: number };
7136
- };
7137
- }
7138
- >
7139
- >;
7140
-
7141
7138
  /**
7142
7139
  * Set the minimum backing votes threshold.
7143
7140
  *
@@ -7248,17 +7245,17 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7248
7245
  /**
7249
7246
  * Enter the paras inherent. This will process bitfields and backed candidates.
7250
7247
  *
7251
- * @param {PolkadotPrimitivesV8InherentData} data
7248
+ * @param {PolkadotPrimitivesVstagingInherentData} data
7252
7249
  **/
7253
7250
  enter: GenericTxCall<
7254
7251
  Rv,
7255
- (data: PolkadotPrimitivesV8InherentData) => ChainSubmittableExtrinsic<
7252
+ (data: PolkadotPrimitivesVstagingInherentData) => ChainSubmittableExtrinsic<
7256
7253
  Rv,
7257
7254
  {
7258
7255
  pallet: 'ParaInherent';
7259
7256
  palletCall: {
7260
7257
  name: 'Enter';
7261
- params: { data: PolkadotPrimitivesV8InherentData };
7258
+ params: { data: PolkadotPrimitivesVstagingInherentData };
7262
7259
  };
7263
7260
  }
7264
7261
  >
@@ -9241,13 +9238,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9241
9238
  * - `location`: The destination that is being described.
9242
9239
  * - `xcm_version`: The latest version of XCM that `location` supports.
9243
9240
  *
9244
- * @param {StagingXcmV4Location} location
9241
+ * @param {StagingXcmV5Location} location
9245
9242
  * @param {number} version
9246
9243
  **/
9247
9244
  forceXcmVersion: GenericTxCall<
9248
9245
  Rv,
9249
9246
  (
9250
- location: StagingXcmV4Location,
9247
+ location: StagingXcmV5Location,
9251
9248
  version: number,
9252
9249
  ) => ChainSubmittableExtrinsic<
9253
9250
  Rv,
@@ -9255,7 +9252,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9255
9252
  pallet: 'XcmPallet';
9256
9253
  palletCall: {
9257
9254
  name: 'ForceXcmVersion';
9258
- params: { location: StagingXcmV4Location; version: number };
9255
+ params: { location: StagingXcmV5Location; version: number };
9259
9256
  };
9260
9257
  }
9261
9258
  >