@galacticcouncil/descriptors 1.1.0 → 1.2.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/README.md +11 -0
- package/build/common-types.d.ts +4227 -4158
- package/build/descriptors-I57RGDYV.mjs +27 -0
- package/build/hydration.d.ts +931 -750
- package/build/hydration_metadata-R2ASQUSJ.mjs +6 -0
- package/build/index.js +88 -61
- package/build/index.mjs +31 -4
- package/build/metadataTypes-DONQGFX6.mjs +6 -0
- package/build/metadataTypes.d.ts +1 -1
- package/package.json +7 -6
- package/build/descriptors-KCHREEK7.mjs +0 -27
- package/build/hydration_metadata-GU77SOMT.mjs +0 -6
- package/build/metadataTypes-NV6UZQCC.mjs +0 -6
package/build/hydration.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StorageDescriptor, PlainDescriptor, TxDescriptor, RuntimeDescriptor, Enum, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, SS58String, FixedSizeBinary, Binary, FixedSizeArray } from "polkadot-api";
|
|
2
|
-
import { I5sesotjlssv2d, Ifj0li5nn5unet, I4c0s5cioidn76, I8ikpj86u2na1q, Ibn3i0ad6beo5l, I1p5pqg6bllgtl, I9jd27rnpm8ttv, I4ojmnsk1dchql, Iesq88051ch8ht, Ic02kut0350gb0, I6ouflveob4eli, Ifn6q3equiq9qi, In7a38730s6qs, If15el53dd76v9, I9s0ave7t0vnrk, Ic6nglu2db2c36, Ie5fbn0f5capo3, Ia9ai1mp1viqjd, Ievca65alkkho9, I2qkf9i0e8mf1f, Ib0voua2mn0e9p, I2lu1qfhumniu5, Ifmc9boeeia623, Ibplkiqg5rvr3e, Icnmrtlo128skq, Icojqvn3afk41n, I4g15ko4u63fja, I8rbu1vdc38cnp,
|
|
1
|
+
import { StorageDescriptor, PlainDescriptor, TxDescriptor, RuntimeDescriptor, Enum, ApisFromDef, QueryFromPalletsDef, TxFromPalletsDef, EventsFromPalletsDef, ErrorsFromPalletsDef, ConstFromPalletsDef, ViewFnsFromPalletsDef, SS58String, FixedSizeBinary, Binary, FixedSizeArray } from "polkadot-api";
|
|
2
|
+
import { I5sesotjlssv2d, Ifj0li5nn5unet, I4c0s5cioidn76, I8ikpj86u2na1q, Ibn3i0ad6beo5l, I1p5pqg6bllgtl, I9jd27rnpm8ttv, I4ojmnsk1dchql, Iesq88051ch8ht, Ic02kut0350gb0, I6ouflveob4eli, Ifn6q3equiq9qi, In7a38730s6qs, If15el53dd76v9, I9s0ave7t0vnrk, Ic6nglu2db2c36, Ie5fbn0f5capo3, Ia9ai1mp1viqjd, I4q47u65qosg7e, Icbccs0ug47ilf, I11jcgems8sdco, Ievca65alkkho9, I2qkf9i0e8mf1f, Ib0voua2mn0e9p, I2lu1qfhumniu5, Ii64qoo6q5lth, I2pi935s6uqbh, Ib9aiguc778ujf, If1007933akv96, Ifmc9boeeia623, Ibplkiqg5rvr3e, Icnmrtlo128skq, Icojqvn3afk41n, I4g15ko4u63fja, I8rbu1vdc38cnp, Ick2k1hvh0bm22, I4e4rvm2fqc561, XcmVersionedLocation, XcmVersionedXcm, Id2luorng6dtg7, I95g6i7ilua7lq, I35p85j063s0il, Id5qsstfl1fkb3, I3ii6nera7pkr8 } from "./common-types";
|
|
3
3
|
type AnonymousEnum<T extends {}> = T & {
|
|
4
4
|
__anonymous: true;
|
|
5
5
|
};
|
|
@@ -102,87 +102,180 @@ type IStorage = {
|
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
104
|
type ICalls = {
|
|
105
|
+
Dispatcher: {
|
|
106
|
+
/**
|
|
107
|
+
|
|
108
|
+
*/
|
|
109
|
+
dispatch_as_treasury: TxDescriptor<Anonymize<I4q47u65qosg7e>>;
|
|
110
|
+
/**
|
|
111
|
+
|
|
112
|
+
*/
|
|
113
|
+
dispatch_as_aave_manager: TxDescriptor<Anonymize<I4q47u65qosg7e>>;
|
|
114
|
+
/**
|
|
115
|
+
* Sets the Aave manager account to be used as origin for dispatching calls.
|
|
116
|
+
*
|
|
117
|
+
* This doesn't actually changes any ACL in the pool.
|
|
118
|
+
*
|
|
119
|
+
* This is intented to be mainly used in testnet environments, where the manager account
|
|
120
|
+
* can be different.
|
|
121
|
+
*/
|
|
122
|
+
note_aave_manager: TxDescriptor<Anonymize<Icbccs0ug47ilf>>;
|
|
123
|
+
/**
|
|
124
|
+
* Dispatch a call with extra gas.
|
|
125
|
+
*
|
|
126
|
+
* This allows executing calls with additional weight (gas) limit.
|
|
127
|
+
* The extra gas is not refunded, even if not used.
|
|
128
|
+
*/
|
|
129
|
+
dispatch_with_extra_gas: TxDescriptor<Anonymize<I11jcgems8sdco>>;
|
|
130
|
+
};
|
|
105
131
|
Omnipool: {
|
|
106
132
|
/**
|
|
107
|
-
*Execute a swap of `asset_in` for `asset_out`.
|
|
133
|
+
* Execute a swap of `asset_in` for `asset_out`.
|
|
108
134
|
*
|
|
109
|
-
*Price is determined by the Omnipool.
|
|
135
|
+
* Price is determined by the Omnipool.
|
|
110
136
|
*
|
|
111
|
-
*Hub asset is traded separately.
|
|
137
|
+
* Hub asset is traded separately.
|
|
112
138
|
*
|
|
113
|
-
*Asset's tradable states must contain SELL flag for asset_in and BUY flag for asset_out, otherwise `NotAllowed` error is returned.
|
|
139
|
+
* Asset's tradable states must contain SELL flag for asset_in and BUY flag for asset_out, otherwise `NotAllowed` error is returned.
|
|
114
140
|
*
|
|
115
|
-
*Parameters:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
141
|
+
* Parameters:
|
|
142
|
+
* - `asset_in`: ID of asset sold to the pool
|
|
143
|
+
* - `asset_out`: ID of asset bought from the pool
|
|
144
|
+
* - `amount`: Amount of asset sold
|
|
145
|
+
* - `min_buy_amount`: Minimum amount required to receive
|
|
120
146
|
*
|
|
121
|
-
*Emits `SellExecuted` event when successful. Deprecated.
|
|
122
|
-
*Emits `pallet_broadcast::Swapped` event when successful.
|
|
147
|
+
* Emits `SellExecuted` event when successful. Deprecated.
|
|
148
|
+
* Emits `pallet_broadcast::Swapped` event when successful.
|
|
123
149
|
*
|
|
124
150
|
*/
|
|
125
151
|
sell: TxDescriptor<Anonymize<Ievca65alkkho9>>;
|
|
126
152
|
/**
|
|
127
|
-
*Execute a swap of `asset_out` for `asset_in`.
|
|
153
|
+
* Execute a swap of `asset_out` for `asset_in`.
|
|
128
154
|
*
|
|
129
|
-
*Price is determined by the Omnipool.
|
|
155
|
+
* Price is determined by the Omnipool.
|
|
130
156
|
*
|
|
131
|
-
*Hub asset is traded separately.
|
|
157
|
+
* Hub asset is traded separately.
|
|
132
158
|
*
|
|
133
|
-
*Asset's tradable states must contain SELL flag for asset_in and BUY flag for asset_out, otherwise `NotAllowed` error is returned.
|
|
159
|
+
* Asset's tradable states must contain SELL flag for asset_in and BUY flag for asset_out, otherwise `NotAllowed` error is returned.
|
|
134
160
|
*
|
|
135
|
-
*Parameters:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
161
|
+
* Parameters:
|
|
162
|
+
* - `asset_in`: ID of asset sold to the pool
|
|
163
|
+
* - `asset_out`: ID of asset bought from the pool
|
|
164
|
+
* - `amount`: Amount of asset sold
|
|
165
|
+
* - `max_sell_amount`: Maximum amount to be sold.
|
|
140
166
|
*
|
|
141
|
-
*Emits `BuyExecuted` event when successful. Deprecated.
|
|
142
|
-
*Emits `pallet_broadcast::Swapped` event when successful.
|
|
167
|
+
* Emits `BuyExecuted` event when successful. Deprecated.
|
|
168
|
+
* Emits `pallet_broadcast::Swapped` event when successful.
|
|
143
169
|
*
|
|
144
170
|
*/
|
|
145
171
|
buy: TxDescriptor<Anonymize<I2qkf9i0e8mf1f>>;
|
|
146
172
|
};
|
|
147
173
|
Router: {
|
|
148
174
|
/**
|
|
149
|
-
*Executes a sell with a series of trades specified in the route.
|
|
150
|
-
*The price for each trade is determined by the corresponding AMM.
|
|
175
|
+
* Executes a sell with a series of trades specified in the route.
|
|
176
|
+
* The price for each trade is determined by the corresponding AMM.
|
|
151
177
|
*
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
*
|
|
159
|
-
*
|
|
178
|
+
* - `origin`: The executor of the trade
|
|
179
|
+
* - `asset_in`: The identifier of the asset to sell
|
|
180
|
+
* - `asset_out`: The identifier of the asset to receive
|
|
181
|
+
* - `amount_in`: The amount of `asset_in` to sell
|
|
182
|
+
* - `min_amount_out`: The minimum amount of `asset_out` to receive.
|
|
183
|
+
* - `route`: Series of [`Trade<AssetId>`] to be executed. A [`Trade<AssetId>`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed.
|
|
184
|
+
* If not specified, than the on-chain route is used.
|
|
185
|
+
* If no on-chain is present, then omnipool route is used as default
|
|
160
186
|
*
|
|
161
|
-
*Emits `RouteExecuted` when successful.
|
|
187
|
+
* Emits `RouteExecuted` when successful.
|
|
162
188
|
*/
|
|
163
189
|
sell: TxDescriptor<Anonymize<Ib0voua2mn0e9p>>;
|
|
164
190
|
/**
|
|
165
|
-
*Executes a buy with a series of trades specified in the route.
|
|
166
|
-
*The price for each trade is determined by the corresponding AMM.
|
|
191
|
+
* Executes a buy with a series of trades specified in the route.
|
|
192
|
+
* The price for each trade is determined by the corresponding AMM.
|
|
167
193
|
*
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
*
|
|
175
|
-
*
|
|
194
|
+
* - `origin`: The executor of the trade
|
|
195
|
+
* - `asset_in`: The identifier of the asset to be swapped to buy `asset_out`
|
|
196
|
+
* - `asset_out`: The identifier of the asset to buy
|
|
197
|
+
* - `amount_out`: The amount of `asset_out` to buy
|
|
198
|
+
* - `max_amount_in`: The max amount of `asset_in` to spend on the buy.
|
|
199
|
+
* - `route`: Series of [`Trade<AssetId>`] to be executed. A [`Trade<AssetId>`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed.
|
|
200
|
+
* If not specified, than the on-chain route is used.
|
|
201
|
+
* If no on-chain is present, then omnipool route is used as default
|
|
176
202
|
*
|
|
177
|
-
*Emits `RouteExecuted` when successful.
|
|
203
|
+
* Emits `RouteExecuted` when successful.
|
|
178
204
|
*/
|
|
179
205
|
buy: TxDescriptor<Anonymize<I2lu1qfhumniu5>>;
|
|
206
|
+
/**
|
|
207
|
+
* Executes a sell with a series of trades specified in the route.
|
|
208
|
+
* It sells all reducible user balance of `asset_in`
|
|
209
|
+
* The price for each trade is determined by the corresponding AMM.
|
|
210
|
+
*
|
|
211
|
+
* - `origin`: The executor of the trade
|
|
212
|
+
* - `asset_in`: The identifier of the asset to sell
|
|
213
|
+
* - `asset_out`: The identifier of the asset to receive
|
|
214
|
+
* - `min_amount_out`: The minimum amount of `asset_out` to receive.
|
|
215
|
+
* - `route`: Series of [`Trade<AssetId>`] to be executed. A [`Trade<AssetId>`] specifies the asset pair (`asset_in`, `asset_out`) and the AMM (`pool`) in which the trade is executed.
|
|
216
|
+
* If not specified, than the on-chain route is used.
|
|
217
|
+
* If no on-chain is present, then omnipool route is used as default
|
|
218
|
+
*
|
|
219
|
+
* Emits `RouteExecuted` when successful.
|
|
220
|
+
*
|
|
221
|
+
*/
|
|
222
|
+
sell_all: TxDescriptor<Anonymize<Ii64qoo6q5lth>>;
|
|
223
|
+
};
|
|
224
|
+
DCA: {
|
|
225
|
+
/**
|
|
226
|
+
* Creates a new DCA (Dollar-Cost Averaging) schedule and plans the next execution
|
|
227
|
+
* for the specified block.
|
|
228
|
+
*
|
|
229
|
+
* If the block is not specified, the execution is planned for the next block.
|
|
230
|
+
* If the given block is full, the execution will be planned in the subsequent block.
|
|
231
|
+
*
|
|
232
|
+
* Once the schedule is created, the specified `total_amount` will be reserved for DCA.
|
|
233
|
+
* The reservation currency will be the `amount_in` currency of the order.
|
|
234
|
+
*
|
|
235
|
+
* Trades are executed as long as there is budget remaining
|
|
236
|
+
* from the initial `total_amount` allocation, unless `total_amount` is 0, then trades
|
|
237
|
+
* are executed until schedule is terminated.
|
|
238
|
+
*
|
|
239
|
+
* If a trade fails due to slippage limit or price stability errors, it will be retried.
|
|
240
|
+
* If the number of retries reaches the maximum allowed,
|
|
241
|
+
* the schedule will be terminated permanently.
|
|
242
|
+
* In the case of a successful trade, the retry counter is reset.
|
|
243
|
+
*
|
|
244
|
+
* Parameters:
|
|
245
|
+
* - `origin`: schedule owner
|
|
246
|
+
* - `schedule`: schedule details
|
|
247
|
+
* - `start_execution_block`: first possible execution block for the schedule
|
|
248
|
+
*
|
|
249
|
+
* Emits `Scheduled` and `ExecutionPlanned` event when successful.
|
|
250
|
+
*
|
|
251
|
+
*/
|
|
252
|
+
schedule: TxDescriptor<Anonymize<I2pi935s6uqbh>>;
|
|
253
|
+
/**
|
|
254
|
+
* Terminates a DCA schedule and remove it completely from the chain.
|
|
255
|
+
*
|
|
256
|
+
* This can be called by both schedule owner or the configured `T::TerminateOrigin`
|
|
257
|
+
*
|
|
258
|
+
* Parameters:
|
|
259
|
+
* - `origin`: schedule owner
|
|
260
|
+
* - `schedule_id`: schedule id
|
|
261
|
+
* - `next_execution_block`: block number where the schedule is planned.
|
|
262
|
+
*
|
|
263
|
+
* Emits `Terminated` event when successful.
|
|
264
|
+
*
|
|
265
|
+
*/
|
|
266
|
+
terminate: TxDescriptor<Anonymize<Ib9aiguc778ujf>>;
|
|
180
267
|
};
|
|
181
268
|
};
|
|
182
269
|
type IEvent = {
|
|
270
|
+
Router: {
|
|
271
|
+
/**
|
|
272
|
+
* The route with trades has been successfully executed
|
|
273
|
+
*/
|
|
274
|
+
Executed: PlainDescriptor<Anonymize<If1007933akv96>>;
|
|
275
|
+
};
|
|
183
276
|
EVM: {
|
|
184
277
|
/**
|
|
185
|
-
*Ethereum events from contracts.
|
|
278
|
+
* Ethereum events from contracts.
|
|
186
279
|
*/
|
|
187
280
|
Log: PlainDescriptor<Anonymize<Ifmc9boeeia623>>;
|
|
188
281
|
};
|
|
@@ -190,1986 +283,1990 @@ type IEvent = {
|
|
|
190
283
|
type IError = {
|
|
191
284
|
System: {
|
|
192
285
|
/**
|
|
193
|
-
*The name of specification does not match between the current runtime
|
|
194
|
-
*and the new runtime.
|
|
286
|
+
* The name of specification does not match between the current runtime
|
|
287
|
+
* and the new runtime.
|
|
195
288
|
*/
|
|
196
289
|
InvalidSpecName: PlainDescriptor<undefined>;
|
|
197
290
|
/**
|
|
198
|
-
*The specification version is not allowed to decrease between the current runtime
|
|
199
|
-
*and the new runtime.
|
|
291
|
+
* The specification version is not allowed to decrease between the current runtime
|
|
292
|
+
* and the new runtime.
|
|
200
293
|
*/
|
|
201
294
|
SpecVersionNeedsToIncrease: PlainDescriptor<undefined>;
|
|
202
295
|
/**
|
|
203
|
-
*Failed to extract the runtime version from the new runtime.
|
|
296
|
+
* Failed to extract the runtime version from the new runtime.
|
|
204
297
|
*
|
|
205
|
-
*Either calling `Core_version` or decoding `RuntimeVersion` failed.
|
|
298
|
+
* Either calling `Core_version` or decoding `RuntimeVersion` failed.
|
|
206
299
|
*/
|
|
207
300
|
FailedToExtractRuntimeVersion: PlainDescriptor<undefined>;
|
|
208
301
|
/**
|
|
209
|
-
*Suicide called when the account has non-default composite data.
|
|
302
|
+
* Suicide called when the account has non-default composite data.
|
|
210
303
|
*/
|
|
211
304
|
NonDefaultComposite: PlainDescriptor<undefined>;
|
|
212
305
|
/**
|
|
213
|
-
*There is a non-zero reference count preventing the account from being purged.
|
|
306
|
+
* There is a non-zero reference count preventing the account from being purged.
|
|
214
307
|
*/
|
|
215
308
|
NonZeroRefCount: PlainDescriptor<undefined>;
|
|
216
309
|
/**
|
|
217
|
-
*The origin filter prevent the call to be dispatched.
|
|
310
|
+
* The origin filter prevent the call to be dispatched.
|
|
218
311
|
*/
|
|
219
312
|
CallFiltered: PlainDescriptor<undefined>;
|
|
220
313
|
/**
|
|
221
|
-
*A multi-block migration is ongoing and prevents the current code from being replaced.
|
|
314
|
+
* A multi-block migration is ongoing and prevents the current code from being replaced.
|
|
222
315
|
*/
|
|
223
316
|
MultiBlockMigrationsOngoing: PlainDescriptor<undefined>;
|
|
224
317
|
/**
|
|
225
|
-
*No upgrade authorized.
|
|
318
|
+
* No upgrade authorized.
|
|
226
319
|
*/
|
|
227
320
|
NothingAuthorized: PlainDescriptor<undefined>;
|
|
228
321
|
/**
|
|
229
|
-
*The submitted code is not authorized.
|
|
322
|
+
* The submitted code is not authorized.
|
|
230
323
|
*/
|
|
231
324
|
Unauthorized: PlainDescriptor<undefined>;
|
|
232
325
|
};
|
|
233
326
|
Balances: {
|
|
234
327
|
/**
|
|
235
|
-
*Vesting balance too high to send value.
|
|
328
|
+
* Vesting balance too high to send value.
|
|
236
329
|
*/
|
|
237
330
|
VestingBalance: PlainDescriptor<undefined>;
|
|
238
331
|
/**
|
|
239
|
-
*Account liquidity restrictions prevent withdrawal.
|
|
332
|
+
* Account liquidity restrictions prevent withdrawal.
|
|
240
333
|
*/
|
|
241
334
|
LiquidityRestrictions: PlainDescriptor<undefined>;
|
|
242
335
|
/**
|
|
243
|
-
*Balance too low to send value.
|
|
336
|
+
* Balance too low to send value.
|
|
244
337
|
*/
|
|
245
338
|
InsufficientBalance: PlainDescriptor<undefined>;
|
|
246
339
|
/**
|
|
247
|
-
*Value too low to create account due to existential deposit.
|
|
340
|
+
* Value too low to create account due to existential deposit.
|
|
248
341
|
*/
|
|
249
342
|
ExistentialDeposit: PlainDescriptor<undefined>;
|
|
250
343
|
/**
|
|
251
|
-
*Transfer/payment would kill account.
|
|
344
|
+
* Transfer/payment would kill account.
|
|
252
345
|
*/
|
|
253
346
|
Expendability: PlainDescriptor<undefined>;
|
|
254
347
|
/**
|
|
255
|
-
*A vesting schedule already exists for this account.
|
|
348
|
+
* A vesting schedule already exists for this account.
|
|
256
349
|
*/
|
|
257
350
|
ExistingVestingSchedule: PlainDescriptor<undefined>;
|
|
258
351
|
/**
|
|
259
|
-
*Beneficiary account must pre-exist.
|
|
352
|
+
* Beneficiary account must pre-exist.
|
|
260
353
|
*/
|
|
261
354
|
DeadAccount: PlainDescriptor<undefined>;
|
|
262
355
|
/**
|
|
263
|
-
*Number of named reserves exceed `MaxReserves`.
|
|
356
|
+
* Number of named reserves exceed `MaxReserves`.
|
|
264
357
|
*/
|
|
265
358
|
TooManyReserves: PlainDescriptor<undefined>;
|
|
266
359
|
/**
|
|
267
|
-
*Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
|
|
360
|
+
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
|
|
268
361
|
*/
|
|
269
362
|
TooManyHolds: PlainDescriptor<undefined>;
|
|
270
363
|
/**
|
|
271
|
-
*Number of freezes exceed `MaxFreezes`.
|
|
364
|
+
* Number of freezes exceed `MaxFreezes`.
|
|
272
365
|
*/
|
|
273
366
|
TooManyFreezes: PlainDescriptor<undefined>;
|
|
274
367
|
/**
|
|
275
|
-
*The issuance cannot be modified since it is already deactivated.
|
|
368
|
+
* The issuance cannot be modified since it is already deactivated.
|
|
276
369
|
*/
|
|
277
370
|
IssuanceDeactivated: PlainDescriptor<undefined>;
|
|
278
371
|
/**
|
|
279
|
-
*The delta cannot be zero.
|
|
372
|
+
* The delta cannot be zero.
|
|
280
373
|
*/
|
|
281
374
|
DeltaZero: PlainDescriptor<undefined>;
|
|
282
375
|
};
|
|
283
376
|
MultiTransactionPayment: {
|
|
284
377
|
/**
|
|
285
|
-
*Selected currency is not supported.
|
|
378
|
+
* Selected currency is not supported.
|
|
286
379
|
*/
|
|
287
380
|
UnsupportedCurrency: PlainDescriptor<undefined>;
|
|
288
381
|
/**
|
|
289
|
-
*Account balance should be non-zero.
|
|
382
|
+
* Account balance should be non-zero.
|
|
290
383
|
*/
|
|
291
384
|
ZeroBalance: PlainDescriptor<undefined>;
|
|
292
385
|
/**
|
|
293
|
-
*Currency is already in the list of accepted currencies.
|
|
386
|
+
* Currency is already in the list of accepted currencies.
|
|
294
387
|
*/
|
|
295
388
|
AlreadyAccepted: PlainDescriptor<undefined>;
|
|
296
389
|
/**
|
|
297
|
-
*It is not allowed to add Core Asset as accepted currency. Core asset is accepted by design.
|
|
390
|
+
* It is not allowed to add Core Asset as accepted currency. Core asset is accepted by design.
|
|
298
391
|
*/
|
|
299
392
|
CoreAssetNotAllowed: PlainDescriptor<undefined>;
|
|
300
393
|
/**
|
|
301
|
-
*Fallback price cannot be zero.
|
|
394
|
+
* Fallback price cannot be zero.
|
|
302
395
|
*/
|
|
303
396
|
ZeroPrice: PlainDescriptor<undefined>;
|
|
304
397
|
/**
|
|
305
|
-
*Fallback price was not found.
|
|
398
|
+
* Fallback price was not found.
|
|
306
399
|
*/
|
|
307
400
|
FallbackPriceNotFound: PlainDescriptor<undefined>;
|
|
308
401
|
/**
|
|
309
|
-
*Math overflow
|
|
402
|
+
* Math overflow
|
|
310
403
|
*/
|
|
311
404
|
Overflow: PlainDescriptor<undefined>;
|
|
312
405
|
/**
|
|
313
|
-
*It is not allowed to change payment currency of an EVM account.
|
|
406
|
+
* It is not allowed to change payment currency of an EVM account.
|
|
314
407
|
*/
|
|
315
408
|
EvmAccountNotAllowed: PlainDescriptor<undefined>;
|
|
316
409
|
/**
|
|
317
|
-
*EVM permit expired.
|
|
410
|
+
* EVM permit expired.
|
|
318
411
|
*/
|
|
319
412
|
EvmPermitExpired: PlainDescriptor<undefined>;
|
|
320
413
|
/**
|
|
321
|
-
*EVM permit is invalid.
|
|
414
|
+
* EVM permit is invalid.
|
|
322
415
|
*/
|
|
323
416
|
EvmPermitInvalid: PlainDescriptor<undefined>;
|
|
324
417
|
/**
|
|
325
|
-
*EVM permit call failed.
|
|
418
|
+
* EVM permit call failed.
|
|
326
419
|
*/
|
|
327
420
|
EvmPermitCallExecutionError: PlainDescriptor<undefined>;
|
|
328
421
|
/**
|
|
329
|
-
*EVM permit call failed.
|
|
422
|
+
* EVM permit call failed.
|
|
330
423
|
*/
|
|
331
424
|
EvmPermitRunnerError: PlainDescriptor<undefined>;
|
|
332
425
|
};
|
|
333
426
|
Treasury: {
|
|
334
427
|
/**
|
|
335
|
-
*No proposal, bounty or spend at that index.
|
|
428
|
+
* No proposal, bounty or spend at that index.
|
|
336
429
|
*/
|
|
337
430
|
InvalidIndex: PlainDescriptor<undefined>;
|
|
338
431
|
/**
|
|
339
|
-
*Too many approvals in the queue.
|
|
432
|
+
* Too many approvals in the queue.
|
|
340
433
|
*/
|
|
341
434
|
TooManyApprovals: PlainDescriptor<undefined>;
|
|
342
435
|
/**
|
|
343
|
-
*The spend origin is valid but the amount it is allowed to spend is lower than the
|
|
344
|
-
*amount to be spent.
|
|
436
|
+
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
|
437
|
+
* amount to be spent.
|
|
345
438
|
*/
|
|
346
439
|
InsufficientPermission: PlainDescriptor<undefined>;
|
|
347
440
|
/**
|
|
348
|
-
*Proposal has not been approved.
|
|
441
|
+
* Proposal has not been approved.
|
|
349
442
|
*/
|
|
350
443
|
ProposalNotApproved: PlainDescriptor<undefined>;
|
|
351
444
|
/**
|
|
352
|
-
*The balance of the asset kind is not convertible to the balance of the native asset.
|
|
445
|
+
* The balance of the asset kind is not convertible to the balance of the native asset.
|
|
353
446
|
*/
|
|
354
447
|
FailedToConvertBalance: PlainDescriptor<undefined>;
|
|
355
448
|
/**
|
|
356
|
-
*The spend has expired and cannot be claimed.
|
|
449
|
+
* The spend has expired and cannot be claimed.
|
|
357
450
|
*/
|
|
358
451
|
SpendExpired: PlainDescriptor<undefined>;
|
|
359
452
|
/**
|
|
360
|
-
*The spend is not yet eligible for payout.
|
|
453
|
+
* The spend is not yet eligible for payout.
|
|
361
454
|
*/
|
|
362
455
|
EarlyPayout: PlainDescriptor<undefined>;
|
|
363
456
|
/**
|
|
364
|
-
*The payment has already been attempted.
|
|
457
|
+
* The payment has already been attempted.
|
|
365
458
|
*/
|
|
366
459
|
AlreadyAttempted: PlainDescriptor<undefined>;
|
|
367
460
|
/**
|
|
368
|
-
*There was some issue with the mechanism of payment.
|
|
461
|
+
* There was some issue with the mechanism of payment.
|
|
369
462
|
*/
|
|
370
463
|
PayoutError: PlainDescriptor<undefined>;
|
|
371
464
|
/**
|
|
372
|
-
*The payout was not yet attempted/claimed.
|
|
465
|
+
* The payout was not yet attempted/claimed.
|
|
373
466
|
*/
|
|
374
467
|
NotAttempted: PlainDescriptor<undefined>;
|
|
375
468
|
/**
|
|
376
|
-
*The payment has neither failed nor succeeded yet.
|
|
469
|
+
* The payment has neither failed nor succeeded yet.
|
|
377
470
|
*/
|
|
378
471
|
Inconclusive: PlainDescriptor<undefined>;
|
|
379
472
|
};
|
|
380
473
|
Utility: {
|
|
381
474
|
/**
|
|
382
|
-
*Too many calls batched.
|
|
475
|
+
* Too many calls batched.
|
|
383
476
|
*/
|
|
384
477
|
TooManyCalls: PlainDescriptor<undefined>;
|
|
385
478
|
};
|
|
386
479
|
Preimage: {
|
|
387
480
|
/**
|
|
388
|
-
*Preimage is too large to store on-chain.
|
|
481
|
+
* Preimage is too large to store on-chain.
|
|
389
482
|
*/
|
|
390
483
|
TooBig: PlainDescriptor<undefined>;
|
|
391
484
|
/**
|
|
392
|
-
*Preimage has already been noted on-chain.
|
|
485
|
+
* Preimage has already been noted on-chain.
|
|
393
486
|
*/
|
|
394
487
|
AlreadyNoted: PlainDescriptor<undefined>;
|
|
395
488
|
/**
|
|
396
|
-
*The user is not authorized to perform this action.
|
|
489
|
+
* The user is not authorized to perform this action.
|
|
397
490
|
*/
|
|
398
491
|
NotAuthorized: PlainDescriptor<undefined>;
|
|
399
492
|
/**
|
|
400
|
-
*The preimage cannot be removed since it has not yet been noted.
|
|
493
|
+
* The preimage cannot be removed since it has not yet been noted.
|
|
401
494
|
*/
|
|
402
495
|
NotNoted: PlainDescriptor<undefined>;
|
|
403
496
|
/**
|
|
404
|
-
*A preimage may not be removed when there are outstanding requests.
|
|
497
|
+
* A preimage may not be removed when there are outstanding requests.
|
|
405
498
|
*/
|
|
406
499
|
Requested: PlainDescriptor<undefined>;
|
|
407
500
|
/**
|
|
408
|
-
*The preimage request cannot be removed since no outstanding requests exist.
|
|
501
|
+
* The preimage request cannot be removed since no outstanding requests exist.
|
|
409
502
|
*/
|
|
410
503
|
NotRequested: PlainDescriptor<undefined>;
|
|
411
504
|
/**
|
|
412
|
-
*More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
|
|
505
|
+
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
|
|
413
506
|
*/
|
|
414
507
|
TooMany: PlainDescriptor<undefined>;
|
|
415
508
|
/**
|
|
416
|
-
*Too few hashes were requested to be upgraded (i.e. zero).
|
|
509
|
+
* Too few hashes were requested to be upgraded (i.e. zero).
|
|
417
510
|
*/
|
|
418
511
|
TooFew: PlainDescriptor<undefined>;
|
|
419
512
|
};
|
|
420
513
|
Identity: {
|
|
421
514
|
/**
|
|
422
|
-
*Too many subs-accounts.
|
|
515
|
+
* Too many subs-accounts.
|
|
423
516
|
*/
|
|
424
517
|
TooManySubAccounts: PlainDescriptor<undefined>;
|
|
425
518
|
/**
|
|
426
|
-
*Account isn't found.
|
|
519
|
+
* Account isn't found.
|
|
427
520
|
*/
|
|
428
521
|
NotFound: PlainDescriptor<undefined>;
|
|
429
522
|
/**
|
|
430
|
-
*Account isn't named.
|
|
523
|
+
* Account isn't named.
|
|
431
524
|
*/
|
|
432
525
|
NotNamed: PlainDescriptor<undefined>;
|
|
433
526
|
/**
|
|
434
|
-
*Empty index.
|
|
527
|
+
* Empty index.
|
|
435
528
|
*/
|
|
436
529
|
EmptyIndex: PlainDescriptor<undefined>;
|
|
437
530
|
/**
|
|
438
|
-
*Fee is changed.
|
|
531
|
+
* Fee is changed.
|
|
439
532
|
*/
|
|
440
533
|
FeeChanged: PlainDescriptor<undefined>;
|
|
441
534
|
/**
|
|
442
|
-
*No identity found.
|
|
535
|
+
* No identity found.
|
|
443
536
|
*/
|
|
444
537
|
NoIdentity: PlainDescriptor<undefined>;
|
|
445
538
|
/**
|
|
446
|
-
*Sticky judgement.
|
|
539
|
+
* Sticky judgement.
|
|
447
540
|
*/
|
|
448
541
|
StickyJudgement: PlainDescriptor<undefined>;
|
|
449
542
|
/**
|
|
450
|
-
*Judgement given.
|
|
543
|
+
* Judgement given.
|
|
451
544
|
*/
|
|
452
545
|
JudgementGiven: PlainDescriptor<undefined>;
|
|
453
546
|
/**
|
|
454
|
-
*Invalid judgement.
|
|
547
|
+
* Invalid judgement.
|
|
455
548
|
*/
|
|
456
549
|
InvalidJudgement: PlainDescriptor<undefined>;
|
|
457
550
|
/**
|
|
458
|
-
*The index is invalid.
|
|
551
|
+
* The index is invalid.
|
|
459
552
|
*/
|
|
460
553
|
InvalidIndex: PlainDescriptor<undefined>;
|
|
461
554
|
/**
|
|
462
|
-
*The target is invalid.
|
|
555
|
+
* The target is invalid.
|
|
463
556
|
*/
|
|
464
557
|
InvalidTarget: PlainDescriptor<undefined>;
|
|
465
558
|
/**
|
|
466
|
-
*Maximum amount of registrars reached. Cannot add any more.
|
|
559
|
+
* Maximum amount of registrars reached. Cannot add any more.
|
|
467
560
|
*/
|
|
468
561
|
TooManyRegistrars: PlainDescriptor<undefined>;
|
|
469
562
|
/**
|
|
470
|
-
*Account ID is already named.
|
|
563
|
+
* Account ID is already named.
|
|
471
564
|
*/
|
|
472
565
|
AlreadyClaimed: PlainDescriptor<undefined>;
|
|
473
566
|
/**
|
|
474
|
-
*Sender is not a sub-account.
|
|
567
|
+
* Sender is not a sub-account.
|
|
475
568
|
*/
|
|
476
569
|
NotSub: PlainDescriptor<undefined>;
|
|
477
570
|
/**
|
|
478
|
-
*Sub-account isn't owned by sender.
|
|
571
|
+
* Sub-account isn't owned by sender.
|
|
479
572
|
*/
|
|
480
573
|
NotOwned: PlainDescriptor<undefined>;
|
|
481
574
|
/**
|
|
482
|
-
*The provided judgement was for a different identity.
|
|
575
|
+
* The provided judgement was for a different identity.
|
|
483
576
|
*/
|
|
484
577
|
JudgementForDifferentIdentity: PlainDescriptor<undefined>;
|
|
485
578
|
/**
|
|
486
|
-
*Error that occurs when there is an issue paying for judgement.
|
|
579
|
+
* Error that occurs when there is an issue paying for judgement.
|
|
487
580
|
*/
|
|
488
581
|
JudgementPaymentFailed: PlainDescriptor<undefined>;
|
|
489
582
|
/**
|
|
490
|
-
*The provided suffix is too long.
|
|
583
|
+
* The provided suffix is too long.
|
|
491
584
|
*/
|
|
492
585
|
InvalidSuffix: PlainDescriptor<undefined>;
|
|
493
586
|
/**
|
|
494
|
-
*The sender does not have permission to issue a username.
|
|
587
|
+
* The sender does not have permission to issue a username.
|
|
495
588
|
*/
|
|
496
589
|
NotUsernameAuthority: PlainDescriptor<undefined>;
|
|
497
590
|
/**
|
|
498
|
-
*The authority cannot allocate any more usernames.
|
|
591
|
+
* The authority cannot allocate any more usernames.
|
|
499
592
|
*/
|
|
500
593
|
NoAllocation: PlainDescriptor<undefined>;
|
|
501
594
|
/**
|
|
502
|
-
*The signature on a username was not valid.
|
|
595
|
+
* The signature on a username was not valid.
|
|
503
596
|
*/
|
|
504
597
|
InvalidSignature: PlainDescriptor<undefined>;
|
|
505
598
|
/**
|
|
506
|
-
*Setting this username requires a signature, but none was provided.
|
|
599
|
+
* Setting this username requires a signature, but none was provided.
|
|
507
600
|
*/
|
|
508
601
|
RequiresSignature: PlainDescriptor<undefined>;
|
|
509
602
|
/**
|
|
510
|
-
*The username does not meet the requirements.
|
|
603
|
+
* The username does not meet the requirements.
|
|
511
604
|
*/
|
|
512
605
|
InvalidUsername: PlainDescriptor<undefined>;
|
|
513
606
|
/**
|
|
514
|
-
*The username is already taken.
|
|
607
|
+
* The username is already taken.
|
|
515
608
|
*/
|
|
516
609
|
UsernameTaken: PlainDescriptor<undefined>;
|
|
517
610
|
/**
|
|
518
|
-
*The requested username does not exist.
|
|
611
|
+
* The requested username does not exist.
|
|
519
612
|
*/
|
|
520
613
|
NoUsername: PlainDescriptor<undefined>;
|
|
521
614
|
/**
|
|
522
|
-
*The username cannot be forcefully removed because it can still be accepted.
|
|
615
|
+
* The username cannot be forcefully removed because it can still be accepted.
|
|
523
616
|
*/
|
|
524
617
|
NotExpired: PlainDescriptor<undefined>;
|
|
525
618
|
};
|
|
526
619
|
Democracy: {
|
|
527
620
|
/**
|
|
528
|
-
*Value too low
|
|
621
|
+
* Value too low
|
|
529
622
|
*/
|
|
530
623
|
ValueLow: PlainDescriptor<undefined>;
|
|
531
624
|
/**
|
|
532
|
-
*Proposal does not exist
|
|
625
|
+
* Proposal does not exist
|
|
533
626
|
*/
|
|
534
627
|
ProposalMissing: PlainDescriptor<undefined>;
|
|
535
628
|
/**
|
|
536
|
-
*Cannot cancel the same proposal twice
|
|
629
|
+
* Cannot cancel the same proposal twice
|
|
537
630
|
*/
|
|
538
631
|
AlreadyCanceled: PlainDescriptor<undefined>;
|
|
539
632
|
/**
|
|
540
|
-
*Proposal already made
|
|
633
|
+
* Proposal already made
|
|
541
634
|
*/
|
|
542
635
|
DuplicateProposal: PlainDescriptor<undefined>;
|
|
543
636
|
/**
|
|
544
|
-
*Proposal still blacklisted
|
|
637
|
+
* Proposal still blacklisted
|
|
545
638
|
*/
|
|
546
639
|
ProposalBlacklisted: PlainDescriptor<undefined>;
|
|
547
640
|
/**
|
|
548
|
-
*Next external proposal not simple majority
|
|
641
|
+
* Next external proposal not simple majority
|
|
549
642
|
*/
|
|
550
643
|
NotSimpleMajority: PlainDescriptor<undefined>;
|
|
551
644
|
/**
|
|
552
|
-
*Invalid hash
|
|
645
|
+
* Invalid hash
|
|
553
646
|
*/
|
|
554
647
|
InvalidHash: PlainDescriptor<undefined>;
|
|
555
648
|
/**
|
|
556
|
-
*No external proposal
|
|
649
|
+
* No external proposal
|
|
557
650
|
*/
|
|
558
651
|
NoProposal: PlainDescriptor<undefined>;
|
|
559
652
|
/**
|
|
560
|
-
*Identity may not veto a proposal twice
|
|
653
|
+
* Identity may not veto a proposal twice
|
|
561
654
|
*/
|
|
562
655
|
AlreadyVetoed: PlainDescriptor<undefined>;
|
|
563
656
|
/**
|
|
564
|
-
*Vote given for invalid referendum
|
|
657
|
+
* Vote given for invalid referendum
|
|
565
658
|
*/
|
|
566
659
|
ReferendumInvalid: PlainDescriptor<undefined>;
|
|
567
660
|
/**
|
|
568
|
-
*No proposals waiting
|
|
661
|
+
* No proposals waiting
|
|
569
662
|
*/
|
|
570
663
|
NoneWaiting: PlainDescriptor<undefined>;
|
|
571
664
|
/**
|
|
572
|
-
*The given account did not vote on the referendum.
|
|
665
|
+
* The given account did not vote on the referendum.
|
|
573
666
|
*/
|
|
574
667
|
NotVoter: PlainDescriptor<undefined>;
|
|
575
668
|
/**
|
|
576
|
-
*The actor has no permission to conduct the action.
|
|
669
|
+
* The actor has no permission to conduct the action.
|
|
577
670
|
*/
|
|
578
671
|
NoPermission: PlainDescriptor<undefined>;
|
|
579
672
|
/**
|
|
580
|
-
*The account is already delegating.
|
|
673
|
+
* The account is already delegating.
|
|
581
674
|
*/
|
|
582
675
|
AlreadyDelegating: PlainDescriptor<undefined>;
|
|
583
676
|
/**
|
|
584
|
-
*Too high a balance was provided that the account cannot afford.
|
|
677
|
+
* Too high a balance was provided that the account cannot afford.
|
|
585
678
|
*/
|
|
586
679
|
InsufficientFunds: PlainDescriptor<undefined>;
|
|
587
680
|
/**
|
|
588
|
-
*The account is not currently delegating.
|
|
681
|
+
* The account is not currently delegating.
|
|
589
682
|
*/
|
|
590
683
|
NotDelegating: PlainDescriptor<undefined>;
|
|
591
684
|
/**
|
|
592
|
-
*The account currently has votes attached to it and the operation cannot succeed until
|
|
593
|
-
*these are removed, either through `unvote` or `reap_vote`.
|
|
685
|
+
* The account currently has votes attached to it and the operation cannot succeed until
|
|
686
|
+
* these are removed, either through `unvote` or `reap_vote`.
|
|
594
687
|
*/
|
|
595
688
|
VotesExist: PlainDescriptor<undefined>;
|
|
596
689
|
/**
|
|
597
|
-
*The instant referendum origin is currently disallowed.
|
|
690
|
+
* The instant referendum origin is currently disallowed.
|
|
598
691
|
*/
|
|
599
692
|
InstantNotAllowed: PlainDescriptor<undefined>;
|
|
600
693
|
/**
|
|
601
|
-
*Delegation to oneself makes no sense.
|
|
694
|
+
* Delegation to oneself makes no sense.
|
|
602
695
|
*/
|
|
603
696
|
Nonsense: PlainDescriptor<undefined>;
|
|
604
697
|
/**
|
|
605
|
-
*Invalid upper bound.
|
|
698
|
+
* Invalid upper bound.
|
|
606
699
|
*/
|
|
607
700
|
WrongUpperBound: PlainDescriptor<undefined>;
|
|
608
701
|
/**
|
|
609
|
-
*Maximum number of votes reached.
|
|
702
|
+
* Maximum number of votes reached.
|
|
610
703
|
*/
|
|
611
704
|
MaxVotesReached: PlainDescriptor<undefined>;
|
|
612
705
|
/**
|
|
613
|
-
*Maximum number of items reached.
|
|
706
|
+
* Maximum number of items reached.
|
|
614
707
|
*/
|
|
615
708
|
TooMany: PlainDescriptor<undefined>;
|
|
616
709
|
/**
|
|
617
|
-
*Voting period too low
|
|
710
|
+
* Voting period too low
|
|
618
711
|
*/
|
|
619
712
|
VotingPeriodLow: PlainDescriptor<undefined>;
|
|
620
713
|
/**
|
|
621
|
-
*The preimage does not exist.
|
|
714
|
+
* The preimage does not exist.
|
|
622
715
|
*/
|
|
623
716
|
PreimageNotExist: PlainDescriptor<undefined>;
|
|
624
717
|
};
|
|
625
718
|
Elections: {
|
|
626
719
|
/**
|
|
627
|
-
*Cannot vote when no candidates or members exist.
|
|
720
|
+
* Cannot vote when no candidates or members exist.
|
|
628
721
|
*/
|
|
629
722
|
UnableToVote: PlainDescriptor<undefined>;
|
|
630
723
|
/**
|
|
631
|
-
*Must vote for at least one candidate.
|
|
724
|
+
* Must vote for at least one candidate.
|
|
632
725
|
*/
|
|
633
726
|
NoVotes: PlainDescriptor<undefined>;
|
|
634
727
|
/**
|
|
635
|
-
*Cannot vote more than candidates.
|
|
728
|
+
* Cannot vote more than candidates.
|
|
636
729
|
*/
|
|
637
730
|
TooManyVotes: PlainDescriptor<undefined>;
|
|
638
731
|
/**
|
|
639
|
-
*Cannot vote more than maximum allowed.
|
|
732
|
+
* Cannot vote more than maximum allowed.
|
|
640
733
|
*/
|
|
641
734
|
MaximumVotesExceeded: PlainDescriptor<undefined>;
|
|
642
735
|
/**
|
|
643
|
-
*Cannot vote with stake less than minimum balance.
|
|
736
|
+
* Cannot vote with stake less than minimum balance.
|
|
644
737
|
*/
|
|
645
738
|
LowBalance: PlainDescriptor<undefined>;
|
|
646
739
|
/**
|
|
647
|
-
*Voter can not pay voting bond.
|
|
740
|
+
* Voter can not pay voting bond.
|
|
648
741
|
*/
|
|
649
742
|
UnableToPayBond: PlainDescriptor<undefined>;
|
|
650
743
|
/**
|
|
651
|
-
*Must be a voter.
|
|
744
|
+
* Must be a voter.
|
|
652
745
|
*/
|
|
653
746
|
MustBeVoter: PlainDescriptor<undefined>;
|
|
654
747
|
/**
|
|
655
|
-
*Duplicated candidate submission.
|
|
748
|
+
* Duplicated candidate submission.
|
|
656
749
|
*/
|
|
657
750
|
DuplicatedCandidate: PlainDescriptor<undefined>;
|
|
658
751
|
/**
|
|
659
|
-
*Too many candidates have been created.
|
|
752
|
+
* Too many candidates have been created.
|
|
660
753
|
*/
|
|
661
754
|
TooManyCandidates: PlainDescriptor<undefined>;
|
|
662
755
|
/**
|
|
663
|
-
*Member cannot re-submit candidacy.
|
|
756
|
+
* Member cannot re-submit candidacy.
|
|
664
757
|
*/
|
|
665
758
|
MemberSubmit: PlainDescriptor<undefined>;
|
|
666
759
|
/**
|
|
667
|
-
*Runner cannot re-submit candidacy.
|
|
760
|
+
* Runner cannot re-submit candidacy.
|
|
668
761
|
*/
|
|
669
762
|
RunnerUpSubmit: PlainDescriptor<undefined>;
|
|
670
763
|
/**
|
|
671
|
-
*Candidate does not have enough funds.
|
|
764
|
+
* Candidate does not have enough funds.
|
|
672
765
|
*/
|
|
673
766
|
InsufficientCandidateFunds: PlainDescriptor<undefined>;
|
|
674
767
|
/**
|
|
675
|
-
*Not a member.
|
|
768
|
+
* Not a member.
|
|
676
769
|
*/
|
|
677
770
|
NotMember: PlainDescriptor<undefined>;
|
|
678
771
|
/**
|
|
679
|
-
*The provided count of number of candidates is incorrect.
|
|
772
|
+
* The provided count of number of candidates is incorrect.
|
|
680
773
|
*/
|
|
681
774
|
InvalidWitnessData: PlainDescriptor<undefined>;
|
|
682
775
|
/**
|
|
683
|
-
*The provided count of number of votes is incorrect.
|
|
776
|
+
* The provided count of number of votes is incorrect.
|
|
684
777
|
*/
|
|
685
778
|
InvalidVoteCount: PlainDescriptor<undefined>;
|
|
686
779
|
/**
|
|
687
|
-
*The renouncing origin presented a wrong `Renouncing` parameter.
|
|
780
|
+
* The renouncing origin presented a wrong `Renouncing` parameter.
|
|
688
781
|
*/
|
|
689
782
|
InvalidRenouncing: PlainDescriptor<undefined>;
|
|
690
783
|
/**
|
|
691
|
-
*Prediction regarding replacement after member removal is wrong.
|
|
784
|
+
* Prediction regarding replacement after member removal is wrong.
|
|
692
785
|
*/
|
|
693
786
|
InvalidReplacement: PlainDescriptor<undefined>;
|
|
694
787
|
};
|
|
695
788
|
Council: {
|
|
696
789
|
/**
|
|
697
|
-
*Account is not a member
|
|
790
|
+
* Account is not a member
|
|
698
791
|
*/
|
|
699
792
|
NotMember: PlainDescriptor<undefined>;
|
|
700
793
|
/**
|
|
701
|
-
*Duplicate proposals not allowed
|
|
794
|
+
* Duplicate proposals not allowed
|
|
702
795
|
*/
|
|
703
796
|
DuplicateProposal: PlainDescriptor<undefined>;
|
|
704
797
|
/**
|
|
705
|
-
*Proposal must exist
|
|
798
|
+
* Proposal must exist
|
|
706
799
|
*/
|
|
707
800
|
ProposalMissing: PlainDescriptor<undefined>;
|
|
708
801
|
/**
|
|
709
|
-
*Mismatched index
|
|
802
|
+
* Mismatched index
|
|
710
803
|
*/
|
|
711
804
|
WrongIndex: PlainDescriptor<undefined>;
|
|
712
805
|
/**
|
|
713
|
-
*Duplicate vote ignored
|
|
806
|
+
* Duplicate vote ignored
|
|
714
807
|
*/
|
|
715
808
|
DuplicateVote: PlainDescriptor<undefined>;
|
|
716
809
|
/**
|
|
717
|
-
*Members are already initialized!
|
|
810
|
+
* Members are already initialized!
|
|
718
811
|
*/
|
|
719
812
|
AlreadyInitialized: PlainDescriptor<undefined>;
|
|
720
813
|
/**
|
|
721
|
-
*The close call was made too early, before the end of the voting.
|
|
814
|
+
* The close call was made too early, before the end of the voting.
|
|
722
815
|
*/
|
|
723
816
|
TooEarly: PlainDescriptor<undefined>;
|
|
724
817
|
/**
|
|
725
|
-
*There can only be a maximum of `MaxProposals` active proposals.
|
|
818
|
+
* There can only be a maximum of `MaxProposals` active proposals.
|
|
726
819
|
*/
|
|
727
820
|
TooManyProposals: PlainDescriptor<undefined>;
|
|
728
821
|
/**
|
|
729
|
-
*The given weight bound for the proposal was too low.
|
|
822
|
+
* The given weight bound for the proposal was too low.
|
|
730
823
|
*/
|
|
731
824
|
WrongProposalWeight: PlainDescriptor<undefined>;
|
|
732
825
|
/**
|
|
733
|
-
*The given length bound for the proposal was too low.
|
|
826
|
+
* The given length bound for the proposal was too low.
|
|
734
827
|
*/
|
|
735
828
|
WrongProposalLength: PlainDescriptor<undefined>;
|
|
736
829
|
/**
|
|
737
|
-
*Prime account is not a member
|
|
830
|
+
* Prime account is not a member
|
|
738
831
|
*/
|
|
739
832
|
PrimeAccountNotMember: PlainDescriptor<undefined>;
|
|
740
833
|
};
|
|
741
834
|
TechnicalCommittee: {
|
|
742
835
|
/**
|
|
743
|
-
*Account is not a member
|
|
836
|
+
* Account is not a member
|
|
744
837
|
*/
|
|
745
838
|
NotMember: PlainDescriptor<undefined>;
|
|
746
839
|
/**
|
|
747
|
-
*Duplicate proposals not allowed
|
|
840
|
+
* Duplicate proposals not allowed
|
|
748
841
|
*/
|
|
749
842
|
DuplicateProposal: PlainDescriptor<undefined>;
|
|
750
843
|
/**
|
|
751
|
-
*Proposal must exist
|
|
844
|
+
* Proposal must exist
|
|
752
845
|
*/
|
|
753
846
|
ProposalMissing: PlainDescriptor<undefined>;
|
|
754
847
|
/**
|
|
755
|
-
*Mismatched index
|
|
848
|
+
* Mismatched index
|
|
756
849
|
*/
|
|
757
850
|
WrongIndex: PlainDescriptor<undefined>;
|
|
758
851
|
/**
|
|
759
|
-
*Duplicate vote ignored
|
|
852
|
+
* Duplicate vote ignored
|
|
760
853
|
*/
|
|
761
854
|
DuplicateVote: PlainDescriptor<undefined>;
|
|
762
855
|
/**
|
|
763
|
-
*Members are already initialized!
|
|
856
|
+
* Members are already initialized!
|
|
764
857
|
*/
|
|
765
858
|
AlreadyInitialized: PlainDescriptor<undefined>;
|
|
766
859
|
/**
|
|
767
|
-
*The close call was made too early, before the end of the voting.
|
|
860
|
+
* The close call was made too early, before the end of the voting.
|
|
768
861
|
*/
|
|
769
862
|
TooEarly: PlainDescriptor<undefined>;
|
|
770
863
|
/**
|
|
771
|
-
*There can only be a maximum of `MaxProposals` active proposals.
|
|
864
|
+
* There can only be a maximum of `MaxProposals` active proposals.
|
|
772
865
|
*/
|
|
773
866
|
TooManyProposals: PlainDescriptor<undefined>;
|
|
774
867
|
/**
|
|
775
|
-
*The given weight bound for the proposal was too low.
|
|
868
|
+
* The given weight bound for the proposal was too low.
|
|
776
869
|
*/
|
|
777
870
|
WrongProposalWeight: PlainDescriptor<undefined>;
|
|
778
871
|
/**
|
|
779
|
-
*The given length bound for the proposal was too low.
|
|
872
|
+
* The given length bound for the proposal was too low.
|
|
780
873
|
*/
|
|
781
874
|
WrongProposalLength: PlainDescriptor<undefined>;
|
|
782
875
|
/**
|
|
783
|
-
*Prime account is not a member
|
|
876
|
+
* Prime account is not a member
|
|
784
877
|
*/
|
|
785
878
|
PrimeAccountNotMember: PlainDescriptor<undefined>;
|
|
786
879
|
};
|
|
787
880
|
Tips: {
|
|
788
881
|
/**
|
|
789
|
-
*The reason given is just too big.
|
|
882
|
+
* The reason given is just too big.
|
|
790
883
|
*/
|
|
791
884
|
ReasonTooBig: PlainDescriptor<undefined>;
|
|
792
885
|
/**
|
|
793
|
-
*The tip was already found/started.
|
|
886
|
+
* The tip was already found/started.
|
|
794
887
|
*/
|
|
795
888
|
AlreadyKnown: PlainDescriptor<undefined>;
|
|
796
889
|
/**
|
|
797
|
-
*The tip hash is unknown.
|
|
890
|
+
* The tip hash is unknown.
|
|
798
891
|
*/
|
|
799
892
|
UnknownTip: PlainDescriptor<undefined>;
|
|
800
893
|
/**
|
|
801
|
-
*The tip given was too generous.
|
|
894
|
+
* The tip given was too generous.
|
|
802
895
|
*/
|
|
803
896
|
MaxTipAmountExceeded: PlainDescriptor<undefined>;
|
|
804
897
|
/**
|
|
805
|
-
*The account attempting to retract the tip is not the finder of the tip.
|
|
898
|
+
* The account attempting to retract the tip is not the finder of the tip.
|
|
806
899
|
*/
|
|
807
900
|
NotFinder: PlainDescriptor<undefined>;
|
|
808
901
|
/**
|
|
809
|
-
*The tip cannot be claimed/closed because there are not enough tippers yet.
|
|
902
|
+
* The tip cannot be claimed/closed because there are not enough tippers yet.
|
|
810
903
|
*/
|
|
811
904
|
StillOpen: PlainDescriptor<undefined>;
|
|
812
905
|
/**
|
|
813
|
-
*The tip cannot be claimed/closed because it's still in the countdown period.
|
|
906
|
+
* The tip cannot be claimed/closed because it's still in the countdown period.
|
|
814
907
|
*/
|
|
815
908
|
Premature: PlainDescriptor<undefined>;
|
|
816
909
|
};
|
|
817
910
|
Proxy: {
|
|
818
911
|
/**
|
|
819
|
-
*There are too many proxies registered or too many announcements pending.
|
|
912
|
+
* There are too many proxies registered or too many announcements pending.
|
|
820
913
|
*/
|
|
821
914
|
TooMany: PlainDescriptor<undefined>;
|
|
822
915
|
/**
|
|
823
|
-
*Proxy registration not found.
|
|
916
|
+
* Proxy registration not found.
|
|
824
917
|
*/
|
|
825
918
|
NotFound: PlainDescriptor<undefined>;
|
|
826
919
|
/**
|
|
827
|
-
*Sender is not a proxy of the account to be proxied.
|
|
920
|
+
* Sender is not a proxy of the account to be proxied.
|
|
828
921
|
*/
|
|
829
922
|
NotProxy: PlainDescriptor<undefined>;
|
|
830
923
|
/**
|
|
831
|
-
*A call which is incompatible with the proxy type's filter was attempted.
|
|
924
|
+
* A call which is incompatible with the proxy type's filter was attempted.
|
|
832
925
|
*/
|
|
833
926
|
Unproxyable: PlainDescriptor<undefined>;
|
|
834
927
|
/**
|
|
835
|
-
*Account is already a proxy.
|
|
928
|
+
* Account is already a proxy.
|
|
836
929
|
*/
|
|
837
930
|
Duplicate: PlainDescriptor<undefined>;
|
|
838
931
|
/**
|
|
839
|
-
*Call may not be made by proxy because it may escalate its privileges.
|
|
932
|
+
* Call may not be made by proxy because it may escalate its privileges.
|
|
840
933
|
*/
|
|
841
934
|
NoPermission: PlainDescriptor<undefined>;
|
|
842
935
|
/**
|
|
843
|
-
*Announcement, if made at all, was made too recently.
|
|
936
|
+
* Announcement, if made at all, was made too recently.
|
|
844
937
|
*/
|
|
845
938
|
Unannounced: PlainDescriptor<undefined>;
|
|
846
939
|
/**
|
|
847
|
-
*Cannot add self as proxy.
|
|
940
|
+
* Cannot add self as proxy.
|
|
848
941
|
*/
|
|
849
942
|
NoSelfProxy: PlainDescriptor<undefined>;
|
|
850
943
|
};
|
|
851
944
|
Multisig: {
|
|
852
945
|
/**
|
|
853
|
-
*Threshold must be 2 or greater.
|
|
946
|
+
* Threshold must be 2 or greater.
|
|
854
947
|
*/
|
|
855
948
|
MinimumThreshold: PlainDescriptor<undefined>;
|
|
856
949
|
/**
|
|
857
|
-
*Call is already approved by this signatory.
|
|
950
|
+
* Call is already approved by this signatory.
|
|
858
951
|
*/
|
|
859
952
|
AlreadyApproved: PlainDescriptor<undefined>;
|
|
860
953
|
/**
|
|
861
|
-
*Call doesn't need any (more) approvals.
|
|
954
|
+
* Call doesn't need any (more) approvals.
|
|
862
955
|
*/
|
|
863
956
|
NoApprovalsNeeded: PlainDescriptor<undefined>;
|
|
864
957
|
/**
|
|
865
|
-
*There are too few signatories in the list.
|
|
958
|
+
* There are too few signatories in the list.
|
|
866
959
|
*/
|
|
867
960
|
TooFewSignatories: PlainDescriptor<undefined>;
|
|
868
961
|
/**
|
|
869
|
-
*There are too many signatories in the list.
|
|
962
|
+
* There are too many signatories in the list.
|
|
870
963
|
*/
|
|
871
964
|
TooManySignatories: PlainDescriptor<undefined>;
|
|
872
965
|
/**
|
|
873
|
-
*The signatories were provided out of order; they should be ordered.
|
|
966
|
+
* The signatories were provided out of order; they should be ordered.
|
|
874
967
|
*/
|
|
875
968
|
SignatoriesOutOfOrder: PlainDescriptor<undefined>;
|
|
876
969
|
/**
|
|
877
|
-
*The sender was contained in the other signatories; it shouldn't be.
|
|
970
|
+
* The sender was contained in the other signatories; it shouldn't be.
|
|
878
971
|
*/
|
|
879
972
|
SenderInSignatories: PlainDescriptor<undefined>;
|
|
880
973
|
/**
|
|
881
|
-
*Multisig operation not found when attempting to cancel.
|
|
974
|
+
* Multisig operation not found when attempting to cancel.
|
|
882
975
|
*/
|
|
883
976
|
NotFound: PlainDescriptor<undefined>;
|
|
884
977
|
/**
|
|
885
|
-
*Only the account that originally created the multisig is able to cancel it.
|
|
978
|
+
* Only the account that originally created the multisig is able to cancel it.
|
|
886
979
|
*/
|
|
887
980
|
NotOwner: PlainDescriptor<undefined>;
|
|
888
981
|
/**
|
|
889
|
-
*No timepoint was given, yet the multisig operation is already underway.
|
|
982
|
+
* No timepoint was given, yet the multisig operation is already underway.
|
|
890
983
|
*/
|
|
891
984
|
NoTimepoint: PlainDescriptor<undefined>;
|
|
892
985
|
/**
|
|
893
|
-
*A different timepoint was given to the multisig operation that is underway.
|
|
986
|
+
* A different timepoint was given to the multisig operation that is underway.
|
|
894
987
|
*/
|
|
895
988
|
WrongTimepoint: PlainDescriptor<undefined>;
|
|
896
989
|
/**
|
|
897
|
-
*A timepoint was given, yet no multisig operation is underway.
|
|
990
|
+
* A timepoint was given, yet no multisig operation is underway.
|
|
898
991
|
*/
|
|
899
992
|
UnexpectedTimepoint: PlainDescriptor<undefined>;
|
|
900
993
|
/**
|
|
901
|
-
*The maximum weight information provided was too low.
|
|
994
|
+
* The maximum weight information provided was too low.
|
|
902
995
|
*/
|
|
903
996
|
MaxWeightTooLow: PlainDescriptor<undefined>;
|
|
904
997
|
/**
|
|
905
|
-
*The data to be stored is already stored.
|
|
998
|
+
* The data to be stored is already stored.
|
|
906
999
|
*/
|
|
907
1000
|
AlreadyStored: PlainDescriptor<undefined>;
|
|
908
1001
|
};
|
|
909
1002
|
Uniques: {
|
|
910
1003
|
/**
|
|
911
|
-
*The signing account has no permission to do the operation.
|
|
1004
|
+
* The signing account has no permission to do the operation.
|
|
912
1005
|
*/
|
|
913
1006
|
NoPermission: PlainDescriptor<undefined>;
|
|
914
1007
|
/**
|
|
915
|
-
*The given item ID is unknown.
|
|
1008
|
+
* The given item ID is unknown.
|
|
916
1009
|
*/
|
|
917
1010
|
UnknownCollection: PlainDescriptor<undefined>;
|
|
918
1011
|
/**
|
|
919
|
-
*The item ID has already been used for an item.
|
|
1012
|
+
* The item ID has already been used for an item.
|
|
920
1013
|
*/
|
|
921
1014
|
AlreadyExists: PlainDescriptor<undefined>;
|
|
922
1015
|
/**
|
|
923
|
-
*The owner turned out to be different to what was expected.
|
|
1016
|
+
* The owner turned out to be different to what was expected.
|
|
924
1017
|
*/
|
|
925
1018
|
WrongOwner: PlainDescriptor<undefined>;
|
|
926
1019
|
/**
|
|
927
|
-
*Invalid witness data given.
|
|
1020
|
+
* Invalid witness data given.
|
|
928
1021
|
*/
|
|
929
1022
|
BadWitness: PlainDescriptor<undefined>;
|
|
930
1023
|
/**
|
|
931
|
-
*The item ID is already taken.
|
|
1024
|
+
* The item ID is already taken.
|
|
932
1025
|
*/
|
|
933
1026
|
InUse: PlainDescriptor<undefined>;
|
|
934
1027
|
/**
|
|
935
|
-
*The item or collection is frozen.
|
|
1028
|
+
* The item or collection is frozen.
|
|
936
1029
|
*/
|
|
937
1030
|
Frozen: PlainDescriptor<undefined>;
|
|
938
1031
|
/**
|
|
939
|
-
*The delegate turned out to be different to what was expected.
|
|
1032
|
+
* The delegate turned out to be different to what was expected.
|
|
940
1033
|
*/
|
|
941
1034
|
WrongDelegate: PlainDescriptor<undefined>;
|
|
942
1035
|
/**
|
|
943
|
-
*There is no delegate approved.
|
|
1036
|
+
* There is no delegate approved.
|
|
944
1037
|
*/
|
|
945
1038
|
NoDelegate: PlainDescriptor<undefined>;
|
|
946
1039
|
/**
|
|
947
|
-
*No approval exists that would allow the transfer.
|
|
1040
|
+
* No approval exists that would allow the transfer.
|
|
948
1041
|
*/
|
|
949
1042
|
Unapproved: PlainDescriptor<undefined>;
|
|
950
1043
|
/**
|
|
951
|
-
*The named owner has not signed ownership of the collection is acceptable.
|
|
1044
|
+
* The named owner has not signed ownership of the collection is acceptable.
|
|
952
1045
|
*/
|
|
953
1046
|
Unaccepted: PlainDescriptor<undefined>;
|
|
954
1047
|
/**
|
|
955
|
-
*The item is locked.
|
|
1048
|
+
* The item is locked.
|
|
956
1049
|
*/
|
|
957
1050
|
Locked: PlainDescriptor<undefined>;
|
|
958
1051
|
/**
|
|
959
|
-
*All items have been minted.
|
|
1052
|
+
* All items have been minted.
|
|
960
1053
|
*/
|
|
961
1054
|
MaxSupplyReached: PlainDescriptor<undefined>;
|
|
962
1055
|
/**
|
|
963
|
-
*The max supply has already been set.
|
|
1056
|
+
* The max supply has already been set.
|
|
964
1057
|
*/
|
|
965
1058
|
MaxSupplyAlreadySet: PlainDescriptor<undefined>;
|
|
966
1059
|
/**
|
|
967
|
-
*The provided max supply is less to the amount of items a collection already has.
|
|
1060
|
+
* The provided max supply is less to the amount of items a collection already has.
|
|
968
1061
|
*/
|
|
969
1062
|
MaxSupplyTooSmall: PlainDescriptor<undefined>;
|
|
970
1063
|
/**
|
|
971
|
-
*The given item ID is unknown.
|
|
1064
|
+
* The given item ID is unknown.
|
|
972
1065
|
*/
|
|
973
1066
|
UnknownItem: PlainDescriptor<undefined>;
|
|
974
1067
|
/**
|
|
975
|
-
*Item is not for sale.
|
|
1068
|
+
* Item is not for sale.
|
|
976
1069
|
*/
|
|
977
1070
|
NotForSale: PlainDescriptor<undefined>;
|
|
978
1071
|
/**
|
|
979
|
-
*The provided bid is too low.
|
|
1072
|
+
* The provided bid is too low.
|
|
980
1073
|
*/
|
|
981
1074
|
BidTooLow: PlainDescriptor<undefined>;
|
|
982
1075
|
};
|
|
983
1076
|
StateTrieMigration: {
|
|
984
1077
|
/**
|
|
985
|
-
*Max signed limits not respected.
|
|
1078
|
+
* Max signed limits not respected.
|
|
986
1079
|
*/
|
|
987
1080
|
MaxSignedLimits: PlainDescriptor<undefined>;
|
|
988
1081
|
/**
|
|
989
|
-
*A key was longer than the configured maximum.
|
|
1082
|
+
* A key was longer than the configured maximum.
|
|
990
1083
|
*
|
|
991
|
-
*This means that the migration halted at the current [`Progress`] and
|
|
992
|
-
*can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
993
|
-
*Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
994
|
-
*The value should only be increased to avoid a storage migration for the currently
|
|
995
|
-
*stored [`crate::Progress::LastKey`].
|
|
1084
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
1085
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
1086
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
1087
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
1088
|
+
* stored [`crate::Progress::LastKey`].
|
|
996
1089
|
*/
|
|
997
1090
|
KeyTooLong: PlainDescriptor<undefined>;
|
|
998
1091
|
/**
|
|
999
|
-
*submitter does not have enough funds.
|
|
1092
|
+
* submitter does not have enough funds.
|
|
1000
1093
|
*/
|
|
1001
1094
|
NotEnoughFunds: PlainDescriptor<undefined>;
|
|
1002
1095
|
/**
|
|
1003
|
-
*Bad witness data provided.
|
|
1096
|
+
* Bad witness data provided.
|
|
1004
1097
|
*/
|
|
1005
1098
|
BadWitness: PlainDescriptor<undefined>;
|
|
1006
1099
|
/**
|
|
1007
|
-
*Signed migration is not allowed because the maximum limit is not set yet.
|
|
1100
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
1008
1101
|
*/
|
|
1009
1102
|
SignedMigrationNotAllowed: PlainDescriptor<undefined>;
|
|
1010
1103
|
/**
|
|
1011
|
-
*Bad child root provided.
|
|
1104
|
+
* Bad child root provided.
|
|
1012
1105
|
*/
|
|
1013
1106
|
BadChildRoot: PlainDescriptor<undefined>;
|
|
1014
1107
|
};
|
|
1015
1108
|
ConvictionVoting: {
|
|
1016
1109
|
/**
|
|
1017
|
-
*Poll is not ongoing.
|
|
1110
|
+
* Poll is not ongoing.
|
|
1018
1111
|
*/
|
|
1019
1112
|
NotOngoing: PlainDescriptor<undefined>;
|
|
1020
1113
|
/**
|
|
1021
|
-
*The given account did not vote on the poll.
|
|
1114
|
+
* The given account did not vote on the poll.
|
|
1022
1115
|
*/
|
|
1023
1116
|
NotVoter: PlainDescriptor<undefined>;
|
|
1024
1117
|
/**
|
|
1025
|
-
*The actor has no permission to conduct the action.
|
|
1118
|
+
* The actor has no permission to conduct the action.
|
|
1026
1119
|
*/
|
|
1027
1120
|
NoPermission: PlainDescriptor<undefined>;
|
|
1028
1121
|
/**
|
|
1029
|
-
*The actor has no permission to conduct the action right now but will do in the future.
|
|
1122
|
+
* The actor has no permission to conduct the action right now but will do in the future.
|
|
1030
1123
|
*/
|
|
1031
1124
|
NoPermissionYet: PlainDescriptor<undefined>;
|
|
1032
1125
|
/**
|
|
1033
|
-
*The account is already delegating.
|
|
1126
|
+
* The account is already delegating.
|
|
1034
1127
|
*/
|
|
1035
1128
|
AlreadyDelegating: PlainDescriptor<undefined>;
|
|
1036
1129
|
/**
|
|
1037
|
-
*The account currently has votes attached to it and the operation cannot succeed until
|
|
1038
|
-
*these are removed through `remove_vote`.
|
|
1130
|
+
* The account currently has votes attached to it and the operation cannot succeed until
|
|
1131
|
+
* these are removed through `remove_vote`.
|
|
1039
1132
|
*/
|
|
1040
1133
|
AlreadyVoting: PlainDescriptor<undefined>;
|
|
1041
1134
|
/**
|
|
1042
|
-
*Too high a balance was provided that the account cannot afford.
|
|
1135
|
+
* Too high a balance was provided that the account cannot afford.
|
|
1043
1136
|
*/
|
|
1044
1137
|
InsufficientFunds: PlainDescriptor<undefined>;
|
|
1045
1138
|
/**
|
|
1046
|
-
*The account is not currently delegating.
|
|
1139
|
+
* The account is not currently delegating.
|
|
1047
1140
|
*/
|
|
1048
1141
|
NotDelegating: PlainDescriptor<undefined>;
|
|
1049
1142
|
/**
|
|
1050
|
-
*Delegation to oneself makes no sense.
|
|
1143
|
+
* Delegation to oneself makes no sense.
|
|
1051
1144
|
*/
|
|
1052
1145
|
Nonsense: PlainDescriptor<undefined>;
|
|
1053
1146
|
/**
|
|
1054
|
-
*Maximum number of votes reached.
|
|
1147
|
+
* Maximum number of votes reached.
|
|
1055
1148
|
*/
|
|
1056
1149
|
MaxVotesReached: PlainDescriptor<undefined>;
|
|
1057
1150
|
/**
|
|
1058
|
-
*The class must be supplied since it is not easily determinable from the state.
|
|
1151
|
+
* The class must be supplied since it is not easily determinable from the state.
|
|
1059
1152
|
*/
|
|
1060
1153
|
ClassNeeded: PlainDescriptor<undefined>;
|
|
1061
1154
|
/**
|
|
1062
|
-
*The class ID supplied is invalid.
|
|
1155
|
+
* The class ID supplied is invalid.
|
|
1063
1156
|
*/
|
|
1064
1157
|
BadClass: PlainDescriptor<undefined>;
|
|
1065
1158
|
};
|
|
1066
1159
|
Referenda: {
|
|
1067
1160
|
/**
|
|
1068
|
-
*Referendum is not ongoing.
|
|
1161
|
+
* Referendum is not ongoing.
|
|
1069
1162
|
*/
|
|
1070
1163
|
NotOngoing: PlainDescriptor<undefined>;
|
|
1071
1164
|
/**
|
|
1072
|
-
*Referendum's decision deposit is already paid.
|
|
1165
|
+
* Referendum's decision deposit is already paid.
|
|
1073
1166
|
*/
|
|
1074
1167
|
HasDeposit: PlainDescriptor<undefined>;
|
|
1075
1168
|
/**
|
|
1076
|
-
*The track identifier given was invalid.
|
|
1169
|
+
* The track identifier given was invalid.
|
|
1077
1170
|
*/
|
|
1078
1171
|
BadTrack: PlainDescriptor<undefined>;
|
|
1079
1172
|
/**
|
|
1080
|
-
*There are already a full complement of referenda in progress for this track.
|
|
1173
|
+
* There are already a full complement of referenda in progress for this track.
|
|
1081
1174
|
*/
|
|
1082
1175
|
Full: PlainDescriptor<undefined>;
|
|
1083
1176
|
/**
|
|
1084
|
-
*The queue of the track is empty.
|
|
1177
|
+
* The queue of the track is empty.
|
|
1085
1178
|
*/
|
|
1086
1179
|
QueueEmpty: PlainDescriptor<undefined>;
|
|
1087
1180
|
/**
|
|
1088
|
-
*The referendum index provided is invalid in this context.
|
|
1181
|
+
* The referendum index provided is invalid in this context.
|
|
1089
1182
|
*/
|
|
1090
1183
|
BadReferendum: PlainDescriptor<undefined>;
|
|
1091
1184
|
/**
|
|
1092
|
-
*There was nothing to do in the advancement.
|
|
1185
|
+
* There was nothing to do in the advancement.
|
|
1093
1186
|
*/
|
|
1094
1187
|
NothingToDo: PlainDescriptor<undefined>;
|
|
1095
1188
|
/**
|
|
1096
|
-
*No track exists for the proposal origin.
|
|
1189
|
+
* No track exists for the proposal origin.
|
|
1097
1190
|
*/
|
|
1098
1191
|
NoTrack: PlainDescriptor<undefined>;
|
|
1099
1192
|
/**
|
|
1100
|
-
*Any deposit cannot be refunded until after the decision is over.
|
|
1193
|
+
* Any deposit cannot be refunded until after the decision is over.
|
|
1101
1194
|
*/
|
|
1102
1195
|
Unfinished: PlainDescriptor<undefined>;
|
|
1103
1196
|
/**
|
|
1104
|
-
*The deposit refunder is not the depositor.
|
|
1197
|
+
* The deposit refunder is not the depositor.
|
|
1105
1198
|
*/
|
|
1106
1199
|
NoPermission: PlainDescriptor<undefined>;
|
|
1107
1200
|
/**
|
|
1108
|
-
*The deposit cannot be refunded since none was made.
|
|
1201
|
+
* The deposit cannot be refunded since none was made.
|
|
1109
1202
|
*/
|
|
1110
1203
|
NoDeposit: PlainDescriptor<undefined>;
|
|
1111
1204
|
/**
|
|
1112
|
-
*The referendum status is invalid for this operation.
|
|
1205
|
+
* The referendum status is invalid for this operation.
|
|
1113
1206
|
*/
|
|
1114
1207
|
BadStatus: PlainDescriptor<undefined>;
|
|
1115
1208
|
/**
|
|
1116
|
-
*The preimage does not exist.
|
|
1209
|
+
* The preimage does not exist.
|
|
1117
1210
|
*/
|
|
1118
1211
|
PreimageNotExist: PlainDescriptor<undefined>;
|
|
1119
1212
|
/**
|
|
1120
|
-
*The preimage is stored with a different length than the one provided.
|
|
1213
|
+
* The preimage is stored with a different length than the one provided.
|
|
1121
1214
|
*/
|
|
1122
1215
|
PreimageStoredWithDifferentLength: PlainDescriptor<undefined>;
|
|
1123
1216
|
};
|
|
1124
1217
|
Whitelist: {
|
|
1125
1218
|
/**
|
|
1126
|
-
*The preimage of the call hash could not be loaded.
|
|
1219
|
+
* The preimage of the call hash could not be loaded.
|
|
1127
1220
|
*/
|
|
1128
1221
|
UnavailablePreImage: PlainDescriptor<undefined>;
|
|
1129
1222
|
/**
|
|
1130
|
-
*The call could not be decoded.
|
|
1223
|
+
* The call could not be decoded.
|
|
1131
1224
|
*/
|
|
1132
1225
|
UndecodableCall: PlainDescriptor<undefined>;
|
|
1133
1226
|
/**
|
|
1134
|
-
*The weight of the decoded call was higher than the witness.
|
|
1227
|
+
* The weight of the decoded call was higher than the witness.
|
|
1135
1228
|
*/
|
|
1136
1229
|
InvalidCallWeightWitness: PlainDescriptor<undefined>;
|
|
1137
1230
|
/**
|
|
1138
|
-
*The call was not whitelisted.
|
|
1231
|
+
* The call was not whitelisted.
|
|
1139
1232
|
*/
|
|
1140
1233
|
CallIsNotWhitelisted: PlainDescriptor<undefined>;
|
|
1141
1234
|
/**
|
|
1142
|
-
*The call was already whitelisted; No-Op.
|
|
1235
|
+
* The call was already whitelisted; No-Op.
|
|
1143
1236
|
*/
|
|
1144
1237
|
CallAlreadyWhitelisted: PlainDescriptor<undefined>;
|
|
1145
1238
|
};
|
|
1146
1239
|
AssetRegistry: {
|
|
1147
1240
|
/**
|
|
1148
|
-
*Asset ID is not available. This only happens when it reaches the MAX value of given id type.
|
|
1241
|
+
* Asset ID is not available. This only happens when it reaches the MAX value of given id type.
|
|
1149
1242
|
*/
|
|
1150
1243
|
NoIdAvailable: PlainDescriptor<undefined>;
|
|
1151
1244
|
/**
|
|
1152
|
-
*Invalid asset name or symbol.
|
|
1245
|
+
* Invalid asset name or symbol.
|
|
1153
1246
|
*/
|
|
1154
1247
|
AssetNotFound: PlainDescriptor<undefined>;
|
|
1155
1248
|
/**
|
|
1156
|
-
*Length of name or symbol is less than min. length.
|
|
1249
|
+
* Length of name or symbol is less than min. length.
|
|
1157
1250
|
*/
|
|
1158
1251
|
TooShort: PlainDescriptor<undefined>;
|
|
1159
1252
|
/**
|
|
1160
|
-
*Asset's symbol can't contain whitespace characters .
|
|
1253
|
+
* Asset's symbol can't contain whitespace characters .
|
|
1161
1254
|
*/
|
|
1162
1255
|
InvalidSymbol: PlainDescriptor<undefined>;
|
|
1163
1256
|
/**
|
|
1164
|
-
*Asset ID is not registered in the asset-registry.
|
|
1257
|
+
* Asset ID is not registered in the asset-registry.
|
|
1165
1258
|
*/
|
|
1166
1259
|
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
1167
1260
|
/**
|
|
1168
|
-
*Asset is already registered.
|
|
1261
|
+
* Asset is already registered.
|
|
1169
1262
|
*/
|
|
1170
1263
|
AssetAlreadyRegistered: PlainDescriptor<undefined>;
|
|
1171
1264
|
/**
|
|
1172
|
-
*Incorrect number of assets provided to create shared asset.
|
|
1265
|
+
* Incorrect number of assets provided to create shared asset.
|
|
1173
1266
|
*/
|
|
1174
1267
|
InvalidSharedAssetLen: PlainDescriptor<undefined>;
|
|
1175
1268
|
/**
|
|
1176
|
-
*Cannot update asset location.
|
|
1269
|
+
* Cannot update asset location.
|
|
1177
1270
|
*/
|
|
1178
1271
|
CannotUpdateLocation: PlainDescriptor<undefined>;
|
|
1179
1272
|
/**
|
|
1180
|
-
*Selected asset id is out of reserved range.
|
|
1273
|
+
* Selected asset id is out of reserved range.
|
|
1181
1274
|
*/
|
|
1182
1275
|
NotInReservedRange: PlainDescriptor<undefined>;
|
|
1183
1276
|
/**
|
|
1184
|
-
*Location already registered with different asset.
|
|
1277
|
+
* Location already registered with different asset.
|
|
1185
1278
|
*/
|
|
1186
1279
|
LocationAlreadyRegistered: PlainDescriptor<undefined>;
|
|
1187
1280
|
/**
|
|
1188
|
-
*Origin is forbidden to set/update value.
|
|
1281
|
+
* Origin is forbidden to set/update value.
|
|
1189
1282
|
*/
|
|
1190
1283
|
Forbidden: PlainDescriptor<undefined>;
|
|
1191
1284
|
/**
|
|
1192
|
-
*Balance too low.
|
|
1285
|
+
* Balance too low.
|
|
1193
1286
|
*/
|
|
1194
1287
|
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1195
1288
|
/**
|
|
1196
|
-
*Sufficient assets can't be changed to insufficient.
|
|
1289
|
+
* Sufficient assets can't be changed to insufficient.
|
|
1197
1290
|
*/
|
|
1198
1291
|
ForbiddenSufficiencyChange: PlainDescriptor<undefined>;
|
|
1199
1292
|
/**
|
|
1200
|
-
*Asset is already banned.
|
|
1293
|
+
* Asset is already banned.
|
|
1201
1294
|
*/
|
|
1202
1295
|
AssetAlreadyBanned: PlainDescriptor<undefined>;
|
|
1203
1296
|
/**
|
|
1204
|
-
*Asset is not banned.
|
|
1297
|
+
* Asset is not banned.
|
|
1205
1298
|
*/
|
|
1206
1299
|
AssetNotBanned: PlainDescriptor<undefined>;
|
|
1207
1300
|
};
|
|
1208
1301
|
Claims: {
|
|
1209
1302
|
/**
|
|
1210
|
-
*Ethereum signature is not valid
|
|
1303
|
+
* Ethereum signature is not valid
|
|
1211
1304
|
*/
|
|
1212
1305
|
InvalidEthereumSignature: PlainDescriptor<undefined>;
|
|
1213
1306
|
/**
|
|
1214
|
-
*Claim is not valid
|
|
1307
|
+
* Claim is not valid
|
|
1215
1308
|
*/
|
|
1216
1309
|
NoClaimOrAlreadyClaimed: PlainDescriptor<undefined>;
|
|
1217
1310
|
/**
|
|
1218
|
-
*Value reached maximum and cannot be incremented further
|
|
1311
|
+
* Value reached maximum and cannot be incremented further
|
|
1219
1312
|
*/
|
|
1220
1313
|
BalanceOverflow: PlainDescriptor<undefined>;
|
|
1221
1314
|
};
|
|
1222
1315
|
Omnipool: {
|
|
1223
1316
|
/**
|
|
1224
|
-
*Balance too low
|
|
1317
|
+
* Balance too low
|
|
1225
1318
|
*/
|
|
1226
1319
|
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1227
1320
|
/**
|
|
1228
|
-
*Asset is already in omnipool
|
|
1321
|
+
* Asset is already in omnipool
|
|
1229
1322
|
*/
|
|
1230
1323
|
AssetAlreadyAdded: PlainDescriptor<undefined>;
|
|
1231
1324
|
/**
|
|
1232
|
-
*Asset is not in omnipool
|
|
1325
|
+
* Asset is not in omnipool
|
|
1233
1326
|
*/
|
|
1234
1327
|
AssetNotFound: PlainDescriptor<undefined>;
|
|
1235
1328
|
/**
|
|
1236
|
-
*Failed to add token to Omnipool due to insufficient initial liquidity.
|
|
1329
|
+
* Failed to add token to Omnipool due to insufficient initial liquidity.
|
|
1237
1330
|
*/
|
|
1238
1331
|
MissingBalance: PlainDescriptor<undefined>;
|
|
1239
1332
|
/**
|
|
1240
|
-
*Invalid initial asset price.
|
|
1333
|
+
* Invalid initial asset price.
|
|
1241
1334
|
*/
|
|
1242
1335
|
InvalidInitialAssetPrice: PlainDescriptor<undefined>;
|
|
1243
1336
|
/**
|
|
1244
|
-
*Slippage protection - minimum limit has not been reached.
|
|
1337
|
+
* Slippage protection - minimum limit has not been reached.
|
|
1245
1338
|
*/
|
|
1246
1339
|
BuyLimitNotReached: PlainDescriptor<undefined>;
|
|
1247
1340
|
/**
|
|
1248
|
-
*Slippage protection - maximum limit has been exceeded.
|
|
1341
|
+
* Slippage protection - maximum limit has been exceeded.
|
|
1249
1342
|
*/
|
|
1250
1343
|
SellLimitExceeded: PlainDescriptor<undefined>;
|
|
1251
1344
|
/**
|
|
1252
|
-
*Position has not been found.
|
|
1345
|
+
* Position has not been found.
|
|
1253
1346
|
*/
|
|
1254
1347
|
PositionNotFound: PlainDescriptor<undefined>;
|
|
1255
1348
|
/**
|
|
1256
|
-
*Insufficient shares in position
|
|
1349
|
+
* Insufficient shares in position
|
|
1257
1350
|
*/
|
|
1258
1351
|
InsufficientShares: PlainDescriptor<undefined>;
|
|
1259
1352
|
/**
|
|
1260
|
-
*Asset is not allowed to be traded.
|
|
1353
|
+
* Asset is not allowed to be traded.
|
|
1261
1354
|
*/
|
|
1262
1355
|
NotAllowed: PlainDescriptor<undefined>;
|
|
1263
1356
|
/**
|
|
1264
|
-
*Signed account is not owner of position instance.
|
|
1357
|
+
* Signed account is not owner of position instance.
|
|
1265
1358
|
*/
|
|
1266
1359
|
Forbidden: PlainDescriptor<undefined>;
|
|
1267
1360
|
/**
|
|
1268
|
-
*Asset weight cap has been exceeded.
|
|
1361
|
+
* Asset weight cap has been exceeded.
|
|
1269
1362
|
*/
|
|
1270
1363
|
AssetWeightCapExceeded: PlainDescriptor<undefined>;
|
|
1271
1364
|
/**
|
|
1272
|
-
*Asset is not registered in asset registry
|
|
1365
|
+
* Asset is not registered in asset registry
|
|
1273
1366
|
*/
|
|
1274
1367
|
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
1275
1368
|
/**
|
|
1276
|
-
*Provided liquidity is below minimum allowed limit
|
|
1369
|
+
* Provided liquidity is below minimum allowed limit
|
|
1277
1370
|
*/
|
|
1278
1371
|
InsufficientLiquidity: PlainDescriptor<undefined>;
|
|
1279
1372
|
/**
|
|
1280
|
-
*Traded amount is below minimum allowed limit
|
|
1373
|
+
* Traded amount is below minimum allowed limit
|
|
1281
1374
|
*/
|
|
1282
1375
|
InsufficientTradingAmount: PlainDescriptor<undefined>;
|
|
1283
1376
|
/**
|
|
1284
|
-
*Sell or buy with same asset ids is not allowed.
|
|
1377
|
+
* Sell or buy with same asset ids is not allowed.
|
|
1285
1378
|
*/
|
|
1286
1379
|
SameAssetTradeNotAllowed: PlainDescriptor<undefined>;
|
|
1287
1380
|
/**
|
|
1288
|
-
*LRNA update after trade results in positive value.
|
|
1381
|
+
* LRNA update after trade results in positive value.
|
|
1289
1382
|
*/
|
|
1290
1383
|
HubAssetUpdateError: PlainDescriptor<undefined>;
|
|
1291
1384
|
/**
|
|
1292
|
-
*Amount of shares provided cannot be 0.
|
|
1385
|
+
* Amount of shares provided cannot be 0.
|
|
1293
1386
|
*/
|
|
1294
1387
|
InvalidSharesAmount: PlainDescriptor<undefined>;
|
|
1295
1388
|
/**
|
|
1296
|
-
*Hub asset is only allowed to be sold.
|
|
1389
|
+
* Hub asset is only allowed to be sold.
|
|
1297
1390
|
*/
|
|
1298
1391
|
InvalidHubAssetTradableState: PlainDescriptor<undefined>;
|
|
1299
1392
|
/**
|
|
1300
|
-
*Asset is not allowed to be refunded.
|
|
1393
|
+
* Asset is not allowed to be refunded.
|
|
1301
1394
|
*/
|
|
1302
1395
|
AssetRefundNotAllowed: PlainDescriptor<undefined>;
|
|
1303
1396
|
/**
|
|
1304
|
-
*Max fraction of asset to buy has been exceeded.
|
|
1397
|
+
* Max fraction of asset to buy has been exceeded.
|
|
1305
1398
|
*/
|
|
1306
1399
|
MaxOutRatioExceeded: PlainDescriptor<undefined>;
|
|
1307
1400
|
/**
|
|
1308
|
-
*Max fraction of asset to sell has been exceeded.
|
|
1401
|
+
* Max fraction of asset to sell has been exceeded.
|
|
1309
1402
|
*/
|
|
1310
1403
|
MaxInRatioExceeded: PlainDescriptor<undefined>;
|
|
1311
1404
|
/**
|
|
1312
|
-
*Max allowed price difference has been exceeded.
|
|
1405
|
+
* Max allowed price difference has been exceeded.
|
|
1313
1406
|
*/
|
|
1314
1407
|
PriceDifferenceTooHigh: PlainDescriptor<undefined>;
|
|
1315
1408
|
/**
|
|
1316
|
-
*Invalid oracle price - division by zero.
|
|
1409
|
+
* Invalid oracle price - division by zero.
|
|
1317
1410
|
*/
|
|
1318
1411
|
InvalidOraclePrice: PlainDescriptor<undefined>;
|
|
1319
1412
|
/**
|
|
1320
|
-
*Failed to calculate withdrawal fee.
|
|
1413
|
+
* Failed to calculate withdrawal fee.
|
|
1321
1414
|
*/
|
|
1322
1415
|
InvalidWithdrawalFee: PlainDescriptor<undefined>;
|
|
1323
1416
|
/**
|
|
1324
|
-
*More than allowed amount of fee has been transferred.
|
|
1417
|
+
* More than allowed amount of fee has been transferred.
|
|
1325
1418
|
*/
|
|
1326
1419
|
FeeOverdraft: PlainDescriptor<undefined>;
|
|
1327
1420
|
/**
|
|
1328
|
-
*Token cannot be removed from Omnipool due to shares still owned by other users.
|
|
1421
|
+
* Token cannot be removed from Omnipool due to shares still owned by other users.
|
|
1329
1422
|
*/
|
|
1330
1423
|
SharesRemaining: PlainDescriptor<undefined>;
|
|
1331
1424
|
/**
|
|
1332
|
-
*Token cannot be removed from Omnipool because asset is not frozen.
|
|
1425
|
+
* Token cannot be removed from Omnipool because asset is not frozen.
|
|
1333
1426
|
*/
|
|
1334
1427
|
AssetNotFrozen: PlainDescriptor<undefined>;
|
|
1335
1428
|
/**
|
|
1336
|
-
*Calculated amount out from sell trade is zero.
|
|
1429
|
+
* Calculated amount out from sell trade is zero.
|
|
1337
1430
|
*/
|
|
1338
1431
|
ZeroAmountOut: PlainDescriptor<undefined>;
|
|
1339
1432
|
/**
|
|
1340
|
-
*Existential deposit of asset is not available.
|
|
1433
|
+
* Existential deposit of asset is not available.
|
|
1341
1434
|
*/
|
|
1342
1435
|
ExistentialDepositNotAvailable: PlainDescriptor<undefined>;
|
|
1343
1436
|
/**
|
|
1344
|
-
*Slippage protection
|
|
1437
|
+
* Slippage protection
|
|
1345
1438
|
*/
|
|
1346
1439
|
SlippageLimit: PlainDescriptor<undefined>;
|
|
1347
1440
|
/**
|
|
1348
|
-
*Extra protocol fee has not been consumed.
|
|
1441
|
+
* Extra protocol fee has not been consumed.
|
|
1349
1442
|
*/
|
|
1350
1443
|
ProtocolFeeNotConsumed: PlainDescriptor<undefined>;
|
|
1351
1444
|
};
|
|
1352
1445
|
TransactionPause: {
|
|
1353
1446
|
/**
|
|
1354
|
-
*can not pause
|
|
1447
|
+
* can not pause
|
|
1355
1448
|
*/
|
|
1356
1449
|
CannotPause: PlainDescriptor<undefined>;
|
|
1357
1450
|
/**
|
|
1358
|
-
*invalid character encoding
|
|
1451
|
+
* invalid character encoding
|
|
1359
1452
|
*/
|
|
1360
1453
|
InvalidCharacter: PlainDescriptor<undefined>;
|
|
1361
1454
|
/**
|
|
1362
|
-
*pallet name or function name is too long
|
|
1455
|
+
* pallet name or function name is too long
|
|
1363
1456
|
*/
|
|
1364
1457
|
NameTooLong: PlainDescriptor<undefined>;
|
|
1365
1458
|
};
|
|
1366
1459
|
Duster: {
|
|
1367
1460
|
/**
|
|
1368
|
-
*Account is excluded from dusting.
|
|
1461
|
+
* Account is excluded from dusting.
|
|
1369
1462
|
*/
|
|
1370
1463
|
AccountBlacklisted: PlainDescriptor<undefined>;
|
|
1371
1464
|
/**
|
|
1372
|
-
*Account is not present in the non-dustable list.
|
|
1465
|
+
* Account is not present in the non-dustable list.
|
|
1373
1466
|
*/
|
|
1374
1467
|
AccountNotBlacklisted: PlainDescriptor<undefined>;
|
|
1375
1468
|
/**
|
|
1376
|
-
*The balance is zero.
|
|
1469
|
+
* The balance is zero.
|
|
1377
1470
|
*/
|
|
1378
1471
|
ZeroBalance: PlainDescriptor<undefined>;
|
|
1379
1472
|
/**
|
|
1380
|
-
*The balance is sufficient to keep account open.
|
|
1473
|
+
* The balance is sufficient to keep account open.
|
|
1381
1474
|
*/
|
|
1382
1475
|
BalanceSufficient: PlainDescriptor<undefined>;
|
|
1383
1476
|
/**
|
|
1384
|
-
*Dust account is not set.
|
|
1477
|
+
* Dust account is not set.
|
|
1385
1478
|
*/
|
|
1386
1479
|
DustAccountNotSet: PlainDescriptor<undefined>;
|
|
1387
1480
|
/**
|
|
1388
|
-
*Reserve account is not set.
|
|
1481
|
+
* Reserve account is not set.
|
|
1389
1482
|
*/
|
|
1390
1483
|
ReserveAccountNotSet: PlainDescriptor<undefined>;
|
|
1391
1484
|
};
|
|
1392
1485
|
OmnipoolWarehouseLM: {
|
|
1393
1486
|
/**
|
|
1394
|
-
*Global farm does not exist.
|
|
1487
|
+
* Global farm does not exist.
|
|
1395
1488
|
*/
|
|
1396
1489
|
GlobalFarmNotFound: PlainDescriptor<undefined>;
|
|
1397
1490
|
/**
|
|
1398
|
-
*Yield farm does not exist.
|
|
1491
|
+
* Yield farm does not exist.
|
|
1399
1492
|
*/
|
|
1400
1493
|
YieldFarmNotFound: PlainDescriptor<undefined>;
|
|
1401
1494
|
/**
|
|
1402
|
-
*Multiple claims in the same period is not allowed.
|
|
1495
|
+
* Multiple claims in the same period is not allowed.
|
|
1403
1496
|
*/
|
|
1404
1497
|
DoubleClaimInPeriod: PlainDescriptor<undefined>;
|
|
1405
1498
|
/**
|
|
1406
|
-
*Liquidity mining is canceled.
|
|
1499
|
+
* Liquidity mining is canceled.
|
|
1407
1500
|
*/
|
|
1408
1501
|
LiquidityMiningCanceled: PlainDescriptor<undefined>;
|
|
1409
1502
|
/**
|
|
1410
|
-
*Liquidity mining is not canceled.
|
|
1503
|
+
* Liquidity mining is not canceled.
|
|
1411
1504
|
*/
|
|
1412
1505
|
LiquidityMiningIsActive: PlainDescriptor<undefined>;
|
|
1413
1506
|
/**
|
|
1414
|
-
*Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
1507
|
+
* Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
1415
1508
|
*/
|
|
1416
1509
|
LiquidityMiningIsNotStopped: PlainDescriptor<undefined>;
|
|
1417
1510
|
/**
|
|
1418
|
-
*LP shares amount is not valid.
|
|
1511
|
+
* LP shares amount is not valid.
|
|
1419
1512
|
*/
|
|
1420
1513
|
InvalidDepositAmount: PlainDescriptor<undefined>;
|
|
1421
1514
|
/**
|
|
1422
|
-
*Account is not allowed to perform action.
|
|
1515
|
+
* Account is not allowed to perform action.
|
|
1423
1516
|
*/
|
|
1424
1517
|
Forbidden: PlainDescriptor<undefined>;
|
|
1425
1518
|
/**
|
|
1426
|
-
*Yield farm multiplier can't be 0.
|
|
1519
|
+
* Yield farm multiplier can't be 0.
|
|
1427
1520
|
*/
|
|
1428
1521
|
InvalidMultiplier: PlainDescriptor<undefined>;
|
|
1429
1522
|
/**
|
|
1430
|
-
*Yield farm with given `amm_pool_id` already exists in global farm.
|
|
1523
|
+
* Yield farm with given `amm_pool_id` already exists in global farm.
|
|
1431
1524
|
*/
|
|
1432
1525
|
YieldFarmAlreadyExists: PlainDescriptor<undefined>;
|
|
1433
1526
|
/**
|
|
1434
|
-
*Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
|
|
1527
|
+
* Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
|
|
1435
1528
|
*/
|
|
1436
1529
|
InvalidInitialRewardPercentage: PlainDescriptor<undefined>;
|
|
1437
1530
|
/**
|
|
1438
|
-
*One or more yield farms exist in global farm.
|
|
1531
|
+
* One or more yield farms exist in global farm.
|
|
1439
1532
|
*/
|
|
1440
1533
|
GlobalFarmIsNotEmpty: PlainDescriptor<undefined>;
|
|
1441
1534
|
/**
|
|
1442
|
-
*Farm's `incentivized_asset` is missing in provided asset pair.
|
|
1535
|
+
* Farm's `incentivized_asset` is missing in provided asset pair.
|
|
1443
1536
|
*/
|
|
1444
1537
|
MissingIncentivizedAsset: PlainDescriptor<undefined>;
|
|
1445
1538
|
/**
|
|
1446
|
-
*Reward currency balance is not sufficient.
|
|
1539
|
+
* Reward currency balance is not sufficient.
|
|
1447
1540
|
*/
|
|
1448
1541
|
InsufficientRewardCurrencyBalance: PlainDescriptor<undefined>;
|
|
1449
1542
|
/**
|
|
1450
|
-
*Blocks per period can't be 0.
|
|
1543
|
+
* Blocks per period can't be 0.
|
|
1451
1544
|
*/
|
|
1452
1545
|
InvalidBlocksPerPeriod: PlainDescriptor<undefined>;
|
|
1453
1546
|
/**
|
|
1454
|
-
*Yield per period can't be 0.
|
|
1547
|
+
* Yield per period can't be 0.
|
|
1455
1548
|
*/
|
|
1456
1549
|
InvalidYieldPerPeriod: PlainDescriptor<undefined>;
|
|
1457
1550
|
/**
|
|
1458
|
-
*Total rewards is less than `MinTotalFarmRewards`.
|
|
1551
|
+
* Total rewards is less than `MinTotalFarmRewards`.
|
|
1459
1552
|
*/
|
|
1460
1553
|
InvalidTotalRewards: PlainDescriptor<undefined>;
|
|
1461
1554
|
/**
|
|
1462
|
-
*Planned yielding periods is less than `MinPlannedYieldingPeriods`.
|
|
1555
|
+
* Planned yielding periods is less than `MinPlannedYieldingPeriods`.
|
|
1463
1556
|
*/
|
|
1464
1557
|
InvalidPlannedYieldingPeriods: PlainDescriptor<undefined>;
|
|
1465
1558
|
/**
|
|
1466
|
-
*Maximum number of locks reached for deposit.
|
|
1559
|
+
* Maximum number of locks reached for deposit.
|
|
1467
1560
|
*/
|
|
1468
1561
|
MaxEntriesPerDeposit: PlainDescriptor<undefined>;
|
|
1469
1562
|
/**
|
|
1470
|
-
*Trying to lock LP shares into already locked yield farm.
|
|
1563
|
+
* Trying to lock LP shares into already locked yield farm.
|
|
1471
1564
|
*/
|
|
1472
1565
|
DoubleLock: PlainDescriptor<undefined>;
|
|
1473
1566
|
/**
|
|
1474
|
-
*Yield farm entry doesn't exist for given deposit.
|
|
1567
|
+
* Yield farm entry doesn't exist for given deposit.
|
|
1475
1568
|
*/
|
|
1476
1569
|
YieldFarmEntryNotFound: PlainDescriptor<undefined>;
|
|
1477
1570
|
/**
|
|
1478
|
-
*Max number of yield farms in global farm was reached. Global farm can't accept new
|
|
1479
|
-
*yield farms until some yield farm is not removed from storage.
|
|
1571
|
+
* Max number of yield farms in global farm was reached. Global farm can't accept new
|
|
1572
|
+
* yield farms until some yield farm is not removed from storage.
|
|
1480
1573
|
*/
|
|
1481
1574
|
GlobalFarmIsFull: PlainDescriptor<undefined>;
|
|
1482
1575
|
/**
|
|
1483
|
-
*Invalid min. deposit was set for global farm.
|
|
1576
|
+
* Invalid min. deposit was set for global farm.
|
|
1484
1577
|
*/
|
|
1485
1578
|
InvalidMinDeposit: PlainDescriptor<undefined>;
|
|
1486
1579
|
/**
|
|
1487
|
-
*Price adjustment multiplier can't be 0.
|
|
1580
|
+
* Price adjustment multiplier can't be 0.
|
|
1488
1581
|
*/
|
|
1489
1582
|
InvalidPriceAdjustment: PlainDescriptor<undefined>;
|
|
1490
1583
|
/**
|
|
1491
|
-
*Account creation from id failed.
|
|
1584
|
+
* Account creation from id failed.
|
|
1492
1585
|
*/
|
|
1493
1586
|
ErrorGetAccountId: PlainDescriptor<undefined>;
|
|
1494
1587
|
/**
|
|
1495
|
-
*Value of deposited shares amount in reward currency is bellow min. limit.
|
|
1588
|
+
* Value of deposited shares amount in reward currency is bellow min. limit.
|
|
1496
1589
|
*/
|
|
1497
1590
|
IncorrectValuedShares: PlainDescriptor<undefined>;
|
|
1498
1591
|
/**
|
|
1499
|
-
|
|
1592
|
+
* `reward_currency` is not registered in asset registry.
|
|
1500
1593
|
*/
|
|
1501
1594
|
RewardCurrencyNotRegistered: PlainDescriptor<undefined>;
|
|
1502
1595
|
/**
|
|
1503
|
-
|
|
1596
|
+
* `incentivized_asset` is not registered in asset registry.
|
|
1504
1597
|
*/
|
|
1505
1598
|
IncentivizedAssetNotRegistered: PlainDescriptor<undefined>;
|
|
1506
1599
|
/**
|
|
1507
|
-
*Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1508
|
-
*to protocol maintainers.
|
|
1600
|
+
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1601
|
+
* to protocol maintainers.
|
|
1509
1602
|
*/
|
|
1510
1603
|
InconsistentState: PlainDescriptor<Anonymize<Ibplkiqg5rvr3e>>;
|
|
1511
1604
|
};
|
|
1512
1605
|
OmnipoolLiquidityMining: {
|
|
1513
1606
|
/**
|
|
1514
|
-
*Asset is not in the omnipool.
|
|
1607
|
+
* Asset is not in the omnipool.
|
|
1515
1608
|
*/
|
|
1516
1609
|
AssetNotFound: PlainDescriptor<undefined>;
|
|
1517
1610
|
/**
|
|
1518
|
-
*Signed account is not owner of the deposit.
|
|
1611
|
+
* Signed account is not owner of the deposit.
|
|
1519
1612
|
*/
|
|
1520
1613
|
Forbidden: PlainDescriptor<undefined>;
|
|
1521
1614
|
/**
|
|
1522
|
-
*Rewards to claim are 0.
|
|
1615
|
+
* Rewards to claim are 0.
|
|
1523
1616
|
*/
|
|
1524
1617
|
ZeroClaimedRewards: PlainDescriptor<undefined>;
|
|
1525
1618
|
/**
|
|
1526
|
-
*Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1527
|
-
*to protocol maintainers.
|
|
1619
|
+
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1620
|
+
* to protocol maintainers.
|
|
1528
1621
|
*/
|
|
1529
1622
|
InconsistentState: PlainDescriptor<Anonymize<Icnmrtlo128skq>>;
|
|
1530
1623
|
/**
|
|
1531
|
-
*Oracle could not be found for requested assets.
|
|
1624
|
+
* Oracle could not be found for requested assets.
|
|
1532
1625
|
*/
|
|
1533
1626
|
OracleNotAvailable: PlainDescriptor<undefined>;
|
|
1534
1627
|
/**
|
|
1535
|
-
*Oracle providing `price_adjustment` could not be found for requested assets.
|
|
1628
|
+
* Oracle providing `price_adjustment` could not be found for requested assets.
|
|
1536
1629
|
*/
|
|
1537
1630
|
PriceAdjustmentNotAvailable: PlainDescriptor<undefined>;
|
|
1538
1631
|
/**
|
|
1539
|
-
*No farms specified to join
|
|
1632
|
+
* No farms specified to join
|
|
1540
1633
|
*/
|
|
1541
1634
|
NoFarmEntriesSpecified: PlainDescriptor<undefined>;
|
|
1542
1635
|
};
|
|
1543
1636
|
OTC: {
|
|
1544
1637
|
/**
|
|
1545
|
-
*Asset does not exist in registry
|
|
1638
|
+
* Asset does not exist in registry
|
|
1546
1639
|
*/
|
|
1547
1640
|
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
1548
1641
|
/**
|
|
1549
|
-
*Order cannot be found
|
|
1642
|
+
* Order cannot be found
|
|
1550
1643
|
*/
|
|
1551
1644
|
OrderNotFound: PlainDescriptor<undefined>;
|
|
1552
1645
|
/**
|
|
1553
|
-
*Size of order ID exceeds the bound
|
|
1646
|
+
* Size of order ID exceeds the bound
|
|
1554
1647
|
*/
|
|
1555
1648
|
OrderIdOutOfBound: PlainDescriptor<undefined>;
|
|
1556
1649
|
/**
|
|
1557
|
-
*Cannot partially fill an order which is not partially fillable
|
|
1650
|
+
* Cannot partially fill an order which is not partially fillable
|
|
1558
1651
|
*/
|
|
1559
1652
|
OrderNotPartiallyFillable: PlainDescriptor<undefined>;
|
|
1560
1653
|
/**
|
|
1561
|
-
*Order amount_in and amount_out must at all times be greater than the existential deposit
|
|
1562
|
-
*for the asset multiplied by the ExistentialDepositMultiplier.
|
|
1563
|
-
*A fill order may not leave behind amounts smaller than this.
|
|
1654
|
+
* Order amount_in and amount_out must at all times be greater than the existential deposit
|
|
1655
|
+
* for the asset multiplied by the ExistentialDepositMultiplier.
|
|
1656
|
+
* A fill order may not leave behind amounts smaller than this.
|
|
1564
1657
|
*/
|
|
1565
1658
|
OrderAmountTooSmall: PlainDescriptor<undefined>;
|
|
1566
1659
|
/**
|
|
1567
|
-
*Error with math calculations
|
|
1660
|
+
* Error with math calculations
|
|
1568
1661
|
*/
|
|
1569
1662
|
MathError: PlainDescriptor<undefined>;
|
|
1570
1663
|
/**
|
|
1571
|
-
*The caller does not have permission to complete the action
|
|
1664
|
+
* The caller does not have permission to complete the action
|
|
1572
1665
|
*/
|
|
1573
1666
|
Forbidden: PlainDescriptor<undefined>;
|
|
1574
1667
|
/**
|
|
1575
|
-
*Reserved amount not sufficient.
|
|
1668
|
+
* Reserved amount not sufficient.
|
|
1576
1669
|
*/
|
|
1577
1670
|
InsufficientReservedAmount: PlainDescriptor<undefined>;
|
|
1578
1671
|
};
|
|
1579
1672
|
CircuitBreaker: {
|
|
1580
1673
|
/**
|
|
1581
|
-
*Invalid value for a limit. Limit must be non-zero.
|
|
1674
|
+
* Invalid value for a limit. Limit must be non-zero.
|
|
1582
1675
|
*/
|
|
1583
1676
|
InvalidLimitValue: PlainDescriptor<undefined>;
|
|
1584
1677
|
/**
|
|
1585
|
-
*Allowed liquidity limit is not stored for asset
|
|
1678
|
+
* Allowed liquidity limit is not stored for asset
|
|
1586
1679
|
*/
|
|
1587
1680
|
LiquidityLimitNotStoredForAsset: PlainDescriptor<undefined>;
|
|
1588
1681
|
/**
|
|
1589
|
-
*Token trade outflow per block has been reached
|
|
1682
|
+
* Token trade outflow per block has been reached
|
|
1590
1683
|
*/
|
|
1591
1684
|
TokenOutflowLimitReached: PlainDescriptor<undefined>;
|
|
1592
1685
|
/**
|
|
1593
|
-
*Token trade influx per block has been reached
|
|
1686
|
+
* Token trade influx per block has been reached
|
|
1594
1687
|
*/
|
|
1595
1688
|
TokenInfluxLimitReached: PlainDescriptor<undefined>;
|
|
1596
1689
|
/**
|
|
1597
|
-
*Maximum pool's liquidity limit per block has been reached
|
|
1690
|
+
* Maximum pool's liquidity limit per block has been reached
|
|
1598
1691
|
*/
|
|
1599
1692
|
MaxLiquidityLimitPerBlockReached: PlainDescriptor<undefined>;
|
|
1600
1693
|
/**
|
|
1601
|
-
*Asset is not allowed to have a limit
|
|
1694
|
+
* Asset is not allowed to have a limit
|
|
1602
1695
|
*/
|
|
1603
1696
|
NotAllowed: PlainDescriptor<undefined>;
|
|
1604
1697
|
};
|
|
1605
1698
|
Router: {
|
|
1606
1699
|
/**
|
|
1607
|
-
*The trading limit has been reached
|
|
1700
|
+
* The trading limit has been reached
|
|
1608
1701
|
*/
|
|
1609
1702
|
TradingLimitReached: PlainDescriptor<undefined>;
|
|
1610
1703
|
/**
|
|
1611
|
-
*The the max number of trades limit is reached
|
|
1704
|
+
* The the max number of trades limit is reached
|
|
1612
1705
|
*/
|
|
1613
1706
|
MaxTradesExceeded: PlainDescriptor<undefined>;
|
|
1614
1707
|
/**
|
|
1615
|
-
*The AMM pool is not supported for executing trades
|
|
1708
|
+
* The AMM pool is not supported for executing trades
|
|
1616
1709
|
*/
|
|
1617
1710
|
PoolNotSupported: PlainDescriptor<undefined>;
|
|
1618
1711
|
/**
|
|
1619
|
-
*The user has not enough balance to execute the trade
|
|
1712
|
+
* The user has not enough balance to execute the trade
|
|
1620
1713
|
*/
|
|
1621
1714
|
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1622
1715
|
/**
|
|
1623
|
-
*The calculation of route trade amounts failed in the underlying AMM
|
|
1716
|
+
* The calculation of route trade amounts failed in the underlying AMM
|
|
1624
1717
|
*/
|
|
1625
1718
|
RouteCalculationFailed: PlainDescriptor<undefined>;
|
|
1626
1719
|
/**
|
|
1627
|
-
*The route is invalid
|
|
1720
|
+
* The route is invalid
|
|
1628
1721
|
*/
|
|
1629
1722
|
InvalidRoute: PlainDescriptor<undefined>;
|
|
1630
1723
|
/**
|
|
1631
|
-
*The route update was not successful
|
|
1724
|
+
* The route update was not successful
|
|
1632
1725
|
*/
|
|
1633
1726
|
RouteUpdateIsNotSuccessful: PlainDescriptor<undefined>;
|
|
1634
1727
|
/**
|
|
1635
|
-
*Route contains assets that has no oracle data
|
|
1728
|
+
* Route contains assets that has no oracle data
|
|
1636
1729
|
*/
|
|
1637
1730
|
RouteHasNoOracle: PlainDescriptor<undefined>;
|
|
1638
1731
|
/**
|
|
1639
|
-
*The route execution failed in the underlying AMM
|
|
1732
|
+
* The route execution failed in the underlying AMM
|
|
1640
1733
|
*/
|
|
1641
1734
|
InvalidRouteExecution: PlainDescriptor<undefined>;
|
|
1642
1735
|
/**
|
|
1643
|
-
*Trading same assets is not allowed.
|
|
1736
|
+
* Trading same assets is not allowed.
|
|
1644
1737
|
*/
|
|
1645
1738
|
NotAllowed: PlainDescriptor<undefined>;
|
|
1646
1739
|
};
|
|
1647
1740
|
Staking: {
|
|
1648
1741
|
/**
|
|
1649
|
-
*Balance is too low.
|
|
1742
|
+
* Balance is too low.
|
|
1650
1743
|
*/
|
|
1651
1744
|
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1652
1745
|
/**
|
|
1653
|
-
*Staked amount is too low.
|
|
1746
|
+
* Staked amount is too low.
|
|
1654
1747
|
*/
|
|
1655
1748
|
InsufficientStake: PlainDescriptor<undefined>;
|
|
1656
1749
|
/**
|
|
1657
|
-
*Staking position has not been found.
|
|
1750
|
+
* Staking position has not been found.
|
|
1658
1751
|
*/
|
|
1659
1752
|
PositionNotFound: PlainDescriptor<undefined>;
|
|
1660
1753
|
/**
|
|
1661
|
-
*Maximum amount of votes were reached for staking position.
|
|
1754
|
+
* Maximum amount of votes were reached for staking position.
|
|
1662
1755
|
*/
|
|
1663
1756
|
MaxVotesReached: PlainDescriptor<undefined>;
|
|
1664
1757
|
/**
|
|
1665
|
-
*Staking is not initialized.
|
|
1758
|
+
* Staking is not initialized.
|
|
1666
1759
|
*/
|
|
1667
1760
|
NotInitialized: PlainDescriptor<undefined>;
|
|
1668
1761
|
/**
|
|
1669
|
-
*Staking is already initialized.
|
|
1762
|
+
* Staking is already initialized.
|
|
1670
1763
|
*/
|
|
1671
1764
|
AlreadyInitialized: PlainDescriptor<undefined>;
|
|
1672
1765
|
/**
|
|
1673
|
-
*Arithmetic error.
|
|
1766
|
+
* Arithmetic error.
|
|
1674
1767
|
*/
|
|
1675
1768
|
Arithmetic: PlainDescriptor<undefined>;
|
|
1676
1769
|
/**
|
|
1677
|
-
*Pot's balance is zero.
|
|
1770
|
+
* Pot's balance is zero.
|
|
1678
1771
|
*/
|
|
1679
1772
|
MissingPotBalance: PlainDescriptor<undefined>;
|
|
1680
1773
|
/**
|
|
1681
|
-
*Account's position already exists.
|
|
1774
|
+
* Account's position already exists.
|
|
1682
1775
|
*/
|
|
1683
1776
|
PositionAlreadyExists: PlainDescriptor<undefined>;
|
|
1684
1777
|
/**
|
|
1685
|
-
*Signer is not an owner of the staking position.
|
|
1778
|
+
* Signer is not an owner of the staking position.
|
|
1686
1779
|
*/
|
|
1687
1780
|
Forbidden: PlainDescriptor<undefined>;
|
|
1688
1781
|
/**
|
|
1689
|
-
*Position contains registered votes.
|
|
1782
|
+
* Position contains registered votes.
|
|
1690
1783
|
*/
|
|
1691
1784
|
ExistingVotes: PlainDescriptor<undefined>;
|
|
1692
1785
|
/**
|
|
1693
|
-
*Position contains processed votes. Removed these votes first before increasing stake or claiming.
|
|
1786
|
+
* Position contains processed votes. Removed these votes first before increasing stake or claiming.
|
|
1694
1787
|
*/
|
|
1695
1788
|
ExistingProcessedVotes: PlainDescriptor<undefined>;
|
|
1696
1789
|
/**
|
|
1697
|
-
*Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1698
|
-
*to protocol maintainers.
|
|
1790
|
+
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1791
|
+
* to protocol maintainers.
|
|
1699
1792
|
*/
|
|
1700
1793
|
InconsistentState: PlainDescriptor<Anonymize<Icojqvn3afk41n>>;
|
|
1701
1794
|
};
|
|
1702
1795
|
Stableswap: {
|
|
1703
1796
|
/**
|
|
1704
|
-
*Creating a pool with same assets or less than 2 assets is not allowed.
|
|
1797
|
+
* Creating a pool with same assets or less than 2 assets is not allowed.
|
|
1705
1798
|
*/
|
|
1706
1799
|
IncorrectAssets: PlainDescriptor<undefined>;
|
|
1707
1800
|
/**
|
|
1708
|
-
*Maximum number of assets has been exceeded.
|
|
1801
|
+
* Maximum number of assets has been exceeded.
|
|
1709
1802
|
*/
|
|
1710
1803
|
MaxAssetsExceeded: PlainDescriptor<undefined>;
|
|
1711
1804
|
/**
|
|
1712
|
-
*A pool with given assets does not exist.
|
|
1805
|
+
* A pool with given assets does not exist.
|
|
1713
1806
|
*/
|
|
1714
1807
|
PoolNotFound: PlainDescriptor<undefined>;
|
|
1715
1808
|
/**
|
|
1716
|
-
*A pool with given assets already exists.
|
|
1809
|
+
* A pool with given assets already exists.
|
|
1717
1810
|
*/
|
|
1718
1811
|
PoolExists: PlainDescriptor<undefined>;
|
|
1719
1812
|
/**
|
|
1720
|
-
*Asset is not in the pool.
|
|
1813
|
+
* Asset is not in the pool.
|
|
1721
1814
|
*/
|
|
1722
1815
|
AssetNotInPool: PlainDescriptor<undefined>;
|
|
1723
1816
|
/**
|
|
1724
|
-
*Share asset is not registered in Registry.
|
|
1817
|
+
* Share asset is not registered in Registry.
|
|
1725
1818
|
*/
|
|
1726
1819
|
ShareAssetNotRegistered: PlainDescriptor<undefined>;
|
|
1727
1820
|
/**
|
|
1728
|
-
*Share asset is amount assets when creating a pool.
|
|
1821
|
+
* Share asset is amount assets when creating a pool.
|
|
1729
1822
|
*/
|
|
1730
1823
|
ShareAssetInPoolAssets: PlainDescriptor<undefined>;
|
|
1731
1824
|
/**
|
|
1732
|
-
*One or more assets are not registered in AssetRegistry
|
|
1825
|
+
* One or more assets are not registered in AssetRegistry
|
|
1733
1826
|
*/
|
|
1734
1827
|
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
1735
1828
|
/**
|
|
1736
|
-
*Invalid asset amount provided. Amount must be greater than zero.
|
|
1829
|
+
* Invalid asset amount provided. Amount must be greater than zero.
|
|
1737
1830
|
*/
|
|
1738
1831
|
InvalidAssetAmount: PlainDescriptor<undefined>;
|
|
1739
1832
|
/**
|
|
1740
|
-
*Balance of an asset is not sufficient to perform a trade.
|
|
1833
|
+
* Balance of an asset is not sufficient to perform a trade.
|
|
1741
1834
|
*/
|
|
1742
1835
|
InsufficientBalance: PlainDescriptor<undefined>;
|
|
1743
1836
|
/**
|
|
1744
|
-
*Balance of a share asset is not sufficient to withdraw liquidity.
|
|
1837
|
+
* Balance of a share asset is not sufficient to withdraw liquidity.
|
|
1745
1838
|
*/
|
|
1746
1839
|
InsufficientShares: PlainDescriptor<undefined>;
|
|
1747
1840
|
/**
|
|
1748
|
-
*Liquidity has not reached the required minimum.
|
|
1841
|
+
* Liquidity has not reached the required minimum.
|
|
1749
1842
|
*/
|
|
1750
1843
|
InsufficientLiquidity: PlainDescriptor<undefined>;
|
|
1751
1844
|
/**
|
|
1752
|
-
*Insufficient liquidity left in the pool after withdrawal.
|
|
1845
|
+
* Insufficient liquidity left in the pool after withdrawal.
|
|
1753
1846
|
*/
|
|
1754
1847
|
InsufficientLiquidityRemaining: PlainDescriptor<undefined>;
|
|
1755
1848
|
/**
|
|
1756
|
-
*Amount is less than the minimum trading amount configured.
|
|
1849
|
+
* Amount is less than the minimum trading amount configured.
|
|
1757
1850
|
*/
|
|
1758
1851
|
InsufficientTradingAmount: PlainDescriptor<undefined>;
|
|
1759
1852
|
/**
|
|
1760
|
-
*Minimum limit has not been reached during trade.
|
|
1853
|
+
* Minimum limit has not been reached during trade.
|
|
1761
1854
|
*/
|
|
1762
1855
|
BuyLimitNotReached: PlainDescriptor<undefined>;
|
|
1763
1856
|
/**
|
|
1764
|
-
*Maximum limit has been exceeded during trade.
|
|
1857
|
+
* Maximum limit has been exceeded during trade.
|
|
1765
1858
|
*/
|
|
1766
1859
|
SellLimitExceeded: PlainDescriptor<undefined>;
|
|
1767
1860
|
/**
|
|
1768
|
-
*Initial liquidity of asset must be > 0.
|
|
1861
|
+
* Initial liquidity of asset must be > 0.
|
|
1769
1862
|
*/
|
|
1770
1863
|
InvalidInitialLiquidity: PlainDescriptor<undefined>;
|
|
1771
1864
|
/**
|
|
1772
|
-
*Amplification is outside configured range.
|
|
1865
|
+
* Amplification is outside configured range.
|
|
1773
1866
|
*/
|
|
1774
1867
|
InvalidAmplification: PlainDescriptor<undefined>;
|
|
1775
1868
|
/**
|
|
1776
|
-
*Remaining balance of share asset is below asset's existential deposit.
|
|
1869
|
+
* Remaining balance of share asset is below asset's existential deposit.
|
|
1777
1870
|
*/
|
|
1778
1871
|
InsufficientShareBalance: PlainDescriptor<undefined>;
|
|
1779
1872
|
/**
|
|
1780
|
-
*Not allowed to perform an operation on given asset.
|
|
1873
|
+
* Not allowed to perform an operation on given asset.
|
|
1781
1874
|
*/
|
|
1782
1875
|
NotAllowed: PlainDescriptor<undefined>;
|
|
1783
1876
|
/**
|
|
1784
|
-
*Future block number is in the past.
|
|
1877
|
+
* Future block number is in the past.
|
|
1785
1878
|
*/
|
|
1786
1879
|
PastBlock: PlainDescriptor<undefined>;
|
|
1787
1880
|
/**
|
|
1788
|
-
*New amplification is equal to the previous value.
|
|
1881
|
+
* New amplification is equal to the previous value.
|
|
1789
1882
|
*/
|
|
1790
1883
|
SameAmplification: PlainDescriptor<undefined>;
|
|
1791
1884
|
/**
|
|
1792
|
-
*Slippage protection.
|
|
1885
|
+
* Slippage protection.
|
|
1793
1886
|
*/
|
|
1794
1887
|
SlippageLimit: PlainDescriptor<undefined>;
|
|
1795
1888
|
/**
|
|
1796
|
-
*Failed to retrieve asset decimals.
|
|
1889
|
+
* Failed to retrieve asset decimals.
|
|
1797
1890
|
*/
|
|
1798
1891
|
UnknownDecimals: PlainDescriptor<undefined>;
|
|
1799
1892
|
/**
|
|
1800
|
-
*List of provided pegs is incorrect.
|
|
1893
|
+
* List of provided pegs is incorrect.
|
|
1801
1894
|
*/
|
|
1802
1895
|
IncorrectInitialPegs: PlainDescriptor<undefined>;
|
|
1803
1896
|
/**
|
|
1804
|
-
*Failed to retrieve oracle entry.
|
|
1897
|
+
* Failed to retrieve oracle entry.
|
|
1805
1898
|
*/
|
|
1806
1899
|
MissingTargetPegOracle: PlainDescriptor<undefined>;
|
|
1807
1900
|
/**
|
|
1808
|
-
*Creating pool with pegs is not allowed for asset with different decimals.
|
|
1901
|
+
* Creating pool with pegs is not allowed for asset with different decimals.
|
|
1809
1902
|
*/
|
|
1810
1903
|
IncorrectAssetDecimals: PlainDescriptor<undefined>;
|
|
1811
1904
|
};
|
|
1812
1905
|
Bonds: {
|
|
1813
1906
|
/**
|
|
1814
|
-
*Bond not registered
|
|
1907
|
+
* Bond not registered
|
|
1815
1908
|
*/
|
|
1816
1909
|
NotRegistered: PlainDescriptor<undefined>;
|
|
1817
1910
|
/**
|
|
1818
|
-
*Bond is not mature
|
|
1911
|
+
* Bond is not mature
|
|
1819
1912
|
*/
|
|
1820
1913
|
NotMature: PlainDescriptor<undefined>;
|
|
1821
1914
|
/**
|
|
1822
|
-
*Maturity not long enough
|
|
1915
|
+
* Maturity not long enough
|
|
1823
1916
|
*/
|
|
1824
1917
|
InvalidMaturity: PlainDescriptor<undefined>;
|
|
1825
1918
|
/**
|
|
1826
|
-
*Asset type not allowed for underlying asset
|
|
1919
|
+
* Asset type not allowed for underlying asset
|
|
1827
1920
|
*/
|
|
1828
1921
|
DisallowedAsset: PlainDescriptor<undefined>;
|
|
1829
1922
|
/**
|
|
1830
|
-
*Asset is not registered in `AssetRegistry`
|
|
1923
|
+
* Asset is not registered in `AssetRegistry`
|
|
1831
1924
|
*/
|
|
1832
1925
|
AssetNotFound: PlainDescriptor<undefined>;
|
|
1833
1926
|
/**
|
|
1834
|
-
*Generated name is not valid.
|
|
1927
|
+
* Generated name is not valid.
|
|
1835
1928
|
*/
|
|
1836
1929
|
InvalidBondName: PlainDescriptor<undefined>;
|
|
1837
1930
|
/**
|
|
1838
|
-
*Bond's name parsing was now successful
|
|
1931
|
+
* Bond's name parsing was now successful
|
|
1839
1932
|
*/
|
|
1840
1933
|
FailToParseName: PlainDescriptor<undefined>;
|
|
1841
1934
|
};
|
|
1842
1935
|
OtcSettlements: {
|
|
1843
1936
|
/**
|
|
1844
|
-
*Otc order not found
|
|
1937
|
+
* Otc order not found
|
|
1845
1938
|
*/
|
|
1846
1939
|
OrderNotFound: PlainDescriptor<undefined>;
|
|
1847
1940
|
/**
|
|
1848
|
-
*OTC order is not partially fillable
|
|
1941
|
+
* OTC order is not partially fillable
|
|
1849
1942
|
*/
|
|
1850
1943
|
NotPartiallyFillable: PlainDescriptor<undefined>;
|
|
1851
1944
|
/**
|
|
1852
|
-
*Provided route doesn't match the existing route
|
|
1945
|
+
* Provided route doesn't match the existing route
|
|
1853
1946
|
*/
|
|
1854
1947
|
InvalidRoute: PlainDescriptor<undefined>;
|
|
1855
1948
|
/**
|
|
1856
|
-
*Initial and final balance are different
|
|
1949
|
+
* Initial and final balance are different
|
|
1857
1950
|
*/
|
|
1858
1951
|
BalanceInconsistency: PlainDescriptor<undefined>;
|
|
1859
1952
|
/**
|
|
1860
|
-
*Trade amount higher than necessary
|
|
1953
|
+
* Trade amount higher than necessary
|
|
1861
1954
|
*/
|
|
1862
1955
|
TradeAmountTooHigh: PlainDescriptor<undefined>;
|
|
1863
1956
|
/**
|
|
1864
|
-
*Trade amount lower than necessary
|
|
1957
|
+
* Trade amount lower than necessary
|
|
1865
1958
|
*/
|
|
1866
1959
|
TradeAmountTooLow: PlainDescriptor<undefined>;
|
|
1867
1960
|
/**
|
|
1868
|
-
*Price for a route is not available
|
|
1961
|
+
* Price for a route is not available
|
|
1869
1962
|
*/
|
|
1870
1963
|
PriceNotAvailable: PlainDescriptor<undefined>;
|
|
1871
1964
|
};
|
|
1872
1965
|
LBP: {
|
|
1873
1966
|
/**
|
|
1874
|
-
*Pool assets can not be the same
|
|
1967
|
+
* Pool assets can not be the same
|
|
1875
1968
|
*/
|
|
1876
1969
|
CannotCreatePoolWithSameAssets: PlainDescriptor<undefined>;
|
|
1877
1970
|
/**
|
|
1878
|
-
*Account is not a pool owner
|
|
1971
|
+
* Account is not a pool owner
|
|
1879
1972
|
*/
|
|
1880
1973
|
NotOwner: PlainDescriptor<undefined>;
|
|
1881
1974
|
/**
|
|
1882
|
-
*Sale already started
|
|
1975
|
+
* Sale already started
|
|
1883
1976
|
*/
|
|
1884
1977
|
SaleStarted: PlainDescriptor<undefined>;
|
|
1885
1978
|
/**
|
|
1886
|
-
*Sale is still in progress
|
|
1979
|
+
* Sale is still in progress
|
|
1887
1980
|
*/
|
|
1888
1981
|
SaleNotEnded: PlainDescriptor<undefined>;
|
|
1889
1982
|
/**
|
|
1890
|
-
*Sale is not running
|
|
1983
|
+
* Sale is not running
|
|
1891
1984
|
*/
|
|
1892
1985
|
SaleIsNotRunning: PlainDescriptor<undefined>;
|
|
1893
1986
|
/**
|
|
1894
|
-
*Sale duration is too long
|
|
1987
|
+
* Sale duration is too long
|
|
1895
1988
|
*/
|
|
1896
1989
|
MaxSaleDurationExceeded: PlainDescriptor<undefined>;
|
|
1897
1990
|
/**
|
|
1898
|
-
*Liquidity being added should not be zero
|
|
1991
|
+
* Liquidity being added should not be zero
|
|
1899
1992
|
*/
|
|
1900
1993
|
CannotAddZeroLiquidity: PlainDescriptor<undefined>;
|
|
1901
1994
|
/**
|
|
1902
|
-
*Asset balance too low
|
|
1995
|
+
* Asset balance too low
|
|
1903
1996
|
*/
|
|
1904
1997
|
InsufficientAssetBalance: PlainDescriptor<undefined>;
|
|
1905
1998
|
/**
|
|
1906
|
-
*Pool does not exist
|
|
1999
|
+
* Pool does not exist
|
|
1907
2000
|
*/
|
|
1908
2001
|
PoolNotFound: PlainDescriptor<undefined>;
|
|
1909
2002
|
/**
|
|
1910
|
-
*Pool has been already created
|
|
2003
|
+
* Pool has been already created
|
|
1911
2004
|
*/
|
|
1912
2005
|
PoolAlreadyExists: PlainDescriptor<undefined>;
|
|
1913
2006
|
/**
|
|
1914
|
-
*Invalid block range
|
|
2007
|
+
* Invalid block range
|
|
1915
2008
|
*/
|
|
1916
2009
|
InvalidBlockRange: PlainDescriptor<undefined>;
|
|
1917
2010
|
/**
|
|
1918
|
-
*Calculation error
|
|
2011
|
+
* Calculation error
|
|
1919
2012
|
*/
|
|
1920
2013
|
WeightCalculationError: PlainDescriptor<undefined>;
|
|
1921
2014
|
/**
|
|
1922
|
-
*Weight set is out of range
|
|
2015
|
+
* Weight set is out of range
|
|
1923
2016
|
*/
|
|
1924
2017
|
InvalidWeight: PlainDescriptor<undefined>;
|
|
1925
2018
|
/**
|
|
1926
|
-
*Can not perform a trade with zero amount
|
|
2019
|
+
* Can not perform a trade with zero amount
|
|
1927
2020
|
*/
|
|
1928
2021
|
ZeroAmount: PlainDescriptor<undefined>;
|
|
1929
2022
|
/**
|
|
1930
|
-
*Trade amount is too high
|
|
2023
|
+
* Trade amount is too high
|
|
1931
2024
|
*/
|
|
1932
2025
|
MaxInRatioExceeded: PlainDescriptor<undefined>;
|
|
1933
2026
|
/**
|
|
1934
|
-
*Trade amount is too high
|
|
2027
|
+
* Trade amount is too high
|
|
1935
2028
|
*/
|
|
1936
2029
|
MaxOutRatioExceeded: PlainDescriptor<undefined>;
|
|
1937
2030
|
/**
|
|
1938
|
-
*Invalid fee amount
|
|
2031
|
+
* Invalid fee amount
|
|
1939
2032
|
*/
|
|
1940
2033
|
FeeAmountInvalid: PlainDescriptor<undefined>;
|
|
1941
2034
|
/**
|
|
1942
|
-
*Trading limit reached
|
|
2035
|
+
* Trading limit reached
|
|
1943
2036
|
*/
|
|
1944
2037
|
TradingLimitReached: PlainDescriptor<undefined>;
|
|
1945
2038
|
/**
|
|
1946
|
-
*An unexpected integer overflow occurred
|
|
2039
|
+
* An unexpected integer overflow occurred
|
|
1947
2040
|
*/
|
|
1948
2041
|
Overflow: PlainDescriptor<undefined>;
|
|
1949
2042
|
/**
|
|
1950
|
-
*Nothing to update
|
|
2043
|
+
* Nothing to update
|
|
1951
2044
|
*/
|
|
1952
2045
|
NothingToUpdate: PlainDescriptor<undefined>;
|
|
1953
2046
|
/**
|
|
1954
|
-
*Liquidity has not reached the required minimum.
|
|
2047
|
+
* Liquidity has not reached the required minimum.
|
|
1955
2048
|
*/
|
|
1956
2049
|
InsufficientLiquidity: PlainDescriptor<undefined>;
|
|
1957
2050
|
/**
|
|
1958
|
-
*Amount is less than minimum trading limit.
|
|
2051
|
+
* Amount is less than minimum trading limit.
|
|
1959
2052
|
*/
|
|
1960
2053
|
InsufficientTradingAmount: PlainDescriptor<undefined>;
|
|
1961
2054
|
/**
|
|
1962
|
-
*Not more than one fee collector per asset id
|
|
2055
|
+
* Not more than one fee collector per asset id
|
|
1963
2056
|
*/
|
|
1964
2057
|
FeeCollectorWithAssetAlreadyUsed: PlainDescriptor<undefined>;
|
|
1965
2058
|
};
|
|
1966
2059
|
XYK: {
|
|
1967
2060
|
/**
|
|
1968
|
-
*It is not allowed to create a pool between same assets.
|
|
2061
|
+
* It is not allowed to create a pool between same assets.
|
|
1969
2062
|
*/
|
|
1970
2063
|
CannotCreatePoolWithSameAssets: PlainDescriptor<undefined>;
|
|
1971
2064
|
/**
|
|
1972
|
-
*Liquidity has not reached the required minimum.
|
|
2065
|
+
* Liquidity has not reached the required minimum.
|
|
1973
2066
|
*/
|
|
1974
2067
|
InsufficientLiquidity: PlainDescriptor<undefined>;
|
|
1975
2068
|
/**
|
|
1976
|
-
*Amount is less than min trading limit.
|
|
2069
|
+
* Amount is less than min trading limit.
|
|
1977
2070
|
*/
|
|
1978
2071
|
InsufficientTradingAmount: PlainDescriptor<undefined>;
|
|
1979
2072
|
/**
|
|
1980
|
-
*Liquidity is zero.
|
|
2073
|
+
* Liquidity is zero.
|
|
1981
2074
|
*/
|
|
1982
2075
|
ZeroLiquidity: PlainDescriptor<undefined>;
|
|
1983
2076
|
/**
|
|
1984
|
-
*It is not allowed to create a pool with zero initial price.
|
|
1985
|
-
*Not used, kept for backward compatibility
|
|
2077
|
+
* It is not allowed to create a pool with zero initial price.
|
|
2078
|
+
* Not used, kept for backward compatibility
|
|
1986
2079
|
*/
|
|
1987
2080
|
ZeroInitialPrice: PlainDescriptor<undefined>;
|
|
1988
2081
|
/**
|
|
1989
|
-
*Overflow
|
|
1990
|
-
*Not used, kept for backward compatibility
|
|
2082
|
+
* Overflow
|
|
2083
|
+
* Not used, kept for backward compatibility
|
|
1991
2084
|
*/
|
|
1992
2085
|
CreatePoolAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
1993
2086
|
/**
|
|
1994
|
-
*Overflow
|
|
2087
|
+
* Overflow
|
|
1995
2088
|
*/
|
|
1996
2089
|
InvalidMintedLiquidity: PlainDescriptor<undefined>;
|
|
1997
2090
|
/**
|
|
1998
|
-
*Overflow
|
|
2091
|
+
* Overflow
|
|
1999
2092
|
*/
|
|
2000
2093
|
InvalidLiquidityAmount: PlainDescriptor<undefined>;
|
|
2001
2094
|
/**
|
|
2002
|
-
*Asset amount has exceeded given limit.
|
|
2095
|
+
* Asset amount has exceeded given limit.
|
|
2003
2096
|
*/
|
|
2004
2097
|
AssetAmountExceededLimit: PlainDescriptor<undefined>;
|
|
2005
2098
|
/**
|
|
2006
|
-
*Asset amount has not reached given limit.
|
|
2099
|
+
* Asset amount has not reached given limit.
|
|
2007
2100
|
*/
|
|
2008
2101
|
AssetAmountNotReachedLimit: PlainDescriptor<undefined>;
|
|
2009
2102
|
/**
|
|
2010
|
-
*Asset balance is not sufficient.
|
|
2103
|
+
* Asset balance is not sufficient.
|
|
2011
2104
|
*/
|
|
2012
2105
|
InsufficientAssetBalance: PlainDescriptor<undefined>;
|
|
2013
2106
|
/**
|
|
2014
|
-
*Not enough asset liquidity in the pool.
|
|
2107
|
+
* Not enough asset liquidity in the pool.
|
|
2015
2108
|
*/
|
|
2016
2109
|
InsufficientPoolAssetBalance: PlainDescriptor<undefined>;
|
|
2017
2110
|
/**
|
|
2018
|
-
*Not enough core asset liquidity in the pool.
|
|
2111
|
+
* Not enough core asset liquidity in the pool.
|
|
2019
2112
|
*/
|
|
2020
2113
|
InsufficientNativeCurrencyBalance: PlainDescriptor<undefined>;
|
|
2021
2114
|
/**
|
|
2022
|
-
*Liquidity pool for given assets does not exist.
|
|
2115
|
+
* Liquidity pool for given assets does not exist.
|
|
2023
2116
|
*/
|
|
2024
2117
|
TokenPoolNotFound: PlainDescriptor<undefined>;
|
|
2025
2118
|
/**
|
|
2026
|
-
*Liquidity pool for given assets already exists.
|
|
2119
|
+
* Liquidity pool for given assets already exists.
|
|
2027
2120
|
*/
|
|
2028
2121
|
TokenPoolAlreadyExists: PlainDescriptor<undefined>;
|
|
2029
2122
|
/**
|
|
2030
|
-
*Overflow
|
|
2123
|
+
* Overflow
|
|
2031
2124
|
*/
|
|
2032
2125
|
AddAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2033
2126
|
/**
|
|
2034
|
-
*Overflow
|
|
2127
|
+
* Overflow
|
|
2035
2128
|
*/
|
|
2036
2129
|
RemoveAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2037
2130
|
/**
|
|
2038
|
-
*Overflow
|
|
2131
|
+
* Overflow
|
|
2039
2132
|
*/
|
|
2040
2133
|
SellAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2041
2134
|
/**
|
|
2042
|
-
*Overflow
|
|
2135
|
+
* Overflow
|
|
2043
2136
|
*/
|
|
2044
2137
|
BuyAssetAmountInvalid: PlainDescriptor<undefined>;
|
|
2045
2138
|
/**
|
|
2046
|
-
*Overflow
|
|
2139
|
+
* Overflow
|
|
2047
2140
|
*/
|
|
2048
2141
|
FeeAmountInvalid: PlainDescriptor<undefined>;
|
|
2049
2142
|
/**
|
|
2050
|
-
*Overflow
|
|
2143
|
+
* Overflow
|
|
2051
2144
|
*/
|
|
2052
2145
|
CannotApplyDiscount: PlainDescriptor<undefined>;
|
|
2053
2146
|
/**
|
|
2054
|
-
*Max fraction of pool to buy in single transaction has been exceeded.
|
|
2147
|
+
* Max fraction of pool to buy in single transaction has been exceeded.
|
|
2055
2148
|
*/
|
|
2056
2149
|
MaxOutRatioExceeded: PlainDescriptor<undefined>;
|
|
2057
2150
|
/**
|
|
2058
|
-
*Max fraction of pool to sell in single transaction has been exceeded.
|
|
2151
|
+
* Max fraction of pool to sell in single transaction has been exceeded.
|
|
2059
2152
|
*/
|
|
2060
2153
|
MaxInRatioExceeded: PlainDescriptor<undefined>;
|
|
2061
2154
|
/**
|
|
2062
|
-
*Overflow
|
|
2155
|
+
* Overflow
|
|
2063
2156
|
*/
|
|
2064
2157
|
Overflow: PlainDescriptor<undefined>;
|
|
2065
2158
|
/**
|
|
2066
|
-
*Pool cannot be created due to outside factors.
|
|
2159
|
+
* Pool cannot be created due to outside factors.
|
|
2067
2160
|
*/
|
|
2068
2161
|
CannotCreatePool: PlainDescriptor<undefined>;
|
|
2162
|
+
/**
|
|
2163
|
+
* Slippage protection.
|
|
2164
|
+
*/
|
|
2165
|
+
SlippageLimit: PlainDescriptor<undefined>;
|
|
2069
2166
|
};
|
|
2070
2167
|
Referrals: {
|
|
2071
2168
|
/**
|
|
2072
|
-
*Referral code is too long.
|
|
2169
|
+
* Referral code is too long.
|
|
2073
2170
|
*/
|
|
2074
2171
|
TooLong: PlainDescriptor<undefined>;
|
|
2075
2172
|
/**
|
|
2076
|
-
*Referral code is too short.
|
|
2173
|
+
* Referral code is too short.
|
|
2077
2174
|
*/
|
|
2078
2175
|
TooShort: PlainDescriptor<undefined>;
|
|
2079
2176
|
/**
|
|
2080
|
-
*Referral code contains invalid character. Only alphanumeric characters are allowed.
|
|
2177
|
+
* Referral code contains invalid character. Only alphanumeric characters are allowed.
|
|
2081
2178
|
*/
|
|
2082
2179
|
InvalidCharacter: PlainDescriptor<undefined>;
|
|
2083
2180
|
/**
|
|
2084
|
-
*Referral code already exists.
|
|
2181
|
+
* Referral code already exists.
|
|
2085
2182
|
*/
|
|
2086
2183
|
AlreadyExists: PlainDescriptor<undefined>;
|
|
2087
2184
|
/**
|
|
2088
|
-
*Provided referral code is invalid. Either does not exist or is too long.
|
|
2185
|
+
* Provided referral code is invalid. Either does not exist or is too long.
|
|
2089
2186
|
*/
|
|
2090
2187
|
InvalidCode: PlainDescriptor<undefined>;
|
|
2091
2188
|
/**
|
|
2092
|
-
*Account is already linked to another referral account.
|
|
2189
|
+
* Account is already linked to another referral account.
|
|
2093
2190
|
*/
|
|
2094
2191
|
AlreadyLinked: PlainDescriptor<undefined>;
|
|
2095
2192
|
/**
|
|
2096
|
-
*Nothing in the referral pot account for the asset.
|
|
2193
|
+
* Nothing in the referral pot account for the asset.
|
|
2097
2194
|
*/
|
|
2098
2195
|
ZeroAmount: PlainDescriptor<undefined>;
|
|
2099
2196
|
/**
|
|
2100
|
-
*Linking an account to the same referral account is not allowed.
|
|
2197
|
+
* Linking an account to the same referral account is not allowed.
|
|
2101
2198
|
*/
|
|
2102
2199
|
LinkNotAllowed: PlainDescriptor<undefined>;
|
|
2103
2200
|
/**
|
|
2104
|
-
*Calculated rewards are more than the fee amount. This can happen if percentages are incorrectly set.
|
|
2201
|
+
* Calculated rewards are more than the fee amount. This can happen if percentages are incorrectly set.
|
|
2105
2202
|
*/
|
|
2106
2203
|
IncorrectRewardCalculation: PlainDescriptor<undefined>;
|
|
2107
2204
|
/**
|
|
2108
|
-
*Given referrer and trader percentages exceeds 100% percent.
|
|
2205
|
+
* Given referrer and trader percentages exceeds 100% percent.
|
|
2109
2206
|
*/
|
|
2110
2207
|
IncorrectRewardPercentage: PlainDescriptor<undefined>;
|
|
2111
2208
|
/**
|
|
2112
|
-
*The account has already a code registered.
|
|
2209
|
+
* The account has already a code registered.
|
|
2113
2210
|
*/
|
|
2114
2211
|
AlreadyRegistered: PlainDescriptor<undefined>;
|
|
2115
2212
|
/**
|
|
2116
|
-
*Price for given asset pair not found.
|
|
2213
|
+
* Price for given asset pair not found.
|
|
2117
2214
|
*/
|
|
2118
2215
|
PriceNotFound: PlainDescriptor<undefined>;
|
|
2119
2216
|
/**
|
|
2120
|
-
*Minimum trading amount for conversion has not been reached.
|
|
2217
|
+
* Minimum trading amount for conversion has not been reached.
|
|
2121
2218
|
*/
|
|
2122
2219
|
ConversionMinTradingAmountNotReached: PlainDescriptor<undefined>;
|
|
2123
2220
|
/**
|
|
2124
|
-
*Zero amount received from conversion.
|
|
2221
|
+
* Zero amount received from conversion.
|
|
2125
2222
|
*/
|
|
2126
2223
|
ConversionZeroAmountReceived: PlainDescriptor<undefined>;
|
|
2127
2224
|
};
|
|
2128
2225
|
Liquidation: {
|
|
2129
2226
|
/**
|
|
2130
|
-
*AssetId to EVM address conversion failed
|
|
2227
|
+
* AssetId to EVM address conversion failed
|
|
2131
2228
|
*/
|
|
2132
2229
|
AssetConversionFailed: PlainDescriptor<undefined>;
|
|
2133
2230
|
/**
|
|
2134
|
-
*Liquidation call failed
|
|
2231
|
+
* Liquidation call failed
|
|
2135
2232
|
*/
|
|
2136
2233
|
LiquidationCallFailed: PlainDescriptor<undefined>;
|
|
2137
2234
|
/**
|
|
2138
|
-
*Provided route doesn't match the existing route
|
|
2235
|
+
* Provided route doesn't match the existing route
|
|
2139
2236
|
*/
|
|
2140
2237
|
InvalidRoute: PlainDescriptor<undefined>;
|
|
2141
2238
|
/**
|
|
2142
|
-
*Liquidation was not profitable enough to repay flash loan
|
|
2239
|
+
* Liquidation was not profitable enough to repay flash loan
|
|
2143
2240
|
*/
|
|
2144
2241
|
NotProfitable: PlainDescriptor<undefined>;
|
|
2145
2242
|
};
|
|
2146
2243
|
Tokens: {
|
|
2147
2244
|
/**
|
|
2148
|
-
*The balance is too low
|
|
2245
|
+
* The balance is too low
|
|
2149
2246
|
*/
|
|
2150
2247
|
BalanceTooLow: PlainDescriptor<undefined>;
|
|
2151
2248
|
/**
|
|
2152
|
-
*Cannot convert Amount into Balance type
|
|
2249
|
+
* Cannot convert Amount into Balance type
|
|
2153
2250
|
*/
|
|
2154
2251
|
AmountIntoBalanceFailed: PlainDescriptor<undefined>;
|
|
2155
2252
|
/**
|
|
2156
|
-
*Failed because liquidity restrictions due to locking
|
|
2253
|
+
* Failed because liquidity restrictions due to locking
|
|
2157
2254
|
*/
|
|
2158
2255
|
LiquidityRestrictions: PlainDescriptor<undefined>;
|
|
2159
2256
|
/**
|
|
2160
|
-
*Failed because the maximum locks was exceeded
|
|
2257
|
+
* Failed because the maximum locks was exceeded
|
|
2161
2258
|
*/
|
|
2162
2259
|
MaxLocksExceeded: PlainDescriptor<undefined>;
|
|
2163
2260
|
/**
|
|
2164
|
-
*Transfer/payment would kill account
|
|
2261
|
+
* Transfer/payment would kill account
|
|
2165
2262
|
*/
|
|
2166
2263
|
KeepAlive: PlainDescriptor<undefined>;
|
|
2167
2264
|
/**
|
|
2168
|
-
*Value too low to create account due to existential deposit
|
|
2265
|
+
* Value too low to create account due to existential deposit
|
|
2169
2266
|
*/
|
|
2170
2267
|
ExistentialDeposit: PlainDescriptor<undefined>;
|
|
2171
2268
|
/**
|
|
2172
|
-
*Beneficiary account must pre-exist
|
|
2269
|
+
* Beneficiary account must pre-exist
|
|
2173
2270
|
*/
|
|
2174
2271
|
DeadAccount: PlainDescriptor<undefined>;
|
|
2175
2272
|
/**
|
|
@@ -2179,803 +2276,803 @@ type IError = {
|
|
|
2179
2276
|
};
|
|
2180
2277
|
Currencies: {
|
|
2181
2278
|
/**
|
|
2182
|
-
*Unable to convert the Amount type into Balance.
|
|
2279
|
+
* Unable to convert the Amount type into Balance.
|
|
2183
2280
|
*/
|
|
2184
2281
|
AmountIntoBalanceFailed: PlainDescriptor<undefined>;
|
|
2185
2282
|
/**
|
|
2186
|
-
*Balance is too low.
|
|
2283
|
+
* Balance is too low.
|
|
2187
2284
|
*/
|
|
2188
2285
|
BalanceTooLow: PlainDescriptor<undefined>;
|
|
2189
2286
|
/**
|
|
2190
|
-
*Deposit result is not expected
|
|
2287
|
+
* Deposit result is not expected
|
|
2191
2288
|
*/
|
|
2192
2289
|
DepositFailed: PlainDescriptor<undefined>;
|
|
2193
2290
|
/**
|
|
2194
|
-
*Operation is not supported for this currency
|
|
2291
|
+
* Operation is not supported for this currency
|
|
2195
2292
|
*/
|
|
2196
2293
|
NotSupported: PlainDescriptor<undefined>;
|
|
2197
2294
|
};
|
|
2198
2295
|
Vesting: {
|
|
2199
2296
|
/**
|
|
2200
|
-
*Vesting period is zero
|
|
2297
|
+
* Vesting period is zero
|
|
2201
2298
|
*/
|
|
2202
2299
|
ZeroVestingPeriod: PlainDescriptor<undefined>;
|
|
2203
2300
|
/**
|
|
2204
|
-
*Number of vests is zero
|
|
2301
|
+
* Number of vests is zero
|
|
2205
2302
|
*/
|
|
2206
2303
|
ZeroVestingPeriodCount: PlainDescriptor<undefined>;
|
|
2207
2304
|
/**
|
|
2208
|
-
*Insufficient amount of balance to lock
|
|
2305
|
+
* Insufficient amount of balance to lock
|
|
2209
2306
|
*/
|
|
2210
2307
|
InsufficientBalanceToLock: PlainDescriptor<undefined>;
|
|
2211
2308
|
/**
|
|
2212
|
-
*This account have too many vesting schedules
|
|
2309
|
+
* This account have too many vesting schedules
|
|
2213
2310
|
*/
|
|
2214
2311
|
TooManyVestingSchedules: PlainDescriptor<undefined>;
|
|
2215
2312
|
/**
|
|
2216
|
-
*The vested transfer amount is too low
|
|
2313
|
+
* The vested transfer amount is too low
|
|
2217
2314
|
*/
|
|
2218
2315
|
AmountLow: PlainDescriptor<undefined>;
|
|
2219
2316
|
/**
|
|
2220
|
-
*Failed because the maximum vesting schedules was exceeded
|
|
2317
|
+
* Failed because the maximum vesting schedules was exceeded
|
|
2221
2318
|
*/
|
|
2222
2319
|
MaxVestingSchedulesExceeded: PlainDescriptor<undefined>;
|
|
2223
2320
|
};
|
|
2224
2321
|
EVM: {
|
|
2225
2322
|
/**
|
|
2226
|
-
*Not enough balance to perform action
|
|
2323
|
+
* Not enough balance to perform action
|
|
2227
2324
|
*/
|
|
2228
2325
|
BalanceLow: PlainDescriptor<undefined>;
|
|
2229
2326
|
/**
|
|
2230
|
-
*Calculating total fee overflowed
|
|
2327
|
+
* Calculating total fee overflowed
|
|
2231
2328
|
*/
|
|
2232
2329
|
FeeOverflow: PlainDescriptor<undefined>;
|
|
2233
2330
|
/**
|
|
2234
|
-
*Calculating total payment overflowed
|
|
2331
|
+
* Calculating total payment overflowed
|
|
2235
2332
|
*/
|
|
2236
2333
|
PaymentOverflow: PlainDescriptor<undefined>;
|
|
2237
2334
|
/**
|
|
2238
|
-
*Withdraw fee failed
|
|
2335
|
+
* Withdraw fee failed
|
|
2239
2336
|
*/
|
|
2240
2337
|
WithdrawFailed: PlainDescriptor<undefined>;
|
|
2241
2338
|
/**
|
|
2242
|
-
*Gas price is too low.
|
|
2339
|
+
* Gas price is too low.
|
|
2243
2340
|
*/
|
|
2244
2341
|
GasPriceTooLow: PlainDescriptor<undefined>;
|
|
2245
2342
|
/**
|
|
2246
|
-
*Nonce is invalid
|
|
2343
|
+
* Nonce is invalid
|
|
2247
2344
|
*/
|
|
2248
2345
|
InvalidNonce: PlainDescriptor<undefined>;
|
|
2249
2346
|
/**
|
|
2250
|
-
*Gas limit is too low.
|
|
2347
|
+
* Gas limit is too low.
|
|
2251
2348
|
*/
|
|
2252
2349
|
GasLimitTooLow: PlainDescriptor<undefined>;
|
|
2253
2350
|
/**
|
|
2254
|
-
*Gas limit is too high.
|
|
2351
|
+
* Gas limit is too high.
|
|
2255
2352
|
*/
|
|
2256
2353
|
GasLimitTooHigh: PlainDescriptor<undefined>;
|
|
2257
2354
|
/**
|
|
2258
|
-
*The chain id is invalid.
|
|
2355
|
+
* The chain id is invalid.
|
|
2259
2356
|
*/
|
|
2260
2357
|
InvalidChainId: PlainDescriptor<undefined>;
|
|
2261
2358
|
/**
|
|
2262
|
-
*the signature is invalid.
|
|
2359
|
+
* the signature is invalid.
|
|
2263
2360
|
*/
|
|
2264
2361
|
InvalidSignature: PlainDescriptor<undefined>;
|
|
2265
2362
|
/**
|
|
2266
|
-
*EVM reentrancy
|
|
2363
|
+
* EVM reentrancy
|
|
2267
2364
|
*/
|
|
2268
2365
|
Reentrancy: PlainDescriptor<undefined>;
|
|
2269
2366
|
/**
|
|
2270
|
-
*EIP-3607,
|
|
2367
|
+
* EIP-3607,
|
|
2271
2368
|
*/
|
|
2272
2369
|
TransactionMustComeFromEOA: PlainDescriptor<undefined>;
|
|
2273
2370
|
/**
|
|
2274
|
-
*Undefined error.
|
|
2371
|
+
* Undefined error.
|
|
2275
2372
|
*/
|
|
2276
2373
|
Undefined: PlainDescriptor<undefined>;
|
|
2277
2374
|
};
|
|
2278
2375
|
Ethereum: {
|
|
2279
2376
|
/**
|
|
2280
|
-
*Signature is invalid.
|
|
2377
|
+
* Signature is invalid.
|
|
2281
2378
|
*/
|
|
2282
2379
|
InvalidSignature: PlainDescriptor<undefined>;
|
|
2283
2380
|
/**
|
|
2284
|
-
*Pre-log is present, therefore transact is not allowed.
|
|
2381
|
+
* Pre-log is present, therefore transact is not allowed.
|
|
2285
2382
|
*/
|
|
2286
2383
|
PreLogExists: PlainDescriptor<undefined>;
|
|
2287
2384
|
};
|
|
2288
2385
|
EVMAccounts: {
|
|
2289
2386
|
/**
|
|
2290
|
-
*Active EVM account cannot be bound
|
|
2387
|
+
* Active EVM account cannot be bound
|
|
2291
2388
|
*/
|
|
2292
2389
|
TruncatedAccountAlreadyUsed: PlainDescriptor<undefined>;
|
|
2293
2390
|
/**
|
|
2294
|
-
*Address is already bound
|
|
2391
|
+
* Address is already bound
|
|
2295
2392
|
*/
|
|
2296
2393
|
AddressAlreadyBound: PlainDescriptor<undefined>;
|
|
2297
2394
|
/**
|
|
2298
|
-
*Bound address cannot be used
|
|
2395
|
+
* Bound address cannot be used
|
|
2299
2396
|
*/
|
|
2300
2397
|
BoundAddressCannotBeUsed: PlainDescriptor<undefined>;
|
|
2301
2398
|
/**
|
|
2302
|
-
*Address not whitelisted
|
|
2399
|
+
* Address not whitelisted
|
|
2303
2400
|
*/
|
|
2304
2401
|
AddressNotWhitelisted: PlainDescriptor<undefined>;
|
|
2305
2402
|
};
|
|
2306
2403
|
XYKLiquidityMining: {
|
|
2307
2404
|
/**
|
|
2308
|
-
*Nft pallet didn't return an owner.
|
|
2405
|
+
* Nft pallet didn't return an owner.
|
|
2309
2406
|
*/
|
|
2310
2407
|
CantFindDepositOwner: PlainDescriptor<undefined>;
|
|
2311
2408
|
/**
|
|
2312
|
-
*Account balance of XYK pool shares is not sufficient.
|
|
2409
|
+
* Account balance of XYK pool shares is not sufficient.
|
|
2313
2410
|
*/
|
|
2314
2411
|
InsufficientXykSharesBalance: PlainDescriptor<undefined>;
|
|
2315
2412
|
/**
|
|
2316
|
-
*XYK pool does not exist
|
|
2413
|
+
* XYK pool does not exist
|
|
2317
2414
|
*/
|
|
2318
2415
|
XykPoolDoesntExist: PlainDescriptor<undefined>;
|
|
2319
2416
|
/**
|
|
2320
|
-
*Account is not deposit owner.
|
|
2417
|
+
* Account is not deposit owner.
|
|
2321
2418
|
*/
|
|
2322
2419
|
NotDepositOwner: PlainDescriptor<undefined>;
|
|
2323
2420
|
/**
|
|
2324
|
-
*XYK did not return assets for given pool id
|
|
2421
|
+
* XYK did not return assets for given pool id
|
|
2325
2422
|
*/
|
|
2326
2423
|
CantGetXykAssets: PlainDescriptor<undefined>;
|
|
2327
2424
|
/**
|
|
2328
|
-
*Deposit data not found
|
|
2425
|
+
* Deposit data not found
|
|
2329
2426
|
*/
|
|
2330
2427
|
DepositDataNotFound: PlainDescriptor<undefined>;
|
|
2331
2428
|
/**
|
|
2332
|
-
*Calculated reward to claim is 0.
|
|
2429
|
+
* Calculated reward to claim is 0.
|
|
2333
2430
|
*/
|
|
2334
2431
|
ZeroClaimedRewards: PlainDescriptor<undefined>;
|
|
2335
2432
|
/**
|
|
2336
|
-
*Asset is not in the `AssetPair`.
|
|
2433
|
+
* Asset is not in the `AssetPair`.
|
|
2337
2434
|
*/
|
|
2338
2435
|
AssetNotInAssetPair: PlainDescriptor<undefined>;
|
|
2339
2436
|
/**
|
|
2340
|
-
*Provided `AssetPair` is not used by the deposit.
|
|
2437
|
+
* Provided `AssetPair` is not used by the deposit.
|
|
2341
2438
|
*/
|
|
2342
2439
|
InvalidAssetPair: PlainDescriptor<undefined>;
|
|
2343
2440
|
/**
|
|
2344
|
-
*Asset is not registered in asset registry.
|
|
2441
|
+
* Asset is not registered in asset registry.
|
|
2345
2442
|
*/
|
|
2346
2443
|
AssetNotRegistered: PlainDescriptor<undefined>;
|
|
2347
2444
|
/**
|
|
2348
|
-
*Failed to calculate `pot`'s account.
|
|
2445
|
+
* Failed to calculate `pot`'s account.
|
|
2349
2446
|
*/
|
|
2350
2447
|
FailToGetPotId: PlainDescriptor<undefined>;
|
|
2351
2448
|
/**
|
|
2352
|
-
*No global farm - yield farm pairs specified to join
|
|
2449
|
+
* No global farm - yield farm pairs specified to join
|
|
2353
2450
|
*/
|
|
2354
2451
|
NoFarmsSpecified: PlainDescriptor<undefined>;
|
|
2355
2452
|
};
|
|
2356
2453
|
XYKWarehouseLM: {
|
|
2357
2454
|
/**
|
|
2358
|
-
*Global farm does not exist.
|
|
2455
|
+
* Global farm does not exist.
|
|
2359
2456
|
*/
|
|
2360
2457
|
GlobalFarmNotFound: PlainDescriptor<undefined>;
|
|
2361
2458
|
/**
|
|
2362
|
-
*Yield farm does not exist.
|
|
2459
|
+
* Yield farm does not exist.
|
|
2363
2460
|
*/
|
|
2364
2461
|
YieldFarmNotFound: PlainDescriptor<undefined>;
|
|
2365
2462
|
/**
|
|
2366
|
-
*Multiple claims in the same period is not allowed.
|
|
2463
|
+
* Multiple claims in the same period is not allowed.
|
|
2367
2464
|
*/
|
|
2368
2465
|
DoubleClaimInPeriod: PlainDescriptor<undefined>;
|
|
2369
2466
|
/**
|
|
2370
|
-
*Liquidity mining is canceled.
|
|
2467
|
+
* Liquidity mining is canceled.
|
|
2371
2468
|
*/
|
|
2372
2469
|
LiquidityMiningCanceled: PlainDescriptor<undefined>;
|
|
2373
2470
|
/**
|
|
2374
|
-
*Liquidity mining is not canceled.
|
|
2471
|
+
* Liquidity mining is not canceled.
|
|
2375
2472
|
*/
|
|
2376
2473
|
LiquidityMiningIsActive: PlainDescriptor<undefined>;
|
|
2377
2474
|
/**
|
|
2378
|
-
*Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
2475
|
+
* Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
2379
2476
|
*/
|
|
2380
2477
|
LiquidityMiningIsNotStopped: PlainDescriptor<undefined>;
|
|
2381
2478
|
/**
|
|
2382
|
-
*LP shares amount is not valid.
|
|
2479
|
+
* LP shares amount is not valid.
|
|
2383
2480
|
*/
|
|
2384
2481
|
InvalidDepositAmount: PlainDescriptor<undefined>;
|
|
2385
2482
|
/**
|
|
2386
|
-
*Account is not allowed to perform action.
|
|
2483
|
+
* Account is not allowed to perform action.
|
|
2387
2484
|
*/
|
|
2388
2485
|
Forbidden: PlainDescriptor<undefined>;
|
|
2389
2486
|
/**
|
|
2390
|
-
*Yield farm multiplier can't be 0.
|
|
2487
|
+
* Yield farm multiplier can't be 0.
|
|
2391
2488
|
*/
|
|
2392
2489
|
InvalidMultiplier: PlainDescriptor<undefined>;
|
|
2393
2490
|
/**
|
|
2394
|
-
*Yield farm with given `amm_pool_id` already exists in global farm.
|
|
2491
|
+
* Yield farm with given `amm_pool_id` already exists in global farm.
|
|
2395
2492
|
*/
|
|
2396
2493
|
YieldFarmAlreadyExists: PlainDescriptor<undefined>;
|
|
2397
2494
|
/**
|
|
2398
|
-
*Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
|
|
2495
|
+
* Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
|
|
2399
2496
|
*/
|
|
2400
2497
|
InvalidInitialRewardPercentage: PlainDescriptor<undefined>;
|
|
2401
2498
|
/**
|
|
2402
|
-
*One or more yield farms exist in global farm.
|
|
2499
|
+
* One or more yield farms exist in global farm.
|
|
2403
2500
|
*/
|
|
2404
2501
|
GlobalFarmIsNotEmpty: PlainDescriptor<undefined>;
|
|
2405
2502
|
/**
|
|
2406
|
-
*Farm's `incentivized_asset` is missing in provided asset pair.
|
|
2503
|
+
* Farm's `incentivized_asset` is missing in provided asset pair.
|
|
2407
2504
|
*/
|
|
2408
2505
|
MissingIncentivizedAsset: PlainDescriptor<undefined>;
|
|
2409
2506
|
/**
|
|
2410
|
-
*Reward currency balance is not sufficient.
|
|
2507
|
+
* Reward currency balance is not sufficient.
|
|
2411
2508
|
*/
|
|
2412
2509
|
InsufficientRewardCurrencyBalance: PlainDescriptor<undefined>;
|
|
2413
2510
|
/**
|
|
2414
|
-
*Blocks per period can't be 0.
|
|
2511
|
+
* Blocks per period can't be 0.
|
|
2415
2512
|
*/
|
|
2416
2513
|
InvalidBlocksPerPeriod: PlainDescriptor<undefined>;
|
|
2417
2514
|
/**
|
|
2418
|
-
*Yield per period can't be 0.
|
|
2515
|
+
* Yield per period can't be 0.
|
|
2419
2516
|
*/
|
|
2420
2517
|
InvalidYieldPerPeriod: PlainDescriptor<undefined>;
|
|
2421
2518
|
/**
|
|
2422
|
-
*Total rewards is less than `MinTotalFarmRewards`.
|
|
2519
|
+
* Total rewards is less than `MinTotalFarmRewards`.
|
|
2423
2520
|
*/
|
|
2424
2521
|
InvalidTotalRewards: PlainDescriptor<undefined>;
|
|
2425
2522
|
/**
|
|
2426
|
-
*Planned yielding periods is less than `MinPlannedYieldingPeriods`.
|
|
2523
|
+
* Planned yielding periods is less than `MinPlannedYieldingPeriods`.
|
|
2427
2524
|
*/
|
|
2428
2525
|
InvalidPlannedYieldingPeriods: PlainDescriptor<undefined>;
|
|
2429
2526
|
/**
|
|
2430
|
-
*Maximum number of locks reached for deposit.
|
|
2527
|
+
* Maximum number of locks reached for deposit.
|
|
2431
2528
|
*/
|
|
2432
2529
|
MaxEntriesPerDeposit: PlainDescriptor<undefined>;
|
|
2433
2530
|
/**
|
|
2434
|
-
*Trying to lock LP shares into already locked yield farm.
|
|
2531
|
+
* Trying to lock LP shares into already locked yield farm.
|
|
2435
2532
|
*/
|
|
2436
2533
|
DoubleLock: PlainDescriptor<undefined>;
|
|
2437
2534
|
/**
|
|
2438
|
-
*Yield farm entry doesn't exist for given deposit.
|
|
2535
|
+
* Yield farm entry doesn't exist for given deposit.
|
|
2439
2536
|
*/
|
|
2440
2537
|
YieldFarmEntryNotFound: PlainDescriptor<undefined>;
|
|
2441
2538
|
/**
|
|
2442
|
-
*Max number of yield farms in global farm was reached. Global farm can't accept new
|
|
2443
|
-
*yield farms until some yield farm is not removed from storage.
|
|
2539
|
+
* Max number of yield farms in global farm was reached. Global farm can't accept new
|
|
2540
|
+
* yield farms until some yield farm is not removed from storage.
|
|
2444
2541
|
*/
|
|
2445
2542
|
GlobalFarmIsFull: PlainDescriptor<undefined>;
|
|
2446
2543
|
/**
|
|
2447
|
-
*Invalid min. deposit was set for global farm.
|
|
2544
|
+
* Invalid min. deposit was set for global farm.
|
|
2448
2545
|
*/
|
|
2449
2546
|
InvalidMinDeposit: PlainDescriptor<undefined>;
|
|
2450
2547
|
/**
|
|
2451
|
-
*Price adjustment multiplier can't be 0.
|
|
2548
|
+
* Price adjustment multiplier can't be 0.
|
|
2452
2549
|
*/
|
|
2453
2550
|
InvalidPriceAdjustment: PlainDescriptor<undefined>;
|
|
2454
2551
|
/**
|
|
2455
|
-
*Account creation from id failed.
|
|
2552
|
+
* Account creation from id failed.
|
|
2456
2553
|
*/
|
|
2457
2554
|
ErrorGetAccountId: PlainDescriptor<undefined>;
|
|
2458
2555
|
/**
|
|
2459
|
-
*Value of deposited shares amount in reward currency is bellow min. limit.
|
|
2556
|
+
* Value of deposited shares amount in reward currency is bellow min. limit.
|
|
2460
2557
|
*/
|
|
2461
2558
|
IncorrectValuedShares: PlainDescriptor<undefined>;
|
|
2462
2559
|
/**
|
|
2463
|
-
|
|
2560
|
+
* `reward_currency` is not registered in asset registry.
|
|
2464
2561
|
*/
|
|
2465
2562
|
RewardCurrencyNotRegistered: PlainDescriptor<undefined>;
|
|
2466
2563
|
/**
|
|
2467
|
-
|
|
2564
|
+
* `incentivized_asset` is not registered in asset registry.
|
|
2468
2565
|
*/
|
|
2469
2566
|
IncentivizedAssetNotRegistered: PlainDescriptor<undefined>;
|
|
2470
2567
|
/**
|
|
2471
|
-
*Action cannot be completed because unexpected error has occurred. This should be reported
|
|
2472
|
-
*to protocol maintainers.
|
|
2568
|
+
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
2569
|
+
* to protocol maintainers.
|
|
2473
2570
|
*/
|
|
2474
2571
|
InconsistentState: PlainDescriptor<Anonymize<Ibplkiqg5rvr3e>>;
|
|
2475
2572
|
};
|
|
2476
2573
|
DCA: {
|
|
2477
2574
|
/**
|
|
2478
|
-
*Schedule not exist
|
|
2575
|
+
* Schedule not exist
|
|
2479
2576
|
*/
|
|
2480
2577
|
ScheduleNotFound: PlainDescriptor<undefined>;
|
|
2481
2578
|
/**
|
|
2482
|
-
*The min trade amount is not reached
|
|
2579
|
+
* The min trade amount is not reached
|
|
2483
2580
|
*/
|
|
2484
2581
|
MinTradeAmountNotReached: PlainDescriptor<undefined>;
|
|
2485
2582
|
/**
|
|
2486
|
-
*Forbidden as the user is not the owner of the schedule
|
|
2583
|
+
* Forbidden as the user is not the owner of the schedule
|
|
2487
2584
|
*/
|
|
2488
2585
|
Forbidden: PlainDescriptor<undefined>;
|
|
2489
2586
|
/**
|
|
2490
|
-
*The next execution block number is not in the future
|
|
2587
|
+
* The next execution block number is not in the future
|
|
2491
2588
|
*/
|
|
2492
2589
|
BlockNumberIsNotInFuture: PlainDescriptor<undefined>;
|
|
2493
2590
|
/**
|
|
2494
|
-
*Price is unstable as price change from oracle data is bigger than max allowed
|
|
2591
|
+
* Price is unstable as price change from oracle data is bigger than max allowed
|
|
2495
2592
|
*/
|
|
2496
2593
|
PriceUnstable: PlainDescriptor<undefined>;
|
|
2497
2594
|
/**
|
|
2498
|
-
*Order was randomly rescheduled to next block
|
|
2595
|
+
* Order was randomly rescheduled to next block
|
|
2499
2596
|
*/
|
|
2500
2597
|
Bumped: PlainDescriptor<undefined>;
|
|
2501
2598
|
/**
|
|
2502
|
-
*Error occurred when calculating price
|
|
2599
|
+
* Error occurred when calculating price
|
|
2503
2600
|
*/
|
|
2504
2601
|
CalculatingPriceError: PlainDescriptor<undefined>;
|
|
2505
2602
|
/**
|
|
2506
|
-
*The total amount to be reserved is smaller than min budget
|
|
2603
|
+
* The total amount to be reserved is smaller than min budget
|
|
2507
2604
|
*/
|
|
2508
2605
|
TotalAmountIsSmallerThanMinBudget: PlainDescriptor<undefined>;
|
|
2509
2606
|
/**
|
|
2510
|
-
*The budget is too low for executing at least two orders
|
|
2607
|
+
* The budget is too low for executing at least two orders
|
|
2511
2608
|
*/
|
|
2512
2609
|
BudgetTooLow: PlainDescriptor<undefined>;
|
|
2513
2610
|
/**
|
|
2514
|
-
*There is no free block found to plan DCA execution
|
|
2611
|
+
* There is no free block found to plan DCA execution
|
|
2515
2612
|
*/
|
|
2516
2613
|
NoFreeBlockFound: PlainDescriptor<undefined>;
|
|
2517
2614
|
/**
|
|
2518
|
-
*The DCA schedule has been manually terminated
|
|
2615
|
+
* The DCA schedule has been manually terminated
|
|
2519
2616
|
*/
|
|
2520
2617
|
ManuallyTerminated: PlainDescriptor<undefined>;
|
|
2521
2618
|
/**
|
|
2522
|
-
*Max number of retries reached for schedule
|
|
2619
|
+
* Max number of retries reached for schedule
|
|
2523
2620
|
*/
|
|
2524
2621
|
MaxRetryReached: PlainDescriptor<undefined>;
|
|
2525
2622
|
/**
|
|
2526
|
-
*Absolutely trade limit reached, leading to retry
|
|
2623
|
+
* Absolutely trade limit reached, leading to retry
|
|
2527
2624
|
*/
|
|
2528
2625
|
TradeLimitReached: PlainDescriptor<undefined>;
|
|
2529
2626
|
/**
|
|
2530
|
-
*Slippage limit calculated from oracle is reached, leading to retry
|
|
2627
|
+
* Slippage limit calculated from oracle is reached, leading to retry
|
|
2531
2628
|
*/
|
|
2532
2629
|
SlippageLimitReached: PlainDescriptor<undefined>;
|
|
2533
2630
|
/**
|
|
2534
|
-
*No parent hash has been found from relay chain
|
|
2631
|
+
* No parent hash has been found from relay chain
|
|
2535
2632
|
*/
|
|
2536
2633
|
NoParentHashFound: PlainDescriptor<undefined>;
|
|
2537
2634
|
/**
|
|
2538
|
-
*Error that should not really happen only in case of invalid state of the schedule storage entries
|
|
2635
|
+
* Error that should not really happen only in case of invalid state of the schedule storage entries
|
|
2539
2636
|
*/
|
|
2540
2637
|
InvalidState: PlainDescriptor<undefined>;
|
|
2541
2638
|
/**
|
|
2542
|
-
*Period should be longer than 5 blocks
|
|
2639
|
+
* Period should be longer than 5 blocks
|
|
2543
2640
|
*/
|
|
2544
2641
|
PeriodTooShort: PlainDescriptor<undefined>;
|
|
2545
2642
|
/**
|
|
2546
|
-
*Stability threshold cannot be higher than `MaxConfigurablePriceDifferenceBetweenBlock`
|
|
2643
|
+
* Stability threshold cannot be higher than `MaxConfigurablePriceDifferenceBetweenBlock`
|
|
2547
2644
|
*/
|
|
2548
2645
|
StabilityThresholdTooHigh: PlainDescriptor<undefined>;
|
|
2549
2646
|
};
|
|
2550
2647
|
Scheduler: {
|
|
2551
2648
|
/**
|
|
2552
|
-
*Failed to schedule a call
|
|
2649
|
+
* Failed to schedule a call
|
|
2553
2650
|
*/
|
|
2554
2651
|
FailedToSchedule: PlainDescriptor<undefined>;
|
|
2555
2652
|
/**
|
|
2556
|
-
*Cannot find the scheduled call.
|
|
2653
|
+
* Cannot find the scheduled call.
|
|
2557
2654
|
*/
|
|
2558
2655
|
NotFound: PlainDescriptor<undefined>;
|
|
2559
2656
|
/**
|
|
2560
|
-
*Given target block number is in the past.
|
|
2657
|
+
* Given target block number is in the past.
|
|
2561
2658
|
*/
|
|
2562
2659
|
TargetBlockNumberInPast: PlainDescriptor<undefined>;
|
|
2563
2660
|
/**
|
|
2564
|
-
*Reschedule failed because it does not change scheduled time.
|
|
2661
|
+
* Reschedule failed because it does not change scheduled time.
|
|
2565
2662
|
*/
|
|
2566
2663
|
RescheduleNoChange: PlainDescriptor<undefined>;
|
|
2567
2664
|
/**
|
|
2568
|
-
*Attempt to use a non-named function on a named task.
|
|
2665
|
+
* Attempt to use a non-named function on a named task.
|
|
2569
2666
|
*/
|
|
2570
2667
|
Named: PlainDescriptor<undefined>;
|
|
2571
2668
|
};
|
|
2572
2669
|
ParachainSystem: {
|
|
2573
2670
|
/**
|
|
2574
|
-
*Attempt to upgrade validation function while existing upgrade pending.
|
|
2671
|
+
* Attempt to upgrade validation function while existing upgrade pending.
|
|
2575
2672
|
*/
|
|
2576
2673
|
OverlappingUpgrades: PlainDescriptor<undefined>;
|
|
2577
2674
|
/**
|
|
2578
|
-
*Polkadot currently prohibits this parachain from upgrading its validation function.
|
|
2675
|
+
* Polkadot currently prohibits this parachain from upgrading its validation function.
|
|
2579
2676
|
*/
|
|
2580
2677
|
ProhibitedByPolkadot: PlainDescriptor<undefined>;
|
|
2581
2678
|
/**
|
|
2582
|
-
*The supplied validation function has compiled into a blob larger than Polkadot is
|
|
2583
|
-
*willing to run.
|
|
2679
|
+
* The supplied validation function has compiled into a blob larger than Polkadot is
|
|
2680
|
+
* willing to run.
|
|
2584
2681
|
*/
|
|
2585
2682
|
TooBig: PlainDescriptor<undefined>;
|
|
2586
2683
|
/**
|
|
2587
|
-
*The inherent which supplies the validation data did not run this block.
|
|
2684
|
+
* The inherent which supplies the validation data did not run this block.
|
|
2588
2685
|
*/
|
|
2589
2686
|
ValidationDataNotAvailable: PlainDescriptor<undefined>;
|
|
2590
2687
|
/**
|
|
2591
|
-
*The inherent which supplies the host configuration did not run this block.
|
|
2688
|
+
* The inherent which supplies the host configuration did not run this block.
|
|
2592
2689
|
*/
|
|
2593
2690
|
HostConfigurationNotAvailable: PlainDescriptor<undefined>;
|
|
2594
2691
|
/**
|
|
2595
|
-
*No validation function upgrade is currently scheduled.
|
|
2692
|
+
* No validation function upgrade is currently scheduled.
|
|
2596
2693
|
*/
|
|
2597
2694
|
NotScheduled: PlainDescriptor<undefined>;
|
|
2598
2695
|
/**
|
|
2599
|
-
*No code upgrade has been authorized.
|
|
2696
|
+
* No code upgrade has been authorized.
|
|
2600
2697
|
*/
|
|
2601
2698
|
NothingAuthorized: PlainDescriptor<undefined>;
|
|
2602
2699
|
/**
|
|
2603
|
-
*The given code upgrade has not been authorized.
|
|
2700
|
+
* The given code upgrade has not been authorized.
|
|
2604
2701
|
*/
|
|
2605
2702
|
Unauthorized: PlainDescriptor<undefined>;
|
|
2606
2703
|
};
|
|
2607
2704
|
PolkadotXcm: {
|
|
2608
2705
|
/**
|
|
2609
|
-
*The desired destination was unreachable, generally because there is a no way of routing
|
|
2610
|
-
*to it.
|
|
2706
|
+
* The desired destination was unreachable, generally because there is a no way of routing
|
|
2707
|
+
* to it.
|
|
2611
2708
|
*/
|
|
2612
2709
|
Unreachable: PlainDescriptor<undefined>;
|
|
2613
2710
|
/**
|
|
2614
|
-
*There was some other issue (i.e. not to do with routing) in sending the message.
|
|
2615
|
-
*Perhaps a lack of space for buffering the message.
|
|
2711
|
+
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
2712
|
+
* Perhaps a lack of space for buffering the message.
|
|
2616
2713
|
*/
|
|
2617
2714
|
SendFailure: PlainDescriptor<undefined>;
|
|
2618
2715
|
/**
|
|
2619
|
-
*The message execution fails the filter.
|
|
2716
|
+
* The message execution fails the filter.
|
|
2620
2717
|
*/
|
|
2621
2718
|
Filtered: PlainDescriptor<undefined>;
|
|
2622
2719
|
/**
|
|
2623
|
-
*The message's weight could not be determined.
|
|
2720
|
+
* The message's weight could not be determined.
|
|
2624
2721
|
*/
|
|
2625
2722
|
UnweighableMessage: PlainDescriptor<undefined>;
|
|
2626
2723
|
/**
|
|
2627
|
-
*The destination `Location` provided cannot be inverted.
|
|
2724
|
+
* The destination `Location` provided cannot be inverted.
|
|
2628
2725
|
*/
|
|
2629
2726
|
DestinationNotInvertible: PlainDescriptor<undefined>;
|
|
2630
2727
|
/**
|
|
2631
|
-
*The assets to be sent are empty.
|
|
2728
|
+
* The assets to be sent are empty.
|
|
2632
2729
|
*/
|
|
2633
2730
|
Empty: PlainDescriptor<undefined>;
|
|
2634
2731
|
/**
|
|
2635
|
-
*Could not re-anchor the assets to declare the fees for the destination chain.
|
|
2732
|
+
* Could not re-anchor the assets to declare the fees for the destination chain.
|
|
2636
2733
|
*/
|
|
2637
2734
|
CannotReanchor: PlainDescriptor<undefined>;
|
|
2638
2735
|
/**
|
|
2639
|
-
*Too many assets have been attempted for transfer.
|
|
2736
|
+
* Too many assets have been attempted for transfer.
|
|
2640
2737
|
*/
|
|
2641
2738
|
TooManyAssets: PlainDescriptor<undefined>;
|
|
2642
2739
|
/**
|
|
2643
|
-
*Origin is invalid for sending.
|
|
2740
|
+
* Origin is invalid for sending.
|
|
2644
2741
|
*/
|
|
2645
2742
|
InvalidOrigin: PlainDescriptor<undefined>;
|
|
2646
2743
|
/**
|
|
2647
|
-
*The version of the `Versioned` value used is not able to be interpreted.
|
|
2744
|
+
* The version of the `Versioned` value used is not able to be interpreted.
|
|
2648
2745
|
*/
|
|
2649
2746
|
BadVersion: PlainDescriptor<undefined>;
|
|
2650
2747
|
/**
|
|
2651
|
-
*The given location could not be used (e.g. because it cannot be expressed in the
|
|
2652
|
-
*desired version of XCM).
|
|
2748
|
+
* The given location could not be used (e.g. because it cannot be expressed in the
|
|
2749
|
+
* desired version of XCM).
|
|
2653
2750
|
*/
|
|
2654
2751
|
BadLocation: PlainDescriptor<undefined>;
|
|
2655
2752
|
/**
|
|
2656
|
-
*The referenced subscription could not be found.
|
|
2753
|
+
* The referenced subscription could not be found.
|
|
2657
2754
|
*/
|
|
2658
2755
|
NoSubscription: PlainDescriptor<undefined>;
|
|
2659
2756
|
/**
|
|
2660
|
-
*The location is invalid since it already has a subscription from us.
|
|
2757
|
+
* The location is invalid since it already has a subscription from us.
|
|
2661
2758
|
*/
|
|
2662
2759
|
AlreadySubscribed: PlainDescriptor<undefined>;
|
|
2663
2760
|
/**
|
|
2664
|
-
*Could not check-out the assets for teleportation to the destination chain.
|
|
2761
|
+
* Could not check-out the assets for teleportation to the destination chain.
|
|
2665
2762
|
*/
|
|
2666
2763
|
CannotCheckOutTeleport: PlainDescriptor<undefined>;
|
|
2667
2764
|
/**
|
|
2668
|
-
*The owner does not own (all) of the asset that they wish to do the operation on.
|
|
2765
|
+
* The owner does not own (all) of the asset that they wish to do the operation on.
|
|
2669
2766
|
*/
|
|
2670
2767
|
LowBalance: PlainDescriptor<undefined>;
|
|
2671
2768
|
/**
|
|
2672
|
-
*The asset owner has too many locks on the asset.
|
|
2769
|
+
* The asset owner has too many locks on the asset.
|
|
2673
2770
|
*/
|
|
2674
2771
|
TooManyLocks: PlainDescriptor<undefined>;
|
|
2675
2772
|
/**
|
|
2676
|
-
*The given account is not an identifiable sovereign account for any location.
|
|
2773
|
+
* The given account is not an identifiable sovereign account for any location.
|
|
2677
2774
|
*/
|
|
2678
2775
|
AccountNotSovereign: PlainDescriptor<undefined>;
|
|
2679
2776
|
/**
|
|
2680
|
-
*The operation required fees to be paid which the initiator could not meet.
|
|
2777
|
+
* The operation required fees to be paid which the initiator could not meet.
|
|
2681
2778
|
*/
|
|
2682
2779
|
FeesNotMet: PlainDescriptor<undefined>;
|
|
2683
2780
|
/**
|
|
2684
|
-
*A remote lock with the corresponding data could not be found.
|
|
2781
|
+
* A remote lock with the corresponding data could not be found.
|
|
2685
2782
|
*/
|
|
2686
2783
|
LockNotFound: PlainDescriptor<undefined>;
|
|
2687
2784
|
/**
|
|
2688
|
-
*The unlock operation cannot succeed because there are still consumers of the lock.
|
|
2785
|
+
* The unlock operation cannot succeed because there are still consumers of the lock.
|
|
2689
2786
|
*/
|
|
2690
2787
|
InUse: PlainDescriptor<undefined>;
|
|
2691
2788
|
/**
|
|
2692
|
-
*Invalid asset, reserve chain could not be determined for it.
|
|
2789
|
+
* Invalid asset, reserve chain could not be determined for it.
|
|
2693
2790
|
*/
|
|
2694
2791
|
InvalidAssetUnknownReserve: PlainDescriptor<undefined>;
|
|
2695
2792
|
/**
|
|
2696
|
-
*Invalid asset, do not support remote asset reserves with different fees reserves.
|
|
2793
|
+
* Invalid asset, do not support remote asset reserves with different fees reserves.
|
|
2697
2794
|
*/
|
|
2698
2795
|
InvalidAssetUnsupportedReserve: PlainDescriptor<undefined>;
|
|
2699
2796
|
/**
|
|
2700
|
-
*Too many assets with different reserve locations have been attempted for transfer.
|
|
2797
|
+
* Too many assets with different reserve locations have been attempted for transfer.
|
|
2701
2798
|
*/
|
|
2702
2799
|
TooManyReserves: PlainDescriptor<undefined>;
|
|
2703
2800
|
/**
|
|
2704
|
-
*Local XCM execution incomplete.
|
|
2801
|
+
* Local XCM execution incomplete.
|
|
2705
2802
|
*/
|
|
2706
2803
|
LocalExecutionIncomplete: PlainDescriptor<undefined>;
|
|
2707
2804
|
};
|
|
2708
2805
|
XcmpQueue: {
|
|
2709
2806
|
/**
|
|
2710
|
-
*Setting the queue config failed since one of its values was invalid.
|
|
2807
|
+
* Setting the queue config failed since one of its values was invalid.
|
|
2711
2808
|
*/
|
|
2712
2809
|
BadQueueConfig: PlainDescriptor<undefined>;
|
|
2713
2810
|
/**
|
|
2714
|
-
*The execution is already suspended.
|
|
2811
|
+
* The execution is already suspended.
|
|
2715
2812
|
*/
|
|
2716
2813
|
AlreadySuspended: PlainDescriptor<undefined>;
|
|
2717
2814
|
/**
|
|
2718
|
-
*The execution is already resumed.
|
|
2815
|
+
* The execution is already resumed.
|
|
2719
2816
|
*/
|
|
2720
2817
|
AlreadyResumed: PlainDescriptor<undefined>;
|
|
2721
2818
|
/**
|
|
2722
|
-
*There are too many active outbound channels.
|
|
2819
|
+
* There are too many active outbound channels.
|
|
2723
2820
|
*/
|
|
2724
2821
|
TooManyActiveOutboundChannels: PlainDescriptor<undefined>;
|
|
2725
2822
|
/**
|
|
2726
|
-
*The message is too big.
|
|
2823
|
+
* The message is too big.
|
|
2727
2824
|
*/
|
|
2728
2825
|
TooBig: PlainDescriptor<undefined>;
|
|
2729
2826
|
};
|
|
2730
2827
|
MessageQueue: {
|
|
2731
2828
|
/**
|
|
2732
|
-
*Page is not reapable because it has items remaining to be processed and is not old
|
|
2733
|
-
*enough.
|
|
2829
|
+
* Page is not reapable because it has items remaining to be processed and is not old
|
|
2830
|
+
* enough.
|
|
2734
2831
|
*/
|
|
2735
2832
|
NotReapable: PlainDescriptor<undefined>;
|
|
2736
2833
|
/**
|
|
2737
|
-
*Page to be reaped does not exist.
|
|
2834
|
+
* Page to be reaped does not exist.
|
|
2738
2835
|
*/
|
|
2739
2836
|
NoPage: PlainDescriptor<undefined>;
|
|
2740
2837
|
/**
|
|
2741
|
-
*The referenced message could not be found.
|
|
2838
|
+
* The referenced message could not be found.
|
|
2742
2839
|
*/
|
|
2743
2840
|
NoMessage: PlainDescriptor<undefined>;
|
|
2744
2841
|
/**
|
|
2745
|
-
*The message was already processed and cannot be processed again.
|
|
2842
|
+
* The message was already processed and cannot be processed again.
|
|
2746
2843
|
*/
|
|
2747
2844
|
AlreadyProcessed: PlainDescriptor<undefined>;
|
|
2748
2845
|
/**
|
|
2749
|
-
*The message is queued for future execution.
|
|
2846
|
+
* The message is queued for future execution.
|
|
2750
2847
|
*/
|
|
2751
2848
|
Queued: PlainDescriptor<undefined>;
|
|
2752
2849
|
/**
|
|
2753
|
-
*There is temporarily not enough weight to continue servicing messages.
|
|
2850
|
+
* There is temporarily not enough weight to continue servicing messages.
|
|
2754
2851
|
*/
|
|
2755
2852
|
InsufficientWeight: PlainDescriptor<undefined>;
|
|
2756
2853
|
/**
|
|
2757
|
-
*This message is temporarily unprocessable.
|
|
2854
|
+
* This message is temporarily unprocessable.
|
|
2758
2855
|
*
|
|
2759
|
-
*Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
|
2760
|
-
*retrying.
|
|
2856
|
+
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
|
2857
|
+
* retrying.
|
|
2761
2858
|
*/
|
|
2762
2859
|
TemporarilyUnprocessable: PlainDescriptor<undefined>;
|
|
2763
2860
|
/**
|
|
2764
|
-
*The queue is paused and no message can be executed from it.
|
|
2861
|
+
* The queue is paused and no message can be executed from it.
|
|
2765
2862
|
*
|
|
2766
|
-
*This can change at any time and may resolve in the future by re-trying.
|
|
2863
|
+
* This can change at any time and may resolve in the future by re-trying.
|
|
2767
2864
|
*/
|
|
2768
2865
|
QueuePaused: PlainDescriptor<undefined>;
|
|
2769
2866
|
/**
|
|
2770
|
-
*Another call is in progress and needs to finish before this call can happen.
|
|
2867
|
+
* Another call is in progress and needs to finish before this call can happen.
|
|
2771
2868
|
*/
|
|
2772
2869
|
RecursiveDisallowed: PlainDescriptor<undefined>;
|
|
2773
2870
|
};
|
|
2774
2871
|
OrmlXcm: {
|
|
2775
2872
|
/**
|
|
2776
|
-
*The message and destination combination was not recognized as being
|
|
2777
|
-
*reachable.
|
|
2873
|
+
* The message and destination combination was not recognized as being
|
|
2874
|
+
* reachable.
|
|
2778
2875
|
*/
|
|
2779
2876
|
Unreachable: PlainDescriptor<undefined>;
|
|
2780
2877
|
/**
|
|
2781
|
-
*The message and destination was recognized as being reachable but
|
|
2782
|
-
*the operation could not be completed.
|
|
2878
|
+
* The message and destination was recognized as being reachable but
|
|
2879
|
+
* the operation could not be completed.
|
|
2783
2880
|
*/
|
|
2784
2881
|
SendFailure: PlainDescriptor<undefined>;
|
|
2785
2882
|
/**
|
|
2786
|
-
*The version of the `Versioned` value used is not able to be
|
|
2787
|
-
*interpreted.
|
|
2883
|
+
* The version of the `Versioned` value used is not able to be
|
|
2884
|
+
* interpreted.
|
|
2788
2885
|
*/
|
|
2789
2886
|
BadVersion: PlainDescriptor<undefined>;
|
|
2790
2887
|
};
|
|
2791
2888
|
XTokens: {
|
|
2792
2889
|
/**
|
|
2793
|
-
*Asset has no reserve location.
|
|
2890
|
+
* Asset has no reserve location.
|
|
2794
2891
|
*/
|
|
2795
2892
|
AssetHasNoReserve: PlainDescriptor<undefined>;
|
|
2796
2893
|
/**
|
|
2797
|
-
*Not cross-chain transfer.
|
|
2894
|
+
* Not cross-chain transfer.
|
|
2798
2895
|
*/
|
|
2799
2896
|
NotCrossChainTransfer: PlainDescriptor<undefined>;
|
|
2800
2897
|
/**
|
|
2801
|
-
*Invalid transfer destination.
|
|
2898
|
+
* Invalid transfer destination.
|
|
2802
2899
|
*/
|
|
2803
2900
|
InvalidDest: PlainDescriptor<undefined>;
|
|
2804
2901
|
/**
|
|
2805
|
-
*Currency is not cross-chain transferable.
|
|
2902
|
+
* Currency is not cross-chain transferable.
|
|
2806
2903
|
*/
|
|
2807
2904
|
NotCrossChainTransferableCurrency: PlainDescriptor<undefined>;
|
|
2808
2905
|
/**
|
|
2809
|
-
*The message's weight could not be determined.
|
|
2906
|
+
* The message's weight could not be determined.
|
|
2810
2907
|
*/
|
|
2811
2908
|
UnweighableMessage: PlainDescriptor<undefined>;
|
|
2812
2909
|
/**
|
|
2813
|
-
*XCM execution failed.
|
|
2910
|
+
* XCM execution failed.
|
|
2814
2911
|
*/
|
|
2815
2912
|
XcmExecutionFailed: PlainDescriptor<undefined>;
|
|
2816
2913
|
/**
|
|
2817
|
-
*Could not re-anchor the assets to declare the fees for the
|
|
2818
|
-
*destination chain.
|
|
2914
|
+
* Could not re-anchor the assets to declare the fees for the
|
|
2915
|
+
* destination chain.
|
|
2819
2916
|
*/
|
|
2820
2917
|
CannotReanchor: PlainDescriptor<undefined>;
|
|
2821
2918
|
/**
|
|
2822
|
-
*Could not get ancestry of asset reserve location.
|
|
2919
|
+
* Could not get ancestry of asset reserve location.
|
|
2823
2920
|
*/
|
|
2824
2921
|
InvalidAncestry: PlainDescriptor<undefined>;
|
|
2825
2922
|
/**
|
|
2826
|
-
*The Asset is invalid.
|
|
2923
|
+
* The Asset is invalid.
|
|
2827
2924
|
*/
|
|
2828
2925
|
InvalidAsset: PlainDescriptor<undefined>;
|
|
2829
2926
|
/**
|
|
2830
|
-
*The destination `Location` provided cannot be inverted.
|
|
2927
|
+
* The destination `Location` provided cannot be inverted.
|
|
2831
2928
|
*/
|
|
2832
2929
|
DestinationNotInvertible: PlainDescriptor<undefined>;
|
|
2833
2930
|
/**
|
|
2834
|
-
*The version of the `Versioned` value used is not able to be
|
|
2835
|
-
*interpreted.
|
|
2931
|
+
* The version of the `Versioned` value used is not able to be
|
|
2932
|
+
* interpreted.
|
|
2836
2933
|
*/
|
|
2837
2934
|
BadVersion: PlainDescriptor<undefined>;
|
|
2838
2935
|
/**
|
|
2839
|
-
*We tried sending distinct asset and fee but they have different
|
|
2840
|
-
*reserve chains.
|
|
2936
|
+
* We tried sending distinct asset and fee but they have different
|
|
2937
|
+
* reserve chains.
|
|
2841
2938
|
*/
|
|
2842
2939
|
DistinctReserveForAssetAndFee: PlainDescriptor<undefined>;
|
|
2843
2940
|
/**
|
|
2844
|
-
*The fee is zero.
|
|
2941
|
+
* The fee is zero.
|
|
2845
2942
|
*/
|
|
2846
2943
|
ZeroFee: PlainDescriptor<undefined>;
|
|
2847
2944
|
/**
|
|
2848
|
-
*The transfering asset amount is zero.
|
|
2945
|
+
* The transfering asset amount is zero.
|
|
2849
2946
|
*/
|
|
2850
2947
|
ZeroAmount: PlainDescriptor<undefined>;
|
|
2851
2948
|
/**
|
|
2852
|
-
*The number of assets to be sent is over the maximum.
|
|
2949
|
+
* The number of assets to be sent is over the maximum.
|
|
2853
2950
|
*/
|
|
2854
2951
|
TooManyAssetsBeingSent: PlainDescriptor<undefined>;
|
|
2855
2952
|
/**
|
|
2856
|
-
*The specified index does not exist in a Assets struct.
|
|
2953
|
+
* The specified index does not exist in a Assets struct.
|
|
2857
2954
|
*/
|
|
2858
2955
|
AssetIndexNonExistent: PlainDescriptor<undefined>;
|
|
2859
2956
|
/**
|
|
2860
|
-
*Fee is not enough.
|
|
2957
|
+
* Fee is not enough.
|
|
2861
2958
|
*/
|
|
2862
2959
|
FeeNotEnough: PlainDescriptor<undefined>;
|
|
2863
2960
|
/**
|
|
2864
|
-
*Not supported Location
|
|
2961
|
+
* Not supported Location
|
|
2865
2962
|
*/
|
|
2866
2963
|
NotSupportedLocation: PlainDescriptor<undefined>;
|
|
2867
2964
|
/**
|
|
2868
|
-
*MinXcmFee not registered for certain reserve location
|
|
2965
|
+
* MinXcmFee not registered for certain reserve location
|
|
2869
2966
|
*/
|
|
2870
2967
|
MinXcmFeeNotDefined: PlainDescriptor<undefined>;
|
|
2871
2968
|
/**
|
|
2872
|
-
*Asset transfer is limited by RateLimiter.
|
|
2969
|
+
* Asset transfer is limited by RateLimiter.
|
|
2873
2970
|
*/
|
|
2874
2971
|
RateLimited: PlainDescriptor<undefined>;
|
|
2875
2972
|
};
|
|
2876
2973
|
UnknownTokens: {
|
|
2877
2974
|
/**
|
|
2878
|
-
*The balance is too low.
|
|
2975
|
+
* The balance is too low.
|
|
2879
2976
|
*/
|
|
2880
2977
|
BalanceTooLow: PlainDescriptor<undefined>;
|
|
2881
2978
|
/**
|
|
2882
|
-
*The operation will cause balance to overflow.
|
|
2979
|
+
* The operation will cause balance to overflow.
|
|
2883
2980
|
*/
|
|
2884
2981
|
BalanceOverflow: PlainDescriptor<undefined>;
|
|
2885
2982
|
/**
|
|
2886
|
-
*Unhandled asset.
|
|
2983
|
+
* Unhandled asset.
|
|
2887
2984
|
*/
|
|
2888
2985
|
UnhandledAsset: PlainDescriptor<undefined>;
|
|
2889
2986
|
};
|
|
2890
2987
|
CollatorSelection: {
|
|
2891
2988
|
/**
|
|
2892
|
-
*The pallet has too many candidates.
|
|
2989
|
+
* The pallet has too many candidates.
|
|
2893
2990
|
*/
|
|
2894
2991
|
TooManyCandidates: PlainDescriptor<undefined>;
|
|
2895
2992
|
/**
|
|
2896
|
-
*Leaving would result in too few candidates.
|
|
2993
|
+
* Leaving would result in too few candidates.
|
|
2897
2994
|
*/
|
|
2898
2995
|
TooFewEligibleCollators: PlainDescriptor<undefined>;
|
|
2899
2996
|
/**
|
|
2900
|
-
*Account is already a candidate.
|
|
2997
|
+
* Account is already a candidate.
|
|
2901
2998
|
*/
|
|
2902
2999
|
AlreadyCandidate: PlainDescriptor<undefined>;
|
|
2903
3000
|
/**
|
|
2904
|
-
*Account is not a candidate.
|
|
3001
|
+
* Account is not a candidate.
|
|
2905
3002
|
*/
|
|
2906
3003
|
NotCandidate: PlainDescriptor<undefined>;
|
|
2907
3004
|
/**
|
|
2908
|
-
*There are too many Invulnerables.
|
|
3005
|
+
* There are too many Invulnerables.
|
|
2909
3006
|
*/
|
|
2910
3007
|
TooManyInvulnerables: PlainDescriptor<undefined>;
|
|
2911
3008
|
/**
|
|
2912
|
-
*Account is already an Invulnerable.
|
|
3009
|
+
* Account is already an Invulnerable.
|
|
2913
3010
|
*/
|
|
2914
3011
|
AlreadyInvulnerable: PlainDescriptor<undefined>;
|
|
2915
3012
|
/**
|
|
2916
|
-
*Account is not an Invulnerable.
|
|
3013
|
+
* Account is not an Invulnerable.
|
|
2917
3014
|
*/
|
|
2918
3015
|
NotInvulnerable: PlainDescriptor<undefined>;
|
|
2919
3016
|
/**
|
|
2920
|
-
*Account has no associated validator ID.
|
|
3017
|
+
* Account has no associated validator ID.
|
|
2921
3018
|
*/
|
|
2922
3019
|
NoAssociatedValidatorId: PlainDescriptor<undefined>;
|
|
2923
3020
|
/**
|
|
2924
|
-
*Validator ID is not yet registered.
|
|
3021
|
+
* Validator ID is not yet registered.
|
|
2925
3022
|
*/
|
|
2926
3023
|
ValidatorNotRegistered: PlainDescriptor<undefined>;
|
|
2927
3024
|
/**
|
|
2928
|
-
*Could not insert in the candidate list.
|
|
3025
|
+
* Could not insert in the candidate list.
|
|
2929
3026
|
*/
|
|
2930
3027
|
InsertToCandidateListFailed: PlainDescriptor<undefined>;
|
|
2931
3028
|
/**
|
|
2932
|
-
*Could not remove from the candidate list.
|
|
3029
|
+
* Could not remove from the candidate list.
|
|
2933
3030
|
*/
|
|
2934
3031
|
RemoveFromCandidateListFailed: PlainDescriptor<undefined>;
|
|
2935
3032
|
/**
|
|
2936
|
-
*New deposit amount would be below the minimum candidacy bond.
|
|
3033
|
+
* New deposit amount would be below the minimum candidacy bond.
|
|
2937
3034
|
*/
|
|
2938
3035
|
DepositTooLow: PlainDescriptor<undefined>;
|
|
2939
3036
|
/**
|
|
2940
|
-
*Could not update the candidate list.
|
|
3037
|
+
* Could not update the candidate list.
|
|
2941
3038
|
*/
|
|
2942
3039
|
UpdateCandidateListFailed: PlainDescriptor<undefined>;
|
|
2943
3040
|
/**
|
|
2944
|
-
*Deposit amount is too low to take the target's slot in the candidate list.
|
|
3041
|
+
* Deposit amount is too low to take the target's slot in the candidate list.
|
|
2945
3042
|
*/
|
|
2946
3043
|
InsufficientBond: PlainDescriptor<undefined>;
|
|
2947
3044
|
/**
|
|
2948
|
-
*The target account to be replaced in the candidate list is not a candidate.
|
|
3045
|
+
* The target account to be replaced in the candidate list is not a candidate.
|
|
2949
3046
|
*/
|
|
2950
3047
|
TargetIsNotCandidate: PlainDescriptor<undefined>;
|
|
2951
3048
|
/**
|
|
2952
|
-
*The updated deposit amount is equal to the amount already reserved.
|
|
3049
|
+
* The updated deposit amount is equal to the amount already reserved.
|
|
2953
3050
|
*/
|
|
2954
3051
|
IdenticalDeposit: PlainDescriptor<undefined>;
|
|
2955
3052
|
/**
|
|
2956
|
-
*Cannot lower candidacy bond while occupying a future collator slot in the list.
|
|
3053
|
+
* Cannot lower candidacy bond while occupying a future collator slot in the list.
|
|
2957
3054
|
*/
|
|
2958
3055
|
InvalidUnreserve: PlainDescriptor<undefined>;
|
|
2959
3056
|
};
|
|
2960
3057
|
Session: {
|
|
2961
3058
|
/**
|
|
2962
|
-
*Invalid ownership proof.
|
|
3059
|
+
* Invalid ownership proof.
|
|
2963
3060
|
*/
|
|
2964
3061
|
InvalidProof: PlainDescriptor<undefined>;
|
|
2965
3062
|
/**
|
|
2966
|
-
*No associated validator ID for account.
|
|
3063
|
+
* No associated validator ID for account.
|
|
2967
3064
|
*/
|
|
2968
3065
|
NoAssociatedValidatorId: PlainDescriptor<undefined>;
|
|
2969
3066
|
/**
|
|
2970
|
-
*Registered duplicate key.
|
|
3067
|
+
* Registered duplicate key.
|
|
2971
3068
|
*/
|
|
2972
3069
|
DuplicatedKey: PlainDescriptor<undefined>;
|
|
2973
3070
|
/**
|
|
2974
|
-
*No keys are associated with this account.
|
|
3071
|
+
* No keys are associated with this account.
|
|
2975
3072
|
*/
|
|
2976
3073
|
NoKeys: PlainDescriptor<undefined>;
|
|
2977
3074
|
/**
|
|
2978
|
-
*Key setting account is not live, so it's impossible to associate keys.
|
|
3075
|
+
* Key setting account is not live, so it's impossible to associate keys.
|
|
2979
3076
|
*/
|
|
2980
3077
|
NoAccount: PlainDescriptor<undefined>;
|
|
2981
3078
|
};
|
|
@@ -2993,21 +3090,21 @@ type IError = {
|
|
|
2993
3090
|
*/
|
|
2994
3091
|
OracleNotFound: PlainDescriptor<undefined>;
|
|
2995
3092
|
/**
|
|
2996
|
-
*Asset not found
|
|
3093
|
+
* Asset not found
|
|
2997
3094
|
*/
|
|
2998
3095
|
AssetNotFound: PlainDescriptor<undefined>;
|
|
2999
3096
|
/**
|
|
3000
|
-
*The new price is outside the max allowed range
|
|
3097
|
+
* The new price is outside the max allowed range
|
|
3001
3098
|
*/
|
|
3002
3099
|
PriceOutsideAllowedRange: PlainDescriptor<undefined>;
|
|
3003
3100
|
};
|
|
3004
3101
|
Broadcast: {
|
|
3005
3102
|
/**
|
|
3006
|
-
*The execution context call stack has reached its maximum size
|
|
3103
|
+
* The execution context call stack has reached its maximum size
|
|
3007
3104
|
*/
|
|
3008
3105
|
ExecutionCallStackOverflow: PlainDescriptor<undefined>;
|
|
3009
3106
|
/**
|
|
3010
|
-
*The execution context call stack is empty, unable to decrease level
|
|
3107
|
+
* The execution context call stack is empty, unable to decrease level
|
|
3011
3108
|
*/
|
|
3012
3109
|
ExecutionCallStackUnderflow: PlainDescriptor<undefined>;
|
|
3013
3110
|
};
|
|
@@ -3157,7 +3254,67 @@ type IConstants = {
|
|
|
3157
3254
|
*/
|
|
3158
3255
|
OracleSource: PlainDescriptor<FixedSizeBinary<8>>;
|
|
3159
3256
|
};
|
|
3257
|
+
DCA: {
|
|
3258
|
+
/**
|
|
3259
|
+
* Max price difference allowed between blocks
|
|
3260
|
+
*/
|
|
3261
|
+
MaxPriceDifferenceBetweenBlocks: PlainDescriptor<number>;
|
|
3262
|
+
/**
|
|
3263
|
+
* Max configurable price difference allowed between blocks
|
|
3264
|
+
*/
|
|
3265
|
+
MaxConfigurablePriceDifferenceBetweenBlocks: PlainDescriptor<number>;
|
|
3266
|
+
/**
|
|
3267
|
+
* The number of max schedules to be executed per block
|
|
3268
|
+
*/
|
|
3269
|
+
MaxSchedulePerBlock: PlainDescriptor<number>;
|
|
3270
|
+
/**
|
|
3271
|
+
* The number of max retries in case of trade limit error
|
|
3272
|
+
*/
|
|
3273
|
+
MaxNumberOfRetriesOnError: PlainDescriptor<number>;
|
|
3274
|
+
/**
|
|
3275
|
+
* Minimal period between executions
|
|
3276
|
+
*/
|
|
3277
|
+
MinimalPeriod: PlainDescriptor<number>;
|
|
3278
|
+
/**
|
|
3279
|
+
* Chance of the random rescheduling
|
|
3280
|
+
*/
|
|
3281
|
+
BumpChance: PlainDescriptor<number>;
|
|
3282
|
+
/**
|
|
3283
|
+
* Minimum trading limit for a single trade
|
|
3284
|
+
*/
|
|
3285
|
+
MinimumTradingLimit: PlainDescriptor<bigint>;
|
|
3286
|
+
/**
|
|
3287
|
+
* Native Asset Id
|
|
3288
|
+
*/
|
|
3289
|
+
NativeAssetId: PlainDescriptor<number>;
|
|
3290
|
+
/**
|
|
3291
|
+
* Polkadot Native Asset Id (DOT)
|
|
3292
|
+
*/
|
|
3293
|
+
PolkadotNativeAssetId: PlainDescriptor<number>;
|
|
3294
|
+
/**
|
|
3295
|
+
* Minimum budget to be able to schedule a DCA, specified in native currency
|
|
3296
|
+
*/
|
|
3297
|
+
MinBudgetInNativeCurrency: PlainDescriptor<bigint>;
|
|
3298
|
+
/**
|
|
3299
|
+
* The fee receiver for transaction fees
|
|
3300
|
+
*/
|
|
3301
|
+
FeeReceiver: PlainDescriptor<SS58String>;
|
|
3302
|
+
/**
|
|
3303
|
+
* Named reserve identifier to store named reserves for orders of each users
|
|
3304
|
+
*/
|
|
3305
|
+
NamedReserveId: PlainDescriptor<FixedSizeBinary<8>>;
|
|
3306
|
+
};
|
|
3307
|
+
Aura: {
|
|
3308
|
+
/**
|
|
3309
|
+
* The slot duration Aura should run with, expressed in milliseconds.
|
|
3310
|
+
* The effective value of this type should not change while the chain is running.
|
|
3311
|
+
*
|
|
3312
|
+
* For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
|
|
3313
|
+
*/
|
|
3314
|
+
SlotDuration: PlainDescriptor<bigint>;
|
|
3315
|
+
};
|
|
3160
3316
|
};
|
|
3317
|
+
type IViewFns = {};
|
|
3161
3318
|
type IRuntimeCalls = {
|
|
3162
3319
|
/**
|
|
3163
3320
|
|
|
@@ -3191,11 +3348,32 @@ type IRuntimeCalls = {
|
|
|
3191
3348
|
/**
|
|
3192
3349
|
* Dry run call.
|
|
3193
3350
|
*/
|
|
3194
|
-
dry_run_call: RuntimeDescriptor<[origin: Anonymize<I8rbu1vdc38cnp>, call: Anonymize<
|
|
3351
|
+
dry_run_call: RuntimeDescriptor<[origin: Anonymize<I8rbu1vdc38cnp>, call: Anonymize<Ick2k1hvh0bm22>], Anonymize<I4e4rvm2fqc561>>;
|
|
3195
3352
|
/**
|
|
3196
3353
|
* Dry run XCM program
|
|
3197
3354
|
*/
|
|
3198
|
-
dry_run_xcm: RuntimeDescriptor<[origin_location: XcmVersionedLocation, xcm: XcmVersionedXcm], Anonymize<
|
|
3355
|
+
dry_run_xcm: RuntimeDescriptor<[origin_location: XcmVersionedLocation, xcm: XcmVersionedXcm], Anonymize<Id2luorng6dtg7>>;
|
|
3356
|
+
};
|
|
3357
|
+
/**
|
|
3358
|
+
|
|
3359
|
+
*/
|
|
3360
|
+
AaveTradeExecutor: {
|
|
3361
|
+
/**
|
|
3362
|
+
|
|
3363
|
+
*/
|
|
3364
|
+
pairs: RuntimeDescriptor<[], Anonymize<I95g6i7ilua7lq>>;
|
|
3365
|
+
/**
|
|
3366
|
+
|
|
3367
|
+
*/
|
|
3368
|
+
liquidity_depth: RuntimeDescriptor<[asset_in: number, asset_out: number], Anonymize<I35p85j063s0il>>;
|
|
3369
|
+
/**
|
|
3370
|
+
|
|
3371
|
+
*/
|
|
3372
|
+
pool: RuntimeDescriptor<[reserve: number, atoken: number], Anonymize<Id5qsstfl1fkb3>>;
|
|
3373
|
+
/**
|
|
3374
|
+
|
|
3375
|
+
*/
|
|
3376
|
+
pools: RuntimeDescriptor<[], Anonymize<I3ii6nera7pkr8>>;
|
|
3199
3377
|
};
|
|
3200
3378
|
};
|
|
3201
3379
|
type IAsset = PlainDescriptor<void>;
|
|
@@ -3206,6 +3384,7 @@ type PalletsTypedef = {
|
|
|
3206
3384
|
__event: IEvent;
|
|
3207
3385
|
__error: IError;
|
|
3208
3386
|
__const: IConstants;
|
|
3387
|
+
__view: IViewFns;
|
|
3209
3388
|
};
|
|
3210
3389
|
type IDescriptors = {
|
|
3211
3390
|
descriptors: {
|
|
@@ -3219,18 +3398,20 @@ type IDescriptors = {
|
|
|
3219
3398
|
};
|
|
3220
3399
|
declare const _allDescriptors: IDescriptors;
|
|
3221
3400
|
export default _allDescriptors;
|
|
3401
|
+
export type HydrationApis = ApisFromDef<IRuntimeCalls>;
|
|
3222
3402
|
export type HydrationQueries = QueryFromPalletsDef<PalletsTypedef>;
|
|
3223
3403
|
export type HydrationCalls = TxFromPalletsDef<PalletsTypedef>;
|
|
3224
3404
|
export type HydrationEvents = EventsFromPalletsDef<PalletsTypedef>;
|
|
3225
3405
|
export type HydrationErrors = ErrorsFromPalletsDef<PalletsTypedef>;
|
|
3226
3406
|
export type HydrationConstants = ConstFromPalletsDef<PalletsTypedef>;
|
|
3227
|
-
export type
|
|
3407
|
+
export type HydrationViewFns = ViewFnsFromPalletsDef<PalletsTypedef>;
|
|
3408
|
+
export type HydrationCallData = Anonymize<Ick2k1hvh0bm22> & {
|
|
3228
3409
|
value: {
|
|
3229
3410
|
type: string;
|
|
3230
3411
|
};
|
|
3231
3412
|
};
|
|
3232
|
-
export type HydrationWhitelistEntry = PalletKey | ApiKey<IRuntimeCalls> | `query.${NestedKey<PalletsTypedef['__storage']>}` | `tx.${NestedKey<PalletsTypedef['__tx']>}` | `event.${NestedKey<PalletsTypedef['__event']>}` | `error.${NestedKey<PalletsTypedef['__error']>}` | `const.${NestedKey<PalletsTypedef['__const']>}`;
|
|
3233
|
-
type PalletKey = `*.${keyof (IStorage & ICalls & IEvent & IError & IConstants & IRuntimeCalls)}`;
|
|
3413
|
+
export type HydrationWhitelistEntry = PalletKey | ApiKey<IRuntimeCalls> | `query.${NestedKey<PalletsTypedef['__storage']>}` | `tx.${NestedKey<PalletsTypedef['__tx']>}` | `event.${NestedKey<PalletsTypedef['__event']>}` | `error.${NestedKey<PalletsTypedef['__error']>}` | `const.${NestedKey<PalletsTypedef['__const']>}` | `view.${NestedKey<PalletsTypedef['__view']>}`;
|
|
3414
|
+
type PalletKey = `*.${keyof (IStorage & ICalls & IEvent & IError & IConstants & IRuntimeCalls & IViewFns)}`;
|
|
3234
3415
|
type NestedKey<D extends Record<string, Record<string, any>>> = "*" | {
|
|
3235
3416
|
[P in keyof D & string]: `${P}.*` | {
|
|
3236
3417
|
[N in keyof D[P] & string]: `${P}.${N}`;
|