@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.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/README.md +3 -1
- package/aleph/consts.d.ts +94 -13
- package/aleph/errors.d.ts +251 -182
- package/aleph/events.d.ts +319 -102
- package/aleph/index.d.ts +16 -11
- package/aleph/json-rpc.d.ts +76 -0
- package/aleph/query.d.ts +261 -168
- package/aleph/runtime.d.ts +90 -39
- package/aleph/tx.d.ts +1822 -1052
- package/aleph/types.d.ts +458 -138
- package/astar/consts.d.ts +112 -116
- package/astar/errors.d.ts +342 -409
- package/astar/events.d.ts +449 -358
- package/astar/index.d.ts +16 -11
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +459 -367
- package/astar/runtime.d.ts +591 -98
- package/astar/tx.d.ts +2485 -3430
- package/astar/types.d.ts +1530 -4436
- package/index.d.ts +3 -0
- package/index.ts +3 -0
- package/kusama/consts.d.ts +54 -115
- package/kusama/errors.d.ts +696 -682
- package/kusama/events.d.ts +592 -407
- package/kusama/index.d.ts +16 -11
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +840 -538
- package/kusama/runtime.d.ts +136 -65
- package/kusama/tx.d.ts +4557 -3051
- package/kusama/types.d.ts +1437 -1161
- package/kusamaAssetHub/consts.d.ts +66 -20
- package/kusamaAssetHub/errors.d.ts +428 -308
- package/kusamaAssetHub/events.d.ts +497 -305
- package/kusamaAssetHub/index.d.ts +16 -11
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +376 -253
- package/kusamaAssetHub/runtime.d.ts +82 -41
- package/kusamaAssetHub/tx.d.ts +3264 -1955
- package/kusamaAssetHub/types.d.ts +1262 -726
- package/moonbeam/consts.d.ts +115 -170
- package/moonbeam/errors.d.ts +564 -787
- package/moonbeam/events.d.ts +583 -746
- package/moonbeam/index.d.ts +16 -11
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +507 -607
- package/moonbeam/runtime.d.ts +132 -47
- package/moonbeam/tx.d.ts +3309 -3268
- package/moonbeam/types.d.ts +1484 -1375
- package/package.json +4 -14
- package/paseo/consts.d.ts +1331 -0
- package/paseo/errors.d.ts +2644 -0
- package/paseo/events.d.ts +2821 -0
- package/paseo/index.d.ts +27 -0
- package/paseo/json-rpc.d.ts +103 -0
- package/paseo/query.d.ts +3709 -0
- package/paseo/runtime.d.ts +1205 -0
- package/paseo/tx.d.ts +8024 -0
- package/paseo/types.d.ts +10194 -0
- package/polkadot/consts.d.ts +95 -50
- package/polkadot/errors.d.ts +619 -468
- package/polkadot/events.d.ts +582 -257
- package/polkadot/index.d.ts +16 -11
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +770 -399
- package/polkadot/runtime.d.ts +136 -65
- package/polkadot/tx.d.ts +4268 -2368
- package/polkadot/types.d.ts +1570 -745
- package/polkadotAssetHub/consts.d.ts +154 -15
- package/polkadotAssetHub/errors.d.ts +615 -234
- package/polkadotAssetHub/events.d.ts +829 -270
- package/polkadotAssetHub/index.d.ts +16 -11
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +438 -243
- package/polkadotAssetHub/runtime.d.ts +147 -40
- package/polkadotAssetHub/tx.d.ts +3747 -1643
- package/polkadotAssetHub/types.d.ts +2096 -806
- package/rococo/consts.d.ts +51 -32
- package/rococo/errors.d.ts +549 -605
- package/rococo/events.d.ts +447 -238
- package/rococo/index.d.ts +16 -11
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +724 -426
- package/rococo/runtime.d.ts +366 -144
- package/rococo/tx.d.ts +6850 -3079
- package/rococo/types.d.ts +5959 -1619
- package/rococoAssetHub/consts.d.ts +92 -7
- package/rococoAssetHub/errors.d.ts +381 -285
- package/rococoAssetHub/events.d.ts +461 -140
- package/rococoAssetHub/index.d.ts +16 -11
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +487 -174
- package/rococoAssetHub/runtime.d.ts +235 -51
- package/rococoAssetHub/tx.d.ts +6005 -2163
- package/rococoAssetHub/types.d.ts +6683 -1003
- package/substrate/consts.d.ts +233 -52
- package/substrate/errors.d.ts +966 -781
- package/substrate/events.d.ts +1226 -381
- package/substrate/index.d.ts +16 -11
- package/substrate/json-rpc.d.ts +103 -0
- package/substrate/query.d.ts +1090 -460
- package/substrate/runtime.d.ts +274 -71
- package/substrate/tx.d.ts +12313 -4510
- package/substrate/types.d.ts +11036 -1432
- package/westend/consts.d.ts +1349 -0
- package/westend/errors.d.ts +2736 -0
- package/westend/events.d.ts +2906 -0
- package/westend/index.d.ts +27 -0
- package/westend/json-rpc.d.ts +103 -0
- package/westend/query.d.ts +3855 -0
- package/westend/runtime.d.ts +1437 -0
- package/westend/tx.d.ts +10248 -0
- package/westend/types.d.ts +14769 -0
- package/westendAssetHub/consts.d.ts +126 -7
- package/westendAssetHub/errors.d.ts +426 -285
- package/westendAssetHub/events.d.ts +498 -140
- package/westendAssetHub/index.d.ts +16 -11
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +526 -174
- package/westendAssetHub/runtime.d.ts +245 -56
- package/westendAssetHub/tx.d.ts +6196 -2166
- package/westendAssetHub/types.d.ts +6913 -1002
- package/westendPeople/consts.d.ts +434 -0
- package/westendPeople/errors.d.ts +769 -0
- package/westendPeople/events.d.ts +1082 -0
- package/westendPeople/index.d.ts +27 -0
- package/westendPeople/json-rpc.d.ts +89 -0
- package/westendPeople/query.d.ts +1209 -0
- package/westendPeople/runtime.d.ts +636 -0
- package/westendPeople/tx.d.ts +2891 -0
- package/westendPeople/types.d.ts +4984 -0
- package/aleph/rpc.d.ts +0 -727
- package/astar/rpc.d.ts +0 -974
- package/kusama/rpc.d.ts +0 -904
- package/kusamaAssetHub/rpc.d.ts +0 -746
- package/moonbeam/rpc.d.ts +0 -1015
- package/packageInfo.d.ts +0 -4
- package/packageInfo.js +0 -2
- package/packageInfo.ts +0 -3
- package/polkadot/rpc.d.ts +0 -904
- package/polkadotAssetHub/rpc.d.ts +0 -746
- package/rococo/rpc.d.ts +0 -904
- package/rococoAssetHub/rpc.d.ts +0 -746
- package/substrate/rpc.d.ts +0 -894
- package/westendAssetHub/rpc.d.ts +0 -746
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
// Generated by
|
|
1
|
+
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericChainConsts } from '
|
|
4
|
-
import type { RuntimeVersion, Bytes, Permill } from '
|
|
3
|
+
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { RuntimeVersion, Bytes, Permill } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
|
+
PolkadotParachainPrimitivesPrimitivesId,
|
|
9
10
|
SpWeightsWeightV2Weight,
|
|
10
11
|
PalletNftsBitFlagsPalletFeature,
|
|
11
12
|
FrameSupportPalletId,
|
|
12
13
|
StagingXcmV3MultilocationMultiLocation,
|
|
13
14
|
} from './types';
|
|
14
15
|
|
|
15
|
-
export interface ChainConsts extends GenericChainConsts {
|
|
16
|
+
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
16
17
|
/**
|
|
17
18
|
* Pallet `System`'s constants
|
|
18
19
|
**/
|
|
@@ -38,7 +39,7 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
38
39
|
dbWeight: SpWeightsRuntimeDbWeight;
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
|
-
* Get the chain's
|
|
42
|
+
* Get the chain's in-code version.
|
|
42
43
|
**/
|
|
43
44
|
version: RuntimeVersion;
|
|
44
45
|
|
|
@@ -60,6 +61,11 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
60
61
|
* Pallet `ParachainSystem`'s constants
|
|
61
62
|
**/
|
|
62
63
|
parachainSystem: {
|
|
64
|
+
/**
|
|
65
|
+
* Returns the parachain ID we are running with.
|
|
66
|
+
**/
|
|
67
|
+
selfParaId: PolkadotParachainPrimitivesPrimitivesId;
|
|
68
|
+
|
|
63
69
|
/**
|
|
64
70
|
* Generic pallet constant
|
|
65
71
|
**/
|
|
@@ -112,11 +118,15 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
112
118
|
/**
|
|
113
119
|
* The maximum number of locks that should exist on an account.
|
|
114
120
|
* Not strictly enforced, but used for weight estimation.
|
|
121
|
+
*
|
|
122
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
115
123
|
**/
|
|
116
124
|
maxLocks: number;
|
|
117
125
|
|
|
118
126
|
/**
|
|
119
127
|
* The maximum number of named reserves that can exist on an account.
|
|
128
|
+
*
|
|
129
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
120
130
|
**/
|
|
121
131
|
maxReserves: number;
|
|
122
132
|
|
|
@@ -204,6 +214,14 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
204
214
|
* Pallet `Aura`'s constants
|
|
205
215
|
**/
|
|
206
216
|
aura: {
|
|
217
|
+
/**
|
|
218
|
+
* The slot duration Aura should run with, expressed in milliseconds.
|
|
219
|
+
* The effective value of this type should not change while the chain is running.
|
|
220
|
+
*
|
|
221
|
+
* For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
|
|
222
|
+
**/
|
|
223
|
+
slotDuration: bigint;
|
|
224
|
+
|
|
207
225
|
/**
|
|
208
226
|
* Generic pallet constant
|
|
209
227
|
**/
|
|
@@ -231,6 +249,27 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
231
249
|
**/
|
|
232
250
|
maxInboundSuspended: number;
|
|
233
251
|
|
|
252
|
+
/**
|
|
253
|
+
* Maximal number of outbound XCMP channels that can have messages queued at the same time.
|
|
254
|
+
*
|
|
255
|
+
* If this is reached, then no further messages can be sent to channels that do not yet
|
|
256
|
+
* have a message queued. This should be set to the expected maximum of outbound channels
|
|
257
|
+
* which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
|
|
258
|
+
* since otherwise the congestion control protocol will not work as intended and messages
|
|
259
|
+
* may be dropped. This value increases the PoV and should therefore not be picked too
|
|
260
|
+
* high. Governance needs to pay attention to not open more channels than this value.
|
|
261
|
+
**/
|
|
262
|
+
maxActiveOutboundChannels: number;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The maximal page size for HRMP message pages.
|
|
266
|
+
*
|
|
267
|
+
* A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
|
|
268
|
+
* benchmarking. The limit for the size of a message is slightly below this, since some
|
|
269
|
+
* overhead is incurred for encoding the format.
|
|
270
|
+
**/
|
|
271
|
+
maxPageSize: number;
|
|
272
|
+
|
|
234
273
|
/**
|
|
235
274
|
* Generic pallet constant
|
|
236
275
|
**/
|
|
@@ -276,13 +315,23 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
276
315
|
|
|
277
316
|
/**
|
|
278
317
|
* The amount of weight (if any) which should be provided to the message queue for
|
|
279
|
-
* servicing enqueued items
|
|
318
|
+
* servicing enqueued items `on_initialize`.
|
|
280
319
|
*
|
|
281
320
|
* This may be legitimately `None` in the case that you will call
|
|
282
|
-
* `ServiceQueues::service_queues` manually
|
|
321
|
+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
|
322
|
+
* it run in `on_idle`.
|
|
283
323
|
**/
|
|
284
324
|
serviceWeight: SpWeightsWeightV2Weight | undefined;
|
|
285
325
|
|
|
326
|
+
/**
|
|
327
|
+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
|
328
|
+
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
|
329
|
+
* Useful for parachains to process messages at the same block they are received.
|
|
330
|
+
*
|
|
331
|
+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
|
332
|
+
**/
|
|
333
|
+
idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
|
|
334
|
+
|
|
286
335
|
/**
|
|
287
336
|
* Generic pallet constant
|
|
288
337
|
**/
|
|
@@ -747,4 +796,40 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
747
796
|
**/
|
|
748
797
|
[name: string]: any;
|
|
749
798
|
};
|
|
799
|
+
/**
|
|
800
|
+
* Pallet `AssetsFreezer`'s constants
|
|
801
|
+
**/
|
|
802
|
+
assetsFreezer: {
|
|
803
|
+
/**
|
|
804
|
+
* Generic pallet constant
|
|
805
|
+
**/
|
|
806
|
+
[name: string]: any;
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* Pallet `ForeignAssetsFreezer`'s constants
|
|
810
|
+
**/
|
|
811
|
+
foreignAssetsFreezer: {
|
|
812
|
+
/**
|
|
813
|
+
* Generic pallet constant
|
|
814
|
+
**/
|
|
815
|
+
[name: string]: any;
|
|
816
|
+
};
|
|
817
|
+
/**
|
|
818
|
+
* Pallet `PoolAssetsFreezer`'s constants
|
|
819
|
+
**/
|
|
820
|
+
poolAssetsFreezer: {
|
|
821
|
+
/**
|
|
822
|
+
* Generic pallet constant
|
|
823
|
+
**/
|
|
824
|
+
[name: string]: any;
|
|
825
|
+
};
|
|
826
|
+
/**
|
|
827
|
+
* Pallet `AssetConversionMigration`'s constants
|
|
828
|
+
**/
|
|
829
|
+
assetConversionMigration: {
|
|
830
|
+
/**
|
|
831
|
+
* Generic pallet constant
|
|
832
|
+
**/
|
|
833
|
+
[name: string]: any;
|
|
834
|
+
};
|
|
750
835
|
}
|