@dedot/chaintypes 0.200.0 → 0.201.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/package.json +2 -2
- package/westend-asset-hub/consts.d.ts +0 -15
- package/westend-asset-hub/errors.d.ts +30 -41
- package/westend-asset-hub/events.d.ts +35 -37
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +41 -55
- package/westend-asset-hub/runtime.d.ts +28 -10
- package/westend-asset-hub/tx.d.ts +147 -117
- package/westend-asset-hub/types.d.ts +178 -227
- package/westend-asset-hub/view-functions.d.ts +120 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.201.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": "00a8ee1347cd178c8cb585433134968b0d25bc51",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -1303,21 +1303,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1303
1303
|
**/
|
|
1304
1304
|
[name: string]: any;
|
|
1305
1305
|
};
|
|
1306
|
-
/**
|
|
1307
|
-
* Pallet `FastUnstake`'s constants
|
|
1308
|
-
**/
|
|
1309
|
-
fastUnstake: {
|
|
1310
|
-
/**
|
|
1311
|
-
* Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
|
|
1312
|
-
* the costs of resources on unsuccessful unstake.
|
|
1313
|
-
**/
|
|
1314
|
-
deposit: bigint;
|
|
1315
|
-
|
|
1316
|
-
/**
|
|
1317
|
-
* Generic pallet constant
|
|
1318
|
-
**/
|
|
1319
|
-
[name: string]: any;
|
|
1320
|
-
};
|
|
1321
1306
|
/**
|
|
1322
1307
|
* Pallet `VoterList`'s constants
|
|
1323
1308
|
**/
|
|
@@ -1067,6 +1067,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1067
1067
|
**/
|
|
1068
1068
|
ContainsHolds: GenericPalletError;
|
|
1069
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* Tried setting too many reserves.
|
|
1072
|
+
**/
|
|
1073
|
+
TooManyReserves: GenericPalletError;
|
|
1074
|
+
|
|
1070
1075
|
/**
|
|
1071
1076
|
* Generic pallet error
|
|
1072
1077
|
**/
|
|
@@ -1547,6 +1552,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1547
1552
|
**/
|
|
1548
1553
|
ContainsHolds: GenericPalletError;
|
|
1549
1554
|
|
|
1555
|
+
/**
|
|
1556
|
+
* Tried setting too many reserves.
|
|
1557
|
+
**/
|
|
1558
|
+
TooManyReserves: GenericPalletError;
|
|
1559
|
+
|
|
1550
1560
|
/**
|
|
1551
1561
|
* Generic pallet error
|
|
1552
1562
|
**/
|
|
@@ -1703,6 +1713,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1703
1713
|
**/
|
|
1704
1714
|
ContainsHolds: GenericPalletError;
|
|
1705
1715
|
|
|
1716
|
+
/**
|
|
1717
|
+
* Tried setting too many reserves.
|
|
1718
|
+
**/
|
|
1719
|
+
TooManyReserves: GenericPalletError;
|
|
1720
|
+
|
|
1706
1721
|
/**
|
|
1707
1722
|
* Generic pallet error
|
|
1708
1723
|
**/
|
|
@@ -2147,6 +2162,21 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2147
2162
|
**/
|
|
2148
2163
|
TxFeeOverdraw: GenericPalletError;
|
|
2149
2164
|
|
|
2165
|
+
/**
|
|
2166
|
+
* When calling an EVM constructor `data` has to be empty.
|
|
2167
|
+
*
|
|
2168
|
+
* EVM constructors do not accept data. Their input data is part of the code blob itself.
|
|
2169
|
+
**/
|
|
2170
|
+
EvmConstructorNonEmptyData: GenericPalletError;
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* Tried to construct an EVM contract via code hash.
|
|
2174
|
+
*
|
|
2175
|
+
* EVM contracts can only be instantiated via code upload as no initcode is
|
|
2176
|
+
* stored on-chain.
|
|
2177
|
+
**/
|
|
2178
|
+
EvmConstructedFromHash: GenericPalletError;
|
|
2179
|
+
|
|
2150
2180
|
/**
|
|
2151
2181
|
* Generic pallet error
|
|
2152
2182
|
**/
|
|
@@ -2659,47 +2689,6 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2659
2689
|
**/
|
|
2660
2690
|
[error: string]: GenericPalletError;
|
|
2661
2691
|
};
|
|
2662
|
-
/**
|
|
2663
|
-
* Pallet `FastUnstake`'s errors
|
|
2664
|
-
**/
|
|
2665
|
-
fastUnstake: {
|
|
2666
|
-
/**
|
|
2667
|
-
* The provided Controller account was not found.
|
|
2668
|
-
*
|
|
2669
|
-
* This means that the given account is not bonded.
|
|
2670
|
-
**/
|
|
2671
|
-
NotController: GenericPalletError;
|
|
2672
|
-
|
|
2673
|
-
/**
|
|
2674
|
-
* The bonded account has already been queued.
|
|
2675
|
-
**/
|
|
2676
|
-
AlreadyQueued: GenericPalletError;
|
|
2677
|
-
|
|
2678
|
-
/**
|
|
2679
|
-
* The bonded account has active unlocking chunks.
|
|
2680
|
-
**/
|
|
2681
|
-
NotFullyBonded: GenericPalletError;
|
|
2682
|
-
|
|
2683
|
-
/**
|
|
2684
|
-
* The provided un-staker is not in the `Queue`.
|
|
2685
|
-
**/
|
|
2686
|
-
NotQueued: GenericPalletError;
|
|
2687
|
-
|
|
2688
|
-
/**
|
|
2689
|
-
* The provided un-staker is already in Head, and cannot deregister.
|
|
2690
|
-
**/
|
|
2691
|
-
AlreadyHead: GenericPalletError;
|
|
2692
|
-
|
|
2693
|
-
/**
|
|
2694
|
-
* The call is not allowed at this point because the pallet is not active.
|
|
2695
|
-
**/
|
|
2696
|
-
CallNotAllowed: GenericPalletError;
|
|
2697
|
-
|
|
2698
|
-
/**
|
|
2699
|
-
* Generic pallet error
|
|
2700
|
-
**/
|
|
2701
|
-
[error: string]: GenericPalletError;
|
|
2702
|
-
};
|
|
2703
2692
|
/**
|
|
2704
2693
|
* Pallet `VoterList`'s errors
|
|
2705
2694
|
**/
|
|
@@ -37,6 +37,7 @@ import type {
|
|
|
37
37
|
PalletNftsAttributeNamespace,
|
|
38
38
|
PalletNftsPriceWithDirection,
|
|
39
39
|
PalletNftsPalletAttributes,
|
|
40
|
+
AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
|
|
40
41
|
PalletStateTrieMigrationMigrationCompute,
|
|
41
42
|
PalletStateTrieMigrationError,
|
|
42
43
|
PalletStakingAsyncRewardDestination,
|
|
@@ -1770,6 +1771,16 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1770
1771
|
**/
|
|
1771
1772
|
Withdrawn: GenericPalletEvent<'Assets', 'Withdrawn', { assetId: number; who: AccountId32; amount: bigint }>;
|
|
1772
1773
|
|
|
1774
|
+
/**
|
|
1775
|
+
* Reserve information was set or updated for `asset_id`.
|
|
1776
|
+
**/
|
|
1777
|
+
ReservesUpdated: GenericPalletEvent<'Assets', 'ReservesUpdated', { assetId: number; reserves: Array<[]> }>;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* Reserve information was removed for `asset_id`.
|
|
1781
|
+
**/
|
|
1782
|
+
ReservesRemoved: GenericPalletEvent<'Assets', 'ReservesRemoved', { assetId: number }>;
|
|
1783
|
+
|
|
1773
1784
|
/**
|
|
1774
1785
|
* Generic pallet event
|
|
1775
1786
|
**/
|
|
@@ -2498,6 +2509,20 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2498
2509
|
{ assetId: StagingXcmV5Location; who: AccountId32; amount: bigint }
|
|
2499
2510
|
>;
|
|
2500
2511
|
|
|
2512
|
+
/**
|
|
2513
|
+
* Reserve information was set or updated for `asset_id`.
|
|
2514
|
+
**/
|
|
2515
|
+
ReservesUpdated: GenericPalletEvent<
|
|
2516
|
+
'ForeignAssets',
|
|
2517
|
+
'ReservesUpdated',
|
|
2518
|
+
{ assetId: StagingXcmV5Location; reserves: Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData> }
|
|
2519
|
+
>;
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* Reserve information was removed for `asset_id`.
|
|
2523
|
+
**/
|
|
2524
|
+
ReservesRemoved: GenericPalletEvent<'ForeignAssets', 'ReservesRemoved', { assetId: StagingXcmV5Location }>;
|
|
2525
|
+
|
|
2501
2526
|
/**
|
|
2502
2527
|
* Generic pallet event
|
|
2503
2528
|
**/
|
|
@@ -2701,6 +2726,16 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2701
2726
|
**/
|
|
2702
2727
|
Withdrawn: GenericPalletEvent<'PoolAssets', 'Withdrawn', { assetId: number; who: AccountId32; amount: bigint }>;
|
|
2703
2728
|
|
|
2729
|
+
/**
|
|
2730
|
+
* Reserve information was set or updated for `asset_id`.
|
|
2731
|
+
**/
|
|
2732
|
+
ReservesUpdated: GenericPalletEvent<'PoolAssets', 'ReservesUpdated', { assetId: number; reserves: Array<[]> }>;
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* Reserve information was removed for `asset_id`.
|
|
2736
|
+
**/
|
|
2737
|
+
ReservesRemoved: GenericPalletEvent<'PoolAssets', 'ReservesRemoved', { assetId: number }>;
|
|
2738
|
+
|
|
2704
2739
|
/**
|
|
2705
2740
|
* Generic pallet event
|
|
2706
2741
|
**/
|
|
@@ -3660,43 +3695,6 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
3660
3695
|
**/
|
|
3661
3696
|
[prop: string]: GenericPalletEvent;
|
|
3662
3697
|
};
|
|
3663
|
-
/**
|
|
3664
|
-
* Pallet `FastUnstake`'s events
|
|
3665
|
-
**/
|
|
3666
|
-
fastUnstake: {
|
|
3667
|
-
/**
|
|
3668
|
-
* A staker was unstaked.
|
|
3669
|
-
**/
|
|
3670
|
-
Unstaked: GenericPalletEvent<'FastUnstake', 'Unstaked', { stash: AccountId32; result: Result<[], DispatchError> }>;
|
|
3671
|
-
|
|
3672
|
-
/**
|
|
3673
|
-
* A staker was slashed for requesting fast-unstake whilst being exposed.
|
|
3674
|
-
**/
|
|
3675
|
-
Slashed: GenericPalletEvent<'FastUnstake', 'Slashed', { stash: AccountId32; amount: bigint }>;
|
|
3676
|
-
|
|
3677
|
-
/**
|
|
3678
|
-
* A batch was partially checked for the given eras, but the process did not finish.
|
|
3679
|
-
**/
|
|
3680
|
-
BatchChecked: GenericPalletEvent<'FastUnstake', 'BatchChecked', { eras: Array<number> }>;
|
|
3681
|
-
|
|
3682
|
-
/**
|
|
3683
|
-
* A batch of a given size was terminated.
|
|
3684
|
-
*
|
|
3685
|
-
* This is always follows by a number of `Unstaked` or `Slashed` events, marking the end
|
|
3686
|
-
* of the batch. A new batch will be created upon next block.
|
|
3687
|
-
**/
|
|
3688
|
-
BatchFinished: GenericPalletEvent<'FastUnstake', 'BatchFinished', { size: number }>;
|
|
3689
|
-
|
|
3690
|
-
/**
|
|
3691
|
-
* An internal error happened. Operations will be paused now.
|
|
3692
|
-
**/
|
|
3693
|
-
InternalError: GenericPalletEvent<'FastUnstake', 'InternalError', null>;
|
|
3694
|
-
|
|
3695
|
-
/**
|
|
3696
|
-
* Generic pallet event
|
|
3697
|
-
**/
|
|
3698
|
-
[prop: string]: GenericPalletEvent;
|
|
3699
|
-
};
|
|
3700
3698
|
/**
|
|
3701
3699
|
* Pallet `VoterList`'s events
|
|
3702
3700
|
**/
|
|
@@ -12,7 +12,6 @@ import type {
|
|
|
12
12
|
BytesLike,
|
|
13
13
|
FixedBytes,
|
|
14
14
|
H160,
|
|
15
|
-
U256,
|
|
16
15
|
Perbill,
|
|
17
16
|
Percent,
|
|
18
17
|
} from 'dedot/codecs';
|
|
@@ -91,6 +90,7 @@ import type {
|
|
|
91
90
|
PalletNftsCollectionConfig,
|
|
92
91
|
PalletNftsItemConfig,
|
|
93
92
|
StagingXcmV5Location,
|
|
93
|
+
AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
|
|
94
94
|
PalletNftFractionalizationDetails,
|
|
95
95
|
PalletAssetConversionPoolInfo,
|
|
96
96
|
PalletReviveVmCodeInfo,
|
|
@@ -123,7 +123,6 @@ import type {
|
|
|
123
123
|
PalletNominationPoolsRewardPool,
|
|
124
124
|
PalletNominationPoolsSubPools,
|
|
125
125
|
PalletNominationPoolsClaimPermission,
|
|
126
|
-
PalletFastUnstakeUnstakeRequest,
|
|
127
126
|
PalletBagsListListNode,
|
|
128
127
|
PalletBagsListListBag,
|
|
129
128
|
PalletDelegatedStakingDelegation,
|
|
@@ -524,19 +523,28 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
524
523
|
/**
|
|
525
524
|
* Upward messages that were sent in a block.
|
|
526
525
|
*
|
|
527
|
-
* This will be cleared in `on_initialize`
|
|
526
|
+
* This will be cleared in `on_initialize` for each new block.
|
|
528
527
|
*
|
|
529
528
|
* @param {Callback<Array<Bytes>> =} callback
|
|
530
529
|
**/
|
|
531
530
|
upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
|
|
532
531
|
|
|
533
532
|
/**
|
|
534
|
-
* Upward messages that are still pending and not yet
|
|
533
|
+
* Upward messages that are still pending and not yet sent to the relay chain.
|
|
535
534
|
*
|
|
536
535
|
* @param {Callback<Array<Bytes>> =} callback
|
|
537
536
|
**/
|
|
538
537
|
pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
|
|
539
538
|
|
|
539
|
+
/**
|
|
540
|
+
* Upward signals that are still pending and not yet sent to the relay chain.
|
|
541
|
+
*
|
|
542
|
+
* This will be cleared in `on_finalize` for each block.
|
|
543
|
+
*
|
|
544
|
+
* @param {Callback<Array<Bytes>> =} callback
|
|
545
|
+
**/
|
|
546
|
+
pendingUpwardSignals: GenericStorageQuery<() => Array<Bytes>>;
|
|
547
|
+
|
|
540
548
|
/**
|
|
541
549
|
* The factor to multiply the base delivery fee by for UMP.
|
|
542
550
|
*
|
|
@@ -1513,6 +1521,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1513
1521
|
**/
|
|
1514
1522
|
metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata, number>;
|
|
1515
1523
|
|
|
1524
|
+
/**
|
|
1525
|
+
* Maps an asset to a list of its configured reserve information.
|
|
1526
|
+
*
|
|
1527
|
+
* @param {number} arg
|
|
1528
|
+
* @param {Callback<Array<[]>> =} callback
|
|
1529
|
+
**/
|
|
1530
|
+
reserves: GenericStorageQuery<(arg: number) => Array<[]>, number>;
|
|
1531
|
+
|
|
1516
1532
|
/**
|
|
1517
1533
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1518
1534
|
* item has no effect.
|
|
@@ -1832,6 +1848,17 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1832
1848
|
**/
|
|
1833
1849
|
metadata: GenericStorageQuery<(arg: StagingXcmV5Location) => PalletAssetsAssetMetadata, StagingXcmV5Location>;
|
|
1834
1850
|
|
|
1851
|
+
/**
|
|
1852
|
+
* Maps an asset to a list of its configured reserve information.
|
|
1853
|
+
*
|
|
1854
|
+
* @param {StagingXcmV5Location} arg
|
|
1855
|
+
* @param {Callback<Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>> =} callback
|
|
1856
|
+
**/
|
|
1857
|
+
reserves: GenericStorageQuery<
|
|
1858
|
+
(arg: StagingXcmV5Location) => Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>,
|
|
1859
|
+
StagingXcmV5Location
|
|
1860
|
+
>;
|
|
1861
|
+
|
|
1835
1862
|
/**
|
|
1836
1863
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1837
1864
|
* item has no effect.
|
|
@@ -1916,6 +1943,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1916
1943
|
**/
|
|
1917
1944
|
metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata, number>;
|
|
1918
1945
|
|
|
1946
|
+
/**
|
|
1947
|
+
* Maps an asset to a list of its configured reserve information.
|
|
1948
|
+
*
|
|
1949
|
+
* @param {number} arg
|
|
1950
|
+
* @param {Callback<Array<[]>> =} callback
|
|
1951
|
+
**/
|
|
1952
|
+
reserves: GenericStorageQuery<(arg: number) => Array<[]>, number>;
|
|
1953
|
+
|
|
1919
1954
|
/**
|
|
1920
1955
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1921
1956
|
* item has no effect.
|
|
@@ -2142,10 +2177,10 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2142
2177
|
*
|
|
2143
2178
|
* The maximum number of elements stored is capped by the block hash count `BLOCK_HASH_COUNT`.
|
|
2144
2179
|
*
|
|
2145
|
-
* @param {
|
|
2180
|
+
* @param {number} arg
|
|
2146
2181
|
* @param {Callback<H256> =} callback
|
|
2147
2182
|
**/
|
|
2148
|
-
blockHash: GenericStorageQuery<(arg:
|
|
2183
|
+
blockHash: GenericStorageQuery<(arg: number) => H256, number>;
|
|
2149
2184
|
|
|
2150
2185
|
/**
|
|
2151
2186
|
* The details needed to reconstruct the receipt info offchain.
|
|
@@ -2936,55 +2971,6 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2936
2971
|
**/
|
|
2937
2972
|
[storage: string]: GenericStorageQuery;
|
|
2938
2973
|
};
|
|
2939
|
-
/**
|
|
2940
|
-
* Pallet `FastUnstake`'s storage queries
|
|
2941
|
-
**/
|
|
2942
|
-
fastUnstake: {
|
|
2943
|
-
/**
|
|
2944
|
-
* The current "head of the queue" being unstaked.
|
|
2945
|
-
*
|
|
2946
|
-
* The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
|
|
2947
|
-
*
|
|
2948
|
-
* @param {Callback<PalletFastUnstakeUnstakeRequest | undefined> =} callback
|
|
2949
|
-
**/
|
|
2950
|
-
head: GenericStorageQuery<() => PalletFastUnstakeUnstakeRequest | undefined>;
|
|
2951
|
-
|
|
2952
|
-
/**
|
|
2953
|
-
* The map of all accounts wishing to be unstaked.
|
|
2954
|
-
*
|
|
2955
|
-
* Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
|
|
2956
|
-
*
|
|
2957
|
-
* @param {AccountId32Like} arg
|
|
2958
|
-
* @param {Callback<bigint | undefined> =} callback
|
|
2959
|
-
**/
|
|
2960
|
-
queue: GenericStorageQuery<(arg: AccountId32Like) => bigint | undefined, AccountId32>;
|
|
2961
|
-
|
|
2962
|
-
/**
|
|
2963
|
-
* Counter for the related counted storage map
|
|
2964
|
-
*
|
|
2965
|
-
* @param {Callback<number> =} callback
|
|
2966
|
-
**/
|
|
2967
|
-
counterForQueue: GenericStorageQuery<() => number>;
|
|
2968
|
-
|
|
2969
|
-
/**
|
|
2970
|
-
* Number of eras to check per block.
|
|
2971
|
-
*
|
|
2972
|
-
* If set to 0, this pallet does absolutely nothing. Cannot be set to more than
|
|
2973
|
-
* [`Config::MaxErasToCheckPerBlock`].
|
|
2974
|
-
*
|
|
2975
|
-
* Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
|
|
2976
|
-
* checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
|
|
2977
|
-
* stored in [`Head`].
|
|
2978
|
-
*
|
|
2979
|
-
* @param {Callback<number> =} callback
|
|
2980
|
-
**/
|
|
2981
|
-
erasToCheckPerBlock: GenericStorageQuery<() => number>;
|
|
2982
|
-
|
|
2983
|
-
/**
|
|
2984
|
-
* Generic pallet storage query
|
|
2985
|
-
**/
|
|
2986
|
-
[storage: string]: GenericStorageQuery;
|
|
2987
|
-
};
|
|
2988
2974
|
/**
|
|
2989
2975
|
* Pallet `VoterList`'s storage queries
|
|
2990
2976
|
**/
|
|
@@ -21,7 +21,6 @@ import type {
|
|
|
21
21
|
SpConsensusSlotsSlotDuration,
|
|
22
22
|
SpConsensusAuraSr25519AppSr25519Public,
|
|
23
23
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
24
|
-
CumulusPrimitivesCoreNextSlotSchedule,
|
|
25
24
|
SpConsensusSlotsSlot,
|
|
26
25
|
SpRuntimeBlockLazyBlock,
|
|
27
26
|
SpRuntimeExtrinsicInclusionMode,
|
|
@@ -61,6 +60,7 @@ import type {
|
|
|
61
60
|
PalletRevivePrimitivesEthTransactInfo,
|
|
62
61
|
PalletRevivePrimitivesEthTransactError,
|
|
63
62
|
PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
63
|
+
PalletReviveEvmApiRpcTypesDryRunConfig,
|
|
64
64
|
PalletRevivePrimitivesCodeUploadReturnValue,
|
|
65
65
|
PalletRevivePrimitivesContractAccessError,
|
|
66
66
|
PalletReviveEvmApiDebugRpcTypesTrace,
|
|
@@ -128,20 +128,17 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
128
128
|
[method: string]: GenericRuntimeApiMethod;
|
|
129
129
|
};
|
|
130
130
|
/**
|
|
131
|
-
* @runtimeapi:
|
|
131
|
+
* @runtimeapi: TargetBlockRate - 0xad694c0c2537478a
|
|
132
132
|
**/
|
|
133
|
-
|
|
133
|
+
targetBlockRate: {
|
|
134
134
|
/**
|
|
135
|
-
* Get the block
|
|
135
|
+
* Get the target block rate for this parachain.
|
|
136
136
|
*
|
|
137
|
-
*
|
|
137
|
+
* Returns the target number of blocks per relay chain slot.
|
|
138
138
|
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* @callname: SlotSchedule_next_slot_schedule
|
|
142
|
-
* @param {number} num_cores
|
|
139
|
+
* @callname: TargetBlockRate_target_block_rate
|
|
143
140
|
**/
|
|
144
|
-
|
|
141
|
+
targetBlockRate: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
145
142
|
|
|
146
143
|
/**
|
|
147
144
|
* Generic runtime api call
|
|
@@ -619,6 +616,8 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
619
616
|
>;
|
|
620
617
|
|
|
621
618
|
/**
|
|
619
|
+
* Query delivery fees V2.
|
|
620
|
+
*
|
|
622
621
|
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
623
622
|
* These always come in a specific asset, defined by the chain.
|
|
624
623
|
*
|
|
@@ -631,11 +630,13 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
631
630
|
* @callname: XcmPaymentApi_query_delivery_fees
|
|
632
631
|
* @param {XcmVersionedLocation} destination
|
|
633
632
|
* @param {XcmVersionedXcm} message
|
|
633
|
+
* @param {XcmVersionedAssetId} asset_id
|
|
634
634
|
**/
|
|
635
635
|
queryDeliveryFees: GenericRuntimeApiMethod<
|
|
636
636
|
(
|
|
637
637
|
destination: XcmVersionedLocation,
|
|
638
638
|
message: XcmVersionedXcm,
|
|
639
|
+
assetId: XcmVersionedAssetId,
|
|
639
640
|
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
640
641
|
>;
|
|
641
642
|
|
|
@@ -1200,6 +1201,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1200
1201
|
/**
|
|
1201
1202
|
* Perform an Ethereum call.
|
|
1202
1203
|
*
|
|
1204
|
+
* Deprecated use `v2` version instead.
|
|
1203
1205
|
* See [`crate::Pallet::dry_run_eth_transact`]
|
|
1204
1206
|
*
|
|
1205
1207
|
* @callname: ReviveApi_eth_transact
|
|
@@ -1211,6 +1213,22 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1211
1213
|
) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
|
|
1212
1214
|
>;
|
|
1213
1215
|
|
|
1216
|
+
/**
|
|
1217
|
+
* Perform an Ethereum call.
|
|
1218
|
+
*
|
|
1219
|
+
* See [`crate::Pallet::dry_run_eth_transact`]
|
|
1220
|
+
*
|
|
1221
|
+
* @callname: ReviveApi_eth_transact_with_config
|
|
1222
|
+
* @param {PalletReviveEvmApiRpcTypesGenGenericTransaction} tx
|
|
1223
|
+
* @param {PalletReviveEvmApiRpcTypesDryRunConfig} config
|
|
1224
|
+
**/
|
|
1225
|
+
ethTransactWithConfig: GenericRuntimeApiMethod<
|
|
1226
|
+
(
|
|
1227
|
+
tx: PalletReviveEvmApiRpcTypesGenGenericTransaction,
|
|
1228
|
+
config: PalletReviveEvmApiRpcTypesDryRunConfig,
|
|
1229
|
+
) => Promise<Result<PalletRevivePrimitivesEthTransactInfo, PalletRevivePrimitivesEthTransactError>>
|
|
1230
|
+
>;
|
|
1231
|
+
|
|
1214
1232
|
/**
|
|
1215
1233
|
* Upload new code without instantiating a contract from it.
|
|
1216
1234
|
*
|