@dedot/chaintypes 0.76.0 → 0.78.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 +8 -4
- package/kusama-people/consts.d.ts +477 -0
- package/kusama-people/errors.d.ts +818 -0
- package/kusama-people/events.d.ts +1108 -0
- package/kusama-people/index.d.ts +31 -0
- package/kusama-people/json-rpc.d.ts +97 -0
- package/kusama-people/query.d.ts +1245 -0
- package/kusama-people/runtime.d.ts +636 -0
- package/kusama-people/tx.d.ts +3153 -0
- package/kusama-people/types.d.ts +5330 -0
- package/package.json +14 -2
- package/paseo-asset-hub/consts.d.ts +788 -0
- package/paseo-asset-hub/errors.d.ts +1539 -0
- package/paseo-asset-hub/events.d.ts +2538 -0
- package/paseo-asset-hub/index.d.ts +31 -0
- package/paseo-asset-hub/json-rpc.d.ts +97 -0
- package/paseo-asset-hub/query.d.ts +1753 -0
- package/paseo-asset-hub/runtime.d.ts +726 -0
- package/paseo-asset-hub/tx.d.ts +9202 -0
- package/paseo-asset-hub/types.d.ts +12526 -0
- package/paseo-people/consts.d.ts +486 -0
- package/paseo-people/errors.d.ts +832 -0
- package/paseo-people/events.d.ts +1172 -0
- package/paseo-people/index.d.ts +31 -0
- package/paseo-people/json-rpc.d.ts +96 -0
- package/paseo-people/query.d.ts +1257 -0
- package/paseo-people/runtime.d.ts +636 -0
- package/paseo-people/tx.d.ts +3273 -0
- package/paseo-people/types.d.ts +5460 -0
- package/polkadot-people/consts.d.ts +477 -0
- package/polkadot-people/errors.d.ts +818 -0
- package/polkadot-people/events.d.ts +1108 -0
- package/polkadot-people/index.d.ts +31 -0
- package/polkadot-people/json-rpc.d.ts +97 -0
- package/polkadot-people/query.d.ts +1245 -0
- package/polkadot-people/runtime.d.ts +636 -0
- package/polkadot-people/tx.d.ts +3153 -0
- package/polkadot-people/types.d.ts +5349 -0
- package/westend/json-rpc.d.ts +10 -10
- package/westend-asset-hub/json-rpc.d.ts +10 -10
- package/westend-people/json-rpc.d.ts +11 -10
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
// Generated by dedot cli
|
|
2
|
+
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type {
|
|
5
|
+
H256,
|
|
6
|
+
RuntimeVersion,
|
|
7
|
+
Header,
|
|
8
|
+
DispatchError,
|
|
9
|
+
Result,
|
|
10
|
+
UncheckedExtrinsicLike,
|
|
11
|
+
UncheckedExtrinsic,
|
|
12
|
+
Bytes,
|
|
13
|
+
BytesLike,
|
|
14
|
+
AccountId32Like,
|
|
15
|
+
AccountId32,
|
|
16
|
+
} from 'dedot/codecs';
|
|
17
|
+
import type {
|
|
18
|
+
SpConsensusSlotsSlotDuration,
|
|
19
|
+
SpConsensusAuraSr25519AppSr25519Public,
|
|
20
|
+
SpConsensusSlotsSlot,
|
|
21
|
+
SpRuntimeBlock,
|
|
22
|
+
SpRuntimeExtrinsicInclusionMode,
|
|
23
|
+
SpCoreOpaqueMetadata,
|
|
24
|
+
SpRuntimeTransactionValidityTransactionValidityError,
|
|
25
|
+
SpInherentsInherentData,
|
|
26
|
+
SpInherentsCheckInherentsResult,
|
|
27
|
+
SpRuntimeTransactionValidityValidTransaction,
|
|
28
|
+
SpRuntimeTransactionValidityTransactionSource,
|
|
29
|
+
SpCoreCryptoKeyTypeId,
|
|
30
|
+
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
31
|
+
PalletTransactionPaymentFeeDetails,
|
|
32
|
+
SpWeightsWeightV2Weight,
|
|
33
|
+
PeopleKusamaRuntimeRuntimeCallLike,
|
|
34
|
+
XcmVersionedAssetId,
|
|
35
|
+
XcmRuntimeApisFeesError,
|
|
36
|
+
XcmVersionedXcm,
|
|
37
|
+
XcmVersionedAssets,
|
|
38
|
+
XcmVersionedLocation,
|
|
39
|
+
XcmRuntimeApisDryRunCallDryRunEffects,
|
|
40
|
+
XcmRuntimeApisDryRunError,
|
|
41
|
+
PeopleKusamaRuntimeOriginCaller,
|
|
42
|
+
XcmRuntimeApisDryRunXcmDryRunEffects,
|
|
43
|
+
XcmRuntimeApisConversionsError,
|
|
44
|
+
CumulusPrimitivesCoreCollationInfo,
|
|
45
|
+
} from './types.js';
|
|
46
|
+
|
|
47
|
+
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
48
|
+
/**
|
|
49
|
+
* @runtimeapi: AuraApi - 0xdd718d5cc53262d4
|
|
50
|
+
**/
|
|
51
|
+
auraApi: {
|
|
52
|
+
/**
|
|
53
|
+
* Returns the slot duration for Aura.
|
|
54
|
+
*
|
|
55
|
+
* Currently, only the value provided by this type at genesis will be used.
|
|
56
|
+
*
|
|
57
|
+
* @callname: AuraApi_slot_duration
|
|
58
|
+
**/
|
|
59
|
+
slotDuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Return the current set of authorities.
|
|
63
|
+
*
|
|
64
|
+
* @callname: AuraApi_authorities
|
|
65
|
+
**/
|
|
66
|
+
authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Generic runtime api call
|
|
70
|
+
**/
|
|
71
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
|
|
75
|
+
**/
|
|
76
|
+
auraUnincludedSegmentApi: {
|
|
77
|
+
/**
|
|
78
|
+
* Whether it is legal to extend the chain, assuming the given block is the most
|
|
79
|
+
* recently included one as-of the relay parent that will be built against, and
|
|
80
|
+
* the given slot.
|
|
81
|
+
*
|
|
82
|
+
* This should be consistent with the logic the runtime uses when validating blocks to
|
|
83
|
+
* avoid issues.
|
|
84
|
+
*
|
|
85
|
+
* When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
|
|
86
|
+
* whose state we are querying against, this must always return `true` as long as the slot
|
|
87
|
+
* is more recent than the included block itself.
|
|
88
|
+
*
|
|
89
|
+
* @callname: AuraUnincludedSegmentApi_can_build_upon
|
|
90
|
+
* @param {H256} included_hash
|
|
91
|
+
* @param {SpConsensusSlotsSlot} slot
|
|
92
|
+
**/
|
|
93
|
+
canBuildUpon: GenericRuntimeApiMethod<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Generic runtime api call
|
|
97
|
+
**/
|
|
98
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
102
|
+
**/
|
|
103
|
+
core: {
|
|
104
|
+
/**
|
|
105
|
+
* Returns the version of the runtime.
|
|
106
|
+
*
|
|
107
|
+
* @callname: Core_version
|
|
108
|
+
**/
|
|
109
|
+
version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Execute the given block.
|
|
113
|
+
*
|
|
114
|
+
* @callname: Core_execute_block
|
|
115
|
+
* @param {SpRuntimeBlock} block
|
|
116
|
+
**/
|
|
117
|
+
executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Initialize a block with the given header and return the runtime executive mode.
|
|
121
|
+
*
|
|
122
|
+
* @callname: Core_initialize_block
|
|
123
|
+
* @param {Header} header
|
|
124
|
+
**/
|
|
125
|
+
initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Generic runtime api call
|
|
129
|
+
**/
|
|
130
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
134
|
+
**/
|
|
135
|
+
metadata: {
|
|
136
|
+
/**
|
|
137
|
+
* Returns the metadata of a runtime.
|
|
138
|
+
*
|
|
139
|
+
* @callname: Metadata_metadata
|
|
140
|
+
**/
|
|
141
|
+
metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Returns the metadata at a given version.
|
|
145
|
+
*
|
|
146
|
+
* If the given `version` isn't supported, this will return `None`.
|
|
147
|
+
* Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
|
|
148
|
+
*
|
|
149
|
+
* @callname: Metadata_metadata_at_version
|
|
150
|
+
* @param {number} version
|
|
151
|
+
**/
|
|
152
|
+
metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Returns the supported metadata versions.
|
|
156
|
+
*
|
|
157
|
+
* This can be used to call `metadata_at_version`.
|
|
158
|
+
*
|
|
159
|
+
* @callname: Metadata_metadata_versions
|
|
160
|
+
**/
|
|
161
|
+
metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Generic runtime api call
|
|
165
|
+
**/
|
|
166
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
170
|
+
**/
|
|
171
|
+
blockBuilder: {
|
|
172
|
+
/**
|
|
173
|
+
* Apply the given extrinsic.
|
|
174
|
+
*
|
|
175
|
+
* Returns an inclusion outcome which specifies if this extrinsic is included in
|
|
176
|
+
* this block or not.
|
|
177
|
+
*
|
|
178
|
+
* @callname: BlockBuilder_apply_extrinsic
|
|
179
|
+
* @param {UncheckedExtrinsicLike} extrinsic
|
|
180
|
+
**/
|
|
181
|
+
applyExtrinsic: GenericRuntimeApiMethod<
|
|
182
|
+
Rv,
|
|
183
|
+
(
|
|
184
|
+
extrinsic: UncheckedExtrinsicLike,
|
|
185
|
+
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
186
|
+
>;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Finish the current block.
|
|
190
|
+
*
|
|
191
|
+
* @callname: BlockBuilder_finalize_block
|
|
192
|
+
**/
|
|
193
|
+
finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
197
|
+
*
|
|
198
|
+
* @callname: BlockBuilder_inherent_extrinsics
|
|
199
|
+
* @param {SpInherentsInherentData} inherent
|
|
200
|
+
**/
|
|
201
|
+
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
202
|
+
Rv,
|
|
203
|
+
(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
|
|
204
|
+
>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
208
|
+
*
|
|
209
|
+
* @callname: BlockBuilder_check_inherents
|
|
210
|
+
* @param {SpRuntimeBlock} block
|
|
211
|
+
* @param {SpInherentsInherentData} data
|
|
212
|
+
**/
|
|
213
|
+
checkInherents: GenericRuntimeApiMethod<
|
|
214
|
+
Rv,
|
|
215
|
+
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
216
|
+
>;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Generic runtime api call
|
|
220
|
+
**/
|
|
221
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
225
|
+
**/
|
|
226
|
+
taggedTransactionQueue: {
|
|
227
|
+
/**
|
|
228
|
+
* Validate the transaction.
|
|
229
|
+
*
|
|
230
|
+
* This method is invoked by the transaction pool to learn details about given transaction.
|
|
231
|
+
* The implementation should make sure to verify the correctness of the transaction
|
|
232
|
+
* against current state. The given `block_hash` corresponds to the hash of the block
|
|
233
|
+
* that is used as current state.
|
|
234
|
+
*
|
|
235
|
+
* Note that this call may be performed by the pool multiple times and transactions
|
|
236
|
+
* might be verified in any possible order.
|
|
237
|
+
*
|
|
238
|
+
* @callname: TaggedTransactionQueue_validate_transaction
|
|
239
|
+
* @param {SpRuntimeTransactionValidityTransactionSource} source
|
|
240
|
+
* @param {UncheckedExtrinsicLike} tx
|
|
241
|
+
* @param {H256} block_hash
|
|
242
|
+
**/
|
|
243
|
+
validateTransaction: GenericRuntimeApiMethod<
|
|
244
|
+
Rv,
|
|
245
|
+
(
|
|
246
|
+
source: SpRuntimeTransactionValidityTransactionSource,
|
|
247
|
+
tx: UncheckedExtrinsicLike,
|
|
248
|
+
blockHash: H256,
|
|
249
|
+
) => Promise<
|
|
250
|
+
Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
|
|
251
|
+
>
|
|
252
|
+
>;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Generic runtime api call
|
|
256
|
+
**/
|
|
257
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
261
|
+
**/
|
|
262
|
+
offchainWorkerApi: {
|
|
263
|
+
/**
|
|
264
|
+
* Starts the off-chain task for given block header.
|
|
265
|
+
*
|
|
266
|
+
* @callname: OffchainWorkerApi_offchain_worker
|
|
267
|
+
* @param {Header} header
|
|
268
|
+
**/
|
|
269
|
+
offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Generic runtime api call
|
|
273
|
+
**/
|
|
274
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
278
|
+
**/
|
|
279
|
+
sessionKeys: {
|
|
280
|
+
/**
|
|
281
|
+
* Generate a set of session keys with optionally using the given seed.
|
|
282
|
+
* The keys should be stored within the keystore exposed via runtime
|
|
283
|
+
* externalities.
|
|
284
|
+
*
|
|
285
|
+
* The seed needs to be a valid `utf8` string.
|
|
286
|
+
*
|
|
287
|
+
* Returns the concatenated SCALE encoded public keys.
|
|
288
|
+
*
|
|
289
|
+
* @callname: SessionKeys_generate_session_keys
|
|
290
|
+
* @param {BytesLike | undefined} seed
|
|
291
|
+
**/
|
|
292
|
+
generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Decode the given public session keys.
|
|
296
|
+
*
|
|
297
|
+
* Returns the list of public raw public keys + key type.
|
|
298
|
+
*
|
|
299
|
+
* @callname: SessionKeys_decode_session_keys
|
|
300
|
+
* @param {BytesLike} encoded
|
|
301
|
+
**/
|
|
302
|
+
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
303
|
+
Rv,
|
|
304
|
+
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
305
|
+
>;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Generic runtime api call
|
|
309
|
+
**/
|
|
310
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
314
|
+
**/
|
|
315
|
+
accountNonceApi: {
|
|
316
|
+
/**
|
|
317
|
+
* Get current account nonce of given `AccountId`.
|
|
318
|
+
*
|
|
319
|
+
* @callname: AccountNonceApi_account_nonce
|
|
320
|
+
* @param {AccountId32Like} account
|
|
321
|
+
**/
|
|
322
|
+
accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Generic runtime api call
|
|
326
|
+
**/
|
|
327
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
331
|
+
**/
|
|
332
|
+
transactionPaymentApi: {
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @callname: TransactionPaymentApi_query_info
|
|
336
|
+
* @param {UncheckedExtrinsicLike} uxt
|
|
337
|
+
* @param {number} len
|
|
338
|
+
**/
|
|
339
|
+
queryInfo: GenericRuntimeApiMethod<
|
|
340
|
+
Rv,
|
|
341
|
+
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
342
|
+
>;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @callname: TransactionPaymentApi_query_fee_details
|
|
347
|
+
* @param {UncheckedExtrinsicLike} uxt
|
|
348
|
+
* @param {number} len
|
|
349
|
+
**/
|
|
350
|
+
queryFeeDetails: GenericRuntimeApiMethod<
|
|
351
|
+
Rv,
|
|
352
|
+
(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
353
|
+
>;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
358
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
359
|
+
**/
|
|
360
|
+
queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
365
|
+
* @param {number} length
|
|
366
|
+
**/
|
|
367
|
+
queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Generic runtime api call
|
|
371
|
+
**/
|
|
372
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
|
|
376
|
+
**/
|
|
377
|
+
transactionPaymentCallApi: {
|
|
378
|
+
/**
|
|
379
|
+
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
|
380
|
+
*
|
|
381
|
+
* @callname: TransactionPaymentCallApi_query_call_info
|
|
382
|
+
* @param {PeopleKusamaRuntimeRuntimeCallLike} call
|
|
383
|
+
* @param {number} len
|
|
384
|
+
**/
|
|
385
|
+
queryCallInfo: GenericRuntimeApiMethod<
|
|
386
|
+
Rv,
|
|
387
|
+
(call: PeopleKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
388
|
+
>;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Query fee details of a given encoded `Call`.
|
|
392
|
+
*
|
|
393
|
+
* @callname: TransactionPaymentCallApi_query_call_fee_details
|
|
394
|
+
* @param {PeopleKusamaRuntimeRuntimeCallLike} call
|
|
395
|
+
* @param {number} len
|
|
396
|
+
**/
|
|
397
|
+
queryCallFeeDetails: GenericRuntimeApiMethod<
|
|
398
|
+
Rv,
|
|
399
|
+
(call: PeopleKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
400
|
+
>;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Query the output of the current `WeightToFee` given some input.
|
|
404
|
+
*
|
|
405
|
+
* @callname: TransactionPaymentCallApi_query_weight_to_fee
|
|
406
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
407
|
+
**/
|
|
408
|
+
queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Query the output of the current `LengthToFee` given some input.
|
|
412
|
+
*
|
|
413
|
+
* @callname: TransactionPaymentCallApi_query_length_to_fee
|
|
414
|
+
* @param {number} length
|
|
415
|
+
**/
|
|
416
|
+
queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Generic runtime api call
|
|
420
|
+
**/
|
|
421
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* @runtimeapi: XcmPaymentApi - 0x6ff52ee858e6c5bd
|
|
425
|
+
**/
|
|
426
|
+
xcmPaymentApi: {
|
|
427
|
+
/**
|
|
428
|
+
* Returns a list of acceptable payment assets.
|
|
429
|
+
*
|
|
430
|
+
* # Arguments
|
|
431
|
+
*
|
|
432
|
+
* * `xcm_version`: Version.
|
|
433
|
+
*
|
|
434
|
+
* @callname: XcmPaymentApi_query_acceptable_payment_assets
|
|
435
|
+
* @param {number} xcm_version
|
|
436
|
+
**/
|
|
437
|
+
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
438
|
+
Rv,
|
|
439
|
+
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
440
|
+
>;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Returns a weight needed to execute a XCM.
|
|
444
|
+
*
|
|
445
|
+
* # Arguments
|
|
446
|
+
*
|
|
447
|
+
* * `message`: `VersionedXcm`.
|
|
448
|
+
*
|
|
449
|
+
* @callname: XcmPaymentApi_query_xcm_weight
|
|
450
|
+
* @param {XcmVersionedXcm} message
|
|
451
|
+
**/
|
|
452
|
+
queryXcmWeight: GenericRuntimeApiMethod<
|
|
453
|
+
Rv,
|
|
454
|
+
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
455
|
+
>;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Converts a weight into a fee for the specified `AssetId`.
|
|
459
|
+
*
|
|
460
|
+
* # Arguments
|
|
461
|
+
*
|
|
462
|
+
* * `weight`: convertible `Weight`.
|
|
463
|
+
* * `asset`: `VersionedAssetId`.
|
|
464
|
+
*
|
|
465
|
+
* @callname: XcmPaymentApi_query_weight_to_asset_fee
|
|
466
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
467
|
+
* @param {XcmVersionedAssetId} asset
|
|
468
|
+
**/
|
|
469
|
+
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
470
|
+
Rv,
|
|
471
|
+
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
472
|
+
>;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
476
|
+
* These always come in a specific asset, defined by the chain.
|
|
477
|
+
*
|
|
478
|
+
* # Arguments
|
|
479
|
+
* * `message`: The message that'll be sent, necessary because most delivery fees are based on the
|
|
480
|
+
* size of the message.
|
|
481
|
+
* * `destination`: The destination to send the message to. Different destinations may use
|
|
482
|
+
* different senders that charge different fees.
|
|
483
|
+
*
|
|
484
|
+
* @callname: XcmPaymentApi_query_delivery_fees
|
|
485
|
+
* @param {XcmVersionedLocation} destination
|
|
486
|
+
* @param {XcmVersionedXcm} message
|
|
487
|
+
**/
|
|
488
|
+
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
489
|
+
Rv,
|
|
490
|
+
(
|
|
491
|
+
destination: XcmVersionedLocation,
|
|
492
|
+
message: XcmVersionedXcm,
|
|
493
|
+
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
494
|
+
>;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Generic runtime api call
|
|
498
|
+
**/
|
|
499
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
503
|
+
**/
|
|
504
|
+
dryRunApi: {
|
|
505
|
+
/**
|
|
506
|
+
* Dry run call.
|
|
507
|
+
*
|
|
508
|
+
* @callname: DryRunApi_dry_run_call
|
|
509
|
+
* @param {PeopleKusamaRuntimeOriginCaller} origin
|
|
510
|
+
* @param {PeopleKusamaRuntimeRuntimeCallLike} call
|
|
511
|
+
**/
|
|
512
|
+
dryRunCall: GenericRuntimeApiMethod<
|
|
513
|
+
Rv,
|
|
514
|
+
(
|
|
515
|
+
origin: PeopleKusamaRuntimeOriginCaller,
|
|
516
|
+
call: PeopleKusamaRuntimeRuntimeCallLike,
|
|
517
|
+
) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
518
|
+
>;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Dry run XCM program
|
|
522
|
+
*
|
|
523
|
+
* @callname: DryRunApi_dry_run_xcm
|
|
524
|
+
* @param {XcmVersionedLocation} origin_location
|
|
525
|
+
* @param {XcmVersionedXcm} xcm
|
|
526
|
+
**/
|
|
527
|
+
dryRunXcm: GenericRuntimeApiMethod<
|
|
528
|
+
Rv,
|
|
529
|
+
(
|
|
530
|
+
originLocation: XcmVersionedLocation,
|
|
531
|
+
xcm: XcmVersionedXcm,
|
|
532
|
+
) => Promise<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
533
|
+
>;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Generic runtime api call
|
|
537
|
+
**/
|
|
538
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
539
|
+
};
|
|
540
|
+
/**
|
|
541
|
+
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
542
|
+
**/
|
|
543
|
+
locationToAccountApi: {
|
|
544
|
+
/**
|
|
545
|
+
* Converts `Location` to `AccountId`.
|
|
546
|
+
*
|
|
547
|
+
* @callname: LocationToAccountApi_convert_location
|
|
548
|
+
* @param {XcmVersionedLocation} location
|
|
549
|
+
**/
|
|
550
|
+
convertLocation: GenericRuntimeApiMethod<
|
|
551
|
+
Rv,
|
|
552
|
+
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
553
|
+
>;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Generic runtime api call
|
|
557
|
+
**/
|
|
558
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
562
|
+
**/
|
|
563
|
+
collectCollationInfo: {
|
|
564
|
+
/**
|
|
565
|
+
* Collect information about a collation.
|
|
566
|
+
*
|
|
567
|
+
* The given `header` is the header of the built block for that
|
|
568
|
+
* we are collecting the collation info for.
|
|
569
|
+
*
|
|
570
|
+
* @callname: CollectCollationInfo_collect_collation_info
|
|
571
|
+
* @param {Header} header
|
|
572
|
+
**/
|
|
573
|
+
collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Generic runtime api call
|
|
577
|
+
**/
|
|
578
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
579
|
+
};
|
|
580
|
+
/**
|
|
581
|
+
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
582
|
+
**/
|
|
583
|
+
genesisBuilder: {
|
|
584
|
+
/**
|
|
585
|
+
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
|
|
586
|
+
* storage.
|
|
587
|
+
*
|
|
588
|
+
* In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
|
|
589
|
+
* puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
|
|
590
|
+
* deserialization fails, an error is returned.
|
|
591
|
+
*
|
|
592
|
+
* Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
|
|
593
|
+
* defaults will be used.
|
|
594
|
+
*
|
|
595
|
+
* @callname: GenesisBuilder_build_state
|
|
596
|
+
* @param {BytesLike} json
|
|
597
|
+
**/
|
|
598
|
+
buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
602
|
+
* `id`.
|
|
603
|
+
*
|
|
604
|
+
* If `id` is `None` the function returns JSON blob representation of the default
|
|
605
|
+
* `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
|
|
606
|
+
* `RuntimeGenesisConfig`.
|
|
607
|
+
*
|
|
608
|
+
* Otherwise function returns a JSON representation of the built-in, named
|
|
609
|
+
* `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
|
|
610
|
+
* exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
|
|
611
|
+
* (potentially nested) key-value pairs that are intended for customizing the default
|
|
612
|
+
* runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
|
|
613
|
+
* of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
|
|
614
|
+
* be used in `build_state` method.
|
|
615
|
+
*
|
|
616
|
+
* @callname: GenesisBuilder_get_preset
|
|
617
|
+
* @param {string | undefined} id
|
|
618
|
+
**/
|
|
619
|
+
getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
|
|
623
|
+
*
|
|
624
|
+
* The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
|
|
625
|
+
* no named presets are provided by the runtime the list is empty.
|
|
626
|
+
*
|
|
627
|
+
* @callname: GenesisBuilder_preset_names
|
|
628
|
+
**/
|
|
629
|
+
presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Generic runtime api call
|
|
633
|
+
**/
|
|
634
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
635
|
+
};
|
|
636
|
+
}
|