@galacticcouncil/descriptors 1.6.0 → 1.8.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/build/common-types.d.ts +21329 -9377
- package/build/descriptors-XM6FUHC6.mjs +29 -0
- package/build/descriptors.d.ts +1 -0
- package/build/hub.d.ts +3443 -0
- package/build/hub_metadata-VJMVMCZ3.mjs +6 -0
- package/build/hub_metadata.d.ts +2 -0
- package/build/hydration.d.ts +766 -8858
- package/build/hydration_metadata-KGTJ7Y2K.mjs +6 -0
- package/build/index.d.ts +11 -2
- package/build/index.js +111 -44
- package/build/index.mjs +94 -43
- package/build/metadataTypes-FWGCMXKE.mjs +6 -0
- package/build/metadataTypes.d.ts +1 -1
- package/package.json +3 -3
- package/build/descriptors-J36P3GQP.mjs +0 -27
- package/build/hydration_metadata-BPAEI6BG.mjs +0 -6
- package/build/metadataTypes-SFKXNHQG.mjs +0 -6
package/build/hub.d.ts
ADDED
|
@@ -0,0 +1,3443 @@
|
|
|
1
|
+
import { StorageDescriptor, PlainDescriptor, TxDescriptor, RuntimeDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SS58String, FixedSizeBinary, Binary, FixedSizeArray } from "polkadot-api";
|
|
2
|
+
import { I5sesotjlssv2d, Iffmde3ekjedi9, I4mddgoa69c0a2, Iao1hke3bdbg7j, I95g6i7ilua7lq, Ieniouoqkq4icf, Phase, Ibgl04rn6nbfm6, I4q39t5hn830vp, I3qklfjubrljqh, Iag3f1hum3p4c8, I7svnfko10tq2e, I4s6jkha20aoh0, I2brm5b9jij1st, I78s05f59eoi8b, If9iqq7i64mur8, I4v5g6i7bmt06o, I84bhscllvv07n, In7a38730s6qs, If15el53dd76v9, I9s0ave7t0vnrk, I4fo08joqmcqnm, Ia5cotcvi888ln, I21jsa919m88fd, Iegif7m3upfe1k, I9kt8c221c83ln, Ic76kfh5ebqkpl, Icscpmubum33bq, I21d2olof7eb60, Ibgm4rnf22lal1, Ie68np0vpihith, I9bnv6lu0crf1q, Iauhjqifrdklq7, Ie1uso9m8rt5cf, Ic357tcepuvo5c, I2rnoam876ruhj, Ic5b47dj4coa3r, Ib3qnc19gu633c, Ifira6u9hi7cu1, I72tqocvdoqfff, I2i27f3sfmvc05, I1nlrtd1epki2d, I3abtumcmempjs, Id81m8flopt8ha, I8hff7chabggkd, I49i39mtj1ivbs, Ifkr2kcak2vto1, I1ju6r8q0cs9jt, I4kpeq6j7cd5bu, I5na1ka76k6811, I59mhdb9omdqfa, I9vl5kpk0fpakt, I717jt61hu19b4, I7f7v8192r1lmq, I5r8t4iaend96p, Ie2db4l6126rkt, Ictkqqlhdjt761, Iftvbctbo05fu4, XcmVersionedXcm, Ic0c3req3mlc1l, XcmVersionedAssetId, I7ocn4njqde3v5, XcmVersionedLocation, Iek7ha36da9mf5, I9mrsespe1jciv, I1ndeq00vn7nno, I1ot6qmf1h8h63, Iov7b207cnpr7, I35p85j063s0il, I5vv5n03oo8gas } from "./common-types";
|
|
3
|
+
type AnonymousEnum<T extends {}> = T & {
|
|
4
|
+
__anonymous: true;
|
|
5
|
+
};
|
|
6
|
+
type MyTuple<T> = [T, ...T[]];
|
|
7
|
+
type SeparateUndefined<T> = undefined extends T ? undefined | Exclude<T, undefined> : T;
|
|
8
|
+
type Anonymize<T> = SeparateUndefined<T extends FixedSizeBinary<infer L> ? number extends L ? Binary : FixedSizeBinary<L> : T extends string | number | bigint | boolean | void | undefined | null | symbol | Uint8Array | Enum<any> ? T : T extends AnonymousEnum<infer V> ? Enum<V> : T extends MyTuple<any> ? {
|
|
9
|
+
[K in keyof T]: T[K];
|
|
10
|
+
} : T extends [] ? [] : T extends FixedSizeArray<infer L, infer T> ? number extends L ? Array<T> : FixedSizeArray<L, T> : {
|
|
11
|
+
[K in keyof T & string]: T[K];
|
|
12
|
+
}>;
|
|
13
|
+
type IStorage = {
|
|
14
|
+
System: {
|
|
15
|
+
/**
|
|
16
|
+
* The full account information for a particular account ID.
|
|
17
|
+
*/
|
|
18
|
+
Account: StorageDescriptor<[Key: SS58String], Anonymize<I5sesotjlssv2d>, false, never>;
|
|
19
|
+
/**
|
|
20
|
+
* Total extrinsics count for the current block.
|
|
21
|
+
*/
|
|
22
|
+
ExtrinsicCount: StorageDescriptor<[], number, true, never>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether all inherents have been applied.
|
|
25
|
+
*/
|
|
26
|
+
InherentsApplied: StorageDescriptor<[], boolean, false, never>;
|
|
27
|
+
/**
|
|
28
|
+
* The current weight for the block.
|
|
29
|
+
*/
|
|
30
|
+
BlockWeight: StorageDescriptor<[], Anonymize<Iffmde3ekjedi9>, false, never>;
|
|
31
|
+
/**
|
|
32
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
33
|
+
*/
|
|
34
|
+
AllExtrinsicsLen: StorageDescriptor<[], number, true, never>;
|
|
35
|
+
/**
|
|
36
|
+
* Map of block numbers to block hashes.
|
|
37
|
+
*/
|
|
38
|
+
BlockHash: StorageDescriptor<[Key: number], FixedSizeBinary<32>, false, never>;
|
|
39
|
+
/**
|
|
40
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
41
|
+
*/
|
|
42
|
+
ExtrinsicData: StorageDescriptor<[Key: number], Binary, false, never>;
|
|
43
|
+
/**
|
|
44
|
+
* The current block number being processed. Set by `execute_block`.
|
|
45
|
+
*/
|
|
46
|
+
Number: StorageDescriptor<[], number, false, never>;
|
|
47
|
+
/**
|
|
48
|
+
* Hash of the previous block.
|
|
49
|
+
*/
|
|
50
|
+
ParentHash: StorageDescriptor<[], FixedSizeBinary<32>, false, never>;
|
|
51
|
+
/**
|
|
52
|
+
* Digest of the current block, also part of the block header.
|
|
53
|
+
*/
|
|
54
|
+
Digest: StorageDescriptor<[], Anonymize<I4mddgoa69c0a2>, false, never>;
|
|
55
|
+
/**
|
|
56
|
+
* Events deposited for the current block.
|
|
57
|
+
*
|
|
58
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
59
|
+
* It could otherwise inflate the PoV size of a block.
|
|
60
|
+
*
|
|
61
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
62
|
+
* just in case someone still reads them from within the runtime.
|
|
63
|
+
*/
|
|
64
|
+
Events: StorageDescriptor<[], Anonymize<Iao1hke3bdbg7j>, false, never>;
|
|
65
|
+
/**
|
|
66
|
+
* The number of events in the `Events<T>` list.
|
|
67
|
+
*/
|
|
68
|
+
EventCount: StorageDescriptor<[], number, false, never>;
|
|
69
|
+
/**
|
|
70
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
71
|
+
* of events in the `<Events<T>>` list.
|
|
72
|
+
*
|
|
73
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
74
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
75
|
+
* in case of changes fetch the list of events of interest.
|
|
76
|
+
*
|
|
77
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
78
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
79
|
+
* no notification will be triggered thus the event might be lost.
|
|
80
|
+
*/
|
|
81
|
+
EventTopics: StorageDescriptor<[Key: FixedSizeBinary<32>], Anonymize<I95g6i7ilua7lq>, false, never>;
|
|
82
|
+
/**
|
|
83
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
84
|
+
*/
|
|
85
|
+
LastRuntimeUpgrade: StorageDescriptor<[], Anonymize<Ieniouoqkq4icf>, true, never>;
|
|
86
|
+
/**
|
|
87
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
88
|
+
*/
|
|
89
|
+
UpgradedToU32RefCount: StorageDescriptor<[], boolean, false, never>;
|
|
90
|
+
/**
|
|
91
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
92
|
+
* (default) if not.
|
|
93
|
+
*/
|
|
94
|
+
UpgradedToTripleRefCount: StorageDescriptor<[], boolean, false, never>;
|
|
95
|
+
/**
|
|
96
|
+
* The execution phase of the block.
|
|
97
|
+
*/
|
|
98
|
+
ExecutionPhase: StorageDescriptor<[], Phase, true, never>;
|
|
99
|
+
/**
|
|
100
|
+
* `Some` if a code upgrade has been authorized.
|
|
101
|
+
*/
|
|
102
|
+
AuthorizedUpgrade: StorageDescriptor<[], Anonymize<Ibgl04rn6nbfm6>, true, never>;
|
|
103
|
+
/**
|
|
104
|
+
* The weight reclaimed for the extrinsic.
|
|
105
|
+
*
|
|
106
|
+
* This information is available until the end of the extrinsic execution.
|
|
107
|
+
* More precisely this information is removed in `note_applied_extrinsic`.
|
|
108
|
+
*
|
|
109
|
+
* Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
|
|
110
|
+
* reduction.
|
|
111
|
+
*/
|
|
112
|
+
ExtrinsicWeightReclaimed: StorageDescriptor<[], Anonymize<I4q39t5hn830vp>, false, never>;
|
|
113
|
+
};
|
|
114
|
+
Assets: {
|
|
115
|
+
/**
|
|
116
|
+
* Details of an asset.
|
|
117
|
+
*/
|
|
118
|
+
Asset: StorageDescriptor<[Key: number], Anonymize<I3qklfjubrljqh>, true, never>;
|
|
119
|
+
/**
|
|
120
|
+
* The holdings of a specific account for a specific asset.
|
|
121
|
+
*/
|
|
122
|
+
Account: StorageDescriptor<Anonymize<I7svnfko10tq2e>, Anonymize<Iag3f1hum3p4c8>, true, never>;
|
|
123
|
+
/**
|
|
124
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
125
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
126
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
127
|
+
*/
|
|
128
|
+
Approvals: StorageDescriptor<Anonymize<I2brm5b9jij1st>, Anonymize<I4s6jkha20aoh0>, true, never>;
|
|
129
|
+
/**
|
|
130
|
+
* Metadata of an asset.
|
|
131
|
+
*/
|
|
132
|
+
Metadata: StorageDescriptor<[Key: number], Anonymize<I78s05f59eoi8b>, false, never>;
|
|
133
|
+
/**
|
|
134
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
135
|
+
* item has no effect.
|
|
136
|
+
*
|
|
137
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
138
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
139
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
140
|
+
*
|
|
141
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
142
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
143
|
+
*/
|
|
144
|
+
NextAssetId: StorageDescriptor<[], number, true, never>;
|
|
145
|
+
};
|
|
146
|
+
ForeignAssets: {
|
|
147
|
+
/**
|
|
148
|
+
* Details of an asset.
|
|
149
|
+
*/
|
|
150
|
+
Asset: StorageDescriptor<[Key: Anonymize<If9iqq7i64mur8>], Anonymize<I3qklfjubrljqh>, true, never>;
|
|
151
|
+
/**
|
|
152
|
+
* The holdings of a specific account for a specific asset.
|
|
153
|
+
*/
|
|
154
|
+
Account: StorageDescriptor<Anonymize<I4v5g6i7bmt06o>, Anonymize<Iag3f1hum3p4c8>, true, never>;
|
|
155
|
+
/**
|
|
156
|
+
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
157
|
+
* is the amount of `T::Currency` reserved for storing this.
|
|
158
|
+
* First key is the asset ID, second key is the owner and third key is the delegate.
|
|
159
|
+
*/
|
|
160
|
+
Approvals: StorageDescriptor<Anonymize<I84bhscllvv07n>, Anonymize<I4s6jkha20aoh0>, true, never>;
|
|
161
|
+
/**
|
|
162
|
+
* Metadata of an asset.
|
|
163
|
+
*/
|
|
164
|
+
Metadata: StorageDescriptor<[Key: Anonymize<If9iqq7i64mur8>], Anonymize<I78s05f59eoi8b>, false, never>;
|
|
165
|
+
/**
|
|
166
|
+
* The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
|
|
167
|
+
* item has no effect.
|
|
168
|
+
*
|
|
169
|
+
* This can be useful for setting up constraints for IDs of the new assets. For example, by
|
|
170
|
+
* providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
|
|
171
|
+
* auto-increment model can be applied to all new asset IDs.
|
|
172
|
+
*
|
|
173
|
+
* The initial next asset ID can be set using the [`GenesisConfig`] or the
|
|
174
|
+
* [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
|
|
175
|
+
*/
|
|
176
|
+
NextAssetId: StorageDescriptor<[], Anonymize<If9iqq7i64mur8>, true, never>;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
type ICalls = {
|
|
180
|
+
PolkadotXcm: {
|
|
181
|
+
/**
|
|
182
|
+
|
|
183
|
+
*/
|
|
184
|
+
send: TxDescriptor<Anonymize<Ia5cotcvi888ln>>;
|
|
185
|
+
/**
|
|
186
|
+
* Teleport some assets from the local chain to some destination chain.
|
|
187
|
+
*
|
|
188
|
+
* **This function is deprecated: Use `limited_teleport_assets` instead.**
|
|
189
|
+
*
|
|
190
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
191
|
+
* index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
|
|
192
|
+
* with all fees taken as needed from the asset.
|
|
193
|
+
*
|
|
194
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
195
|
+
* - `dest`: Destination context for the assets. Will typically be `[Parent,
|
|
196
|
+
* Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
|
|
197
|
+
* relay to parachain.
|
|
198
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
|
|
199
|
+
* generally be an `AccountId32` value.
|
|
200
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
201
|
+
* fee on the `dest` chain.
|
|
202
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
203
|
+
* fees.
|
|
204
|
+
*/
|
|
205
|
+
teleport_assets: TxDescriptor<Anonymize<I21jsa919m88fd>>;
|
|
206
|
+
/**
|
|
207
|
+
* Transfer some assets from the local chain to the destination chain through their local,
|
|
208
|
+
* destination or remote reserve.
|
|
209
|
+
*
|
|
210
|
+
* `assets` must have same reserve location and may not be teleportable to `dest`.
|
|
211
|
+
* - `assets` have local reserve: transfer assets to sovereign account of destination
|
|
212
|
+
* chain and forward a notification XCM to `dest` to mint and deposit reserve-based
|
|
213
|
+
* assets to `beneficiary`.
|
|
214
|
+
* - `assets` have destination reserve: burn local assets and forward a notification to
|
|
215
|
+
* `dest` chain to withdraw the reserve assets from this chain's sovereign account and
|
|
216
|
+
* deposit them to `beneficiary`.
|
|
217
|
+
* - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move
|
|
218
|
+
* reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`
|
|
219
|
+
* to mint and deposit reserve-based assets to `beneficiary`.
|
|
220
|
+
*
|
|
221
|
+
* **This function is deprecated: Use `limited_reserve_transfer_assets` instead.**
|
|
222
|
+
*
|
|
223
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
224
|
+
* index `fee_asset_item`. The weight limit for fees is not provided and thus is unlimited,
|
|
225
|
+
* with all fees taken as needed from the asset.
|
|
226
|
+
*
|
|
227
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
228
|
+
* - `dest`: Destination context for the assets. Will typically be `[Parent,
|
|
229
|
+
* Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
|
|
230
|
+
* relay to parachain.
|
|
231
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
|
|
232
|
+
* generally be an `AccountId32` value.
|
|
233
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
234
|
+
* fee on the `dest` (and possibly reserve) chains.
|
|
235
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
236
|
+
* fees.
|
|
237
|
+
*/
|
|
238
|
+
reserve_transfer_assets: TxDescriptor<Anonymize<I21jsa919m88fd>>;
|
|
239
|
+
/**
|
|
240
|
+
* Execute an XCM message from a local, signed, origin.
|
|
241
|
+
*
|
|
242
|
+
* An event is deposited indicating whether `msg` could be executed completely or only
|
|
243
|
+
* partially.
|
|
244
|
+
*
|
|
245
|
+
* No more than `max_weight` will be used in its attempted execution. If this is less than
|
|
246
|
+
* the maximum amount of weight that the message could take to be executed, then no
|
|
247
|
+
* execution attempt will be made.
|
|
248
|
+
*/
|
|
249
|
+
execute: TxDescriptor<Anonymize<Iegif7m3upfe1k>>;
|
|
250
|
+
/**
|
|
251
|
+
* Extoll that a particular destination can be communicated with through a particular
|
|
252
|
+
* version of XCM.
|
|
253
|
+
*
|
|
254
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
255
|
+
* - `location`: The destination that is being described.
|
|
256
|
+
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
257
|
+
*/
|
|
258
|
+
force_xcm_version: TxDescriptor<Anonymize<I9kt8c221c83ln>>;
|
|
259
|
+
/**
|
|
260
|
+
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
261
|
+
* version a destination can accept is unknown).
|
|
262
|
+
*
|
|
263
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
264
|
+
* - `maybe_xcm_version`: The default XCM encoding version, or `None` to disable.
|
|
265
|
+
*/
|
|
266
|
+
force_default_xcm_version: TxDescriptor<Anonymize<Ic76kfh5ebqkpl>>;
|
|
267
|
+
/**
|
|
268
|
+
* Ask a location to notify us regarding their XCM version and any changes to it.
|
|
269
|
+
*
|
|
270
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
271
|
+
* - `location`: The location to which we should subscribe for XCM version notifications.
|
|
272
|
+
*/
|
|
273
|
+
force_subscribe_version_notify: TxDescriptor<Anonymize<Icscpmubum33bq>>;
|
|
274
|
+
/**
|
|
275
|
+
* Require that a particular destination should no longer notify us regarding any XCM
|
|
276
|
+
* version changes.
|
|
277
|
+
*
|
|
278
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
279
|
+
* - `location`: The location to which we are currently subscribed for XCM version
|
|
280
|
+
* notifications which we no longer desire.
|
|
281
|
+
*/
|
|
282
|
+
force_unsubscribe_version_notify: TxDescriptor<Anonymize<Icscpmubum33bq>>;
|
|
283
|
+
/**
|
|
284
|
+
* Transfer some assets from the local chain to the destination chain through their local,
|
|
285
|
+
* destination or remote reserve.
|
|
286
|
+
*
|
|
287
|
+
* `assets` must have same reserve location and may not be teleportable to `dest`.
|
|
288
|
+
* - `assets` have local reserve: transfer assets to sovereign account of destination
|
|
289
|
+
* chain and forward a notification XCM to `dest` to mint and deposit reserve-based
|
|
290
|
+
* assets to `beneficiary`.
|
|
291
|
+
* - `assets` have destination reserve: burn local assets and forward a notification to
|
|
292
|
+
* `dest` chain to withdraw the reserve assets from this chain's sovereign account and
|
|
293
|
+
* deposit them to `beneficiary`.
|
|
294
|
+
* - `assets` have remote reserve: burn local assets, forward XCM to reserve chain to move
|
|
295
|
+
* reserves from this chain's SA to `dest` chain's SA, and forward another XCM to `dest`
|
|
296
|
+
* to mint and deposit reserve-based assets to `beneficiary`.
|
|
297
|
+
*
|
|
298
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
299
|
+
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
300
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
301
|
+
* at risk.
|
|
302
|
+
*
|
|
303
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
304
|
+
* - `dest`: Destination context for the assets. Will typically be `[Parent,
|
|
305
|
+
* Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
|
|
306
|
+
* relay to parachain.
|
|
307
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
|
|
308
|
+
* generally be an `AccountId32` value.
|
|
309
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
310
|
+
* fee on the `dest` (and possibly reserve) chains.
|
|
311
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
312
|
+
* fees.
|
|
313
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
314
|
+
*/
|
|
315
|
+
limited_reserve_transfer_assets: TxDescriptor<Anonymize<I21d2olof7eb60>>;
|
|
316
|
+
/**
|
|
317
|
+
* Teleport some assets from the local chain to some destination chain.
|
|
318
|
+
*
|
|
319
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
320
|
+
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
321
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
322
|
+
* at risk.
|
|
323
|
+
*
|
|
324
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
325
|
+
* - `dest`: Destination context for the assets. Will typically be `[Parent,
|
|
326
|
+
* Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
|
|
327
|
+
* relay to parachain.
|
|
328
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
|
|
329
|
+
* generally be an `AccountId32` value.
|
|
330
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
331
|
+
* fee on the `dest` chain.
|
|
332
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
333
|
+
* fees.
|
|
334
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
335
|
+
*/
|
|
336
|
+
limited_teleport_assets: TxDescriptor<Anonymize<I21d2olof7eb60>>;
|
|
337
|
+
/**
|
|
338
|
+
* Set or unset the global suspension state of the XCM executor.
|
|
339
|
+
*
|
|
340
|
+
* - `origin`: Must be an origin specified by AdminOrigin.
|
|
341
|
+
* - `suspended`: `true` to suspend, `false` to resume.
|
|
342
|
+
*/
|
|
343
|
+
force_suspension: TxDescriptor<Anonymize<Ibgm4rnf22lal1>>;
|
|
344
|
+
/**
|
|
345
|
+
* Transfer some assets from the local chain to the destination chain through their local,
|
|
346
|
+
* destination or remote reserve, or through teleports.
|
|
347
|
+
*
|
|
348
|
+
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
349
|
+
* index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
|
|
350
|
+
* `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
|
|
351
|
+
* operation will fail and the sent assets may be at risk.
|
|
352
|
+
*
|
|
353
|
+
* `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
|
|
354
|
+
* to `dest`, no limitations imposed on `fees`.
|
|
355
|
+
* - for local reserve: transfer assets to sovereign account of destination chain and
|
|
356
|
+
* forward a notification XCM to `dest` to mint and deposit reserve-based assets to
|
|
357
|
+
* `beneficiary`.
|
|
358
|
+
* - for destination reserve: burn local assets and forward a notification to `dest` chain
|
|
359
|
+
* to withdraw the reserve assets from this chain's sovereign account and deposit them
|
|
360
|
+
* to `beneficiary`.
|
|
361
|
+
* - for remote reserve: burn local assets, forward XCM to reserve chain to move reserves
|
|
362
|
+
* from this chain's SA to `dest` chain's SA, and forward another XCM to `dest` to mint
|
|
363
|
+
* and deposit reserve-based assets to `beneficiary`.
|
|
364
|
+
* - for teleports: burn local assets and forward XCM to `dest` chain to mint/teleport
|
|
365
|
+
* assets and deposit them to `beneficiary`.
|
|
366
|
+
*
|
|
367
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
368
|
+
* - `dest`: Destination context for the assets. Will typically be `X2(Parent,
|
|
369
|
+
* Parachain(..))` to send from parachain to parachain, or `X1(Parachain(..))` to send
|
|
370
|
+
* from relay to parachain.
|
|
371
|
+
* - `beneficiary`: A beneficiary location for the assets in the context of `dest`. Will
|
|
372
|
+
* generally be an `AccountId32` value.
|
|
373
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
374
|
+
* fee on the `dest` (and possibly reserve) chains.
|
|
375
|
+
* - `fee_asset_item`: The index into `assets` of the item which should be used to pay
|
|
376
|
+
* fees.
|
|
377
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
378
|
+
*/
|
|
379
|
+
transfer_assets: TxDescriptor<Anonymize<I21d2olof7eb60>>;
|
|
380
|
+
/**
|
|
381
|
+
* Claims assets trapped on this pallet because of leftover assets during XCM execution.
|
|
382
|
+
*
|
|
383
|
+
* - `origin`: Anyone can call this extrinsic.
|
|
384
|
+
* - `assets`: The exact assets that were trapped. Use the version to specify what version
|
|
385
|
+
* was the latest when they were trapped.
|
|
386
|
+
* - `beneficiary`: The location/account where the claimed assets will be deposited.
|
|
387
|
+
*/
|
|
388
|
+
claim_assets: TxDescriptor<Anonymize<Ie68np0vpihith>>;
|
|
389
|
+
/**
|
|
390
|
+
* Transfer assets from the local chain to the destination chain using explicit transfer
|
|
391
|
+
* types for assets and fees.
|
|
392
|
+
*
|
|
393
|
+
* `assets` must have same reserve location or may be teleportable to `dest`. Caller must
|
|
394
|
+
* provide the `assets_transfer_type` to be used for `assets`:
|
|
395
|
+
* - `TransferType::LocalReserve`: transfer assets to sovereign account of destination
|
|
396
|
+
* chain and forward a notification XCM to `dest` to mint and deposit reserve-based
|
|
397
|
+
* assets to `beneficiary`.
|
|
398
|
+
* - `TransferType::DestinationReserve`: burn local assets and forward a notification to
|
|
399
|
+
* `dest` chain to withdraw the reserve assets from this chain's sovereign account and
|
|
400
|
+
* deposit them to `beneficiary`.
|
|
401
|
+
* - `TransferType::RemoteReserve(reserve)`: burn local assets, forward XCM to `reserve`
|
|
402
|
+
* chain to move reserves from this chain's SA to `dest` chain's SA, and forward another
|
|
403
|
+
* XCM to `dest` to mint and deposit reserve-based assets to `beneficiary`. Typically
|
|
404
|
+
* the remote `reserve` is Asset Hub.
|
|
405
|
+
* - `TransferType::Teleport`: burn local assets and forward XCM to `dest` chain to
|
|
406
|
+
* mint/teleport assets and deposit them to `beneficiary`.
|
|
407
|
+
*
|
|
408
|
+
* On the destination chain, as well as any intermediary hops, `BuyExecution` is used to
|
|
409
|
+
* buy execution using transferred `assets` identified by `remote_fees_id`.
|
|
410
|
+
* Make sure enough of the specified `remote_fees_id` asset is included in the given list
|
|
411
|
+
* of `assets`. `remote_fees_id` should be enough to pay for `weight_limit`. If more weight
|
|
412
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
413
|
+
* at risk.
|
|
414
|
+
*
|
|
415
|
+
* `remote_fees_id` may use different transfer type than rest of `assets` and can be
|
|
416
|
+
* specified through `fees_transfer_type`.
|
|
417
|
+
*
|
|
418
|
+
* The caller needs to specify what should happen to the transferred assets once they reach
|
|
419
|
+
* the `dest` chain. This is done through the `custom_xcm_on_dest` parameter, which
|
|
420
|
+
* contains the instructions to execute on `dest` as a final step.
|
|
421
|
+
* This is usually as simple as:
|
|
422
|
+
* `Xcm(vec![DepositAsset { assets: Wild(AllCounted(assets.len())), beneficiary }])`,
|
|
423
|
+
* but could be something more exotic like sending the `assets` even further.
|
|
424
|
+
*
|
|
425
|
+
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
426
|
+
* - `dest`: Destination context for the assets. Will typically be `[Parent,
|
|
427
|
+
* Parachain(..)]` to send from parachain to parachain, or `[Parachain(..)]` to send from
|
|
428
|
+
* relay to parachain, or `(parents: 2, (GlobalConsensus(..), ..))` to send from
|
|
429
|
+
* parachain across a bridge to another ecosystem destination.
|
|
430
|
+
* - `assets`: The assets to be withdrawn. This should include the assets used to pay the
|
|
431
|
+
* fee on the `dest` (and possibly reserve) chains.
|
|
432
|
+
* - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
|
|
433
|
+
* - `remote_fees_id`: One of the included `assets` to be used to pay fees.
|
|
434
|
+
* - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
|
|
435
|
+
* - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
|
|
436
|
+
* transfer, which also determines what happens to the assets on the destination chain.
|
|
437
|
+
* - `weight_limit`: The remote-side weight limit, if any, for the XCM fee purchase.
|
|
438
|
+
*/
|
|
439
|
+
transfer_assets_using_type_and_then: TxDescriptor<Anonymize<I9bnv6lu0crf1q>>;
|
|
440
|
+
/**
|
|
441
|
+
* Authorize another `aliaser` location to alias into the local `origin` making this call.
|
|
442
|
+
* The `aliaser` is only authorized until the provided `expiry` block number.
|
|
443
|
+
* The call can also be used for a previously authorized alias in order to update its
|
|
444
|
+
* `expiry` block number.
|
|
445
|
+
*
|
|
446
|
+
* Usually useful to allow your local account to be aliased into from a remote location
|
|
447
|
+
* also under your control (like your account on another chain).
|
|
448
|
+
*
|
|
449
|
+
* WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
|
|
450
|
+
* their/your name. Once authorized using this call, the `aliaser` can freely impersonate
|
|
451
|
+
* `origin` in XCM programs executed on the local chain.
|
|
452
|
+
*/
|
|
453
|
+
add_authorized_alias: TxDescriptor<Anonymize<Iauhjqifrdklq7>>;
|
|
454
|
+
/**
|
|
455
|
+
* Remove a previously authorized `aliaser` from the list of locations that can alias into
|
|
456
|
+
* the local `origin` making this call.
|
|
457
|
+
*/
|
|
458
|
+
remove_authorized_alias: TxDescriptor<Anonymize<Ie1uso9m8rt5cf>>;
|
|
459
|
+
/**
|
|
460
|
+
* Remove all previously authorized `aliaser`s that can alias into the local `origin`
|
|
461
|
+
* making this call.
|
|
462
|
+
*/
|
|
463
|
+
remove_all_authorized_aliases: TxDescriptor<undefined>;
|
|
464
|
+
};
|
|
465
|
+
Assets: {
|
|
466
|
+
/**
|
|
467
|
+
* Issue a new class of fungible assets from a public origin.
|
|
468
|
+
*
|
|
469
|
+
* This new asset class has no assets initially and its owner is the origin.
|
|
470
|
+
*
|
|
471
|
+
* The origin must conform to the configured `CreateOrigin` and have sufficient funds free.
|
|
472
|
+
*
|
|
473
|
+
* Funds of sender are reserved by `AssetDeposit`.
|
|
474
|
+
*
|
|
475
|
+
* Parameters:
|
|
476
|
+
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
477
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
478
|
+
* - `admin`: The admin of this class of assets. The admin is the initial address of each
|
|
479
|
+
* member of the asset class's admin team.
|
|
480
|
+
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
481
|
+
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
482
|
+
*
|
|
483
|
+
* Emits `Created` event when successful.
|
|
484
|
+
*
|
|
485
|
+
* Weight: `O(1)`
|
|
486
|
+
*/
|
|
487
|
+
create: TxDescriptor<Anonymize<Ic357tcepuvo5c>>;
|
|
488
|
+
/**
|
|
489
|
+
* Issue a new class of fungible assets from a privileged origin.
|
|
490
|
+
*
|
|
491
|
+
* This new asset class has no assets initially.
|
|
492
|
+
*
|
|
493
|
+
* The origin must conform to `ForceOrigin`.
|
|
494
|
+
*
|
|
495
|
+
* Unlike `create`, no funds are reserved.
|
|
496
|
+
*
|
|
497
|
+
* - `id`: The identifier of the new asset. This must not be currently in use to identify
|
|
498
|
+
* an existing asset. If [`NextAssetId`] is set, then this must be equal to it.
|
|
499
|
+
* - `owner`: The owner of this class of assets. The owner has full superuser permissions
|
|
500
|
+
* over this asset, but may later change and configure the permissions using
|
|
501
|
+
* `transfer_ownership` and `set_team`.
|
|
502
|
+
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
503
|
+
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
504
|
+
*
|
|
505
|
+
* Emits `ForceCreated` event when successful.
|
|
506
|
+
*
|
|
507
|
+
* Weight: `O(1)`
|
|
508
|
+
*/
|
|
509
|
+
force_create: TxDescriptor<Anonymize<I2rnoam876ruhj>>;
|
|
510
|
+
/**
|
|
511
|
+
* Start the process of destroying a fungible asset class.
|
|
512
|
+
*
|
|
513
|
+
* `start_destroy` is the first in a series of extrinsics that should be called, to allow
|
|
514
|
+
* destruction of an asset class.
|
|
515
|
+
*
|
|
516
|
+
* The origin must conform to `ForceOrigin` or must be `Signed` by the asset's `owner`.
|
|
517
|
+
*
|
|
518
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
519
|
+
* asset.
|
|
520
|
+
*
|
|
521
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
522
|
+
* an account contains holds or freezes in place.
|
|
523
|
+
*/
|
|
524
|
+
start_destroy: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
525
|
+
/**
|
|
526
|
+
* Destroy all accounts associated with a given asset.
|
|
527
|
+
*
|
|
528
|
+
* `destroy_accounts` should only be called after `start_destroy` has been called, and the
|
|
529
|
+
* asset is in a `Destroying` state.
|
|
530
|
+
*
|
|
531
|
+
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
532
|
+
* destroy all accounts. It will destroy `RemoveItemsLimit` accounts at a time.
|
|
533
|
+
*
|
|
534
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
535
|
+
* asset.
|
|
536
|
+
*
|
|
537
|
+
* Each call emits the `Event::DestroyedAccounts` event.
|
|
538
|
+
*/
|
|
539
|
+
destroy_accounts: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
540
|
+
/**
|
|
541
|
+
* Destroy all approvals associated with a given asset up to the max (T::RemoveItemsLimit).
|
|
542
|
+
*
|
|
543
|
+
* `destroy_approvals` should only be called after `start_destroy` has been called, and the
|
|
544
|
+
* asset is in a `Destroying` state.
|
|
545
|
+
*
|
|
546
|
+
* Due to weight restrictions, this function may need to be called multiple times to fully
|
|
547
|
+
* destroy all approvals. It will destroy `RemoveItemsLimit` approvals at a time.
|
|
548
|
+
*
|
|
549
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
550
|
+
* asset.
|
|
551
|
+
*
|
|
552
|
+
* Each call emits the `Event::DestroyedApprovals` event.
|
|
553
|
+
*/
|
|
554
|
+
destroy_approvals: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
555
|
+
/**
|
|
556
|
+
* Complete destroying asset and unreserve currency.
|
|
557
|
+
*
|
|
558
|
+
* `finish_destroy` should only be called after `start_destroy` has been called, and the
|
|
559
|
+
* asset is in a `Destroying` state. All accounts or approvals should be destroyed before
|
|
560
|
+
* hand.
|
|
561
|
+
*
|
|
562
|
+
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
|
563
|
+
* asset.
|
|
564
|
+
*
|
|
565
|
+
* Each successful call emits the `Event::Destroyed` event.
|
|
566
|
+
*/
|
|
567
|
+
finish_destroy: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
568
|
+
/**
|
|
569
|
+
* Mint assets of a particular class.
|
|
570
|
+
*
|
|
571
|
+
* The origin must be Signed and the sender must be the Issuer of the asset `id`.
|
|
572
|
+
*
|
|
573
|
+
* - `id`: The identifier of the asset to have some amount minted.
|
|
574
|
+
* - `beneficiary`: The account to be credited with the minted assets.
|
|
575
|
+
* - `amount`: The amount of the asset to be minted.
|
|
576
|
+
*
|
|
577
|
+
* Emits `Issued` event when successful.
|
|
578
|
+
*
|
|
579
|
+
* Weight: `O(1)`
|
|
580
|
+
* Modes: Pre-existing balance of `beneficiary`; Account pre-existence of `beneficiary`.
|
|
581
|
+
*/
|
|
582
|
+
mint: TxDescriptor<Anonymize<Ib3qnc19gu633c>>;
|
|
583
|
+
/**
|
|
584
|
+
* Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
|
|
585
|
+
*
|
|
586
|
+
* Origin must be Signed and the sender should be the Manager of the asset `id`.
|
|
587
|
+
*
|
|
588
|
+
* Bails with `NoAccount` if the `who` is already dead.
|
|
589
|
+
*
|
|
590
|
+
* - `id`: The identifier of the asset to have some amount burned.
|
|
591
|
+
* - `who`: The account to be debited from.
|
|
592
|
+
* - `amount`: The maximum amount by which `who`'s balance should be reduced.
|
|
593
|
+
*
|
|
594
|
+
* Emits `Burned` with the actual amount burned. If this takes the balance to below the
|
|
595
|
+
* minimum for the asset, then the amount burned is increased to take it to zero.
|
|
596
|
+
*
|
|
597
|
+
* Weight: `O(1)`
|
|
598
|
+
* Modes: Post-existence of `who`; Pre & post Zombie-status of `who`.
|
|
599
|
+
*/
|
|
600
|
+
burn: TxDescriptor<Anonymize<Ifira6u9hi7cu1>>;
|
|
601
|
+
/**
|
|
602
|
+
* Move some assets from the sender account to another.
|
|
603
|
+
*
|
|
604
|
+
* Origin must be Signed.
|
|
605
|
+
*
|
|
606
|
+
* - `id`: The identifier of the asset to have some amount transferred.
|
|
607
|
+
* - `target`: The account to be credited.
|
|
608
|
+
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
609
|
+
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
610
|
+
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
611
|
+
* the minimum balance. Must be greater than zero.
|
|
612
|
+
*
|
|
613
|
+
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
614
|
+
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
615
|
+
* to zero.
|
|
616
|
+
*
|
|
617
|
+
* Weight: `O(1)`
|
|
618
|
+
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
619
|
+
* `target`.
|
|
620
|
+
*/
|
|
621
|
+
transfer: TxDescriptor<Anonymize<I72tqocvdoqfff>>;
|
|
622
|
+
/**
|
|
623
|
+
* Move some assets from the sender account to another, keeping the sender account alive.
|
|
624
|
+
*
|
|
625
|
+
* Origin must be Signed.
|
|
626
|
+
*
|
|
627
|
+
* - `id`: The identifier of the asset to have some amount transferred.
|
|
628
|
+
* - `target`: The account to be credited.
|
|
629
|
+
* - `amount`: The amount by which the sender's balance of assets should be reduced and
|
|
630
|
+
* `target`'s balance increased. The amount actually transferred may be slightly greater in
|
|
631
|
+
* the case that the transfer would otherwise take the sender balance above zero but below
|
|
632
|
+
* the minimum balance. Must be greater than zero.
|
|
633
|
+
*
|
|
634
|
+
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
635
|
+
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
636
|
+
* to zero.
|
|
637
|
+
*
|
|
638
|
+
* Weight: `O(1)`
|
|
639
|
+
* Modes: Pre-existence of `target`; Post-existence of sender; Account pre-existence of
|
|
640
|
+
* `target`.
|
|
641
|
+
*/
|
|
642
|
+
transfer_keep_alive: TxDescriptor<Anonymize<I72tqocvdoqfff>>;
|
|
643
|
+
/**
|
|
644
|
+
* Move some assets from one account to another.
|
|
645
|
+
*
|
|
646
|
+
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
647
|
+
*
|
|
648
|
+
* - `id`: The identifier of the asset to have some amount transferred.
|
|
649
|
+
* - `source`: The account to be debited.
|
|
650
|
+
* - `dest`: The account to be credited.
|
|
651
|
+
* - `amount`: The amount by which the `source`'s balance of assets should be reduced and
|
|
652
|
+
* `dest`'s balance increased. The amount actually transferred may be slightly greater in
|
|
653
|
+
* the case that the transfer would otherwise take the `source` balance above zero but
|
|
654
|
+
* below the minimum balance. Must be greater than zero.
|
|
655
|
+
*
|
|
656
|
+
* Emits `Transferred` with the actual amount transferred. If this takes the source balance
|
|
657
|
+
* to below the minimum for the asset, then the amount transferred is increased to take it
|
|
658
|
+
* to zero.
|
|
659
|
+
*
|
|
660
|
+
* Weight: `O(1)`
|
|
661
|
+
* Modes: Pre-existence of `dest`; Post-existence of `source`; Account pre-existence of
|
|
662
|
+
* `dest`.
|
|
663
|
+
*/
|
|
664
|
+
force_transfer: TxDescriptor<Anonymize<I2i27f3sfmvc05>>;
|
|
665
|
+
/**
|
|
666
|
+
* Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
|
|
667
|
+
* must already exist as an entry in `Account`s of the asset. If you want to freeze an
|
|
668
|
+
* account that does not have an entry, use `touch_other` first.
|
|
669
|
+
*
|
|
670
|
+
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
671
|
+
*
|
|
672
|
+
* - `id`: The identifier of the asset to be frozen.
|
|
673
|
+
* - `who`: The account to be frozen.
|
|
674
|
+
*
|
|
675
|
+
* Emits `Frozen`.
|
|
676
|
+
*
|
|
677
|
+
* Weight: `O(1)`
|
|
678
|
+
*/
|
|
679
|
+
freeze: TxDescriptor<Anonymize<I1nlrtd1epki2d>>;
|
|
680
|
+
/**
|
|
681
|
+
* Allow unprivileged transfers to and from an account again.
|
|
682
|
+
*
|
|
683
|
+
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
684
|
+
*
|
|
685
|
+
* - `id`: The identifier of the asset to be frozen.
|
|
686
|
+
* - `who`: The account to be unfrozen.
|
|
687
|
+
*
|
|
688
|
+
* Emits `Thawed`.
|
|
689
|
+
*
|
|
690
|
+
* Weight: `O(1)`
|
|
691
|
+
*/
|
|
692
|
+
thaw: TxDescriptor<Anonymize<I1nlrtd1epki2d>>;
|
|
693
|
+
/**
|
|
694
|
+
* Disallow further unprivileged transfers for the asset class.
|
|
695
|
+
*
|
|
696
|
+
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
697
|
+
*
|
|
698
|
+
* - `id`: The identifier of the asset to be frozen.
|
|
699
|
+
*
|
|
700
|
+
* Emits `Frozen`.
|
|
701
|
+
*
|
|
702
|
+
* Weight: `O(1)`
|
|
703
|
+
*/
|
|
704
|
+
freeze_asset: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
705
|
+
/**
|
|
706
|
+
* Allow unprivileged transfers for the asset again.
|
|
707
|
+
*
|
|
708
|
+
* Origin must be Signed and the sender should be the Admin of the asset `id`.
|
|
709
|
+
*
|
|
710
|
+
* - `id`: The identifier of the asset to be thawed.
|
|
711
|
+
*
|
|
712
|
+
* Emits `Thawed`.
|
|
713
|
+
*
|
|
714
|
+
* Weight: `O(1)`
|
|
715
|
+
*/
|
|
716
|
+
thaw_asset: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
717
|
+
/**
|
|
718
|
+
* Change the Owner of an asset.
|
|
719
|
+
*
|
|
720
|
+
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
721
|
+
*
|
|
722
|
+
* - `id`: The identifier of the asset.
|
|
723
|
+
* - `owner`: The new Owner of this asset.
|
|
724
|
+
*
|
|
725
|
+
* Emits `OwnerChanged`.
|
|
726
|
+
*
|
|
727
|
+
* Weight: `O(1)`
|
|
728
|
+
*/
|
|
729
|
+
transfer_ownership: TxDescriptor<Anonymize<I3abtumcmempjs>>;
|
|
730
|
+
/**
|
|
731
|
+
* Change the Issuer, Admin and Freezer of an asset.
|
|
732
|
+
*
|
|
733
|
+
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
734
|
+
*
|
|
735
|
+
* - `id`: The identifier of the asset to be frozen.
|
|
736
|
+
* - `issuer`: The new Issuer of this asset.
|
|
737
|
+
* - `admin`: The new Admin of this asset.
|
|
738
|
+
* - `freezer`: The new Freezer of this asset.
|
|
739
|
+
*
|
|
740
|
+
* Emits `TeamChanged`.
|
|
741
|
+
*
|
|
742
|
+
* Weight: `O(1)`
|
|
743
|
+
*/
|
|
744
|
+
set_team: TxDescriptor<Anonymize<Id81m8flopt8ha>>;
|
|
745
|
+
/**
|
|
746
|
+
* Set the metadata for an asset.
|
|
747
|
+
*
|
|
748
|
+
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
749
|
+
*
|
|
750
|
+
* Funds of sender are reserved according to the formula:
|
|
751
|
+
* `MetadataDepositBase + MetadataDepositPerByte * (name.len + symbol.len)` taking into
|
|
752
|
+
* account any already reserved funds.
|
|
753
|
+
*
|
|
754
|
+
* - `id`: The identifier of the asset to update.
|
|
755
|
+
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
756
|
+
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
757
|
+
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
758
|
+
*
|
|
759
|
+
* Emits `MetadataSet`.
|
|
760
|
+
*
|
|
761
|
+
* Weight: `O(1)`
|
|
762
|
+
*/
|
|
763
|
+
set_metadata: TxDescriptor<Anonymize<I8hff7chabggkd>>;
|
|
764
|
+
/**
|
|
765
|
+
* Clear the metadata for an asset.
|
|
766
|
+
*
|
|
767
|
+
* Origin must be Signed and the sender should be the Owner of the asset `id`.
|
|
768
|
+
*
|
|
769
|
+
* Any deposit is freed for the asset owner.
|
|
770
|
+
*
|
|
771
|
+
* - `id`: The identifier of the asset to clear.
|
|
772
|
+
*
|
|
773
|
+
* Emits `MetadataCleared`.
|
|
774
|
+
*
|
|
775
|
+
* Weight: `O(1)`
|
|
776
|
+
*/
|
|
777
|
+
clear_metadata: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
778
|
+
/**
|
|
779
|
+
* Force the metadata for an asset to some value.
|
|
780
|
+
*
|
|
781
|
+
* Origin must be ForceOrigin.
|
|
782
|
+
*
|
|
783
|
+
* Any deposit is left alone.
|
|
784
|
+
*
|
|
785
|
+
* - `id`: The identifier of the asset to update.
|
|
786
|
+
* - `name`: The user friendly name of this asset. Limited in length by `StringLimit`.
|
|
787
|
+
* - `symbol`: The exchange symbol for this asset. Limited in length by `StringLimit`.
|
|
788
|
+
* - `decimals`: The number of decimals this asset uses to represent one unit.
|
|
789
|
+
*
|
|
790
|
+
* Emits `MetadataSet`.
|
|
791
|
+
*
|
|
792
|
+
* Weight: `O(N + S)` where N and S are the length of the name and symbol respectively.
|
|
793
|
+
*/
|
|
794
|
+
force_set_metadata: TxDescriptor<Anonymize<I49i39mtj1ivbs>>;
|
|
795
|
+
/**
|
|
796
|
+
* Clear the metadata for an asset.
|
|
797
|
+
*
|
|
798
|
+
* Origin must be ForceOrigin.
|
|
799
|
+
*
|
|
800
|
+
* Any deposit is returned.
|
|
801
|
+
*
|
|
802
|
+
* - `id`: The identifier of the asset to clear.
|
|
803
|
+
*
|
|
804
|
+
* Emits `MetadataCleared`.
|
|
805
|
+
*
|
|
806
|
+
* Weight: `O(1)`
|
|
807
|
+
*/
|
|
808
|
+
force_clear_metadata: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
809
|
+
/**
|
|
810
|
+
* Alter the attributes of a given asset.
|
|
811
|
+
*
|
|
812
|
+
* Origin must be `ForceOrigin`.
|
|
813
|
+
*
|
|
814
|
+
* - `id`: The identifier of the asset.
|
|
815
|
+
* - `owner`: The new Owner of this asset.
|
|
816
|
+
* - `issuer`: The new Issuer of this asset.
|
|
817
|
+
* - `admin`: The new Admin of this asset.
|
|
818
|
+
* - `freezer`: The new Freezer of this asset.
|
|
819
|
+
* - `min_balance`: The minimum balance of this new asset that any single account must
|
|
820
|
+
* have. If an account's balance is reduced below this, then it collapses to zero.
|
|
821
|
+
* - `is_sufficient`: Whether a non-zero balance of this asset is deposit of sufficient
|
|
822
|
+
* value to account for the state bloat associated with its balance storage. If set to
|
|
823
|
+
* `true`, then non-zero balances may be stored without a `consumer` reference (and thus
|
|
824
|
+
* an ED in the Balances pallet or whatever else is used to control user-account state
|
|
825
|
+
* growth).
|
|
826
|
+
* - `is_frozen`: Whether this asset class is frozen except for permissioned/admin
|
|
827
|
+
* instructions.
|
|
828
|
+
*
|
|
829
|
+
* Emits `AssetStatusChanged` with the identity of the asset.
|
|
830
|
+
*
|
|
831
|
+
* Weight: `O(1)`
|
|
832
|
+
*/
|
|
833
|
+
force_asset_status: TxDescriptor<Anonymize<Ifkr2kcak2vto1>>;
|
|
834
|
+
/**
|
|
835
|
+
* Approve an amount of asset for transfer by a delegated third-party account.
|
|
836
|
+
*
|
|
837
|
+
* Origin must be Signed.
|
|
838
|
+
*
|
|
839
|
+
* Ensures that `ApprovalDeposit` worth of `Currency` is reserved from signing account
|
|
840
|
+
* for the purpose of holding the approval. If some non-zero amount of assets is already
|
|
841
|
+
* approved from signing account to `delegate`, then it is topped up or unreserved to
|
|
842
|
+
* meet the right value.
|
|
843
|
+
*
|
|
844
|
+
* NOTE: The signing account does not need to own `amount` of assets at the point of
|
|
845
|
+
* making this call.
|
|
846
|
+
*
|
|
847
|
+
* - `id`: The identifier of the asset.
|
|
848
|
+
* - `delegate`: The account to delegate permission to transfer asset.
|
|
849
|
+
* - `amount`: The amount of asset that may be transferred by `delegate`. If there is
|
|
850
|
+
* already an approval in place, then this acts additively.
|
|
851
|
+
*
|
|
852
|
+
* Emits `ApprovedTransfer` on success.
|
|
853
|
+
*
|
|
854
|
+
* Weight: `O(1)`
|
|
855
|
+
*/
|
|
856
|
+
approve_transfer: TxDescriptor<Anonymize<I1ju6r8q0cs9jt>>;
|
|
857
|
+
/**
|
|
858
|
+
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
859
|
+
*
|
|
860
|
+
* Origin must be Signed and there must be an approval in place between signer and
|
|
861
|
+
* `delegate`.
|
|
862
|
+
*
|
|
863
|
+
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
864
|
+
*
|
|
865
|
+
* - `id`: The identifier of the asset.
|
|
866
|
+
* - `delegate`: The account delegated permission to transfer asset.
|
|
867
|
+
*
|
|
868
|
+
* Emits `ApprovalCancelled` on success.
|
|
869
|
+
*
|
|
870
|
+
* Weight: `O(1)`
|
|
871
|
+
*/
|
|
872
|
+
cancel_approval: TxDescriptor<Anonymize<I4kpeq6j7cd5bu>>;
|
|
873
|
+
/**
|
|
874
|
+
* Cancel all of some asset approved for delegated transfer by a third-party account.
|
|
875
|
+
*
|
|
876
|
+
* Origin must be either ForceOrigin or Signed origin with the signer being the Admin
|
|
877
|
+
* account of the asset `id`.
|
|
878
|
+
*
|
|
879
|
+
* Unreserves any deposit previously reserved by `approve_transfer` for the approval.
|
|
880
|
+
*
|
|
881
|
+
* - `id`: The identifier of the asset.
|
|
882
|
+
* - `delegate`: The account delegated permission to transfer asset.
|
|
883
|
+
*
|
|
884
|
+
* Emits `ApprovalCancelled` on success.
|
|
885
|
+
*
|
|
886
|
+
* Weight: `O(1)`
|
|
887
|
+
*/
|
|
888
|
+
force_cancel_approval: TxDescriptor<Anonymize<I5na1ka76k6811>>;
|
|
889
|
+
/**
|
|
890
|
+
* Transfer some asset balance from a previously delegated account to some third-party
|
|
891
|
+
* account.
|
|
892
|
+
*
|
|
893
|
+
* Origin must be Signed and there must be an approval in place by the `owner` to the
|
|
894
|
+
* signer.
|
|
895
|
+
*
|
|
896
|
+
* If the entire amount approved for transfer is transferred, then any deposit previously
|
|
897
|
+
* reserved by `approve_transfer` is unreserved.
|
|
898
|
+
*
|
|
899
|
+
* - `id`: The identifier of the asset.
|
|
900
|
+
* - `owner`: The account which previously approved for a transfer of at least `amount` and
|
|
901
|
+
* from which the asset balance will be withdrawn.
|
|
902
|
+
* - `destination`: The account to which the asset balance of `amount` will be transferred.
|
|
903
|
+
* - `amount`: The amount of assets to transfer.
|
|
904
|
+
*
|
|
905
|
+
* Emits `TransferredApproved` on success.
|
|
906
|
+
*
|
|
907
|
+
* Weight: `O(1)`
|
|
908
|
+
*/
|
|
909
|
+
transfer_approved: TxDescriptor<Anonymize<I59mhdb9omdqfa>>;
|
|
910
|
+
/**
|
|
911
|
+
* Create an asset account for non-provider assets.
|
|
912
|
+
*
|
|
913
|
+
* A deposit will be taken from the signer account.
|
|
914
|
+
*
|
|
915
|
+
* - `origin`: Must be Signed; the signer account must have sufficient funds for a deposit
|
|
916
|
+
* to be taken.
|
|
917
|
+
* - `id`: The identifier of the asset for the account to be created.
|
|
918
|
+
*
|
|
919
|
+
* Emits `Touched` event when successful.
|
|
920
|
+
*/
|
|
921
|
+
touch: TxDescriptor<Anonymize<Ic5b47dj4coa3r>>;
|
|
922
|
+
/**
|
|
923
|
+
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
|
|
924
|
+
* account.
|
|
925
|
+
*
|
|
926
|
+
* The origin must be Signed.
|
|
927
|
+
*
|
|
928
|
+
* - `id`: The identifier of the asset for which the caller would like the deposit
|
|
929
|
+
* refunded.
|
|
930
|
+
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
|
|
931
|
+
*
|
|
932
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
933
|
+
* the asset account contains holds or freezes in place.
|
|
934
|
+
*
|
|
935
|
+
* Emits `Refunded` event when successful.
|
|
936
|
+
*/
|
|
937
|
+
refund: TxDescriptor<Anonymize<I9vl5kpk0fpakt>>;
|
|
938
|
+
/**
|
|
939
|
+
* Sets the minimum balance of an asset.
|
|
940
|
+
*
|
|
941
|
+
* Only works if there aren't any accounts that are holding the asset or if
|
|
942
|
+
* the new value of `min_balance` is less than the old one.
|
|
943
|
+
*
|
|
944
|
+
* Origin must be Signed and the sender has to be the Owner of the
|
|
945
|
+
* asset `id`.
|
|
946
|
+
*
|
|
947
|
+
* - `id`: The identifier of the asset.
|
|
948
|
+
* - `min_balance`: The new value of `min_balance`.
|
|
949
|
+
*
|
|
950
|
+
* Emits `AssetMinBalanceChanged` event when successful.
|
|
951
|
+
*/
|
|
952
|
+
set_min_balance: TxDescriptor<Anonymize<I717jt61hu19b4>>;
|
|
953
|
+
/**
|
|
954
|
+
* Create an asset account for `who`.
|
|
955
|
+
*
|
|
956
|
+
* A deposit will be taken from the signer account.
|
|
957
|
+
*
|
|
958
|
+
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
|
|
959
|
+
* must have sufficient funds for a deposit to be taken.
|
|
960
|
+
* - `id`: The identifier of the asset for the account to be created.
|
|
961
|
+
* - `who`: The account to be created.
|
|
962
|
+
*
|
|
963
|
+
* Emits `Touched` event when successful.
|
|
964
|
+
*/
|
|
965
|
+
touch_other: TxDescriptor<Anonymize<I1nlrtd1epki2d>>;
|
|
966
|
+
/**
|
|
967
|
+
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
|
|
968
|
+
*
|
|
969
|
+
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
|
|
970
|
+
* order to burn a non-zero balance of the asset, the caller must be the account and should
|
|
971
|
+
* use `refund`.
|
|
972
|
+
*
|
|
973
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
974
|
+
* - `who`: The account to refund.
|
|
975
|
+
*
|
|
976
|
+
* It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
|
|
977
|
+
* the asset account contains holds or freezes in place.
|
|
978
|
+
*
|
|
979
|
+
* Emits `Refunded` event when successful.
|
|
980
|
+
*/
|
|
981
|
+
refund_other: TxDescriptor<Anonymize<I1nlrtd1epki2d>>;
|
|
982
|
+
/**
|
|
983
|
+
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
|
|
984
|
+
*
|
|
985
|
+
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
|
|
986
|
+
*
|
|
987
|
+
* - `id`: The identifier of the account's asset.
|
|
988
|
+
* - `who`: The account to be unblocked.
|
|
989
|
+
*
|
|
990
|
+
* Emits `Blocked`.
|
|
991
|
+
*
|
|
992
|
+
* Weight: `O(1)`
|
|
993
|
+
*/
|
|
994
|
+
block: TxDescriptor<Anonymize<I1nlrtd1epki2d>>;
|
|
995
|
+
/**
|
|
996
|
+
* Transfer the entire transferable balance from the caller asset account.
|
|
997
|
+
*
|
|
998
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
999
|
+
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
|
1000
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
1001
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
1002
|
+
* deposits, etc...
|
|
1003
|
+
*
|
|
1004
|
+
* The dispatch origin of this call must be Signed.
|
|
1005
|
+
*
|
|
1006
|
+
* - `id`: The identifier of the asset for the account holding a deposit.
|
|
1007
|
+
* - `dest`: The recipient of the transfer.
|
|
1008
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
1009
|
+
* of the funds the asset account has, causing the sender asset account to be killed
|
|
1010
|
+
* (false), or transfer everything except at least the minimum balance, which will
|
|
1011
|
+
* guarantee to keep the sender asset account alive (true).
|
|
1012
|
+
*/
|
|
1013
|
+
transfer_all: TxDescriptor<Anonymize<I7f7v8192r1lmq>>;
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
type IEvent = {};
|
|
1017
|
+
type IError = {
|
|
1018
|
+
System: {
|
|
1019
|
+
/**
|
|
1020
|
+
* The name of specification does not match between the current runtime
|
|
1021
|
+
* and the new runtime.
|
|
1022
|
+
*/
|
|
1023
|
+
InvalidSpecName: PlainDescriptor<undefined>;
|
|
1024
|
+
/**
|
|
1025
|
+
* The specification version is not allowed to decrease between the current runtime
|
|
1026
|
+
* and the new runtime.
|
|
1027
|
+
*/
|
|
1028
|
+
SpecVersionNeedsToIncrease: PlainDescriptor<undefined>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Failed to extract the runtime version from the new runtime.
|
|
1031
|
+
*
|
|
1032
|
+
* Either calling `Core_version` or decoding `RuntimeVersion` failed.
|
|
1033
|
+
*/
|
|
1034
|
+
FailedToExtractRuntimeVersion: PlainDescriptor<undefined>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Suicide called when the account has non-default composite data.
|
|
1037
|
+
*/
|
|
1038
|
+
NonDefaultComposite: PlainDescriptor<undefined>;
|
|
1039
|
+
/**
|
|
1040
|
+
* There is a non-zero reference count preventing the account from being purged.
|
|
1041
|
+
*/
|
|
1042
|
+
NonZeroRefCount: PlainDescriptor<undefined>;
|
|
1043
|
+
/**
|
|
1044
|
+
* The origin filter prevent the call to be dispatched.
|
|
1045
|
+
*/
|
|
1046
|
+
CallFiltered: PlainDescriptor<undefined>;
|
|
1047
|
+
/**
|
|
1048
|
+
* A multi-block migration is ongoing and prevents the current code from being replaced.
|
|
1049
|
+
*/
|
|
1050
|
+
MultiBlockMigrationsOngoing: PlainDescriptor<undefined>;
|
|
1051
|
+
/**
|
|
1052
|
+
* The specified [`Task`] is not valid.
|
|
1053
|
+
*/
|
|
1054
|
+
InvalidTask: PlainDescriptor<undefined>;
|
|
1055
|
+
/**
|
|
1056
|
+
* The specified [`Task`] failed during execution.
|
|
1057
|
+
*/
|
|
1058
|
+
FailedTask: PlainDescriptor<undefined>;
|
|
1059
|
+
/**
|
|
1060
|
+
* No upgrade authorized.
|
|
1061
|
+
*/
|
|
1062
|
+
NothingAuthorized: PlainDescriptor<undefined>;
|
|
1063
|
+
/**
|
|
1064
|
+
* The submitted code is not authorized.
|
|
1065
|
+
*/
|
|
1066
|
+
Unauthorized: PlainDescriptor<undefined>;
|
|
1067
|
+
};
|
|
1068
|
+
ParachainSystem: {
|
|
1069
|
+
/**
|
|
1070
|
+
* Attempt to upgrade validation function while existing upgrade pending.
|
|
1071
|
+
*/
|
|
1072
|
+
OverlappingUpgrades: PlainDescriptor<undefined>;
|
|
1073
|
+
/**
|
|
1074
|
+
* Polkadot currently prohibits this parachain from upgrading its validation function.
|
|
1075
|
+
*/
|
|
1076
|
+
ProhibitedByPolkadot: PlainDescriptor<undefined>;
|
|
1077
|
+
/**
|
|
1078
|
+
* The supplied validation function has compiled into a blob larger than Polkadot is
|
|
1079
|
+
* willing to run.
|
|
1080
|
+
*/
|
|
1081
|
+
TooBig: PlainDescriptor<undefined>;
|
|
1082
|
+
/**
|
|
1083
|
+
* The inherent which supplies the validation data did not run this block.
|
|
1084
|
+
*/
|
|
1085
|
+
ValidationDataNotAvailable: PlainDescriptor<undefined>;
|
|
1086
|
+
/**
|
|
1087
|
+
* The inherent which supplies the host configuration did not run this block.
|
|
1088
|
+
*/
|
|
1089
|
+
HostConfigurationNotAvailable: PlainDescriptor<undefined>;
|
|
1090
|
+
/**
|
|
1091
|
+
* No validation function upgrade is currently scheduled.
|
|
1092
|
+
*/
|
|
1093
|
+
NotScheduled: PlainDescriptor<undefined>;
|
|
1094
|
+
};
|
|
1095
|
+
Preimage: {
|
|
1096
|
+
/**
|
|
1097
|
+
* Preimage is too large to store on-chain.
|
|
1098
|
+
*/
|
|
1099
|
+
TooBig: PlainDescriptor<undefined>;
|
|
1100
|
+
/**
|
|
1101
|
+
* Preimage has already been noted on-chain.
|
|
1102
|
+
*/
|
|
1103
|
+
AlreadyNoted: PlainDescriptor<undefined>;
|
|
1104
|
+
/**
|
|
1105
|
+
* The user is not authorized to perform this action.
|
|
1106
|
+
*/
|
|
1107
|
+
NotAuthorized: PlainDescriptor<undefined>;
|
|
1108
|
+
/**
|
|
1109
|
+
* The preimage cannot be removed since it has not yet been noted.
|
|
1110
|
+
*/
|
|
1111
|
+
NotNoted: PlainDescriptor<undefined>;
|
|
1112
|
+
/**
|
|
1113
|
+
* A preimage may not be removed when there are outstanding requests.
|
|
1114
|
+
*/
|
|
1115
|
+
Requested: PlainDescriptor<undefined>;
|
|
1116
|
+
/**
|
|
1117
|
+
* The preimage request cannot be removed since no outstanding requests exist.
|
|
1118
|
+
*/
|
|
1119
|
+
NotRequested: PlainDescriptor<undefined>;
|
|
1120
|
+
/**
|
|
1121
|
+
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
|
|
1122
|
+
*/
|
|
1123
|
+
TooMany: PlainDescriptor<undefined>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Too few hashes were requested to be upgraded (i.e. zero).
|
|
1126
|
+
*/
|
|
1127
|
+
TooFew: PlainDescriptor<undefined>;
|
|
1128
|
+
};
|
|
1129
|
+
Scheduler: {
|
|
1130
|
+
/**
|
|
1131
|
+
* Failed to schedule a call
|
|
1132
|
+
*/
|
|
1133
|
+
FailedToSchedule: PlainDescriptor<undefined>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Cannot find the scheduled call.
|
|
1136
|
+
*/
|
|
1137
|
+
NotFound: PlainDescriptor<undefined>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Given target block number is in the past.
|
|
1140
|
+
*/
|
|
1141
|
+
TargetBlockNumberInPast: PlainDescriptor<undefined>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Reschedule failed because it does not change scheduled time.
|
|
1144
|
+
*/
|
|
1145
|
+
RescheduleNoChange: PlainDescriptor<undefined>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Attempt to use a non-named function on a named task.
|
|
1148
|
+
*/
|
|
1149
|
+
Named: PlainDescriptor<undefined>;
|
|
1150
|
+
};
|
|
1151
|
+
Balances: {
|
|
1152
|
+
/**
|
|
1153
|
+
* Vesting balance too high to send value.
|
|
1154
|
+
*/
|
|
1155
|
+
VestingBalance: PlainDescriptor<undefined>;
|
|
1156
|
+
/**
|
|
1157
|
+
* Account liquidity restrictions prevent withdrawal.
|
|
1158
|
+
*/
|
|
1159
|
+
LiquidityRestrictions: PlainDescriptor<undefined>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Balance too low to send value.
|
|
1162
|
+
*/
|
|
1163
|
+
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Value too low to create account due to existential deposit.
|
|
1166
|
+
*/
|
|
1167
|
+
ExistentialDeposit: PlainDescriptor<undefined>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Transfer/payment would kill account.
|
|
1170
|
+
*/
|
|
1171
|
+
Expendability: PlainDescriptor<undefined>;
|
|
1172
|
+
/**
|
|
1173
|
+
* A vesting schedule already exists for this account.
|
|
1174
|
+
*/
|
|
1175
|
+
ExistingVestingSchedule: PlainDescriptor<undefined>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Beneficiary account must pre-exist.
|
|
1178
|
+
*/
|
|
1179
|
+
DeadAccount: PlainDescriptor<undefined>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Number of named reserves exceed `MaxReserves`.
|
|
1182
|
+
*/
|
|
1183
|
+
TooManyReserves: PlainDescriptor<undefined>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
|
|
1186
|
+
*/
|
|
1187
|
+
TooManyHolds: PlainDescriptor<undefined>;
|
|
1188
|
+
/**
|
|
1189
|
+
* Number of freezes exceed `MaxFreezes`.
|
|
1190
|
+
*/
|
|
1191
|
+
TooManyFreezes: PlainDescriptor<undefined>;
|
|
1192
|
+
/**
|
|
1193
|
+
* The issuance cannot be modified since it is already deactivated.
|
|
1194
|
+
*/
|
|
1195
|
+
IssuanceDeactivated: PlainDescriptor<undefined>;
|
|
1196
|
+
/**
|
|
1197
|
+
* The delta cannot be zero.
|
|
1198
|
+
*/
|
|
1199
|
+
DeltaZero: PlainDescriptor<undefined>;
|
|
1200
|
+
};
|
|
1201
|
+
Vesting: {
|
|
1202
|
+
/**
|
|
1203
|
+
* The account given is not vesting.
|
|
1204
|
+
*/
|
|
1205
|
+
NotVesting: PlainDescriptor<undefined>;
|
|
1206
|
+
/**
|
|
1207
|
+
* The account already has `MaxVestingSchedules` count of schedules and thus
|
|
1208
|
+
* cannot add another one. Consider merging existing schedules in order to add another.
|
|
1209
|
+
*/
|
|
1210
|
+
AtMaxVestingSchedules: PlainDescriptor<undefined>;
|
|
1211
|
+
/**
|
|
1212
|
+
* Amount being transferred is too low to create a vesting schedule.
|
|
1213
|
+
*/
|
|
1214
|
+
AmountLow: PlainDescriptor<undefined>;
|
|
1215
|
+
/**
|
|
1216
|
+
* An index was out of bounds of the vesting schedules.
|
|
1217
|
+
*/
|
|
1218
|
+
ScheduleIndexOutOfBounds: PlainDescriptor<undefined>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Failed to create a new schedule because some parameter was invalid.
|
|
1221
|
+
*/
|
|
1222
|
+
InvalidScheduleParams: PlainDescriptor<undefined>;
|
|
1223
|
+
};
|
|
1224
|
+
Claims: {
|
|
1225
|
+
/**
|
|
1226
|
+
* Invalid Ethereum signature.
|
|
1227
|
+
*/
|
|
1228
|
+
InvalidEthereumSignature: PlainDescriptor<undefined>;
|
|
1229
|
+
/**
|
|
1230
|
+
* Ethereum address has no claim.
|
|
1231
|
+
*/
|
|
1232
|
+
SignerHasNoClaim: PlainDescriptor<undefined>;
|
|
1233
|
+
/**
|
|
1234
|
+
* Account ID sending transaction has no claim.
|
|
1235
|
+
*/
|
|
1236
|
+
SenderHasNoClaim: PlainDescriptor<undefined>;
|
|
1237
|
+
/**
|
|
1238
|
+
* There's not enough in the pot to pay out some unvested amount. Generally implies a
|
|
1239
|
+
* logic error.
|
|
1240
|
+
*/
|
|
1241
|
+
PotUnderflow: PlainDescriptor<undefined>;
|
|
1242
|
+
/**
|
|
1243
|
+
* A needed statement was not included.
|
|
1244
|
+
*/
|
|
1245
|
+
InvalidStatement: PlainDescriptor<undefined>;
|
|
1246
|
+
/**
|
|
1247
|
+
* The account already has a vested balance.
|
|
1248
|
+
*/
|
|
1249
|
+
VestedBalanceExists: PlainDescriptor<undefined>;
|
|
1250
|
+
};
|
|
1251
|
+
CollatorSelection: {
|
|
1252
|
+
/**
|
|
1253
|
+
* The pallet has too many candidates.
|
|
1254
|
+
*/
|
|
1255
|
+
TooManyCandidates: PlainDescriptor<undefined>;
|
|
1256
|
+
/**
|
|
1257
|
+
* Leaving would result in too few candidates.
|
|
1258
|
+
*/
|
|
1259
|
+
TooFewEligibleCollators: PlainDescriptor<undefined>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Account is already a candidate.
|
|
1262
|
+
*/
|
|
1263
|
+
AlreadyCandidate: PlainDescriptor<undefined>;
|
|
1264
|
+
/**
|
|
1265
|
+
* Account is not a candidate.
|
|
1266
|
+
*/
|
|
1267
|
+
NotCandidate: PlainDescriptor<undefined>;
|
|
1268
|
+
/**
|
|
1269
|
+
* There are too many Invulnerables.
|
|
1270
|
+
*/
|
|
1271
|
+
TooManyInvulnerables: PlainDescriptor<undefined>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Account is already an Invulnerable.
|
|
1274
|
+
*/
|
|
1275
|
+
AlreadyInvulnerable: PlainDescriptor<undefined>;
|
|
1276
|
+
/**
|
|
1277
|
+
* Account is not an Invulnerable.
|
|
1278
|
+
*/
|
|
1279
|
+
NotInvulnerable: PlainDescriptor<undefined>;
|
|
1280
|
+
/**
|
|
1281
|
+
* Account has no associated validator ID.
|
|
1282
|
+
*/
|
|
1283
|
+
NoAssociatedValidatorId: PlainDescriptor<undefined>;
|
|
1284
|
+
/**
|
|
1285
|
+
* Validator ID is not yet registered.
|
|
1286
|
+
*/
|
|
1287
|
+
ValidatorNotRegistered: PlainDescriptor<undefined>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Could not insert in the candidate list.
|
|
1290
|
+
*/
|
|
1291
|
+
InsertToCandidateListFailed: PlainDescriptor<undefined>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Could not remove from the candidate list.
|
|
1294
|
+
*/
|
|
1295
|
+
RemoveFromCandidateListFailed: PlainDescriptor<undefined>;
|
|
1296
|
+
/**
|
|
1297
|
+
* New deposit amount would be below the minimum candidacy bond.
|
|
1298
|
+
*/
|
|
1299
|
+
DepositTooLow: PlainDescriptor<undefined>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Could not update the candidate list.
|
|
1302
|
+
*/
|
|
1303
|
+
UpdateCandidateListFailed: PlainDescriptor<undefined>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Deposit amount is too low to take the target's slot in the candidate list.
|
|
1306
|
+
*/
|
|
1307
|
+
InsufficientBond: PlainDescriptor<undefined>;
|
|
1308
|
+
/**
|
|
1309
|
+
* The target account to be replaced in the candidate list is not a candidate.
|
|
1310
|
+
*/
|
|
1311
|
+
TargetIsNotCandidate: PlainDescriptor<undefined>;
|
|
1312
|
+
/**
|
|
1313
|
+
* The updated deposit amount is equal to the amount already reserved.
|
|
1314
|
+
*/
|
|
1315
|
+
IdenticalDeposit: PlainDescriptor<undefined>;
|
|
1316
|
+
/**
|
|
1317
|
+
* Cannot lower candidacy bond while occupying a future collator slot in the list.
|
|
1318
|
+
*/
|
|
1319
|
+
InvalidUnreserve: PlainDescriptor<undefined>;
|
|
1320
|
+
};
|
|
1321
|
+
Session: {
|
|
1322
|
+
/**
|
|
1323
|
+
* Invalid ownership proof.
|
|
1324
|
+
*/
|
|
1325
|
+
InvalidProof: PlainDescriptor<undefined>;
|
|
1326
|
+
/**
|
|
1327
|
+
* No associated validator ID for account.
|
|
1328
|
+
*/
|
|
1329
|
+
NoAssociatedValidatorId: PlainDescriptor<undefined>;
|
|
1330
|
+
/**
|
|
1331
|
+
* Registered duplicate key.
|
|
1332
|
+
*/
|
|
1333
|
+
DuplicatedKey: PlainDescriptor<undefined>;
|
|
1334
|
+
/**
|
|
1335
|
+
* No keys are associated with this account.
|
|
1336
|
+
*/
|
|
1337
|
+
NoKeys: PlainDescriptor<undefined>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Key setting account is not live, so it's impossible to associate keys.
|
|
1340
|
+
*/
|
|
1341
|
+
NoAccount: PlainDescriptor<undefined>;
|
|
1342
|
+
};
|
|
1343
|
+
XcmpQueue: {
|
|
1344
|
+
/**
|
|
1345
|
+
* Setting the queue config failed since one of its values was invalid.
|
|
1346
|
+
*/
|
|
1347
|
+
BadQueueConfig: PlainDescriptor<undefined>;
|
|
1348
|
+
/**
|
|
1349
|
+
* The execution is already suspended.
|
|
1350
|
+
*/
|
|
1351
|
+
AlreadySuspended: PlainDescriptor<undefined>;
|
|
1352
|
+
/**
|
|
1353
|
+
* The execution is already resumed.
|
|
1354
|
+
*/
|
|
1355
|
+
AlreadyResumed: PlainDescriptor<undefined>;
|
|
1356
|
+
/**
|
|
1357
|
+
* There are too many active outbound channels.
|
|
1358
|
+
*/
|
|
1359
|
+
TooManyActiveOutboundChannels: PlainDescriptor<undefined>;
|
|
1360
|
+
/**
|
|
1361
|
+
* The message is too big.
|
|
1362
|
+
*/
|
|
1363
|
+
TooBig: PlainDescriptor<undefined>;
|
|
1364
|
+
};
|
|
1365
|
+
PolkadotXcm: {
|
|
1366
|
+
/**
|
|
1367
|
+
* The desired destination was unreachable, generally because there is a no way of routing
|
|
1368
|
+
* to it.
|
|
1369
|
+
*/
|
|
1370
|
+
Unreachable: PlainDescriptor<undefined>;
|
|
1371
|
+
/**
|
|
1372
|
+
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
1373
|
+
* Perhaps a lack of space for buffering the message.
|
|
1374
|
+
*/
|
|
1375
|
+
SendFailure: PlainDescriptor<undefined>;
|
|
1376
|
+
/**
|
|
1377
|
+
* The message execution fails the filter.
|
|
1378
|
+
*/
|
|
1379
|
+
Filtered: PlainDescriptor<undefined>;
|
|
1380
|
+
/**
|
|
1381
|
+
* The message's weight could not be determined.
|
|
1382
|
+
*/
|
|
1383
|
+
UnweighableMessage: PlainDescriptor<undefined>;
|
|
1384
|
+
/**
|
|
1385
|
+
* The destination `Location` provided cannot be inverted.
|
|
1386
|
+
*/
|
|
1387
|
+
DestinationNotInvertible: PlainDescriptor<undefined>;
|
|
1388
|
+
/**
|
|
1389
|
+
* The assets to be sent are empty.
|
|
1390
|
+
*/
|
|
1391
|
+
Empty: PlainDescriptor<undefined>;
|
|
1392
|
+
/**
|
|
1393
|
+
* Could not re-anchor the assets to declare the fees for the destination chain.
|
|
1394
|
+
*/
|
|
1395
|
+
CannotReanchor: PlainDescriptor<undefined>;
|
|
1396
|
+
/**
|
|
1397
|
+
* Too many assets have been attempted for transfer.
|
|
1398
|
+
*/
|
|
1399
|
+
TooManyAssets: PlainDescriptor<undefined>;
|
|
1400
|
+
/**
|
|
1401
|
+
* Origin is invalid for sending.
|
|
1402
|
+
*/
|
|
1403
|
+
InvalidOrigin: PlainDescriptor<undefined>;
|
|
1404
|
+
/**
|
|
1405
|
+
* The version of the `Versioned` value used is not able to be interpreted.
|
|
1406
|
+
*/
|
|
1407
|
+
BadVersion: PlainDescriptor<undefined>;
|
|
1408
|
+
/**
|
|
1409
|
+
* The given location could not be used (e.g. because it cannot be expressed in the
|
|
1410
|
+
* desired version of XCM).
|
|
1411
|
+
*/
|
|
1412
|
+
BadLocation: PlainDescriptor<undefined>;
|
|
1413
|
+
/**
|
|
1414
|
+
* The referenced subscription could not be found.
|
|
1415
|
+
*/
|
|
1416
|
+
NoSubscription: PlainDescriptor<undefined>;
|
|
1417
|
+
/**
|
|
1418
|
+
* The location is invalid since it already has a subscription from us.
|
|
1419
|
+
*/
|
|
1420
|
+
AlreadySubscribed: PlainDescriptor<undefined>;
|
|
1421
|
+
/**
|
|
1422
|
+
* Could not check-out the assets for teleportation to the destination chain.
|
|
1423
|
+
*/
|
|
1424
|
+
CannotCheckOutTeleport: PlainDescriptor<undefined>;
|
|
1425
|
+
/**
|
|
1426
|
+
* The owner does not own (all) of the asset that they wish to do the operation on.
|
|
1427
|
+
*/
|
|
1428
|
+
LowBalance: PlainDescriptor<undefined>;
|
|
1429
|
+
/**
|
|
1430
|
+
* The asset owner has too many locks on the asset.
|
|
1431
|
+
*/
|
|
1432
|
+
TooManyLocks: PlainDescriptor<undefined>;
|
|
1433
|
+
/**
|
|
1434
|
+
* The given account is not an identifiable sovereign account for any location.
|
|
1435
|
+
*/
|
|
1436
|
+
AccountNotSovereign: PlainDescriptor<undefined>;
|
|
1437
|
+
/**
|
|
1438
|
+
* The operation required fees to be paid which the initiator could not meet.
|
|
1439
|
+
*/
|
|
1440
|
+
FeesNotMet: PlainDescriptor<undefined>;
|
|
1441
|
+
/**
|
|
1442
|
+
* A remote lock with the corresponding data could not be found.
|
|
1443
|
+
*/
|
|
1444
|
+
LockNotFound: PlainDescriptor<undefined>;
|
|
1445
|
+
/**
|
|
1446
|
+
* The unlock operation cannot succeed because there are still consumers of the lock.
|
|
1447
|
+
*/
|
|
1448
|
+
InUse: PlainDescriptor<undefined>;
|
|
1449
|
+
/**
|
|
1450
|
+
* Invalid asset, reserve chain could not be determined for it.
|
|
1451
|
+
*/
|
|
1452
|
+
InvalidAssetUnknownReserve: PlainDescriptor<undefined>;
|
|
1453
|
+
/**
|
|
1454
|
+
* Invalid asset, do not support remote asset reserves with different fees reserves.
|
|
1455
|
+
*/
|
|
1456
|
+
InvalidAssetUnsupportedReserve: PlainDescriptor<undefined>;
|
|
1457
|
+
/**
|
|
1458
|
+
* Too many assets with different reserve locations have been attempted for transfer.
|
|
1459
|
+
*/
|
|
1460
|
+
TooManyReserves: PlainDescriptor<undefined>;
|
|
1461
|
+
/**
|
|
1462
|
+
* Local XCM execution incomplete.
|
|
1463
|
+
*/
|
|
1464
|
+
LocalExecutionIncomplete: PlainDescriptor<undefined>;
|
|
1465
|
+
/**
|
|
1466
|
+
* Too many locations authorized to alias origin.
|
|
1467
|
+
*/
|
|
1468
|
+
TooManyAuthorizedAliases: PlainDescriptor<undefined>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Expiry block number is in the past.
|
|
1471
|
+
*/
|
|
1472
|
+
ExpiresInPast: PlainDescriptor<undefined>;
|
|
1473
|
+
/**
|
|
1474
|
+
* The alias to remove authorization for was not found.
|
|
1475
|
+
*/
|
|
1476
|
+
AliasNotFound: PlainDescriptor<undefined>;
|
|
1477
|
+
/**
|
|
1478
|
+
* Local XCM execution incomplete with the actual XCM error and the index of the
|
|
1479
|
+
* instruction that caused the error.
|
|
1480
|
+
*/
|
|
1481
|
+
LocalExecutionIncompleteWithError: PlainDescriptor<Anonymize<I5r8t4iaend96p>>;
|
|
1482
|
+
};
|
|
1483
|
+
MessageQueue: {
|
|
1484
|
+
/**
|
|
1485
|
+
* Page is not reapable because it has items remaining to be processed and is not old
|
|
1486
|
+
* enough.
|
|
1487
|
+
*/
|
|
1488
|
+
NotReapable: PlainDescriptor<undefined>;
|
|
1489
|
+
/**
|
|
1490
|
+
* Page to be reaped does not exist.
|
|
1491
|
+
*/
|
|
1492
|
+
NoPage: PlainDescriptor<undefined>;
|
|
1493
|
+
/**
|
|
1494
|
+
* The referenced message could not be found.
|
|
1495
|
+
*/
|
|
1496
|
+
NoMessage: PlainDescriptor<undefined>;
|
|
1497
|
+
/**
|
|
1498
|
+
* The message was already processed and cannot be processed again.
|
|
1499
|
+
*/
|
|
1500
|
+
AlreadyProcessed: PlainDescriptor<undefined>;
|
|
1501
|
+
/**
|
|
1502
|
+
* The message is queued for future execution.
|
|
1503
|
+
*/
|
|
1504
|
+
Queued: PlainDescriptor<undefined>;
|
|
1505
|
+
/**
|
|
1506
|
+
* There is temporarily not enough weight to continue servicing messages.
|
|
1507
|
+
*/
|
|
1508
|
+
InsufficientWeight: PlainDescriptor<undefined>;
|
|
1509
|
+
/**
|
|
1510
|
+
* This message is temporarily unprocessable.
|
|
1511
|
+
*
|
|
1512
|
+
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
|
1513
|
+
* retrying.
|
|
1514
|
+
*/
|
|
1515
|
+
TemporarilyUnprocessable: PlainDescriptor<undefined>;
|
|
1516
|
+
/**
|
|
1517
|
+
* The queue is paused and no message can be executed from it.
|
|
1518
|
+
*
|
|
1519
|
+
* This can change at any time and may resolve in the future by re-trying.
|
|
1520
|
+
*/
|
|
1521
|
+
QueuePaused: PlainDescriptor<undefined>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Another call is in progress and needs to finish before this call can happen.
|
|
1524
|
+
*/
|
|
1525
|
+
RecursiveDisallowed: PlainDescriptor<undefined>;
|
|
1526
|
+
};
|
|
1527
|
+
SnowbridgeSystemFrontend: {
|
|
1528
|
+
/**
|
|
1529
|
+
* Convert versioned location failure
|
|
1530
|
+
*/
|
|
1531
|
+
UnsupportedLocationVersion: PlainDescriptor<undefined>;
|
|
1532
|
+
/**
|
|
1533
|
+
* Check location failure, should start from the dispatch origin as owner
|
|
1534
|
+
*/
|
|
1535
|
+
InvalidAssetOwner: PlainDescriptor<undefined>;
|
|
1536
|
+
/**
|
|
1537
|
+
* Send xcm message failure
|
|
1538
|
+
*/
|
|
1539
|
+
SendFailure: PlainDescriptor<undefined>;
|
|
1540
|
+
/**
|
|
1541
|
+
* Withdraw fee asset failure
|
|
1542
|
+
*/
|
|
1543
|
+
FeesNotMet: PlainDescriptor<undefined>;
|
|
1544
|
+
/**
|
|
1545
|
+
* Convert to reanchored location failure
|
|
1546
|
+
*/
|
|
1547
|
+
LocationConversionFailed: PlainDescriptor<undefined>;
|
|
1548
|
+
/**
|
|
1549
|
+
* Message export is halted
|
|
1550
|
+
*/
|
|
1551
|
+
Halted: PlainDescriptor<undefined>;
|
|
1552
|
+
/**
|
|
1553
|
+
* The desired destination was unreachable, generally because there is a no way of routing
|
|
1554
|
+
* to it.
|
|
1555
|
+
*/
|
|
1556
|
+
Unreachable: PlainDescriptor<undefined>;
|
|
1557
|
+
/**
|
|
1558
|
+
* The asset provided for the tip is unsupported.
|
|
1559
|
+
*/
|
|
1560
|
+
UnsupportedAsset: PlainDescriptor<undefined>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Unable to withdraw asset.
|
|
1563
|
+
*/
|
|
1564
|
+
WithdrawError: PlainDescriptor<undefined>;
|
|
1565
|
+
/**
|
|
1566
|
+
* Account could not be converted to a location.
|
|
1567
|
+
*/
|
|
1568
|
+
InvalidAccount: PlainDescriptor<undefined>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Provided tip asset could not be swapped for ether.
|
|
1571
|
+
*/
|
|
1572
|
+
SwapError: PlainDescriptor<undefined>;
|
|
1573
|
+
/**
|
|
1574
|
+
* Ether could not be burned.
|
|
1575
|
+
*/
|
|
1576
|
+
BurnError: PlainDescriptor<undefined>;
|
|
1577
|
+
/**
|
|
1578
|
+
* The tip provided is zero.
|
|
1579
|
+
*/
|
|
1580
|
+
TipAmountZero: PlainDescriptor<undefined>;
|
|
1581
|
+
};
|
|
1582
|
+
Utility: {
|
|
1583
|
+
/**
|
|
1584
|
+
* Too many calls batched.
|
|
1585
|
+
*/
|
|
1586
|
+
TooManyCalls: PlainDescriptor<undefined>;
|
|
1587
|
+
};
|
|
1588
|
+
Multisig: {
|
|
1589
|
+
/**
|
|
1590
|
+
* Threshold must be 2 or greater.
|
|
1591
|
+
*/
|
|
1592
|
+
MinimumThreshold: PlainDescriptor<undefined>;
|
|
1593
|
+
/**
|
|
1594
|
+
* Call is already approved by this signatory.
|
|
1595
|
+
*/
|
|
1596
|
+
AlreadyApproved: PlainDescriptor<undefined>;
|
|
1597
|
+
/**
|
|
1598
|
+
* Call doesn't need any (more) approvals.
|
|
1599
|
+
*/
|
|
1600
|
+
NoApprovalsNeeded: PlainDescriptor<undefined>;
|
|
1601
|
+
/**
|
|
1602
|
+
* There are too few signatories in the list.
|
|
1603
|
+
*/
|
|
1604
|
+
TooFewSignatories: PlainDescriptor<undefined>;
|
|
1605
|
+
/**
|
|
1606
|
+
* There are too many signatories in the list.
|
|
1607
|
+
*/
|
|
1608
|
+
TooManySignatories: PlainDescriptor<undefined>;
|
|
1609
|
+
/**
|
|
1610
|
+
* The signatories were provided out of order; they should be ordered.
|
|
1611
|
+
*/
|
|
1612
|
+
SignatoriesOutOfOrder: PlainDescriptor<undefined>;
|
|
1613
|
+
/**
|
|
1614
|
+
* The sender was contained in the other signatories; it shouldn't be.
|
|
1615
|
+
*/
|
|
1616
|
+
SenderInSignatories: PlainDescriptor<undefined>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Multisig operation not found in storage.
|
|
1619
|
+
*/
|
|
1620
|
+
NotFound: PlainDescriptor<undefined>;
|
|
1621
|
+
/**
|
|
1622
|
+
* Only the account that originally created the multisig is able to cancel it or update
|
|
1623
|
+
* its deposits.
|
|
1624
|
+
*/
|
|
1625
|
+
NotOwner: PlainDescriptor<undefined>;
|
|
1626
|
+
/**
|
|
1627
|
+
* No timepoint was given, yet the multisig operation is already underway.
|
|
1628
|
+
*/
|
|
1629
|
+
NoTimepoint: PlainDescriptor<undefined>;
|
|
1630
|
+
/**
|
|
1631
|
+
* A different timepoint was given to the multisig operation that is underway.
|
|
1632
|
+
*/
|
|
1633
|
+
WrongTimepoint: PlainDescriptor<undefined>;
|
|
1634
|
+
/**
|
|
1635
|
+
* A timepoint was given, yet no multisig operation is underway.
|
|
1636
|
+
*/
|
|
1637
|
+
UnexpectedTimepoint: PlainDescriptor<undefined>;
|
|
1638
|
+
/**
|
|
1639
|
+
* The maximum weight information provided was too low.
|
|
1640
|
+
*/
|
|
1641
|
+
MaxWeightTooLow: PlainDescriptor<undefined>;
|
|
1642
|
+
/**
|
|
1643
|
+
* The data to be stored is already stored.
|
|
1644
|
+
*/
|
|
1645
|
+
AlreadyStored: PlainDescriptor<undefined>;
|
|
1646
|
+
};
|
|
1647
|
+
Proxy: {
|
|
1648
|
+
/**
|
|
1649
|
+
* There are too many proxies registered or too many announcements pending.
|
|
1650
|
+
*/
|
|
1651
|
+
TooMany: PlainDescriptor<undefined>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Proxy registration not found.
|
|
1654
|
+
*/
|
|
1655
|
+
NotFound: PlainDescriptor<undefined>;
|
|
1656
|
+
/**
|
|
1657
|
+
* Sender is not a proxy of the account to be proxied.
|
|
1658
|
+
*/
|
|
1659
|
+
NotProxy: PlainDescriptor<undefined>;
|
|
1660
|
+
/**
|
|
1661
|
+
* A call which is incompatible with the proxy type's filter was attempted.
|
|
1662
|
+
*/
|
|
1663
|
+
Unproxyable: PlainDescriptor<undefined>;
|
|
1664
|
+
/**
|
|
1665
|
+
* Account is already a proxy.
|
|
1666
|
+
*/
|
|
1667
|
+
Duplicate: PlainDescriptor<undefined>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Call may not be made by proxy because it may escalate its privileges.
|
|
1670
|
+
*/
|
|
1671
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Announcement, if made at all, was made too recently.
|
|
1674
|
+
*/
|
|
1675
|
+
Unannounced: PlainDescriptor<undefined>;
|
|
1676
|
+
/**
|
|
1677
|
+
* Cannot add self as proxy.
|
|
1678
|
+
*/
|
|
1679
|
+
NoSelfProxy: PlainDescriptor<undefined>;
|
|
1680
|
+
};
|
|
1681
|
+
Indices: {
|
|
1682
|
+
/**
|
|
1683
|
+
* The index was not already assigned.
|
|
1684
|
+
*/
|
|
1685
|
+
NotAssigned: PlainDescriptor<undefined>;
|
|
1686
|
+
/**
|
|
1687
|
+
* The index is assigned to another account.
|
|
1688
|
+
*/
|
|
1689
|
+
NotOwner: PlainDescriptor<undefined>;
|
|
1690
|
+
/**
|
|
1691
|
+
* The index was not available.
|
|
1692
|
+
*/
|
|
1693
|
+
InUse: PlainDescriptor<undefined>;
|
|
1694
|
+
/**
|
|
1695
|
+
* The source and destination accounts are identical.
|
|
1696
|
+
*/
|
|
1697
|
+
NotTransfer: PlainDescriptor<undefined>;
|
|
1698
|
+
/**
|
|
1699
|
+
* The index is permanent and may not be freed/changed.
|
|
1700
|
+
*/
|
|
1701
|
+
Permanent: PlainDescriptor<undefined>;
|
|
1702
|
+
};
|
|
1703
|
+
Assets: {
|
|
1704
|
+
/**
|
|
1705
|
+
* Account balance must be greater than or equal to the transfer amount.
|
|
1706
|
+
*/
|
|
1707
|
+
BalanceLow: PlainDescriptor<undefined>;
|
|
1708
|
+
/**
|
|
1709
|
+
* The account to alter does not exist.
|
|
1710
|
+
*/
|
|
1711
|
+
NoAccount: PlainDescriptor<undefined>;
|
|
1712
|
+
/**
|
|
1713
|
+
* The signing account has no permission to do the operation.
|
|
1714
|
+
*/
|
|
1715
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
1716
|
+
/**
|
|
1717
|
+
* The given asset ID is unknown.
|
|
1718
|
+
*/
|
|
1719
|
+
Unknown: PlainDescriptor<undefined>;
|
|
1720
|
+
/**
|
|
1721
|
+
* The origin account is frozen.
|
|
1722
|
+
*/
|
|
1723
|
+
Frozen: PlainDescriptor<undefined>;
|
|
1724
|
+
/**
|
|
1725
|
+
* The asset ID is already taken.
|
|
1726
|
+
*/
|
|
1727
|
+
InUse: PlainDescriptor<undefined>;
|
|
1728
|
+
/**
|
|
1729
|
+
* Invalid witness data given.
|
|
1730
|
+
*/
|
|
1731
|
+
BadWitness: PlainDescriptor<undefined>;
|
|
1732
|
+
/**
|
|
1733
|
+
* Minimum balance should be non-zero.
|
|
1734
|
+
*/
|
|
1735
|
+
MinBalanceZero: PlainDescriptor<undefined>;
|
|
1736
|
+
/**
|
|
1737
|
+
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
1738
|
+
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
1739
|
+
* fewer then the maximum number of consumers has been reached.
|
|
1740
|
+
*/
|
|
1741
|
+
UnavailableConsumer: PlainDescriptor<undefined>;
|
|
1742
|
+
/**
|
|
1743
|
+
* Invalid metadata given.
|
|
1744
|
+
*/
|
|
1745
|
+
BadMetadata: PlainDescriptor<undefined>;
|
|
1746
|
+
/**
|
|
1747
|
+
* No approval exists that would allow the transfer.
|
|
1748
|
+
*/
|
|
1749
|
+
Unapproved: PlainDescriptor<undefined>;
|
|
1750
|
+
/**
|
|
1751
|
+
* The source account would not survive the transfer and it needs to stay alive.
|
|
1752
|
+
*/
|
|
1753
|
+
WouldDie: PlainDescriptor<undefined>;
|
|
1754
|
+
/**
|
|
1755
|
+
* The asset-account already exists.
|
|
1756
|
+
*/
|
|
1757
|
+
AlreadyExists: PlainDescriptor<undefined>;
|
|
1758
|
+
/**
|
|
1759
|
+
* The asset-account doesn't have an associated deposit.
|
|
1760
|
+
*/
|
|
1761
|
+
NoDeposit: PlainDescriptor<undefined>;
|
|
1762
|
+
/**
|
|
1763
|
+
* The operation would result in funds being burned.
|
|
1764
|
+
*/
|
|
1765
|
+
WouldBurn: PlainDescriptor<undefined>;
|
|
1766
|
+
/**
|
|
1767
|
+
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
1768
|
+
* as `start_destroy` which require the asset to be in a destroying state.
|
|
1769
|
+
*/
|
|
1770
|
+
LiveAsset: PlainDescriptor<undefined>;
|
|
1771
|
+
/**
|
|
1772
|
+
* The asset is not live, and likely being destroyed.
|
|
1773
|
+
*/
|
|
1774
|
+
AssetNotLive: PlainDescriptor<undefined>;
|
|
1775
|
+
/**
|
|
1776
|
+
* The asset status is not the expected status.
|
|
1777
|
+
*/
|
|
1778
|
+
IncorrectStatus: PlainDescriptor<undefined>;
|
|
1779
|
+
/**
|
|
1780
|
+
* The asset should be frozen before the given operation.
|
|
1781
|
+
*/
|
|
1782
|
+
NotFrozen: PlainDescriptor<undefined>;
|
|
1783
|
+
/**
|
|
1784
|
+
* Callback action resulted in error
|
|
1785
|
+
*/
|
|
1786
|
+
CallbackFailed: PlainDescriptor<undefined>;
|
|
1787
|
+
/**
|
|
1788
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
1789
|
+
*/
|
|
1790
|
+
BadAssetId: PlainDescriptor<undefined>;
|
|
1791
|
+
/**
|
|
1792
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
1793
|
+
*/
|
|
1794
|
+
ContainsFreezes: PlainDescriptor<undefined>;
|
|
1795
|
+
/**
|
|
1796
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
1797
|
+
*/
|
|
1798
|
+
ContainsHolds: PlainDescriptor<undefined>;
|
|
1799
|
+
};
|
|
1800
|
+
Uniques: {
|
|
1801
|
+
/**
|
|
1802
|
+
* The signing account has no permission to do the operation.
|
|
1803
|
+
*/
|
|
1804
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
1805
|
+
/**
|
|
1806
|
+
* The given item ID is unknown.
|
|
1807
|
+
*/
|
|
1808
|
+
UnknownCollection: PlainDescriptor<undefined>;
|
|
1809
|
+
/**
|
|
1810
|
+
* The item ID has already been used for an item.
|
|
1811
|
+
*/
|
|
1812
|
+
AlreadyExists: PlainDescriptor<undefined>;
|
|
1813
|
+
/**
|
|
1814
|
+
* The owner turned out to be different to what was expected.
|
|
1815
|
+
*/
|
|
1816
|
+
WrongOwner: PlainDescriptor<undefined>;
|
|
1817
|
+
/**
|
|
1818
|
+
* Invalid witness data given.
|
|
1819
|
+
*/
|
|
1820
|
+
BadWitness: PlainDescriptor<undefined>;
|
|
1821
|
+
/**
|
|
1822
|
+
* The item ID is already taken.
|
|
1823
|
+
*/
|
|
1824
|
+
InUse: PlainDescriptor<undefined>;
|
|
1825
|
+
/**
|
|
1826
|
+
* The item or collection is frozen.
|
|
1827
|
+
*/
|
|
1828
|
+
Frozen: PlainDescriptor<undefined>;
|
|
1829
|
+
/**
|
|
1830
|
+
* The delegate turned out to be different to what was expected.
|
|
1831
|
+
*/
|
|
1832
|
+
WrongDelegate: PlainDescriptor<undefined>;
|
|
1833
|
+
/**
|
|
1834
|
+
* There is no delegate approved.
|
|
1835
|
+
*/
|
|
1836
|
+
NoDelegate: PlainDescriptor<undefined>;
|
|
1837
|
+
/**
|
|
1838
|
+
* No approval exists that would allow the transfer.
|
|
1839
|
+
*/
|
|
1840
|
+
Unapproved: PlainDescriptor<undefined>;
|
|
1841
|
+
/**
|
|
1842
|
+
* The named owner has not signed ownership of the collection is acceptable.
|
|
1843
|
+
*/
|
|
1844
|
+
Unaccepted: PlainDescriptor<undefined>;
|
|
1845
|
+
/**
|
|
1846
|
+
* The item is locked.
|
|
1847
|
+
*/
|
|
1848
|
+
Locked: PlainDescriptor<undefined>;
|
|
1849
|
+
/**
|
|
1850
|
+
* All items have been minted.
|
|
1851
|
+
*/
|
|
1852
|
+
MaxSupplyReached: PlainDescriptor<undefined>;
|
|
1853
|
+
/**
|
|
1854
|
+
* The max supply has already been set.
|
|
1855
|
+
*/
|
|
1856
|
+
MaxSupplyAlreadySet: PlainDescriptor<undefined>;
|
|
1857
|
+
/**
|
|
1858
|
+
* The provided max supply is less to the amount of items a collection already has.
|
|
1859
|
+
*/
|
|
1860
|
+
MaxSupplyTooSmall: PlainDescriptor<undefined>;
|
|
1861
|
+
/**
|
|
1862
|
+
* The given item ID is unknown.
|
|
1863
|
+
*/
|
|
1864
|
+
UnknownItem: PlainDescriptor<undefined>;
|
|
1865
|
+
/**
|
|
1866
|
+
* Item is not for sale.
|
|
1867
|
+
*/
|
|
1868
|
+
NotForSale: PlainDescriptor<undefined>;
|
|
1869
|
+
/**
|
|
1870
|
+
* The provided bid is too low.
|
|
1871
|
+
*/
|
|
1872
|
+
BidTooLow: PlainDescriptor<undefined>;
|
|
1873
|
+
/**
|
|
1874
|
+
* No metadata is found.
|
|
1875
|
+
*/
|
|
1876
|
+
NoMetadata: PlainDescriptor<undefined>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Wrong metadata key/value bytes supplied.
|
|
1879
|
+
*/
|
|
1880
|
+
WrongMetadata: PlainDescriptor<undefined>;
|
|
1881
|
+
/**
|
|
1882
|
+
* An attribute is not found.
|
|
1883
|
+
*/
|
|
1884
|
+
AttributeNotFound: PlainDescriptor<undefined>;
|
|
1885
|
+
/**
|
|
1886
|
+
* Wrong attribute key/value bytes supplied.
|
|
1887
|
+
*/
|
|
1888
|
+
WrongAttribute: PlainDescriptor<undefined>;
|
|
1889
|
+
};
|
|
1890
|
+
Nfts: {
|
|
1891
|
+
/**
|
|
1892
|
+
* The signing account has no permission to do the operation.
|
|
1893
|
+
*/
|
|
1894
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
1895
|
+
/**
|
|
1896
|
+
* The given item ID is unknown.
|
|
1897
|
+
*/
|
|
1898
|
+
UnknownCollection: PlainDescriptor<undefined>;
|
|
1899
|
+
/**
|
|
1900
|
+
* The item ID has already been used for an item.
|
|
1901
|
+
*/
|
|
1902
|
+
AlreadyExists: PlainDescriptor<undefined>;
|
|
1903
|
+
/**
|
|
1904
|
+
* The approval had a deadline that expired, so the approval isn't valid anymore.
|
|
1905
|
+
*/
|
|
1906
|
+
ApprovalExpired: PlainDescriptor<undefined>;
|
|
1907
|
+
/**
|
|
1908
|
+
* The owner turned out to be different to what was expected.
|
|
1909
|
+
*/
|
|
1910
|
+
WrongOwner: PlainDescriptor<undefined>;
|
|
1911
|
+
/**
|
|
1912
|
+
* The witness data given does not match the current state of the chain.
|
|
1913
|
+
*/
|
|
1914
|
+
BadWitness: PlainDescriptor<undefined>;
|
|
1915
|
+
/**
|
|
1916
|
+
* Collection ID is already taken.
|
|
1917
|
+
*/
|
|
1918
|
+
CollectionIdInUse: PlainDescriptor<undefined>;
|
|
1919
|
+
/**
|
|
1920
|
+
* Items within that collection are non-transferable.
|
|
1921
|
+
*/
|
|
1922
|
+
ItemsNonTransferable: PlainDescriptor<undefined>;
|
|
1923
|
+
/**
|
|
1924
|
+
* The provided account is not a delegate.
|
|
1925
|
+
*/
|
|
1926
|
+
NotDelegate: PlainDescriptor<undefined>;
|
|
1927
|
+
/**
|
|
1928
|
+
* The delegate turned out to be different to what was expected.
|
|
1929
|
+
*/
|
|
1930
|
+
WrongDelegate: PlainDescriptor<undefined>;
|
|
1931
|
+
/**
|
|
1932
|
+
* No approval exists that would allow the transfer.
|
|
1933
|
+
*/
|
|
1934
|
+
Unapproved: PlainDescriptor<undefined>;
|
|
1935
|
+
/**
|
|
1936
|
+
* The named owner has not signed ownership acceptance of the collection.
|
|
1937
|
+
*/
|
|
1938
|
+
Unaccepted: PlainDescriptor<undefined>;
|
|
1939
|
+
/**
|
|
1940
|
+
* The item is locked (non-transferable).
|
|
1941
|
+
*/
|
|
1942
|
+
ItemLocked: PlainDescriptor<undefined>;
|
|
1943
|
+
/**
|
|
1944
|
+
* Item's attributes are locked.
|
|
1945
|
+
*/
|
|
1946
|
+
LockedItemAttributes: PlainDescriptor<undefined>;
|
|
1947
|
+
/**
|
|
1948
|
+
* Collection's attributes are locked.
|
|
1949
|
+
*/
|
|
1950
|
+
LockedCollectionAttributes: PlainDescriptor<undefined>;
|
|
1951
|
+
/**
|
|
1952
|
+
* Item's metadata is locked.
|
|
1953
|
+
*/
|
|
1954
|
+
LockedItemMetadata: PlainDescriptor<undefined>;
|
|
1955
|
+
/**
|
|
1956
|
+
* Collection's metadata is locked.
|
|
1957
|
+
*/
|
|
1958
|
+
LockedCollectionMetadata: PlainDescriptor<undefined>;
|
|
1959
|
+
/**
|
|
1960
|
+
* All items have been minted.
|
|
1961
|
+
*/
|
|
1962
|
+
MaxSupplyReached: PlainDescriptor<undefined>;
|
|
1963
|
+
/**
|
|
1964
|
+
* The max supply is locked and can't be changed.
|
|
1965
|
+
*/
|
|
1966
|
+
MaxSupplyLocked: PlainDescriptor<undefined>;
|
|
1967
|
+
/**
|
|
1968
|
+
* The provided max supply is less than the number of items a collection already has.
|
|
1969
|
+
*/
|
|
1970
|
+
MaxSupplyTooSmall: PlainDescriptor<undefined>;
|
|
1971
|
+
/**
|
|
1972
|
+
* The given item ID is unknown.
|
|
1973
|
+
*/
|
|
1974
|
+
UnknownItem: PlainDescriptor<undefined>;
|
|
1975
|
+
/**
|
|
1976
|
+
* Swap doesn't exist.
|
|
1977
|
+
*/
|
|
1978
|
+
UnknownSwap: PlainDescriptor<undefined>;
|
|
1979
|
+
/**
|
|
1980
|
+
* The given item has no metadata set.
|
|
1981
|
+
*/
|
|
1982
|
+
MetadataNotFound: PlainDescriptor<undefined>;
|
|
1983
|
+
/**
|
|
1984
|
+
* The provided attribute can't be found.
|
|
1985
|
+
*/
|
|
1986
|
+
AttributeNotFound: PlainDescriptor<undefined>;
|
|
1987
|
+
/**
|
|
1988
|
+
* Item is not for sale.
|
|
1989
|
+
*/
|
|
1990
|
+
NotForSale: PlainDescriptor<undefined>;
|
|
1991
|
+
/**
|
|
1992
|
+
* The provided bid is too low.
|
|
1993
|
+
*/
|
|
1994
|
+
BidTooLow: PlainDescriptor<undefined>;
|
|
1995
|
+
/**
|
|
1996
|
+
* The item has reached its approval limit.
|
|
1997
|
+
*/
|
|
1998
|
+
ReachedApprovalLimit: PlainDescriptor<undefined>;
|
|
1999
|
+
/**
|
|
2000
|
+
* The deadline has already expired.
|
|
2001
|
+
*/
|
|
2002
|
+
DeadlineExpired: PlainDescriptor<undefined>;
|
|
2003
|
+
/**
|
|
2004
|
+
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
|
2005
|
+
*/
|
|
2006
|
+
WrongDuration: PlainDescriptor<undefined>;
|
|
2007
|
+
/**
|
|
2008
|
+
* The method is disabled by system settings.
|
|
2009
|
+
*/
|
|
2010
|
+
MethodDisabled: PlainDescriptor<undefined>;
|
|
2011
|
+
/**
|
|
2012
|
+
* The provided setting can't be set.
|
|
2013
|
+
*/
|
|
2014
|
+
WrongSetting: PlainDescriptor<undefined>;
|
|
2015
|
+
/**
|
|
2016
|
+
* Item's config already exists and should be equal to the provided one.
|
|
2017
|
+
*/
|
|
2018
|
+
InconsistentItemConfig: PlainDescriptor<undefined>;
|
|
2019
|
+
/**
|
|
2020
|
+
* Config for a collection or an item can't be found.
|
|
2021
|
+
*/
|
|
2022
|
+
NoConfig: PlainDescriptor<undefined>;
|
|
2023
|
+
/**
|
|
2024
|
+
* Some roles were not cleared.
|
|
2025
|
+
*/
|
|
2026
|
+
RolesNotCleared: PlainDescriptor<undefined>;
|
|
2027
|
+
/**
|
|
2028
|
+
* Mint has not started yet.
|
|
2029
|
+
*/
|
|
2030
|
+
MintNotStarted: PlainDescriptor<undefined>;
|
|
2031
|
+
/**
|
|
2032
|
+
* Mint has already ended.
|
|
2033
|
+
*/
|
|
2034
|
+
MintEnded: PlainDescriptor<undefined>;
|
|
2035
|
+
/**
|
|
2036
|
+
* The provided Item was already used for claiming.
|
|
2037
|
+
*/
|
|
2038
|
+
AlreadyClaimed: PlainDescriptor<undefined>;
|
|
2039
|
+
/**
|
|
2040
|
+
* The provided data is incorrect.
|
|
2041
|
+
*/
|
|
2042
|
+
IncorrectData: PlainDescriptor<undefined>;
|
|
2043
|
+
/**
|
|
2044
|
+
* The extrinsic was sent by the wrong origin.
|
|
2045
|
+
*/
|
|
2046
|
+
WrongOrigin: PlainDescriptor<undefined>;
|
|
2047
|
+
/**
|
|
2048
|
+
* The provided signature is incorrect.
|
|
2049
|
+
*/
|
|
2050
|
+
WrongSignature: PlainDescriptor<undefined>;
|
|
2051
|
+
/**
|
|
2052
|
+
* The provided metadata might be too long.
|
|
2053
|
+
*/
|
|
2054
|
+
IncorrectMetadata: PlainDescriptor<undefined>;
|
|
2055
|
+
/**
|
|
2056
|
+
* Can't set more attributes per one call.
|
|
2057
|
+
*/
|
|
2058
|
+
MaxAttributesLimitReached: PlainDescriptor<undefined>;
|
|
2059
|
+
/**
|
|
2060
|
+
* The provided namespace isn't supported in this call.
|
|
2061
|
+
*/
|
|
2062
|
+
WrongNamespace: PlainDescriptor<undefined>;
|
|
2063
|
+
/**
|
|
2064
|
+
* Can't delete non-empty collections.
|
|
2065
|
+
*/
|
|
2066
|
+
CollectionNotEmpty: PlainDescriptor<undefined>;
|
|
2067
|
+
/**
|
|
2068
|
+
* The witness data should be provided.
|
|
2069
|
+
*/
|
|
2070
|
+
WitnessRequired: PlainDescriptor<undefined>;
|
|
2071
|
+
};
|
|
2072
|
+
ForeignAssets: {
|
|
2073
|
+
/**
|
|
2074
|
+
* Account balance must be greater than or equal to the transfer amount.
|
|
2075
|
+
*/
|
|
2076
|
+
BalanceLow: PlainDescriptor<undefined>;
|
|
2077
|
+
/**
|
|
2078
|
+
* The account to alter does not exist.
|
|
2079
|
+
*/
|
|
2080
|
+
NoAccount: PlainDescriptor<undefined>;
|
|
2081
|
+
/**
|
|
2082
|
+
* The signing account has no permission to do the operation.
|
|
2083
|
+
*/
|
|
2084
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
2085
|
+
/**
|
|
2086
|
+
* The given asset ID is unknown.
|
|
2087
|
+
*/
|
|
2088
|
+
Unknown: PlainDescriptor<undefined>;
|
|
2089
|
+
/**
|
|
2090
|
+
* The origin account is frozen.
|
|
2091
|
+
*/
|
|
2092
|
+
Frozen: PlainDescriptor<undefined>;
|
|
2093
|
+
/**
|
|
2094
|
+
* The asset ID is already taken.
|
|
2095
|
+
*/
|
|
2096
|
+
InUse: PlainDescriptor<undefined>;
|
|
2097
|
+
/**
|
|
2098
|
+
* Invalid witness data given.
|
|
2099
|
+
*/
|
|
2100
|
+
BadWitness: PlainDescriptor<undefined>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Minimum balance should be non-zero.
|
|
2103
|
+
*/
|
|
2104
|
+
MinBalanceZero: PlainDescriptor<undefined>;
|
|
2105
|
+
/**
|
|
2106
|
+
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
2107
|
+
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
2108
|
+
* fewer then the maximum number of consumers has been reached.
|
|
2109
|
+
*/
|
|
2110
|
+
UnavailableConsumer: PlainDescriptor<undefined>;
|
|
2111
|
+
/**
|
|
2112
|
+
* Invalid metadata given.
|
|
2113
|
+
*/
|
|
2114
|
+
BadMetadata: PlainDescriptor<undefined>;
|
|
2115
|
+
/**
|
|
2116
|
+
* No approval exists that would allow the transfer.
|
|
2117
|
+
*/
|
|
2118
|
+
Unapproved: PlainDescriptor<undefined>;
|
|
2119
|
+
/**
|
|
2120
|
+
* The source account would not survive the transfer and it needs to stay alive.
|
|
2121
|
+
*/
|
|
2122
|
+
WouldDie: PlainDescriptor<undefined>;
|
|
2123
|
+
/**
|
|
2124
|
+
* The asset-account already exists.
|
|
2125
|
+
*/
|
|
2126
|
+
AlreadyExists: PlainDescriptor<undefined>;
|
|
2127
|
+
/**
|
|
2128
|
+
* The asset-account doesn't have an associated deposit.
|
|
2129
|
+
*/
|
|
2130
|
+
NoDeposit: PlainDescriptor<undefined>;
|
|
2131
|
+
/**
|
|
2132
|
+
* The operation would result in funds being burned.
|
|
2133
|
+
*/
|
|
2134
|
+
WouldBurn: PlainDescriptor<undefined>;
|
|
2135
|
+
/**
|
|
2136
|
+
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
2137
|
+
* as `start_destroy` which require the asset to be in a destroying state.
|
|
2138
|
+
*/
|
|
2139
|
+
LiveAsset: PlainDescriptor<undefined>;
|
|
2140
|
+
/**
|
|
2141
|
+
* The asset is not live, and likely being destroyed.
|
|
2142
|
+
*/
|
|
2143
|
+
AssetNotLive: PlainDescriptor<undefined>;
|
|
2144
|
+
/**
|
|
2145
|
+
* The asset status is not the expected status.
|
|
2146
|
+
*/
|
|
2147
|
+
IncorrectStatus: PlainDescriptor<undefined>;
|
|
2148
|
+
/**
|
|
2149
|
+
* The asset should be frozen before the given operation.
|
|
2150
|
+
*/
|
|
2151
|
+
NotFrozen: PlainDescriptor<undefined>;
|
|
2152
|
+
/**
|
|
2153
|
+
* Callback action resulted in error
|
|
2154
|
+
*/
|
|
2155
|
+
CallbackFailed: PlainDescriptor<undefined>;
|
|
2156
|
+
/**
|
|
2157
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
2158
|
+
*/
|
|
2159
|
+
BadAssetId: PlainDescriptor<undefined>;
|
|
2160
|
+
/**
|
|
2161
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
2162
|
+
*/
|
|
2163
|
+
ContainsFreezes: PlainDescriptor<undefined>;
|
|
2164
|
+
/**
|
|
2165
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
2166
|
+
*/
|
|
2167
|
+
ContainsHolds: PlainDescriptor<undefined>;
|
|
2168
|
+
};
|
|
2169
|
+
PoolAssets: {
|
|
2170
|
+
/**
|
|
2171
|
+
* Account balance must be greater than or equal to the transfer amount.
|
|
2172
|
+
*/
|
|
2173
|
+
BalanceLow: PlainDescriptor<undefined>;
|
|
2174
|
+
/**
|
|
2175
|
+
* The account to alter does not exist.
|
|
2176
|
+
*/
|
|
2177
|
+
NoAccount: PlainDescriptor<undefined>;
|
|
2178
|
+
/**
|
|
2179
|
+
* The signing account has no permission to do the operation.
|
|
2180
|
+
*/
|
|
2181
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
2182
|
+
/**
|
|
2183
|
+
* The given asset ID is unknown.
|
|
2184
|
+
*/
|
|
2185
|
+
Unknown: PlainDescriptor<undefined>;
|
|
2186
|
+
/**
|
|
2187
|
+
* The origin account is frozen.
|
|
2188
|
+
*/
|
|
2189
|
+
Frozen: PlainDescriptor<undefined>;
|
|
2190
|
+
/**
|
|
2191
|
+
* The asset ID is already taken.
|
|
2192
|
+
*/
|
|
2193
|
+
InUse: PlainDescriptor<undefined>;
|
|
2194
|
+
/**
|
|
2195
|
+
* Invalid witness data given.
|
|
2196
|
+
*/
|
|
2197
|
+
BadWitness: PlainDescriptor<undefined>;
|
|
2198
|
+
/**
|
|
2199
|
+
* Minimum balance should be non-zero.
|
|
2200
|
+
*/
|
|
2201
|
+
MinBalanceZero: PlainDescriptor<undefined>;
|
|
2202
|
+
/**
|
|
2203
|
+
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
2204
|
+
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
2205
|
+
* fewer then the maximum number of consumers has been reached.
|
|
2206
|
+
*/
|
|
2207
|
+
UnavailableConsumer: PlainDescriptor<undefined>;
|
|
2208
|
+
/**
|
|
2209
|
+
* Invalid metadata given.
|
|
2210
|
+
*/
|
|
2211
|
+
BadMetadata: PlainDescriptor<undefined>;
|
|
2212
|
+
/**
|
|
2213
|
+
* No approval exists that would allow the transfer.
|
|
2214
|
+
*/
|
|
2215
|
+
Unapproved: PlainDescriptor<undefined>;
|
|
2216
|
+
/**
|
|
2217
|
+
* The source account would not survive the transfer and it needs to stay alive.
|
|
2218
|
+
*/
|
|
2219
|
+
WouldDie: PlainDescriptor<undefined>;
|
|
2220
|
+
/**
|
|
2221
|
+
* The asset-account already exists.
|
|
2222
|
+
*/
|
|
2223
|
+
AlreadyExists: PlainDescriptor<undefined>;
|
|
2224
|
+
/**
|
|
2225
|
+
* The asset-account doesn't have an associated deposit.
|
|
2226
|
+
*/
|
|
2227
|
+
NoDeposit: PlainDescriptor<undefined>;
|
|
2228
|
+
/**
|
|
2229
|
+
* The operation would result in funds being burned.
|
|
2230
|
+
*/
|
|
2231
|
+
WouldBurn: PlainDescriptor<undefined>;
|
|
2232
|
+
/**
|
|
2233
|
+
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
2234
|
+
* as `start_destroy` which require the asset to be in a destroying state.
|
|
2235
|
+
*/
|
|
2236
|
+
LiveAsset: PlainDescriptor<undefined>;
|
|
2237
|
+
/**
|
|
2238
|
+
* The asset is not live, and likely being destroyed.
|
|
2239
|
+
*/
|
|
2240
|
+
AssetNotLive: PlainDescriptor<undefined>;
|
|
2241
|
+
/**
|
|
2242
|
+
* The asset status is not the expected status.
|
|
2243
|
+
*/
|
|
2244
|
+
IncorrectStatus: PlainDescriptor<undefined>;
|
|
2245
|
+
/**
|
|
2246
|
+
* The asset should be frozen before the given operation.
|
|
2247
|
+
*/
|
|
2248
|
+
NotFrozen: PlainDescriptor<undefined>;
|
|
2249
|
+
/**
|
|
2250
|
+
* Callback action resulted in error
|
|
2251
|
+
*/
|
|
2252
|
+
CallbackFailed: PlainDescriptor<undefined>;
|
|
2253
|
+
/**
|
|
2254
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
2255
|
+
*/
|
|
2256
|
+
BadAssetId: PlainDescriptor<undefined>;
|
|
2257
|
+
/**
|
|
2258
|
+
* The asset cannot be destroyed because some accounts for this asset contain freezes.
|
|
2259
|
+
*/
|
|
2260
|
+
ContainsFreezes: PlainDescriptor<undefined>;
|
|
2261
|
+
/**
|
|
2262
|
+
* The asset cannot be destroyed because some accounts for this asset contain holds.
|
|
2263
|
+
*/
|
|
2264
|
+
ContainsHolds: PlainDescriptor<undefined>;
|
|
2265
|
+
};
|
|
2266
|
+
AssetConversion: {
|
|
2267
|
+
/**
|
|
2268
|
+
* Provided asset pair is not supported for pool.
|
|
2269
|
+
*/
|
|
2270
|
+
InvalidAssetPair: PlainDescriptor<undefined>;
|
|
2271
|
+
/**
|
|
2272
|
+
* Pool already exists.
|
|
2273
|
+
*/
|
|
2274
|
+
PoolExists: PlainDescriptor<undefined>;
|
|
2275
|
+
/**
|
|
2276
|
+
* Desired amount can't be zero.
|
|
2277
|
+
*/
|
|
2278
|
+
WrongDesiredAmount: PlainDescriptor<undefined>;
|
|
2279
|
+
/**
|
|
2280
|
+
* Provided amount should be greater than or equal to the existential deposit/asset's
|
|
2281
|
+
* minimal amount.
|
|
2282
|
+
*/
|
|
2283
|
+
AmountOneLessThanMinimal: PlainDescriptor<undefined>;
|
|
2284
|
+
/**
|
|
2285
|
+
* Provided amount should be greater than or equal to the existential deposit/asset's
|
|
2286
|
+
* minimal amount.
|
|
2287
|
+
*/
|
|
2288
|
+
AmountTwoLessThanMinimal: PlainDescriptor<undefined>;
|
|
2289
|
+
/**
|
|
2290
|
+
* Reserve needs to always be greater than or equal to the existential deposit/asset's
|
|
2291
|
+
* minimal amount.
|
|
2292
|
+
*/
|
|
2293
|
+
ReserveLeftLessThanMinimal: PlainDescriptor<undefined>;
|
|
2294
|
+
/**
|
|
2295
|
+
* Desired amount can't be equal to the pool reserve.
|
|
2296
|
+
*/
|
|
2297
|
+
AmountOutTooHigh: PlainDescriptor<undefined>;
|
|
2298
|
+
/**
|
|
2299
|
+
* The pool doesn't exist.
|
|
2300
|
+
*/
|
|
2301
|
+
PoolNotFound: PlainDescriptor<undefined>;
|
|
2302
|
+
/**
|
|
2303
|
+
* An overflow happened.
|
|
2304
|
+
*/
|
|
2305
|
+
Overflow: PlainDescriptor<undefined>;
|
|
2306
|
+
/**
|
|
2307
|
+
* The minimal amount requirement for the first token in the pair wasn't met.
|
|
2308
|
+
*/
|
|
2309
|
+
AssetOneDepositDidNotMeetMinimum: PlainDescriptor<undefined>;
|
|
2310
|
+
/**
|
|
2311
|
+
* The minimal amount requirement for the second token in the pair wasn't met.
|
|
2312
|
+
*/
|
|
2313
|
+
AssetTwoDepositDidNotMeetMinimum: PlainDescriptor<undefined>;
|
|
2314
|
+
/**
|
|
2315
|
+
* The minimal amount requirement for the first token in the pair wasn't met.
|
|
2316
|
+
*/
|
|
2317
|
+
AssetOneWithdrawalDidNotMeetMinimum: PlainDescriptor<undefined>;
|
|
2318
|
+
/**
|
|
2319
|
+
* The minimal amount requirement for the second token in the pair wasn't met.
|
|
2320
|
+
*/
|
|
2321
|
+
AssetTwoWithdrawalDidNotMeetMinimum: PlainDescriptor<undefined>;
|
|
2322
|
+
/**
|
|
2323
|
+
* Optimal calculated amount is less than desired.
|
|
2324
|
+
*/
|
|
2325
|
+
OptimalAmountLessThanDesired: PlainDescriptor<undefined>;
|
|
2326
|
+
/**
|
|
2327
|
+
* Insufficient liquidity minted.
|
|
2328
|
+
*/
|
|
2329
|
+
InsufficientLiquidityMinted: PlainDescriptor<undefined>;
|
|
2330
|
+
/**
|
|
2331
|
+
* Requested liquidity can't be zero.
|
|
2332
|
+
*/
|
|
2333
|
+
ZeroLiquidity: PlainDescriptor<undefined>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Amount can't be zero.
|
|
2336
|
+
*/
|
|
2337
|
+
ZeroAmount: PlainDescriptor<undefined>;
|
|
2338
|
+
/**
|
|
2339
|
+
* Calculated amount out is less than provided minimum amount.
|
|
2340
|
+
*/
|
|
2341
|
+
ProvidedMinimumNotSufficientForSwap: PlainDescriptor<undefined>;
|
|
2342
|
+
/**
|
|
2343
|
+
* Provided maximum amount is not sufficient for swap.
|
|
2344
|
+
*/
|
|
2345
|
+
ProvidedMaximumNotSufficientForSwap: PlainDescriptor<undefined>;
|
|
2346
|
+
/**
|
|
2347
|
+
* The provided path must consists of 2 assets at least.
|
|
2348
|
+
*/
|
|
2349
|
+
InvalidPath: PlainDescriptor<undefined>;
|
|
2350
|
+
/**
|
|
2351
|
+
* The provided path must consists of unique assets.
|
|
2352
|
+
*/
|
|
2353
|
+
NonUniquePath: PlainDescriptor<undefined>;
|
|
2354
|
+
/**
|
|
2355
|
+
* It was not possible to get or increment the Id of the pool.
|
|
2356
|
+
*/
|
|
2357
|
+
IncorrectPoolAssetId: PlainDescriptor<undefined>;
|
|
2358
|
+
/**
|
|
2359
|
+
* The destination account cannot exist with the swapped funds.
|
|
2360
|
+
*/
|
|
2361
|
+
BelowMinimum: PlainDescriptor<undefined>;
|
|
2362
|
+
};
|
|
2363
|
+
Treasury: {
|
|
2364
|
+
/**
|
|
2365
|
+
* No proposal, bounty or spend at that index.
|
|
2366
|
+
*/
|
|
2367
|
+
InvalidIndex: PlainDescriptor<undefined>;
|
|
2368
|
+
/**
|
|
2369
|
+
* Too many approvals in the queue.
|
|
2370
|
+
*/
|
|
2371
|
+
TooManyApprovals: PlainDescriptor<undefined>;
|
|
2372
|
+
/**
|
|
2373
|
+
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
|
2374
|
+
* amount to be spent.
|
|
2375
|
+
*/
|
|
2376
|
+
InsufficientPermission: PlainDescriptor<undefined>;
|
|
2377
|
+
/**
|
|
2378
|
+
* Proposal has not been approved.
|
|
2379
|
+
*/
|
|
2380
|
+
ProposalNotApproved: PlainDescriptor<undefined>;
|
|
2381
|
+
/**
|
|
2382
|
+
* The balance of the asset kind is not convertible to the balance of the native asset.
|
|
2383
|
+
*/
|
|
2384
|
+
FailedToConvertBalance: PlainDescriptor<undefined>;
|
|
2385
|
+
/**
|
|
2386
|
+
* The spend has expired and cannot be claimed.
|
|
2387
|
+
*/
|
|
2388
|
+
SpendExpired: PlainDescriptor<undefined>;
|
|
2389
|
+
/**
|
|
2390
|
+
* The spend is not yet eligible for payout.
|
|
2391
|
+
*/
|
|
2392
|
+
EarlyPayout: PlainDescriptor<undefined>;
|
|
2393
|
+
/**
|
|
2394
|
+
* The payment has already been attempted.
|
|
2395
|
+
*/
|
|
2396
|
+
AlreadyAttempted: PlainDescriptor<undefined>;
|
|
2397
|
+
/**
|
|
2398
|
+
* There was some issue with the mechanism of payment.
|
|
2399
|
+
*/
|
|
2400
|
+
PayoutError: PlainDescriptor<undefined>;
|
|
2401
|
+
/**
|
|
2402
|
+
* The payout was not yet attempted/claimed.
|
|
2403
|
+
*/
|
|
2404
|
+
NotAttempted: PlainDescriptor<undefined>;
|
|
2405
|
+
/**
|
|
2406
|
+
* The payment has neither failed nor succeeded yet.
|
|
2407
|
+
*/
|
|
2408
|
+
Inconclusive: PlainDescriptor<undefined>;
|
|
2409
|
+
};
|
|
2410
|
+
ConvictionVoting: {
|
|
2411
|
+
/**
|
|
2412
|
+
* Poll is not ongoing.
|
|
2413
|
+
*/
|
|
2414
|
+
NotOngoing: PlainDescriptor<undefined>;
|
|
2415
|
+
/**
|
|
2416
|
+
* The given account did not vote on the poll.
|
|
2417
|
+
*/
|
|
2418
|
+
NotVoter: PlainDescriptor<undefined>;
|
|
2419
|
+
/**
|
|
2420
|
+
* The actor has no permission to conduct the action.
|
|
2421
|
+
*/
|
|
2422
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
2423
|
+
/**
|
|
2424
|
+
* The actor has no permission to conduct the action right now but will do in the future.
|
|
2425
|
+
*/
|
|
2426
|
+
NoPermissionYet: PlainDescriptor<undefined>;
|
|
2427
|
+
/**
|
|
2428
|
+
* The account is already delegating.
|
|
2429
|
+
*/
|
|
2430
|
+
AlreadyDelegating: PlainDescriptor<undefined>;
|
|
2431
|
+
/**
|
|
2432
|
+
* The account currently has votes attached to it and the operation cannot succeed until
|
|
2433
|
+
* these are removed through `remove_vote`.
|
|
2434
|
+
*/
|
|
2435
|
+
AlreadyVoting: PlainDescriptor<undefined>;
|
|
2436
|
+
/**
|
|
2437
|
+
* Too high a balance was provided that the account cannot afford.
|
|
2438
|
+
*/
|
|
2439
|
+
InsufficientFunds: PlainDescriptor<undefined>;
|
|
2440
|
+
/**
|
|
2441
|
+
* The account is not currently delegating.
|
|
2442
|
+
*/
|
|
2443
|
+
NotDelegating: PlainDescriptor<undefined>;
|
|
2444
|
+
/**
|
|
2445
|
+
* Delegation to oneself makes no sense.
|
|
2446
|
+
*/
|
|
2447
|
+
Nonsense: PlainDescriptor<undefined>;
|
|
2448
|
+
/**
|
|
2449
|
+
* Maximum number of votes reached.
|
|
2450
|
+
*/
|
|
2451
|
+
MaxVotesReached: PlainDescriptor<undefined>;
|
|
2452
|
+
/**
|
|
2453
|
+
* The class must be supplied since it is not easily determinable from the state.
|
|
2454
|
+
*/
|
|
2455
|
+
ClassNeeded: PlainDescriptor<undefined>;
|
|
2456
|
+
/**
|
|
2457
|
+
* The class ID supplied is invalid.
|
|
2458
|
+
*/
|
|
2459
|
+
BadClass: PlainDescriptor<undefined>;
|
|
2460
|
+
};
|
|
2461
|
+
Referenda: {
|
|
2462
|
+
/**
|
|
2463
|
+
* Referendum is not ongoing.
|
|
2464
|
+
*/
|
|
2465
|
+
NotOngoing: PlainDescriptor<undefined>;
|
|
2466
|
+
/**
|
|
2467
|
+
* Referendum's decision deposit is already paid.
|
|
2468
|
+
*/
|
|
2469
|
+
HasDeposit: PlainDescriptor<undefined>;
|
|
2470
|
+
/**
|
|
2471
|
+
* The track identifier given was invalid.
|
|
2472
|
+
*/
|
|
2473
|
+
BadTrack: PlainDescriptor<undefined>;
|
|
2474
|
+
/**
|
|
2475
|
+
* There are already a full complement of referenda in progress for this track.
|
|
2476
|
+
*/
|
|
2477
|
+
Full: PlainDescriptor<undefined>;
|
|
2478
|
+
/**
|
|
2479
|
+
* The queue of the track is empty.
|
|
2480
|
+
*/
|
|
2481
|
+
QueueEmpty: PlainDescriptor<undefined>;
|
|
2482
|
+
/**
|
|
2483
|
+
* The referendum index provided is invalid in this context.
|
|
2484
|
+
*/
|
|
2485
|
+
BadReferendum: PlainDescriptor<undefined>;
|
|
2486
|
+
/**
|
|
2487
|
+
* There was nothing to do in the advancement.
|
|
2488
|
+
*/
|
|
2489
|
+
NothingToDo: PlainDescriptor<undefined>;
|
|
2490
|
+
/**
|
|
2491
|
+
* No track exists for the proposal origin.
|
|
2492
|
+
*/
|
|
2493
|
+
NoTrack: PlainDescriptor<undefined>;
|
|
2494
|
+
/**
|
|
2495
|
+
* Any deposit cannot be refunded until after the decision is over.
|
|
2496
|
+
*/
|
|
2497
|
+
Unfinished: PlainDescriptor<undefined>;
|
|
2498
|
+
/**
|
|
2499
|
+
* The deposit refunder is not the depositor.
|
|
2500
|
+
*/
|
|
2501
|
+
NoPermission: PlainDescriptor<undefined>;
|
|
2502
|
+
/**
|
|
2503
|
+
* The deposit cannot be refunded since none was made.
|
|
2504
|
+
*/
|
|
2505
|
+
NoDeposit: PlainDescriptor<undefined>;
|
|
2506
|
+
/**
|
|
2507
|
+
* The referendum status is invalid for this operation.
|
|
2508
|
+
*/
|
|
2509
|
+
BadStatus: PlainDescriptor<undefined>;
|
|
2510
|
+
/**
|
|
2511
|
+
* The preimage does not exist.
|
|
2512
|
+
*/
|
|
2513
|
+
PreimageNotExist: PlainDescriptor<undefined>;
|
|
2514
|
+
/**
|
|
2515
|
+
* The preimage is stored with a different length than the one provided.
|
|
2516
|
+
*/
|
|
2517
|
+
PreimageStoredWithDifferentLength: PlainDescriptor<undefined>;
|
|
2518
|
+
};
|
|
2519
|
+
Whitelist: {
|
|
2520
|
+
/**
|
|
2521
|
+
* The preimage of the call hash could not be loaded.
|
|
2522
|
+
*/
|
|
2523
|
+
UnavailablePreImage: PlainDescriptor<undefined>;
|
|
2524
|
+
/**
|
|
2525
|
+
* The call could not be decoded.
|
|
2526
|
+
*/
|
|
2527
|
+
UndecodableCall: PlainDescriptor<undefined>;
|
|
2528
|
+
/**
|
|
2529
|
+
* The weight of the decoded call was higher than the witness.
|
|
2530
|
+
*/
|
|
2531
|
+
InvalidCallWeightWitness: PlainDescriptor<undefined>;
|
|
2532
|
+
/**
|
|
2533
|
+
* The call was not whitelisted.
|
|
2534
|
+
*/
|
|
2535
|
+
CallIsNotWhitelisted: PlainDescriptor<undefined>;
|
|
2536
|
+
/**
|
|
2537
|
+
* The call was already whitelisted; No-Op.
|
|
2538
|
+
*/
|
|
2539
|
+
CallAlreadyWhitelisted: PlainDescriptor<undefined>;
|
|
2540
|
+
};
|
|
2541
|
+
Bounties: {
|
|
2542
|
+
/**
|
|
2543
|
+
* Proposer's balance is too low.
|
|
2544
|
+
*/
|
|
2545
|
+
InsufficientProposersBalance: PlainDescriptor<undefined>;
|
|
2546
|
+
/**
|
|
2547
|
+
* No proposal or bounty at that index.
|
|
2548
|
+
*/
|
|
2549
|
+
InvalidIndex: PlainDescriptor<undefined>;
|
|
2550
|
+
/**
|
|
2551
|
+
* The reason given is just too big.
|
|
2552
|
+
*/
|
|
2553
|
+
ReasonTooBig: PlainDescriptor<undefined>;
|
|
2554
|
+
/**
|
|
2555
|
+
* The bounty status is unexpected.
|
|
2556
|
+
*/
|
|
2557
|
+
UnexpectedStatus: PlainDescriptor<undefined>;
|
|
2558
|
+
/**
|
|
2559
|
+
* Require bounty curator.
|
|
2560
|
+
*/
|
|
2561
|
+
RequireCurator: PlainDescriptor<undefined>;
|
|
2562
|
+
/**
|
|
2563
|
+
* Invalid bounty value.
|
|
2564
|
+
*/
|
|
2565
|
+
InvalidValue: PlainDescriptor<undefined>;
|
|
2566
|
+
/**
|
|
2567
|
+
* Invalid bounty fee.
|
|
2568
|
+
*/
|
|
2569
|
+
InvalidFee: PlainDescriptor<undefined>;
|
|
2570
|
+
/**
|
|
2571
|
+
* A bounty payout is pending.
|
|
2572
|
+
* To cancel the bounty, you must unassign and slash the curator.
|
|
2573
|
+
*/
|
|
2574
|
+
PendingPayout: PlainDescriptor<undefined>;
|
|
2575
|
+
/**
|
|
2576
|
+
* The bounties cannot be claimed/closed because it's still in the countdown period.
|
|
2577
|
+
*/
|
|
2578
|
+
Premature: PlainDescriptor<undefined>;
|
|
2579
|
+
/**
|
|
2580
|
+
* The bounty cannot be closed because it has active child bounties.
|
|
2581
|
+
*/
|
|
2582
|
+
HasActiveChildBounty: PlainDescriptor<undefined>;
|
|
2583
|
+
/**
|
|
2584
|
+
* Too many approvals are already queued.
|
|
2585
|
+
*/
|
|
2586
|
+
TooManyQueued: PlainDescriptor<undefined>;
|
|
2587
|
+
/**
|
|
2588
|
+
* User is not the proposer of the bounty.
|
|
2589
|
+
*/
|
|
2590
|
+
NotProposer: PlainDescriptor<undefined>;
|
|
2591
|
+
};
|
|
2592
|
+
ChildBounties: {
|
|
2593
|
+
/**
|
|
2594
|
+
* The parent bounty is not in active state.
|
|
2595
|
+
*/
|
|
2596
|
+
ParentBountyNotActive: PlainDescriptor<undefined>;
|
|
2597
|
+
/**
|
|
2598
|
+
* The bounty balance is not enough to add new child-bounty.
|
|
2599
|
+
*/
|
|
2600
|
+
InsufficientBountyBalance: PlainDescriptor<undefined>;
|
|
2601
|
+
/**
|
|
2602
|
+
* Number of child bounties exceeds limit `MaxActiveChildBountyCount`.
|
|
2603
|
+
*/
|
|
2604
|
+
TooManyChildBounties: PlainDescriptor<undefined>;
|
|
2605
|
+
};
|
|
2606
|
+
AssetRate: {
|
|
2607
|
+
/**
|
|
2608
|
+
* The given asset ID is unknown.
|
|
2609
|
+
*/
|
|
2610
|
+
UnknownAssetKind: PlainDescriptor<undefined>;
|
|
2611
|
+
/**
|
|
2612
|
+
* The given asset ID already has an assigned conversion rate and cannot be re-created.
|
|
2613
|
+
*/
|
|
2614
|
+
AlreadyExists: PlainDescriptor<undefined>;
|
|
2615
|
+
/**
|
|
2616
|
+
* Overflow ocurred when calculating the inverse rate.
|
|
2617
|
+
*/
|
|
2618
|
+
Overflow: PlainDescriptor<undefined>;
|
|
2619
|
+
};
|
|
2620
|
+
StateTrieMigration: {
|
|
2621
|
+
/**
|
|
2622
|
+
* Max signed limits not respected.
|
|
2623
|
+
*/
|
|
2624
|
+
MaxSignedLimits: PlainDescriptor<undefined>;
|
|
2625
|
+
/**
|
|
2626
|
+
* A key was longer than the configured maximum.
|
|
2627
|
+
*
|
|
2628
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
2629
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
2630
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
2631
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
2632
|
+
* stored [`crate::Progress::LastKey`].
|
|
2633
|
+
*/
|
|
2634
|
+
KeyTooLong: PlainDescriptor<undefined>;
|
|
2635
|
+
/**
|
|
2636
|
+
* submitter does not have enough funds.
|
|
2637
|
+
*/
|
|
2638
|
+
NotEnoughFunds: PlainDescriptor<undefined>;
|
|
2639
|
+
/**
|
|
2640
|
+
* Bad witness data provided.
|
|
2641
|
+
*/
|
|
2642
|
+
BadWitness: PlainDescriptor<undefined>;
|
|
2643
|
+
/**
|
|
2644
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
2645
|
+
*/
|
|
2646
|
+
SignedMigrationNotAllowed: PlainDescriptor<undefined>;
|
|
2647
|
+
/**
|
|
2648
|
+
* Bad child root provided.
|
|
2649
|
+
*/
|
|
2650
|
+
BadChildRoot: PlainDescriptor<undefined>;
|
|
2651
|
+
};
|
|
2652
|
+
NominationPools: {
|
|
2653
|
+
/**
|
|
2654
|
+
* A (bonded) pool id does not exist.
|
|
2655
|
+
*/
|
|
2656
|
+
PoolNotFound: PlainDescriptor<undefined>;
|
|
2657
|
+
/**
|
|
2658
|
+
* An account is not a member.
|
|
2659
|
+
*/
|
|
2660
|
+
PoolMemberNotFound: PlainDescriptor<undefined>;
|
|
2661
|
+
/**
|
|
2662
|
+
* A reward pool does not exist. In all cases this is a system logic error.
|
|
2663
|
+
*/
|
|
2664
|
+
RewardPoolNotFound: PlainDescriptor<undefined>;
|
|
2665
|
+
/**
|
|
2666
|
+
* A sub pool does not exist.
|
|
2667
|
+
*/
|
|
2668
|
+
SubPoolsNotFound: PlainDescriptor<undefined>;
|
|
2669
|
+
/**
|
|
2670
|
+
* An account is already delegating in another pool. An account may only belong to one
|
|
2671
|
+
* pool at a time.
|
|
2672
|
+
*/
|
|
2673
|
+
AccountBelongsToOtherPool: PlainDescriptor<undefined>;
|
|
2674
|
+
/**
|
|
2675
|
+
* The member is fully unbonded (and thus cannot access the bonded and reward pool
|
|
2676
|
+
* anymore to, for example, collect rewards).
|
|
2677
|
+
*/
|
|
2678
|
+
FullyUnbonding: PlainDescriptor<undefined>;
|
|
2679
|
+
/**
|
|
2680
|
+
* The member cannot unbond further chunks due to reaching the limit.
|
|
2681
|
+
*/
|
|
2682
|
+
MaxUnbondingLimit: PlainDescriptor<undefined>;
|
|
2683
|
+
/**
|
|
2684
|
+
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
|
2685
|
+
*/
|
|
2686
|
+
CannotWithdrawAny: PlainDescriptor<undefined>;
|
|
2687
|
+
/**
|
|
2688
|
+
* The amount does not meet the minimum bond to either join or create a pool.
|
|
2689
|
+
*
|
|
2690
|
+
* The depositor can never unbond to a value less than `Pallet::depositor_min_bond`. The
|
|
2691
|
+
* caller does not have nominating permissions for the pool. Members can never unbond to a
|
|
2692
|
+
* value below `MinJoinBond`.
|
|
2693
|
+
*/
|
|
2694
|
+
MinimumBondNotMet: PlainDescriptor<undefined>;
|
|
2695
|
+
/**
|
|
2696
|
+
* The transaction could not be executed due to overflow risk for the pool.
|
|
2697
|
+
*/
|
|
2698
|
+
OverflowRisk: PlainDescriptor<undefined>;
|
|
2699
|
+
/**
|
|
2700
|
+
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
|
2701
|
+
* other members to be permissionlessly unbonded.
|
|
2702
|
+
*/
|
|
2703
|
+
NotDestroying: PlainDescriptor<undefined>;
|
|
2704
|
+
/**
|
|
2705
|
+
* The caller does not have nominating permissions for the pool.
|
|
2706
|
+
*/
|
|
2707
|
+
NotNominator: PlainDescriptor<undefined>;
|
|
2708
|
+
/**
|
|
2709
|
+
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
|
2710
|
+
*/
|
|
2711
|
+
NotKickerOrDestroying: PlainDescriptor<undefined>;
|
|
2712
|
+
/**
|
|
2713
|
+
* The pool is not open to join
|
|
2714
|
+
*/
|
|
2715
|
+
NotOpen: PlainDescriptor<undefined>;
|
|
2716
|
+
/**
|
|
2717
|
+
* The system is maxed out on pools.
|
|
2718
|
+
*/
|
|
2719
|
+
MaxPools: PlainDescriptor<undefined>;
|
|
2720
|
+
/**
|
|
2721
|
+
* Too many members in the pool or system.
|
|
2722
|
+
*/
|
|
2723
|
+
MaxPoolMembers: PlainDescriptor<undefined>;
|
|
2724
|
+
/**
|
|
2725
|
+
* The pools state cannot be changed.
|
|
2726
|
+
*/
|
|
2727
|
+
CanNotChangeState: PlainDescriptor<undefined>;
|
|
2728
|
+
/**
|
|
2729
|
+
* The caller does not have adequate permissions.
|
|
2730
|
+
*/
|
|
2731
|
+
DoesNotHavePermission: PlainDescriptor<undefined>;
|
|
2732
|
+
/**
|
|
2733
|
+
* Metadata exceeds [`Config::MaxMetadataLen`]
|
|
2734
|
+
*/
|
|
2735
|
+
MetadataExceedsMaxLen: PlainDescriptor<undefined>;
|
|
2736
|
+
/**
|
|
2737
|
+
* Some error occurred that should never happen. This should be reported to the
|
|
2738
|
+
* maintainers.
|
|
2739
|
+
*/
|
|
2740
|
+
Defensive: PlainDescriptor<Anonymize<Ie2db4l6126rkt>>;
|
|
2741
|
+
/**
|
|
2742
|
+
* Partial unbonding now allowed permissionlessly.
|
|
2743
|
+
*/
|
|
2744
|
+
PartialUnbondNotAllowedPermissionlessly: PlainDescriptor<undefined>;
|
|
2745
|
+
/**
|
|
2746
|
+
* The pool's max commission cannot be set higher than the existing value.
|
|
2747
|
+
*/
|
|
2748
|
+
MaxCommissionRestricted: PlainDescriptor<undefined>;
|
|
2749
|
+
/**
|
|
2750
|
+
* The supplied commission exceeds the max allowed commission.
|
|
2751
|
+
*/
|
|
2752
|
+
CommissionExceedsMaximum: PlainDescriptor<undefined>;
|
|
2753
|
+
/**
|
|
2754
|
+
* The supplied commission exceeds global maximum commission.
|
|
2755
|
+
*/
|
|
2756
|
+
CommissionExceedsGlobalMaximum: PlainDescriptor<undefined>;
|
|
2757
|
+
/**
|
|
2758
|
+
* Not enough blocks have surpassed since the last commission update.
|
|
2759
|
+
*/
|
|
2760
|
+
CommissionChangeThrottled: PlainDescriptor<undefined>;
|
|
2761
|
+
/**
|
|
2762
|
+
* The submitted changes to commission change rate are not allowed.
|
|
2763
|
+
*/
|
|
2764
|
+
CommissionChangeRateNotAllowed: PlainDescriptor<undefined>;
|
|
2765
|
+
/**
|
|
2766
|
+
* There is no pending commission to claim.
|
|
2767
|
+
*/
|
|
2768
|
+
NoPendingCommission: PlainDescriptor<undefined>;
|
|
2769
|
+
/**
|
|
2770
|
+
* No commission current has been set.
|
|
2771
|
+
*/
|
|
2772
|
+
NoCommissionCurrentSet: PlainDescriptor<undefined>;
|
|
2773
|
+
/**
|
|
2774
|
+
* Pool id currently in use.
|
|
2775
|
+
*/
|
|
2776
|
+
PoolIdInUse: PlainDescriptor<undefined>;
|
|
2777
|
+
/**
|
|
2778
|
+
* Pool id provided is not correct/usable.
|
|
2779
|
+
*/
|
|
2780
|
+
InvalidPoolId: PlainDescriptor<undefined>;
|
|
2781
|
+
/**
|
|
2782
|
+
* Bonding extra is restricted to the exact pending reward amount.
|
|
2783
|
+
*/
|
|
2784
|
+
BondExtraRestricted: PlainDescriptor<undefined>;
|
|
2785
|
+
/**
|
|
2786
|
+
* No imbalance in the ED deposit for the pool.
|
|
2787
|
+
*/
|
|
2788
|
+
NothingToAdjust: PlainDescriptor<undefined>;
|
|
2789
|
+
/**
|
|
2790
|
+
* No slash pending that can be applied to the member.
|
|
2791
|
+
*/
|
|
2792
|
+
NothingToSlash: PlainDescriptor<undefined>;
|
|
2793
|
+
/**
|
|
2794
|
+
* The slash amount is too low to be applied.
|
|
2795
|
+
*/
|
|
2796
|
+
SlashTooLow: PlainDescriptor<undefined>;
|
|
2797
|
+
/**
|
|
2798
|
+
* The pool or member delegation has already migrated to delegate stake.
|
|
2799
|
+
*/
|
|
2800
|
+
AlreadyMigrated: PlainDescriptor<undefined>;
|
|
2801
|
+
/**
|
|
2802
|
+
* The pool or member delegation has not migrated yet to delegate stake.
|
|
2803
|
+
*/
|
|
2804
|
+
NotMigrated: PlainDescriptor<undefined>;
|
|
2805
|
+
/**
|
|
2806
|
+
* This call is not allowed in the current state of the pallet.
|
|
2807
|
+
*/
|
|
2808
|
+
NotSupported: PlainDescriptor<undefined>;
|
|
2809
|
+
/**
|
|
2810
|
+
* Account is restricted from participation in pools. This may happen if the account is
|
|
2811
|
+
* staking in another way already.
|
|
2812
|
+
*/
|
|
2813
|
+
Restricted: PlainDescriptor<undefined>;
|
|
2814
|
+
};
|
|
2815
|
+
VoterList: {
|
|
2816
|
+
/**
|
|
2817
|
+
* A error in the list interface implementation.
|
|
2818
|
+
*/
|
|
2819
|
+
List: PlainDescriptor<Anonymize<Ictkqqlhdjt761>>;
|
|
2820
|
+
/**
|
|
2821
|
+
* Could not update a node, because the pallet is locked.
|
|
2822
|
+
*/
|
|
2823
|
+
Locked: PlainDescriptor<undefined>;
|
|
2824
|
+
};
|
|
2825
|
+
DelegatedStaking: {
|
|
2826
|
+
/**
|
|
2827
|
+
* The account cannot perform this operation.
|
|
2828
|
+
*/
|
|
2829
|
+
NotAllowed: PlainDescriptor<undefined>;
|
|
2830
|
+
/**
|
|
2831
|
+
* An existing staker cannot perform this action.
|
|
2832
|
+
*/
|
|
2833
|
+
AlreadyStaking: PlainDescriptor<undefined>;
|
|
2834
|
+
/**
|
|
2835
|
+
* Reward Destination cannot be same as `Agent` account.
|
|
2836
|
+
*/
|
|
2837
|
+
InvalidRewardDestination: PlainDescriptor<undefined>;
|
|
2838
|
+
/**
|
|
2839
|
+
* Delegation conditions are not met.
|
|
2840
|
+
*
|
|
2841
|
+
* Possible issues are
|
|
2842
|
+
* 1) Cannot delegate to self,
|
|
2843
|
+
* 2) Cannot delegate to multiple delegates.
|
|
2844
|
+
*/
|
|
2845
|
+
InvalidDelegation: PlainDescriptor<undefined>;
|
|
2846
|
+
/**
|
|
2847
|
+
* The account does not have enough funds to perform the operation.
|
|
2848
|
+
*/
|
|
2849
|
+
NotEnoughFunds: PlainDescriptor<undefined>;
|
|
2850
|
+
/**
|
|
2851
|
+
* Not an existing `Agent` account.
|
|
2852
|
+
*/
|
|
2853
|
+
NotAgent: PlainDescriptor<undefined>;
|
|
2854
|
+
/**
|
|
2855
|
+
* Not a Delegator account.
|
|
2856
|
+
*/
|
|
2857
|
+
NotDelegator: PlainDescriptor<undefined>;
|
|
2858
|
+
/**
|
|
2859
|
+
* Some corruption in internal state.
|
|
2860
|
+
*/
|
|
2861
|
+
BadState: PlainDescriptor<undefined>;
|
|
2862
|
+
/**
|
|
2863
|
+
* Unapplied pending slash restricts operation on `Agent`.
|
|
2864
|
+
*/
|
|
2865
|
+
UnappliedSlash: PlainDescriptor<undefined>;
|
|
2866
|
+
/**
|
|
2867
|
+
* `Agent` has no pending slash to be applied.
|
|
2868
|
+
*/
|
|
2869
|
+
NothingToSlash: PlainDescriptor<undefined>;
|
|
2870
|
+
/**
|
|
2871
|
+
* Failed to withdraw amount from Core Staking.
|
|
2872
|
+
*/
|
|
2873
|
+
WithdrawFailed: PlainDescriptor<undefined>;
|
|
2874
|
+
/**
|
|
2875
|
+
* Operation not supported by this pallet.
|
|
2876
|
+
*/
|
|
2877
|
+
NotSupported: PlainDescriptor<undefined>;
|
|
2878
|
+
};
|
|
2879
|
+
MultiBlockElection: {
|
|
2880
|
+
/**
|
|
2881
|
+
* Triggering the `Fallback` failed.
|
|
2882
|
+
*/
|
|
2883
|
+
Fallback: PlainDescriptor<undefined>;
|
|
2884
|
+
/**
|
|
2885
|
+
* Unexpected phase
|
|
2886
|
+
*/
|
|
2887
|
+
UnexpectedPhase: PlainDescriptor<undefined>;
|
|
2888
|
+
/**
|
|
2889
|
+
* Snapshot was unavailable.
|
|
2890
|
+
*/
|
|
2891
|
+
Snapshot: PlainDescriptor<undefined>;
|
|
2892
|
+
};
|
|
2893
|
+
MultiBlockElectionSigned: {
|
|
2894
|
+
/**
|
|
2895
|
+
* The phase is not signed.
|
|
2896
|
+
*/
|
|
2897
|
+
PhaseNotSigned: PlainDescriptor<undefined>;
|
|
2898
|
+
/**
|
|
2899
|
+
* The submission is a duplicate.
|
|
2900
|
+
*/
|
|
2901
|
+
Duplicate: PlainDescriptor<undefined>;
|
|
2902
|
+
/**
|
|
2903
|
+
* The queue is full.
|
|
2904
|
+
*/
|
|
2905
|
+
QueueFull: PlainDescriptor<undefined>;
|
|
2906
|
+
/**
|
|
2907
|
+
* The page index is out of bounds.
|
|
2908
|
+
*/
|
|
2909
|
+
BadPageIndex: PlainDescriptor<undefined>;
|
|
2910
|
+
/**
|
|
2911
|
+
* The account is not registered.
|
|
2912
|
+
*/
|
|
2913
|
+
NotRegistered: PlainDescriptor<undefined>;
|
|
2914
|
+
/**
|
|
2915
|
+
* No submission found.
|
|
2916
|
+
*/
|
|
2917
|
+
NoSubmission: PlainDescriptor<undefined>;
|
|
2918
|
+
/**
|
|
2919
|
+
* Round is not yet over.
|
|
2920
|
+
*/
|
|
2921
|
+
RoundNotOver: PlainDescriptor<undefined>;
|
|
2922
|
+
/**
|
|
2923
|
+
* Bad witness data provided.
|
|
2924
|
+
*/
|
|
2925
|
+
BadWitnessData: PlainDescriptor<undefined>;
|
|
2926
|
+
/**
|
|
2927
|
+
* Too many invulnerable accounts are provided,
|
|
2928
|
+
*/
|
|
2929
|
+
TooManyInvulnerables: PlainDescriptor<undefined>;
|
|
2930
|
+
};
|
|
2931
|
+
Staking: {
|
|
2932
|
+
/**
|
|
2933
|
+
* Not a controller account.
|
|
2934
|
+
*/
|
|
2935
|
+
NotController: PlainDescriptor<undefined>;
|
|
2936
|
+
/**
|
|
2937
|
+
* Not a stash account.
|
|
2938
|
+
*/
|
|
2939
|
+
NotStash: PlainDescriptor<undefined>;
|
|
2940
|
+
/**
|
|
2941
|
+
* Stash is already bonded.
|
|
2942
|
+
*/
|
|
2943
|
+
AlreadyBonded: PlainDescriptor<undefined>;
|
|
2944
|
+
/**
|
|
2945
|
+
* Controller is already paired.
|
|
2946
|
+
*/
|
|
2947
|
+
AlreadyPaired: PlainDescriptor<undefined>;
|
|
2948
|
+
/**
|
|
2949
|
+
* Targets cannot be empty.
|
|
2950
|
+
*/
|
|
2951
|
+
EmptyTargets: PlainDescriptor<undefined>;
|
|
2952
|
+
/**
|
|
2953
|
+
* Duplicate index.
|
|
2954
|
+
*/
|
|
2955
|
+
DuplicateIndex: PlainDescriptor<undefined>;
|
|
2956
|
+
/**
|
|
2957
|
+
* Slash record not found.
|
|
2958
|
+
*/
|
|
2959
|
+
InvalidSlashRecord: PlainDescriptor<undefined>;
|
|
2960
|
+
/**
|
|
2961
|
+
* Cannot bond, nominate or validate with value less than the minimum defined by
|
|
2962
|
+
* governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
|
|
2963
|
+
* intention, `chill` first to remove one's role as validator/nominator.
|
|
2964
|
+
*/
|
|
2965
|
+
InsufficientBond: PlainDescriptor<undefined>;
|
|
2966
|
+
/**
|
|
2967
|
+
* Can not schedule more unlock chunks.
|
|
2968
|
+
*/
|
|
2969
|
+
NoMoreChunks: PlainDescriptor<undefined>;
|
|
2970
|
+
/**
|
|
2971
|
+
* Can not rebond without unlocking chunks.
|
|
2972
|
+
*/
|
|
2973
|
+
NoUnlockChunk: PlainDescriptor<undefined>;
|
|
2974
|
+
/**
|
|
2975
|
+
* Attempting to target a stash that still has funds.
|
|
2976
|
+
*/
|
|
2977
|
+
FundedTarget: PlainDescriptor<undefined>;
|
|
2978
|
+
/**
|
|
2979
|
+
* Invalid era to reward.
|
|
2980
|
+
*/
|
|
2981
|
+
InvalidEraToReward: PlainDescriptor<undefined>;
|
|
2982
|
+
/**
|
|
2983
|
+
* Invalid number of nominations.
|
|
2984
|
+
*/
|
|
2985
|
+
InvalidNumberOfNominations: PlainDescriptor<undefined>;
|
|
2986
|
+
/**
|
|
2987
|
+
* Rewards for this era have already been claimed for this validator.
|
|
2988
|
+
*/
|
|
2989
|
+
AlreadyClaimed: PlainDescriptor<undefined>;
|
|
2990
|
+
/**
|
|
2991
|
+
* No nominators exist on this page.
|
|
2992
|
+
*/
|
|
2993
|
+
InvalidPage: PlainDescriptor<undefined>;
|
|
2994
|
+
/**
|
|
2995
|
+
* Incorrect previous history depth input provided.
|
|
2996
|
+
*/
|
|
2997
|
+
IncorrectHistoryDepth: PlainDescriptor<undefined>;
|
|
2998
|
+
/**
|
|
2999
|
+
* Internal state has become somehow corrupted and the operation cannot continue.
|
|
3000
|
+
*/
|
|
3001
|
+
BadState: PlainDescriptor<undefined>;
|
|
3002
|
+
/**
|
|
3003
|
+
* Too many nomination targets supplied.
|
|
3004
|
+
*/
|
|
3005
|
+
TooManyTargets: PlainDescriptor<undefined>;
|
|
3006
|
+
/**
|
|
3007
|
+
* A nomination target was supplied that was blocked or otherwise not a validator.
|
|
3008
|
+
*/
|
|
3009
|
+
BadTarget: PlainDescriptor<undefined>;
|
|
3010
|
+
/**
|
|
3011
|
+
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
|
3012
|
+
*/
|
|
3013
|
+
CannotChillOther: PlainDescriptor<undefined>;
|
|
3014
|
+
/**
|
|
3015
|
+
* There are too many nominators in the system. Governance needs to adjust the staking
|
|
3016
|
+
* settings to keep things safe for the runtime.
|
|
3017
|
+
*/
|
|
3018
|
+
TooManyNominators: PlainDescriptor<undefined>;
|
|
3019
|
+
/**
|
|
3020
|
+
* There are too many validator candidates in the system. Governance needs to adjust the
|
|
3021
|
+
* staking settings to keep things safe for the runtime.
|
|
3022
|
+
*/
|
|
3023
|
+
TooManyValidators: PlainDescriptor<undefined>;
|
|
3024
|
+
/**
|
|
3025
|
+
* Commission is too low. Must be at least `MinCommission`.
|
|
3026
|
+
*/
|
|
3027
|
+
CommissionTooLow: PlainDescriptor<undefined>;
|
|
3028
|
+
/**
|
|
3029
|
+
* Some bound is not met.
|
|
3030
|
+
*/
|
|
3031
|
+
BoundNotMet: PlainDescriptor<undefined>;
|
|
3032
|
+
/**
|
|
3033
|
+
* Used when attempting to use deprecated controller account logic.
|
|
3034
|
+
*/
|
|
3035
|
+
ControllerDeprecated: PlainDescriptor<undefined>;
|
|
3036
|
+
/**
|
|
3037
|
+
* Cannot reset a ledger.
|
|
3038
|
+
*/
|
|
3039
|
+
CannotRestoreLedger: PlainDescriptor<undefined>;
|
|
3040
|
+
/**
|
|
3041
|
+
* Provided reward destination is not allowed.
|
|
3042
|
+
*/
|
|
3043
|
+
RewardDestinationRestricted: PlainDescriptor<undefined>;
|
|
3044
|
+
/**
|
|
3045
|
+
* Not enough funds available to withdraw.
|
|
3046
|
+
*/
|
|
3047
|
+
NotEnoughFunds: PlainDescriptor<undefined>;
|
|
3048
|
+
/**
|
|
3049
|
+
* Operation not allowed for virtual stakers.
|
|
3050
|
+
*/
|
|
3051
|
+
VirtualStakerNotAllowed: PlainDescriptor<undefined>;
|
|
3052
|
+
/**
|
|
3053
|
+
* Stash could not be reaped as other pallet might depend on it.
|
|
3054
|
+
*/
|
|
3055
|
+
CannotReapStash: PlainDescriptor<undefined>;
|
|
3056
|
+
/**
|
|
3057
|
+
* The stake of this account is already migrated to `Fungible` holds.
|
|
3058
|
+
*/
|
|
3059
|
+
AlreadyMigrated: PlainDescriptor<undefined>;
|
|
3060
|
+
/**
|
|
3061
|
+
* Era not yet started.
|
|
3062
|
+
*/
|
|
3063
|
+
EraNotStarted: PlainDescriptor<undefined>;
|
|
3064
|
+
/**
|
|
3065
|
+
* Account is restricted from participation in staking. This may happen if the account is
|
|
3066
|
+
* staking in another way already, such as via pool.
|
|
3067
|
+
*/
|
|
3068
|
+
Restricted: PlainDescriptor<undefined>;
|
|
3069
|
+
/**
|
|
3070
|
+
* Unapplied slashes in the recently concluded era is blocking this operation.
|
|
3071
|
+
* See `Call::apply_slash` to apply them.
|
|
3072
|
+
*/
|
|
3073
|
+
UnappliedSlashesInPreviousEra: PlainDescriptor<undefined>;
|
|
3074
|
+
/**
|
|
3075
|
+
* The era is not eligible for pruning.
|
|
3076
|
+
*/
|
|
3077
|
+
EraNotPrunable: PlainDescriptor<undefined>;
|
|
3078
|
+
/**
|
|
3079
|
+
* The slash has been cancelled and cannot be applied.
|
|
3080
|
+
*/
|
|
3081
|
+
CancelledSlash: PlainDescriptor<undefined>;
|
|
3082
|
+
};
|
|
3083
|
+
AhOps: {
|
|
3084
|
+
/**
|
|
3085
|
+
* Either no lease deposit or already unreserved.
|
|
3086
|
+
*/
|
|
3087
|
+
NoLeaseReserve: PlainDescriptor<undefined>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Either no crowdloan contribution or already withdrawn.
|
|
3090
|
+
*/
|
|
3091
|
+
NoCrowdloanContribution: PlainDescriptor<undefined>;
|
|
3092
|
+
/**
|
|
3093
|
+
* Either no crowdloan reserve or already unreserved.
|
|
3094
|
+
*/
|
|
3095
|
+
NoCrowdloanReserve: PlainDescriptor<undefined>;
|
|
3096
|
+
/**
|
|
3097
|
+
* Failed to withdraw crowdloan contribution.
|
|
3098
|
+
*/
|
|
3099
|
+
FailedToWithdrawCrowdloanContribution: PlainDescriptor<undefined>;
|
|
3100
|
+
/**
|
|
3101
|
+
* Block number is not yet reached.
|
|
3102
|
+
*/
|
|
3103
|
+
NotYet: PlainDescriptor<undefined>;
|
|
3104
|
+
/**
|
|
3105
|
+
* Not all contributions are withdrawn.
|
|
3106
|
+
*/
|
|
3107
|
+
ContributionsRemaining: PlainDescriptor<undefined>;
|
|
3108
|
+
/**
|
|
3109
|
+
* The account is not a derived account.
|
|
3110
|
+
*/
|
|
3111
|
+
WrongDerivedTranslation: PlainDescriptor<undefined>;
|
|
3112
|
+
/**
|
|
3113
|
+
* Account cannot be migrated since it is not a sovereign parachain account.
|
|
3114
|
+
*/
|
|
3115
|
+
NotSovereign: PlainDescriptor<undefined>;
|
|
3116
|
+
/**
|
|
3117
|
+
* Internal error, please bug report.
|
|
3118
|
+
*/
|
|
3119
|
+
InternalError: PlainDescriptor<undefined>;
|
|
3120
|
+
/**
|
|
3121
|
+
* The Asset Hub migration is not completed.
|
|
3122
|
+
*/
|
|
3123
|
+
MigrationNotCompleted: PlainDescriptor<undefined>;
|
|
3124
|
+
/**
|
|
3125
|
+
* The balance is zero.
|
|
3126
|
+
*/
|
|
3127
|
+
ZeroBalance: PlainDescriptor<undefined>;
|
|
3128
|
+
};
|
|
3129
|
+
AhMigrator: {
|
|
3130
|
+
/**
|
|
3131
|
+
* Failed to unreserve deposit.
|
|
3132
|
+
*/
|
|
3133
|
+
FailedToUnreserveDeposit: PlainDescriptor<undefined>;
|
|
3134
|
+
/**
|
|
3135
|
+
* Failed to process an account data from RC.
|
|
3136
|
+
*/
|
|
3137
|
+
FailedToProcessAccount: PlainDescriptor<undefined>;
|
|
3138
|
+
/**
|
|
3139
|
+
* Some item could not be inserted because it already exists.
|
|
3140
|
+
*/
|
|
3141
|
+
InsertConflict: PlainDescriptor<undefined>;
|
|
3142
|
+
/**
|
|
3143
|
+
* Failed to convert RC type to AH type.
|
|
3144
|
+
*/
|
|
3145
|
+
FailedToConvertType: PlainDescriptor<undefined>;
|
|
3146
|
+
/**
|
|
3147
|
+
* Failed to fetch preimage.
|
|
3148
|
+
*/
|
|
3149
|
+
PreimageNotFound: PlainDescriptor<undefined>;
|
|
3150
|
+
/**
|
|
3151
|
+
* Failed to convert RC call to AH call.
|
|
3152
|
+
*/
|
|
3153
|
+
FailedToConvertCall: PlainDescriptor<undefined>;
|
|
3154
|
+
/**
|
|
3155
|
+
* Failed to bound a call.
|
|
3156
|
+
*/
|
|
3157
|
+
FailedToBoundCall: PlainDescriptor<undefined>;
|
|
3158
|
+
/**
|
|
3159
|
+
* Failed to send XCM message.
|
|
3160
|
+
*/
|
|
3161
|
+
XcmError: PlainDescriptor<undefined>;
|
|
3162
|
+
/**
|
|
3163
|
+
* Failed to integrate a vesting schedule.
|
|
3164
|
+
*/
|
|
3165
|
+
FailedToIntegrateVestingSchedule: PlainDescriptor<undefined>;
|
|
3166
|
+
/**
|
|
3167
|
+
* Checking account overflow or underflow.
|
|
3168
|
+
*/
|
|
3169
|
+
FailedToCalculateCheckingAccount: PlainDescriptor<undefined>;
|
|
3170
|
+
/**
|
|
3171
|
+
* Vector did not fit into its compile-time bound.
|
|
3172
|
+
*/
|
|
3173
|
+
FailedToBoundVector: PlainDescriptor<undefined>;
|
|
3174
|
+
/**
|
|
3175
|
+
* The DMP queue priority is already set to the same value.
|
|
3176
|
+
*/
|
|
3177
|
+
DmpQueuePriorityAlreadySet: PlainDescriptor<undefined>;
|
|
3178
|
+
/**
|
|
3179
|
+
* Invalid parameter.
|
|
3180
|
+
*/
|
|
3181
|
+
InvalidParameter: PlainDescriptor<undefined>;
|
|
3182
|
+
/**
|
|
3183
|
+
* Preimage missing.
|
|
3184
|
+
*/
|
|
3185
|
+
PreimageMissing: PlainDescriptor<undefined>;
|
|
3186
|
+
/**
|
|
3187
|
+
* Preimage too big.
|
|
3188
|
+
*/
|
|
3189
|
+
PreimageTooBig: PlainDescriptor<undefined>;
|
|
3190
|
+
/**
|
|
3191
|
+
* Preimage chunk missing.
|
|
3192
|
+
*/
|
|
3193
|
+
PreimageChunkMissing: PlainDescriptor<undefined>;
|
|
3194
|
+
/**
|
|
3195
|
+
* Preimage status invalid.
|
|
3196
|
+
*/
|
|
3197
|
+
PreimageStatusInvalid: PlainDescriptor<undefined>;
|
|
3198
|
+
/**
|
|
3199
|
+
* The XCM version is invalid.
|
|
3200
|
+
*/
|
|
3201
|
+
BadXcmVersion: PlainDescriptor<undefined>;
|
|
3202
|
+
/**
|
|
3203
|
+
* The origin is invalid.
|
|
3204
|
+
*/
|
|
3205
|
+
InvalidOrigin: PlainDescriptor<undefined>;
|
|
3206
|
+
};
|
|
3207
|
+
};
|
|
3208
|
+
type IConstants = {
|
|
3209
|
+
System: {
|
|
3210
|
+
/**
|
|
3211
|
+
* Block & extrinsics weights: base values and limits.
|
|
3212
|
+
*/
|
|
3213
|
+
BlockWeights: PlainDescriptor<Anonymize<In7a38730s6qs>>;
|
|
3214
|
+
/**
|
|
3215
|
+
* The maximum length of a block (in bytes).
|
|
3216
|
+
*/
|
|
3217
|
+
BlockLength: PlainDescriptor<Anonymize<If15el53dd76v9>>;
|
|
3218
|
+
/**
|
|
3219
|
+
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
|
3220
|
+
*/
|
|
3221
|
+
BlockHashCount: PlainDescriptor<number>;
|
|
3222
|
+
/**
|
|
3223
|
+
* The weight of runtime database operations the runtime can invoke.
|
|
3224
|
+
*/
|
|
3225
|
+
DbWeight: PlainDescriptor<Anonymize<I9s0ave7t0vnrk>>;
|
|
3226
|
+
/**
|
|
3227
|
+
* Get the chain's in-code version.
|
|
3228
|
+
*/
|
|
3229
|
+
Version: PlainDescriptor<Anonymize<I4fo08joqmcqnm>>;
|
|
3230
|
+
/**
|
|
3231
|
+
* The designated SS58 prefix of this chain.
|
|
3232
|
+
*
|
|
3233
|
+
* This replaces the "ss58Format" property declared in the chain spec. Reason is
|
|
3234
|
+
* that the runtime should know about the prefix in order to make use of it as
|
|
3235
|
+
* an identifier of the chain.
|
|
3236
|
+
*/
|
|
3237
|
+
SS58Prefix: PlainDescriptor<number>;
|
|
3238
|
+
};
|
|
3239
|
+
};
|
|
3240
|
+
type IViewFns = {};
|
|
3241
|
+
type IRuntimeCalls = {
|
|
3242
|
+
/**
|
|
3243
|
+
* A trait of XCM payment API.
|
|
3244
|
+
*
|
|
3245
|
+
* API provides functionality for obtaining:
|
|
3246
|
+
*
|
|
3247
|
+
* * the weight required to execute an XCM message,
|
|
3248
|
+
* * a list of acceptable `AssetId`s for message execution payment,
|
|
3249
|
+
* * the cost of the weight in the specified acceptable `AssetId`.
|
|
3250
|
+
* * the fees for an XCM message delivery.
|
|
3251
|
+
*
|
|
3252
|
+
* To determine the execution weight of the calls required for
|
|
3253
|
+
* [`xcm::latest::Instruction::Transact`] instruction, `TransactionPaymentCallApi` can be used.
|
|
3254
|
+
*/
|
|
3255
|
+
XcmPaymentApi: {
|
|
3256
|
+
/**
|
|
3257
|
+
* Returns a list of acceptable payment assets.
|
|
3258
|
+
*
|
|
3259
|
+
* # Arguments
|
|
3260
|
+
*
|
|
3261
|
+
* * `xcm_version`: Version.
|
|
3262
|
+
*/
|
|
3263
|
+
query_acceptable_payment_assets: RuntimeDescriptor<[xcm_version: number], Anonymize<Iftvbctbo05fu4>>;
|
|
3264
|
+
/**
|
|
3265
|
+
* Returns a weight needed to execute a XCM.
|
|
3266
|
+
*
|
|
3267
|
+
* # Arguments
|
|
3268
|
+
*
|
|
3269
|
+
* * `message`: `VersionedXcm`.
|
|
3270
|
+
*/
|
|
3271
|
+
query_xcm_weight: RuntimeDescriptor<[message: XcmVersionedXcm], Anonymize<Ic0c3req3mlc1l>>;
|
|
3272
|
+
/**
|
|
3273
|
+
* Converts a weight into a fee for the specified `AssetId`.
|
|
3274
|
+
*
|
|
3275
|
+
* # Arguments
|
|
3276
|
+
*
|
|
3277
|
+
* * `weight`: convertible `Weight`.
|
|
3278
|
+
* * `asset`: `VersionedAssetId`.
|
|
3279
|
+
*/
|
|
3280
|
+
query_weight_to_asset_fee: RuntimeDescriptor<[weight: Anonymize<I4q39t5hn830vp>, asset: XcmVersionedAssetId], Anonymize<I7ocn4njqde3v5>>;
|
|
3281
|
+
/**
|
|
3282
|
+
* Get delivery fees for sending a specific `message` to a `destination`.
|
|
3283
|
+
* These always come in a specific asset, defined by the chain.
|
|
3284
|
+
*
|
|
3285
|
+
* # Arguments
|
|
3286
|
+
* * `message`: The message that'll be sent, necessary because most delivery fees are based on the
|
|
3287
|
+
* size of the message.
|
|
3288
|
+
* * `destination`: The destination to send the message to. Different destinations may use
|
|
3289
|
+
* different senders that charge different fees.
|
|
3290
|
+
*/
|
|
3291
|
+
query_delivery_fees: RuntimeDescriptor<[destination: XcmVersionedLocation, message: XcmVersionedXcm], Anonymize<Iek7ha36da9mf5>>;
|
|
3292
|
+
};
|
|
3293
|
+
/**
|
|
3294
|
+
* API for dry-running extrinsics and XCM programs to get the programs that need to be passed to the fees API.
|
|
3295
|
+
*
|
|
3296
|
+
* All calls return a vector of tuples (location, xcm) where each "xcm" is executed in "location".
|
|
3297
|
+
* If there's local execution, the location will be "Here".
|
|
3298
|
+
* This vector can be used to calculate both execution and delivery fees.
|
|
3299
|
+
*
|
|
3300
|
+
* Calls or XCMs might fail when executed, this doesn't mean the result of these calls will be an `Err`.
|
|
3301
|
+
* In those cases, there might still be a valid result, with the execution error inside it.
|
|
3302
|
+
* The only reasons why these calls might return an error are listed in the [`Error`] enum.
|
|
3303
|
+
*/
|
|
3304
|
+
DryRunApi: {
|
|
3305
|
+
/**
|
|
3306
|
+
* Dry run call V2.
|
|
3307
|
+
*/
|
|
3308
|
+
dry_run_call: RuntimeDescriptor<[origin: Anonymize<I9mrsespe1jciv>, call: Anonymize<I1ndeq00vn7nno>, result_xcms_version: number], Anonymize<I1ot6qmf1h8h63>>;
|
|
3309
|
+
/**
|
|
3310
|
+
* Dry run XCM program
|
|
3311
|
+
*/
|
|
3312
|
+
dry_run_xcm: RuntimeDescriptor<[origin_location: XcmVersionedLocation, xcm: XcmVersionedXcm], Anonymize<Iov7b207cnpr7>>;
|
|
3313
|
+
};
|
|
3314
|
+
/**
|
|
3315
|
+
* This runtime api allows people to query the size of the liquidity pools
|
|
3316
|
+
* and quote prices for swaps.
|
|
3317
|
+
*/
|
|
3318
|
+
AssetConversionApi: {
|
|
3319
|
+
/**
|
|
3320
|
+
* Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
|
|
3321
|
+
*
|
|
3322
|
+
* Note that the price may have changed by the time the transaction is executed.
|
|
3323
|
+
* (Use `amount_in_max` to control slippage.)
|
|
3324
|
+
*/
|
|
3325
|
+
quote_price_tokens_for_exact_tokens: RuntimeDescriptor<[asset1: Anonymize<If9iqq7i64mur8>, asset2: Anonymize<If9iqq7i64mur8>, amount: bigint, include_fee: boolean], Anonymize<I35p85j063s0il>>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
|
|
3328
|
+
*
|
|
3329
|
+
* Note that the price may have changed by the time the transaction is executed.
|
|
3330
|
+
* (Use `amount_out_min` to control slippage.)
|
|
3331
|
+
*/
|
|
3332
|
+
quote_price_exact_tokens_for_tokens: RuntimeDescriptor<[asset1: Anonymize<If9iqq7i64mur8>, asset2: Anonymize<If9iqq7i64mur8>, amount: bigint, include_fee: boolean], Anonymize<I35p85j063s0il>>;
|
|
3333
|
+
/**
|
|
3334
|
+
* Returns the size of the liquidity pool for the given asset pair.
|
|
3335
|
+
*/
|
|
3336
|
+
get_reserves: RuntimeDescriptor<[asset1: Anonymize<If9iqq7i64mur8>, asset2: Anonymize<If9iqq7i64mur8>], Anonymize<I5vv5n03oo8gas>>;
|
|
3337
|
+
};
|
|
3338
|
+
};
|
|
3339
|
+
export type HubDispatchError = unknown;
|
|
3340
|
+
type IAsset = PlainDescriptor<Anonymize<If9iqq7i64mur8>>;
|
|
3341
|
+
export type HubExtensions = {};
|
|
3342
|
+
type PalletsTypedef = {
|
|
3343
|
+
__storage: IStorage;
|
|
3344
|
+
__tx: ICalls;
|
|
3345
|
+
__event: IEvent;
|
|
3346
|
+
__error: IError;
|
|
3347
|
+
__const: IConstants;
|
|
3348
|
+
__view: IViewFns;
|
|
3349
|
+
};
|
|
3350
|
+
export type Hub = {
|
|
3351
|
+
descriptors: {
|
|
3352
|
+
pallets: PalletsTypedef;
|
|
3353
|
+
apis: IRuntimeCalls;
|
|
3354
|
+
} & Promise<any>;
|
|
3355
|
+
metadataTypes: Promise<Uint8Array>;
|
|
3356
|
+
asset: IAsset;
|
|
3357
|
+
extensions: HubExtensions;
|
|
3358
|
+
getMetadata: () => Promise<Uint8Array>;
|
|
3359
|
+
genesis: string | undefined;
|
|
3360
|
+
};
|
|
3361
|
+
declare const _allDescriptors: Hub;
|
|
3362
|
+
export default _allDescriptors;
|
|
3363
|
+
export type HubApis = ApisFromDef<IRuntimeCalls>;
|
|
3364
|
+
export type HubQueries = QueryFromPalletsDef<PalletsTypedef>;
|
|
3365
|
+
export type HubCalls = TxFromPalletsDef<PalletsTypedef>;
|
|
3366
|
+
export type HubEvents = EventsFromPalletsDef<PalletsTypedef>;
|
|
3367
|
+
export type HubErrors = ErrorsFromPalletsDef<PalletsTypedef>;
|
|
3368
|
+
export type HubConstants = ConstFromPalletsDef<PalletsTypedef>;
|
|
3369
|
+
export type HubViewFns = ViewFnsFromPalletsDef<PalletsTypedef>;
|
|
3370
|
+
export type HubCallData = Anonymize<I1ndeq00vn7nno> & {
|
|
3371
|
+
value: {
|
|
3372
|
+
type: string;
|
|
3373
|
+
};
|
|
3374
|
+
};
|
|
3375
|
+
type AllInteractions = {
|
|
3376
|
+
storage: {
|
|
3377
|
+
System: ['Account', 'ExtrinsicCount', 'InherentsApplied', 'BlockWeight', 'AllExtrinsicsLen', 'BlockHash', 'ExtrinsicData', 'Number', 'ParentHash', 'Digest', 'Events', 'EventCount', 'EventTopics', 'LastRuntimeUpgrade', 'UpgradedToU32RefCount', 'UpgradedToTripleRefCount', 'ExecutionPhase', 'AuthorizedUpgrade', 'ExtrinsicWeightReclaimed'];
|
|
3378
|
+
Assets: ['Asset', 'Account', 'Approvals', 'Metadata', 'NextAssetId'];
|
|
3379
|
+
ForeignAssets: ['Asset', 'Account', 'Approvals', 'Metadata', 'NextAssetId'];
|
|
3380
|
+
};
|
|
3381
|
+
tx: {
|
|
3382
|
+
PolkadotXcm: ['send', 'teleport_assets', 'reserve_transfer_assets', 'execute', 'force_xcm_version', 'force_default_xcm_version', 'force_subscribe_version_notify', 'force_unsubscribe_version_notify', 'limited_reserve_transfer_assets', 'limited_teleport_assets', 'force_suspension', 'transfer_assets', 'claim_assets', 'transfer_assets_using_type_and_then', 'add_authorized_alias', 'remove_authorized_alias', 'remove_all_authorized_aliases'];
|
|
3383
|
+
Assets: ['create', 'force_create', 'start_destroy', 'destroy_accounts', 'destroy_approvals', 'finish_destroy', 'mint', 'burn', 'transfer', 'transfer_keep_alive', 'force_transfer', 'freeze', 'thaw', 'freeze_asset', 'thaw_asset', 'transfer_ownership', 'set_team', 'set_metadata', 'clear_metadata', 'force_set_metadata', 'force_clear_metadata', 'force_asset_status', 'approve_transfer', 'cancel_approval', 'force_cancel_approval', 'transfer_approved', 'touch', 'refund', 'set_min_balance', 'touch_other', 'refund_other', 'block', 'transfer_all'];
|
|
3384
|
+
};
|
|
3385
|
+
events: {};
|
|
3386
|
+
errors: {
|
|
3387
|
+
System: ['InvalidSpecName', 'SpecVersionNeedsToIncrease', 'FailedToExtractRuntimeVersion', 'NonDefaultComposite', 'NonZeroRefCount', 'CallFiltered', 'MultiBlockMigrationsOngoing', 'InvalidTask', 'FailedTask', 'NothingAuthorized', 'Unauthorized'];
|
|
3388
|
+
ParachainSystem: ['OverlappingUpgrades', 'ProhibitedByPolkadot', 'TooBig', 'ValidationDataNotAvailable', 'HostConfigurationNotAvailable', 'NotScheduled'];
|
|
3389
|
+
Preimage: ['TooBig', 'AlreadyNoted', 'NotAuthorized', 'NotNoted', 'Requested', 'NotRequested', 'TooMany', 'TooFew'];
|
|
3390
|
+
Scheduler: ['FailedToSchedule', 'NotFound', 'TargetBlockNumberInPast', 'RescheduleNoChange', 'Named'];
|
|
3391
|
+
Balances: ['VestingBalance', 'LiquidityRestrictions', 'InsufficientBalance', 'ExistentialDeposit', 'Expendability', 'ExistingVestingSchedule', 'DeadAccount', 'TooManyReserves', 'TooManyHolds', 'TooManyFreezes', 'IssuanceDeactivated', 'DeltaZero'];
|
|
3392
|
+
Vesting: ['NotVesting', 'AtMaxVestingSchedules', 'AmountLow', 'ScheduleIndexOutOfBounds', 'InvalidScheduleParams'];
|
|
3393
|
+
Claims: ['InvalidEthereumSignature', 'SignerHasNoClaim', 'SenderHasNoClaim', 'PotUnderflow', 'InvalidStatement', 'VestedBalanceExists'];
|
|
3394
|
+
CollatorSelection: ['TooManyCandidates', 'TooFewEligibleCollators', 'AlreadyCandidate', 'NotCandidate', 'TooManyInvulnerables', 'AlreadyInvulnerable', 'NotInvulnerable', 'NoAssociatedValidatorId', 'ValidatorNotRegistered', 'InsertToCandidateListFailed', 'RemoveFromCandidateListFailed', 'DepositTooLow', 'UpdateCandidateListFailed', 'InsufficientBond', 'TargetIsNotCandidate', 'IdenticalDeposit', 'InvalidUnreserve'];
|
|
3395
|
+
Session: ['InvalidProof', 'NoAssociatedValidatorId', 'DuplicatedKey', 'NoKeys', 'NoAccount'];
|
|
3396
|
+
XcmpQueue: ['BadQueueConfig', 'AlreadySuspended', 'AlreadyResumed', 'TooManyActiveOutboundChannels', 'TooBig'];
|
|
3397
|
+
PolkadotXcm: ['Unreachable', 'SendFailure', 'Filtered', 'UnweighableMessage', 'DestinationNotInvertible', 'Empty', 'CannotReanchor', 'TooManyAssets', 'InvalidOrigin', 'BadVersion', 'BadLocation', 'NoSubscription', 'AlreadySubscribed', 'CannotCheckOutTeleport', 'LowBalance', 'TooManyLocks', 'AccountNotSovereign', 'FeesNotMet', 'LockNotFound', 'InUse', 'InvalidAssetUnknownReserve', 'InvalidAssetUnsupportedReserve', 'TooManyReserves', 'LocalExecutionIncomplete', 'TooManyAuthorizedAliases', 'ExpiresInPast', 'AliasNotFound', 'LocalExecutionIncompleteWithError'];
|
|
3398
|
+
MessageQueue: ['NotReapable', 'NoPage', 'NoMessage', 'AlreadyProcessed', 'Queued', 'InsufficientWeight', 'TemporarilyUnprocessable', 'QueuePaused', 'RecursiveDisallowed'];
|
|
3399
|
+
SnowbridgeSystemFrontend: ['UnsupportedLocationVersion', 'InvalidAssetOwner', 'SendFailure', 'FeesNotMet', 'LocationConversionFailed', 'Halted', 'Unreachable', 'UnsupportedAsset', 'WithdrawError', 'InvalidAccount', 'SwapError', 'BurnError', 'TipAmountZero'];
|
|
3400
|
+
Utility: ['TooManyCalls'];
|
|
3401
|
+
Multisig: ['MinimumThreshold', 'AlreadyApproved', 'NoApprovalsNeeded', 'TooFewSignatories', 'TooManySignatories', 'SignatoriesOutOfOrder', 'SenderInSignatories', 'NotFound', 'NotOwner', 'NoTimepoint', 'WrongTimepoint', 'UnexpectedTimepoint', 'MaxWeightTooLow', 'AlreadyStored'];
|
|
3402
|
+
Proxy: ['TooMany', 'NotFound', 'NotProxy', 'Unproxyable', 'Duplicate', 'NoPermission', 'Unannounced', 'NoSelfProxy'];
|
|
3403
|
+
Indices: ['NotAssigned', 'NotOwner', 'InUse', 'NotTransfer', 'Permanent'];
|
|
3404
|
+
Assets: ['BalanceLow', 'NoAccount', 'NoPermission', 'Unknown', 'Frozen', 'InUse', 'BadWitness', 'MinBalanceZero', 'UnavailableConsumer', 'BadMetadata', 'Unapproved', 'WouldDie', 'AlreadyExists', 'NoDeposit', 'WouldBurn', 'LiveAsset', 'AssetNotLive', 'IncorrectStatus', 'NotFrozen', 'CallbackFailed', 'BadAssetId', 'ContainsFreezes', 'ContainsHolds'];
|
|
3405
|
+
Uniques: ['NoPermission', 'UnknownCollection', 'AlreadyExists', 'WrongOwner', 'BadWitness', 'InUse', 'Frozen', 'WrongDelegate', 'NoDelegate', 'Unapproved', 'Unaccepted', 'Locked', 'MaxSupplyReached', 'MaxSupplyAlreadySet', 'MaxSupplyTooSmall', 'UnknownItem', 'NotForSale', 'BidTooLow', 'NoMetadata', 'WrongMetadata', 'AttributeNotFound', 'WrongAttribute'];
|
|
3406
|
+
Nfts: ['NoPermission', 'UnknownCollection', 'AlreadyExists', 'ApprovalExpired', 'WrongOwner', 'BadWitness', 'CollectionIdInUse', 'ItemsNonTransferable', 'NotDelegate', 'WrongDelegate', 'Unapproved', 'Unaccepted', 'ItemLocked', 'LockedItemAttributes', 'LockedCollectionAttributes', 'LockedItemMetadata', 'LockedCollectionMetadata', 'MaxSupplyReached', 'MaxSupplyLocked', 'MaxSupplyTooSmall', 'UnknownItem', 'UnknownSwap', 'MetadataNotFound', 'AttributeNotFound', 'NotForSale', 'BidTooLow', 'ReachedApprovalLimit', 'DeadlineExpired', 'WrongDuration', 'MethodDisabled', 'WrongSetting', 'InconsistentItemConfig', 'NoConfig', 'RolesNotCleared', 'MintNotStarted', 'MintEnded', 'AlreadyClaimed', 'IncorrectData', 'WrongOrigin', 'WrongSignature', 'IncorrectMetadata', 'MaxAttributesLimitReached', 'WrongNamespace', 'CollectionNotEmpty', 'WitnessRequired'];
|
|
3407
|
+
ForeignAssets: ['BalanceLow', 'NoAccount', 'NoPermission', 'Unknown', 'Frozen', 'InUse', 'BadWitness', 'MinBalanceZero', 'UnavailableConsumer', 'BadMetadata', 'Unapproved', 'WouldDie', 'AlreadyExists', 'NoDeposit', 'WouldBurn', 'LiveAsset', 'AssetNotLive', 'IncorrectStatus', 'NotFrozen', 'CallbackFailed', 'BadAssetId', 'ContainsFreezes', 'ContainsHolds'];
|
|
3408
|
+
PoolAssets: ['BalanceLow', 'NoAccount', 'NoPermission', 'Unknown', 'Frozen', 'InUse', 'BadWitness', 'MinBalanceZero', 'UnavailableConsumer', 'BadMetadata', 'Unapproved', 'WouldDie', 'AlreadyExists', 'NoDeposit', 'WouldBurn', 'LiveAsset', 'AssetNotLive', 'IncorrectStatus', 'NotFrozen', 'CallbackFailed', 'BadAssetId', 'ContainsFreezes', 'ContainsHolds'];
|
|
3409
|
+
AssetConversion: ['InvalidAssetPair', 'PoolExists', 'WrongDesiredAmount', 'AmountOneLessThanMinimal', 'AmountTwoLessThanMinimal', 'ReserveLeftLessThanMinimal', 'AmountOutTooHigh', 'PoolNotFound', 'Overflow', 'AssetOneDepositDidNotMeetMinimum', 'AssetTwoDepositDidNotMeetMinimum', 'AssetOneWithdrawalDidNotMeetMinimum', 'AssetTwoWithdrawalDidNotMeetMinimum', 'OptimalAmountLessThanDesired', 'InsufficientLiquidityMinted', 'ZeroLiquidity', 'ZeroAmount', 'ProvidedMinimumNotSufficientForSwap', 'ProvidedMaximumNotSufficientForSwap', 'InvalidPath', 'NonUniquePath', 'IncorrectPoolAssetId', 'BelowMinimum'];
|
|
3410
|
+
Treasury: ['InvalidIndex', 'TooManyApprovals', 'InsufficientPermission', 'ProposalNotApproved', 'FailedToConvertBalance', 'SpendExpired', 'EarlyPayout', 'AlreadyAttempted', 'PayoutError', 'NotAttempted', 'Inconclusive'];
|
|
3411
|
+
ConvictionVoting: ['NotOngoing', 'NotVoter', 'NoPermission', 'NoPermissionYet', 'AlreadyDelegating', 'AlreadyVoting', 'InsufficientFunds', 'NotDelegating', 'Nonsense', 'MaxVotesReached', 'ClassNeeded', 'BadClass'];
|
|
3412
|
+
Referenda: ['NotOngoing', 'HasDeposit', 'BadTrack', 'Full', 'QueueEmpty', 'BadReferendum', 'NothingToDo', 'NoTrack', 'Unfinished', 'NoPermission', 'NoDeposit', 'BadStatus', 'PreimageNotExist', 'PreimageStoredWithDifferentLength'];
|
|
3413
|
+
Whitelist: ['UnavailablePreImage', 'UndecodableCall', 'InvalidCallWeightWitness', 'CallIsNotWhitelisted', 'CallAlreadyWhitelisted'];
|
|
3414
|
+
Bounties: ['InsufficientProposersBalance', 'InvalidIndex', 'ReasonTooBig', 'UnexpectedStatus', 'RequireCurator', 'InvalidValue', 'InvalidFee', 'PendingPayout', 'Premature', 'HasActiveChildBounty', 'TooManyQueued', 'NotProposer'];
|
|
3415
|
+
ChildBounties: ['ParentBountyNotActive', 'InsufficientBountyBalance', 'TooManyChildBounties'];
|
|
3416
|
+
AssetRate: ['UnknownAssetKind', 'AlreadyExists', 'Overflow'];
|
|
3417
|
+
StateTrieMigration: ['MaxSignedLimits', 'KeyTooLong', 'NotEnoughFunds', 'BadWitness', 'SignedMigrationNotAllowed', 'BadChildRoot'];
|
|
3418
|
+
NominationPools: ['PoolNotFound', 'PoolMemberNotFound', 'RewardPoolNotFound', 'SubPoolsNotFound', 'AccountBelongsToOtherPool', 'FullyUnbonding', 'MaxUnbondingLimit', 'CannotWithdrawAny', 'MinimumBondNotMet', 'OverflowRisk', 'NotDestroying', 'NotNominator', 'NotKickerOrDestroying', 'NotOpen', 'MaxPools', 'MaxPoolMembers', 'CanNotChangeState', 'DoesNotHavePermission', 'MetadataExceedsMaxLen', 'Defensive', 'PartialUnbondNotAllowedPermissionlessly', 'MaxCommissionRestricted', 'CommissionExceedsMaximum', 'CommissionExceedsGlobalMaximum', 'CommissionChangeThrottled', 'CommissionChangeRateNotAllowed', 'NoPendingCommission', 'NoCommissionCurrentSet', 'PoolIdInUse', 'InvalidPoolId', 'BondExtraRestricted', 'NothingToAdjust', 'NothingToSlash', 'SlashTooLow', 'AlreadyMigrated', 'NotMigrated', 'NotSupported', 'Restricted'];
|
|
3419
|
+
VoterList: ['List', 'Locked'];
|
|
3420
|
+
DelegatedStaking: ['NotAllowed', 'AlreadyStaking', 'InvalidRewardDestination', 'InvalidDelegation', 'NotEnoughFunds', 'NotAgent', 'NotDelegator', 'BadState', 'UnappliedSlash', 'NothingToSlash', 'WithdrawFailed', 'NotSupported'];
|
|
3421
|
+
MultiBlockElection: ['Fallback', 'UnexpectedPhase', 'Snapshot'];
|
|
3422
|
+
MultiBlockElectionSigned: ['PhaseNotSigned', 'Duplicate', 'QueueFull', 'BadPageIndex', 'NotRegistered', 'NoSubmission', 'RoundNotOver', 'BadWitnessData', 'TooManyInvulnerables'];
|
|
3423
|
+
Staking: ['NotController', 'NotStash', 'AlreadyBonded', 'AlreadyPaired', 'EmptyTargets', 'DuplicateIndex', 'InvalidSlashRecord', 'InsufficientBond', 'NoMoreChunks', 'NoUnlockChunk', 'FundedTarget', 'InvalidEraToReward', 'InvalidNumberOfNominations', 'AlreadyClaimed', 'InvalidPage', 'IncorrectHistoryDepth', 'BadState', 'TooManyTargets', 'BadTarget', 'CannotChillOther', 'TooManyNominators', 'TooManyValidators', 'CommissionTooLow', 'BoundNotMet', 'ControllerDeprecated', 'CannotRestoreLedger', 'RewardDestinationRestricted', 'NotEnoughFunds', 'VirtualStakerNotAllowed', 'CannotReapStash', 'AlreadyMigrated', 'EraNotStarted', 'Restricted', 'UnappliedSlashesInPreviousEra', 'EraNotPrunable', 'CancelledSlash'];
|
|
3424
|
+
AhOps: ['NoLeaseReserve', 'NoCrowdloanContribution', 'NoCrowdloanReserve', 'FailedToWithdrawCrowdloanContribution', 'NotYet', 'ContributionsRemaining', 'WrongDerivedTranslation', 'NotSovereign', 'InternalError', 'MigrationNotCompleted', 'ZeroBalance'];
|
|
3425
|
+
AhMigrator: ['FailedToUnreserveDeposit', 'FailedToProcessAccount', 'InsertConflict', 'FailedToConvertType', 'PreimageNotFound', 'FailedToConvertCall', 'FailedToBoundCall', 'XcmError', 'FailedToIntegrateVestingSchedule', 'FailedToCalculateCheckingAccount', 'FailedToBoundVector', 'DmpQueuePriorityAlreadySet', 'InvalidParameter', 'PreimageMissing', 'PreimageTooBig', 'PreimageChunkMissing', 'PreimageStatusInvalid', 'BadXcmVersion', 'InvalidOrigin'];
|
|
3426
|
+
};
|
|
3427
|
+
constants: {
|
|
3428
|
+
System: ['BlockWeights', 'BlockLength', 'BlockHashCount', 'DbWeight', 'Version', 'SS58Prefix'];
|
|
3429
|
+
};
|
|
3430
|
+
viewFns: {};
|
|
3431
|
+
apis: {
|
|
3432
|
+
XcmPaymentApi: ['query_acceptable_payment_assets', 'query_xcm_weight', 'query_weight_to_asset_fee', 'query_delivery_fees'];
|
|
3433
|
+
DryRunApi: ['dry_run_call', 'dry_run_xcm'];
|
|
3434
|
+
AssetConversionApi: ['quote_price_tokens_for_exact_tokens', 'quote_price_exact_tokens_for_tokens', 'get_reserves'];
|
|
3435
|
+
};
|
|
3436
|
+
};
|
|
3437
|
+
export type HubWhitelistEntry = PalletKey | `query.${NestedKey<AllInteractions['storage']>}` | `tx.${NestedKey<AllInteractions['tx']>}` | `event.${NestedKey<AllInteractions['events']>}` | `error.${NestedKey<AllInteractions['errors']>}` | `const.${NestedKey<AllInteractions['constants']>}` | `view.${NestedKey<AllInteractions['viewFns']>}` | `api.${NestedKey<AllInteractions['apis']>}`;
|
|
3438
|
+
type PalletKey = `*.${({
|
|
3439
|
+
[K in keyof AllInteractions]: K extends 'apis' ? never : keyof AllInteractions[K];
|
|
3440
|
+
})[keyof AllInteractions]}`;
|
|
3441
|
+
type NestedKey<D extends Record<string, string[]>> = "*" | {
|
|
3442
|
+
[P in keyof D & string]: `${P}.*` | `${P}.${D[P][number]}`;
|
|
3443
|
+
}[keyof D & string];
|