@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
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainViewFunctions, GenericViewFunction } from 'dedot/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { AccountId32Like, Result } from 'dedot/codecs';
|
|
5
5
|
import type {
|
|
6
6
|
AssetHubWestendRuntimeRuntimeCallLike,
|
|
7
7
|
AssetHubWestendRuntimeProxyType,
|
|
8
|
+
PalletAssetsAssetDetails,
|
|
9
|
+
PalletAssetsAssetMetadata,
|
|
8
10
|
StagingXcmV5Location,
|
|
11
|
+
AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
|
|
9
12
|
PalletAssetConversionError,
|
|
10
13
|
} from './types.js';
|
|
11
14
|
|
|
@@ -39,6 +42,122 @@ export interface ChainViewFunctions extends GenericChainViewFunctions {
|
|
|
39
42
|
**/
|
|
40
43
|
[name: string]: GenericViewFunction;
|
|
41
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Pallet `Assets`'s view functions
|
|
47
|
+
**/
|
|
48
|
+
assets: {
|
|
49
|
+
/**
|
|
50
|
+
* Provide the asset details for asset `id`.
|
|
51
|
+
*
|
|
52
|
+
* @param {number} id
|
|
53
|
+
**/
|
|
54
|
+
assetDetails: GenericViewFunction<(id: number) => Promise<PalletAssetsAssetDetails | undefined>>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Provide the balance of `who` for asset `id`.
|
|
58
|
+
*
|
|
59
|
+
* @param {AccountId32Like} who
|
|
60
|
+
* @param {number} id
|
|
61
|
+
**/
|
|
62
|
+
balanceOf: GenericViewFunction<(who: AccountId32Like, id: number) => Promise<bigint | undefined>>;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Provide the configured metadata for asset `id`.
|
|
66
|
+
*
|
|
67
|
+
* @param {number} id
|
|
68
|
+
**/
|
|
69
|
+
getMetadata: GenericViewFunction<(id: number) => Promise<PalletAssetsAssetMetadata | undefined>>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Provide the configured reserves data for asset `id`.
|
|
73
|
+
*
|
|
74
|
+
* @param {number} id
|
|
75
|
+
**/
|
|
76
|
+
getReservesData: GenericViewFunction<(id: number) => Promise<Array<[]>>>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Generic pallet view function
|
|
80
|
+
**/
|
|
81
|
+
[name: string]: GenericViewFunction;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Pallet `ForeignAssets`'s view functions
|
|
85
|
+
**/
|
|
86
|
+
foreignAssets: {
|
|
87
|
+
/**
|
|
88
|
+
* Provide the asset details for asset `id`.
|
|
89
|
+
*
|
|
90
|
+
* @param {StagingXcmV5Location} id
|
|
91
|
+
**/
|
|
92
|
+
assetDetails: GenericViewFunction<(id: StagingXcmV5Location) => Promise<PalletAssetsAssetDetails | undefined>>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Provide the balance of `who` for asset `id`.
|
|
96
|
+
*
|
|
97
|
+
* @param {AccountId32Like} who
|
|
98
|
+
* @param {StagingXcmV5Location} id
|
|
99
|
+
**/
|
|
100
|
+
balanceOf: GenericViewFunction<(who: AccountId32Like, id: StagingXcmV5Location) => Promise<bigint | undefined>>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Provide the configured metadata for asset `id`.
|
|
104
|
+
*
|
|
105
|
+
* @param {StagingXcmV5Location} id
|
|
106
|
+
**/
|
|
107
|
+
getMetadata: GenericViewFunction<(id: StagingXcmV5Location) => Promise<PalletAssetsAssetMetadata | undefined>>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Provide the configured reserves data for asset `id`.
|
|
111
|
+
*
|
|
112
|
+
* @param {StagingXcmV5Location} id
|
|
113
|
+
**/
|
|
114
|
+
getReservesData: GenericViewFunction<
|
|
115
|
+
(id: StagingXcmV5Location) => Promise<Array<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>>
|
|
116
|
+
>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Generic pallet view function
|
|
120
|
+
**/
|
|
121
|
+
[name: string]: GenericViewFunction;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Pallet `PoolAssets`'s view functions
|
|
125
|
+
**/
|
|
126
|
+
poolAssets: {
|
|
127
|
+
/**
|
|
128
|
+
* Provide the asset details for asset `id`.
|
|
129
|
+
*
|
|
130
|
+
* @param {number} id
|
|
131
|
+
**/
|
|
132
|
+
assetDetails: GenericViewFunction<(id: number) => Promise<PalletAssetsAssetDetails | undefined>>;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Provide the balance of `who` for asset `id`.
|
|
136
|
+
*
|
|
137
|
+
* @param {AccountId32Like} who
|
|
138
|
+
* @param {number} id
|
|
139
|
+
**/
|
|
140
|
+
balanceOf: GenericViewFunction<(who: AccountId32Like, id: number) => Promise<bigint | undefined>>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Provide the configured metadata for asset `id`.
|
|
144
|
+
*
|
|
145
|
+
* @param {number} id
|
|
146
|
+
**/
|
|
147
|
+
getMetadata: GenericViewFunction<(id: number) => Promise<PalletAssetsAssetMetadata | undefined>>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Provide the configured reserves data for asset `id`.
|
|
151
|
+
*
|
|
152
|
+
* @param {number} id
|
|
153
|
+
**/
|
|
154
|
+
getReservesData: GenericViewFunction<(id: number) => Promise<Array<[]>>>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Generic pallet view function
|
|
158
|
+
**/
|
|
159
|
+
[name: string]: GenericViewFunction;
|
|
160
|
+
};
|
|
42
161
|
/**
|
|
43
162
|
* Pallet `AssetConversion`'s view functions
|
|
44
163
|
**/
|