@dedot/chaintypes 0.35.0 → 0.37.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/kusama/index.d.ts +1 -1
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/events.d.ts +34 -76
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +17 -25
- package/kusama-asset-hub/runtime.d.ts +12 -15
- package/kusama-asset-hub/tx.d.ts +124 -140
- package/kusama-asset-hub/types.d.ts +183 -295
- package/package.json +2 -2
- package/paseo/consts.d.ts +9 -0
- package/paseo/events.d.ts +38 -0
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +23 -0
- package/paseo/runtime.d.ts +20 -0
- package/paseo/tx.d.ts +32 -0
- package/paseo/types.d.ts +99 -0
- package/polkadot/index.d.ts +1 -1
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/events.d.ts +34 -76
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +17 -25
- package/polkadot-asset-hub/runtime.d.ts +12 -15
- package/polkadot-asset-hub/tx.d.ts +124 -140
- package/polkadot-asset-hub/types.d.ts +183 -295
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/events.d.ts +64 -64
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +26 -26
- package/westend-asset-hub/runtime.d.ts +12 -12
- package/westend-asset-hub/tx.d.ts +136 -136
- package/westend-asset-hub/types.d.ts +462 -426
|
@@ -5,9 +5,8 @@ import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result
|
|
|
5
5
|
import type {
|
|
6
6
|
SpWeightsWeightV2Weight,
|
|
7
7
|
FrameSupportTokensMiscBalanceStatus,
|
|
8
|
-
StagingXcmV3MultilocationMultiLocation,
|
|
9
|
-
StagingXcmV4TraitsOutcome,
|
|
10
8
|
StagingXcmV4Location,
|
|
9
|
+
StagingXcmV4TraitsOutcome,
|
|
11
10
|
StagingXcmV4Xcm,
|
|
12
11
|
StagingXcmV4Response,
|
|
13
12
|
XcmVersionedAssets,
|
|
@@ -285,7 +284,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
285
284
|
Rv,
|
|
286
285
|
'AssetTxPayment',
|
|
287
286
|
'AssetTxFeePaid',
|
|
288
|
-
{ who: AccountId32; actualFee: bigint; tip: bigint; assetId:
|
|
287
|
+
{ who: AccountId32; actualFee: bigint; tip: bigint; assetId: StagingXcmV4Location }
|
|
289
288
|
>;
|
|
290
289
|
|
|
291
290
|
/**
|
|
@@ -1786,7 +1785,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1786
1785
|
Rv,
|
|
1787
1786
|
'ForeignAssets',
|
|
1788
1787
|
'Created',
|
|
1789
|
-
{ assetId:
|
|
1788
|
+
{ assetId: StagingXcmV4Location; creator: AccountId32; owner: AccountId32 }
|
|
1790
1789
|
>;
|
|
1791
1790
|
|
|
1792
1791
|
/**
|
|
@@ -1796,7 +1795,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1796
1795
|
Rv,
|
|
1797
1796
|
'ForeignAssets',
|
|
1798
1797
|
'Issued',
|
|
1799
|
-
{ assetId:
|
|
1798
|
+
{ assetId: StagingXcmV4Location; owner: AccountId32; amount: bigint }
|
|
1800
1799
|
>;
|
|
1801
1800
|
|
|
1802
1801
|
/**
|
|
@@ -1806,7 +1805,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1806
1805
|
Rv,
|
|
1807
1806
|
'ForeignAssets',
|
|
1808
1807
|
'Transferred',
|
|
1809
|
-
{ assetId:
|
|
1808
|
+
{ assetId: StagingXcmV4Location; from: AccountId32; to: AccountId32; amount: bigint }
|
|
1810
1809
|
>;
|
|
1811
1810
|
|
|
1812
1811
|
/**
|
|
@@ -1816,7 +1815,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1816
1815
|
Rv,
|
|
1817
1816
|
'ForeignAssets',
|
|
1818
1817
|
'Burned',
|
|
1819
|
-
{ assetId:
|
|
1818
|
+
{ assetId: StagingXcmV4Location; owner: AccountId32; balance: bigint }
|
|
1820
1819
|
>;
|
|
1821
1820
|
|
|
1822
1821
|
/**
|
|
@@ -1826,7 +1825,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1826
1825
|
Rv,
|
|
1827
1826
|
'ForeignAssets',
|
|
1828
1827
|
'TeamChanged',
|
|
1829
|
-
{ assetId:
|
|
1828
|
+
{ assetId: StagingXcmV4Location; issuer: AccountId32; admin: AccountId32; freezer: AccountId32 }
|
|
1830
1829
|
>;
|
|
1831
1830
|
|
|
1832
1831
|
/**
|
|
@@ -1836,48 +1835,28 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1836
1835
|
Rv,
|
|
1837
1836
|
'ForeignAssets',
|
|
1838
1837
|
'OwnerChanged',
|
|
1839
|
-
{ assetId:
|
|
1838
|
+
{ assetId: StagingXcmV4Location; owner: AccountId32 }
|
|
1840
1839
|
>;
|
|
1841
1840
|
|
|
1842
1841
|
/**
|
|
1843
1842
|
* Some account `who` was frozen.
|
|
1844
1843
|
**/
|
|
1845
|
-
Frozen: GenericPalletEvent<
|
|
1846
|
-
Rv,
|
|
1847
|
-
'ForeignAssets',
|
|
1848
|
-
'Frozen',
|
|
1849
|
-
{ assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 }
|
|
1850
|
-
>;
|
|
1844
|
+
Frozen: GenericPalletEvent<Rv, 'ForeignAssets', 'Frozen', { assetId: StagingXcmV4Location; who: AccountId32 }>;
|
|
1851
1845
|
|
|
1852
1846
|
/**
|
|
1853
1847
|
* Some account `who` was thawed.
|
|
1854
1848
|
**/
|
|
1855
|
-
Thawed: GenericPalletEvent<
|
|
1856
|
-
Rv,
|
|
1857
|
-
'ForeignAssets',
|
|
1858
|
-
'Thawed',
|
|
1859
|
-
{ assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 }
|
|
1860
|
-
>;
|
|
1849
|
+
Thawed: GenericPalletEvent<Rv, 'ForeignAssets', 'Thawed', { assetId: StagingXcmV4Location; who: AccountId32 }>;
|
|
1861
1850
|
|
|
1862
1851
|
/**
|
|
1863
1852
|
* Some asset `asset_id` was frozen.
|
|
1864
1853
|
**/
|
|
1865
|
-
AssetFrozen: GenericPalletEvent<
|
|
1866
|
-
Rv,
|
|
1867
|
-
'ForeignAssets',
|
|
1868
|
-
'AssetFrozen',
|
|
1869
|
-
{ assetId: StagingXcmV3MultilocationMultiLocation }
|
|
1870
|
-
>;
|
|
1854
|
+
AssetFrozen: GenericPalletEvent<Rv, 'ForeignAssets', 'AssetFrozen', { assetId: StagingXcmV4Location }>;
|
|
1871
1855
|
|
|
1872
1856
|
/**
|
|
1873
1857
|
* Some asset `asset_id` was thawed.
|
|
1874
1858
|
**/
|
|
1875
|
-
AssetThawed: GenericPalletEvent<
|
|
1876
|
-
Rv,
|
|
1877
|
-
'ForeignAssets',
|
|
1878
|
-
'AssetThawed',
|
|
1879
|
-
{ assetId: StagingXcmV3MultilocationMultiLocation }
|
|
1880
|
-
>;
|
|
1859
|
+
AssetThawed: GenericPalletEvent<Rv, 'ForeignAssets', 'AssetThawed', { assetId: StagingXcmV4Location }>;
|
|
1881
1860
|
|
|
1882
1861
|
/**
|
|
1883
1862
|
* Accounts were destroyed for given asset.
|
|
@@ -1886,7 +1865,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1886
1865
|
Rv,
|
|
1887
1866
|
'ForeignAssets',
|
|
1888
1867
|
'AccountsDestroyed',
|
|
1889
|
-
{ assetId:
|
|
1868
|
+
{ assetId: StagingXcmV4Location; accountsDestroyed: number; accountsRemaining: number }
|
|
1890
1869
|
>;
|
|
1891
1870
|
|
|
1892
1871
|
/**
|
|
@@ -1896,7 +1875,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1896
1875
|
Rv,
|
|
1897
1876
|
'ForeignAssets',
|
|
1898
1877
|
'ApprovalsDestroyed',
|
|
1899
|
-
{ assetId:
|
|
1878
|
+
{ assetId: StagingXcmV4Location; approvalsDestroyed: number; approvalsRemaining: number }
|
|
1900
1879
|
>;
|
|
1901
1880
|
|
|
1902
1881
|
/**
|
|
@@ -1906,18 +1885,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1906
1885
|
Rv,
|
|
1907
1886
|
'ForeignAssets',
|
|
1908
1887
|
'DestructionStarted',
|
|
1909
|
-
{ assetId:
|
|
1888
|
+
{ assetId: StagingXcmV4Location }
|
|
1910
1889
|
>;
|
|
1911
1890
|
|
|
1912
1891
|
/**
|
|
1913
1892
|
* An asset class was destroyed.
|
|
1914
1893
|
**/
|
|
1915
|
-
Destroyed: GenericPalletEvent<
|
|
1916
|
-
Rv,
|
|
1917
|
-
'ForeignAssets',
|
|
1918
|
-
'Destroyed',
|
|
1919
|
-
{ assetId: StagingXcmV3MultilocationMultiLocation }
|
|
1920
|
-
>;
|
|
1894
|
+
Destroyed: GenericPalletEvent<Rv, 'ForeignAssets', 'Destroyed', { assetId: StagingXcmV4Location }>;
|
|
1921
1895
|
|
|
1922
1896
|
/**
|
|
1923
1897
|
* Some asset class was force-created.
|
|
@@ -1926,7 +1900,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1926
1900
|
Rv,
|
|
1927
1901
|
'ForeignAssets',
|
|
1928
1902
|
'ForceCreated',
|
|
1929
|
-
{ assetId:
|
|
1903
|
+
{ assetId: StagingXcmV4Location; owner: AccountId32 }
|
|
1930
1904
|
>;
|
|
1931
1905
|
|
|
1932
1906
|
/**
|
|
@@ -1936,24 +1910,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1936
1910
|
Rv,
|
|
1937
1911
|
'ForeignAssets',
|
|
1938
1912
|
'MetadataSet',
|
|
1939
|
-
{
|
|
1940
|
-
assetId: StagingXcmV3MultilocationMultiLocation;
|
|
1941
|
-
name: Bytes;
|
|
1942
|
-
symbol: Bytes;
|
|
1943
|
-
decimals: number;
|
|
1944
|
-
isFrozen: boolean;
|
|
1945
|
-
}
|
|
1913
|
+
{ assetId: StagingXcmV4Location; name: Bytes; symbol: Bytes; decimals: number; isFrozen: boolean }
|
|
1946
1914
|
>;
|
|
1947
1915
|
|
|
1948
1916
|
/**
|
|
1949
1917
|
* Metadata has been cleared for an asset.
|
|
1950
1918
|
**/
|
|
1951
|
-
MetadataCleared: GenericPalletEvent<
|
|
1952
|
-
Rv,
|
|
1953
|
-
'ForeignAssets',
|
|
1954
|
-
'MetadataCleared',
|
|
1955
|
-
{ assetId: StagingXcmV3MultilocationMultiLocation }
|
|
1956
|
-
>;
|
|
1919
|
+
MetadataCleared: GenericPalletEvent<Rv, 'ForeignAssets', 'MetadataCleared', { assetId: StagingXcmV4Location }>;
|
|
1957
1920
|
|
|
1958
1921
|
/**
|
|
1959
1922
|
* (Additional) funds have been approved for transfer to a destination account.
|
|
@@ -1962,7 +1925,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1962
1925
|
Rv,
|
|
1963
1926
|
'ForeignAssets',
|
|
1964
1927
|
'ApprovedTransfer',
|
|
1965
|
-
{ assetId:
|
|
1928
|
+
{ assetId: StagingXcmV4Location; source: AccountId32; delegate: AccountId32; amount: bigint }
|
|
1966
1929
|
>;
|
|
1967
1930
|
|
|
1968
1931
|
/**
|
|
@@ -1972,7 +1935,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1972
1935
|
Rv,
|
|
1973
1936
|
'ForeignAssets',
|
|
1974
1937
|
'ApprovalCancelled',
|
|
1975
|
-
{ assetId:
|
|
1938
|
+
{ assetId: StagingXcmV4Location; owner: AccountId32; delegate: AccountId32 }
|
|
1976
1939
|
>;
|
|
1977
1940
|
|
|
1978
1941
|
/**
|
|
@@ -1984,7 +1947,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1984
1947
|
'ForeignAssets',
|
|
1985
1948
|
'TransferredApproved',
|
|
1986
1949
|
{
|
|
1987
|
-
assetId:
|
|
1950
|
+
assetId: StagingXcmV4Location;
|
|
1988
1951
|
owner: AccountId32;
|
|
1989
1952
|
delegate: AccountId32;
|
|
1990
1953
|
destination: AccountId32;
|
|
@@ -1999,7 +1962,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1999
1962
|
Rv,
|
|
2000
1963
|
'ForeignAssets',
|
|
2001
1964
|
'AssetStatusChanged',
|
|
2002
|
-
{ assetId:
|
|
1965
|
+
{ assetId: StagingXcmV4Location }
|
|
2003
1966
|
>;
|
|
2004
1967
|
|
|
2005
1968
|
/**
|
|
@@ -2009,7 +1972,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2009
1972
|
Rv,
|
|
2010
1973
|
'ForeignAssets',
|
|
2011
1974
|
'AssetMinBalanceChanged',
|
|
2012
|
-
{ assetId:
|
|
1975
|
+
{ assetId: StagingXcmV4Location; newMinBalance: bigint }
|
|
2013
1976
|
>;
|
|
2014
1977
|
|
|
2015
1978
|
/**
|
|
@@ -2019,18 +1982,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2019
1982
|
Rv,
|
|
2020
1983
|
'ForeignAssets',
|
|
2021
1984
|
'Touched',
|
|
2022
|
-
{ assetId:
|
|
1985
|
+
{ assetId: StagingXcmV4Location; who: AccountId32; depositor: AccountId32 }
|
|
2023
1986
|
>;
|
|
2024
1987
|
|
|
2025
1988
|
/**
|
|
2026
1989
|
* Some account `who` was blocked.
|
|
2027
1990
|
**/
|
|
2028
|
-
Blocked: GenericPalletEvent<
|
|
2029
|
-
Rv,
|
|
2030
|
-
'ForeignAssets',
|
|
2031
|
-
'Blocked',
|
|
2032
|
-
{ assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 }
|
|
2033
|
-
>;
|
|
1991
|
+
Blocked: GenericPalletEvent<Rv, 'ForeignAssets', 'Blocked', { assetId: StagingXcmV4Location; who: AccountId32 }>;
|
|
2034
1992
|
|
|
2035
1993
|
/**
|
|
2036
1994
|
* Some assets were deposited (e.g. for transaction fees).
|
|
@@ -2039,7 +1997,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2039
1997
|
Rv,
|
|
2040
1998
|
'ForeignAssets',
|
|
2041
1999
|
'Deposited',
|
|
2042
|
-
{ assetId:
|
|
2000
|
+
{ assetId: StagingXcmV4Location; who: AccountId32; amount: bigint }
|
|
2043
2001
|
>;
|
|
2044
2002
|
|
|
2045
2003
|
/**
|
|
@@ -2049,7 +2007,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2049
2007
|
Rv,
|
|
2050
2008
|
'ForeignAssets',
|
|
2051
2009
|
'Withdrawn',
|
|
2052
|
-
{ assetId:
|
|
2010
|
+
{ assetId: StagingXcmV4Location; who: AccountId32; amount: bigint }
|
|
2053
2011
|
>;
|
|
2054
2012
|
|
|
2055
2013
|
/**
|
|
@@ -2273,7 +2231,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2273
2231
|
* The pool id associated with the pool. Note that the order of the assets may not be
|
|
2274
2232
|
* the same as the order specified in the create pool extrinsic.
|
|
2275
2233
|
**/
|
|
2276
|
-
poolId: [
|
|
2234
|
+
poolId: [StagingXcmV4Location, StagingXcmV4Location];
|
|
2277
2235
|
|
|
2278
2236
|
/**
|
|
2279
2237
|
* The account ID of the pool.
|
|
@@ -2309,7 +2267,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2309
2267
|
/**
|
|
2310
2268
|
* The pool id of the pool that the liquidity was added to.
|
|
2311
2269
|
**/
|
|
2312
|
-
poolId: [
|
|
2270
|
+
poolId: [StagingXcmV4Location, StagingXcmV4Location];
|
|
2313
2271
|
|
|
2314
2272
|
/**
|
|
2315
2273
|
* The amount of the first asset that was added to the pool.
|
|
@@ -2354,7 +2312,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2354
2312
|
/**
|
|
2355
2313
|
* The pool id that the liquidity was removed from.
|
|
2356
2314
|
**/
|
|
2357
|
-
poolId: [
|
|
2315
|
+
poolId: [StagingXcmV4Location, StagingXcmV4Location];
|
|
2358
2316
|
|
|
2359
2317
|
/**
|
|
2360
2318
|
* The amount of the first asset that was removed from the pool.
|
|
@@ -2416,7 +2374,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2416
2374
|
* The route of asset IDs with amounts that the swap went through.
|
|
2417
2375
|
* E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out)
|
|
2418
2376
|
**/
|
|
2419
|
-
path: Array<[
|
|
2377
|
+
path: Array<[StagingXcmV4Location, bigint]>;
|
|
2420
2378
|
}
|
|
2421
2379
|
>;
|
|
2422
2380
|
|
|
@@ -2442,7 +2400,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2442
2400
|
* The route of asset IDs with amounts that the swap went through.
|
|
2443
2401
|
* E.g. (A, amount_in) -> (Dot, amount_out) -> (B, amount_out)
|
|
2444
2402
|
**/
|
|
2445
|
-
path: Array<[
|
|
2403
|
+
path: Array<[StagingXcmV4Location, bigint]>;
|
|
2446
2404
|
}
|
|
2447
2405
|
>;
|
|
2448
2406
|
|
|
@@ -2457,7 +2415,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2457
2415
|
/**
|
|
2458
2416
|
* The ID of the pool.
|
|
2459
2417
|
**/
|
|
2460
|
-
poolId: [
|
|
2418
|
+
poolId: [StagingXcmV4Location, StagingXcmV4Location];
|
|
2461
2419
|
|
|
2462
2420
|
/**
|
|
2463
2421
|
* The account initiating the touch.
|
|
@@ -23,7 +23,7 @@ export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: PolkadotAssetHubApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1003004
|
|
27
27
|
**/
|
|
28
28
|
export interface PolkadotAssetHubApi {
|
|
29
29
|
legacy: VersionedPolkadotAssetHubApi<RpcLegacy>;
|
|
@@ -76,7 +76,7 @@ import type {
|
|
|
76
76
|
PalletNftsPendingSwap,
|
|
77
77
|
PalletNftsCollectionConfig,
|
|
78
78
|
PalletNftsItemConfig,
|
|
79
|
-
|
|
79
|
+
StagingXcmV4Location,
|
|
80
80
|
PalletAssetConversionPoolInfo,
|
|
81
81
|
} from './types';
|
|
82
82
|
|
|
@@ -1567,25 +1567,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Details of an asset.
|
|
1569
1569
|
*
|
|
1570
|
-
* @param {
|
|
1570
|
+
* @param {StagingXcmV4Location} arg
|
|
1571
1571
|
* @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
|
|
1572
1572
|
**/
|
|
1573
1573
|
asset: GenericStorageQuery<
|
|
1574
1574
|
Rv,
|
|
1575
|
-
(arg:
|
|
1576
|
-
|
|
1575
|
+
(arg: StagingXcmV4Location) => PalletAssetsAssetDetails | undefined,
|
|
1576
|
+
StagingXcmV4Location
|
|
1577
1577
|
>;
|
|
1578
1578
|
|
|
1579
1579
|
/**
|
|
1580
1580
|
* The holdings of a specific account for a specific asset.
|
|
1581
1581
|
*
|
|
1582
|
-
* @param {[
|
|
1582
|
+
* @param {[StagingXcmV4Location, AccountId32Like]} arg
|
|
1583
1583
|
* @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
|
|
1584
1584
|
**/
|
|
1585
1585
|
account: GenericStorageQuery<
|
|
1586
1586
|
Rv,
|
|
1587
|
-
(arg: [
|
|
1588
|
-
[
|
|
1587
|
+
(arg: [StagingXcmV4Location, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
|
|
1588
|
+
[StagingXcmV4Location, AccountId32]
|
|
1589
1589
|
>;
|
|
1590
1590
|
|
|
1591
1591
|
/**
|
|
@@ -1593,28 +1593,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1593
1593
|
* is the amount of `T::Currency` reserved for storing this.
|
|
1594
1594
|
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
1595
1595
|
*
|
|
1596
|
-
* @param {[
|
|
1596
|
+
* @param {[StagingXcmV4Location, AccountId32Like, AccountId32Like]} arg
|
|
1597
1597
|
* @param {Callback<PalletAssetsApproval | undefined> =} callback
|
|
1598
1598
|
**/
|
|
1599
1599
|
approvals: GenericStorageQuery<
|
|
1600
1600
|
Rv,
|
|
1601
|
-
(
|
|
1602
|
-
|
|
1603
|
-
) => PalletAssetsApproval | undefined,
|
|
1604
|
-
[StagingXcmV3MultilocationMultiLocation, AccountId32, AccountId32]
|
|
1601
|
+
(arg: [StagingXcmV4Location, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
|
|
1602
|
+
[StagingXcmV4Location, AccountId32, AccountId32]
|
|
1605
1603
|
>;
|
|
1606
1604
|
|
|
1607
1605
|
/**
|
|
1608
1606
|
* Metadata of an asset.
|
|
1609
1607
|
*
|
|
1610
|
-
* @param {
|
|
1608
|
+
* @param {StagingXcmV4Location} arg
|
|
1611
1609
|
* @param {Callback<PalletAssetsAssetMetadata> =} callback
|
|
1612
1610
|
**/
|
|
1613
|
-
metadata: GenericStorageQuery<
|
|
1614
|
-
Rv,
|
|
1615
|
-
(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata,
|
|
1616
|
-
StagingXcmV3MultilocationMultiLocation
|
|
1617
|
-
>;
|
|
1611
|
+
metadata: GenericStorageQuery<Rv, (arg: StagingXcmV4Location) => PalletAssetsAssetMetadata, StagingXcmV4Location>;
|
|
1618
1612
|
|
|
1619
1613
|
/**
|
|
1620
1614
|
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
@@ -1627,9 +1621,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1627
1621
|
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
1628
1622
|
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
1629
1623
|
*
|
|
1630
|
-
* @param {Callback<
|
|
1624
|
+
* @param {Callback<StagingXcmV4Location | undefined> =} callback
|
|
1631
1625
|
**/
|
|
1632
|
-
nextAssetId: GenericStorageQuery<Rv, () =>
|
|
1626
|
+
nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV4Location | undefined>;
|
|
1633
1627
|
|
|
1634
1628
|
/**
|
|
1635
1629
|
* Generic pallet storage query
|
|
@@ -1710,15 +1704,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1710
1704
|
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
|
1711
1705
|
* created rather than people sending tokens directly to a pool's public account.
|
|
1712
1706
|
*
|
|
1713
|
-
* @param {[
|
|
1707
|
+
* @param {[StagingXcmV4Location, StagingXcmV4Location]} arg
|
|
1714
1708
|
* @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
|
|
1715
1709
|
**/
|
|
1716
1710
|
pools: GenericStorageQuery<
|
|
1717
1711
|
Rv,
|
|
1718
|
-
(
|
|
1719
|
-
|
|
1720
|
-
) => PalletAssetConversionPoolInfo | undefined,
|
|
1721
|
-
[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]
|
|
1712
|
+
(arg: [StagingXcmV4Location, StagingXcmV4Location]) => PalletAssetConversionPoolInfo | undefined,
|
|
1713
|
+
[StagingXcmV4Location, StagingXcmV4Location]
|
|
1722
1714
|
>;
|
|
1723
1715
|
|
|
1724
1716
|
/**
|
|
@@ -43,7 +43,7 @@ import type {
|
|
|
43
43
|
XcmRuntimeApisConversionsError,
|
|
44
44
|
AssetsCommonRuntimeApiFungiblesAccessError,
|
|
45
45
|
CumulusPrimitivesCoreCollationInfo,
|
|
46
|
-
|
|
46
|
+
StagingXcmV4Location,
|
|
47
47
|
} from './types';
|
|
48
48
|
|
|
49
49
|
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
@@ -669,16 +669,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
669
669
|
* (Use `amount_in_max` to control slippage.)
|
|
670
670
|
*
|
|
671
671
|
* @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
|
|
672
|
-
* @param {
|
|
673
|
-
* @param {
|
|
672
|
+
* @param {StagingXcmV4Location} asset1
|
|
673
|
+
* @param {StagingXcmV4Location} asset2
|
|
674
674
|
* @param {bigint} amount
|
|
675
675
|
* @param {boolean} include_fee
|
|
676
676
|
**/
|
|
677
677
|
quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
|
|
678
678
|
Rv,
|
|
679
679
|
(
|
|
680
|
-
asset1:
|
|
681
|
-
asset2:
|
|
680
|
+
asset1: StagingXcmV4Location,
|
|
681
|
+
asset2: StagingXcmV4Location,
|
|
682
682
|
amount: bigint,
|
|
683
683
|
includeFee: boolean,
|
|
684
684
|
) => Promise<bigint | undefined>
|
|
@@ -691,16 +691,16 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
691
691
|
* (Use `amount_out_min` to control slippage.)
|
|
692
692
|
*
|
|
693
693
|
* @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
|
|
694
|
-
* @param {
|
|
695
|
-
* @param {
|
|
694
|
+
* @param {StagingXcmV4Location} asset1
|
|
695
|
+
* @param {StagingXcmV4Location} asset2
|
|
696
696
|
* @param {bigint} amount
|
|
697
697
|
* @param {boolean} include_fee
|
|
698
698
|
**/
|
|
699
699
|
quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
|
|
700
700
|
Rv,
|
|
701
701
|
(
|
|
702
|
-
asset1:
|
|
703
|
-
asset2:
|
|
702
|
+
asset1: StagingXcmV4Location,
|
|
703
|
+
asset2: StagingXcmV4Location,
|
|
704
704
|
amount: bigint,
|
|
705
705
|
includeFee: boolean,
|
|
706
706
|
) => Promise<bigint | undefined>
|
|
@@ -710,15 +710,12 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
710
710
|
* Returns the size of the liquidity pool for the given asset pair.
|
|
711
711
|
*
|
|
712
712
|
* @callname: AssetConversionApi_get_reserves
|
|
713
|
-
* @param {
|
|
714
|
-
* @param {
|
|
713
|
+
* @param {StagingXcmV4Location} asset1
|
|
714
|
+
* @param {StagingXcmV4Location} asset2
|
|
715
715
|
**/
|
|
716
716
|
getReserves: GenericRuntimeApiMethod<
|
|
717
717
|
Rv,
|
|
718
|
-
(
|
|
719
|
-
asset1: StagingXcmV3MultilocationMultiLocation,
|
|
720
|
-
asset2: StagingXcmV3MultilocationMultiLocation,
|
|
721
|
-
) => Promise<[bigint, bigint] | undefined>
|
|
718
|
+
(asset1: StagingXcmV4Location, asset2: StagingXcmV4Location) => Promise<[bigint, bigint] | undefined>
|
|
722
719
|
>;
|
|
723
720
|
|
|
724
721
|
/**
|