@polkadot/api-augment 15.10.2 → 16.1.1

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 (51) hide show
  1. package/assetHubKusama/consts.d.ts +613 -0
  2. package/assetHubKusama/consts.js +2 -0
  3. package/assetHubKusama/errors.d.ts +1298 -0
  4. package/assetHubKusama/errors.js +2 -0
  5. package/assetHubKusama/events.d.ts +2108 -0
  6. package/assetHubKusama/events.js +2 -0
  7. package/assetHubKusama/index.d.ts +8 -0
  8. package/assetHubKusama/index.js +8 -0
  9. package/assetHubKusama/query.d.ts +1054 -0
  10. package/assetHubKusama/query.js +2 -0
  11. package/assetHubKusama/registry.d.ts +1 -0
  12. package/assetHubKusama/registry.js +1 -0
  13. package/assetHubKusama/runtime.d.ts +408 -0
  14. package/assetHubKusama/runtime.js +2 -0
  15. package/assetHubKusama/tx.d.ts +5997 -0
  16. package/assetHubKusama/tx.js +2 -0
  17. package/assetHubPolkadot/consts.js +2 -0
  18. package/assetHubPolkadot/errors.js +2 -0
  19. package/assetHubPolkadot/events.js +2 -0
  20. package/assetHubPolkadot/index.js +8 -0
  21. package/assetHubPolkadot/query.js +2 -0
  22. package/assetHubPolkadot/registry.js +1 -0
  23. package/assetHubPolkadot/runtime.js +2 -0
  24. package/assetHubPolkadot/tx.js +2 -0
  25. package/cjs/assetHubKusama/consts.d.ts +613 -0
  26. package/cjs/assetHubKusama/consts.js +4 -0
  27. package/cjs/assetHubKusama/errors.d.ts +1298 -0
  28. package/cjs/assetHubKusama/errors.js +4 -0
  29. package/cjs/assetHubKusama/events.d.ts +2108 -0
  30. package/cjs/assetHubKusama/events.js +4 -0
  31. package/cjs/assetHubKusama/index.d.ts +8 -0
  32. package/cjs/assetHubKusama/index.js +10 -0
  33. package/cjs/assetHubKusama/query.d.ts +1054 -0
  34. package/cjs/assetHubKusama/query.js +4 -0
  35. package/cjs/assetHubKusama/registry.d.ts +1 -0
  36. package/cjs/assetHubKusama/registry.js +3 -0
  37. package/cjs/assetHubKusama/runtime.d.ts +408 -0
  38. package/cjs/assetHubKusama/runtime.js +4 -0
  39. package/cjs/assetHubKusama/tx.d.ts +5997 -0
  40. package/cjs/assetHubKusama/tx.js +4 -0
  41. package/cjs/assetHubPolkadot/consts.js +4 -0
  42. package/cjs/assetHubPolkadot/errors.js +4 -0
  43. package/cjs/assetHubPolkadot/events.js +4 -0
  44. package/cjs/assetHubPolkadot/index.js +10 -0
  45. package/cjs/assetHubPolkadot/query.js +4 -0
  46. package/cjs/assetHubPolkadot/registry.js +3 -0
  47. package/cjs/assetHubPolkadot/runtime.js +4 -0
  48. package/cjs/assetHubPolkadot/tx.js +4 -0
  49. package/cjs/packageInfo.js +1 -1
  50. package/package.json +159 -7
  51. package/packageInfo.js +1 -1
@@ -0,0 +1,613 @@
1
+ import '@polkadot/api-base/types/consts';
2
+ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
+ import type { Bytes, Option, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { Codec } from '@polkadot/types-codec/types';
5
+ import type { Permill } from '@polkadot/types/interfaces/runtime';
6
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Location } from '@polkadot/types/lookup';
7
+ export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
8
+ declare module '@polkadot/api-base/types/consts' {
9
+ interface AugmentedConsts<ApiType extends ApiTypes> {
10
+ assetConversion: {
11
+ /**
12
+ * A fee to withdraw the liquidity.
13
+ **/
14
+ liquidityWithdrawalFee: Permill & AugmentedConst<ApiType>;
15
+ /**
16
+ * A % the liquidity providers will take of every swap. Represents 10ths of a percent.
17
+ **/
18
+ lpFee: u32 & AugmentedConst<ApiType>;
19
+ /**
20
+ * The max number of hops in a swap.
21
+ **/
22
+ maxSwapPathLength: u32 & AugmentedConst<ApiType>;
23
+ /**
24
+ * The minimum LP token amount that could be minted. Ameliorates rounding errors.
25
+ **/
26
+ mintMinLiquidity: u128 & AugmentedConst<ApiType>;
27
+ /**
28
+ * The pallet's id, used for deriving its sovereign account ID.
29
+ **/
30
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
31
+ /**
32
+ * A one-time fee to setup the pool.
33
+ **/
34
+ poolSetupFee: u128 & AugmentedConst<ApiType>;
35
+ /**
36
+ * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
37
+ **/
38
+ poolSetupFeeAsset: StagingXcmV4Location & AugmentedConst<ApiType>;
39
+ /**
40
+ * Generic const
41
+ **/
42
+ [key: string]: Codec;
43
+ };
44
+ assets: {
45
+ /**
46
+ * The amount of funds that must be reserved when creating a new approval.
47
+ **/
48
+ approvalDeposit: u128 & AugmentedConst<ApiType>;
49
+ /**
50
+ * The amount of funds that must be reserved for a non-provider asset account to be
51
+ * maintained.
52
+ **/
53
+ assetAccountDeposit: u128 & AugmentedConst<ApiType>;
54
+ /**
55
+ * The basic amount of funds that must be reserved for an asset.
56
+ **/
57
+ assetDeposit: u128 & AugmentedConst<ApiType>;
58
+ /**
59
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
60
+ **/
61
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
62
+ /**
63
+ * The additional funds that must be reserved for the number of bytes you store in your
64
+ * metadata.
65
+ **/
66
+ metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
67
+ /**
68
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
69
+ *
70
+ * Must be configured to result in a weight that makes each call fit in a block.
71
+ **/
72
+ removeItemsLimit: u32 & AugmentedConst<ApiType>;
73
+ /**
74
+ * The maximum length of a name or symbol stored on-chain.
75
+ **/
76
+ stringLimit: u32 & AugmentedConst<ApiType>;
77
+ /**
78
+ * Generic const
79
+ **/
80
+ [key: string]: Codec;
81
+ };
82
+ aura: {
83
+ /**
84
+ * The slot duration Aura should run with, expressed in milliseconds.
85
+ * The effective value of this type should not change while the chain is running.
86
+ *
87
+ * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
88
+ **/
89
+ slotDuration: u64 & AugmentedConst<ApiType>;
90
+ /**
91
+ * Generic const
92
+ **/
93
+ [key: string]: Codec;
94
+ };
95
+ balances: {
96
+ /**
97
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
98
+ *
99
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
100
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
101
+ * In case you have multiple sources of provider references, you may also get unexpected
102
+ * behaviour if you set this to zero.
103
+ *
104
+ * Bottom line: Do yourself a favour and make it at least one!
105
+ **/
106
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
107
+ /**
108
+ * The maximum number of individual freeze locks that can exist on an account at any time.
109
+ **/
110
+ maxFreezes: u32 & AugmentedConst<ApiType>;
111
+ /**
112
+ * The maximum number of locks that should exist on an account.
113
+ * Not strictly enforced, but used for weight estimation.
114
+ *
115
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
116
+ **/
117
+ maxLocks: u32 & AugmentedConst<ApiType>;
118
+ /**
119
+ * The maximum number of named reserves that can exist on an account.
120
+ *
121
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
122
+ **/
123
+ maxReserves: u32 & AugmentedConst<ApiType>;
124
+ /**
125
+ * Generic const
126
+ **/
127
+ [key: string]: Codec;
128
+ };
129
+ foreignAssets: {
130
+ /**
131
+ * The amount of funds that must be reserved when creating a new approval.
132
+ **/
133
+ approvalDeposit: u128 & AugmentedConst<ApiType>;
134
+ /**
135
+ * The amount of funds that must be reserved for a non-provider asset account to be
136
+ * maintained.
137
+ **/
138
+ assetAccountDeposit: u128 & AugmentedConst<ApiType>;
139
+ /**
140
+ * The basic amount of funds that must be reserved for an asset.
141
+ **/
142
+ assetDeposit: u128 & AugmentedConst<ApiType>;
143
+ /**
144
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
145
+ **/
146
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
147
+ /**
148
+ * The additional funds that must be reserved for the number of bytes you store in your
149
+ * metadata.
150
+ **/
151
+ metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
152
+ /**
153
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
154
+ *
155
+ * Must be configured to result in a weight that makes each call fit in a block.
156
+ **/
157
+ removeItemsLimit: u32 & AugmentedConst<ApiType>;
158
+ /**
159
+ * The maximum length of a name or symbol stored on-chain.
160
+ **/
161
+ stringLimit: u32 & AugmentedConst<ApiType>;
162
+ /**
163
+ * Generic const
164
+ **/
165
+ [key: string]: Codec;
166
+ };
167
+ messageQueue: {
168
+ /**
169
+ * The size of the page; this implies the maximum message size which can be sent.
170
+ *
171
+ * A good value depends on the expected message sizes, their weights, the weight that is
172
+ * available for processing them and the maximal needed message size. The maximal message
173
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
174
+ **/
175
+ heapSize: u32 & AugmentedConst<ApiType>;
176
+ /**
177
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
178
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
179
+ * Useful for parachains to process messages at the same block they are received.
180
+ *
181
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
182
+ **/
183
+ idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
184
+ /**
185
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
186
+ * can happen. Once there are more stale pages than this, then historical pages may be
187
+ * dropped, even if they contain unprocessed overweight messages.
188
+ **/
189
+ maxStale: u32 & AugmentedConst<ApiType>;
190
+ /**
191
+ * The amount of weight (if any) which should be provided to the message queue for
192
+ * servicing enqueued items `on_initialize`.
193
+ *
194
+ * This may be legitimately `None` in the case that you will call
195
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
196
+ * it run in `on_idle`.
197
+ **/
198
+ serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
199
+ /**
200
+ * Generic const
201
+ **/
202
+ [key: string]: Codec;
203
+ };
204
+ multisig: {
205
+ /**
206
+ * The base amount of currency needed to reserve for creating a multisig execution or to
207
+ * store a dispatch call for later.
208
+ *
209
+ * This is held for an additional storage item whose value size is
210
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
211
+ * `32 + sizeof(AccountId)` bytes.
212
+ **/
213
+ depositBase: u128 & AugmentedConst<ApiType>;
214
+ /**
215
+ * The amount of currency needed per unit threshold when creating a multisig execution.
216
+ *
217
+ * This is held for adding 32 bytes more into a pre-existing storage value.
218
+ **/
219
+ depositFactor: u128 & AugmentedConst<ApiType>;
220
+ /**
221
+ * The maximum amount of signatories allowed in the multisig.
222
+ **/
223
+ maxSignatories: u32 & AugmentedConst<ApiType>;
224
+ /**
225
+ * Generic const
226
+ **/
227
+ [key: string]: Codec;
228
+ };
229
+ nftFractionalization: {
230
+ /**
231
+ * The deposit paid by the user locking an NFT. The deposit is returned to the original NFT
232
+ * owner when the asset is unified and the NFT is unlocked.
233
+ **/
234
+ deposit: u128 & AugmentedConst<ApiType>;
235
+ /**
236
+ * The newly created asset's name.
237
+ **/
238
+ newAssetName: Bytes & AugmentedConst<ApiType>;
239
+ /**
240
+ * The newly created asset's symbol.
241
+ **/
242
+ newAssetSymbol: Bytes & AugmentedConst<ApiType>;
243
+ /**
244
+ * The pallet's id, used for deriving its sovereign account ID.
245
+ **/
246
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
247
+ /**
248
+ * The maximum length of a name or symbol stored on-chain.
249
+ **/
250
+ stringLimit: u32 & AugmentedConst<ApiType>;
251
+ /**
252
+ * Generic const
253
+ **/
254
+ [key: string]: Codec;
255
+ };
256
+ nfts: {
257
+ /**
258
+ * The maximum approvals an item could have.
259
+ **/
260
+ approvalsLimit: u32 & AugmentedConst<ApiType>;
261
+ /**
262
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
263
+ **/
264
+ attributeDepositBase: u128 & AugmentedConst<ApiType>;
265
+ /**
266
+ * The basic amount of funds that must be reserved for collection.
267
+ **/
268
+ collectionDeposit: u128 & AugmentedConst<ApiType>;
269
+ /**
270
+ * The additional funds that must be reserved for the number of bytes store in metadata,
271
+ * either "normal" metadata or attribute metadata.
272
+ **/
273
+ depositPerByte: u128 & AugmentedConst<ApiType>;
274
+ /**
275
+ * Disables some of pallet's features.
276
+ **/
277
+ features: u64 & AugmentedConst<ApiType>;
278
+ /**
279
+ * The maximum attributes approvals an item could have.
280
+ **/
281
+ itemAttributesApprovalsLimit: u32 & AugmentedConst<ApiType>;
282
+ /**
283
+ * The basic amount of funds that must be reserved for an item.
284
+ **/
285
+ itemDeposit: u128 & AugmentedConst<ApiType>;
286
+ /**
287
+ * The maximum length of an attribute key.
288
+ **/
289
+ keyLimit: u32 & AugmentedConst<ApiType>;
290
+ /**
291
+ * The max number of attributes a user could set per call.
292
+ **/
293
+ maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
294
+ /**
295
+ * The max duration in blocks for deadlines.
296
+ **/
297
+ maxDeadlineDuration: u32 & AugmentedConst<ApiType>;
298
+ /**
299
+ * The max number of tips a user could send.
300
+ **/
301
+ maxTips: u32 & AugmentedConst<ApiType>;
302
+ /**
303
+ * The basic amount of funds that must be reserved when adding metadata to your item.
304
+ **/
305
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
306
+ /**
307
+ * The maximum length of data stored on-chain.
308
+ **/
309
+ stringLimit: u32 & AugmentedConst<ApiType>;
310
+ /**
311
+ * The maximum length of an attribute value.
312
+ **/
313
+ valueLimit: u32 & AugmentedConst<ApiType>;
314
+ /**
315
+ * Generic const
316
+ **/
317
+ [key: string]: Codec;
318
+ };
319
+ parachainSystem: {
320
+ /**
321
+ * Returns the parachain ID we are running with.
322
+ **/
323
+ selfParaId: u32 & AugmentedConst<ApiType>;
324
+ /**
325
+ * Generic const
326
+ **/
327
+ [key: string]: Codec;
328
+ };
329
+ poolAssets: {
330
+ /**
331
+ * The amount of funds that must be reserved when creating a new approval.
332
+ **/
333
+ approvalDeposit: u128 & AugmentedConst<ApiType>;
334
+ /**
335
+ * The amount of funds that must be reserved for a non-provider asset account to be
336
+ * maintained.
337
+ **/
338
+ assetAccountDeposit: u128 & AugmentedConst<ApiType>;
339
+ /**
340
+ * The basic amount of funds that must be reserved for an asset.
341
+ **/
342
+ assetDeposit: u128 & AugmentedConst<ApiType>;
343
+ /**
344
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
345
+ **/
346
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
347
+ /**
348
+ * The additional funds that must be reserved for the number of bytes you store in your
349
+ * metadata.
350
+ **/
351
+ metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
352
+ /**
353
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
354
+ *
355
+ * Must be configured to result in a weight that makes each call fit in a block.
356
+ **/
357
+ removeItemsLimit: u32 & AugmentedConst<ApiType>;
358
+ /**
359
+ * The maximum length of a name or symbol stored on-chain.
360
+ **/
361
+ stringLimit: u32 & AugmentedConst<ApiType>;
362
+ /**
363
+ * Generic const
364
+ **/
365
+ [key: string]: Codec;
366
+ };
367
+ proxy: {
368
+ /**
369
+ * The base amount of currency needed to reserve for creating an announcement.
370
+ *
371
+ * This is held when a new storage item holding a `Balance` is created (typically 16
372
+ * bytes).
373
+ **/
374
+ announcementDepositBase: u128 & AugmentedConst<ApiType>;
375
+ /**
376
+ * The amount of currency needed per announcement made.
377
+ *
378
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
379
+ * into a pre-existing storage value.
380
+ **/
381
+ announcementDepositFactor: u128 & AugmentedConst<ApiType>;
382
+ /**
383
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
384
+ **/
385
+ maxPending: u32 & AugmentedConst<ApiType>;
386
+ /**
387
+ * The maximum amount of proxies allowed for a single account.
388
+ **/
389
+ maxProxies: u32 & AugmentedConst<ApiType>;
390
+ /**
391
+ * The base amount of currency needed to reserve for creating a proxy.
392
+ *
393
+ * This is held for an additional storage item whose value size is
394
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
395
+ **/
396
+ proxyDepositBase: u128 & AugmentedConst<ApiType>;
397
+ /**
398
+ * The amount of currency needed per proxy added.
399
+ *
400
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
401
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
402
+ * into account `32 + proxy_type.encode().len()` bytes of data.
403
+ **/
404
+ proxyDepositFactor: u128 & AugmentedConst<ApiType>;
405
+ /**
406
+ * Generic const
407
+ **/
408
+ [key: string]: Codec;
409
+ };
410
+ stateTrieMigration: {
411
+ /**
412
+ * Maximal number of bytes that a key can have.
413
+ *
414
+ * FRAME itself does not limit the key length.
415
+ * The concrete value must therefore depend on your storage usage.
416
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
417
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
418
+ *
419
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
420
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
421
+ *
422
+ * The migration will halt with a `Halted` event if this value is too small.
423
+ * Since there is no real penalty from over-estimating, it is advised to use a large
424
+ * value. The default is 512 byte.
425
+ *
426
+ * Some key lengths for reference:
427
+ * - [`frame_support::storage::StorageValue`]: 32 byte
428
+ * - [`frame_support::storage::StorageMap`]: 64 byte
429
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
430
+ *
431
+ * For more info see
432
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
433
+ **/
434
+ maxKeyLen: u32 & AugmentedConst<ApiType>;
435
+ /**
436
+ * Generic const
437
+ **/
438
+ [key: string]: Codec;
439
+ };
440
+ system: {
441
+ /**
442
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
443
+ **/
444
+ blockHashCount: u32 & AugmentedConst<ApiType>;
445
+ /**
446
+ * The maximum length of a block (in bytes).
447
+ **/
448
+ blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
449
+ /**
450
+ * Block & extrinsics weights: base values and limits.
451
+ **/
452
+ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
453
+ /**
454
+ * The weight of runtime database operations the runtime can invoke.
455
+ **/
456
+ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
457
+ /**
458
+ * The designated SS58 prefix of this chain.
459
+ *
460
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
461
+ * that the runtime should know about the prefix in order to make use of it as
462
+ * an identifier of the chain.
463
+ **/
464
+ ss58Prefix: u16 & AugmentedConst<ApiType>;
465
+ /**
466
+ * Get the chain's in-code version.
467
+ **/
468
+ version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
469
+ /**
470
+ * Generic const
471
+ **/
472
+ [key: string]: Codec;
473
+ };
474
+ timestamp: {
475
+ /**
476
+ * The minimum period between blocks.
477
+ *
478
+ * Be aware that this is different to the *expected* period that the block production
479
+ * apparatus provides. Your chosen consensus system will generally work with this to
480
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
481
+ * period on default settings.
482
+ **/
483
+ minimumPeriod: u64 & AugmentedConst<ApiType>;
484
+ /**
485
+ * Generic const
486
+ **/
487
+ [key: string]: Codec;
488
+ };
489
+ transactionPayment: {
490
+ /**
491
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
492
+ * `priority`
493
+ *
494
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
495
+ * added to a tip component in regular `priority` calculations.
496
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
497
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
498
+ *
499
+ * ```rust,ignore
500
+ * // For `Normal`
501
+ * let priority = priority_calc(tip);
502
+ *
503
+ * // For `Operational`
504
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
505
+ * let priority = priority_calc(tip + virtual_tip);
506
+ * ```
507
+ *
508
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
509
+ * sent with the transaction. So, not only does the transaction get a priority bump based
510
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
511
+ * transactions.
512
+ **/
513
+ operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
514
+ /**
515
+ * Generic const
516
+ **/
517
+ [key: string]: Codec;
518
+ };
519
+ uniques: {
520
+ /**
521
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
522
+ **/
523
+ attributeDepositBase: u128 & AugmentedConst<ApiType>;
524
+ /**
525
+ * The basic amount of funds that must be reserved for collection.
526
+ **/
527
+ collectionDeposit: u128 & AugmentedConst<ApiType>;
528
+ /**
529
+ * The additional funds that must be reserved for the number of bytes store in metadata,
530
+ * either "normal" metadata or attribute metadata.
531
+ **/
532
+ depositPerByte: u128 & AugmentedConst<ApiType>;
533
+ /**
534
+ * The basic amount of funds that must be reserved for an item.
535
+ **/
536
+ itemDeposit: u128 & AugmentedConst<ApiType>;
537
+ /**
538
+ * The maximum length of an attribute key.
539
+ **/
540
+ keyLimit: u32 & AugmentedConst<ApiType>;
541
+ /**
542
+ * The basic amount of funds that must be reserved when adding metadata to your item.
543
+ **/
544
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
545
+ /**
546
+ * The maximum length of data stored on-chain.
547
+ **/
548
+ stringLimit: u32 & AugmentedConst<ApiType>;
549
+ /**
550
+ * The maximum length of an attribute value.
551
+ **/
552
+ valueLimit: u32 & AugmentedConst<ApiType>;
553
+ /**
554
+ * Generic const
555
+ **/
556
+ [key: string]: Codec;
557
+ };
558
+ utility: {
559
+ /**
560
+ * The limit on the number of batched calls.
561
+ **/
562
+ batchedCallsLimit: u32 & AugmentedConst<ApiType>;
563
+ /**
564
+ * Generic const
565
+ **/
566
+ [key: string]: Codec;
567
+ };
568
+ vesting: {
569
+ maxVestingSchedules: u32 & AugmentedConst<ApiType>;
570
+ /**
571
+ * The minimum amount transferred to call `vested_transfer`.
572
+ **/
573
+ minVestedTransfer: u128 & AugmentedConst<ApiType>;
574
+ /**
575
+ * Generic const
576
+ **/
577
+ [key: string]: Codec;
578
+ };
579
+ xcmpQueue: {
580
+ /**
581
+ * Maximal number of outbound XCMP channels that can have messages queued at the same time.
582
+ *
583
+ * If this is reached, then no further messages can be sent to channels that do not yet
584
+ * have a message queued. This should be set to the expected maximum of outbound channels
585
+ * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
586
+ * since otherwise the congestion control protocol will not work as intended and messages
587
+ * may be dropped. This value increases the PoV and should therefore not be picked too
588
+ * high. Governance needs to pay attention to not open more channels than this value.
589
+ **/
590
+ maxActiveOutboundChannels: u32 & AugmentedConst<ApiType>;
591
+ /**
592
+ * The maximum number of inbound XCMP channels that can be suspended simultaneously.
593
+ *
594
+ * Any further channel suspensions will fail and messages may get dropped without further
595
+ * notice. Choosing a high value (1000) is okay; the trade-off that is described in
596
+ * [`InboundXcmpSuspended`] still applies at that scale.
597
+ **/
598
+ maxInboundSuspended: u32 & AugmentedConst<ApiType>;
599
+ /**
600
+ * The maximal page size for HRMP message pages.
601
+ *
602
+ * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
603
+ * benchmarking. The limit for the size of a message is slightly below this, since some
604
+ * overhead is incurred for encoding the format.
605
+ **/
606
+ maxPageSize: u32 & AugmentedConst<ApiType>;
607
+ /**
608
+ * Generic const
609
+ **/
610
+ [key: string]: Codec;
611
+ };
612
+ }
613
+ }
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ import '@polkadot/api-base/types/consts';