@dedot/chaintypes 0.259.0 → 0.261.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.259.0",
3
+ "version": "0.261.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": "21bb18545e125dd78392d7a3ed2ae0f2b001ce6a",
28
+ "gitHead": "49f4387e343755d21730a2af5e4e4692c4e6e4fe",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -20,7 +20,6 @@ export type ChainJsonRpcApis = Pick<
20
20
  | 'author_pendingExtrinsics'
21
21
  | 'author_removeExtrinsic'
22
22
  | 'author_rotateKeys'
23
- | 'author_rotateKeysWithOwner'
24
23
  | 'author_submitAndWatchExtrinsic'
25
24
  | 'author_submitExtrinsic'
26
25
  | 'chainHead_v1_body'
@@ -1408,24 +1408,6 @@ export interface ChainConsts extends GenericChainConsts {
1408
1408
  **/
1409
1409
  [name: string]: any;
1410
1410
  };
1411
- /**
1412
- * Pallet `MetaTx`'s constants
1413
- **/
1414
- metaTx: {
1415
- /**
1416
- * Generic pallet constant
1417
- **/
1418
- [name: string]: any;
1419
- };
1420
- /**
1421
- * Pallet `VerifySignature`'s constants
1422
- **/
1423
- verifySignature: {
1424
- /**
1425
- * Generic pallet constant
1426
- **/
1427
- [name: string]: any;
1428
- };
1429
1411
  /**
1430
1412
  * Pallet `RootOffences`'s constants
1431
1413
  **/
@@ -2806,50 +2806,6 @@ export interface ChainErrors extends GenericChainErrors {
2806
2806
  **/
2807
2807
  [error: string]: GenericPalletError;
2808
2808
  };
2809
- /**
2810
- * Pallet `MetaTx`'s errors
2811
- **/
2812
- metaTx: {
2813
- /**
2814
- * Invalid proof (e.g. signature).
2815
- **/
2816
- BadProof: GenericPalletError;
2817
-
2818
- /**
2819
- * The meta transaction is not yet valid (e.g. nonce too high).
2820
- **/
2821
- Future: GenericPalletError;
2822
-
2823
- /**
2824
- * The meta transaction is outdated (e.g. nonce too low).
2825
- **/
2826
- Stale: GenericPalletError;
2827
-
2828
- /**
2829
- * The meta transactions's birth block is ancient.
2830
- **/
2831
- AncientBirthBlock: GenericPalletError;
2832
-
2833
- /**
2834
- * The transaction extension did not authorize any origin.
2835
- **/
2836
- UnknownOrigin: GenericPalletError;
2837
-
2838
- /**
2839
- * The meta transaction is invalid.
2840
- **/
2841
- Invalid: GenericPalletError;
2842
-
2843
- /**
2844
- * The meta transaction length is invalid.
2845
- **/
2846
- InvalidLength: GenericPalletError;
2847
-
2848
- /**
2849
- * Generic pallet error
2850
- **/
2851
- [error: string]: GenericPalletError;
2852
- };
2853
2809
  /**
2854
2810
  * Pallet `RootOffences`'s errors
2855
2811
  **/
@@ -3298,27 +3298,6 @@ export interface ChainEvents extends GenericChainEvents {
3298
3298
  **/
3299
3299
  [prop: string]: GenericPalletEvent;
3300
3300
  };
3301
- /**
3302
- * Pallet `MetaTx`'s events
3303
- **/
3304
- metaTx: {
3305
- /**
3306
- * A meta transaction has been dispatched.
3307
- *
3308
- * Contains the dispatch result of the meta transaction along with post-dispatch
3309
- * information.
3310
- **/
3311
- Dispatched: GenericPalletEvent<
3312
- 'MetaTx',
3313
- 'Dispatched',
3314
- { result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
3315
- >;
3316
-
3317
- /**
3318
- * Generic pallet event
3319
- **/
3320
- [prop: string]: GenericPalletEvent;
3321
- };
3322
3301
  /**
3323
3302
  * Pallet `RootOffences`'s events
3324
3303
  **/
@@ -52,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
52
52
 
53
53
  /**
54
54
  * @name: WestendApi
55
- * @specVersion: 1022002
55
+ * @specVersion: 1022003
56
56
  **/
57
57
  export interface WestendApi extends GenericSubstrateApi {
58
58
  rpc: ChainJsonRpcApis;
package/westend/tx.d.ts CHANGED
@@ -93,7 +93,6 @@ import type {
93
93
  StagingXcmExecutorAssetTransferTransferType,
94
94
  XcmVersionedAssetId,
95
95
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
96
- PalletMetaTxMetaTx,
97
96
  SpStakingExposure,
98
97
  SpConsensusBeefyDoubleVotingProof,
99
98
  SpConsensusBeefyForkVotingProof,
@@ -10582,41 +10581,6 @@ export interface ChainTx<
10582
10581
  **/
10583
10582
  [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
10584
10583
  };
10585
- /**
10586
- * Pallet `MetaTx`'s transaction calls
10587
- **/
10588
- metaTx: {
10589
- /**
10590
- * Dispatch a given meta transaction.
10591
- *
10592
- * - `_origin`: Can be any kind of origin.
10593
- * - `meta_tx`: Meta Transaction with a target call to be dispatched.
10594
- * - `meta_tx_encoded_len`: The size of the encoded meta transaction in bytes.
10595
- *
10596
- * @param {PalletMetaTxMetaTx} metaTx
10597
- * @param {number} metaTxEncodedLen
10598
- **/
10599
- dispatch: GenericTxCall<
10600
- (
10601
- metaTx: PalletMetaTxMetaTx,
10602
- metaTxEncodedLen: number,
10603
- ) => ChainSubmittableExtrinsic<
10604
- {
10605
- pallet: 'MetaTx';
10606
- palletCall: {
10607
- name: 'Dispatch';
10608
- params: { metaTx: PalletMetaTxMetaTx; metaTxEncodedLen: number };
10609
- };
10610
- },
10611
- ChainKnownTypes
10612
- >
10613
- >;
10614
-
10615
- /**
10616
- * Generic pallet tx call
10617
- **/
10618
- [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
10619
- };
10620
10584
  /**
10621
10585
  * Pallet `RootOffences`'s transaction calls
10622
10586
  **/
@@ -76,7 +76,6 @@ export type WestendRuntimeRuntimeCall =
76
76
  | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall }
77
77
  | { pallet: 'AssetRate'; palletCall: PalletAssetRateCall }
78
78
  | { pallet: 'RootTesting'; palletCall: PalletRootTestingCall }
79
- | { pallet: 'MetaTx'; palletCall: PalletMetaTxCall }
80
79
  | { pallet: 'RootOffences'; palletCall: PalletRootOffencesCall }
81
80
  | { pallet: 'Beefy'; palletCall: PalletBeefyCall }
82
81
  | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCall };
@@ -131,7 +130,6 @@ export type WestendRuntimeRuntimeCallLike =
131
130
  | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike }
132
131
  | { pallet: 'AssetRate'; palletCall: PalletAssetRateCallLike }
133
132
  | { pallet: 'RootTesting'; palletCall: PalletRootTestingCallLike }
134
- | { pallet: 'MetaTx'; palletCall: PalletMetaTxCallLike }
135
133
  | { pallet: 'RootOffences'; palletCall: PalletRootOffencesCallLike }
136
134
  | { pallet: 'Beefy'; palletCall: PalletBeefyCallLike }
137
135
  | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCallLike };
@@ -10309,67 +10307,6 @@ export type PalletRootTestingCallLike =
10309
10307
  **/
10310
10308
  { name: 'FillBlock'; params: { ratio: Perbill } } | { name: 'TriggerDefensive' };
10311
10309
 
10312
- /**
10313
- * Contains a variant per dispatchable extrinsic that this pallet has.
10314
- **/
10315
- export type PalletMetaTxCall =
10316
- /**
10317
- * Dispatch a given meta transaction.
10318
- *
10319
- * - `_origin`: Can be any kind of origin.
10320
- * - `meta_tx`: Meta Transaction with a target call to be dispatched.
10321
- * - `meta_tx_encoded_len`: The size of the encoded meta transaction in bytes.
10322
- **/
10323
- { name: 'Dispatch'; params: { metaTx: PalletMetaTxMetaTx; metaTxEncodedLen: number } };
10324
-
10325
- export type PalletMetaTxCallLike =
10326
- /**
10327
- * Dispatch a given meta transaction.
10328
- *
10329
- * - `_origin`: Can be any kind of origin.
10330
- * - `meta_tx`: Meta Transaction with a target call to be dispatched.
10331
- * - `meta_tx_encoded_len`: The size of the encoded meta transaction in bytes.
10332
- **/
10333
- { name: 'Dispatch'; params: { metaTx: PalletMetaTxMetaTx; metaTxEncodedLen: number } };
10334
-
10335
- export type PalletMetaTxMetaTx = {
10336
- call: WestendRuntimeRuntimeCall;
10337
- extensionVersion: number;
10338
- extension: [
10339
- PalletVerifySignatureExtensionVerifySignature,
10340
- PalletMetaTxExtensionMetaTxMarker,
10341
- FrameSystemExtensionsCheckNonZeroSender,
10342
- FrameSystemExtensionsCheckSpecVersion,
10343
- FrameSystemExtensionsCheckTxVersion,
10344
- FrameSystemExtensionsCheckGenesis,
10345
- FrameSystemExtensionsCheckMortality,
10346
- FrameSystemExtensionsCheckNonce,
10347
- FrameMetadataHashExtensionCheckMetadataHash,
10348
- ];
10349
- };
10350
-
10351
- export type PalletVerifySignatureExtensionVerifySignature =
10352
- | { type: 'Signed'; value: { signature: SpRuntimeMultiSignature; account: AccountId32 } }
10353
- | { type: 'Disabled' };
10354
-
10355
- export type PalletMetaTxExtensionMetaTxMarker = {};
10356
-
10357
- export type FrameSystemExtensionsCheckNonZeroSender = {};
10358
-
10359
- export type FrameSystemExtensionsCheckSpecVersion = {};
10360
-
10361
- export type FrameSystemExtensionsCheckTxVersion = {};
10362
-
10363
- export type FrameSystemExtensionsCheckGenesis = {};
10364
-
10365
- export type FrameSystemExtensionsCheckMortality = Era;
10366
-
10367
- export type FrameSystemExtensionsCheckNonce = number;
10368
-
10369
- export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
10370
-
10371
- export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
10372
-
10373
10310
  /**
10374
10311
  * Contains a variant per dispatchable extrinsic that this pallet has.
10375
10312
  **/
@@ -10664,10 +10601,26 @@ export type PolkadotRuntimeCommonIdentityMigratorPalletCallLike =
10664
10601
 
10665
10602
  export type FrameSystemExtensionsAuthorizeCall = {};
10666
10603
 
10604
+ export type FrameSystemExtensionsCheckNonZeroSender = {};
10605
+
10606
+ export type FrameSystemExtensionsCheckSpecVersion = {};
10607
+
10608
+ export type FrameSystemExtensionsCheckTxVersion = {};
10609
+
10610
+ export type FrameSystemExtensionsCheckGenesis = {};
10611
+
10612
+ export type FrameSystemExtensionsCheckMortality = Era;
10613
+
10614
+ export type FrameSystemExtensionsCheckNonce = number;
10615
+
10667
10616
  export type FrameSystemExtensionsCheckWeight = {};
10668
10617
 
10669
10618
  export type PalletTransactionPaymentChargeTransactionPayment = bigint;
10670
10619
 
10620
+ export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
10621
+
10622
+ export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
10623
+
10671
10624
  export type FrameSystemExtensionsWeightReclaim = {};
10672
10625
 
10673
10626
  export type FrameSystemAccountInfo = {
@@ -10741,7 +10694,6 @@ export type WestendRuntimeRuntimeEvent =
10741
10694
  | { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
10742
10695
  | { pallet: 'AssetRate'; palletEvent: PalletAssetRateEvent }
10743
10696
  | { pallet: 'RootTesting'; palletEvent: PalletRootTestingEvent }
10744
- | { pallet: 'MetaTx'; palletEvent: PalletMetaTxEvent }
10745
10697
  | { pallet: 'RootOffences'; palletEvent: PalletRootOffencesEvent }
10746
10698
  | { pallet: 'IdentityMigrator'; palletEvent: PolkadotRuntimeCommonIdentityMigratorPalletEvent };
10747
10699
 
@@ -13267,21 +13219,6 @@ export type PalletRootTestingEvent =
13267
13219
  **/
13268
13220
  'DefensiveTestCall';
13269
13221
 
13270
- /**
13271
- * The `Event` enum of this pallet
13272
- **/
13273
- export type PalletMetaTxEvent =
13274
- /**
13275
- * A meta transaction has been dispatched.
13276
- *
13277
- * Contains the dispatch result of the meta transaction along with post-dispatch
13278
- * information.
13279
- **/
13280
- {
13281
- name: 'Dispatched';
13282
- data: { result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> };
13283
- };
13284
-
13285
13222
  /**
13286
13223
  * The `Event` enum of this pallet
13287
13224
  **/
@@ -16242,39 +16179,6 @@ export type PalletAssetRateError =
16242
16179
  **/
16243
16180
  | 'Overflow';
16244
16181
 
16245
- /**
16246
- * The `Error` enum of this pallet.
16247
- **/
16248
- export type PalletMetaTxError =
16249
- /**
16250
- * Invalid proof (e.g. signature).
16251
- **/
16252
- | 'BadProof'
16253
- /**
16254
- * The meta transaction is not yet valid (e.g. nonce too high).
16255
- **/
16256
- | 'Future'
16257
- /**
16258
- * The meta transaction is outdated (e.g. nonce too low).
16259
- **/
16260
- | 'Stale'
16261
- /**
16262
- * The meta transactions's birth block is ancient.
16263
- **/
16264
- | 'AncientBirthBlock'
16265
- /**
16266
- * The transaction extension did not authorize any origin.
16267
- **/
16268
- | 'UnknownOrigin'
16269
- /**
16270
- * The meta transaction is invalid.
16271
- **/
16272
- | 'Invalid'
16273
- /**
16274
- * The meta transaction length is invalid.
16275
- **/
16276
- | 'InvalidLength';
16277
-
16278
16182
  /**
16279
16183
  * The `Error` enum of this pallet.
16280
16184
  **/
@@ -16631,6 +16535,5 @@ export type WestendRuntimeRuntimeError =
16631
16535
  | { pallet: 'XcmPallet'; palletError: PalletXcmError }
16632
16536
  | { pallet: 'MessageQueue'; palletError: PalletMessageQueueError }
16633
16537
  | { pallet: 'AssetRate'; palletError: PalletAssetRateError }
16634
- | { pallet: 'MetaTx'; palletError: PalletMetaTxError }
16635
16538
  | { pallet: 'RootOffences'; palletError: PalletRootOffencesError }
16636
16539
  | { pallet: 'Beefy'; palletError: PalletBeefyError };
@@ -615,6 +615,33 @@ export interface ChainConsts extends GenericChainConsts {
615
615
  **/
616
616
  [name: string]: any;
617
617
  };
618
+ /**
619
+ * Pallet `MetaTx`'s constants
620
+ **/
621
+ metaTx: {
622
+ /**
623
+ * Generic pallet constant
624
+ **/
625
+ [name: string]: any;
626
+ };
627
+ /**
628
+ * Pallet `VerifySignature`'s constants
629
+ **/
630
+ verifySignature: {
631
+ /**
632
+ * Generic pallet constant
633
+ **/
634
+ [name: string]: any;
635
+ };
636
+ /**
637
+ * Pallet `Parameters`'s constants
638
+ **/
639
+ parameters: {
640
+ /**
641
+ * Generic pallet constant
642
+ **/
643
+ [name: string]: any;
644
+ };
618
645
  /**
619
646
  * Pallet `Assets`'s constants
620
647
  **/
@@ -1076,6 +1103,16 @@ export interface ChainConsts extends GenericChainConsts {
1076
1103
  **/
1077
1104
  debugEnabled: boolean;
1078
1105
 
1106
+ /**
1107
+ * When enabled, accounts are automatically mapped on creation and unmapped on
1108
+ * kill via [`AutoMapper`]. This removes the need for explicit `map_account` calls.
1109
+ *
1110
+ * Requires `frame_system::Config::OnNewAccount` and `OnKilledAccount` to be set
1111
+ * to [`AutoMapper`]. When enabled, the `map_account` and `unmap_account`
1112
+ * dispatchables are disabled.
1113
+ **/
1114
+ autoMap: boolean;
1115
+
1079
1116
  /**
1080
1117
  * This determines the relative scale of our gas price and gas estimates.
1081
1118
  *
@@ -1141,6 +1178,39 @@ export interface ChainConsts extends GenericChainConsts {
1141
1178
  **/
1142
1179
  [name: string]: any;
1143
1180
  };
1181
+ /**
1182
+ * Pallet `VestingPrecompiles`'s constants
1183
+ **/
1184
+ vestingPrecompiles: {
1185
+ /**
1186
+ * Generic pallet constant
1187
+ **/
1188
+ [name: string]: any;
1189
+ };
1190
+ /**
1191
+ * Pallet `Psm`'s constants
1192
+ **/
1193
+ psm: {
1194
+ /**
1195
+ * PalletId for deriving the PSM account.
1196
+ **/
1197
+ palletId: FrameSupportPalletId;
1198
+
1199
+ /**
1200
+ * Minimum swap amount.
1201
+ **/
1202
+ minSwapAmount: bigint;
1203
+
1204
+ /**
1205
+ * Maximum number of approved external assets.
1206
+ **/
1207
+ maxExternalAssets: number;
1208
+
1209
+ /**
1210
+ * Generic pallet constant
1211
+ **/
1212
+ [name: string]: any;
1213
+ };
1144
1214
  /**
1145
1215
  * Pallet `StateTrieMigration`'s constants
1146
1216
  **/
@@ -1166,7 +1236,7 @@ export interface ChainConsts extends GenericChainConsts {
1166
1236
  * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1167
1237
  *
1168
1238
  * For more info see
1169
- * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
1239
+ * <https://www.shawntabrizi.com/blog/interacting-with-the-substrate-rpc-endpoint/>
1170
1240
  **/
1171
1241
  maxKeyLen: number;
1172
1242
 
@@ -1248,6 +1318,20 @@ export interface ChainConsts extends GenericChainConsts {
1248
1318
  **/
1249
1319
  slashDeferDuration: number;
1250
1320
 
1321
+ /**
1322
+ * When `true`, staking does not mint. It expects an external source to fund
1323
+ * the general reward pot. At era boundary, rewards are snapshotted from
1324
+ * the pot. `EraPayout` is not called.
1325
+ *
1326
+ * When `false`, staking uses the legacy path: `EraPayout` computes inflation,
1327
+ * tokens are minted on-the-fly during payout.
1328
+ *
1329
+ * **Irreversible**: once set to `true`, must never be switched back. Eras
1330
+ * created in non-minting mode have funded reward pots — switching to legacy
1331
+ * would orphan those pots and cause double-minting.
1332
+ **/
1333
+ disableMinting: boolean;
1334
+
1251
1335
  /**
1252
1336
  * The maximum size of each `T::ExposurePage`.
1253
1337
  *
@@ -1294,6 +1378,8 @@ export interface ChainConsts extends GenericChainConsts {
1294
1378
  *
1295
1379
  * Example: For an ideal era duration of 24 hours (86,400,000 ms),
1296
1380
  * this can be set to 604,800,000 ms (7 days).
1381
+ *
1382
+ * Only used in legacy minting mode (`DisableMinting = false`).
1297
1383
  **/
1298
1384
  maxEraDuration: bigint;
1299
1385
 
@@ -1702,12 +1788,28 @@ export interface ChainConsts extends GenericChainConsts {
1702
1788
  dap: {
1703
1789
  /**
1704
1790
  * The pallet ID used to derive the buffer account.
1705
- *
1706
- * Each runtime should configure a unique ID to avoid collisions if multiple
1707
- * DAP instances are used.
1708
1791
  **/
1709
1792
  palletId: FrameSupportPalletId;
1710
1793
 
1794
+ /**
1795
+ * Minimum elapsed time (ms) between issuance drips.
1796
+ *
1797
+ * - `0` = drip every block
1798
+ * - `60_000` = drip every minute (Recommended)
1799
+ *
1800
+ * Should be small relative to era length.
1801
+ **/
1802
+ issuanceCadence: bigint;
1803
+
1804
+ /**
1805
+ * Safety ceiling: maximum elapsed time (ms) considered in a single drip.
1806
+ *
1807
+ * If more time has passed than this, elapsed is clamped to this value.
1808
+ * Prevents accidental over-minting from bugs, misconfiguration, or long
1809
+ * periods without blocks.
1810
+ **/
1811
+ maxElapsedPerDrip: bigint;
1812
+
1711
1813
  /**
1712
1814
  * Generic pallet constant
1713
1815
  **/