@dedot/chaintypes 0.115.0 → 0.117.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/astar/consts.d.ts +9 -0
- package/astar/index.d.ts +1 -1
- package/astar/query.d.ts +15 -0
- package/package.json +2 -2
- package/paseo-asset-hub/events.d.ts +37 -40
- package/paseo-asset-hub/index.d.ts +1 -1
- package/paseo-asset-hub/query.d.ts +3 -3
- package/paseo-asset-hub/runtime.d.ts +5 -4
- package/paseo-asset-hub/tx.d.ts +5 -4
- package/paseo-asset-hub/types.d.ts +353 -284
package/astar/consts.d.ts
CHANGED
|
@@ -1187,4 +1187,13 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
1187
1187
|
**/
|
|
1188
1188
|
[name: string]: any;
|
|
1189
1189
|
};
|
|
1190
|
+
/**
|
|
1191
|
+
* Pallet `DemocracyMBM`'s constants
|
|
1192
|
+
**/
|
|
1193
|
+
democracyMBM: {
|
|
1194
|
+
/**
|
|
1195
|
+
* Generic pallet constant
|
|
1196
|
+
**/
|
|
1197
|
+
[name: string]: any;
|
|
1198
|
+
};
|
|
1190
1199
|
}
|
package/astar/index.d.ts
CHANGED
package/astar/query.d.ts
CHANGED
|
@@ -2502,6 +2502,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2502
2502
|
**/
|
|
2503
2503
|
historic: GenericStorageQuery<Rv, (arg: BytesLike) => [] | undefined, Bytes>;
|
|
2504
2504
|
|
|
2505
|
+
/**
|
|
2506
|
+
* Generic pallet storage query
|
|
2507
|
+
**/
|
|
2508
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2509
|
+
};
|
|
2510
|
+
/**
|
|
2511
|
+
* Pallet `DemocracyMBM`'s storage queries
|
|
2512
|
+
**/
|
|
2513
|
+
democracyMBM: {
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @param {Callback<number> =} callback
|
|
2517
|
+
**/
|
|
2518
|
+
migrationBlockNumber: GenericStorageQuery<Rv, () => number>;
|
|
2519
|
+
|
|
2505
2520
|
/**
|
|
2506
2521
|
* Generic pallet storage query
|
|
2507
2522
|
**/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.117.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "adad5bc9118a8487567fe0b3468cc247330ec5d2",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { DispatchError, AccountId32, H256, FixedBytes, FixedU128, Result, Bytes, Permill } from 'dedot/codecs';
|
|
4
5
|
import type {
|
|
5
|
-
|
|
6
|
-
DispatchError,
|
|
7
|
-
AccountId32,
|
|
8
|
-
H256,
|
|
9
|
-
FixedBytes,
|
|
10
|
-
FixedU128,
|
|
11
|
-
Result,
|
|
12
|
-
Bytes,
|
|
13
|
-
Permill,
|
|
14
|
-
} from 'dedot/codecs';
|
|
15
|
-
import type {
|
|
6
|
+
FrameSystemDispatchEventInfo,
|
|
16
7
|
SpWeightsWeightV2Weight,
|
|
17
8
|
FrameSupportTokensMiscBalanceStatus,
|
|
18
9
|
StagingXcmV4Location,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
StagingXcmV5TraitsOutcome,
|
|
11
|
+
StagingXcmV5Location,
|
|
12
|
+
StagingXcmV5Xcm,
|
|
13
|
+
StagingXcmV5Response,
|
|
22
14
|
XcmVersionedAssets,
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
StagingXcmV5AssetAssets,
|
|
16
|
+
XcmV5TraitsError,
|
|
25
17
|
XcmVersionedLocation,
|
|
26
18
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
27
19
|
FrameSupportMessagesProcessMessageError,
|
|
@@ -42,7 +34,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
42
34
|
/**
|
|
43
35
|
* An extrinsic completed successfully.
|
|
44
36
|
**/
|
|
45
|
-
ExtrinsicSuccess: GenericPalletEvent<
|
|
37
|
+
ExtrinsicSuccess: GenericPalletEvent<
|
|
38
|
+
Rv,
|
|
39
|
+
'System',
|
|
40
|
+
'ExtrinsicSuccess',
|
|
41
|
+
{ dispatchInfo: FrameSystemDispatchEventInfo }
|
|
42
|
+
>;
|
|
46
43
|
|
|
47
44
|
/**
|
|
48
45
|
* An extrinsic failed.
|
|
@@ -51,7 +48,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
51
48
|
Rv,
|
|
52
49
|
'System',
|
|
53
50
|
'ExtrinsicFailed',
|
|
54
|
-
{ dispatchError: DispatchError; dispatchInfo:
|
|
51
|
+
{ dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo }
|
|
55
52
|
>;
|
|
56
53
|
|
|
57
54
|
/**
|
|
@@ -455,7 +452,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
455
452
|
/**
|
|
456
453
|
* Execution of an XCM message was attempted.
|
|
457
454
|
**/
|
|
458
|
-
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome:
|
|
455
|
+
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
|
|
459
456
|
|
|
460
457
|
/**
|
|
461
458
|
* A XCM message was sent.
|
|
@@ -465,9 +462,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
465
462
|
'PolkadotXcm',
|
|
466
463
|
'Sent',
|
|
467
464
|
{
|
|
468
|
-
origin:
|
|
469
|
-
destination:
|
|
470
|
-
message:
|
|
465
|
+
origin: StagingXcmV5Location;
|
|
466
|
+
destination: StagingXcmV5Location;
|
|
467
|
+
message: StagingXcmV5Xcm;
|
|
471
468
|
messageId: FixedBytes<32>;
|
|
472
469
|
}
|
|
473
470
|
>;
|
|
@@ -481,7 +478,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
481
478
|
Rv,
|
|
482
479
|
'PolkadotXcm',
|
|
483
480
|
'UnexpectedResponse',
|
|
484
|
-
{ origin:
|
|
481
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
485
482
|
>;
|
|
486
483
|
|
|
487
484
|
/**
|
|
@@ -492,7 +489,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
492
489
|
Rv,
|
|
493
490
|
'PolkadotXcm',
|
|
494
491
|
'ResponseReady',
|
|
495
|
-
{ queryId: bigint; response:
|
|
492
|
+
{ queryId: bigint; response: StagingXcmV5Response }
|
|
496
493
|
>;
|
|
497
494
|
|
|
498
495
|
/**
|
|
@@ -556,7 +553,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
556
553
|
Rv,
|
|
557
554
|
'PolkadotXcm',
|
|
558
555
|
'InvalidResponder',
|
|
559
|
-
{ origin:
|
|
556
|
+
{ origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined }
|
|
560
557
|
>;
|
|
561
558
|
|
|
562
559
|
/**
|
|
@@ -572,7 +569,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
572
569
|
Rv,
|
|
573
570
|
'PolkadotXcm',
|
|
574
571
|
'InvalidResponderVersion',
|
|
575
|
-
{ origin:
|
|
572
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
576
573
|
>;
|
|
577
574
|
|
|
578
575
|
/**
|
|
@@ -587,7 +584,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
587
584
|
Rv,
|
|
588
585
|
'PolkadotXcm',
|
|
589
586
|
'AssetsTrapped',
|
|
590
|
-
{ hash: H256; origin:
|
|
587
|
+
{ hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
|
|
591
588
|
>;
|
|
592
589
|
|
|
593
590
|
/**
|
|
@@ -599,7 +596,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
599
596
|
Rv,
|
|
600
597
|
'PolkadotXcm',
|
|
601
598
|
'VersionChangeNotified',
|
|
602
|
-
{ destination:
|
|
599
|
+
{ destination: StagingXcmV5Location; result: number; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
603
600
|
>;
|
|
604
601
|
|
|
605
602
|
/**
|
|
@@ -610,7 +607,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
610
607
|
Rv,
|
|
611
608
|
'PolkadotXcm',
|
|
612
609
|
'SupportedVersionChanged',
|
|
613
|
-
{ location:
|
|
610
|
+
{ location: StagingXcmV5Location; version: number }
|
|
614
611
|
>;
|
|
615
612
|
|
|
616
613
|
/**
|
|
@@ -621,7 +618,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
621
618
|
Rv,
|
|
622
619
|
'PolkadotXcm',
|
|
623
620
|
'NotifyTargetSendFail',
|
|
624
|
-
{ location:
|
|
621
|
+
{ location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError }
|
|
625
622
|
>;
|
|
626
623
|
|
|
627
624
|
/**
|
|
@@ -648,7 +645,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
648
645
|
Rv,
|
|
649
646
|
'PolkadotXcm',
|
|
650
647
|
'InvalidQuerierVersion',
|
|
651
|
-
{ origin:
|
|
648
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
652
649
|
>;
|
|
653
650
|
|
|
654
651
|
/**
|
|
@@ -661,10 +658,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
661
658
|
'PolkadotXcm',
|
|
662
659
|
'InvalidQuerier',
|
|
663
660
|
{
|
|
664
|
-
origin:
|
|
661
|
+
origin: StagingXcmV5Location;
|
|
665
662
|
queryId: bigint;
|
|
666
|
-
expectedQuerier:
|
|
667
|
-
maybeActualQuerier?:
|
|
663
|
+
expectedQuerier: StagingXcmV5Location;
|
|
664
|
+
maybeActualQuerier?: StagingXcmV5Location | undefined;
|
|
668
665
|
}
|
|
669
666
|
>;
|
|
670
667
|
|
|
@@ -676,7 +673,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
676
673
|
Rv,
|
|
677
674
|
'PolkadotXcm',
|
|
678
675
|
'VersionNotifyStarted',
|
|
679
|
-
{ destination:
|
|
676
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
680
677
|
>;
|
|
681
678
|
|
|
682
679
|
/**
|
|
@@ -686,7 +683,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
686
683
|
Rv,
|
|
687
684
|
'PolkadotXcm',
|
|
688
685
|
'VersionNotifyRequested',
|
|
689
|
-
{ destination:
|
|
686
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
690
687
|
>;
|
|
691
688
|
|
|
692
689
|
/**
|
|
@@ -697,7 +694,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
697
694
|
Rv,
|
|
698
695
|
'PolkadotXcm',
|
|
699
696
|
'VersionNotifyUnrequested',
|
|
700
|
-
{ destination:
|
|
697
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
701
698
|
>;
|
|
702
699
|
|
|
703
700
|
/**
|
|
@@ -707,7 +704,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
707
704
|
Rv,
|
|
708
705
|
'PolkadotXcm',
|
|
709
706
|
'FeesPaid',
|
|
710
|
-
{ paying:
|
|
707
|
+
{ paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets }
|
|
711
708
|
>;
|
|
712
709
|
|
|
713
710
|
/**
|
|
@@ -717,7 +714,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
717
714
|
Rv,
|
|
718
715
|
'PolkadotXcm',
|
|
719
716
|
'AssetsClaimed',
|
|
720
|
-
{ hash: H256; origin:
|
|
717
|
+
{ hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
|
|
721
718
|
>;
|
|
722
719
|
|
|
723
720
|
/**
|
|
@@ -754,7 +751,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
754
751
|
Rv,
|
|
755
752
|
'CumulusXcm',
|
|
756
753
|
'ExecutedDownward',
|
|
757
|
-
[FixedBytes<32>,
|
|
754
|
+
[FixedBytes<32>, StagingXcmV5TraitsOutcome]
|
|
758
755
|
>;
|
|
759
756
|
|
|
760
757
|
/**
|
|
@@ -23,7 +23,7 @@ export interface VersionedPaseoAssetHubApi<Rv extends RpcVersion> extends Generi
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: PaseoAssetHubApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1005001
|
|
27
27
|
**/
|
|
28
28
|
export interface PaseoAssetHubApi {
|
|
29
29
|
legacy: VersionedPaseoAssetHubApi<RpcLegacy>;
|
|
@@ -50,7 +50,7 @@ import type {
|
|
|
50
50
|
PalletXcmVersionMigrationStage,
|
|
51
51
|
PalletXcmRemoteLockedFungibleRecord,
|
|
52
52
|
XcmVersionedAssetId,
|
|
53
|
-
|
|
53
|
+
StagingXcmV5Xcm,
|
|
54
54
|
BpXcmBridgeHubRouterBridgeState,
|
|
55
55
|
PalletMessageQueueBookState,
|
|
56
56
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
@@ -1097,9 +1097,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1097
1097
|
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
1098
1098
|
* implementation in the XCM executor configuration.
|
|
1099
1099
|
*
|
|
1100
|
-
* @param {Callback<
|
|
1100
|
+
* @param {Callback<StagingXcmV5Xcm | undefined> =} callback
|
|
1101
1101
|
**/
|
|
1102
|
-
recordedXcm: GenericStorageQuery<Rv, () =>
|
|
1102
|
+
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
|
|
1103
1103
|
|
|
1104
1104
|
/**
|
|
1105
1105
|
* Generic pallet storage query
|
|
@@ -609,9 +609,10 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
609
609
|
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
|
|
610
610
|
* storage.
|
|
611
611
|
*
|
|
612
|
-
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
613
|
-
*
|
|
614
|
-
* deserialization fails, an error
|
|
612
|
+
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
613
|
+
* `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
|
|
614
|
+
* provided JSON blob is incorrect or incomplete or the deserialization fails, an error
|
|
615
|
+
* is returned.
|
|
615
616
|
*
|
|
616
617
|
* Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
|
|
617
618
|
* defaults will be used.
|
|
@@ -625,7 +626,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
625
626
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
626
627
|
* `id`.
|
|
627
628
|
*
|
|
628
|
-
* If `id` is `None` the function
|
|
629
|
+
* If `id` is `None` the function should return JSON blob representation of the default
|
|
629
630
|
* `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
|
|
630
631
|
* `RuntimeGenesisConfig`.
|
|
631
632
|
*
|
package/paseo-asset-hub/tx.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
XcmVersionedXcm,
|
|
24
24
|
XcmVersionedAssets,
|
|
25
25
|
SpWeightsWeightV2Weight,
|
|
26
|
-
|
|
26
|
+
StagingXcmV5Location,
|
|
27
27
|
XcmV3WeightLimit,
|
|
28
28
|
StagingXcmExecutorAssetTransferTransferType,
|
|
29
29
|
XcmVersionedAssetId,
|
|
@@ -44,6 +44,7 @@ import type {
|
|
|
44
44
|
PalletNftsPriceWithDirection,
|
|
45
45
|
PalletNftsPreSignedMint,
|
|
46
46
|
PalletNftsPreSignedAttributes,
|
|
47
|
+
StagingXcmV4Location,
|
|
47
48
|
PalletStateTrieMigrationMigrationLimits,
|
|
48
49
|
PalletStateTrieMigrationMigrationTask,
|
|
49
50
|
PalletStateTrieMigrationProgress,
|
|
@@ -1472,13 +1473,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1472
1473
|
* - `location`: The destination that is being described.
|
|
1473
1474
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
1474
1475
|
*
|
|
1475
|
-
* @param {
|
|
1476
|
+
* @param {StagingXcmV5Location} location
|
|
1476
1477
|
* @param {number} version
|
|
1477
1478
|
**/
|
|
1478
1479
|
forceXcmVersion: GenericTxCall<
|
|
1479
1480
|
Rv,
|
|
1480
1481
|
(
|
|
1481
|
-
location:
|
|
1482
|
+
location: StagingXcmV5Location,
|
|
1482
1483
|
version: number,
|
|
1483
1484
|
) => ChainSubmittableExtrinsic<
|
|
1484
1485
|
Rv,
|
|
@@ -1486,7 +1487,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1486
1487
|
pallet: 'PolkadotXcm';
|
|
1487
1488
|
palletCall: {
|
|
1488
1489
|
name: 'ForceXcmVersion';
|
|
1489
|
-
params: { location:
|
|
1490
|
+
params: { location: StagingXcmV5Location; version: number };
|
|
1490
1491
|
};
|
|
1491
1492
|
}
|
|
1492
1493
|
>
|