@dedot/chaintypes 0.0.1-alpha.136 → 0.0.1-alpha.138
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/moonbeam/json-rpc.d.ts +0 -8
- package/package.json +2 -2
- package/rococoAssetHub/consts.d.ts +27 -0
- package/rococoAssetHub/errors.d.ts +57 -0
- package/rococoAssetHub/events.d.ts +56 -0
- package/rococoAssetHub/query.d.ts +153 -6
- package/rococoAssetHub/runtime.d.ts +32 -13
- package/rococoAssetHub/tx.d.ts +7 -7
- package/rococoAssetHub/types.d.ts +63 -21
- package/westendAssetHub/consts.d.ts +27 -0
- package/westendAssetHub/errors.d.ts +57 -0
- package/westendAssetHub/events.d.ts +56 -0
- package/westendAssetHub/query.d.ts +153 -6
- package/westendAssetHub/runtime.d.ts +31 -13
- package/westendAssetHub/tx.d.ts +7 -7
- package/westendAssetHub/types.d.ts +63 -21
package/moonbeam/json-rpc.d.ts
CHANGED
|
@@ -41,10 +41,6 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
41
41
|
| 'childstate_getStorageEntries'
|
|
42
42
|
| 'childstate_getStorageHash'
|
|
43
43
|
| 'childstate_getStorageSize'
|
|
44
|
-
| 'debug_traceBlockByHash'
|
|
45
|
-
| 'debug_traceBlockByNumber'
|
|
46
|
-
| 'debug_traceCall'
|
|
47
|
-
| 'debug_traceTransaction'
|
|
48
44
|
| 'eth_accounts'
|
|
49
45
|
| 'eth_blockNumber'
|
|
50
46
|
| 'eth_call'
|
|
@@ -134,11 +130,7 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
|
|
|
134
130
|
| 'system_syncState'
|
|
135
131
|
| 'system_unstable_networkState'
|
|
136
132
|
| 'system_version'
|
|
137
|
-
| 'trace_filter'
|
|
138
133
|
| 'transactionWatch_unstable_submitAndWatch'
|
|
139
|
-
| 'txpool_content'
|
|
140
|
-
| 'txpool_inspect'
|
|
141
|
-
| 'txpool_status'
|
|
142
134
|
| 'web3_clientVersion'
|
|
143
135
|
| 'web3_sha3'
|
|
144
136
|
> &
|
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.138",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "285231b633cb1134ec234f5d1ee6f8166db0c57b",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
|
@@ -796,6 +796,33 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
796
796
|
**/
|
|
797
797
|
[name: string]: any;
|
|
798
798
|
};
|
|
799
|
+
/**
|
|
800
|
+
* Pallet `AssetsFreezer`'s constants
|
|
801
|
+
**/
|
|
802
|
+
assetsFreezer: {
|
|
803
|
+
/**
|
|
804
|
+
* Generic pallet constant
|
|
805
|
+
**/
|
|
806
|
+
[name: string]: any;
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* Pallet `ForeignAssetsFreezer`'s constants
|
|
810
|
+
**/
|
|
811
|
+
foreignAssetsFreezer: {
|
|
812
|
+
/**
|
|
813
|
+
* Generic pallet constant
|
|
814
|
+
**/
|
|
815
|
+
[name: string]: any;
|
|
816
|
+
};
|
|
817
|
+
/**
|
|
818
|
+
* Pallet `PoolAssetsFreezer`'s constants
|
|
819
|
+
**/
|
|
820
|
+
poolAssetsFreezer: {
|
|
821
|
+
/**
|
|
822
|
+
* Generic pallet constant
|
|
823
|
+
**/
|
|
824
|
+
[name: string]: any;
|
|
825
|
+
};
|
|
799
826
|
/**
|
|
800
827
|
* Pallet `AssetConversionMigration`'s constants
|
|
801
828
|
**/
|
|
@@ -783,6 +783,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
783
783
|
**/
|
|
784
784
|
CallbackFailed: GenericPalletError<Rv>;
|
|
785
785
|
|
|
786
|
+
/**
|
|
787
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
788
|
+
**/
|
|
789
|
+
BadAssetId: GenericPalletError<Rv>;
|
|
790
|
+
|
|
786
791
|
/**
|
|
787
792
|
* Generic pallet error
|
|
788
793
|
**/
|
|
@@ -1228,6 +1233,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1228
1233
|
**/
|
|
1229
1234
|
CallbackFailed: GenericPalletError<Rv>;
|
|
1230
1235
|
|
|
1236
|
+
/**
|
|
1237
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
1238
|
+
**/
|
|
1239
|
+
BadAssetId: GenericPalletError<Rv>;
|
|
1240
|
+
|
|
1231
1241
|
/**
|
|
1232
1242
|
* Generic pallet error
|
|
1233
1243
|
**/
|
|
@@ -1369,6 +1379,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1369
1379
|
**/
|
|
1370
1380
|
CallbackFailed: GenericPalletError<Rv>;
|
|
1371
1381
|
|
|
1382
|
+
/**
|
|
1383
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
1384
|
+
**/
|
|
1385
|
+
BadAssetId: GenericPalletError<Rv>;
|
|
1386
|
+
|
|
1372
1387
|
/**
|
|
1373
1388
|
* Generic pallet error
|
|
1374
1389
|
**/
|
|
@@ -1501,6 +1516,48 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1501
1516
|
**/
|
|
1502
1517
|
[error: string]: GenericPalletError<Rv>;
|
|
1503
1518
|
};
|
|
1519
|
+
/**
|
|
1520
|
+
* Pallet `AssetsFreezer`'s errors
|
|
1521
|
+
**/
|
|
1522
|
+
assetsFreezer: {
|
|
1523
|
+
/**
|
|
1524
|
+
* Number of freezes on an account would exceed `MaxFreezes`.
|
|
1525
|
+
**/
|
|
1526
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Generic pallet error
|
|
1530
|
+
**/
|
|
1531
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1532
|
+
};
|
|
1533
|
+
/**
|
|
1534
|
+
* Pallet `ForeignAssetsFreezer`'s errors
|
|
1535
|
+
**/
|
|
1536
|
+
foreignAssetsFreezer: {
|
|
1537
|
+
/**
|
|
1538
|
+
* Number of freezes on an account would exceed `MaxFreezes`.
|
|
1539
|
+
**/
|
|
1540
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Generic pallet error
|
|
1544
|
+
**/
|
|
1545
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1546
|
+
};
|
|
1547
|
+
/**
|
|
1548
|
+
* Pallet `PoolAssetsFreezer`'s errors
|
|
1549
|
+
**/
|
|
1550
|
+
poolAssetsFreezer: {
|
|
1551
|
+
/**
|
|
1552
|
+
* Number of freezes on an account would exceed `MaxFreezes`.
|
|
1553
|
+
**/
|
|
1554
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* Generic pallet error
|
|
1558
|
+
**/
|
|
1559
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1560
|
+
};
|
|
1504
1561
|
/**
|
|
1505
1562
|
* Pallet `AssetConversionMigration`'s errors
|
|
1506
1563
|
**/
|
|
@@ -2480,6 +2480,62 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2480
2480
|
**/
|
|
2481
2481
|
[prop: string]: GenericPalletEvent<Rv>;
|
|
2482
2482
|
};
|
|
2483
|
+
/**
|
|
2484
|
+
* Pallet `AssetsFreezer`'s events
|
|
2485
|
+
**/
|
|
2486
|
+
assetsFreezer: {
|
|
2487
|
+
Frozen: GenericPalletEvent<Rv, 'AssetsFreezer', 'Frozen', { who: AccountId32; assetId: number; amount: bigint }>;
|
|
2488
|
+
Thawed: GenericPalletEvent<Rv, 'AssetsFreezer', 'Thawed', { who: AccountId32; assetId: number; amount: bigint }>;
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* Generic pallet event
|
|
2492
|
+
**/
|
|
2493
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
2494
|
+
};
|
|
2495
|
+
/**
|
|
2496
|
+
* Pallet `ForeignAssetsFreezer`'s events
|
|
2497
|
+
**/
|
|
2498
|
+
foreignAssetsFreezer: {
|
|
2499
|
+
Frozen: GenericPalletEvent<
|
|
2500
|
+
Rv,
|
|
2501
|
+
'ForeignAssetsFreezer',
|
|
2502
|
+
'Frozen',
|
|
2503
|
+
{ who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint }
|
|
2504
|
+
>;
|
|
2505
|
+
Thawed: GenericPalletEvent<
|
|
2506
|
+
Rv,
|
|
2507
|
+
'ForeignAssetsFreezer',
|
|
2508
|
+
'Thawed',
|
|
2509
|
+
{ who: AccountId32; assetId: StagingXcmV3MultilocationMultiLocation; amount: bigint }
|
|
2510
|
+
>;
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* Generic pallet event
|
|
2514
|
+
**/
|
|
2515
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
2516
|
+
};
|
|
2517
|
+
/**
|
|
2518
|
+
* Pallet `PoolAssetsFreezer`'s events
|
|
2519
|
+
**/
|
|
2520
|
+
poolAssetsFreezer: {
|
|
2521
|
+
Frozen: GenericPalletEvent<
|
|
2522
|
+
Rv,
|
|
2523
|
+
'PoolAssetsFreezer',
|
|
2524
|
+
'Frozen',
|
|
2525
|
+
{ who: AccountId32; assetId: number; amount: bigint }
|
|
2526
|
+
>;
|
|
2527
|
+
Thawed: GenericPalletEvent<
|
|
2528
|
+
Rv,
|
|
2529
|
+
'PoolAssetsFreezer',
|
|
2530
|
+
'Thawed',
|
|
2531
|
+
{ who: AccountId32; assetId: number; amount: bigint }
|
|
2532
|
+
>;
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* Generic pallet event
|
|
2536
|
+
**/
|
|
2537
|
+
[prop: string]: GenericPalletEvent<Rv>;
|
|
2538
|
+
};
|
|
2483
2539
|
/**
|
|
2484
2540
|
* Pallet `AssetConversionMigration`'s events
|
|
2485
2541
|
**/
|
|
@@ -33,8 +33,8 @@ import type {
|
|
|
33
33
|
PalletBalancesAccountData,
|
|
34
34
|
PalletBalancesBalanceLock,
|
|
35
35
|
PalletBalancesReserveData,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
FrameSupportTokensMiscIdAmount,
|
|
37
|
+
FrameSupportTokensMiscIdAmount002,
|
|
38
38
|
PalletTransactionPaymentReleases,
|
|
39
39
|
PalletCollatorSelectionCandidateInfo,
|
|
40
40
|
AssetHubRococoRuntimeSessionKeys,
|
|
@@ -77,6 +77,7 @@ import type {
|
|
|
77
77
|
StagingXcmV3MultilocationMultiLocation,
|
|
78
78
|
PalletNftFractionalizationDetails,
|
|
79
79
|
PalletAssetConversionPoolInfo,
|
|
80
|
+
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
80
81
|
} from './types';
|
|
81
82
|
|
|
82
83
|
export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
|
|
@@ -601,17 +602,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
601
602
|
* Holds on account balances.
|
|
602
603
|
*
|
|
603
604
|
* @param {AccountId32Like} arg
|
|
604
|
-
* @param {Callback<Array<
|
|
605
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
|
|
605
606
|
**/
|
|
606
|
-
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<
|
|
607
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
|
|
607
608
|
|
|
608
609
|
/**
|
|
609
610
|
* Freeze locks on account balances.
|
|
610
611
|
*
|
|
611
612
|
* @param {AccountId32Like} arg
|
|
612
|
-
* @param {Callback<Array<
|
|
613
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
|
|
613
614
|
**/
|
|
614
|
-
freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<
|
|
615
|
+
freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
|
|
615
616
|
|
|
616
617
|
/**
|
|
617
618
|
* Generic pallet storage query
|
|
@@ -1236,6 +1237,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1236
1237
|
**/
|
|
1237
1238
|
metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
|
|
1238
1239
|
|
|
1240
|
+
/**
|
|
1241
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1242
|
+
* item has no effect.
|
|
1243
|
+
*
|
|
1244
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
1245
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
1246
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
1247
|
+
*
|
|
1248
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
1249
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
1250
|
+
*
|
|
1251
|
+
* @param {Callback<number | undefined> =} callback
|
|
1252
|
+
**/
|
|
1253
|
+
nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1254
|
+
|
|
1239
1255
|
/**
|
|
1240
1256
|
* Generic pallet storage query
|
|
1241
1257
|
**/
|
|
@@ -1570,6 +1586,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1570
1586
|
StagingXcmV3MultilocationMultiLocation
|
|
1571
1587
|
>;
|
|
1572
1588
|
|
|
1589
|
+
/**
|
|
1590
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1591
|
+
* item has no effect.
|
|
1592
|
+
*
|
|
1593
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
1594
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
1595
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
1596
|
+
*
|
|
1597
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
1598
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
1599
|
+
*
|
|
1600
|
+
* @param {Callback<StagingXcmV3MultilocationMultiLocation | undefined> =} callback
|
|
1601
|
+
**/
|
|
1602
|
+
nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV3MultilocationMultiLocation | undefined>;
|
|
1603
|
+
|
|
1573
1604
|
/**
|
|
1574
1605
|
* Generic pallet storage query
|
|
1575
1606
|
**/
|
|
@@ -1642,6 +1673,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1642
1673
|
**/
|
|
1643
1674
|
metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
|
|
1644
1675
|
|
|
1676
|
+
/**
|
|
1677
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
1678
|
+
* item has no effect.
|
|
1679
|
+
*
|
|
1680
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
1681
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
1682
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
1683
|
+
*
|
|
1684
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
1685
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
1686
|
+
*
|
|
1687
|
+
* @param {Callback<number | undefined> =} callback
|
|
1688
|
+
**/
|
|
1689
|
+
nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1690
|
+
|
|
1645
1691
|
/**
|
|
1646
1692
|
* Generic pallet storage query
|
|
1647
1693
|
**/
|
|
@@ -1674,6 +1720,107 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1674
1720
|
**/
|
|
1675
1721
|
nextPoolAssetId: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1676
1722
|
|
|
1723
|
+
/**
|
|
1724
|
+
* Generic pallet storage query
|
|
1725
|
+
**/
|
|
1726
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1727
|
+
};
|
|
1728
|
+
/**
|
|
1729
|
+
* Pallet `AssetsFreezer`'s storage queries
|
|
1730
|
+
**/
|
|
1731
|
+
assetsFreezer: {
|
|
1732
|
+
/**
|
|
1733
|
+
* A map that stores freezes applied on an account for a given AssetId.
|
|
1734
|
+
*
|
|
1735
|
+
* @param {[number, AccountId32Like]} arg
|
|
1736
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
1737
|
+
**/
|
|
1738
|
+
freezes: GenericStorageQuery<
|
|
1739
|
+
Rv,
|
|
1740
|
+
(arg: [number, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
1741
|
+
[number, AccountId32]
|
|
1742
|
+
>;
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* A map that stores the current total frozen balance for every account on a given AssetId.
|
|
1746
|
+
*
|
|
1747
|
+
* @param {[number, AccountId32Like]} arg
|
|
1748
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
1749
|
+
**/
|
|
1750
|
+
frozenBalances: GenericStorageQuery<
|
|
1751
|
+
Rv,
|
|
1752
|
+
(arg: [number, AccountId32Like]) => bigint | undefined,
|
|
1753
|
+
[number, AccountId32]
|
|
1754
|
+
>;
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* Generic pallet storage query
|
|
1758
|
+
**/
|
|
1759
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1760
|
+
};
|
|
1761
|
+
/**
|
|
1762
|
+
* Pallet `ForeignAssetsFreezer`'s storage queries
|
|
1763
|
+
**/
|
|
1764
|
+
foreignAssetsFreezer: {
|
|
1765
|
+
/**
|
|
1766
|
+
* A map that stores freezes applied on an account for a given AssetId.
|
|
1767
|
+
*
|
|
1768
|
+
* @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
|
|
1769
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
1770
|
+
**/
|
|
1771
|
+
freezes: GenericStorageQuery<
|
|
1772
|
+
Rv,
|
|
1773
|
+
(
|
|
1774
|
+
arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like],
|
|
1775
|
+
) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
1776
|
+
[StagingXcmV3MultilocationMultiLocation, AccountId32]
|
|
1777
|
+
>;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* A map that stores the current total frozen balance for every account on a given AssetId.
|
|
1781
|
+
*
|
|
1782
|
+
* @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
|
|
1783
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
1784
|
+
**/
|
|
1785
|
+
frozenBalances: GenericStorageQuery<
|
|
1786
|
+
Rv,
|
|
1787
|
+
(arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => bigint | undefined,
|
|
1788
|
+
[StagingXcmV3MultilocationMultiLocation, AccountId32]
|
|
1789
|
+
>;
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* Generic pallet storage query
|
|
1793
|
+
**/
|
|
1794
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1795
|
+
};
|
|
1796
|
+
/**
|
|
1797
|
+
* Pallet `PoolAssetsFreezer`'s storage queries
|
|
1798
|
+
**/
|
|
1799
|
+
poolAssetsFreezer: {
|
|
1800
|
+
/**
|
|
1801
|
+
* A map that stores freezes applied on an account for a given AssetId.
|
|
1802
|
+
*
|
|
1803
|
+
* @param {[number, AccountId32Like]} arg
|
|
1804
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
1805
|
+
**/
|
|
1806
|
+
freezes: GenericStorageQuery<
|
|
1807
|
+
Rv,
|
|
1808
|
+
(arg: [number, AccountId32Like]) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
1809
|
+
[number, AccountId32]
|
|
1810
|
+
>;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* A map that stores the current total frozen balance for every account on a given AssetId.
|
|
1814
|
+
*
|
|
1815
|
+
* @param {[number, AccountId32Like]} arg
|
|
1816
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
1817
|
+
**/
|
|
1818
|
+
frozenBalances: GenericStorageQuery<
|
|
1819
|
+
Rv,
|
|
1820
|
+
(arg: [number, AccountId32Like]) => bigint | undefined,
|
|
1821
|
+
[number, AccountId32]
|
|
1822
|
+
>;
|
|
1823
|
+
|
|
1677
1824
|
/**
|
|
1678
1825
|
* Generic pallet storage query
|
|
1679
1826
|
**/
|
|
@@ -12,6 +12,7 @@ import type {
|
|
|
12
12
|
Bytes,
|
|
13
13
|
BytesLike,
|
|
14
14
|
AccountId32Like,
|
|
15
|
+
AccountId32,
|
|
15
16
|
} from 'dedot/codecs';
|
|
16
17
|
import type {
|
|
17
18
|
SpConsensusSlotsSlotDuration,
|
|
@@ -34,13 +35,14 @@ import type {
|
|
|
34
35
|
XcmVersionedAssets,
|
|
35
36
|
AssetsCommonRuntimeApiFungiblesAccessError,
|
|
36
37
|
XcmVersionedAssetId,
|
|
37
|
-
|
|
38
|
+
XcmRuntimeApisFeesError,
|
|
38
39
|
XcmVersionedXcm,
|
|
39
40
|
XcmVersionedLocation,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
XcmRuntimeApisDryRunCallDryRunEffects,
|
|
42
|
+
XcmRuntimeApisDryRunError,
|
|
42
43
|
AssetHubRococoRuntimeOriginCaller,
|
|
43
|
-
|
|
44
|
+
XcmRuntimeApisDryRunXcmDryRunEffects,
|
|
45
|
+
XcmRuntimeApisConversionsError,
|
|
44
46
|
CumulusPrimitivesCoreCollationInfo,
|
|
45
47
|
} from './types';
|
|
46
48
|
|
|
@@ -524,7 +526,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
524
526
|
**/
|
|
525
527
|
queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
|
|
526
528
|
Rv,
|
|
527
|
-
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>,
|
|
529
|
+
(xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
|
|
528
530
|
>;
|
|
529
531
|
|
|
530
532
|
/**
|
|
@@ -539,7 +541,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
539
541
|
**/
|
|
540
542
|
queryXcmWeight: GenericRuntimeApiMethod<
|
|
541
543
|
Rv,
|
|
542
|
-
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight,
|
|
544
|
+
(message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
|
|
543
545
|
>;
|
|
544
546
|
|
|
545
547
|
/**
|
|
@@ -556,10 +558,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
556
558
|
**/
|
|
557
559
|
queryWeightToAssetFee: GenericRuntimeApiMethod<
|
|
558
560
|
Rv,
|
|
559
|
-
(
|
|
560
|
-
weight: SpWeightsWeightV2Weight,
|
|
561
|
-
asset: XcmVersionedAssetId,
|
|
562
|
-
) => Promise<Result<bigint, XcmFeePaymentRuntimeApiFeesError>>
|
|
561
|
+
(weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
|
|
563
562
|
>;
|
|
564
563
|
|
|
565
564
|
/**
|
|
@@ -581,7 +580,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
581
580
|
(
|
|
582
581
|
destination: XcmVersionedLocation,
|
|
583
582
|
message: XcmVersionedXcm,
|
|
584
|
-
) => Promise<Result<XcmVersionedAssets,
|
|
583
|
+
) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
|
|
585
584
|
>;
|
|
586
585
|
|
|
587
586
|
/**
|
|
@@ -605,7 +604,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
605
604
|
(
|
|
606
605
|
origin: AssetHubRococoRuntimeOriginCaller,
|
|
607
606
|
call: AssetHubRococoRuntimeRuntimeCallLike,
|
|
608
|
-
) => Promise<Result<
|
|
607
|
+
) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
609
608
|
>;
|
|
610
609
|
|
|
611
610
|
/**
|
|
@@ -620,7 +619,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
620
619
|
(
|
|
621
620
|
originLocation: XcmVersionedLocation,
|
|
622
621
|
xcm: XcmVersionedXcm,
|
|
623
|
-
) => Promise<Result<
|
|
622
|
+
) => Promise<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
623
|
+
>;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Generic runtime api call
|
|
627
|
+
**/
|
|
628
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
629
|
+
};
|
|
630
|
+
/**
|
|
631
|
+
* @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
|
|
632
|
+
**/
|
|
633
|
+
locationToAccountApi: {
|
|
634
|
+
/**
|
|
635
|
+
* Converts `Location` to `AccountId`.
|
|
636
|
+
*
|
|
637
|
+
* @callname: LocationToAccountApi_convert_location
|
|
638
|
+
* @param {XcmVersionedLocation} location
|
|
639
|
+
**/
|
|
640
|
+
convertLocation: GenericRuntimeApiMethod<
|
|
641
|
+
Rv,
|
|
642
|
+
(location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
|
|
624
643
|
>;
|
|
625
644
|
|
|
626
645
|
/**
|
package/rococoAssetHub/tx.d.ts
CHANGED
|
@@ -1687,7 +1687,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1687
1687
|
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
1688
1688
|
* fee on the `dest` (and possibly reserve) chains.
|
|
1689
1689
|
* - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
|
|
1690
|
-
* - `remote_fees_id`: One of the included `assets` to be
|
|
1690
|
+
* - `remote_fees_id`: One of the included `assets` to be used to pay fees.
|
|
1691
1691
|
* - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
|
|
1692
1692
|
* - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
|
|
1693
1693
|
* transfer, which also determines what happens to the assets on the destination chain.
|
|
@@ -2665,7 +2665,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2665
2665
|
*
|
|
2666
2666
|
* Parameters:
|
|
2667
2667
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
2668
|
-
* an existing asset.
|
|
2668
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
2669
2669
|
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
2670
2670
|
* member of the asset class's admin team.
|
|
2671
2671
|
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
@@ -2707,7 +2707,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
2707
2707
|
* Unlike `create`, no funds are reserved.
|
|
2708
2708
|
*
|
|
2709
2709
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
2710
|
-
* an existing asset.
|
|
2710
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
2711
2711
|
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
2712
2712
|
* over this asset, but may later change and configure the permissions using
|
|
2713
2713
|
* `transfer_ownership` and `set_team`.
|
|
@@ -6287,7 +6287,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6287
6287
|
*
|
|
6288
6288
|
* Parameters:
|
|
6289
6289
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
6290
|
-
* an existing asset.
|
|
6290
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
6291
6291
|
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
6292
6292
|
* member of the asset class's admin team.
|
|
6293
6293
|
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
@@ -6329,7 +6329,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
6329
6329
|
* Unlike `create`, no funds are reserved.
|
|
6330
6330
|
*
|
|
6331
6331
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
6332
|
-
* an existing asset.
|
|
6332
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
6333
6333
|
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
6334
6334
|
* over this asset, but may later change and configure the permissions using
|
|
6335
6335
|
* `transfer_ownership` and `set_team`.
|
|
@@ -7584,7 +7584,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7584
7584
|
*
|
|
7585
7585
|
* Parameters:
|
|
7586
7586
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
7587
|
-
* an existing asset.
|
|
7587
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
7588
7588
|
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
7589
7589
|
* member of the asset class's admin team.
|
|
7590
7590
|
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
@@ -7626,7 +7626,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7626
7626
|
* Unlike `create`, no funds are reserved.
|
|
7627
7627
|
*
|
|
7628
7628
|
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
7629
|
-
* an existing asset.
|
|
7629
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
7630
7630
|
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
7631
7631
|
* over this asset, but may later change and configure the permissions using
|
|
7632
7632
|
* `transfer_ownership` and `set_team`.
|