@dedot/chaintypes 0.0.1-alpha.25 → 0.0.1-alpha.26

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.
Files changed (97) hide show
  1. package/aleph/consts.d.ts +595 -0
  2. package/aleph/errors.d.ts +985 -0
  3. package/aleph/events.d.ts +984 -0
  4. package/aleph/index.d.ts +22 -0
  5. package/aleph/query.d.ts +1480 -0
  6. package/aleph/rpc.d.ts +727 -0
  7. package/aleph/runtime.d.ts +545 -0
  8. package/aleph/tx.d.ts +2668 -0
  9. package/aleph/types.d.ts +3646 -0
  10. package/astar/consts.d.ts +758 -0
  11. package/astar/errors.d.ts +1580 -0
  12. package/astar/events.d.ts +1788 -0
  13. package/astar/index.d.ts +22 -0
  14. package/astar/query.d.ts +1759 -0
  15. package/astar/rpc.d.ts +974 -0
  16. package/astar/runtime.d.ts +314 -0
  17. package/astar/tx.d.ts +5478 -0
  18. package/astar/types.d.ts +9078 -0
  19. package/index.ts +10 -0
  20. package/kusama/consts.d.ts +1578 -0
  21. package/kusama/errors.d.ts +2999 -0
  22. package/kusama/events.d.ts +3233 -0
  23. package/kusama/index.d.ts +22 -0
  24. package/kusama/query.d.ts +3831 -0
  25. package/kusama/rpc.d.ts +904 -0
  26. package/kusama/runtime.d.ts +1134 -0
  27. package/kusama/tx.d.ts +7077 -0
  28. package/kusama/types.d.ts +10710 -0
  29. package/kusamaAssetHub/consts.d.ts +719 -0
  30. package/kusamaAssetHub/errors.d.ts +1409 -0
  31. package/kusamaAssetHub/events.d.ts +2251 -0
  32. package/kusamaAssetHub/index.d.ts +22 -0
  33. package/kusamaAssetHub/query.d.ts +1554 -0
  34. package/kusamaAssetHub/rpc.d.ts +746 -0
  35. package/kusamaAssetHub/runtime.d.ts +514 -0
  36. package/kusamaAssetHub/tx.d.ts +5055 -0
  37. package/kusamaAssetHub/types.d.ts +6385 -0
  38. package/moonbeam/consts.d.ts +1080 -0
  39. package/moonbeam/errors.d.ts +2135 -0
  40. package/moonbeam/events.d.ts +3091 -0
  41. package/moonbeam/index.d.ts +22 -0
  42. package/moonbeam/query.d.ts +2394 -0
  43. package/moonbeam/rpc.d.ts +1015 -0
  44. package/moonbeam/runtime.d.ts +669 -0
  45. package/moonbeam/tx.d.ts +6156 -0
  46. package/moonbeam/types.d.ts +8045 -0
  47. package/package.json +9 -8
  48. package/packageInfo.js +1 -1
  49. package/packageInfo.ts +3 -0
  50. package/polkadot/consts.d.ts +1277 -0
  51. package/polkadot/errors.d.ts +2424 -0
  52. package/polkadot/events.d.ts +2457 -0
  53. package/polkadot/index.d.ts +22 -0
  54. package/polkadot/query.d.ts +3322 -0
  55. package/polkadot/rpc.d.ts +904 -0
  56. package/polkadot/runtime.d.ts +1134 -0
  57. package/polkadot/tx.d.ts +5913 -0
  58. package/polkadot/types.d.ts +9181 -0
  59. package/polkadotAssetHub/consts.d.ts +591 -0
  60. package/polkadotAssetHub/errors.d.ts +1119 -0
  61. package/polkadotAssetHub/events.d.ts +1855 -0
  62. package/polkadotAssetHub/index.d.ts +22 -0
  63. package/polkadotAssetHub/query.d.ts +1460 -0
  64. package/polkadotAssetHub/rpc.d.ts +746 -0
  65. package/polkadotAssetHub/runtime.d.ts +451 -0
  66. package/polkadotAssetHub/tx.d.ts +4189 -0
  67. package/polkadotAssetHub/types.d.ts +5539 -0
  68. package/rococoAssetHub/consts.d.ts +750 -0
  69. package/rococoAssetHub/errors.d.ts +1494 -0
  70. package/rococoAssetHub/events.d.ts +2252 -0
  71. package/rococoAssetHub/index.d.ts +22 -0
  72. package/rococoAssetHub/query.d.ts +1516 -0
  73. package/rococoAssetHub/rpc.d.ts +746 -0
  74. package/rococoAssetHub/runtime.d.ts +542 -0
  75. package/rococoAssetHub/tx.d.ts +5169 -0
  76. package/rococoAssetHub/types.d.ts +6751 -0
  77. package/substrate/consts.d.ts +2223 -0
  78. package/substrate/errors.d.ts +4023 -0
  79. package/substrate/events.d.ts +5107 -0
  80. package/substrate/index.d.ts +22 -0
  81. package/substrate/query.d.ts +3890 -0
  82. package/substrate/rpc.d.ts +894 -0
  83. package/substrate/runtime.d.ts +941 -0
  84. package/substrate/tx.d.ts +10391 -0
  85. package/substrate/types.d.ts +13380 -0
  86. package/westendAssetHub/consts.d.ts +750 -0
  87. package/westendAssetHub/errors.d.ts +1494 -0
  88. package/westendAssetHub/events.d.ts +2252 -0
  89. package/westendAssetHub/index.d.ts +22 -0
  90. package/westendAssetHub/query.d.ts +1516 -0
  91. package/westendAssetHub/rpc.d.ts +746 -0
  92. package/westendAssetHub/runtime.d.ts +581 -0
  93. package/westendAssetHub/tx.d.ts +5169 -0
  94. package/westendAssetHub/types.d.ts +6750 -0
  95. package/cjs/index.js +0 -2
  96. package/cjs/package.json +0 -1
  97. package/cjs/packageInfo.js +0 -5
@@ -0,0 +1,591 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainConsts } from '@dedot/types';
4
+ import type { RuntimeVersion } from '@dedot/codecs';
5
+ import type {
6
+ FrameSystemLimitsBlockWeights,
7
+ FrameSystemLimitsBlockLength,
8
+ SpWeightsRuntimeDbWeight,
9
+ PalletNftsBitFlagsPalletFeature,
10
+ } from './types';
11
+
12
+ export interface ChainConsts extends GenericChainConsts {
13
+ /**
14
+ * Pallet `System`'s constants
15
+ **/
16
+ system: {
17
+ /**
18
+ * Block & extrinsics weights: base values and limits.
19
+ **/
20
+ blockWeights: FrameSystemLimitsBlockWeights;
21
+
22
+ /**
23
+ * The maximum length of a block (in bytes).
24
+ **/
25
+ blockLength: FrameSystemLimitsBlockLength;
26
+
27
+ /**
28
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
29
+ **/
30
+ blockHashCount: number;
31
+
32
+ /**
33
+ * The weight of runtime database operations the runtime can invoke.
34
+ **/
35
+ dbWeight: SpWeightsRuntimeDbWeight;
36
+
37
+ /**
38
+ * Get the chain's current version.
39
+ **/
40
+ version: RuntimeVersion;
41
+
42
+ /**
43
+ * The designated SS58 prefix of this chain.
44
+ *
45
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
46
+ * that the runtime should know about the prefix in order to make use of it as
47
+ * an identifier of the chain.
48
+ **/
49
+ ss58Prefix: number;
50
+
51
+ /**
52
+ * Generic pallet constant
53
+ **/
54
+ [name: string]: any;
55
+ };
56
+ /**
57
+ * Pallet `ParachainSystem`'s constants
58
+ **/
59
+ parachainSystem: {
60
+ /**
61
+ * Generic pallet constant
62
+ **/
63
+ [name: string]: any;
64
+ };
65
+ /**
66
+ * Pallet `Timestamp`'s constants
67
+ **/
68
+ timestamp: {
69
+ /**
70
+ * The minimum period between blocks.
71
+ *
72
+ * Be aware that this is different to the *expected* period that the block production
73
+ * apparatus provides. Your chosen consensus system will generally work with this to
74
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
75
+ * period on default settings.
76
+ **/
77
+ minimumPeriod: bigint;
78
+
79
+ /**
80
+ * Generic pallet constant
81
+ **/
82
+ [name: string]: any;
83
+ };
84
+ /**
85
+ * Pallet `ParachainInfo`'s constants
86
+ **/
87
+ parachainInfo: {
88
+ /**
89
+ * Generic pallet constant
90
+ **/
91
+ [name: string]: any;
92
+ };
93
+ /**
94
+ * Pallet `Balances`'s constants
95
+ **/
96
+ balances: {
97
+ /**
98
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
99
+ *
100
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
101
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
102
+ * In case you have multiple sources of provider references, you may also get unexpected
103
+ * behaviour if you set this to zero.
104
+ *
105
+ * Bottom line: Do yourself a favour and make it at least one!
106
+ **/
107
+ existentialDeposit: bigint;
108
+
109
+ /**
110
+ * The maximum number of locks that should exist on an account.
111
+ * Not strictly enforced, but used for weight estimation.
112
+ **/
113
+ maxLocks: number;
114
+
115
+ /**
116
+ * The maximum number of named reserves that can exist on an account.
117
+ **/
118
+ maxReserves: number;
119
+
120
+ /**
121
+ * The maximum number of holds that can exist on an account at any time.
122
+ **/
123
+ maxHolds: number;
124
+
125
+ /**
126
+ * The maximum number of individual freeze locks that can exist on an account at any time.
127
+ **/
128
+ maxFreezes: number;
129
+
130
+ /**
131
+ * Generic pallet constant
132
+ **/
133
+ [name: string]: any;
134
+ };
135
+ /**
136
+ * Pallet `TransactionPayment`'s constants
137
+ **/
138
+ transactionPayment: {
139
+ /**
140
+ * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
141
+ * `priority`
142
+ *
143
+ * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
144
+ * added to a tip component in regular `priority` calculations.
145
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
146
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
147
+ *
148
+ * ```rust,ignore
149
+ * // For `Normal`
150
+ * let priority = priority_calc(tip);
151
+ *
152
+ * // For `Operational`
153
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
154
+ * let priority = priority_calc(tip + virtual_tip);
155
+ * ```
156
+ *
157
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
158
+ * sent with the transaction. So, not only does the transaction get a priority bump based
159
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
160
+ * transactions.
161
+ **/
162
+ operationalFeeMultiplier: number;
163
+
164
+ /**
165
+ * Generic pallet constant
166
+ **/
167
+ [name: string]: any;
168
+ };
169
+ /**
170
+ * Pallet `AssetTxPayment`'s constants
171
+ **/
172
+ assetTxPayment: {
173
+ /**
174
+ * Generic pallet constant
175
+ **/
176
+ [name: string]: any;
177
+ };
178
+ /**
179
+ * Pallet `Authorship`'s constants
180
+ **/
181
+ authorship: {
182
+ /**
183
+ * Generic pallet constant
184
+ **/
185
+ [name: string]: any;
186
+ };
187
+ /**
188
+ * Pallet `CollatorSelection`'s constants
189
+ **/
190
+ collatorSelection: {
191
+ /**
192
+ * Generic pallet constant
193
+ **/
194
+ [name: string]: any;
195
+ };
196
+ /**
197
+ * Pallet `Session`'s constants
198
+ **/
199
+ session: {
200
+ /**
201
+ * Generic pallet constant
202
+ **/
203
+ [name: string]: any;
204
+ };
205
+ /**
206
+ * Pallet `Aura`'s constants
207
+ **/
208
+ aura: {
209
+ /**
210
+ * Generic pallet constant
211
+ **/
212
+ [name: string]: any;
213
+ };
214
+ /**
215
+ * Pallet `AuraExt`'s constants
216
+ **/
217
+ auraExt: {
218
+ /**
219
+ * Generic pallet constant
220
+ **/
221
+ [name: string]: any;
222
+ };
223
+ /**
224
+ * Pallet `XcmpQueue`'s constants
225
+ **/
226
+ xcmpQueue: {
227
+ /**
228
+ * Generic pallet constant
229
+ **/
230
+ [name: string]: any;
231
+ };
232
+ /**
233
+ * Pallet `PolkadotXcm`'s constants
234
+ **/
235
+ polkadotXcm: {
236
+ /**
237
+ * Generic pallet constant
238
+ **/
239
+ [name: string]: any;
240
+ };
241
+ /**
242
+ * Pallet `CumulusXcm`'s constants
243
+ **/
244
+ cumulusXcm: {
245
+ /**
246
+ * Generic pallet constant
247
+ **/
248
+ [name: string]: any;
249
+ };
250
+ /**
251
+ * Pallet `DmpQueue`'s constants
252
+ **/
253
+ dmpQueue: {
254
+ /**
255
+ * Generic pallet constant
256
+ **/
257
+ [name: string]: any;
258
+ };
259
+ /**
260
+ * Pallet `ToKusamaXcmRouter`'s constants
261
+ **/
262
+ toKusamaXcmRouter: {
263
+ /**
264
+ * Generic pallet constant
265
+ **/
266
+ [name: string]: any;
267
+ };
268
+ /**
269
+ * Pallet `Utility`'s constants
270
+ **/
271
+ utility: {
272
+ /**
273
+ * The limit on the number of batched calls.
274
+ **/
275
+ batchedCallsLimit: number;
276
+
277
+ /**
278
+ * Generic pallet constant
279
+ **/
280
+ [name: string]: any;
281
+ };
282
+ /**
283
+ * Pallet `Multisig`'s constants
284
+ **/
285
+ multisig: {
286
+ /**
287
+ * The base amount of currency needed to reserve for creating a multisig execution or to
288
+ * store a dispatch call for later.
289
+ *
290
+ * This is held for an additional storage item whose value size is
291
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
292
+ * `32 + sizeof(AccountId)` bytes.
293
+ **/
294
+ depositBase: bigint;
295
+
296
+ /**
297
+ * The amount of currency needed per unit threshold when creating a multisig execution.
298
+ *
299
+ * This is held for adding 32 bytes more into a pre-existing storage value.
300
+ **/
301
+ depositFactor: bigint;
302
+
303
+ /**
304
+ * The maximum amount of signatories allowed in the multisig.
305
+ **/
306
+ maxSignatories: number;
307
+
308
+ /**
309
+ * Generic pallet constant
310
+ **/
311
+ [name: string]: any;
312
+ };
313
+ /**
314
+ * Pallet `Proxy`'s constants
315
+ **/
316
+ proxy: {
317
+ /**
318
+ * The base amount of currency needed to reserve for creating a proxy.
319
+ *
320
+ * This is held for an additional storage item whose value size is
321
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
322
+ **/
323
+ proxyDepositBase: bigint;
324
+
325
+ /**
326
+ * The amount of currency needed per proxy added.
327
+ *
328
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
329
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
330
+ * into account `32 + proxy_type.encode().len()` bytes of data.
331
+ **/
332
+ proxyDepositFactor: bigint;
333
+
334
+ /**
335
+ * The maximum amount of proxies allowed for a single account.
336
+ **/
337
+ maxProxies: number;
338
+
339
+ /**
340
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
341
+ **/
342
+ maxPending: number;
343
+
344
+ /**
345
+ * The base amount of currency needed to reserve for creating an announcement.
346
+ *
347
+ * This is held when a new storage item holding a `Balance` is created (typically 16
348
+ * bytes).
349
+ **/
350
+ announcementDepositBase: bigint;
351
+
352
+ /**
353
+ * The amount of currency needed per announcement made.
354
+ *
355
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
356
+ * into a pre-existing storage value.
357
+ **/
358
+ announcementDepositFactor: bigint;
359
+
360
+ /**
361
+ * Generic pallet constant
362
+ **/
363
+ [name: string]: any;
364
+ };
365
+ /**
366
+ * Pallet `Assets`'s constants
367
+ **/
368
+ assets: {
369
+ /**
370
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
371
+ *
372
+ * Must be configured to result in a weight that makes each call fit in a block.
373
+ **/
374
+ removeItemsLimit: number;
375
+
376
+ /**
377
+ * The basic amount of funds that must be reserved for an asset.
378
+ **/
379
+ assetDeposit: bigint;
380
+
381
+ /**
382
+ * The amount of funds that must be reserved for a non-provider asset account to be
383
+ * maintained.
384
+ **/
385
+ assetAccountDeposit: bigint;
386
+
387
+ /**
388
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
389
+ **/
390
+ metadataDepositBase: bigint;
391
+
392
+ /**
393
+ * The additional funds that must be reserved for the number of bytes you store in your
394
+ * metadata.
395
+ **/
396
+ metadataDepositPerByte: bigint;
397
+
398
+ /**
399
+ * The amount of funds that must be reserved when creating a new approval.
400
+ **/
401
+ approvalDeposit: bigint;
402
+
403
+ /**
404
+ * The maximum length of a name or symbol stored on-chain.
405
+ **/
406
+ stringLimit: number;
407
+
408
+ /**
409
+ * Generic pallet constant
410
+ **/
411
+ [name: string]: any;
412
+ };
413
+ /**
414
+ * Pallet `Uniques`'s constants
415
+ **/
416
+ uniques: {
417
+ /**
418
+ * The basic amount of funds that must be reserved for collection.
419
+ **/
420
+ collectionDeposit: bigint;
421
+
422
+ /**
423
+ * The basic amount of funds that must be reserved for an item.
424
+ **/
425
+ itemDeposit: bigint;
426
+
427
+ /**
428
+ * The basic amount of funds that must be reserved when adding metadata to your item.
429
+ **/
430
+ metadataDepositBase: bigint;
431
+
432
+ /**
433
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
434
+ **/
435
+ attributeDepositBase: bigint;
436
+
437
+ /**
438
+ * The additional funds that must be reserved for the number of bytes store in metadata,
439
+ * either "normal" metadata or attribute metadata.
440
+ **/
441
+ depositPerByte: bigint;
442
+
443
+ /**
444
+ * The maximum length of data stored on-chain.
445
+ **/
446
+ stringLimit: number;
447
+
448
+ /**
449
+ * The maximum length of an attribute key.
450
+ **/
451
+ keyLimit: number;
452
+
453
+ /**
454
+ * The maximum length of an attribute value.
455
+ **/
456
+ valueLimit: number;
457
+
458
+ /**
459
+ * Generic pallet constant
460
+ **/
461
+ [name: string]: any;
462
+ };
463
+ /**
464
+ * Pallet `Nfts`'s constants
465
+ **/
466
+ nfts: {
467
+ /**
468
+ * The basic amount of funds that must be reserved for collection.
469
+ **/
470
+ collectionDeposit: bigint;
471
+
472
+ /**
473
+ * The basic amount of funds that must be reserved for an item.
474
+ **/
475
+ itemDeposit: bigint;
476
+
477
+ /**
478
+ * The basic amount of funds that must be reserved when adding metadata to your item.
479
+ **/
480
+ metadataDepositBase: bigint;
481
+
482
+ /**
483
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
484
+ **/
485
+ attributeDepositBase: bigint;
486
+
487
+ /**
488
+ * The additional funds that must be reserved for the number of bytes store in metadata,
489
+ * either "normal" metadata or attribute metadata.
490
+ **/
491
+ depositPerByte: bigint;
492
+
493
+ /**
494
+ * The maximum length of data stored on-chain.
495
+ **/
496
+ stringLimit: number;
497
+
498
+ /**
499
+ * The maximum length of an attribute key.
500
+ **/
501
+ keyLimit: number;
502
+
503
+ /**
504
+ * The maximum length of an attribute value.
505
+ **/
506
+ valueLimit: number;
507
+
508
+ /**
509
+ * The maximum approvals an item could have.
510
+ **/
511
+ approvalsLimit: number;
512
+
513
+ /**
514
+ * The maximum attributes approvals an item could have.
515
+ **/
516
+ itemAttributesApprovalsLimit: number;
517
+
518
+ /**
519
+ * The max number of tips a user could send.
520
+ **/
521
+ maxTips: number;
522
+
523
+ /**
524
+ * The max duration in blocks for deadlines.
525
+ **/
526
+ maxDeadlineDuration: number;
527
+
528
+ /**
529
+ * The max number of attributes a user could set per call.
530
+ **/
531
+ maxAttributesPerCall: number;
532
+
533
+ /**
534
+ * Disables some of pallet's features.
535
+ **/
536
+ features: PalletNftsBitFlagsPalletFeature;
537
+
538
+ /**
539
+ * Generic pallet constant
540
+ **/
541
+ [name: string]: any;
542
+ };
543
+ /**
544
+ * Pallet `ForeignAssets`'s constants
545
+ **/
546
+ foreignAssets: {
547
+ /**
548
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
549
+ *
550
+ * Must be configured to result in a weight that makes each call fit in a block.
551
+ **/
552
+ removeItemsLimit: number;
553
+
554
+ /**
555
+ * The basic amount of funds that must be reserved for an asset.
556
+ **/
557
+ assetDeposit: bigint;
558
+
559
+ /**
560
+ * The amount of funds that must be reserved for a non-provider asset account to be
561
+ * maintained.
562
+ **/
563
+ assetAccountDeposit: bigint;
564
+
565
+ /**
566
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
567
+ **/
568
+ metadataDepositBase: bigint;
569
+
570
+ /**
571
+ * The additional funds that must be reserved for the number of bytes you store in your
572
+ * metadata.
573
+ **/
574
+ metadataDepositPerByte: bigint;
575
+
576
+ /**
577
+ * The amount of funds that must be reserved when creating a new approval.
578
+ **/
579
+ approvalDeposit: bigint;
580
+
581
+ /**
582
+ * The maximum length of a name or symbol stored on-chain.
583
+ **/
584
+ stringLimit: number;
585
+
586
+ /**
587
+ * Generic pallet constant
588
+ **/
589
+ [name: string]: any;
590
+ };
591
+ }