@dedot/chaintypes 0.204.0 → 0.206.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.
@@ -123,6 +123,15 @@ export interface ChainConsts extends GenericChainConsts {
123
123
  **/
124
124
  [name: string]: any;
125
125
  };
126
+ /**
127
+ * Pallet `WeightReclaim`'s constants
128
+ **/
129
+ weightReclaim: {
130
+ /**
131
+ * Generic pallet constant
132
+ **/
133
+ [name: string]: any;
134
+ };
126
135
  /**
127
136
  * Pallet `Balances`'s constants
128
137
  **/
@@ -41,6 +41,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
41
41
  FrameSystemExtensionsCheckWeight,
42
42
  PalletTransactionPaymentChargeTransactionPayment,
43
43
  FrameMetadataHashExtensionCheckMetadataHash,
44
+ [],
44
45
  ];
45
46
  AssetId: undefined;
46
47
  EventRecord: FrameSystemEventRecord;
@@ -48,7 +49,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
48
49
 
49
50
  /**
50
51
  * @name: KusamaPeopleApi
51
- * @specVersion: 1009001
52
+ * @specVersion: 2000004
52
53
  **/
53
54
  export interface KusamaPeopleApi extends GenericSubstrateApi {
54
55
  rpc: ChainJsonRpcApis;
@@ -39,6 +39,7 @@ import type {
39
39
  FrameSupportTokensMiscIdAmount,
40
40
  FrameSupportTokensMiscIdAmount002,
41
41
  PalletTransactionPaymentReleases,
42
+ FrameSupportStorageNoDrop,
42
43
  PalletCollatorSelectionCandidateInfo,
43
44
  PeopleKusamaRuntimeSessionKeys,
44
45
  SpStakingOffenceOffenceSeverity,
@@ -681,6 +682,15 @@ export interface ChainStorage extends GenericChainStorage {
681
682
  **/
682
683
  storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
683
684
 
685
+ /**
686
+ * The `OnChargeTransaction` stores the withdrawn tx fee here.
687
+ *
688
+ * Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
689
+ *
690
+ * @param {Callback<FrameSupportStorageNoDrop | undefined> =} callback
691
+ **/
692
+ txPaymentCredit: GenericStorageQuery<() => FrameSupportStorageNoDrop | undefined>;
693
+
684
694
  /**
685
695
  * Generic pallet storage query
686
696
  **/
@@ -27,6 +27,8 @@ import type {
27
27
  SpRuntimeTransactionValidityValidTransaction,
28
28
  SpRuntimeTransactionValidityTransactionSource,
29
29
  SpCoreCryptoKeyTypeId,
30
+ FrameSupportViewFunctionsViewFunctionDispatchError,
31
+ FrameSupportViewFunctionsViewFunctionId,
30
32
  PalletTransactionPaymentRuntimeDispatchInfo,
31
33
  PalletTransactionPaymentFeeDetails,
32
34
  SpWeightsWeightV2Weight,
@@ -325,6 +327,29 @@ export interface RuntimeApis extends GenericRuntimeApis {
325
327
  **/
326
328
  [method: string]: GenericRuntimeApiMethod;
327
329
  };
330
+ /**
331
+ * @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
332
+ **/
333
+ runtimeViewFunction: {
334
+ /**
335
+ * Execute a view function query.
336
+ *
337
+ * @callname: RuntimeViewFunction_execute_view_function
338
+ * @param {FrameSupportViewFunctionsViewFunctionId} query_id
339
+ * @param {BytesLike} input
340
+ **/
341
+ executeViewFunction: GenericRuntimeApiMethod<
342
+ (
343
+ queryId: FrameSupportViewFunctionsViewFunctionId,
344
+ input: BytesLike,
345
+ ) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
346
+ >;
347
+
348
+ /**
349
+ * Generic runtime api call
350
+ **/
351
+ [method: string]: GenericRuntimeApiMethod;
352
+ };
328
353
  /**
329
354
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
330
355
  **/
@@ -5074,6 +5074,18 @@ export type SpRuntimeBlakeTwo256 = {};
5074
5074
 
5075
5075
  export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
5076
5076
 
5077
+ export type CumulusPalletWeightReclaimStorageWeightReclaim = [
5078
+ FrameSystemExtensionsCheckNonZeroSender,
5079
+ FrameSystemExtensionsCheckSpecVersion,
5080
+ FrameSystemExtensionsCheckTxVersion,
5081
+ FrameSystemExtensionsCheckGenesis,
5082
+ FrameSystemExtensionsCheckMortality,
5083
+ FrameSystemExtensionsCheckNonce,
5084
+ FrameSystemExtensionsCheckWeight,
5085
+ PalletTransactionPaymentChargeTransactionPayment,
5086
+ FrameMetadataHashExtensionCheckMetadataHash,
5087
+ ];
5088
+
5077
5089
  export type FrameSystemExtensionsCheckNonZeroSender = {};
5078
5090
 
5079
5091
  export type FrameSystemExtensionsCheckSpecVersion = {};
@@ -5280,6 +5292,10 @@ export type PalletBalancesError =
5280
5292
 
5281
5293
  export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2';
5282
5294
 
5295
+ export type FrameSupportStorageNoDrop = FrameSupportTokensFungibleImbalance;
5296
+
5297
+ export type FrameSupportTokensFungibleImbalance = { amount: bigint };
5298
+
5283
5299
  export type PalletCollatorSelectionCandidateInfo = { who: AccountId32; deposit: bigint };
5284
5300
 
5285
5301
  export type FrameSupportPalletId = FixedBytes<8>;
@@ -6018,6 +6034,13 @@ export type SpRuntimeTransactionValidityValidTransaction = {
6018
6034
  propagate: boolean;
6019
6035
  };
6020
6036
 
6037
+ export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
6038
+
6039
+ export type FrameSupportViewFunctionsViewFunctionDispatchError =
6040
+ | { type: 'NotImplemented' }
6041
+ | { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
6042
+ | { type: 'Codec' };
6043
+
6021
6044
  export type PalletTransactionPaymentRuntimeDispatchInfo = {
6022
6045
  weight: SpWeightsWeightV2Weight;
6023
6046
  class: FrameSupportDispatchDispatchClass;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.204.0",
3
+ "version": "0.206.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "21b69ddd56a1a066ad55aadf895e6a35dc23560a",
28
+ "gitHead": "32d7ac618b705ee0afce30f9aae76065d5001cf3",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -2767,25 +2767,23 @@ export interface ChainEvents extends GenericChainEvents {
2767
2767
  >;
2768
2768
 
2769
2769
  /**
2770
- * Sign-respond request event
2770
+ * Sign bidirectional request event
2771
2771
  **/
2772
- SignRespondRequested: GenericPalletEvent<
2772
+ SignBidirectionalRequested: GenericPalletEvent<
2773
2773
  'Signet',
2774
- 'SignRespondRequested',
2774
+ 'SignBidirectionalRequested',
2775
2775
  {
2776
2776
  sender: AccountId32;
2777
- transactionData: Bytes;
2778
- slip44ChainId: number;
2777
+ serializedTransaction: Bytes;
2778
+ caip2Id: Bytes;
2779
2779
  keyVersion: number;
2780
2780
  deposit: bigint;
2781
2781
  path: Bytes;
2782
2782
  algo: Bytes;
2783
2783
  dest: Bytes;
2784
2784
  params: Bytes;
2785
- explorerDeserializationFormat: number;
2786
- explorerDeserializationSchema: Bytes;
2787
- callbackSerializationFormat: number;
2788
- callbackSerializationSchema: Bytes;
2785
+ outputDeserializationSchema: Bytes;
2786
+ respondSerializationSchema: Bytes;
2789
2787
  }
2790
2788
  >;
2791
2789
 
@@ -2808,11 +2806,11 @@ export interface ChainEvents extends GenericChainEvents {
2808
2806
  >;
2809
2807
 
2810
2808
  /**
2811
- * Read response event
2809
+ * Respond bidirectional event
2812
2810
  **/
2813
- ReadResponded: GenericPalletEvent<
2811
+ RespondBidirectionalEvent: GenericPalletEvent<
2814
2812
  'Signet',
2815
- 'ReadResponded',
2813
+ 'RespondBidirectionalEvent',
2816
2814
  { requestId: FixedBytes<32>; responder: AccountId32; serializedOutput: Bytes; signature: PalletSignetSignature }
2817
2815
  >;
2818
2816
 
@@ -52,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
52
52
 
53
53
  /**
54
54
  * @name: PaseoHydrationApi
55
- * @specVersion: 374
55
+ * @specVersion: 376
56
56
  **/
57
57
  export interface PaseoHydrationApi extends GenericSubstrateApi {
58
58
  rpc: ChainJsonRpcApis;
@@ -2209,6 +2209,15 @@ export interface ChainStorage extends GenericChainStorage {
2209
2209
  **/
2210
2210
  markedEvmAccounts: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
2211
2211
 
2212
+ /**
2213
+ * ERC20-style allowances storage for the MultiCurrency precompile:
2214
+ * (asset_id, owner, spender) -> allowance
2215
+ *
2216
+ * @param {[number, H160, H160]} arg
2217
+ * @param {Callback<bigint> =} callback
2218
+ **/
2219
+ allowances: GenericStorageQuery<(arg: [number, H160, H160]) => bigint, [number, H160, H160]>;
2220
+
2212
2221
  /**
2213
2222
  * Generic pallet storage query
2214
2223
  **/
@@ -59,7 +59,6 @@ import type {
59
59
  PalletReferralsLevel,
60
60
  PalletReferralsFeeDistribution,
61
61
  PalletHsmArbitrage,
62
- PalletSignetSerializationFormat,
63
62
  PalletSignetSignature,
64
63
  PalletSignetErrorResponse,
65
64
  PalletDispenserEvmTransactionParams,
@@ -9442,47 +9441,41 @@ export interface ChainTx<
9442
9441
  * Request a signature for a serialized transaction
9443
9442
  *
9444
9443
  * @param {BytesLike} serializedTransaction
9445
- * @param {number} slip44ChainId
9444
+ * @param {BytesLike} caip2Id
9446
9445
  * @param {number} keyVersion
9447
9446
  * @param {BytesLike} path
9448
9447
  * @param {BytesLike} algo
9449
9448
  * @param {BytesLike} dest
9450
9449
  * @param {BytesLike} params
9451
- * @param {PalletSignetSerializationFormat} explorerDeserializationFormat
9452
- * @param {BytesLike} explorerDeserializationSchema
9453
- * @param {PalletSignetSerializationFormat} callbackSerializationFormat
9454
- * @param {BytesLike} callbackSerializationSchema
9450
+ * @param {BytesLike} outputDeserializationSchema
9451
+ * @param {BytesLike} respondSerializationSchema
9455
9452
  **/
9456
- signRespond: GenericTxCall<
9453
+ signBidirectional: GenericTxCall<
9457
9454
  (
9458
9455
  serializedTransaction: BytesLike,
9459
- slip44ChainId: number,
9456
+ caip2Id: BytesLike,
9460
9457
  keyVersion: number,
9461
9458
  path: BytesLike,
9462
9459
  algo: BytesLike,
9463
9460
  dest: BytesLike,
9464
9461
  params: BytesLike,
9465
- explorerDeserializationFormat: PalletSignetSerializationFormat,
9466
- explorerDeserializationSchema: BytesLike,
9467
- callbackSerializationFormat: PalletSignetSerializationFormat,
9468
- callbackSerializationSchema: BytesLike,
9462
+ outputDeserializationSchema: BytesLike,
9463
+ respondSerializationSchema: BytesLike,
9469
9464
  ) => ChainSubmittableExtrinsic<
9470
9465
  {
9471
9466
  pallet: 'Signet';
9472
9467
  palletCall: {
9473
- name: 'SignRespond';
9468
+ name: 'SignBidirectional';
9474
9469
  params: {
9475
9470
  serializedTransaction: BytesLike;
9476
- slip44ChainId: number;
9471
+ caip2Id: BytesLike;
9477
9472
  keyVersion: number;
9478
9473
  path: BytesLike;
9479
9474
  algo: BytesLike;
9480
9475
  dest: BytesLike;
9481
9476
  params: BytesLike;
9482
- explorerDeserializationFormat: PalletSignetSerializationFormat;
9483
- explorerDeserializationSchema: BytesLike;
9484
- callbackSerializationFormat: PalletSignetSerializationFormat;
9485
- callbackSerializationSchema: BytesLike;
9477
+ outputDeserializationSchema: BytesLike;
9478
+ respondSerializationSchema: BytesLike;
9486
9479
  };
9487
9480
  };
9488
9481
  },
@@ -9537,7 +9530,7 @@ export interface ChainTx<
9537
9530
  * @param {BytesLike} serializedOutput
9538
9531
  * @param {PalletSignetSignature} signature
9539
9532
  **/
9540
- readRespond: GenericTxCall<
9533
+ respondBidirectional: GenericTxCall<
9541
9534
  (
9542
9535
  requestId: FixedBytes<32>,
9543
9536
  serializedOutput: BytesLike,
@@ -9546,7 +9539,7 @@ export interface ChainTx<
9546
9539
  {
9547
9540
  pallet: 'Signet';
9548
9541
  palletCall: {
9549
- name: 'ReadRespond';
9542
+ name: 'RespondBidirectional';
9550
9543
  params: { requestId: FixedBytes<32>; serializedOutput: BytesLike; signature: PalletSignetSignature };
9551
9544
  };
9552
9545
  },
@@ -9572,7 +9565,7 @@ export interface ChainTx<
9572
9565
  * - Charges the configured fee in `FeeAsset`.
9573
9566
  * - Transfers the requested faucet asset from the user to `FeeDestination`.
9574
9567
  * - Builds an EVM transaction calling `IGasFaucet::fund`.
9575
- * - Submits a signing request to SigNet via `pallet_signet::sign_respond`.
9568
+ * - Submits a signing request to SigNet via `pallet_signet::sign_bidirectional`.
9576
9569
  *
9577
9570
  * The `request_id` must match the ID derived internally from the inputs,
9578
9571
  * otherwise the call will fail with `InvalidRequestId`.
@@ -10262,19 +10262,17 @@ export type PalletSignetCall =
10262
10262
  * Request a signature for a serialized transaction
10263
10263
  **/
10264
10264
  | {
10265
- name: 'SignRespond';
10265
+ name: 'SignBidirectional';
10266
10266
  params: {
10267
10267
  serializedTransaction: Bytes;
10268
- slip44ChainId: number;
10268
+ caip2Id: Bytes;
10269
10269
  keyVersion: number;
10270
10270
  path: Bytes;
10271
10271
  algo: Bytes;
10272
10272
  dest: Bytes;
10273
10273
  params: Bytes;
10274
- explorerDeserializationFormat: PalletSignetSerializationFormat;
10275
- explorerDeserializationSchema: Bytes;
10276
- callbackSerializationFormat: PalletSignetSerializationFormat;
10277
- callbackSerializationSchema: Bytes;
10274
+ outputDeserializationSchema: Bytes;
10275
+ respondSerializationSchema: Bytes;
10278
10276
  };
10279
10277
  }
10280
10278
  /**
@@ -10289,7 +10287,7 @@ export type PalletSignetCall =
10289
10287
  * Provide a read response with signature
10290
10288
  **/
10291
10289
  | {
10292
- name: 'ReadRespond';
10290
+ name: 'RespondBidirectional';
10293
10291
  params: { requestId: FixedBytes<32>; serializedOutput: Bytes; signature: PalletSignetSignature };
10294
10292
  };
10295
10293
 
@@ -10324,19 +10322,17 @@ export type PalletSignetCallLike =
10324
10322
  * Request a signature for a serialized transaction
10325
10323
  **/
10326
10324
  | {
10327
- name: 'SignRespond';
10325
+ name: 'SignBidirectional';
10328
10326
  params: {
10329
10327
  serializedTransaction: BytesLike;
10330
- slip44ChainId: number;
10328
+ caip2Id: BytesLike;
10331
10329
  keyVersion: number;
10332
10330
  path: BytesLike;
10333
10331
  algo: BytesLike;
10334
10332
  dest: BytesLike;
10335
10333
  params: BytesLike;
10336
- explorerDeserializationFormat: PalletSignetSerializationFormat;
10337
- explorerDeserializationSchema: BytesLike;
10338
- callbackSerializationFormat: PalletSignetSerializationFormat;
10339
- callbackSerializationSchema: BytesLike;
10334
+ outputDeserializationSchema: BytesLike;
10335
+ respondSerializationSchema: BytesLike;
10340
10336
  };
10341
10337
  }
10342
10338
  /**
@@ -10351,12 +10347,10 @@ export type PalletSignetCallLike =
10351
10347
  * Provide a read response with signature
10352
10348
  **/
10353
10349
  | {
10354
- name: 'ReadRespond';
10350
+ name: 'RespondBidirectional';
10355
10351
  params: { requestId: FixedBytes<32>; serializedOutput: BytesLike; signature: PalletSignetSignature };
10356
10352
  };
10357
10353
 
10358
- export type PalletSignetSerializationFormat = 'Borsh' | 'AbiJson';
10359
-
10360
10354
  export type PalletSignetSignature = { bigR: PalletSignetAffinePoint; s: FixedBytes<32>; recoveryId: number };
10361
10355
 
10362
10356
  export type PalletSignetAffinePoint = { x: FixedBytes<32>; y: FixedBytes<32> };
@@ -10376,7 +10370,7 @@ export type PalletDispenserCall =
10376
10370
  * - Charges the configured fee in `FeeAsset`.
10377
10371
  * - Transfers the requested faucet asset from the user to `FeeDestination`.
10378
10372
  * - Builds an EVM transaction calling `IGasFaucet::fund`.
10379
- * - Submits a signing request to SigNet via `pallet_signet::sign_respond`.
10373
+ * - Submits a signing request to SigNet via `pallet_signet::sign_bidirectional`.
10380
10374
  *
10381
10375
  * The `request_id` must match the ID derived internally from the inputs,
10382
10376
  * otherwise the call will fail with `InvalidRequestId`.
@@ -10431,7 +10425,7 @@ export type PalletDispenserCallLike =
10431
10425
  * - Charges the configured fee in `FeeAsset`.
10432
10426
  * - Transfers the requested faucet asset from the user to `FeeDestination`.
10433
10427
  * - Builds an EVM transaction calling `IGasFaucet::fund`.
10434
- * - Submits a signing request to SigNet via `pallet_signet::sign_respond`.
10428
+ * - Submits a signing request to SigNet via `pallet_signet::sign_bidirectional`.
10435
10429
  *
10436
10430
  * The `request_id` must match the ID derived internally from the inputs,
10437
10431
  * otherwise the call will fail with `InvalidRequestId`.
@@ -15315,24 +15309,22 @@ export type PalletSignetEvent =
15315
15309
  };
15316
15310
  }
15317
15311
  /**
15318
- * Sign-respond request event
15312
+ * Sign bidirectional request event
15319
15313
  **/
15320
15314
  | {
15321
- name: 'SignRespondRequested';
15315
+ name: 'SignBidirectionalRequested';
15322
15316
  data: {
15323
15317
  sender: AccountId32;
15324
- transactionData: Bytes;
15325
- slip44ChainId: number;
15318
+ serializedTransaction: Bytes;
15319
+ caip2Id: Bytes;
15326
15320
  keyVersion: number;
15327
15321
  deposit: bigint;
15328
15322
  path: Bytes;
15329
15323
  algo: Bytes;
15330
15324
  dest: Bytes;
15331
15325
  params: Bytes;
15332
- explorerDeserializationFormat: number;
15333
- explorerDeserializationSchema: Bytes;
15334
- callbackSerializationFormat: number;
15335
- callbackSerializationSchema: Bytes;
15326
+ outputDeserializationSchema: Bytes;
15327
+ respondSerializationSchema: Bytes;
15336
15328
  };
15337
15329
  }
15338
15330
  /**
@@ -15347,10 +15339,10 @@ export type PalletSignetEvent =
15347
15339
  **/
15348
15340
  | { name: 'SignatureError'; data: { requestId: FixedBytes<32>; responder: AccountId32; error: Bytes } }
15349
15341
  /**
15350
- * Read response event
15342
+ * Respond bidirectional event
15351
15343
  **/
15352
15344
  | {
15353
- name: 'ReadResponded';
15345
+ name: 'RespondBidirectionalEvent';
15354
15346
  data: {
15355
15347
  requestId: FixedBytes<32>;
15356
15348
  responder: AccountId32;