@dedot/chaintypes 0.76.0 → 0.77.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.
Files changed (39) hide show
  1. package/README.md +8 -4
  2. package/kusama-people/consts.d.ts +477 -0
  3. package/kusama-people/errors.d.ts +818 -0
  4. package/kusama-people/events.d.ts +1108 -0
  5. package/kusama-people/index.d.ts +31 -0
  6. package/kusama-people/json-rpc.d.ts +97 -0
  7. package/kusama-people/query.d.ts +1245 -0
  8. package/kusama-people/runtime.d.ts +636 -0
  9. package/kusama-people/tx.d.ts +3153 -0
  10. package/kusama-people/types.d.ts +5330 -0
  11. package/package.json +14 -2
  12. package/paseo-asset-hub/consts.d.ts +788 -0
  13. package/paseo-asset-hub/errors.d.ts +1539 -0
  14. package/paseo-asset-hub/events.d.ts +2538 -0
  15. package/paseo-asset-hub/index.d.ts +31 -0
  16. package/paseo-asset-hub/json-rpc.d.ts +97 -0
  17. package/paseo-asset-hub/query.d.ts +1753 -0
  18. package/paseo-asset-hub/runtime.d.ts +726 -0
  19. package/paseo-asset-hub/tx.d.ts +9202 -0
  20. package/paseo-asset-hub/types.d.ts +12526 -0
  21. package/paseo-people/consts.d.ts +486 -0
  22. package/paseo-people/errors.d.ts +832 -0
  23. package/paseo-people/events.d.ts +1172 -0
  24. package/paseo-people/index.d.ts +31 -0
  25. package/paseo-people/json-rpc.d.ts +97 -0
  26. package/paseo-people/query.d.ts +1257 -0
  27. package/paseo-people/runtime.d.ts +636 -0
  28. package/paseo-people/tx.d.ts +3273 -0
  29. package/paseo-people/types.d.ts +5460 -0
  30. package/polkadot-people/consts.d.ts +477 -0
  31. package/polkadot-people/errors.d.ts +818 -0
  32. package/polkadot-people/events.d.ts +1108 -0
  33. package/polkadot-people/index.d.ts +31 -0
  34. package/polkadot-people/json-rpc.d.ts +97 -0
  35. package/polkadot-people/query.d.ts +1245 -0
  36. package/polkadot-people/runtime.d.ts +636 -0
  37. package/polkadot-people/tx.d.ts +3153 -0
  38. package/polkadot-people/types.d.ts +5349 -0
  39. package/westend-people/json-rpc.d.ts +11 -10
package/README.md CHANGED
@@ -79,16 +79,20 @@ For more detailed information on connecting to networks, see the [official docum
79
79
  ## Supported Networks
80
80
 
81
81
  - Polkadot
82
- - Kusama
83
- - Astar
84
- - Moonbeam
85
82
  - Polkadot Asset Hub
83
+ - Polkadot People
84
+ - Kusama
86
85
  - Kusama Asset Hub
87
- - Aleph
86
+ - Kusama People
88
87
  - Westend
89
88
  - Westend Asset Hub
90
89
  - Westend People
91
90
  - Paseo
91
+ - Paseo Asset Hub
92
+ - Paseo People
93
+ - Astar
94
+ - Moonbeam
95
+ - Aleph
92
96
 
93
97
  > Don't see your network? We welcome Pull Requests to add support for additional PolkadotSDK-based networks!
94
98
 
@@ -0,0 +1,477 @@
1
+ // Generated by dedot cli
2
+
3
+ import type { GenericChainConsts, RpcVersion } from 'dedot/types';
4
+ import type { RuntimeVersion } from 'dedot/codecs';
5
+ import type {
6
+ FrameSystemLimitsBlockWeights,
7
+ FrameSystemLimitsBlockLength,
8
+ SpWeightsRuntimeDbWeight,
9
+ PolkadotParachainPrimitivesPrimitivesId,
10
+ SpWeightsWeightV2Weight,
11
+ } from './types.js';
12
+
13
+ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
14
+ /**
15
+ * Pallet `System`'s constants
16
+ **/
17
+ system: {
18
+ /**
19
+ * Block & extrinsics weights: base values and limits.
20
+ **/
21
+ blockWeights: FrameSystemLimitsBlockWeights;
22
+
23
+ /**
24
+ * The maximum length of a block (in bytes).
25
+ **/
26
+ blockLength: FrameSystemLimitsBlockLength;
27
+
28
+ /**
29
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
30
+ **/
31
+ blockHashCount: number;
32
+
33
+ /**
34
+ * The weight of runtime database operations the runtime can invoke.
35
+ **/
36
+ dbWeight: SpWeightsRuntimeDbWeight;
37
+
38
+ /**
39
+ * Get the chain's in-code version.
40
+ **/
41
+ version: RuntimeVersion;
42
+
43
+ /**
44
+ * The designated SS58 prefix of this chain.
45
+ *
46
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
47
+ * that the runtime should know about the prefix in order to make use of it as
48
+ * an identifier of the chain.
49
+ **/
50
+ ss58Prefix: number;
51
+
52
+ /**
53
+ * Generic pallet constant
54
+ **/
55
+ [name: string]: any;
56
+ };
57
+ /**
58
+ * Pallet `ParachainSystem`'s constants
59
+ **/
60
+ parachainSystem: {
61
+ /**
62
+ * Returns the parachain ID we are running with.
63
+ **/
64
+ selfParaId: PolkadotParachainPrimitivesPrimitivesId;
65
+
66
+ /**
67
+ * Generic pallet constant
68
+ **/
69
+ [name: string]: any;
70
+ };
71
+ /**
72
+ * Pallet `Timestamp`'s constants
73
+ **/
74
+ timestamp: {
75
+ /**
76
+ * The minimum period between blocks.
77
+ *
78
+ * Be aware that this is different to the *expected* period that the block production
79
+ * apparatus provides. Your chosen consensus system will generally work with this to
80
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
81
+ * period on default settings.
82
+ **/
83
+ minimumPeriod: bigint;
84
+
85
+ /**
86
+ * Generic pallet constant
87
+ **/
88
+ [name: string]: any;
89
+ };
90
+ /**
91
+ * Pallet `ParachainInfo`'s constants
92
+ **/
93
+ parachainInfo: {
94
+ /**
95
+ * Generic pallet constant
96
+ **/
97
+ [name: string]: any;
98
+ };
99
+ /**
100
+ * Pallet `Balances`'s constants
101
+ **/
102
+ balances: {
103
+ /**
104
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
105
+ *
106
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
107
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
108
+ * In case you have multiple sources of provider references, you may also get unexpected
109
+ * behaviour if you set this to zero.
110
+ *
111
+ * Bottom line: Do yourself a favour and make it at least one!
112
+ **/
113
+ existentialDeposit: bigint;
114
+
115
+ /**
116
+ * The maximum number of locks that should exist on an account.
117
+ * Not strictly enforced, but used for weight estimation.
118
+ *
119
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
120
+ **/
121
+ maxLocks: number;
122
+
123
+ /**
124
+ * The maximum number of named reserves that can exist on an account.
125
+ *
126
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
127
+ **/
128
+ maxReserves: number;
129
+
130
+ /**
131
+ * The maximum number of individual freeze locks that can exist on an account at any time.
132
+ **/
133
+ maxFreezes: number;
134
+
135
+ /**
136
+ * Generic pallet constant
137
+ **/
138
+ [name: string]: any;
139
+ };
140
+ /**
141
+ * Pallet `TransactionPayment`'s constants
142
+ **/
143
+ transactionPayment: {
144
+ /**
145
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
146
+ * `priority`
147
+ *
148
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
149
+ * added to a tip component in regular `priority` calculations.
150
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
151
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
152
+ *
153
+ * ```rust,ignore
154
+ * // For `Normal`
155
+ * let priority = priority_calc(tip);
156
+ *
157
+ * // For `Operational`
158
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
159
+ * let priority = priority_calc(tip + virtual_tip);
160
+ * ```
161
+ *
162
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
163
+ * sent with the transaction. So, not only does the transaction get a priority bump based
164
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
165
+ * transactions.
166
+ **/
167
+ operationalFeeMultiplier: number;
168
+
169
+ /**
170
+ * Generic pallet constant
171
+ **/
172
+ [name: string]: any;
173
+ };
174
+ /**
175
+ * Pallet `Authorship`'s constants
176
+ **/
177
+ authorship: {
178
+ /**
179
+ * Generic pallet constant
180
+ **/
181
+ [name: string]: any;
182
+ };
183
+ /**
184
+ * Pallet `CollatorSelection`'s constants
185
+ **/
186
+ collatorSelection: {
187
+ /**
188
+ * Generic pallet constant
189
+ **/
190
+ [name: string]: any;
191
+ };
192
+ /**
193
+ * Pallet `Session`'s constants
194
+ **/
195
+ session: {
196
+ /**
197
+ * Generic pallet constant
198
+ **/
199
+ [name: string]: any;
200
+ };
201
+ /**
202
+ * Pallet `Aura`'s constants
203
+ **/
204
+ aura: {
205
+ /**
206
+ * The slot duration Aura should run with, expressed in milliseconds.
207
+ * The effective value of this type should not change while the chain is running.
208
+ *
209
+ * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
210
+ **/
211
+ slotDuration: bigint;
212
+
213
+ /**
214
+ * Generic pallet constant
215
+ **/
216
+ [name: string]: any;
217
+ };
218
+ /**
219
+ * Pallet `AuraExt`'s constants
220
+ **/
221
+ auraExt: {
222
+ /**
223
+ * Generic pallet constant
224
+ **/
225
+ [name: string]: any;
226
+ };
227
+ /**
228
+ * Pallet `XcmpQueue`'s constants
229
+ **/
230
+ xcmpQueue: {
231
+ /**
232
+ * The maximum number of inbound XCMP channels that can be suspended simultaneously.
233
+ *
234
+ * Any further channel suspensions will fail and messages may get dropped without further
235
+ * notice. Choosing a high value (1000) is okay; the trade-off that is described in
236
+ * [`InboundXcmpSuspended`] still applies at that scale.
237
+ **/
238
+ maxInboundSuspended: number;
239
+
240
+ /**
241
+ * Maximal number of outbound XCMP channels that can have messages queued at the same time.
242
+ *
243
+ * If this is reached, then no further messages can be sent to channels that do not yet
244
+ * have a message queued. This should be set to the expected maximum of outbound channels
245
+ * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
246
+ * since otherwise the congestion control protocol will not work as intended and messages
247
+ * may be dropped. This value increases the PoV and should therefore not be picked too
248
+ * high. Governance needs to pay attention to not open more channels than this value.
249
+ **/
250
+ maxActiveOutboundChannels: number;
251
+
252
+ /**
253
+ * The maximal page size for HRMP message pages.
254
+ *
255
+ * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
256
+ * benchmarking. The limit for the size of a message is slightly below this, since some
257
+ * overhead is incurred for encoding the format.
258
+ **/
259
+ maxPageSize: number;
260
+
261
+ /**
262
+ * Generic pallet constant
263
+ **/
264
+ [name: string]: any;
265
+ };
266
+ /**
267
+ * Pallet `PolkadotXcm`'s constants
268
+ **/
269
+ polkadotXcm: {
270
+ /**
271
+ * Generic pallet constant
272
+ **/
273
+ [name: string]: any;
274
+ };
275
+ /**
276
+ * Pallet `CumulusXcm`'s constants
277
+ **/
278
+ cumulusXcm: {
279
+ /**
280
+ * Generic pallet constant
281
+ **/
282
+ [name: string]: any;
283
+ };
284
+ /**
285
+ * Pallet `MessageQueue`'s constants
286
+ **/
287
+ messageQueue: {
288
+ /**
289
+ * The size of the page; this implies the maximum message size which can be sent.
290
+ *
291
+ * A good value depends on the expected message sizes, their weights, the weight that is
292
+ * available for processing them and the maximal needed message size. The maximal message
293
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
294
+ **/
295
+ heapSize: number;
296
+
297
+ /**
298
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
299
+ * can happen. Once there are more stale pages than this, then historical pages may be
300
+ * dropped, even if they contain unprocessed overweight messages.
301
+ **/
302
+ maxStale: number;
303
+
304
+ /**
305
+ * The amount of weight (if any) which should be provided to the message queue for
306
+ * servicing enqueued items `on_initialize`.
307
+ *
308
+ * This may be legitimately `None` in the case that you will call
309
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
310
+ * it run in `on_idle`.
311
+ **/
312
+ serviceWeight: SpWeightsWeightV2Weight | undefined;
313
+
314
+ /**
315
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
316
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
317
+ * Useful for parachains to process messages at the same block they are received.
318
+ *
319
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
320
+ **/
321
+ idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
322
+
323
+ /**
324
+ * Generic pallet constant
325
+ **/
326
+ [name: string]: any;
327
+ };
328
+ /**
329
+ * Pallet `Utility`'s constants
330
+ **/
331
+ utility: {
332
+ /**
333
+ * The limit on the number of batched calls.
334
+ **/
335
+ batchedCallsLimit: number;
336
+
337
+ /**
338
+ * Generic pallet constant
339
+ **/
340
+ [name: string]: any;
341
+ };
342
+ /**
343
+ * Pallet `Multisig`'s constants
344
+ **/
345
+ multisig: {
346
+ /**
347
+ * The base amount of currency needed to reserve for creating a multisig execution or to
348
+ * store a dispatch call for later.
349
+ *
350
+ * This is held for an additional storage item whose value size is
351
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
352
+ * `32 + sizeof(AccountId)` bytes.
353
+ **/
354
+ depositBase: bigint;
355
+
356
+ /**
357
+ * The amount of currency needed per unit threshold when creating a multisig execution.
358
+ *
359
+ * This is held for adding 32 bytes more into a pre-existing storage value.
360
+ **/
361
+ depositFactor: bigint;
362
+
363
+ /**
364
+ * The maximum amount of signatories allowed in the multisig.
365
+ **/
366
+ maxSignatories: number;
367
+
368
+ /**
369
+ * Generic pallet constant
370
+ **/
371
+ [name: string]: any;
372
+ };
373
+ /**
374
+ * Pallet `Proxy`'s constants
375
+ **/
376
+ proxy: {
377
+ /**
378
+ * The base amount of currency needed to reserve for creating a proxy.
379
+ *
380
+ * This is held for an additional storage item whose value size is
381
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
382
+ **/
383
+ proxyDepositBase: bigint;
384
+
385
+ /**
386
+ * The amount of currency needed per proxy added.
387
+ *
388
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
389
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
390
+ * into account `32 + proxy_type.encode().len()` bytes of data.
391
+ **/
392
+ proxyDepositFactor: bigint;
393
+
394
+ /**
395
+ * The maximum amount of proxies allowed for a single account.
396
+ **/
397
+ maxProxies: number;
398
+
399
+ /**
400
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
401
+ **/
402
+ maxPending: number;
403
+
404
+ /**
405
+ * The base amount of currency needed to reserve for creating an announcement.
406
+ *
407
+ * This is held when a new storage item holding a `Balance` is created (typically 16
408
+ * bytes).
409
+ **/
410
+ announcementDepositBase: bigint;
411
+
412
+ /**
413
+ * The amount of currency needed per announcement made.
414
+ *
415
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
416
+ * into a pre-existing storage value.
417
+ **/
418
+ announcementDepositFactor: bigint;
419
+
420
+ /**
421
+ * Generic pallet constant
422
+ **/
423
+ [name: string]: any;
424
+ };
425
+ /**
426
+ * Pallet `Identity`'s constants
427
+ **/
428
+ identity: {
429
+ /**
430
+ * The amount held on deposit for a registered identity.
431
+ **/
432
+ basicDeposit: bigint;
433
+
434
+ /**
435
+ * The amount held on deposit per encoded byte for a registered identity.
436
+ **/
437
+ byteDeposit: bigint;
438
+
439
+ /**
440
+ * The amount held on deposit for a registered subaccount. This should account for the fact
441
+ * that one storage item's value will increase by the size of an account ID, and there will
442
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
443
+ **/
444
+ subAccountDeposit: bigint;
445
+
446
+ /**
447
+ * The maximum number of sub-accounts allowed per identified account.
448
+ **/
449
+ maxSubAccounts: number;
450
+
451
+ /**
452
+ * Maximum number of registrars allowed in the system. Needed to bound the complexity
453
+ * of, e.g., updating judgements.
454
+ **/
455
+ maxRegistrars: number;
456
+
457
+ /**
458
+ * The number of blocks within which a username grant must be accepted.
459
+ **/
460
+ pendingUsernameExpiration: number;
461
+
462
+ /**
463
+ * The maximum length of a suffix.
464
+ **/
465
+ maxSuffixLength: number;
466
+
467
+ /**
468
+ * The maximum length of a username, including its suffix and any system-added delimiters.
469
+ **/
470
+ maxUsernameLength: number;
471
+
472
+ /**
473
+ * Generic pallet constant
474
+ **/
475
+ [name: string]: any;
476
+ };
477
+ }