@dedot/chaintypes 0.0.1-alpha.52 → 0.0.1-alpha.53
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/kusamaAssetHub/rpc.d.ts +13 -0
- package/package.json +2 -2
- package/westendAssetHub/consts.d.ts +24 -2
- package/westendAssetHub/errors.d.ts +11 -0
- package/westendAssetHub/events.d.ts +1 -1
- package/westendAssetHub/query.d.ts +16 -12
- package/westendAssetHub/tx.d.ts +60 -4
- package/westendAssetHub/types.d.ts +95 -36
package/kusamaAssetHub/rpc.d.ts
CHANGED
|
@@ -741,6 +741,19 @@ export interface RpcCalls extends GenericRpcCalls {
|
|
|
741
741
|
**/
|
|
742
742
|
unstable_unwatch: GenericRpcCall;
|
|
743
743
|
|
|
744
|
+
[method: string]: GenericRpcCall;
|
|
745
|
+
};
|
|
746
|
+
transaction: {
|
|
747
|
+
/**
|
|
748
|
+
* @rpcname: transaction_unstable_broadcast
|
|
749
|
+
**/
|
|
750
|
+
unstable_broadcast: GenericRpcCall;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* @rpcname: transaction_unstable_stop
|
|
754
|
+
**/
|
|
755
|
+
unstable_stop: GenericRpcCall;
|
|
756
|
+
|
|
744
757
|
[method: string]: GenericRpcCall;
|
|
745
758
|
};
|
|
746
759
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.53",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"directory": "dist"
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "4d85d56fe45d11135a3c1de86e148bfbbfc3dc6f",
|
|
24
24
|
"module": "./index.js",
|
|
25
25
|
"types": "./index.d.ts"
|
|
26
26
|
}
|
|
@@ -118,11 +118,15 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
118
118
|
/**
|
|
119
119
|
* The maximum number of locks that should exist on an account.
|
|
120
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/`
|
|
121
123
|
**/
|
|
122
124
|
maxLocks: number;
|
|
123
125
|
|
|
124
126
|
/**
|
|
125
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/`
|
|
126
130
|
**/
|
|
127
131
|
maxReserves: number;
|
|
128
132
|
|
|
@@ -210,6 +214,14 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
210
214
|
* Pallet `Aura`'s constants
|
|
211
215
|
**/
|
|
212
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
|
+
|
|
213
225
|
/**
|
|
214
226
|
* Generic pallet constant
|
|
215
227
|
**/
|
|
@@ -291,13 +303,23 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
291
303
|
|
|
292
304
|
/**
|
|
293
305
|
* The amount of weight (if any) which should be provided to the message queue for
|
|
294
|
-
* servicing enqueued items
|
|
306
|
+
* servicing enqueued items `on_initialize`.
|
|
295
307
|
*
|
|
296
308
|
* This may be legitimately `None` in the case that you will call
|
|
297
|
-
* `ServiceQueues::service_queues` manually
|
|
309
|
+
* `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
|
|
310
|
+
* it run in `on_idle`.
|
|
298
311
|
**/
|
|
299
312
|
serviceWeight: SpWeightsWeightV2Weight | undefined;
|
|
300
313
|
|
|
314
|
+
/**
|
|
315
|
+
* The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
|
|
316
|
+
* should be provided to the message queue for servicing enqueued items `on_idle`.
|
|
317
|
+
* Useful for parachains to process messages at the same block they are received.
|
|
318
|
+
*
|
|
319
|
+
* If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
|
|
320
|
+
**/
|
|
321
|
+
idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
|
|
322
|
+
|
|
301
323
|
/**
|
|
302
324
|
* Generic pallet constant
|
|
303
325
|
**/
|
|
@@ -464,6 +464,17 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
464
464
|
**/
|
|
465
465
|
LocalExecutionIncomplete: GenericPalletError;
|
|
466
466
|
|
|
467
|
+
/**
|
|
468
|
+
* Could not decode XCM.
|
|
469
|
+
**/
|
|
470
|
+
UnableToDecode: GenericPalletError;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* XCM encoded length is too large.
|
|
474
|
+
* Returned when an XCM encoded length is larger than `MaxXcmEncodedSize`.
|
|
475
|
+
**/
|
|
476
|
+
XcmTooLarge: GenericPalletError;
|
|
477
|
+
|
|
467
478
|
/**
|
|
468
479
|
* Generic pallet error
|
|
469
480
|
**/
|
|
@@ -2060,7 +2060,7 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2060
2060
|
**/
|
|
2061
2061
|
assetConversion: {
|
|
2062
2062
|
/**
|
|
2063
|
-
* A successful call of the `
|
|
2063
|
+
* A successful call of the `CreatePool` extrinsic will create this event.
|
|
2064
2064
|
**/
|
|
2065
2065
|
PoolCreated: GenericPalletEvent<
|
|
2066
2066
|
'AssetConversion',
|
|
@@ -20,12 +20,12 @@ import type {
|
|
|
20
20
|
FrameSystemCodeUpgradeAuthorization,
|
|
21
21
|
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
22
22
|
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
PolkadotPrimitivesV7PersistedValidationData,
|
|
24
|
+
PolkadotPrimitivesV7UpgradeRestriction,
|
|
25
|
+
PolkadotPrimitivesV7UpgradeGoAhead,
|
|
26
26
|
SpTrieStorageProof,
|
|
27
27
|
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
|
|
28
|
-
|
|
28
|
+
PolkadotPrimitivesV7AbridgedHostConfiguration,
|
|
29
29
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
30
30
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
31
31
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
@@ -289,9 +289,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
289
289
|
* This value is expected to be set only once per block and it's never stored
|
|
290
290
|
* in the trie.
|
|
291
291
|
*
|
|
292
|
-
* @param {Callback<
|
|
292
|
+
* @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
|
|
293
293
|
**/
|
|
294
|
-
validationData: GenericStorageQuery<() =>
|
|
294
|
+
validationData: GenericStorageQuery<() => PolkadotPrimitivesV7PersistedValidationData | undefined>;
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
297
|
* Were the validation data set to notify the relay chain?
|
|
@@ -318,9 +318,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
318
318
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
319
319
|
* set after the inherent.
|
|
320
320
|
*
|
|
321
|
-
* @param {Callback<
|
|
321
|
+
* @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
|
|
322
322
|
**/
|
|
323
|
-
upgradeRestrictionSignal: GenericStorageQuery<() =>
|
|
323
|
+
upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
326
|
* Optional upgrade go-ahead signal from the relay-chain.
|
|
@@ -329,9 +329,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
329
329
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
330
330
|
* set after the inherent.
|
|
331
331
|
*
|
|
332
|
-
* @param {Callback<
|
|
332
|
+
* @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
|
|
333
333
|
**/
|
|
334
|
-
upgradeGoAhead: GenericStorageQuery<() =>
|
|
334
|
+
upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
337
|
* The state proof for the last relay parent block.
|
|
@@ -368,9 +368,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
368
368
|
*
|
|
369
369
|
* This data is also absent from the genesis.
|
|
370
370
|
*
|
|
371
|
-
* @param {Callback<
|
|
371
|
+
* @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
|
|
372
372
|
**/
|
|
373
|
-
hostConfiguration: GenericStorageQuery<() =>
|
|
373
|
+
hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
|
|
374
374
|
|
|
375
375
|
/**
|
|
376
376
|
* The last downward message queue chain head we have observed.
|
|
@@ -576,6 +576,8 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
576
576
|
* Any liquidity locks on some account balances.
|
|
577
577
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
578
578
|
*
|
|
579
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
580
|
+
*
|
|
579
581
|
* @param {AccountId32Like} arg
|
|
580
582
|
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
581
583
|
**/
|
|
@@ -584,6 +586,8 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
584
586
|
/**
|
|
585
587
|
* Named reserves on some account balances.
|
|
586
588
|
*
|
|
589
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
590
|
+
*
|
|
587
591
|
* @param {AccountId32Like} arg
|
|
588
592
|
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
589
593
|
**/
|
package/westendAssetHub/tx.d.ts
CHANGED
|
@@ -539,7 +539,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
539
539
|
*
|
|
540
540
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
541
541
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
542
|
-
*
|
|
542
|
+
* possibility of churn).
|
|
543
543
|
*
|
|
544
544
|
* @param {Array<AccountId32Like>} who
|
|
545
545
|
**/
|
|
@@ -956,6 +956,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
956
956
|
**/
|
|
957
957
|
polkadotXcm: {
|
|
958
958
|
/**
|
|
959
|
+
* WARNING: DEPRECATED. `send` will be removed after June 2024. Use `send_blob` instead.
|
|
959
960
|
*
|
|
960
961
|
* @param {XcmVersionedLocation} dest
|
|
961
962
|
* @param {XcmVersionedXcm} message
|
|
@@ -1085,6 +1086,9 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
1085
1086
|
* the maximum amount of weight that the message could take to be executed, then no
|
|
1086
1087
|
* execution attempt will be made.
|
|
1087
1088
|
*
|
|
1089
|
+
* WARNING: DEPRECATED. `execute` will be removed after June 2024. Use `execute_blob`
|
|
1090
|
+
* instead.
|
|
1091
|
+
*
|
|
1088
1092
|
* @param {XcmVersionedXcm} message
|
|
1089
1093
|
* @param {SpWeightsWeightV2Weight} maxWeight
|
|
1090
1094
|
**/
|
|
@@ -1199,7 +1203,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
1199
1203
|
*
|
|
1200
1204
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
1201
1205
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
1202
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
1206
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
1203
1207
|
* at risk.
|
|
1204
1208
|
*
|
|
1205
1209
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -1247,7 +1251,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
1247
1251
|
*
|
|
1248
1252
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
1249
1253
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
1250
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
1254
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
1251
1255
|
* at risk.
|
|
1252
1256
|
*
|
|
1253
1257
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -1315,7 +1319,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
1315
1319
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
1316
1320
|
* index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
|
|
1317
1321
|
* `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
|
|
1318
|
-
* operation will fail and the assets
|
|
1322
|
+
* operation will fail and the sent assets may be at risk.
|
|
1319
1323
|
*
|
|
1320
1324
|
* `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
|
|
1321
1325
|
* to `dest`, no limitations imposed on `fees`.
|
|
@@ -1395,6 +1399,58 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
1395
1399
|
}>
|
|
1396
1400
|
>;
|
|
1397
1401
|
|
|
1402
|
+
/**
|
|
1403
|
+
* Execute an XCM from a local, signed, origin.
|
|
1404
|
+
*
|
|
1405
|
+
* An event is deposited indicating whether the message could be executed completely
|
|
1406
|
+
* or only partially.
|
|
1407
|
+
*
|
|
1408
|
+
* No more than `max_weight` will be used in its attempted execution. If this is less than
|
|
1409
|
+
* the maximum amount of weight that the message could take to be executed, then no
|
|
1410
|
+
* execution attempt will be made.
|
|
1411
|
+
*
|
|
1412
|
+
* The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
|
|
1413
|
+
*
|
|
1414
|
+
* @param {BytesLike} encodedMessage
|
|
1415
|
+
* @param {SpWeightsWeightV2Weight} maxWeight
|
|
1416
|
+
**/
|
|
1417
|
+
executeBlob: GenericTxCall<
|
|
1418
|
+
(
|
|
1419
|
+
encodedMessage: BytesLike,
|
|
1420
|
+
maxWeight: SpWeightsWeightV2Weight,
|
|
1421
|
+
) => ChainSubmittableExtrinsic<{
|
|
1422
|
+
pallet: 'PolkadotXcm';
|
|
1423
|
+
palletCall: {
|
|
1424
|
+
name: 'ExecuteBlob';
|
|
1425
|
+
params: { encodedMessage: BytesLike; maxWeight: SpWeightsWeightV2Weight };
|
|
1426
|
+
};
|
|
1427
|
+
}>
|
|
1428
|
+
>;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Send an XCM from a local, signed, origin.
|
|
1432
|
+
*
|
|
1433
|
+
* The destination, `dest`, will receive this message with a `DescendOrigin` instruction
|
|
1434
|
+
* that makes the origin of the message be the origin on this system.
|
|
1435
|
+
*
|
|
1436
|
+
* The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
|
|
1437
|
+
*
|
|
1438
|
+
* @param {XcmVersionedLocation} dest
|
|
1439
|
+
* @param {BytesLike} encodedMessage
|
|
1440
|
+
**/
|
|
1441
|
+
sendBlob: GenericTxCall<
|
|
1442
|
+
(
|
|
1443
|
+
dest: XcmVersionedLocation,
|
|
1444
|
+
encodedMessage: BytesLike,
|
|
1445
|
+
) => ChainSubmittableExtrinsic<{
|
|
1446
|
+
pallet: 'PolkadotXcm';
|
|
1447
|
+
palletCall: {
|
|
1448
|
+
name: 'SendBlob';
|
|
1449
|
+
params: { dest: XcmVersionedLocation; encodedMessage: BytesLike };
|
|
1450
|
+
};
|
|
1451
|
+
}>
|
|
1452
|
+
>;
|
|
1453
|
+
|
|
1398
1454
|
/**
|
|
1399
1455
|
* Generic pallet tx call
|
|
1400
1456
|
**/
|
|
@@ -1866,7 +1866,7 @@ export type PalletNftFractionalizationEvent =
|
|
|
1866
1866
|
**/
|
|
1867
1867
|
export type PalletAssetConversionEvent =
|
|
1868
1868
|
/**
|
|
1869
|
-
* A successful call of the `
|
|
1869
|
+
* A successful call of the `CreatePool` extrinsic will create this event.
|
|
1870
1870
|
**/
|
|
1871
1871
|
| {
|
|
1872
1872
|
name: 'PoolCreated';
|
|
@@ -2265,7 +2265,7 @@ export type FrameSystemError =
|
|
|
2265
2265
|
export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
|
|
2266
2266
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
2267
2267
|
paraHeadHash?: H256 | undefined;
|
|
2268
|
-
consumedGoAheadSignal?:
|
|
2268
|
+
consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined;
|
|
2269
2269
|
};
|
|
2270
2270
|
|
|
2271
2271
|
export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
|
|
@@ -2278,15 +2278,15 @@ export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
|
|
|
2278
2278
|
|
|
2279
2279
|
export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number };
|
|
2280
2280
|
|
|
2281
|
-
export type
|
|
2281
|
+
export type PolkadotPrimitivesV7UpgradeGoAhead = 'Abort' | 'GoAhead';
|
|
2282
2282
|
|
|
2283
2283
|
export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = {
|
|
2284
2284
|
usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
|
|
2285
2285
|
hrmpWatermark?: number | undefined;
|
|
2286
|
-
consumedGoAheadSignal?:
|
|
2286
|
+
consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined;
|
|
2287
2287
|
};
|
|
2288
2288
|
|
|
2289
|
-
export type
|
|
2289
|
+
export type PolkadotPrimitivesV7PersistedValidationData = {
|
|
2290
2290
|
parentHead: PolkadotParachainPrimitivesPrimitivesHeadData;
|
|
2291
2291
|
relayParentNumber: number;
|
|
2292
2292
|
relayParentStorageRoot: H256;
|
|
@@ -2295,15 +2295,15 @@ export type PolkadotPrimitivesV6PersistedValidationData = {
|
|
|
2295
2295
|
|
|
2296
2296
|
export type PolkadotParachainPrimitivesPrimitivesHeadData = Bytes;
|
|
2297
2297
|
|
|
2298
|
-
export type
|
|
2298
|
+
export type PolkadotPrimitivesV7UpgradeRestriction = 'Present';
|
|
2299
2299
|
|
|
2300
2300
|
export type SpTrieStorageProof = { trieNodes: Array<Bytes> };
|
|
2301
2301
|
|
|
2302
2302
|
export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = {
|
|
2303
2303
|
dmqMqcHead: H256;
|
|
2304
2304
|
relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity;
|
|
2305
|
-
ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId,
|
|
2306
|
-
egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId,
|
|
2305
|
+
ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>;
|
|
2306
|
+
egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>;
|
|
2307
2307
|
};
|
|
2308
2308
|
|
|
2309
2309
|
export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = {
|
|
@@ -2311,7 +2311,7 @@ export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRema
|
|
|
2311
2311
|
remainingSize: number;
|
|
2312
2312
|
};
|
|
2313
2313
|
|
|
2314
|
-
export type
|
|
2314
|
+
export type PolkadotPrimitivesV7AbridgedHrmpChannel = {
|
|
2315
2315
|
maxCapacity: number;
|
|
2316
2316
|
maxTotalSize: number;
|
|
2317
2317
|
maxMessageSize: number;
|
|
@@ -2320,7 +2320,7 @@ export type PolkadotPrimitivesV6AbridgedHrmpChannel = {
|
|
|
2320
2320
|
mqcHead?: H256 | undefined;
|
|
2321
2321
|
};
|
|
2322
2322
|
|
|
2323
|
-
export type
|
|
2323
|
+
export type PolkadotPrimitivesV7AbridgedHostConfiguration = {
|
|
2324
2324
|
maxCodeSize: number;
|
|
2325
2325
|
maxHeadDataSize: number;
|
|
2326
2326
|
maxUpwardQueueCount: number;
|
|
@@ -2330,10 +2330,10 @@ export type PolkadotPrimitivesV6AbridgedHostConfiguration = {
|
|
|
2330
2330
|
hrmpMaxMessageNumPerCandidate: number;
|
|
2331
2331
|
validationUpgradeCooldown: number;
|
|
2332
2332
|
validationUpgradeDelay: number;
|
|
2333
|
-
asyncBackingParams:
|
|
2333
|
+
asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams;
|
|
2334
2334
|
};
|
|
2335
2335
|
|
|
2336
|
-
export type
|
|
2336
|
+
export type PolkadotPrimitivesV7AsyncBackingAsyncBackingParams = {
|
|
2337
2337
|
maxCandidateDepth: number;
|
|
2338
2338
|
allowedAncestryLen: number;
|
|
2339
2339
|
};
|
|
@@ -2425,7 +2425,7 @@ export type CumulusPalletParachainSystemCallLike =
|
|
|
2425
2425
|
| { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } };
|
|
2426
2426
|
|
|
2427
2427
|
export type CumulusPrimitivesParachainInherentParachainInherentData = {
|
|
2428
|
-
validationData:
|
|
2428
|
+
validationData: PolkadotPrimitivesV7PersistedValidationData;
|
|
2429
2429
|
relayChainState: SpTrieStorageProof;
|
|
2430
2430
|
downwardMessages: Array<PolkadotCorePrimitivesInboundDownwardMessage>;
|
|
2431
2431
|
horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>;
|
|
@@ -2608,7 +2608,7 @@ export type PalletBalancesCall =
|
|
|
2608
2608
|
*
|
|
2609
2609
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
2610
2610
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
2611
|
-
*
|
|
2611
|
+
* possibility of churn).
|
|
2612
2612
|
**/
|
|
2613
2613
|
| { name: 'UpgradeAccounts'; params: { who: Array<AccountId32> } }
|
|
2614
2614
|
/**
|
|
@@ -2683,7 +2683,7 @@ export type PalletBalancesCallLike =
|
|
|
2683
2683
|
*
|
|
2684
2684
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
2685
2685
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
2686
|
-
*
|
|
2686
|
+
* possibility of churn).
|
|
2687
2687
|
**/
|
|
2688
2688
|
| { name: 'UpgradeAccounts'; params: { who: Array<AccountId32Like> } }
|
|
2689
2689
|
/**
|
|
@@ -3008,9 +3008,7 @@ export type PalletCollatorSelectionError =
|
|
|
3008
3008
|
|
|
3009
3009
|
export type AssetHubWestendRuntimeSessionKeys = { aura: SpConsensusAuraSr25519AppSr25519Public };
|
|
3010
3010
|
|
|
3011
|
-
export type SpConsensusAuraSr25519AppSr25519Public =
|
|
3012
|
-
|
|
3013
|
-
export type SpCoreSr25519Public = FixedBytes<32>;
|
|
3011
|
+
export type SpConsensusAuraSr25519AppSr25519Public = FixedBytes<32>;
|
|
3014
3012
|
|
|
3015
3013
|
export type SpCoreCryptoKeyTypeId = FixedBytes<4>;
|
|
3016
3014
|
|
|
@@ -3308,6 +3306,9 @@ export type PalletXcmRemoteLockedFungibleRecord = {
|
|
|
3308
3306
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3309
3307
|
**/
|
|
3310
3308
|
export type PalletXcmCall =
|
|
3309
|
+
/**
|
|
3310
|
+
* WARNING: DEPRECATED. `send` will be removed after June 2024. Use `send_blob` instead.
|
|
3311
|
+
**/
|
|
3311
3312
|
| { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } }
|
|
3312
3313
|
/**
|
|
3313
3314
|
* Teleport some assets from the local chain to some destination chain.
|
|
@@ -3388,6 +3389,9 @@ export type PalletXcmCall =
|
|
|
3388
3389
|
* No more than `max_weight` will be used in its attempted execution. If this is less than
|
|
3389
3390
|
* the maximum amount of weight that the message could take to be executed, then no
|
|
3390
3391
|
* execution attempt will be made.
|
|
3392
|
+
*
|
|
3393
|
+
* WARNING: DEPRECATED. `execute` will be removed after June 2024. Use `execute_blob`
|
|
3394
|
+
* instead.
|
|
3391
3395
|
**/
|
|
3392
3396
|
| { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } }
|
|
3393
3397
|
/**
|
|
@@ -3440,7 +3444,7 @@ export type PalletXcmCall =
|
|
|
3440
3444
|
*
|
|
3441
3445
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3442
3446
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
3443
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
3447
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
3444
3448
|
* at risk.
|
|
3445
3449
|
*
|
|
3446
3450
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -3470,7 +3474,7 @@ export type PalletXcmCall =
|
|
|
3470
3474
|
*
|
|
3471
3475
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3472
3476
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
3473
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
3477
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
3474
3478
|
* at risk.
|
|
3475
3479
|
*
|
|
3476
3480
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -3509,7 +3513,7 @@ export type PalletXcmCall =
|
|
|
3509
3513
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3510
3514
|
* index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
|
|
3511
3515
|
* `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
|
|
3512
|
-
* operation will fail and the assets
|
|
3516
|
+
* operation will fail and the sent assets may be at risk.
|
|
3513
3517
|
*
|
|
3514
3518
|
* `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
|
|
3515
3519
|
* to `dest`, no limitations imposed on `fees`.
|
|
@@ -3555,9 +3559,34 @@ export type PalletXcmCall =
|
|
|
3555
3559
|
* was the latest when they were trapped.
|
|
3556
3560
|
* - `beneficiary`: The location/account where the claimed assets will be deposited.
|
|
3557
3561
|
**/
|
|
3558
|
-
| { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
|
|
3562
|
+
| { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
|
|
3563
|
+
/**
|
|
3564
|
+
* Execute an XCM from a local, signed, origin.
|
|
3565
|
+
*
|
|
3566
|
+
* An event is deposited indicating whether the message could be executed completely
|
|
3567
|
+
* or only partially.
|
|
3568
|
+
*
|
|
3569
|
+
* No more than `max_weight` will be used in its attempted execution. If this is less than
|
|
3570
|
+
* the maximum amount of weight that the message could take to be executed, then no
|
|
3571
|
+
* execution attempt will be made.
|
|
3572
|
+
*
|
|
3573
|
+
* The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
|
|
3574
|
+
**/
|
|
3575
|
+
| { name: 'ExecuteBlob'; params: { encodedMessage: Bytes; maxWeight: SpWeightsWeightV2Weight } }
|
|
3576
|
+
/**
|
|
3577
|
+
* Send an XCM from a local, signed, origin.
|
|
3578
|
+
*
|
|
3579
|
+
* The destination, `dest`, will receive this message with a `DescendOrigin` instruction
|
|
3580
|
+
* that makes the origin of the message be the origin on this system.
|
|
3581
|
+
*
|
|
3582
|
+
* The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
|
|
3583
|
+
**/
|
|
3584
|
+
| { name: 'SendBlob'; params: { dest: XcmVersionedLocation; encodedMessage: Bytes } };
|
|
3559
3585
|
|
|
3560
3586
|
export type PalletXcmCallLike =
|
|
3587
|
+
/**
|
|
3588
|
+
* WARNING: DEPRECATED. `send` will be removed after June 2024. Use `send_blob` instead.
|
|
3589
|
+
**/
|
|
3561
3590
|
| { name: 'Send'; params: { dest: XcmVersionedLocation; message: XcmVersionedXcm } }
|
|
3562
3591
|
/**
|
|
3563
3592
|
* Teleport some assets from the local chain to some destination chain.
|
|
@@ -3638,6 +3667,9 @@ export type PalletXcmCallLike =
|
|
|
3638
3667
|
* No more than `max_weight` will be used in its attempted execution. If this is less than
|
|
3639
3668
|
* the maximum amount of weight that the message could take to be executed, then no
|
|
3640
3669
|
* execution attempt will be made.
|
|
3670
|
+
*
|
|
3671
|
+
* WARNING: DEPRECATED. `execute` will be removed after June 2024. Use `execute_blob`
|
|
3672
|
+
* instead.
|
|
3641
3673
|
**/
|
|
3642
3674
|
| { name: 'Execute'; params: { message: XcmVersionedXcm; maxWeight: SpWeightsWeightV2Weight } }
|
|
3643
3675
|
/**
|
|
@@ -3690,7 +3722,7 @@ export type PalletXcmCallLike =
|
|
|
3690
3722
|
*
|
|
3691
3723
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3692
3724
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
3693
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
3725
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
3694
3726
|
* at risk.
|
|
3695
3727
|
*
|
|
3696
3728
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -3720,7 +3752,7 @@ export type PalletXcmCallLike =
|
|
|
3720
3752
|
*
|
|
3721
3753
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3722
3754
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
3723
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
3755
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
3724
3756
|
* at risk.
|
|
3725
3757
|
*
|
|
3726
3758
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -3759,7 +3791,7 @@ export type PalletXcmCallLike =
|
|
|
3759
3791
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
3760
3792
|
* index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
|
|
3761
3793
|
* `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
|
|
3762
|
-
* operation will fail and the assets
|
|
3794
|
+
* operation will fail and the sent assets may be at risk.
|
|
3763
3795
|
*
|
|
3764
3796
|
* `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
|
|
3765
3797
|
* to `dest`, no limitations imposed on `fees`.
|
|
@@ -3805,7 +3837,29 @@ export type PalletXcmCallLike =
|
|
|
3805
3837
|
* was the latest when they were trapped.
|
|
3806
3838
|
* - `beneficiary`: The location/account where the claimed assets will be deposited.
|
|
3807
3839
|
**/
|
|
3808
|
-
| { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
|
|
3840
|
+
| { name: 'ClaimAssets'; params: { assets: XcmVersionedAssets; beneficiary: XcmVersionedLocation } }
|
|
3841
|
+
/**
|
|
3842
|
+
* Execute an XCM from a local, signed, origin.
|
|
3843
|
+
*
|
|
3844
|
+
* An event is deposited indicating whether the message could be executed completely
|
|
3845
|
+
* or only partially.
|
|
3846
|
+
*
|
|
3847
|
+
* No more than `max_weight` will be used in its attempted execution. If this is less than
|
|
3848
|
+
* the maximum amount of weight that the message could take to be executed, then no
|
|
3849
|
+
* execution attempt will be made.
|
|
3850
|
+
*
|
|
3851
|
+
* The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
|
|
3852
|
+
**/
|
|
3853
|
+
| { name: 'ExecuteBlob'; params: { encodedMessage: BytesLike; maxWeight: SpWeightsWeightV2Weight } }
|
|
3854
|
+
/**
|
|
3855
|
+
* Send an XCM from a local, signed, origin.
|
|
3856
|
+
*
|
|
3857
|
+
* The destination, `dest`, will receive this message with a `DescendOrigin` instruction
|
|
3858
|
+
* that makes the origin of the message be the origin on this system.
|
|
3859
|
+
*
|
|
3860
|
+
* The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
|
|
3861
|
+
**/
|
|
3862
|
+
| { name: 'SendBlob'; params: { dest: XcmVersionedLocation; encodedMessage: BytesLike } };
|
|
3809
3863
|
|
|
3810
3864
|
export type XcmVersionedXcm =
|
|
3811
3865
|
| { tag: 'V2'; value: XcmV2Xcm }
|
|
@@ -4115,7 +4169,16 @@ export type PalletXcmError =
|
|
|
4115
4169
|
/**
|
|
4116
4170
|
* Local XCM execution incomplete.
|
|
4117
4171
|
**/
|
|
4118
|
-
| 'LocalExecutionIncomplete'
|
|
4172
|
+
| 'LocalExecutionIncomplete'
|
|
4173
|
+
/**
|
|
4174
|
+
* Could not decode XCM.
|
|
4175
|
+
**/
|
|
4176
|
+
| 'UnableToDecode'
|
|
4177
|
+
/**
|
|
4178
|
+
* XCM encoded length is too large.
|
|
4179
|
+
* Returned when an XCM encoded length is larger than `MaxXcmEncodedSize`.
|
|
4180
|
+
**/
|
|
4181
|
+
| 'XcmTooLarge';
|
|
4119
4182
|
|
|
4120
4183
|
/**
|
|
4121
4184
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -8624,15 +8687,9 @@ export type PalletNftsPreSignedMint = {
|
|
|
8624
8687
|
};
|
|
8625
8688
|
|
|
8626
8689
|
export type SpRuntimeMultiSignature =
|
|
8627
|
-
| { tag: 'Ed25519'; value:
|
|
8628
|
-
| { tag: 'Sr25519'; value:
|
|
8629
|
-
| { tag: 'Ecdsa'; value:
|
|
8630
|
-
|
|
8631
|
-
export type SpCoreEd25519Signature = FixedBytes<64>;
|
|
8632
|
-
|
|
8633
|
-
export type SpCoreSr25519Signature = FixedBytes<64>;
|
|
8634
|
-
|
|
8635
|
-
export type SpCoreEcdsaSignature = FixedBytes<65>;
|
|
8690
|
+
| { tag: 'Ed25519'; value: FixedBytes<64> }
|
|
8691
|
+
| { tag: 'Sr25519'; value: FixedBytes<64> }
|
|
8692
|
+
| { tag: 'Ecdsa'; value: FixedBytes<65> };
|
|
8636
8693
|
|
|
8637
8694
|
export type PalletNftsPreSignedAttributes = {
|
|
8638
8695
|
collection: number;
|
|
@@ -11949,6 +12006,8 @@ export type PalletAssetConversionTxPaymentChargeAssetTxPayment = {
|
|
|
11949
12006
|
assetId?: StagingXcmV3MultilocationMultiLocation | undefined;
|
|
11950
12007
|
};
|
|
11951
12008
|
|
|
12009
|
+
export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {};
|
|
12010
|
+
|
|
11952
12011
|
export type AssetHubWestendRuntimeRuntime = {};
|
|
11953
12012
|
|
|
11954
12013
|
export type SpConsensusSlotsSlotDuration = bigint;
|