@dedot/chaintypes 0.0.1-alpha.100
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/LICENSE +201 -0
- package/README.md +5 -0
- package/aleph/consts.d.ts +676 -0
- package/aleph/errors.d.ts +1054 -0
- package/aleph/events.d.ts +1201 -0
- package/aleph/index.d.ts +27 -0
- package/aleph/json-rpc.d.ts +85 -0
- package/aleph/query.d.ts +1573 -0
- package/aleph/runtime.d.ts +596 -0
- package/aleph/tx.d.ts +3440 -0
- package/aleph/types.d.ts +3951 -0
- package/astar/consts.d.ts +737 -0
- package/astar/errors.d.ts +1508 -0
- package/astar/events.d.ts +1878 -0
- package/astar/index.d.ts +27 -0
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +1851 -0
- package/astar/runtime.d.ts +803 -0
- package/astar/tx.d.ts +4516 -0
- package/astar/types.d.ts +6141 -0
- package/index.d.ts +11 -0
- package/index.js +1 -0
- package/index.ts +11 -0
- package/kusama/consts.d.ts +1578 -0
- package/kusama/errors.d.ts +3152 -0
- package/kusama/events.d.ts +3579 -0
- package/kusama/index.d.ts +27 -0
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +4229 -0
- package/kusama/runtime.d.ts +1196 -0
- package/kusama/tx.d.ts +9040 -0
- package/kusama/types.d.ts +11369 -0
- package/kusamaAssetHub/consts.d.ts +759 -0
- package/kusamaAssetHub/errors.d.ts +1494 -0
- package/kusamaAssetHub/events.d.ts +2491 -0
- package/kusamaAssetHub/index.d.ts +27 -0
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +1662 -0
- package/kusamaAssetHub/runtime.d.ts +555 -0
- package/kusamaAssetHub/tx.d.ts +6192 -0
- package/kusamaAssetHub/types.d.ts +6831 -0
- package/moonbeam/consts.d.ts +1010 -0
- package/moonbeam/errors.d.ts +1932 -0
- package/moonbeam/events.d.ts +2928 -0
- package/moonbeam/index.d.ts +27 -0
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +2282 -0
- package/moonbeam/runtime.d.ts +724 -0
- package/moonbeam/tx.d.ts +6222 -0
- package/moonbeam/types.d.ts +8165 -0
- package/package.json +25 -0
- package/polkadot/consts.d.ts +1313 -0
- package/polkadot/errors.d.ts +2575 -0
- package/polkadot/events.d.ts +2757 -0
- package/polkadot/index.d.ts +27 -0
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +3693 -0
- package/polkadot/runtime.d.ts +1196 -0
- package/polkadot/tx.d.ts +7706 -0
- package/polkadot/types.d.ts +9893 -0
- package/polkadotAssetHub/consts.d.ts +724 -0
- package/polkadotAssetHub/errors.d.ts +1465 -0
- package/polkadotAssetHub/events.d.ts +2462 -0
- package/polkadotAssetHub/index.d.ts +27 -0
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +1640 -0
- package/polkadotAssetHub/runtime.d.ts +558 -0
- package/polkadotAssetHub/tx.d.ts +6121 -0
- package/polkadotAssetHub/types.d.ts +6739 -0
- package/rococo/consts.d.ts +1423 -0
- package/rococo/errors.d.ts +2783 -0
- package/rococo/events.d.ts +3361 -0
- package/rococo/index.d.ts +27 -0
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +3561 -0
- package/rococo/runtime.d.ts +1257 -0
- package/rococo/tx.d.ts +10721 -0
- package/rococo/types.d.ts +14828 -0
- package/rococoAssetHub/consts.d.ts +787 -0
- package/rococoAssetHub/errors.d.ts +1523 -0
- package/rococoAssetHub/events.d.ts +2517 -0
- package/rococoAssetHub/index.d.ts +27 -0
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +1682 -0
- package/rococoAssetHub/runtime.d.ts +704 -0
- package/rococoAssetHub/tx.d.ts +9013 -0
- package/rococoAssetHub/types.d.ts +12352 -0
- package/substrate/consts.d.ts +2223 -0
- package/substrate/errors.d.ts +4023 -0
- package/substrate/events.d.ts +5430 -0
- package/substrate/index.d.ts +27 -0
- package/substrate/json-rpc.d.ts +101 -0
- package/substrate/query.d.ts +4083 -0
- package/substrate/runtime.d.ts +971 -0
- package/substrate/tx.d.ts +12501 -0
- package/substrate/types.d.ts +13380 -0
- package/westendAssetHub/consts.d.ts +787 -0
- package/westendAssetHub/errors.d.ts +1523 -0
- package/westendAssetHub/events.d.ts +2477 -0
- package/westendAssetHub/index.d.ts +27 -0
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +1656 -0
- package/westendAssetHub/runtime.d.ts +652 -0
- package/westendAssetHub/tx.d.ts +8984 -0
- package/westendAssetHub/types.d.ts +12292 -0
|
@@ -0,0 +1,737 @@
|
|
|
1
|
+
// Generated by @dedot/codegen
|
|
2
|
+
|
|
3
|
+
import type { GenericChainConsts, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { RuntimeVersion, AccountId32, Perbill } from 'dedot/codecs';
|
|
5
|
+
import type {
|
|
6
|
+
FrameSystemLimitsBlockWeights,
|
|
7
|
+
FrameSystemLimitsBlockLength,
|
|
8
|
+
SpWeightsRuntimeDbWeight,
|
|
9
|
+
StagingXcmV3MultilocationMultiLocation,
|
|
10
|
+
SpWeightsWeightV2Weight,
|
|
11
|
+
PalletContractsSchedule,
|
|
12
|
+
PalletContractsEnvironment,
|
|
13
|
+
} from './types';
|
|
14
|
+
|
|
15
|
+
export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
|
|
16
|
+
/**
|
|
17
|
+
* Pallet `System`'s constants
|
|
18
|
+
**/
|
|
19
|
+
system: {
|
|
20
|
+
/**
|
|
21
|
+
* Block & extrinsics weights: base values and limits.
|
|
22
|
+
**/
|
|
23
|
+
blockWeights: FrameSystemLimitsBlockWeights;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The maximum length of a block (in bytes).
|
|
27
|
+
**/
|
|
28
|
+
blockLength: FrameSystemLimitsBlockLength;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
32
|
+
**/
|
|
33
|
+
blockHashCount: number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
37
|
+
**/
|
|
38
|
+
dbWeight: SpWeightsRuntimeDbWeight;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Get the chain's current version.
|
|
42
|
+
**/
|
|
43
|
+
version: RuntimeVersion;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The designated SS58 prefix of this chain.
|
|
47
|
+
*
|
|
48
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
49
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
50
|
+
* an identifier of the chain.
|
|
51
|
+
**/
|
|
52
|
+
ss58Prefix: number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Generic pallet constant
|
|
56
|
+
**/
|
|
57
|
+
[name: string]: any;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Pallet `Utility`'s constants
|
|
61
|
+
**/
|
|
62
|
+
utility: {
|
|
63
|
+
/**
|
|
64
|
+
* The limit on the number of batched calls.
|
|
65
|
+
**/
|
|
66
|
+
batchedCallsLimit: number;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Generic pallet constant
|
|
70
|
+
**/
|
|
71
|
+
[name: string]: any;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Pallet `Identity`'s constants
|
|
75
|
+
**/
|
|
76
|
+
identity: {
|
|
77
|
+
/**
|
|
78
|
+
* The amount held on deposit for a registered identity
|
|
79
|
+
**/
|
|
80
|
+
basicDeposit: bigint;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The amount held on deposit per additional field for a registered identity.
|
|
84
|
+
**/
|
|
85
|
+
fieldDeposit: bigint;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
89
|
+
* that one storage item's value will increase by the size of an account ID, and there will
|
|
90
|
+
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
|
91
|
+
**/
|
|
92
|
+
subAccountDeposit: bigint;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The maximum number of sub-accounts allowed per identified account.
|
|
96
|
+
**/
|
|
97
|
+
maxSubAccounts: number;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
|
|
101
|
+
* required to access an identity, but can be pretty high.
|
|
102
|
+
**/
|
|
103
|
+
maxAdditionalFields: number;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
|
107
|
+
* of, e.g., updating judgements.
|
|
108
|
+
**/
|
|
109
|
+
maxRegistrars: number;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Generic pallet constant
|
|
113
|
+
**/
|
|
114
|
+
[name: string]: any;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Pallet `Timestamp`'s constants
|
|
118
|
+
**/
|
|
119
|
+
timestamp: {
|
|
120
|
+
/**
|
|
121
|
+
* The minimum period between blocks.
|
|
122
|
+
*
|
|
123
|
+
* Be aware that this is different to the *expected* period that the block production
|
|
124
|
+
* apparatus provides. Your chosen consensus system will generally work with this to
|
|
125
|
+
* determine a sensible block time. For example, in the Aura pallet it will be double this
|
|
126
|
+
* period on default settings.
|
|
127
|
+
**/
|
|
128
|
+
minimumPeriod: bigint;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Generic pallet constant
|
|
132
|
+
**/
|
|
133
|
+
[name: string]: any;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Pallet `Multisig`'s constants
|
|
137
|
+
**/
|
|
138
|
+
multisig: {
|
|
139
|
+
/**
|
|
140
|
+
* The base amount of currency needed to reserve for creating a multisig execution or to
|
|
141
|
+
* store a dispatch call for later.
|
|
142
|
+
*
|
|
143
|
+
* This is held for an additional storage item whose value size is
|
|
144
|
+
* `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
|
|
145
|
+
* `32 + sizeof(AccountId)` bytes.
|
|
146
|
+
**/
|
|
147
|
+
depositBase: bigint;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The amount of currency needed per unit threshold when creating a multisig execution.
|
|
151
|
+
*
|
|
152
|
+
* This is held for adding 32 bytes more into a pre-existing storage value.
|
|
153
|
+
**/
|
|
154
|
+
depositFactor: bigint;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The maximum amount of signatories allowed in the multisig.
|
|
158
|
+
**/
|
|
159
|
+
maxSignatories: number;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Generic pallet constant
|
|
163
|
+
**/
|
|
164
|
+
[name: string]: any;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Pallet `Proxy`'s constants
|
|
168
|
+
**/
|
|
169
|
+
proxy: {
|
|
170
|
+
/**
|
|
171
|
+
* The base amount of currency needed to reserve for creating a proxy.
|
|
172
|
+
*
|
|
173
|
+
* This is held for an additional storage item whose value size is
|
|
174
|
+
* `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
|
|
175
|
+
**/
|
|
176
|
+
proxyDepositBase: bigint;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The amount of currency needed per proxy added.
|
|
180
|
+
*
|
|
181
|
+
* This is held for adding 32 bytes plus an instance of `ProxyType` more into a
|
|
182
|
+
* pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
|
|
183
|
+
* into account `32 + proxy_type.encode().len()` bytes of data.
|
|
184
|
+
**/
|
|
185
|
+
proxyDepositFactor: bigint;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The maximum amount of proxies allowed for a single account.
|
|
189
|
+
**/
|
|
190
|
+
maxProxies: number;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The maximum amount of time-delayed announcements that are allowed to be pending.
|
|
194
|
+
**/
|
|
195
|
+
maxPending: number;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The base amount of currency needed to reserve for creating an announcement.
|
|
199
|
+
*
|
|
200
|
+
* This is held when a new storage item holding a `Balance` is created (typically 16
|
|
201
|
+
* bytes).
|
|
202
|
+
**/
|
|
203
|
+
announcementDepositBase: bigint;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The amount of currency needed per announcement made.
|
|
207
|
+
*
|
|
208
|
+
* This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
|
|
209
|
+
* into a pre-existing storage value.
|
|
210
|
+
**/
|
|
211
|
+
announcementDepositFactor: bigint;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Generic pallet constant
|
|
215
|
+
**/
|
|
216
|
+
[name: string]: any;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Pallet `ParachainSystem`'s constants
|
|
220
|
+
**/
|
|
221
|
+
parachainSystem: {
|
|
222
|
+
/**
|
|
223
|
+
* Generic pallet constant
|
|
224
|
+
**/
|
|
225
|
+
[name: string]: any;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Pallet `ParachainInfo`'s constants
|
|
229
|
+
**/
|
|
230
|
+
parachainInfo: {
|
|
231
|
+
/**
|
|
232
|
+
* Generic pallet constant
|
|
233
|
+
**/
|
|
234
|
+
[name: string]: any;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Pallet `TransactionPayment`'s constants
|
|
238
|
+
**/
|
|
239
|
+
transactionPayment: {
|
|
240
|
+
/**
|
|
241
|
+
* A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
242
|
+
* `priority`
|
|
243
|
+
*
|
|
244
|
+
* This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
|
|
245
|
+
* added to a tip component in regular `priority` calculations.
|
|
246
|
+
* It means that a `Normal` transaction can front-run a similarly-sized `Operational`
|
|
247
|
+
* extrinsic (with no tip), by including a tip value greater than the virtual tip.
|
|
248
|
+
*
|
|
249
|
+
* ```rust,ignore
|
|
250
|
+
* // For `Normal`
|
|
251
|
+
* let priority = priority_calc(tip);
|
|
252
|
+
*
|
|
253
|
+
* // For `Operational`
|
|
254
|
+
* let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
|
|
255
|
+
* let priority = priority_calc(tip + virtual_tip);
|
|
256
|
+
* ```
|
|
257
|
+
*
|
|
258
|
+
* Note that since we use `final_fee` the multiplier applies also to the regular `tip`
|
|
259
|
+
* sent with the transaction. So, not only does the transaction get a priority bump based
|
|
260
|
+
* on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
|
|
261
|
+
* transactions.
|
|
262
|
+
**/
|
|
263
|
+
operationalFeeMultiplier: number;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Generic pallet constant
|
|
267
|
+
**/
|
|
268
|
+
[name: string]: any;
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Pallet `Balances`'s constants
|
|
272
|
+
**/
|
|
273
|
+
balances: {
|
|
274
|
+
/**
|
|
275
|
+
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
|
|
276
|
+
*
|
|
277
|
+
* If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
|
|
278
|
+
* this pallet. However, you do so at your own risk: this will open up a major DoS vector.
|
|
279
|
+
* In case you have multiple sources of provider references, you may also get unexpected
|
|
280
|
+
* behaviour if you set this to zero.
|
|
281
|
+
*
|
|
282
|
+
* Bottom line: Do yourself a favour and make it at least one!
|
|
283
|
+
**/
|
|
284
|
+
existentialDeposit: bigint;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* The maximum number of locks that should exist on an account.
|
|
288
|
+
* Not strictly enforced, but used for weight estimation.
|
|
289
|
+
**/
|
|
290
|
+
maxLocks: number;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* The maximum number of named reserves that can exist on an account.
|
|
294
|
+
**/
|
|
295
|
+
maxReserves: number;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The maximum number of holds that can exist on an account at any time.
|
|
299
|
+
**/
|
|
300
|
+
maxHolds: number;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The maximum number of individual freeze locks that can exist on an account at any time.
|
|
304
|
+
**/
|
|
305
|
+
maxFreezes: number;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Generic pallet constant
|
|
309
|
+
**/
|
|
310
|
+
[name: string]: any;
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Pallet `Vesting`'s constants
|
|
314
|
+
**/
|
|
315
|
+
vesting: {
|
|
316
|
+
/**
|
|
317
|
+
* The minimum amount transferred to call `vested_transfer`.
|
|
318
|
+
**/
|
|
319
|
+
minVestedTransfer: bigint;
|
|
320
|
+
maxVestingSchedules: number;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Generic pallet constant
|
|
324
|
+
**/
|
|
325
|
+
[name: string]: any;
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* Pallet `Inflation`'s constants
|
|
329
|
+
**/
|
|
330
|
+
inflation: {
|
|
331
|
+
/**
|
|
332
|
+
* Generic pallet constant
|
|
333
|
+
**/
|
|
334
|
+
[name: string]: any;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Pallet `DappStaking`'s constants
|
|
338
|
+
**/
|
|
339
|
+
dappStaking: {
|
|
340
|
+
/**
|
|
341
|
+
* Maximum length of a single era reward span length entry.
|
|
342
|
+
**/
|
|
343
|
+
eraRewardSpanLength: number;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Number of periods for which we keep rewards available for claiming.
|
|
347
|
+
* After that period, they are no longer claimable.
|
|
348
|
+
**/
|
|
349
|
+
rewardRetentionInPeriods: number;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Maximum number of contracts that can be integrated into dApp staking at once.
|
|
353
|
+
**/
|
|
354
|
+
maxNumberOfContracts: number;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Maximum number of unlocking chunks that can exist per account at a time.
|
|
358
|
+
**/
|
|
359
|
+
maxUnlockingChunks: number;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Minimum amount an account has to lock in dApp staking in order to participate.
|
|
363
|
+
**/
|
|
364
|
+
minimumLockedAmount: bigint;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Number of standard eras that need to pass before unlocking chunk can be claimed.
|
|
368
|
+
* Even though it's expressed in 'eras', it's actually measured in number of blocks.
|
|
369
|
+
**/
|
|
370
|
+
unlockingPeriod: number;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Maximum amount of stake contract entries an account is allowed to have at once.
|
|
374
|
+
**/
|
|
375
|
+
maxNumberOfStakedContracts: number;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Minimum amount staker can stake on a contract.
|
|
379
|
+
**/
|
|
380
|
+
minimumStakeAmount: bigint;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Number of different tiers.
|
|
384
|
+
**/
|
|
385
|
+
numberOfTiers: number;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Generic pallet constant
|
|
389
|
+
**/
|
|
390
|
+
[name: string]: any;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Pallet `Assets`'s constants
|
|
394
|
+
**/
|
|
395
|
+
assets: {
|
|
396
|
+
/**
|
|
397
|
+
* Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
|
|
398
|
+
*
|
|
399
|
+
* Must be configured to result in a weight that makes each call fit in a block.
|
|
400
|
+
**/
|
|
401
|
+
removeItemsLimit: number;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* The basic amount of funds that must be reserved for an asset.
|
|
405
|
+
**/
|
|
406
|
+
assetDeposit: bigint;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* The amount of funds that must be reserved for a non-provider asset account to be
|
|
410
|
+
* maintained.
|
|
411
|
+
**/
|
|
412
|
+
assetAccountDeposit: bigint;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* The basic amount of funds that must be reserved when adding metadata to your asset.
|
|
416
|
+
**/
|
|
417
|
+
metadataDepositBase: bigint;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The additional funds that must be reserved for the number of bytes you store in your
|
|
421
|
+
* metadata.
|
|
422
|
+
**/
|
|
423
|
+
metadataDepositPerByte: bigint;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* The amount of funds that must be reserved when creating a new approval.
|
|
427
|
+
**/
|
|
428
|
+
approvalDeposit: bigint;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* The maximum length of a name or symbol stored on-chain.
|
|
432
|
+
**/
|
|
433
|
+
stringLimit: number;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Generic pallet constant
|
|
437
|
+
**/
|
|
438
|
+
[name: string]: any;
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Pallet `PriceAggregator`'s constants
|
|
442
|
+
**/
|
|
443
|
+
priceAggregator: {
|
|
444
|
+
/**
|
|
445
|
+
* Maximum number of distinct currency values we can store during a single block.
|
|
446
|
+
**/
|
|
447
|
+
maxValuesPerBlock: number;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Maximum length of the circular buffer used to calculate the moving average.
|
|
451
|
+
**/
|
|
452
|
+
circularBufferLength: number;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Duration of aggregation period expressed in the number of blocks.
|
|
456
|
+
* During this time, currency values are aggregated, and are then used to calculate the average value.
|
|
457
|
+
**/
|
|
458
|
+
aggregationDuration: number;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Generic pallet constant
|
|
462
|
+
**/
|
|
463
|
+
[name: string]: any;
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* Pallet `Oracle`'s constants
|
|
467
|
+
**/
|
|
468
|
+
oracle: {
|
|
469
|
+
/**
|
|
470
|
+
* The root operator account id, record all sudo feeds on this account.
|
|
471
|
+
**/
|
|
472
|
+
rootOperatorAccountId: AccountId32;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Maximum size of HasDispatched
|
|
476
|
+
**/
|
|
477
|
+
maxHasDispatchedSize: number;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Maximum size the vector used for feed values
|
|
481
|
+
**/
|
|
482
|
+
maxFeedValues: number;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Generic pallet constant
|
|
486
|
+
**/
|
|
487
|
+
[name: string]: any;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Pallet `OracleMembership`'s constants
|
|
491
|
+
**/
|
|
492
|
+
oracleMembership: {
|
|
493
|
+
/**
|
|
494
|
+
* Generic pallet constant
|
|
495
|
+
**/
|
|
496
|
+
[name: string]: any;
|
|
497
|
+
};
|
|
498
|
+
/**
|
|
499
|
+
* Pallet `Authorship`'s constants
|
|
500
|
+
**/
|
|
501
|
+
authorship: {
|
|
502
|
+
/**
|
|
503
|
+
* Generic pallet constant
|
|
504
|
+
**/
|
|
505
|
+
[name: string]: any;
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* Pallet `CollatorSelection`'s constants
|
|
509
|
+
**/
|
|
510
|
+
collatorSelection: {
|
|
511
|
+
/**
|
|
512
|
+
* Generic pallet constant
|
|
513
|
+
**/
|
|
514
|
+
[name: string]: any;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Pallet `Session`'s constants
|
|
518
|
+
**/
|
|
519
|
+
session: {
|
|
520
|
+
/**
|
|
521
|
+
* Generic pallet constant
|
|
522
|
+
**/
|
|
523
|
+
[name: string]: any;
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Pallet `Aura`'s constants
|
|
527
|
+
**/
|
|
528
|
+
aura: {
|
|
529
|
+
/**
|
|
530
|
+
* Generic pallet constant
|
|
531
|
+
**/
|
|
532
|
+
[name: string]: any;
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* Pallet `AuraExt`'s constants
|
|
536
|
+
**/
|
|
537
|
+
auraExt: {
|
|
538
|
+
/**
|
|
539
|
+
* Generic pallet constant
|
|
540
|
+
**/
|
|
541
|
+
[name: string]: any;
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* Pallet `XcmpQueue`'s constants
|
|
545
|
+
**/
|
|
546
|
+
xcmpQueue: {
|
|
547
|
+
/**
|
|
548
|
+
* Generic pallet constant
|
|
549
|
+
**/
|
|
550
|
+
[name: string]: any;
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* Pallet `PolkadotXcm`'s constants
|
|
554
|
+
**/
|
|
555
|
+
polkadotXcm: {
|
|
556
|
+
/**
|
|
557
|
+
* Generic pallet constant
|
|
558
|
+
**/
|
|
559
|
+
[name: string]: any;
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* Pallet `CumulusXcm`'s constants
|
|
563
|
+
**/
|
|
564
|
+
cumulusXcm: {
|
|
565
|
+
/**
|
|
566
|
+
* Generic pallet constant
|
|
567
|
+
**/
|
|
568
|
+
[name: string]: any;
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Pallet `DmpQueue`'s constants
|
|
572
|
+
**/
|
|
573
|
+
dmpQueue: {
|
|
574
|
+
/**
|
|
575
|
+
* Generic pallet constant
|
|
576
|
+
**/
|
|
577
|
+
[name: string]: any;
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* Pallet `XcAssetConfig`'s constants
|
|
581
|
+
**/
|
|
582
|
+
xcAssetConfig: {
|
|
583
|
+
/**
|
|
584
|
+
* Generic pallet constant
|
|
585
|
+
**/
|
|
586
|
+
[name: string]: any;
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* Pallet `XTokens`'s constants
|
|
590
|
+
**/
|
|
591
|
+
xTokens: {
|
|
592
|
+
/**
|
|
593
|
+
* Self chain location.
|
|
594
|
+
**/
|
|
595
|
+
selfLocation: StagingXcmV3MultilocationMultiLocation;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Base XCM weight.
|
|
599
|
+
*
|
|
600
|
+
* The actually weight for an XCM message is `T::BaseXcmWeight +
|
|
601
|
+
* T::Weigher::weight(&msg)`.
|
|
602
|
+
**/
|
|
603
|
+
baseXcmWeight: SpWeightsWeightV2Weight;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Generic pallet constant
|
|
607
|
+
**/
|
|
608
|
+
[name: string]: any;
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Pallet `EVM`'s constants
|
|
612
|
+
**/
|
|
613
|
+
evm: {
|
|
614
|
+
/**
|
|
615
|
+
* Generic pallet constant
|
|
616
|
+
**/
|
|
617
|
+
[name: string]: any;
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* Pallet `Ethereum`'s constants
|
|
621
|
+
**/
|
|
622
|
+
ethereum: {
|
|
623
|
+
/**
|
|
624
|
+
* Generic pallet constant
|
|
625
|
+
**/
|
|
626
|
+
[name: string]: any;
|
|
627
|
+
};
|
|
628
|
+
/**
|
|
629
|
+
* Pallet `DynamicEvmBaseFee`'s constants
|
|
630
|
+
**/
|
|
631
|
+
dynamicEvmBaseFee: {
|
|
632
|
+
/**
|
|
633
|
+
* Generic pallet constant
|
|
634
|
+
**/
|
|
635
|
+
[name: string]: any;
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* Pallet `Contracts`'s constants
|
|
639
|
+
**/
|
|
640
|
+
contracts: {
|
|
641
|
+
/**
|
|
642
|
+
* Cost schedule and limits.
|
|
643
|
+
**/
|
|
644
|
+
schedule: PalletContractsSchedule;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* The amount of balance a caller has to pay for each byte of storage.
|
|
648
|
+
*
|
|
649
|
+
* # Note
|
|
650
|
+
*
|
|
651
|
+
* Changing this value for an existing chain might need a storage migration.
|
|
652
|
+
**/
|
|
653
|
+
depositPerByte: bigint;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Fallback value to limit the storage deposit if it's not being set by the caller.
|
|
657
|
+
**/
|
|
658
|
+
defaultDepositLimit: bigint;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* The amount of balance a caller has to pay for each storage item.
|
|
662
|
+
*
|
|
663
|
+
* # Note
|
|
664
|
+
*
|
|
665
|
+
* Changing this value for an existing chain might need a storage migration.
|
|
666
|
+
**/
|
|
667
|
+
depositPerItem: bigint;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* The percentage of the storage deposit that should be held for using a code hash.
|
|
671
|
+
* Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]
|
|
672
|
+
* protects the code from being removed. In order to prevent abuse these actions are
|
|
673
|
+
* protected with a percentage of the code deposit.
|
|
674
|
+
**/
|
|
675
|
+
codeHashLockupDepositPercent: Perbill;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* The maximum length of a contract code in bytes.
|
|
679
|
+
*
|
|
680
|
+
* The value should be chosen carefully taking into the account the overall memory limit
|
|
681
|
+
* your runtime has, as well as the [maximum allowed callstack
|
|
682
|
+
* depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights.
|
|
683
|
+
**/
|
|
684
|
+
maxCodeLen: number;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* The maximum allowable length in bytes for storage keys.
|
|
688
|
+
**/
|
|
689
|
+
maxStorageKeyLen: number;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* The maximum number of delegate_dependencies that a contract can lock with
|
|
693
|
+
* [`chain_extension::Ext::add_delegate_dependency`].
|
|
694
|
+
**/
|
|
695
|
+
maxDelegateDependencies: number;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Make contract callable functions marked as `#[unstable]` available.
|
|
699
|
+
*
|
|
700
|
+
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
|
701
|
+
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
|
702
|
+
* experiment with new features.
|
|
703
|
+
*
|
|
704
|
+
* # Warning
|
|
705
|
+
*
|
|
706
|
+
* Do **not** set to `true` on productions chains.
|
|
707
|
+
**/
|
|
708
|
+
unsafeUnstableInterface: boolean;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* The maximum length of the debug buffer in bytes.
|
|
712
|
+
**/
|
|
713
|
+
maxDebugBufferLen: number;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Type that bundles together all the runtime configurable interface types.
|
|
717
|
+
*
|
|
718
|
+
* This is not a real config. We just mention the type here as constant so that
|
|
719
|
+
* its type appears in the metadata. Only valid value is `()`.
|
|
720
|
+
**/
|
|
721
|
+
environment: PalletContractsEnvironment;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Generic pallet constant
|
|
725
|
+
**/
|
|
726
|
+
[name: string]: any;
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* Pallet `Sudo`'s constants
|
|
730
|
+
**/
|
|
731
|
+
sudo: {
|
|
732
|
+
/**
|
|
733
|
+
* Generic pallet constant
|
|
734
|
+
**/
|
|
735
|
+
[name: string]: any;
|
|
736
|
+
};
|
|
737
|
+
}
|