@dedot/chaintypes 0.194.0 → 0.196.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/aleph/consts.d.ts +2 -2
- package/aleph/errors.d.ts +228 -228
- package/aleph/events.d.ts +122 -226
- package/aleph/index.d.ts +15 -17
- package/aleph/json-rpc.d.ts +3 -3
- package/aleph/query.d.ts +171 -207
- package/aleph/runtime.d.ts +47 -63
- package/aleph/tx.d.ts +377 -550
- package/aleph/view-functions.d.ts +2 -2
- package/astar/consts.d.ts +2 -2
- package/astar/errors.d.ts +431 -431
- package/astar/events.d.ts +232 -401
- package/astar/index.d.ts +15 -17
- package/astar/json-rpc.d.ts +3 -3
- package/astar/query.d.ts +243 -289
- package/astar/runtime.d.ts +59 -87
- package/astar/tx.d.ts +671 -980
- package/astar/view-functions.d.ts +2 -2
- package/basilisk/consts.d.ts +2 -2
- package/basilisk/errors.d.ts +489 -489
- package/basilisk/events.d.ts +187 -408
- package/basilisk/index.d.ts +15 -17
- package/basilisk/json-rpc.d.ts +3 -3
- package/basilisk/query.d.ts +213 -272
- package/basilisk/runtime.d.ts +27 -28
- package/basilisk/tx.d.ts +579 -842
- package/basilisk/view-functions.d.ts +2 -2
- package/hydration/consts.d.ts +47 -14
- package/hydration/errors.d.ts +827 -737
- package/hydration/events.d.ts +639 -527
- package/hydration/index.d.ts +16 -18
- package/hydration/json-rpc.d.ts +3 -3
- package/hydration/query.d.ts +530 -396
- package/hydration/runtime.d.ts +181 -89
- package/hydration/tx.d.ts +1130 -1167
- package/hydration/types.d.ts +889 -42
- package/hydration/view-functions.d.ts +2 -2
- package/kusama/consts.d.ts +2 -2
- package/kusama/errors.d.ts +571 -571
- package/kusama/events.d.ts +216 -477
- package/kusama/index.d.ts +15 -17
- package/kusama/json-rpc.d.ts +3 -3
- package/kusama/query.d.ts +360 -502
- package/kusama/runtime.d.ts +82 -131
- package/kusama/tx.d.ts +851 -1246
- package/kusama/view-functions.d.ts +7 -12
- package/kusama-asset-hub/consts.d.ts +2 -2
- package/kusama-asset-hub/errors.d.ts +653 -653
- package/kusama-asset-hub/events.d.ts +286 -629
- package/kusama-asset-hub/index.d.ts +16 -17
- package/kusama-asset-hub/json-rpc.d.ts +3 -3
- package/kusama-asset-hub/query.d.ts +316 -448
- package/kusama-asset-hub/runtime.d.ts +74 -111
- package/kusama-asset-hub/tx.d.ts +1059 -1558
- package/kusama-asset-hub/view-functions.d.ts +7 -9
- package/kusama-people/consts.d.ts +2 -2
- package/kusama-people/errors.d.ts +160 -160
- package/kusama-people/events.d.ts +89 -176
- package/kusama-people/index.d.ts +15 -17
- package/kusama-people/json-rpc.d.ts +3 -3
- package/kusama-people/query.d.ts +114 -145
- package/kusama-people/runtime.d.ts +45 -65
- package/kusama-people/tx.d.ts +246 -356
- package/kusama-people/view-functions.d.ts +3 -5
- package/moonbeam/consts.d.ts +2 -2
- package/moonbeam/errors.d.ts +478 -478
- package/moonbeam/events.d.ts +182 -426
- package/moonbeam/index.d.ts +15 -17
- package/moonbeam/json-rpc.d.ts +11 -3
- package/moonbeam/query.d.ts +234 -294
- package/moonbeam/runtime.d.ts +61 -89
- package/moonbeam/tx.d.ts +618 -901
- package/moonbeam/view-functions.d.ts +2 -2
- package/package.json +6 -3
- package/paseo/consts.d.ts +2 -2
- package/paseo/errors.d.ts +513 -513
- package/paseo/events.d.ts +197 -430
- package/paseo/index.d.ts +16 -18
- package/paseo/json-rpc.d.ts +3 -3
- package/paseo/query.d.ts +329 -450
- package/paseo/runtime.d.ts +107 -131
- package/paseo/tx.d.ts +787 -1151
- package/paseo/types.d.ts +7 -0
- package/paseo/view-functions.d.ts +7 -12
- package/paseo-asset-hub/consts.d.ts +2 -2
- package/paseo-asset-hub/errors.d.ts +605 -605
- package/paseo-asset-hub/events.d.ts +268 -600
- package/paseo-asset-hub/index.d.ts +17 -18
- package/paseo-asset-hub/json-rpc.d.ts +3 -3
- package/paseo-asset-hub/query.d.ts +293 -413
- package/paseo-asset-hub/runtime.d.ts +96 -104
- package/paseo-asset-hub/tx.d.ts +997 -1466
- package/paseo-asset-hub/types.d.ts +7 -0
- package/paseo-asset-hub/view-functions.d.ts +7 -9
- package/paseo-hydration/consts.d.ts +13 -3
- package/paseo-hydration/errors.d.ts +756 -745
- package/paseo-hydration/events.d.ts +277 -554
- package/paseo-hydration/index.d.ts +16 -18
- package/paseo-hydration/json-rpc.d.ts +3 -3
- package/paseo-hydration/query.d.ts +321 -411
- package/paseo-hydration/runtime.d.ts +95 -106
- package/paseo-hydration/tx.d.ts +923 -1226
- package/paseo-hydration/types.d.ts +91 -50
- package/paseo-hydration/view-functions.d.ts +2 -2
- package/paseo-people/consts.d.ts +2 -2
- package/paseo-people/errors.d.ts +162 -162
- package/paseo-people/events.d.ts +91 -181
- package/paseo-people/index.d.ts +16 -18
- package/paseo-people/json-rpc.d.ts +3 -3
- package/paseo-people/query.d.ts +116 -143
- package/paseo-people/runtime.d.ts +70 -65
- package/paseo-people/tx.d.ts +257 -372
- package/paseo-people/types.d.ts +7 -0
- package/paseo-people/view-functions.d.ts +3 -5
- package/polkadot/consts.d.ts +2 -2
- package/polkadot/errors.d.ts +501 -501
- package/polkadot/events.d.ts +195 -426
- package/polkadot/index.d.ts +15 -17
- package/polkadot/json-rpc.d.ts +3 -3
- package/polkadot/query.d.ts +329 -450
- package/polkadot/runtime.d.ts +83 -133
- package/polkadot/tx.d.ts +765 -1119
- package/polkadot/view-functions.d.ts +7 -12
- package/polkadot-asset-hub/consts.d.ts +2 -2
- package/polkadot-asset-hub/errors.d.ts +554 -554
- package/polkadot-asset-hub/events.d.ts +261 -585
- package/polkadot-asset-hub/index.d.ts +16 -17
- package/polkadot-asset-hub/json-rpc.d.ts +3 -3
- package/polkadot-asset-hub/query.d.ts +279 -396
- package/polkadot-asset-hub/runtime.d.ts +65 -93
- package/polkadot-asset-hub/tx.d.ts +952 -1400
- package/polkadot-asset-hub/view-functions.d.ts +7 -9
- package/polkadot-people/consts.d.ts +2 -2
- package/polkadot-people/errors.d.ts +160 -160
- package/polkadot-people/events.d.ts +89 -176
- package/polkadot-people/index.d.ts +15 -17
- package/polkadot-people/json-rpc.d.ts +3 -3
- package/polkadot-people/query.d.ts +114 -145
- package/polkadot-people/runtime.d.ts +46 -67
- package/polkadot-people/tx.d.ts +246 -356
- package/polkadot-people/view-functions.d.ts +3 -5
- package/substrate/consts.d.ts +2 -2
- package/substrate/errors.d.ts +909 -909
- package/substrate/events.d.ts +389 -794
- package/substrate/index.d.ts +16 -17
- package/substrate/json-rpc.d.ts +3 -3
- package/substrate/query.d.ts +458 -572
- package/substrate/runtime.d.ts +82 -126
- package/substrate/tx.d.ts +1317 -1936
- package/substrate/view-functions.d.ts +2 -2
- package/vara/consts.d.ts +9 -37
- package/vara/errors.d.ts +402 -382
- package/vara/events.d.ts +172 -310
- package/vara/index.d.ts +16 -18
- package/vara/json-rpc.d.ts +7 -3
- package/vara/query.d.ts +299 -331
- package/vara/runtime.d.ts +61 -79
- package/vara/tx.d.ts +573 -754
- package/vara/types.d.ts +71 -26
- package/vara/view-functions.d.ts +2 -2
- package/westend/consts.d.ts +2 -2
- package/westend/errors.d.ts +532 -532
- package/westend/events.d.ts +205 -462
- package/westend/index.d.ts +15 -17
- package/westend/json-rpc.d.ts +3 -3
- package/westend/query.d.ts +312 -434
- package/westend/runtime.d.ts +83 -135
- package/westend/tx.d.ts +807 -1179
- package/westend/view-functions.d.ts +7 -12
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/errors.d.ts +605 -605
- package/westend-asset-hub/events.d.ts +265 -614
- package/westend-asset-hub/index.d.ts +16 -17
- package/westend-asset-hub/json-rpc.d.ts +3 -3
- package/westend-asset-hub/query.d.ts +293 -418
- package/westend-asset-hub/runtime.d.ts +83 -123
- package/westend-asset-hub/tx.d.ts +918 -1348
- package/westend-asset-hub/view-functions.d.ts +8 -13
- package/westend-people/consts.d.ts +2 -2
- package/westend-people/errors.d.ts +160 -160
- package/westend-people/events.d.ts +93 -186
- package/westend-people/index.d.ts +15 -17
- package/westend-people/json-rpc.d.ts +3 -3
- package/westend-people/query.d.ts +114 -145
- package/westend-people/runtime.d.ts +46 -67
- package/westend-people/tx.d.ts +251 -363
- package/westend-people/view-functions.d.ts +3 -5
package/hydration/errors.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericChainErrors, GenericPalletError
|
|
3
|
+
import type { GenericChainErrors, GenericPalletError } from 'dedot/types';
|
|
4
4
|
|
|
5
|
-
export interface ChainErrors
|
|
5
|
+
export interface ChainErrors extends GenericChainErrors {
|
|
6
6
|
/**
|
|
7
7
|
* Pallet `System`'s errors
|
|
8
8
|
**/
|
|
@@ -11,55 +11,55 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
11
11
|
* The name of specification does not match between the current runtime
|
|
12
12
|
* and the new runtime.
|
|
13
13
|
**/
|
|
14
|
-
InvalidSpecName: GenericPalletError
|
|
14
|
+
InvalidSpecName: GenericPalletError;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The specification version is not allowed to decrease between the current runtime
|
|
18
18
|
* and the new runtime.
|
|
19
19
|
**/
|
|
20
|
-
SpecVersionNeedsToIncrease: GenericPalletError
|
|
20
|
+
SpecVersionNeedsToIncrease: GenericPalletError;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Failed to extract the runtime version from the new runtime.
|
|
24
24
|
*
|
|
25
25
|
* Either calling `Core_version` or decoding `RuntimeVersion` failed.
|
|
26
26
|
**/
|
|
27
|
-
FailedToExtractRuntimeVersion: GenericPalletError
|
|
27
|
+
FailedToExtractRuntimeVersion: GenericPalletError;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Suicide called when the account has non-default composite data.
|
|
31
31
|
**/
|
|
32
|
-
NonDefaultComposite: GenericPalletError
|
|
32
|
+
NonDefaultComposite: GenericPalletError;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* There is a non-zero reference count preventing the account from being purged.
|
|
36
36
|
**/
|
|
37
|
-
NonZeroRefCount: GenericPalletError
|
|
37
|
+
NonZeroRefCount: GenericPalletError;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* The origin filter prevent the call to be dispatched.
|
|
41
41
|
**/
|
|
42
|
-
CallFiltered: GenericPalletError
|
|
42
|
+
CallFiltered: GenericPalletError;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* A multi-block migration is ongoing and prevents the current code from being replaced.
|
|
46
46
|
**/
|
|
47
|
-
MultiBlockMigrationsOngoing: GenericPalletError
|
|
47
|
+
MultiBlockMigrationsOngoing: GenericPalletError;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* No upgrade authorized.
|
|
51
51
|
**/
|
|
52
|
-
NothingAuthorized: GenericPalletError
|
|
52
|
+
NothingAuthorized: GenericPalletError;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* The submitted code is not authorized.
|
|
56
56
|
**/
|
|
57
|
-
Unauthorized: GenericPalletError
|
|
57
|
+
Unauthorized: GenericPalletError;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Generic pallet error
|
|
61
61
|
**/
|
|
62
|
-
[error: string]: GenericPalletError
|
|
62
|
+
[error: string]: GenericPalletError;
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* Pallet `Balances`'s errors
|
|
@@ -68,67 +68,67 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
68
68
|
/**
|
|
69
69
|
* Vesting balance too high to send value.
|
|
70
70
|
**/
|
|
71
|
-
VestingBalance: GenericPalletError
|
|
71
|
+
VestingBalance: GenericPalletError;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Account liquidity restrictions prevent withdrawal.
|
|
75
75
|
**/
|
|
76
|
-
LiquidityRestrictions: GenericPalletError
|
|
76
|
+
LiquidityRestrictions: GenericPalletError;
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Balance too low to send value.
|
|
80
80
|
**/
|
|
81
|
-
InsufficientBalance: GenericPalletError
|
|
81
|
+
InsufficientBalance: GenericPalletError;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* Value too low to create account due to existential deposit.
|
|
85
85
|
**/
|
|
86
|
-
ExistentialDeposit: GenericPalletError
|
|
86
|
+
ExistentialDeposit: GenericPalletError;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* Transfer/payment would kill account.
|
|
90
90
|
**/
|
|
91
|
-
Expendability: GenericPalletError
|
|
91
|
+
Expendability: GenericPalletError;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* A vesting schedule already exists for this account.
|
|
95
95
|
**/
|
|
96
|
-
ExistingVestingSchedule: GenericPalletError
|
|
96
|
+
ExistingVestingSchedule: GenericPalletError;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
99
|
* Beneficiary account must pre-exist.
|
|
100
100
|
**/
|
|
101
|
-
DeadAccount: GenericPalletError
|
|
101
|
+
DeadAccount: GenericPalletError;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* Number of named reserves exceed `MaxReserves`.
|
|
105
105
|
**/
|
|
106
|
-
TooManyReserves: GenericPalletError
|
|
106
|
+
TooManyReserves: GenericPalletError;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
|
|
110
110
|
**/
|
|
111
|
-
TooManyHolds: GenericPalletError
|
|
111
|
+
TooManyHolds: GenericPalletError;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Number of freezes exceed `MaxFreezes`.
|
|
115
115
|
**/
|
|
116
|
-
TooManyFreezes: GenericPalletError
|
|
116
|
+
TooManyFreezes: GenericPalletError;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* The issuance cannot be modified since it is already deactivated.
|
|
120
120
|
**/
|
|
121
|
-
IssuanceDeactivated: GenericPalletError
|
|
121
|
+
IssuanceDeactivated: GenericPalletError;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* The delta cannot be zero.
|
|
125
125
|
**/
|
|
126
|
-
DeltaZero: GenericPalletError
|
|
126
|
+
DeltaZero: GenericPalletError;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* Generic pallet error
|
|
130
130
|
**/
|
|
131
|
-
[error: string]: GenericPalletError
|
|
131
|
+
[error: string]: GenericPalletError;
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
134
134
|
* Pallet `MultiTransactionPayment`'s errors
|
|
@@ -137,67 +137,67 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
137
137
|
/**
|
|
138
138
|
* Selected currency is not supported.
|
|
139
139
|
**/
|
|
140
|
-
UnsupportedCurrency: GenericPalletError
|
|
140
|
+
UnsupportedCurrency: GenericPalletError;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Account balance should be non-zero.
|
|
144
144
|
**/
|
|
145
|
-
ZeroBalance: GenericPalletError
|
|
145
|
+
ZeroBalance: GenericPalletError;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* Currency is already in the list of accepted currencies.
|
|
149
149
|
**/
|
|
150
|
-
AlreadyAccepted: GenericPalletError
|
|
150
|
+
AlreadyAccepted: GenericPalletError;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* It is not allowed to add Core Asset as accepted currency. Core asset is accepted by design.
|
|
154
154
|
**/
|
|
155
|
-
CoreAssetNotAllowed: GenericPalletError
|
|
155
|
+
CoreAssetNotAllowed: GenericPalletError;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* Fallback price cannot be zero.
|
|
159
159
|
**/
|
|
160
|
-
ZeroPrice: GenericPalletError
|
|
160
|
+
ZeroPrice: GenericPalletError;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* Fallback price was not found.
|
|
164
164
|
**/
|
|
165
|
-
FallbackPriceNotFound: GenericPalletError
|
|
165
|
+
FallbackPriceNotFound: GenericPalletError;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Math overflow
|
|
169
169
|
**/
|
|
170
|
-
Overflow: GenericPalletError
|
|
170
|
+
Overflow: GenericPalletError;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* It is not allowed to change payment currency of an EVM account.
|
|
174
174
|
**/
|
|
175
|
-
EvmAccountNotAllowed: GenericPalletError
|
|
175
|
+
EvmAccountNotAllowed: GenericPalletError;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* EVM permit expired.
|
|
179
179
|
**/
|
|
180
|
-
EvmPermitExpired: GenericPalletError
|
|
180
|
+
EvmPermitExpired: GenericPalletError;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
183
|
* EVM permit is invalid.
|
|
184
184
|
**/
|
|
185
|
-
EvmPermitInvalid: GenericPalletError
|
|
185
|
+
EvmPermitInvalid: GenericPalletError;
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* EVM permit call failed.
|
|
189
189
|
**/
|
|
190
|
-
EvmPermitCallExecutionError: GenericPalletError
|
|
190
|
+
EvmPermitCallExecutionError: GenericPalletError;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
193
|
* EVM permit call failed.
|
|
194
194
|
**/
|
|
195
|
-
EvmPermitRunnerError: GenericPalletError
|
|
195
|
+
EvmPermitRunnerError: GenericPalletError;
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
198
|
* Generic pallet error
|
|
199
199
|
**/
|
|
200
|
-
[error: string]: GenericPalletError
|
|
200
|
+
[error: string]: GenericPalletError;
|
|
201
201
|
};
|
|
202
202
|
/**
|
|
203
203
|
* Pallet `Treasury`'s errors
|
|
@@ -206,63 +206,63 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
206
206
|
/**
|
|
207
207
|
* No proposal, bounty or spend at that index.
|
|
208
208
|
**/
|
|
209
|
-
InvalidIndex: GenericPalletError
|
|
209
|
+
InvalidIndex: GenericPalletError;
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* Too many approvals in the queue.
|
|
213
213
|
**/
|
|
214
|
-
TooManyApprovals: GenericPalletError
|
|
214
|
+
TooManyApprovals: GenericPalletError;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
217
|
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
|
218
218
|
* amount to be spent.
|
|
219
219
|
**/
|
|
220
|
-
InsufficientPermission: GenericPalletError
|
|
220
|
+
InsufficientPermission: GenericPalletError;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
223
|
* Proposal has not been approved.
|
|
224
224
|
**/
|
|
225
|
-
ProposalNotApproved: GenericPalletError
|
|
225
|
+
ProposalNotApproved: GenericPalletError;
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* The balance of the asset kind is not convertible to the balance of the native asset.
|
|
229
229
|
**/
|
|
230
|
-
FailedToConvertBalance: GenericPalletError
|
|
230
|
+
FailedToConvertBalance: GenericPalletError;
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* The spend has expired and cannot be claimed.
|
|
234
234
|
**/
|
|
235
|
-
SpendExpired: GenericPalletError
|
|
235
|
+
SpendExpired: GenericPalletError;
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
238
|
* The spend is not yet eligible for payout.
|
|
239
239
|
**/
|
|
240
|
-
EarlyPayout: GenericPalletError
|
|
240
|
+
EarlyPayout: GenericPalletError;
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
* The payment has already been attempted.
|
|
244
244
|
**/
|
|
245
|
-
AlreadyAttempted: GenericPalletError
|
|
245
|
+
AlreadyAttempted: GenericPalletError;
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
248
|
* There was some issue with the mechanism of payment.
|
|
249
249
|
**/
|
|
250
|
-
PayoutError: GenericPalletError
|
|
250
|
+
PayoutError: GenericPalletError;
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* The payout was not yet attempted/claimed.
|
|
254
254
|
**/
|
|
255
|
-
NotAttempted: GenericPalletError
|
|
255
|
+
NotAttempted: GenericPalletError;
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
258
|
* The payment has neither failed nor succeeded yet.
|
|
259
259
|
**/
|
|
260
|
-
Inconclusive: GenericPalletError
|
|
260
|
+
Inconclusive: GenericPalletError;
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
263
|
* Generic pallet error
|
|
264
264
|
**/
|
|
265
|
-
[error: string]: GenericPalletError
|
|
265
|
+
[error: string]: GenericPalletError;
|
|
266
266
|
};
|
|
267
267
|
/**
|
|
268
268
|
* Pallet `Utility`'s errors
|
|
@@ -271,12 +271,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
271
271
|
/**
|
|
272
272
|
* Too many calls batched.
|
|
273
273
|
**/
|
|
274
|
-
TooManyCalls: GenericPalletError
|
|
274
|
+
TooManyCalls: GenericPalletError;
|
|
275
275
|
|
|
276
276
|
/**
|
|
277
277
|
* Generic pallet error
|
|
278
278
|
**/
|
|
279
|
-
[error: string]: GenericPalletError
|
|
279
|
+
[error: string]: GenericPalletError;
|
|
280
280
|
};
|
|
281
281
|
/**
|
|
282
282
|
* Pallet `Preimage`'s errors
|
|
@@ -285,47 +285,47 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
285
285
|
/**
|
|
286
286
|
* Preimage is too large to store on-chain.
|
|
287
287
|
**/
|
|
288
|
-
TooBig: GenericPalletError
|
|
288
|
+
TooBig: GenericPalletError;
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
291
|
* Preimage has already been noted on-chain.
|
|
292
292
|
**/
|
|
293
|
-
AlreadyNoted: GenericPalletError
|
|
293
|
+
AlreadyNoted: GenericPalletError;
|
|
294
294
|
|
|
295
295
|
/**
|
|
296
296
|
* The user is not authorized to perform this action.
|
|
297
297
|
**/
|
|
298
|
-
NotAuthorized: GenericPalletError
|
|
298
|
+
NotAuthorized: GenericPalletError;
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* The preimage cannot be removed since it has not yet been noted.
|
|
302
302
|
**/
|
|
303
|
-
NotNoted: GenericPalletError
|
|
303
|
+
NotNoted: GenericPalletError;
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
306
|
* A preimage may not be removed when there are outstanding requests.
|
|
307
307
|
**/
|
|
308
|
-
Requested: GenericPalletError
|
|
308
|
+
Requested: GenericPalletError;
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
311
|
* The preimage request cannot be removed since no outstanding requests exist.
|
|
312
312
|
**/
|
|
313
|
-
NotRequested: GenericPalletError
|
|
313
|
+
NotRequested: GenericPalletError;
|
|
314
314
|
|
|
315
315
|
/**
|
|
316
316
|
* More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
|
|
317
317
|
**/
|
|
318
|
-
TooMany: GenericPalletError
|
|
318
|
+
TooMany: GenericPalletError;
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
321
|
* Too few hashes were requested to be upgraded (i.e. zero).
|
|
322
322
|
**/
|
|
323
|
-
TooFew: GenericPalletError
|
|
323
|
+
TooFew: GenericPalletError;
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
326
|
* Generic pallet error
|
|
327
327
|
**/
|
|
328
|
-
[error: string]: GenericPalletError
|
|
328
|
+
[error: string]: GenericPalletError;
|
|
329
329
|
};
|
|
330
330
|
/**
|
|
331
331
|
* Pallet `Identity`'s errors
|
|
@@ -334,137 +334,137 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
334
334
|
/**
|
|
335
335
|
* Too many subs-accounts.
|
|
336
336
|
**/
|
|
337
|
-
TooManySubAccounts: GenericPalletError
|
|
337
|
+
TooManySubAccounts: GenericPalletError;
|
|
338
338
|
|
|
339
339
|
/**
|
|
340
340
|
* Account isn't found.
|
|
341
341
|
**/
|
|
342
|
-
NotFound: GenericPalletError
|
|
342
|
+
NotFound: GenericPalletError;
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
345
|
* Account isn't named.
|
|
346
346
|
**/
|
|
347
|
-
NotNamed: GenericPalletError
|
|
347
|
+
NotNamed: GenericPalletError;
|
|
348
348
|
|
|
349
349
|
/**
|
|
350
350
|
* Empty index.
|
|
351
351
|
**/
|
|
352
|
-
EmptyIndex: GenericPalletError
|
|
352
|
+
EmptyIndex: GenericPalletError;
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* Fee is changed.
|
|
356
356
|
**/
|
|
357
|
-
FeeChanged: GenericPalletError
|
|
357
|
+
FeeChanged: GenericPalletError;
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
* No identity found.
|
|
361
361
|
**/
|
|
362
|
-
NoIdentity: GenericPalletError
|
|
362
|
+
NoIdentity: GenericPalletError;
|
|
363
363
|
|
|
364
364
|
/**
|
|
365
365
|
* Sticky judgement.
|
|
366
366
|
**/
|
|
367
|
-
StickyJudgement: GenericPalletError
|
|
367
|
+
StickyJudgement: GenericPalletError;
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Judgement given.
|
|
371
371
|
**/
|
|
372
|
-
JudgementGiven: GenericPalletError
|
|
372
|
+
JudgementGiven: GenericPalletError;
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
375
|
* Invalid judgement.
|
|
376
376
|
**/
|
|
377
|
-
InvalidJudgement: GenericPalletError
|
|
377
|
+
InvalidJudgement: GenericPalletError;
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* The index is invalid.
|
|
381
381
|
**/
|
|
382
|
-
InvalidIndex: GenericPalletError
|
|
382
|
+
InvalidIndex: GenericPalletError;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
385
|
* The target is invalid.
|
|
386
386
|
**/
|
|
387
|
-
InvalidTarget: GenericPalletError
|
|
387
|
+
InvalidTarget: GenericPalletError;
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
390
|
* Maximum amount of registrars reached. Cannot add any more.
|
|
391
391
|
**/
|
|
392
|
-
TooManyRegistrars: GenericPalletError
|
|
392
|
+
TooManyRegistrars: GenericPalletError;
|
|
393
393
|
|
|
394
394
|
/**
|
|
395
395
|
* Account ID is already named.
|
|
396
396
|
**/
|
|
397
|
-
AlreadyClaimed: GenericPalletError
|
|
397
|
+
AlreadyClaimed: GenericPalletError;
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
400
|
* Sender is not a sub-account.
|
|
401
401
|
**/
|
|
402
|
-
NotSub: GenericPalletError
|
|
402
|
+
NotSub: GenericPalletError;
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* Sub-account isn't owned by sender.
|
|
406
406
|
**/
|
|
407
|
-
NotOwned: GenericPalletError
|
|
407
|
+
NotOwned: GenericPalletError;
|
|
408
408
|
|
|
409
409
|
/**
|
|
410
410
|
* The provided judgement was for a different identity.
|
|
411
411
|
**/
|
|
412
|
-
JudgementForDifferentIdentity: GenericPalletError
|
|
412
|
+
JudgementForDifferentIdentity: GenericPalletError;
|
|
413
413
|
|
|
414
414
|
/**
|
|
415
415
|
* Error that occurs when there is an issue paying for judgement.
|
|
416
416
|
**/
|
|
417
|
-
JudgementPaymentFailed: GenericPalletError
|
|
417
|
+
JudgementPaymentFailed: GenericPalletError;
|
|
418
418
|
|
|
419
419
|
/**
|
|
420
420
|
* The provided suffix is too long.
|
|
421
421
|
**/
|
|
422
|
-
InvalidSuffix: GenericPalletError
|
|
422
|
+
InvalidSuffix: GenericPalletError;
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
425
|
* The sender does not have permission to issue a username.
|
|
426
426
|
**/
|
|
427
|
-
NotUsernameAuthority: GenericPalletError
|
|
427
|
+
NotUsernameAuthority: GenericPalletError;
|
|
428
428
|
|
|
429
429
|
/**
|
|
430
430
|
* The authority cannot allocate any more usernames.
|
|
431
431
|
**/
|
|
432
|
-
NoAllocation: GenericPalletError
|
|
432
|
+
NoAllocation: GenericPalletError;
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
435
|
* The signature on a username was not valid.
|
|
436
436
|
**/
|
|
437
|
-
InvalidSignature: GenericPalletError
|
|
437
|
+
InvalidSignature: GenericPalletError;
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
* Setting this username requires a signature, but none was provided.
|
|
441
441
|
**/
|
|
442
|
-
RequiresSignature: GenericPalletError
|
|
442
|
+
RequiresSignature: GenericPalletError;
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
445
|
* The username does not meet the requirements.
|
|
446
446
|
**/
|
|
447
|
-
InvalidUsername: GenericPalletError
|
|
447
|
+
InvalidUsername: GenericPalletError;
|
|
448
448
|
|
|
449
449
|
/**
|
|
450
450
|
* The username is already taken.
|
|
451
451
|
**/
|
|
452
|
-
UsernameTaken: GenericPalletError
|
|
452
|
+
UsernameTaken: GenericPalletError;
|
|
453
453
|
|
|
454
454
|
/**
|
|
455
455
|
* The requested username does not exist.
|
|
456
456
|
**/
|
|
457
|
-
NoUsername: GenericPalletError
|
|
457
|
+
NoUsername: GenericPalletError;
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
460
|
* The username cannot be forcefully removed because it can still be accepted.
|
|
461
461
|
**/
|
|
462
|
-
NotExpired: GenericPalletError
|
|
462
|
+
NotExpired: GenericPalletError;
|
|
463
463
|
|
|
464
464
|
/**
|
|
465
465
|
* Generic pallet error
|
|
466
466
|
**/
|
|
467
|
-
[error: string]: GenericPalletError
|
|
467
|
+
[error: string]: GenericPalletError;
|
|
468
468
|
};
|
|
469
469
|
/**
|
|
470
470
|
* Pallet `Democracy`'s errors
|
|
@@ -473,128 +473,128 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
473
473
|
/**
|
|
474
474
|
* Value too low
|
|
475
475
|
**/
|
|
476
|
-
ValueLow: GenericPalletError
|
|
476
|
+
ValueLow: GenericPalletError;
|
|
477
477
|
|
|
478
478
|
/**
|
|
479
479
|
* Proposal does not exist
|
|
480
480
|
**/
|
|
481
|
-
ProposalMissing: GenericPalletError
|
|
481
|
+
ProposalMissing: GenericPalletError;
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
484
|
* Cannot cancel the same proposal twice
|
|
485
485
|
**/
|
|
486
|
-
AlreadyCanceled: GenericPalletError
|
|
486
|
+
AlreadyCanceled: GenericPalletError;
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
489
|
* Proposal already made
|
|
490
490
|
**/
|
|
491
|
-
DuplicateProposal: GenericPalletError
|
|
491
|
+
DuplicateProposal: GenericPalletError;
|
|
492
492
|
|
|
493
493
|
/**
|
|
494
494
|
* Proposal still blacklisted
|
|
495
495
|
**/
|
|
496
|
-
ProposalBlacklisted: GenericPalletError
|
|
496
|
+
ProposalBlacklisted: GenericPalletError;
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* Next external proposal not simple majority
|
|
500
500
|
**/
|
|
501
|
-
NotSimpleMajority: GenericPalletError
|
|
501
|
+
NotSimpleMajority: GenericPalletError;
|
|
502
502
|
|
|
503
503
|
/**
|
|
504
504
|
* Invalid hash
|
|
505
505
|
**/
|
|
506
|
-
InvalidHash: GenericPalletError
|
|
506
|
+
InvalidHash: GenericPalletError;
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
509
|
* No external proposal
|
|
510
510
|
**/
|
|
511
|
-
NoProposal: GenericPalletError
|
|
511
|
+
NoProposal: GenericPalletError;
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
514
|
* Identity may not veto a proposal twice
|
|
515
515
|
**/
|
|
516
|
-
AlreadyVetoed: GenericPalletError
|
|
516
|
+
AlreadyVetoed: GenericPalletError;
|
|
517
517
|
|
|
518
518
|
/**
|
|
519
519
|
* Vote given for invalid referendum
|
|
520
520
|
**/
|
|
521
|
-
ReferendumInvalid: GenericPalletError
|
|
521
|
+
ReferendumInvalid: GenericPalletError;
|
|
522
522
|
|
|
523
523
|
/**
|
|
524
524
|
* No proposals waiting
|
|
525
525
|
**/
|
|
526
|
-
NoneWaiting: GenericPalletError
|
|
526
|
+
NoneWaiting: GenericPalletError;
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* The given account did not vote on the referendum.
|
|
530
530
|
**/
|
|
531
|
-
NotVoter: GenericPalletError
|
|
531
|
+
NotVoter: GenericPalletError;
|
|
532
532
|
|
|
533
533
|
/**
|
|
534
534
|
* The actor has no permission to conduct the action.
|
|
535
535
|
**/
|
|
536
|
-
NoPermission: GenericPalletError
|
|
536
|
+
NoPermission: GenericPalletError;
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
539
|
* The account is already delegating.
|
|
540
540
|
**/
|
|
541
|
-
AlreadyDelegating: GenericPalletError
|
|
541
|
+
AlreadyDelegating: GenericPalletError;
|
|
542
542
|
|
|
543
543
|
/**
|
|
544
544
|
* Too high a balance was provided that the account cannot afford.
|
|
545
545
|
**/
|
|
546
|
-
InsufficientFunds: GenericPalletError
|
|
546
|
+
InsufficientFunds: GenericPalletError;
|
|
547
547
|
|
|
548
548
|
/**
|
|
549
549
|
* The account is not currently delegating.
|
|
550
550
|
**/
|
|
551
|
-
NotDelegating: GenericPalletError
|
|
551
|
+
NotDelegating: GenericPalletError;
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
554
|
* The account currently has votes attached to it and the operation cannot succeed until
|
|
555
555
|
* these are removed, either through `unvote` or `reap_vote`.
|
|
556
556
|
**/
|
|
557
|
-
VotesExist: GenericPalletError
|
|
557
|
+
VotesExist: GenericPalletError;
|
|
558
558
|
|
|
559
559
|
/**
|
|
560
560
|
* The instant referendum origin is currently disallowed.
|
|
561
561
|
**/
|
|
562
|
-
InstantNotAllowed: GenericPalletError
|
|
562
|
+
InstantNotAllowed: GenericPalletError;
|
|
563
563
|
|
|
564
564
|
/**
|
|
565
565
|
* Delegation to oneself makes no sense.
|
|
566
566
|
**/
|
|
567
|
-
Nonsense: GenericPalletError
|
|
567
|
+
Nonsense: GenericPalletError;
|
|
568
568
|
|
|
569
569
|
/**
|
|
570
570
|
* Invalid upper bound.
|
|
571
571
|
**/
|
|
572
|
-
WrongUpperBound: GenericPalletError
|
|
572
|
+
WrongUpperBound: GenericPalletError;
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* Maximum number of votes reached.
|
|
576
576
|
**/
|
|
577
|
-
MaxVotesReached: GenericPalletError
|
|
577
|
+
MaxVotesReached: GenericPalletError;
|
|
578
578
|
|
|
579
579
|
/**
|
|
580
580
|
* Maximum number of items reached.
|
|
581
581
|
**/
|
|
582
|
-
TooMany: GenericPalletError
|
|
582
|
+
TooMany: GenericPalletError;
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
* Voting period too low
|
|
586
586
|
**/
|
|
587
|
-
VotingPeriodLow: GenericPalletError
|
|
587
|
+
VotingPeriodLow: GenericPalletError;
|
|
588
588
|
|
|
589
589
|
/**
|
|
590
590
|
* The preimage does not exist.
|
|
591
591
|
**/
|
|
592
|
-
PreimageNotExist: GenericPalletError
|
|
592
|
+
PreimageNotExist: GenericPalletError;
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
595
|
* Generic pallet error
|
|
596
596
|
**/
|
|
597
|
-
[error: string]: GenericPalletError
|
|
597
|
+
[error: string]: GenericPalletError;
|
|
598
598
|
};
|
|
599
599
|
/**
|
|
600
600
|
* Pallet `TechnicalCommittee`'s errors
|
|
@@ -603,62 +603,62 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
603
603
|
/**
|
|
604
604
|
* Account is not a member
|
|
605
605
|
**/
|
|
606
|
-
NotMember: GenericPalletError
|
|
606
|
+
NotMember: GenericPalletError;
|
|
607
607
|
|
|
608
608
|
/**
|
|
609
609
|
* Duplicate proposals not allowed
|
|
610
610
|
**/
|
|
611
|
-
DuplicateProposal: GenericPalletError
|
|
611
|
+
DuplicateProposal: GenericPalletError;
|
|
612
612
|
|
|
613
613
|
/**
|
|
614
614
|
* Proposal must exist
|
|
615
615
|
**/
|
|
616
|
-
ProposalMissing: GenericPalletError
|
|
616
|
+
ProposalMissing: GenericPalletError;
|
|
617
617
|
|
|
618
618
|
/**
|
|
619
619
|
* Mismatched index
|
|
620
620
|
**/
|
|
621
|
-
WrongIndex: GenericPalletError
|
|
621
|
+
WrongIndex: GenericPalletError;
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
624
|
* Duplicate vote ignored
|
|
625
625
|
**/
|
|
626
|
-
DuplicateVote: GenericPalletError
|
|
626
|
+
DuplicateVote: GenericPalletError;
|
|
627
627
|
|
|
628
628
|
/**
|
|
629
629
|
* Members are already initialized!
|
|
630
630
|
**/
|
|
631
|
-
AlreadyInitialized: GenericPalletError
|
|
631
|
+
AlreadyInitialized: GenericPalletError;
|
|
632
632
|
|
|
633
633
|
/**
|
|
634
634
|
* The close call was made too early, before the end of the voting.
|
|
635
635
|
**/
|
|
636
|
-
TooEarly: GenericPalletError
|
|
636
|
+
TooEarly: GenericPalletError;
|
|
637
637
|
|
|
638
638
|
/**
|
|
639
639
|
* There can only be a maximum of `MaxProposals` active proposals.
|
|
640
640
|
**/
|
|
641
|
-
TooManyProposals: GenericPalletError
|
|
641
|
+
TooManyProposals: GenericPalletError;
|
|
642
642
|
|
|
643
643
|
/**
|
|
644
644
|
* The given weight bound for the proposal was too low.
|
|
645
645
|
**/
|
|
646
|
-
WrongProposalWeight: GenericPalletError
|
|
646
|
+
WrongProposalWeight: GenericPalletError;
|
|
647
647
|
|
|
648
648
|
/**
|
|
649
649
|
* The given length bound for the proposal was too low.
|
|
650
650
|
**/
|
|
651
|
-
WrongProposalLength: GenericPalletError
|
|
651
|
+
WrongProposalLength: GenericPalletError;
|
|
652
652
|
|
|
653
653
|
/**
|
|
654
654
|
* Prime account is not a member
|
|
655
655
|
**/
|
|
656
|
-
PrimeAccountNotMember: GenericPalletError
|
|
656
|
+
PrimeAccountNotMember: GenericPalletError;
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
659
|
* Generic pallet error
|
|
660
660
|
**/
|
|
661
|
-
[error: string]: GenericPalletError
|
|
661
|
+
[error: string]: GenericPalletError;
|
|
662
662
|
};
|
|
663
663
|
/**
|
|
664
664
|
* Pallet `Proxy`'s errors
|
|
@@ -667,47 +667,47 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
667
667
|
/**
|
|
668
668
|
* There are too many proxies registered or too many announcements pending.
|
|
669
669
|
**/
|
|
670
|
-
TooMany: GenericPalletError
|
|
670
|
+
TooMany: GenericPalletError;
|
|
671
671
|
|
|
672
672
|
/**
|
|
673
673
|
* Proxy registration not found.
|
|
674
674
|
**/
|
|
675
|
-
NotFound: GenericPalletError
|
|
675
|
+
NotFound: GenericPalletError;
|
|
676
676
|
|
|
677
677
|
/**
|
|
678
678
|
* Sender is not a proxy of the account to be proxied.
|
|
679
679
|
**/
|
|
680
|
-
NotProxy: GenericPalletError
|
|
680
|
+
NotProxy: GenericPalletError;
|
|
681
681
|
|
|
682
682
|
/**
|
|
683
683
|
* A call which is incompatible with the proxy type's filter was attempted.
|
|
684
684
|
**/
|
|
685
|
-
Unproxyable: GenericPalletError
|
|
685
|
+
Unproxyable: GenericPalletError;
|
|
686
686
|
|
|
687
687
|
/**
|
|
688
688
|
* Account is already a proxy.
|
|
689
689
|
**/
|
|
690
|
-
Duplicate: GenericPalletError
|
|
690
|
+
Duplicate: GenericPalletError;
|
|
691
691
|
|
|
692
692
|
/**
|
|
693
693
|
* Call may not be made by proxy because it may escalate its privileges.
|
|
694
694
|
**/
|
|
695
|
-
NoPermission: GenericPalletError
|
|
695
|
+
NoPermission: GenericPalletError;
|
|
696
696
|
|
|
697
697
|
/**
|
|
698
698
|
* Announcement, if made at all, was made too recently.
|
|
699
699
|
**/
|
|
700
|
-
Unannounced: GenericPalletError
|
|
700
|
+
Unannounced: GenericPalletError;
|
|
701
701
|
|
|
702
702
|
/**
|
|
703
703
|
* Cannot add self as proxy.
|
|
704
704
|
**/
|
|
705
|
-
NoSelfProxy: GenericPalletError
|
|
705
|
+
NoSelfProxy: GenericPalletError;
|
|
706
706
|
|
|
707
707
|
/**
|
|
708
708
|
* Generic pallet error
|
|
709
709
|
**/
|
|
710
|
-
[error: string]: GenericPalletError
|
|
710
|
+
[error: string]: GenericPalletError;
|
|
711
711
|
};
|
|
712
712
|
/**
|
|
713
713
|
* Pallet `Multisig`'s errors
|
|
@@ -716,77 +716,77 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
716
716
|
/**
|
|
717
717
|
* Threshold must be 2 or greater.
|
|
718
718
|
**/
|
|
719
|
-
MinimumThreshold: GenericPalletError
|
|
719
|
+
MinimumThreshold: GenericPalletError;
|
|
720
720
|
|
|
721
721
|
/**
|
|
722
722
|
* Call is already approved by this signatory.
|
|
723
723
|
**/
|
|
724
|
-
AlreadyApproved: GenericPalletError
|
|
724
|
+
AlreadyApproved: GenericPalletError;
|
|
725
725
|
|
|
726
726
|
/**
|
|
727
727
|
* Call doesn't need any (more) approvals.
|
|
728
728
|
**/
|
|
729
|
-
NoApprovalsNeeded: GenericPalletError
|
|
729
|
+
NoApprovalsNeeded: GenericPalletError;
|
|
730
730
|
|
|
731
731
|
/**
|
|
732
732
|
* There are too few signatories in the list.
|
|
733
733
|
**/
|
|
734
|
-
TooFewSignatories: GenericPalletError
|
|
734
|
+
TooFewSignatories: GenericPalletError;
|
|
735
735
|
|
|
736
736
|
/**
|
|
737
737
|
* There are too many signatories in the list.
|
|
738
738
|
**/
|
|
739
|
-
TooManySignatories: GenericPalletError
|
|
739
|
+
TooManySignatories: GenericPalletError;
|
|
740
740
|
|
|
741
741
|
/**
|
|
742
742
|
* The signatories were provided out of order; they should be ordered.
|
|
743
743
|
**/
|
|
744
|
-
SignatoriesOutOfOrder: GenericPalletError
|
|
744
|
+
SignatoriesOutOfOrder: GenericPalletError;
|
|
745
745
|
|
|
746
746
|
/**
|
|
747
747
|
* The sender was contained in the other signatories; it shouldn't be.
|
|
748
748
|
**/
|
|
749
|
-
SenderInSignatories: GenericPalletError
|
|
749
|
+
SenderInSignatories: GenericPalletError;
|
|
750
750
|
|
|
751
751
|
/**
|
|
752
752
|
* Multisig operation not found when attempting to cancel.
|
|
753
753
|
**/
|
|
754
|
-
NotFound: GenericPalletError
|
|
754
|
+
NotFound: GenericPalletError;
|
|
755
755
|
|
|
756
756
|
/**
|
|
757
757
|
* Only the account that originally created the multisig is able to cancel it.
|
|
758
758
|
**/
|
|
759
|
-
NotOwner: GenericPalletError
|
|
759
|
+
NotOwner: GenericPalletError;
|
|
760
760
|
|
|
761
761
|
/**
|
|
762
762
|
* No timepoint was given, yet the multisig operation is already underway.
|
|
763
763
|
**/
|
|
764
|
-
NoTimepoint: GenericPalletError
|
|
764
|
+
NoTimepoint: GenericPalletError;
|
|
765
765
|
|
|
766
766
|
/**
|
|
767
767
|
* A different timepoint was given to the multisig operation that is underway.
|
|
768
768
|
**/
|
|
769
|
-
WrongTimepoint: GenericPalletError
|
|
769
|
+
WrongTimepoint: GenericPalletError;
|
|
770
770
|
|
|
771
771
|
/**
|
|
772
772
|
* A timepoint was given, yet no multisig operation is underway.
|
|
773
773
|
**/
|
|
774
|
-
UnexpectedTimepoint: GenericPalletError
|
|
774
|
+
UnexpectedTimepoint: GenericPalletError;
|
|
775
775
|
|
|
776
776
|
/**
|
|
777
777
|
* The maximum weight information provided was too low.
|
|
778
778
|
**/
|
|
779
|
-
MaxWeightTooLow: GenericPalletError
|
|
779
|
+
MaxWeightTooLow: GenericPalletError;
|
|
780
780
|
|
|
781
781
|
/**
|
|
782
782
|
* The data to be stored is already stored.
|
|
783
783
|
**/
|
|
784
|
-
AlreadyStored: GenericPalletError
|
|
784
|
+
AlreadyStored: GenericPalletError;
|
|
785
785
|
|
|
786
786
|
/**
|
|
787
787
|
* Generic pallet error
|
|
788
788
|
**/
|
|
789
|
-
[error: string]: GenericPalletError
|
|
789
|
+
[error: string]: GenericPalletError;
|
|
790
790
|
};
|
|
791
791
|
/**
|
|
792
792
|
* Pallet `Uniques`'s errors
|
|
@@ -795,97 +795,97 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
795
795
|
/**
|
|
796
796
|
* The signing account has no permission to do the operation.
|
|
797
797
|
**/
|
|
798
|
-
NoPermission: GenericPalletError
|
|
798
|
+
NoPermission: GenericPalletError;
|
|
799
799
|
|
|
800
800
|
/**
|
|
801
801
|
* The given item ID is unknown.
|
|
802
802
|
**/
|
|
803
|
-
UnknownCollection: GenericPalletError
|
|
803
|
+
UnknownCollection: GenericPalletError;
|
|
804
804
|
|
|
805
805
|
/**
|
|
806
806
|
* The item ID has already been used for an item.
|
|
807
807
|
**/
|
|
808
|
-
AlreadyExists: GenericPalletError
|
|
808
|
+
AlreadyExists: GenericPalletError;
|
|
809
809
|
|
|
810
810
|
/**
|
|
811
811
|
* The owner turned out to be different to what was expected.
|
|
812
812
|
**/
|
|
813
|
-
WrongOwner: GenericPalletError
|
|
813
|
+
WrongOwner: GenericPalletError;
|
|
814
814
|
|
|
815
815
|
/**
|
|
816
816
|
* Invalid witness data given.
|
|
817
817
|
**/
|
|
818
|
-
BadWitness: GenericPalletError
|
|
818
|
+
BadWitness: GenericPalletError;
|
|
819
819
|
|
|
820
820
|
/**
|
|
821
821
|
* The item ID is already taken.
|
|
822
822
|
**/
|
|
823
|
-
InUse: GenericPalletError
|
|
823
|
+
InUse: GenericPalletError;
|
|
824
824
|
|
|
825
825
|
/**
|
|
826
826
|
* The item or collection is frozen.
|
|
827
827
|
**/
|
|
828
|
-
Frozen: GenericPalletError
|
|
828
|
+
Frozen: GenericPalletError;
|
|
829
829
|
|
|
830
830
|
/**
|
|
831
831
|
* The delegate turned out to be different to what was expected.
|
|
832
832
|
**/
|
|
833
|
-
WrongDelegate: GenericPalletError
|
|
833
|
+
WrongDelegate: GenericPalletError;
|
|
834
834
|
|
|
835
835
|
/**
|
|
836
836
|
* There is no delegate approved.
|
|
837
837
|
**/
|
|
838
|
-
NoDelegate: GenericPalletError
|
|
838
|
+
NoDelegate: GenericPalletError;
|
|
839
839
|
|
|
840
840
|
/**
|
|
841
841
|
* No approval exists that would allow the transfer.
|
|
842
842
|
**/
|
|
843
|
-
Unapproved: GenericPalletError
|
|
843
|
+
Unapproved: GenericPalletError;
|
|
844
844
|
|
|
845
845
|
/**
|
|
846
846
|
* The named owner has not signed ownership of the collection is acceptable.
|
|
847
847
|
**/
|
|
848
|
-
Unaccepted: GenericPalletError
|
|
848
|
+
Unaccepted: GenericPalletError;
|
|
849
849
|
|
|
850
850
|
/**
|
|
851
851
|
* The item is locked.
|
|
852
852
|
**/
|
|
853
|
-
Locked: GenericPalletError
|
|
853
|
+
Locked: GenericPalletError;
|
|
854
854
|
|
|
855
855
|
/**
|
|
856
856
|
* All items have been minted.
|
|
857
857
|
**/
|
|
858
|
-
MaxSupplyReached: GenericPalletError
|
|
858
|
+
MaxSupplyReached: GenericPalletError;
|
|
859
859
|
|
|
860
860
|
/**
|
|
861
861
|
* The max supply has already been set.
|
|
862
862
|
**/
|
|
863
|
-
MaxSupplyAlreadySet: GenericPalletError
|
|
863
|
+
MaxSupplyAlreadySet: GenericPalletError;
|
|
864
864
|
|
|
865
865
|
/**
|
|
866
866
|
* The provided max supply is less to the amount of items a collection already has.
|
|
867
867
|
**/
|
|
868
|
-
MaxSupplyTooSmall: GenericPalletError
|
|
868
|
+
MaxSupplyTooSmall: GenericPalletError;
|
|
869
869
|
|
|
870
870
|
/**
|
|
871
871
|
* The given item ID is unknown.
|
|
872
872
|
**/
|
|
873
|
-
UnknownItem: GenericPalletError
|
|
873
|
+
UnknownItem: GenericPalletError;
|
|
874
874
|
|
|
875
875
|
/**
|
|
876
876
|
* Item is not for sale.
|
|
877
877
|
**/
|
|
878
|
-
NotForSale: GenericPalletError
|
|
878
|
+
NotForSale: GenericPalletError;
|
|
879
879
|
|
|
880
880
|
/**
|
|
881
881
|
* The provided bid is too low.
|
|
882
882
|
**/
|
|
883
|
-
BidTooLow: GenericPalletError
|
|
883
|
+
BidTooLow: GenericPalletError;
|
|
884
884
|
|
|
885
885
|
/**
|
|
886
886
|
* Generic pallet error
|
|
887
887
|
**/
|
|
888
|
-
[error: string]: GenericPalletError
|
|
888
|
+
[error: string]: GenericPalletError;
|
|
889
889
|
};
|
|
890
890
|
/**
|
|
891
891
|
* Pallet `StateTrieMigration`'s errors
|
|
@@ -894,7 +894,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
894
894
|
/**
|
|
895
895
|
* Max signed limits not respected.
|
|
896
896
|
**/
|
|
897
|
-
MaxSignedLimits: GenericPalletError
|
|
897
|
+
MaxSignedLimits: GenericPalletError;
|
|
898
898
|
|
|
899
899
|
/**
|
|
900
900
|
* A key was longer than the configured maximum.
|
|
@@ -905,32 +905,32 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
905
905
|
* The value should only be increased to avoid a storage migration for the currently
|
|
906
906
|
* stored [`crate::Progress::LastKey`].
|
|
907
907
|
**/
|
|
908
|
-
KeyTooLong: GenericPalletError
|
|
908
|
+
KeyTooLong: GenericPalletError;
|
|
909
909
|
|
|
910
910
|
/**
|
|
911
911
|
* submitter does not have enough funds.
|
|
912
912
|
**/
|
|
913
|
-
NotEnoughFunds: GenericPalletError
|
|
913
|
+
NotEnoughFunds: GenericPalletError;
|
|
914
914
|
|
|
915
915
|
/**
|
|
916
916
|
* Bad witness data provided.
|
|
917
917
|
**/
|
|
918
|
-
BadWitness: GenericPalletError
|
|
918
|
+
BadWitness: GenericPalletError;
|
|
919
919
|
|
|
920
920
|
/**
|
|
921
921
|
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
922
922
|
**/
|
|
923
|
-
SignedMigrationNotAllowed: GenericPalletError
|
|
923
|
+
SignedMigrationNotAllowed: GenericPalletError;
|
|
924
924
|
|
|
925
925
|
/**
|
|
926
926
|
* Bad child root provided.
|
|
927
927
|
**/
|
|
928
|
-
BadChildRoot: GenericPalletError
|
|
928
|
+
BadChildRoot: GenericPalletError;
|
|
929
929
|
|
|
930
930
|
/**
|
|
931
931
|
* Generic pallet error
|
|
932
932
|
**/
|
|
933
|
-
[error: string]: GenericPalletError
|
|
933
|
+
[error: string]: GenericPalletError;
|
|
934
934
|
};
|
|
935
935
|
/**
|
|
936
936
|
* Pallet `ConvictionVoting`'s errors
|
|
@@ -939,68 +939,68 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
939
939
|
/**
|
|
940
940
|
* Poll is not ongoing.
|
|
941
941
|
**/
|
|
942
|
-
NotOngoing: GenericPalletError
|
|
942
|
+
NotOngoing: GenericPalletError;
|
|
943
943
|
|
|
944
944
|
/**
|
|
945
945
|
* The given account did not vote on the poll.
|
|
946
946
|
**/
|
|
947
|
-
NotVoter: GenericPalletError
|
|
947
|
+
NotVoter: GenericPalletError;
|
|
948
948
|
|
|
949
949
|
/**
|
|
950
950
|
* The actor has no permission to conduct the action.
|
|
951
951
|
**/
|
|
952
|
-
NoPermission: GenericPalletError
|
|
952
|
+
NoPermission: GenericPalletError;
|
|
953
953
|
|
|
954
954
|
/**
|
|
955
955
|
* The actor has no permission to conduct the action right now but will do in the future.
|
|
956
956
|
**/
|
|
957
|
-
NoPermissionYet: GenericPalletError
|
|
957
|
+
NoPermissionYet: GenericPalletError;
|
|
958
958
|
|
|
959
959
|
/**
|
|
960
960
|
* The account is already delegating.
|
|
961
961
|
**/
|
|
962
|
-
AlreadyDelegating: GenericPalletError
|
|
962
|
+
AlreadyDelegating: GenericPalletError;
|
|
963
963
|
|
|
964
964
|
/**
|
|
965
965
|
* The account currently has votes attached to it and the operation cannot succeed until
|
|
966
966
|
* these are removed through `remove_vote`.
|
|
967
967
|
**/
|
|
968
|
-
AlreadyVoting: GenericPalletError
|
|
968
|
+
AlreadyVoting: GenericPalletError;
|
|
969
969
|
|
|
970
970
|
/**
|
|
971
971
|
* Too high a balance was provided that the account cannot afford.
|
|
972
972
|
**/
|
|
973
|
-
InsufficientFunds: GenericPalletError
|
|
973
|
+
InsufficientFunds: GenericPalletError;
|
|
974
974
|
|
|
975
975
|
/**
|
|
976
976
|
* The account is not currently delegating.
|
|
977
977
|
**/
|
|
978
|
-
NotDelegating: GenericPalletError
|
|
978
|
+
NotDelegating: GenericPalletError;
|
|
979
979
|
|
|
980
980
|
/**
|
|
981
981
|
* Delegation to oneself makes no sense.
|
|
982
982
|
**/
|
|
983
|
-
Nonsense: GenericPalletError
|
|
983
|
+
Nonsense: GenericPalletError;
|
|
984
984
|
|
|
985
985
|
/**
|
|
986
986
|
* Maximum number of votes reached.
|
|
987
987
|
**/
|
|
988
|
-
MaxVotesReached: GenericPalletError
|
|
988
|
+
MaxVotesReached: GenericPalletError;
|
|
989
989
|
|
|
990
990
|
/**
|
|
991
991
|
* The class must be supplied since it is not easily determinable from the state.
|
|
992
992
|
**/
|
|
993
|
-
ClassNeeded: GenericPalletError
|
|
993
|
+
ClassNeeded: GenericPalletError;
|
|
994
994
|
|
|
995
995
|
/**
|
|
996
996
|
* The class ID supplied is invalid.
|
|
997
997
|
**/
|
|
998
|
-
BadClass: GenericPalletError
|
|
998
|
+
BadClass: GenericPalletError;
|
|
999
999
|
|
|
1000
1000
|
/**
|
|
1001
1001
|
* Generic pallet error
|
|
1002
1002
|
**/
|
|
1003
|
-
[error: string]: GenericPalletError
|
|
1003
|
+
[error: string]: GenericPalletError;
|
|
1004
1004
|
};
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Pallet `Referenda`'s errors
|
|
@@ -1009,77 +1009,77 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1009
1009
|
/**
|
|
1010
1010
|
* Referendum is not ongoing.
|
|
1011
1011
|
**/
|
|
1012
|
-
NotOngoing: GenericPalletError
|
|
1012
|
+
NotOngoing: GenericPalletError;
|
|
1013
1013
|
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Referendum's decision deposit is already paid.
|
|
1016
1016
|
**/
|
|
1017
|
-
HasDeposit: GenericPalletError
|
|
1017
|
+
HasDeposit: GenericPalletError;
|
|
1018
1018
|
|
|
1019
1019
|
/**
|
|
1020
1020
|
* The track identifier given was invalid.
|
|
1021
1021
|
**/
|
|
1022
|
-
BadTrack: GenericPalletError
|
|
1022
|
+
BadTrack: GenericPalletError;
|
|
1023
1023
|
|
|
1024
1024
|
/**
|
|
1025
1025
|
* There are already a full complement of referenda in progress for this track.
|
|
1026
1026
|
**/
|
|
1027
|
-
Full: GenericPalletError
|
|
1027
|
+
Full: GenericPalletError;
|
|
1028
1028
|
|
|
1029
1029
|
/**
|
|
1030
1030
|
* The queue of the track is empty.
|
|
1031
1031
|
**/
|
|
1032
|
-
QueueEmpty: GenericPalletError
|
|
1032
|
+
QueueEmpty: GenericPalletError;
|
|
1033
1033
|
|
|
1034
1034
|
/**
|
|
1035
1035
|
* The referendum index provided is invalid in this context.
|
|
1036
1036
|
**/
|
|
1037
|
-
BadReferendum: GenericPalletError
|
|
1037
|
+
BadReferendum: GenericPalletError;
|
|
1038
1038
|
|
|
1039
1039
|
/**
|
|
1040
1040
|
* There was nothing to do in the advancement.
|
|
1041
1041
|
**/
|
|
1042
|
-
NothingToDo: GenericPalletError
|
|
1042
|
+
NothingToDo: GenericPalletError;
|
|
1043
1043
|
|
|
1044
1044
|
/**
|
|
1045
1045
|
* No track exists for the proposal origin.
|
|
1046
1046
|
**/
|
|
1047
|
-
NoTrack: GenericPalletError
|
|
1047
|
+
NoTrack: GenericPalletError;
|
|
1048
1048
|
|
|
1049
1049
|
/**
|
|
1050
1050
|
* Any deposit cannot be refunded until after the decision is over.
|
|
1051
1051
|
**/
|
|
1052
|
-
Unfinished: GenericPalletError
|
|
1052
|
+
Unfinished: GenericPalletError;
|
|
1053
1053
|
|
|
1054
1054
|
/**
|
|
1055
1055
|
* The deposit refunder is not the depositor.
|
|
1056
1056
|
**/
|
|
1057
|
-
NoPermission: GenericPalletError
|
|
1057
|
+
NoPermission: GenericPalletError;
|
|
1058
1058
|
|
|
1059
1059
|
/**
|
|
1060
1060
|
* The deposit cannot be refunded since none was made.
|
|
1061
1061
|
**/
|
|
1062
|
-
NoDeposit: GenericPalletError
|
|
1062
|
+
NoDeposit: GenericPalletError;
|
|
1063
1063
|
|
|
1064
1064
|
/**
|
|
1065
1065
|
* The referendum status is invalid for this operation.
|
|
1066
1066
|
**/
|
|
1067
|
-
BadStatus: GenericPalletError
|
|
1067
|
+
BadStatus: GenericPalletError;
|
|
1068
1068
|
|
|
1069
1069
|
/**
|
|
1070
1070
|
* The preimage does not exist.
|
|
1071
1071
|
**/
|
|
1072
|
-
PreimageNotExist: GenericPalletError
|
|
1072
|
+
PreimageNotExist: GenericPalletError;
|
|
1073
1073
|
|
|
1074
1074
|
/**
|
|
1075
1075
|
* The preimage is stored with a different length than the one provided.
|
|
1076
1076
|
**/
|
|
1077
|
-
PreimageStoredWithDifferentLength: GenericPalletError
|
|
1077
|
+
PreimageStoredWithDifferentLength: GenericPalletError;
|
|
1078
1078
|
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Generic pallet error
|
|
1081
1081
|
**/
|
|
1082
|
-
[error: string]: GenericPalletError
|
|
1082
|
+
[error: string]: GenericPalletError;
|
|
1083
1083
|
};
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Pallet `Whitelist`'s errors
|
|
@@ -1088,32 +1088,32 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* The preimage of the call hash could not be loaded.
|
|
1090
1090
|
**/
|
|
1091
|
-
UnavailablePreImage: GenericPalletError
|
|
1091
|
+
UnavailablePreImage: GenericPalletError;
|
|
1092
1092
|
|
|
1093
1093
|
/**
|
|
1094
1094
|
* The call could not be decoded.
|
|
1095
1095
|
**/
|
|
1096
|
-
UndecodableCall: GenericPalletError
|
|
1096
|
+
UndecodableCall: GenericPalletError;
|
|
1097
1097
|
|
|
1098
1098
|
/**
|
|
1099
1099
|
* The weight of the decoded call was higher than the witness.
|
|
1100
1100
|
**/
|
|
1101
|
-
InvalidCallWeightWitness: GenericPalletError
|
|
1101
|
+
InvalidCallWeightWitness: GenericPalletError;
|
|
1102
1102
|
|
|
1103
1103
|
/**
|
|
1104
1104
|
* The call was not whitelisted.
|
|
1105
1105
|
**/
|
|
1106
|
-
CallIsNotWhitelisted: GenericPalletError
|
|
1106
|
+
CallIsNotWhitelisted: GenericPalletError;
|
|
1107
1107
|
|
|
1108
1108
|
/**
|
|
1109
1109
|
* The call was already whitelisted; No-Op.
|
|
1110
1110
|
**/
|
|
1111
|
-
CallAlreadyWhitelisted: GenericPalletError
|
|
1111
|
+
CallAlreadyWhitelisted: GenericPalletError;
|
|
1112
1112
|
|
|
1113
1113
|
/**
|
|
1114
1114
|
* Generic pallet error
|
|
1115
1115
|
**/
|
|
1116
|
-
[error: string]: GenericPalletError
|
|
1116
|
+
[error: string]: GenericPalletError;
|
|
1117
1117
|
};
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Pallet `Dispatcher`'s errors
|
|
@@ -1123,17 +1123,17 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1123
1123
|
* The EVM call execution failed. This happens when the EVM returns an exit reason
|
|
1124
1124
|
* other than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
1125
1125
|
**/
|
|
1126
|
-
EvmCallFailed: GenericPalletError
|
|
1126
|
+
EvmCallFailed: GenericPalletError;
|
|
1127
1127
|
|
|
1128
1128
|
/**
|
|
1129
1129
|
* The provided call is not an EVM call. This extrinsic only accepts `pallet_evm::Call::call`.
|
|
1130
1130
|
**/
|
|
1131
|
-
NotEvmCall: GenericPalletError
|
|
1131
|
+
NotEvmCall: GenericPalletError;
|
|
1132
1132
|
|
|
1133
1133
|
/**
|
|
1134
1134
|
* Generic pallet error
|
|
1135
1135
|
**/
|
|
1136
|
-
[error: string]: GenericPalletError
|
|
1136
|
+
[error: string]: GenericPalletError;
|
|
1137
1137
|
};
|
|
1138
1138
|
/**
|
|
1139
1139
|
* Pallet `AssetRegistry`'s errors
|
|
@@ -1142,82 +1142,82 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1142
1142
|
/**
|
|
1143
1143
|
* Asset ID is not available. This only happens when it reaches the MAX value of given id type.
|
|
1144
1144
|
**/
|
|
1145
|
-
NoIdAvailable: GenericPalletError
|
|
1145
|
+
NoIdAvailable: GenericPalletError;
|
|
1146
1146
|
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Invalid asset name or symbol.
|
|
1149
1149
|
**/
|
|
1150
|
-
AssetNotFound: GenericPalletError
|
|
1150
|
+
AssetNotFound: GenericPalletError;
|
|
1151
1151
|
|
|
1152
1152
|
/**
|
|
1153
1153
|
* Length of name or symbol is less than min. length.
|
|
1154
1154
|
**/
|
|
1155
|
-
TooShort: GenericPalletError
|
|
1155
|
+
TooShort: GenericPalletError;
|
|
1156
1156
|
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Asset's symbol can't contain whitespace characters .
|
|
1159
1159
|
**/
|
|
1160
|
-
InvalidSymbol: GenericPalletError
|
|
1160
|
+
InvalidSymbol: GenericPalletError;
|
|
1161
1161
|
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Asset ID is not registered in the asset-registry.
|
|
1164
1164
|
**/
|
|
1165
|
-
AssetNotRegistered: GenericPalletError
|
|
1165
|
+
AssetNotRegistered: GenericPalletError;
|
|
1166
1166
|
|
|
1167
1167
|
/**
|
|
1168
1168
|
* Asset is already registered.
|
|
1169
1169
|
**/
|
|
1170
|
-
AssetAlreadyRegistered: GenericPalletError
|
|
1170
|
+
AssetAlreadyRegistered: GenericPalletError;
|
|
1171
1171
|
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Incorrect number of assets provided to create shared asset.
|
|
1174
1174
|
**/
|
|
1175
|
-
InvalidSharedAssetLen: GenericPalletError
|
|
1175
|
+
InvalidSharedAssetLen: GenericPalletError;
|
|
1176
1176
|
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Cannot update asset location.
|
|
1179
1179
|
**/
|
|
1180
|
-
CannotUpdateLocation: GenericPalletError
|
|
1180
|
+
CannotUpdateLocation: GenericPalletError;
|
|
1181
1181
|
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Selected asset id is out of reserved range.
|
|
1184
1184
|
**/
|
|
1185
|
-
NotInReservedRange: GenericPalletError
|
|
1185
|
+
NotInReservedRange: GenericPalletError;
|
|
1186
1186
|
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Location already registered with different asset.
|
|
1189
1189
|
**/
|
|
1190
|
-
LocationAlreadyRegistered: GenericPalletError
|
|
1190
|
+
LocationAlreadyRegistered: GenericPalletError;
|
|
1191
1191
|
|
|
1192
1192
|
/**
|
|
1193
1193
|
* Origin is forbidden to set/update value.
|
|
1194
1194
|
**/
|
|
1195
|
-
Forbidden: GenericPalletError
|
|
1195
|
+
Forbidden: GenericPalletError;
|
|
1196
1196
|
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Balance too low.
|
|
1199
1199
|
**/
|
|
1200
|
-
InsufficientBalance: GenericPalletError
|
|
1200
|
+
InsufficientBalance: GenericPalletError;
|
|
1201
1201
|
|
|
1202
1202
|
/**
|
|
1203
1203
|
* Sufficient assets can't be changed to insufficient.
|
|
1204
1204
|
**/
|
|
1205
|
-
ForbiddenSufficiencyChange: GenericPalletError
|
|
1205
|
+
ForbiddenSufficiencyChange: GenericPalletError;
|
|
1206
1206
|
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Asset is already banned.
|
|
1209
1209
|
**/
|
|
1210
|
-
AssetAlreadyBanned: GenericPalletError
|
|
1210
|
+
AssetAlreadyBanned: GenericPalletError;
|
|
1211
1211
|
|
|
1212
1212
|
/**
|
|
1213
1213
|
* Asset is not banned.
|
|
1214
1214
|
**/
|
|
1215
|
-
AssetNotBanned: GenericPalletError
|
|
1215
|
+
AssetNotBanned: GenericPalletError;
|
|
1216
1216
|
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Generic pallet error
|
|
1219
1219
|
**/
|
|
1220
|
-
[error: string]: GenericPalletError
|
|
1220
|
+
[error: string]: GenericPalletError;
|
|
1221
1221
|
};
|
|
1222
1222
|
/**
|
|
1223
1223
|
* Pallet `Claims`'s errors
|
|
@@ -1226,22 +1226,22 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Ethereum signature is not valid
|
|
1228
1228
|
**/
|
|
1229
|
-
InvalidEthereumSignature: GenericPalletError
|
|
1229
|
+
InvalidEthereumSignature: GenericPalletError;
|
|
1230
1230
|
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Claim is not valid
|
|
1233
1233
|
**/
|
|
1234
|
-
NoClaimOrAlreadyClaimed: GenericPalletError
|
|
1234
|
+
NoClaimOrAlreadyClaimed: GenericPalletError;
|
|
1235
1235
|
|
|
1236
1236
|
/**
|
|
1237
1237
|
* Value reached maximum and cannot be incremented further
|
|
1238
1238
|
**/
|
|
1239
|
-
BalanceOverflow: GenericPalletError
|
|
1239
|
+
BalanceOverflow: GenericPalletError;
|
|
1240
1240
|
|
|
1241
1241
|
/**
|
|
1242
1242
|
* Generic pallet error
|
|
1243
1243
|
**/
|
|
1244
|
-
[error: string]: GenericPalletError
|
|
1244
|
+
[error: string]: GenericPalletError;
|
|
1245
1245
|
};
|
|
1246
1246
|
/**
|
|
1247
1247
|
* Pallet `CollatorRewards`'s errors
|
|
@@ -1250,7 +1250,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1250
1250
|
/**
|
|
1251
1251
|
* Generic pallet error
|
|
1252
1252
|
**/
|
|
1253
|
-
[error: string]: GenericPalletError
|
|
1253
|
+
[error: string]: GenericPalletError;
|
|
1254
1254
|
};
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Pallet `Omnipool`'s errors
|
|
@@ -1259,167 +1259,167 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1259
1259
|
/**
|
|
1260
1260
|
* Balance too low
|
|
1261
1261
|
**/
|
|
1262
|
-
InsufficientBalance: GenericPalletError
|
|
1262
|
+
InsufficientBalance: GenericPalletError;
|
|
1263
1263
|
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Asset is already in omnipool
|
|
1266
1266
|
**/
|
|
1267
|
-
AssetAlreadyAdded: GenericPalletError
|
|
1267
|
+
AssetAlreadyAdded: GenericPalletError;
|
|
1268
1268
|
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Asset is not in omnipool
|
|
1271
1271
|
**/
|
|
1272
|
-
AssetNotFound: GenericPalletError
|
|
1272
|
+
AssetNotFound: GenericPalletError;
|
|
1273
1273
|
|
|
1274
1274
|
/**
|
|
1275
1275
|
* Failed to add token to Omnipool due to insufficient initial liquidity.
|
|
1276
1276
|
**/
|
|
1277
|
-
MissingBalance: GenericPalletError
|
|
1277
|
+
MissingBalance: GenericPalletError;
|
|
1278
1278
|
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Invalid initial asset price.
|
|
1281
1281
|
**/
|
|
1282
|
-
InvalidInitialAssetPrice: GenericPalletError
|
|
1282
|
+
InvalidInitialAssetPrice: GenericPalletError;
|
|
1283
1283
|
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Slippage protection - minimum limit has not been reached.
|
|
1286
1286
|
**/
|
|
1287
|
-
BuyLimitNotReached: GenericPalletError
|
|
1287
|
+
BuyLimitNotReached: GenericPalletError;
|
|
1288
1288
|
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Slippage protection - maximum limit has been exceeded.
|
|
1291
1291
|
**/
|
|
1292
|
-
SellLimitExceeded: GenericPalletError
|
|
1292
|
+
SellLimitExceeded: GenericPalletError;
|
|
1293
1293
|
|
|
1294
1294
|
/**
|
|
1295
1295
|
* Position has not been found.
|
|
1296
1296
|
**/
|
|
1297
|
-
PositionNotFound: GenericPalletError
|
|
1297
|
+
PositionNotFound: GenericPalletError;
|
|
1298
1298
|
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Insufficient shares in position
|
|
1301
1301
|
**/
|
|
1302
|
-
InsufficientShares: GenericPalletError
|
|
1302
|
+
InsufficientShares: GenericPalletError;
|
|
1303
1303
|
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Asset is not allowed to be traded.
|
|
1306
1306
|
**/
|
|
1307
|
-
NotAllowed: GenericPalletError
|
|
1307
|
+
NotAllowed: GenericPalletError;
|
|
1308
1308
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* Signed account is not owner of position instance.
|
|
1311
1311
|
**/
|
|
1312
|
-
Forbidden: GenericPalletError
|
|
1312
|
+
Forbidden: GenericPalletError;
|
|
1313
1313
|
|
|
1314
1314
|
/**
|
|
1315
1315
|
* Asset weight cap has been exceeded.
|
|
1316
1316
|
**/
|
|
1317
|
-
AssetWeightCapExceeded: GenericPalletError
|
|
1317
|
+
AssetWeightCapExceeded: GenericPalletError;
|
|
1318
1318
|
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Asset is not registered in asset registry
|
|
1321
1321
|
**/
|
|
1322
|
-
AssetNotRegistered: GenericPalletError
|
|
1322
|
+
AssetNotRegistered: GenericPalletError;
|
|
1323
1323
|
|
|
1324
1324
|
/**
|
|
1325
1325
|
* Provided liquidity is below minimum allowed limit
|
|
1326
1326
|
**/
|
|
1327
|
-
InsufficientLiquidity: GenericPalletError
|
|
1327
|
+
InsufficientLiquidity: GenericPalletError;
|
|
1328
1328
|
|
|
1329
1329
|
/**
|
|
1330
1330
|
* Traded amount is below minimum allowed limit
|
|
1331
1331
|
**/
|
|
1332
|
-
InsufficientTradingAmount: GenericPalletError
|
|
1332
|
+
InsufficientTradingAmount: GenericPalletError;
|
|
1333
1333
|
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Sell or buy with same asset ids is not allowed.
|
|
1336
1336
|
**/
|
|
1337
|
-
SameAssetTradeNotAllowed: GenericPalletError
|
|
1337
|
+
SameAssetTradeNotAllowed: GenericPalletError;
|
|
1338
1338
|
|
|
1339
1339
|
/**
|
|
1340
1340
|
* LRNA update after trade results in positive value.
|
|
1341
1341
|
**/
|
|
1342
|
-
HubAssetUpdateError: GenericPalletError
|
|
1342
|
+
HubAssetUpdateError: GenericPalletError;
|
|
1343
1343
|
|
|
1344
1344
|
/**
|
|
1345
1345
|
* Amount of shares provided cannot be 0.
|
|
1346
1346
|
**/
|
|
1347
|
-
InvalidSharesAmount: GenericPalletError
|
|
1347
|
+
InvalidSharesAmount: GenericPalletError;
|
|
1348
1348
|
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Hub asset is only allowed to be sold.
|
|
1351
1351
|
**/
|
|
1352
|
-
InvalidHubAssetTradableState: GenericPalletError
|
|
1352
|
+
InvalidHubAssetTradableState: GenericPalletError;
|
|
1353
1353
|
|
|
1354
1354
|
/**
|
|
1355
1355
|
* Asset is not allowed to be refunded.
|
|
1356
1356
|
**/
|
|
1357
|
-
AssetRefundNotAllowed: GenericPalletError
|
|
1357
|
+
AssetRefundNotAllowed: GenericPalletError;
|
|
1358
1358
|
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Max fraction of asset to buy has been exceeded.
|
|
1361
1361
|
**/
|
|
1362
|
-
MaxOutRatioExceeded: GenericPalletError
|
|
1362
|
+
MaxOutRatioExceeded: GenericPalletError;
|
|
1363
1363
|
|
|
1364
1364
|
/**
|
|
1365
1365
|
* Max fraction of asset to sell has been exceeded.
|
|
1366
1366
|
**/
|
|
1367
|
-
MaxInRatioExceeded: GenericPalletError
|
|
1367
|
+
MaxInRatioExceeded: GenericPalletError;
|
|
1368
1368
|
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Max allowed price difference has been exceeded.
|
|
1371
1371
|
**/
|
|
1372
|
-
PriceDifferenceTooHigh: GenericPalletError
|
|
1372
|
+
PriceDifferenceTooHigh: GenericPalletError;
|
|
1373
1373
|
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Invalid oracle price - division by zero.
|
|
1376
1376
|
**/
|
|
1377
|
-
InvalidOraclePrice: GenericPalletError
|
|
1377
|
+
InvalidOraclePrice: GenericPalletError;
|
|
1378
1378
|
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Failed to calculate withdrawal fee.
|
|
1381
1381
|
**/
|
|
1382
|
-
InvalidWithdrawalFee: GenericPalletError
|
|
1382
|
+
InvalidWithdrawalFee: GenericPalletError;
|
|
1383
1383
|
|
|
1384
1384
|
/**
|
|
1385
1385
|
* More than allowed amount of fee has been transferred.
|
|
1386
1386
|
**/
|
|
1387
|
-
FeeOverdraft: GenericPalletError
|
|
1387
|
+
FeeOverdraft: GenericPalletError;
|
|
1388
1388
|
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Token cannot be removed from Omnipool due to shares still owned by other users.
|
|
1391
1391
|
**/
|
|
1392
|
-
SharesRemaining: GenericPalletError
|
|
1392
|
+
SharesRemaining: GenericPalletError;
|
|
1393
1393
|
|
|
1394
1394
|
/**
|
|
1395
1395
|
* Token cannot be removed from Omnipool because asset is not frozen.
|
|
1396
1396
|
**/
|
|
1397
|
-
AssetNotFrozen: GenericPalletError
|
|
1397
|
+
AssetNotFrozen: GenericPalletError;
|
|
1398
1398
|
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Calculated amount out from sell trade is zero.
|
|
1401
1401
|
**/
|
|
1402
|
-
ZeroAmountOut: GenericPalletError
|
|
1402
|
+
ZeroAmountOut: GenericPalletError;
|
|
1403
1403
|
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Existential deposit of asset is not available.
|
|
1406
1406
|
**/
|
|
1407
|
-
ExistentialDepositNotAvailable: GenericPalletError
|
|
1407
|
+
ExistentialDepositNotAvailable: GenericPalletError;
|
|
1408
1408
|
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Slippage protection
|
|
1411
1411
|
**/
|
|
1412
|
-
SlippageLimit: GenericPalletError
|
|
1412
|
+
SlippageLimit: GenericPalletError;
|
|
1413
1413
|
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Extra protocol fee has not been consumed.
|
|
1416
1416
|
**/
|
|
1417
|
-
ProtocolFeeNotConsumed: GenericPalletError
|
|
1417
|
+
ProtocolFeeNotConsumed: GenericPalletError;
|
|
1418
1418
|
|
|
1419
1419
|
/**
|
|
1420
1420
|
* Generic pallet error
|
|
1421
1421
|
**/
|
|
1422
|
-
[error: string]: GenericPalletError
|
|
1422
|
+
[error: string]: GenericPalletError;
|
|
1423
1423
|
};
|
|
1424
1424
|
/**
|
|
1425
1425
|
* Pallet `TransactionPause`'s errors
|
|
@@ -1428,22 +1428,22 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1428
1428
|
/**
|
|
1429
1429
|
* can not pause
|
|
1430
1430
|
**/
|
|
1431
|
-
CannotPause: GenericPalletError
|
|
1431
|
+
CannotPause: GenericPalletError;
|
|
1432
1432
|
|
|
1433
1433
|
/**
|
|
1434
1434
|
* invalid character encoding
|
|
1435
1435
|
**/
|
|
1436
|
-
InvalidCharacter: GenericPalletError
|
|
1436
|
+
InvalidCharacter: GenericPalletError;
|
|
1437
1437
|
|
|
1438
1438
|
/**
|
|
1439
1439
|
* pallet name or function name is too long
|
|
1440
1440
|
**/
|
|
1441
|
-
NameTooLong: GenericPalletError
|
|
1441
|
+
NameTooLong: GenericPalletError;
|
|
1442
1442
|
|
|
1443
1443
|
/**
|
|
1444
1444
|
* Generic pallet error
|
|
1445
1445
|
**/
|
|
1446
|
-
[error: string]: GenericPalletError
|
|
1446
|
+
[error: string]: GenericPalletError;
|
|
1447
1447
|
};
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Pallet `Duster`'s errors
|
|
@@ -1452,37 +1452,37 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Account is excluded from dusting.
|
|
1454
1454
|
**/
|
|
1455
|
-
|
|
1455
|
+
AccountWhitelisted: GenericPalletError;
|
|
1456
1456
|
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Account is not present in the non-dustable list.
|
|
1459
1459
|
**/
|
|
1460
|
-
|
|
1460
|
+
AccountNotWhitelisted: GenericPalletError;
|
|
1461
1461
|
|
|
1462
1462
|
/**
|
|
1463
1463
|
* The balance is zero.
|
|
1464
1464
|
**/
|
|
1465
|
-
ZeroBalance: GenericPalletError
|
|
1465
|
+
ZeroBalance: GenericPalletError;
|
|
1466
1466
|
|
|
1467
1467
|
/**
|
|
1468
|
-
* The balance is
|
|
1468
|
+
* The balance was not fully dusted, there is some leftover on the account. Normally, it should never happen.
|
|
1469
1469
|
**/
|
|
1470
|
-
|
|
1470
|
+
NonZeroBalance: GenericPalletError;
|
|
1471
1471
|
|
|
1472
1472
|
/**
|
|
1473
|
-
*
|
|
1473
|
+
* The balance is sufficient to keep account open.
|
|
1474
1474
|
**/
|
|
1475
|
-
|
|
1475
|
+
BalanceSufficient: GenericPalletError;
|
|
1476
1476
|
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Reserve account is not set.
|
|
1479
1479
|
**/
|
|
1480
|
-
ReserveAccountNotSet: GenericPalletError
|
|
1480
|
+
ReserveAccountNotSet: GenericPalletError;
|
|
1481
1481
|
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Generic pallet error
|
|
1484
1484
|
**/
|
|
1485
|
-
[error: string]: GenericPalletError
|
|
1485
|
+
[error: string]: GenericPalletError;
|
|
1486
1486
|
};
|
|
1487
1487
|
/**
|
|
1488
1488
|
* Pallet `OmnipoolWarehouseLM`'s errors
|
|
@@ -1491,154 +1491,154 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Global farm does not exist.
|
|
1493
1493
|
**/
|
|
1494
|
-
GlobalFarmNotFound: GenericPalletError
|
|
1494
|
+
GlobalFarmNotFound: GenericPalletError;
|
|
1495
1495
|
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Yield farm does not exist.
|
|
1498
1498
|
**/
|
|
1499
|
-
YieldFarmNotFound: GenericPalletError
|
|
1499
|
+
YieldFarmNotFound: GenericPalletError;
|
|
1500
1500
|
|
|
1501
1501
|
/**
|
|
1502
1502
|
* Multiple claims in the same period is not allowed.
|
|
1503
1503
|
**/
|
|
1504
|
-
DoubleClaimInPeriod: GenericPalletError
|
|
1504
|
+
DoubleClaimInPeriod: GenericPalletError;
|
|
1505
1505
|
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Liquidity mining is canceled.
|
|
1508
1508
|
**/
|
|
1509
|
-
LiquidityMiningCanceled: GenericPalletError
|
|
1509
|
+
LiquidityMiningCanceled: GenericPalletError;
|
|
1510
1510
|
|
|
1511
1511
|
/**
|
|
1512
1512
|
* Liquidity mining is not canceled.
|
|
1513
1513
|
**/
|
|
1514
|
-
LiquidityMiningIsActive: GenericPalletError
|
|
1514
|
+
LiquidityMiningIsActive: GenericPalletError;
|
|
1515
1515
|
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
1518
1518
|
**/
|
|
1519
|
-
LiquidityMiningIsNotStopped: GenericPalletError
|
|
1519
|
+
LiquidityMiningIsNotStopped: GenericPalletError;
|
|
1520
1520
|
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Account is not allowed to perform action.
|
|
1523
1523
|
**/
|
|
1524
|
-
Forbidden: GenericPalletError
|
|
1524
|
+
Forbidden: GenericPalletError;
|
|
1525
1525
|
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Yield farm multiplier can't be 0.
|
|
1528
1528
|
**/
|
|
1529
|
-
InvalidMultiplier: GenericPalletError
|
|
1529
|
+
InvalidMultiplier: GenericPalletError;
|
|
1530
1530
|
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Yield farm with given `amm_pool_id` already exists in global farm.
|
|
1533
1533
|
**/
|
|
1534
|
-
YieldFarmAlreadyExists: GenericPalletError
|
|
1534
|
+
YieldFarmAlreadyExists: GenericPalletError;
|
|
1535
1535
|
|
|
1536
1536
|
/**
|
|
1537
1537
|
* Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
|
|
1538
1538
|
**/
|
|
1539
|
-
InvalidInitialRewardPercentage: GenericPalletError
|
|
1539
|
+
InvalidInitialRewardPercentage: GenericPalletError;
|
|
1540
1540
|
|
|
1541
1541
|
/**
|
|
1542
1542
|
* One or more yield farms exist in global farm.
|
|
1543
1543
|
**/
|
|
1544
|
-
GlobalFarmIsNotEmpty: GenericPalletError
|
|
1544
|
+
GlobalFarmIsNotEmpty: GenericPalletError;
|
|
1545
1545
|
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Farm's `incentivized_asset` is missing in provided asset pair.
|
|
1548
1548
|
**/
|
|
1549
|
-
MissingIncentivizedAsset: GenericPalletError
|
|
1549
|
+
MissingIncentivizedAsset: GenericPalletError;
|
|
1550
1550
|
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Reward currency balance is not sufficient.
|
|
1553
1553
|
**/
|
|
1554
|
-
InsufficientRewardCurrencyBalance: GenericPalletError
|
|
1554
|
+
InsufficientRewardCurrencyBalance: GenericPalletError;
|
|
1555
1555
|
|
|
1556
1556
|
/**
|
|
1557
1557
|
* Blocks per period can't be 0.
|
|
1558
1558
|
**/
|
|
1559
|
-
InvalidBlocksPerPeriod: GenericPalletError
|
|
1559
|
+
InvalidBlocksPerPeriod: GenericPalletError;
|
|
1560
1560
|
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Yield per period can't be 0.
|
|
1563
1563
|
**/
|
|
1564
|
-
InvalidYieldPerPeriod: GenericPalletError
|
|
1564
|
+
InvalidYieldPerPeriod: GenericPalletError;
|
|
1565
1565
|
|
|
1566
1566
|
/**
|
|
1567
1567
|
* Total rewards is less than `MinTotalFarmRewards`.
|
|
1568
1568
|
**/
|
|
1569
|
-
InvalidTotalRewards: GenericPalletError
|
|
1569
|
+
InvalidTotalRewards: GenericPalletError;
|
|
1570
1570
|
|
|
1571
1571
|
/**
|
|
1572
1572
|
* Planned yielding periods is less than `MinPlannedYieldingPeriods`.
|
|
1573
1573
|
**/
|
|
1574
|
-
InvalidPlannedYieldingPeriods: GenericPalletError
|
|
1574
|
+
InvalidPlannedYieldingPeriods: GenericPalletError;
|
|
1575
1575
|
|
|
1576
1576
|
/**
|
|
1577
1577
|
* Maximum number of locks reached for deposit.
|
|
1578
1578
|
**/
|
|
1579
|
-
MaxEntriesPerDeposit: GenericPalletError
|
|
1579
|
+
MaxEntriesPerDeposit: GenericPalletError;
|
|
1580
1580
|
|
|
1581
1581
|
/**
|
|
1582
1582
|
* Trying to lock LP shares into already locked yield farm.
|
|
1583
1583
|
**/
|
|
1584
|
-
DoubleLock: GenericPalletError
|
|
1584
|
+
DoubleLock: GenericPalletError;
|
|
1585
1585
|
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Yield farm entry doesn't exist for given deposit.
|
|
1588
1588
|
**/
|
|
1589
|
-
YieldFarmEntryNotFound: GenericPalletError
|
|
1589
|
+
YieldFarmEntryNotFound: GenericPalletError;
|
|
1590
1590
|
|
|
1591
1591
|
/**
|
|
1592
1592
|
* Max number of yield farms in global farm was reached. Global farm can't accept new
|
|
1593
1593
|
* yield farms until some yield farm is not removed from storage.
|
|
1594
1594
|
**/
|
|
1595
|
-
GlobalFarmIsFull: GenericPalletError
|
|
1595
|
+
GlobalFarmIsFull: GenericPalletError;
|
|
1596
1596
|
|
|
1597
1597
|
/**
|
|
1598
1598
|
* Invalid min. deposit was set for global farm.
|
|
1599
1599
|
**/
|
|
1600
|
-
InvalidMinDeposit: GenericPalletError
|
|
1600
|
+
InvalidMinDeposit: GenericPalletError;
|
|
1601
1601
|
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Price adjustment multiplier can't be 0.
|
|
1604
1604
|
**/
|
|
1605
|
-
InvalidPriceAdjustment: GenericPalletError
|
|
1605
|
+
InvalidPriceAdjustment: GenericPalletError;
|
|
1606
1606
|
|
|
1607
1607
|
/**
|
|
1608
1608
|
* Account creation from id failed.
|
|
1609
1609
|
**/
|
|
1610
|
-
ErrorGetAccountId: GenericPalletError
|
|
1610
|
+
ErrorGetAccountId: GenericPalletError;
|
|
1611
1611
|
|
|
1612
1612
|
/**
|
|
1613
1613
|
* Value of deposited shares amount in reward currency is bellow min. limit.
|
|
1614
1614
|
**/
|
|
1615
|
-
IncorrectValuedShares: GenericPalletError
|
|
1615
|
+
IncorrectValuedShares: GenericPalletError;
|
|
1616
1616
|
|
|
1617
1617
|
/**
|
|
1618
1618
|
* `reward_currency` is not registered in asset registry.
|
|
1619
1619
|
**/
|
|
1620
|
-
RewardCurrencyNotRegistered: GenericPalletError
|
|
1620
|
+
RewardCurrencyNotRegistered: GenericPalletError;
|
|
1621
1621
|
|
|
1622
1622
|
/**
|
|
1623
1623
|
* `incentivized_asset` is not registered in asset registry.
|
|
1624
1624
|
**/
|
|
1625
|
-
IncentivizedAssetNotRegistered: GenericPalletError
|
|
1625
|
+
IncentivizedAssetNotRegistered: GenericPalletError;
|
|
1626
1626
|
|
|
1627
1627
|
/**
|
|
1628
1628
|
* Provided `amm_pool_id` doesn't match deposit's `amm_pool_id`.
|
|
1629
1629
|
**/
|
|
1630
|
-
AmmPoolIdMismatch: GenericPalletError
|
|
1630
|
+
AmmPoolIdMismatch: GenericPalletError;
|
|
1631
1631
|
|
|
1632
1632
|
/**
|
|
1633
1633
|
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1634
1634
|
* to protocol maintainers.
|
|
1635
1635
|
**/
|
|
1636
|
-
InconsistentState: GenericPalletError
|
|
1636
|
+
InconsistentState: GenericPalletError;
|
|
1637
1637
|
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Generic pallet error
|
|
1640
1640
|
**/
|
|
1641
|
-
[error: string]: GenericPalletError
|
|
1641
|
+
[error: string]: GenericPalletError;
|
|
1642
1642
|
};
|
|
1643
1643
|
/**
|
|
1644
1644
|
* Pallet `OmnipoolLiquidityMining`'s errors
|
|
@@ -1647,43 +1647,43 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1647
1647
|
/**
|
|
1648
1648
|
* Asset is not in the omnipool.
|
|
1649
1649
|
**/
|
|
1650
|
-
AssetNotFound: GenericPalletError
|
|
1650
|
+
AssetNotFound: GenericPalletError;
|
|
1651
1651
|
|
|
1652
1652
|
/**
|
|
1653
1653
|
* Signed account is not owner of the deposit.
|
|
1654
1654
|
**/
|
|
1655
|
-
Forbidden: GenericPalletError
|
|
1655
|
+
Forbidden: GenericPalletError;
|
|
1656
1656
|
|
|
1657
1657
|
/**
|
|
1658
1658
|
* Rewards to claim are 0.
|
|
1659
1659
|
**/
|
|
1660
|
-
ZeroClaimedRewards: GenericPalletError
|
|
1660
|
+
ZeroClaimedRewards: GenericPalletError;
|
|
1661
1661
|
|
|
1662
1662
|
/**
|
|
1663
1663
|
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1664
1664
|
* to protocol maintainers.
|
|
1665
1665
|
**/
|
|
1666
|
-
InconsistentState: GenericPalletError
|
|
1666
|
+
InconsistentState: GenericPalletError;
|
|
1667
1667
|
|
|
1668
1668
|
/**
|
|
1669
1669
|
* Oracle could not be found for requested assets.
|
|
1670
1670
|
**/
|
|
1671
|
-
OracleNotAvailable: GenericPalletError
|
|
1671
|
+
OracleNotAvailable: GenericPalletError;
|
|
1672
1672
|
|
|
1673
1673
|
/**
|
|
1674
1674
|
* Oracle providing `price_adjustment` could not be found for requested assets.
|
|
1675
1675
|
**/
|
|
1676
|
-
PriceAdjustmentNotAvailable: GenericPalletError
|
|
1676
|
+
PriceAdjustmentNotAvailable: GenericPalletError;
|
|
1677
1677
|
|
|
1678
1678
|
/**
|
|
1679
1679
|
* No farms specified to join
|
|
1680
1680
|
**/
|
|
1681
|
-
NoFarmEntriesSpecified: GenericPalletError
|
|
1681
|
+
NoFarmEntriesSpecified: GenericPalletError;
|
|
1682
1682
|
|
|
1683
1683
|
/**
|
|
1684
1684
|
* Generic pallet error
|
|
1685
1685
|
**/
|
|
1686
|
-
[error: string]: GenericPalletError
|
|
1686
|
+
[error: string]: GenericPalletError;
|
|
1687
1687
|
};
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Pallet `OTC`'s errors
|
|
@@ -1692,49 +1692,49 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1692
1692
|
/**
|
|
1693
1693
|
* Asset does not exist in registry
|
|
1694
1694
|
**/
|
|
1695
|
-
AssetNotRegistered: GenericPalletError
|
|
1695
|
+
AssetNotRegistered: GenericPalletError;
|
|
1696
1696
|
|
|
1697
1697
|
/**
|
|
1698
1698
|
* Order cannot be found
|
|
1699
1699
|
**/
|
|
1700
|
-
OrderNotFound: GenericPalletError
|
|
1700
|
+
OrderNotFound: GenericPalletError;
|
|
1701
1701
|
|
|
1702
1702
|
/**
|
|
1703
1703
|
* Size of order ID exceeds the bound
|
|
1704
1704
|
**/
|
|
1705
|
-
OrderIdOutOfBound: GenericPalletError
|
|
1705
|
+
OrderIdOutOfBound: GenericPalletError;
|
|
1706
1706
|
|
|
1707
1707
|
/**
|
|
1708
1708
|
* Cannot partially fill an order which is not partially fillable
|
|
1709
1709
|
**/
|
|
1710
|
-
OrderNotPartiallyFillable: GenericPalletError
|
|
1710
|
+
OrderNotPartiallyFillable: GenericPalletError;
|
|
1711
1711
|
|
|
1712
1712
|
/**
|
|
1713
1713
|
* Order amount_in and amount_out must at all times be greater than the existential deposit
|
|
1714
1714
|
* for the asset multiplied by the ExistentialDepositMultiplier.
|
|
1715
1715
|
* A fill order may not leave behind amounts smaller than this.
|
|
1716
1716
|
**/
|
|
1717
|
-
OrderAmountTooSmall: GenericPalletError
|
|
1717
|
+
OrderAmountTooSmall: GenericPalletError;
|
|
1718
1718
|
|
|
1719
1719
|
/**
|
|
1720
1720
|
* Error with math calculations
|
|
1721
1721
|
**/
|
|
1722
|
-
MathError: GenericPalletError
|
|
1722
|
+
MathError: GenericPalletError;
|
|
1723
1723
|
|
|
1724
1724
|
/**
|
|
1725
1725
|
* The caller does not have permission to complete the action
|
|
1726
1726
|
**/
|
|
1727
|
-
Forbidden: GenericPalletError
|
|
1727
|
+
Forbidden: GenericPalletError;
|
|
1728
1728
|
|
|
1729
1729
|
/**
|
|
1730
1730
|
* Reserved amount not sufficient.
|
|
1731
1731
|
**/
|
|
1732
|
-
InsufficientReservedAmount: GenericPalletError
|
|
1732
|
+
InsufficientReservedAmount: GenericPalletError;
|
|
1733
1733
|
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Generic pallet error
|
|
1736
1736
|
**/
|
|
1737
|
-
[error: string]: GenericPalletError
|
|
1737
|
+
[error: string]: GenericPalletError;
|
|
1738
1738
|
};
|
|
1739
1739
|
/**
|
|
1740
1740
|
* Pallet `CircuitBreaker`'s errors
|
|
@@ -1743,54 +1743,54 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1743
1743
|
/**
|
|
1744
1744
|
* Invalid value for a limit. Limit must be non-zero.
|
|
1745
1745
|
**/
|
|
1746
|
-
InvalidLimitValue: GenericPalletError
|
|
1746
|
+
InvalidLimitValue: GenericPalletError;
|
|
1747
1747
|
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Allowed liquidity limit is not stored for asset
|
|
1750
1750
|
**/
|
|
1751
|
-
LiquidityLimitNotStoredForAsset: GenericPalletError
|
|
1751
|
+
LiquidityLimitNotStoredForAsset: GenericPalletError;
|
|
1752
1752
|
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Token trade outflow per block has been reached
|
|
1755
1755
|
**/
|
|
1756
|
-
TokenOutflowLimitReached: GenericPalletError
|
|
1756
|
+
TokenOutflowLimitReached: GenericPalletError;
|
|
1757
1757
|
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Token trade influx per block has been reached
|
|
1760
1760
|
**/
|
|
1761
|
-
TokenInfluxLimitReached: GenericPalletError
|
|
1761
|
+
TokenInfluxLimitReached: GenericPalletError;
|
|
1762
1762
|
|
|
1763
1763
|
/**
|
|
1764
1764
|
* Maximum pool's liquidity limit per block has been reached
|
|
1765
1765
|
**/
|
|
1766
|
-
MaxLiquidityLimitPerBlockReached: GenericPalletError
|
|
1766
|
+
MaxLiquidityLimitPerBlockReached: GenericPalletError;
|
|
1767
1767
|
|
|
1768
1768
|
/**
|
|
1769
1769
|
* Asset is not allowed to have a limit
|
|
1770
1770
|
**/
|
|
1771
|
-
NotAllowed: GenericPalletError
|
|
1771
|
+
NotAllowed: GenericPalletError;
|
|
1772
1772
|
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Asset still in lockdown as it reached the allowed deposit limit for the period
|
|
1775
1775
|
* Query the `asset_lockdown_state` storage to determine until which block the asset is locked,
|
|
1776
1776
|
* so that the deposit can be released afterward.
|
|
1777
1777
|
**/
|
|
1778
|
-
AssetInLockdown: GenericPalletError
|
|
1778
|
+
AssetInLockdown: GenericPalletError;
|
|
1779
1779
|
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Asset is not in a lockdown
|
|
1782
1782
|
**/
|
|
1783
|
-
AssetNotInLockdown: GenericPalletError
|
|
1783
|
+
AssetNotInLockdown: GenericPalletError;
|
|
1784
1784
|
|
|
1785
1785
|
/**
|
|
1786
1786
|
* Invalid amount to save deposit
|
|
1787
1787
|
**/
|
|
1788
|
-
InvalidAmount: GenericPalletError
|
|
1788
|
+
InvalidAmount: GenericPalletError;
|
|
1789
1789
|
|
|
1790
1790
|
/**
|
|
1791
1791
|
* Generic pallet error
|
|
1792
1792
|
**/
|
|
1793
|
-
[error: string]: GenericPalletError
|
|
1793
|
+
[error: string]: GenericPalletError;
|
|
1794
1794
|
};
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Pallet `Router`'s errors
|
|
@@ -1799,57 +1799,57 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1799
1799
|
/**
|
|
1800
1800
|
* The trading limit has been reached
|
|
1801
1801
|
**/
|
|
1802
|
-
TradingLimitReached: GenericPalletError
|
|
1802
|
+
TradingLimitReached: GenericPalletError;
|
|
1803
1803
|
|
|
1804
1804
|
/**
|
|
1805
1805
|
* The the max number of trades limit is reached
|
|
1806
1806
|
**/
|
|
1807
|
-
MaxTradesExceeded: GenericPalletError
|
|
1807
|
+
MaxTradesExceeded: GenericPalletError;
|
|
1808
1808
|
|
|
1809
1809
|
/**
|
|
1810
1810
|
* The AMM pool is not supported for executing trades
|
|
1811
1811
|
**/
|
|
1812
|
-
PoolNotSupported: GenericPalletError
|
|
1812
|
+
PoolNotSupported: GenericPalletError;
|
|
1813
1813
|
|
|
1814
1814
|
/**
|
|
1815
1815
|
* The user has not enough balance to execute the trade
|
|
1816
1816
|
**/
|
|
1817
|
-
InsufficientBalance: GenericPalletError
|
|
1817
|
+
InsufficientBalance: GenericPalletError;
|
|
1818
1818
|
|
|
1819
1819
|
/**
|
|
1820
1820
|
* The calculation of route trade amounts failed in the underlying AMM
|
|
1821
1821
|
**/
|
|
1822
|
-
RouteCalculationFailed: GenericPalletError
|
|
1822
|
+
RouteCalculationFailed: GenericPalletError;
|
|
1823
1823
|
|
|
1824
1824
|
/**
|
|
1825
1825
|
* The route is invalid
|
|
1826
1826
|
**/
|
|
1827
|
-
InvalidRoute: GenericPalletError
|
|
1827
|
+
InvalidRoute: GenericPalletError;
|
|
1828
1828
|
|
|
1829
1829
|
/**
|
|
1830
1830
|
* The route update was not successful
|
|
1831
1831
|
**/
|
|
1832
|
-
RouteUpdateIsNotSuccessful: GenericPalletError
|
|
1832
|
+
RouteUpdateIsNotSuccessful: GenericPalletError;
|
|
1833
1833
|
|
|
1834
1834
|
/**
|
|
1835
1835
|
* Route contains assets that has no oracle data
|
|
1836
1836
|
**/
|
|
1837
|
-
RouteHasNoOracle: GenericPalletError
|
|
1837
|
+
RouteHasNoOracle: GenericPalletError;
|
|
1838
1838
|
|
|
1839
1839
|
/**
|
|
1840
1840
|
* The route execution failed in the underlying AMM
|
|
1841
1841
|
**/
|
|
1842
|
-
InvalidRouteExecution: GenericPalletError
|
|
1842
|
+
InvalidRouteExecution: GenericPalletError;
|
|
1843
1843
|
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Trading same assets is not allowed.
|
|
1846
1846
|
**/
|
|
1847
|
-
NotAllowed: GenericPalletError
|
|
1847
|
+
NotAllowed: GenericPalletError;
|
|
1848
1848
|
|
|
1849
1849
|
/**
|
|
1850
1850
|
* Generic pallet error
|
|
1851
1851
|
**/
|
|
1852
|
-
[error: string]: GenericPalletError
|
|
1852
|
+
[error: string]: GenericPalletError;
|
|
1853
1853
|
};
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Pallet `DynamicFees`'s errors
|
|
@@ -1858,12 +1858,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1858
1858
|
/**
|
|
1859
1859
|
* Invalid fee parameters provided
|
|
1860
1860
|
**/
|
|
1861
|
-
InvalidFeeParameters: GenericPalletError
|
|
1861
|
+
InvalidFeeParameters: GenericPalletError;
|
|
1862
1862
|
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Generic pallet error
|
|
1865
1865
|
**/
|
|
1866
|
-
[error: string]: GenericPalletError
|
|
1866
|
+
[error: string]: GenericPalletError;
|
|
1867
1867
|
};
|
|
1868
1868
|
/**
|
|
1869
1869
|
* Pallet `Staking`'s errors
|
|
@@ -1872,73 +1872,73 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1872
1872
|
/**
|
|
1873
1873
|
* Balance is too low.
|
|
1874
1874
|
**/
|
|
1875
|
-
InsufficientBalance: GenericPalletError
|
|
1875
|
+
InsufficientBalance: GenericPalletError;
|
|
1876
1876
|
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Staked amount is too low.
|
|
1879
1879
|
**/
|
|
1880
|
-
InsufficientStake: GenericPalletError
|
|
1880
|
+
InsufficientStake: GenericPalletError;
|
|
1881
1881
|
|
|
1882
1882
|
/**
|
|
1883
1883
|
* Staking position has not been found.
|
|
1884
1884
|
**/
|
|
1885
|
-
PositionNotFound: GenericPalletError
|
|
1885
|
+
PositionNotFound: GenericPalletError;
|
|
1886
1886
|
|
|
1887
1887
|
/**
|
|
1888
1888
|
* Maximum amount of votes were reached for staking position.
|
|
1889
1889
|
**/
|
|
1890
|
-
MaxVotesReached: GenericPalletError
|
|
1890
|
+
MaxVotesReached: GenericPalletError;
|
|
1891
1891
|
|
|
1892
1892
|
/**
|
|
1893
1893
|
* Staking is not initialized.
|
|
1894
1894
|
**/
|
|
1895
|
-
NotInitialized: GenericPalletError
|
|
1895
|
+
NotInitialized: GenericPalletError;
|
|
1896
1896
|
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Staking is already initialized.
|
|
1899
1899
|
**/
|
|
1900
|
-
AlreadyInitialized: GenericPalletError
|
|
1900
|
+
AlreadyInitialized: GenericPalletError;
|
|
1901
1901
|
|
|
1902
1902
|
/**
|
|
1903
1903
|
* Arithmetic error.
|
|
1904
1904
|
**/
|
|
1905
|
-
Arithmetic: GenericPalletError
|
|
1905
|
+
Arithmetic: GenericPalletError;
|
|
1906
1906
|
|
|
1907
1907
|
/**
|
|
1908
1908
|
* Pot's balance is zero.
|
|
1909
1909
|
**/
|
|
1910
|
-
MissingPotBalance: GenericPalletError
|
|
1910
|
+
MissingPotBalance: GenericPalletError;
|
|
1911
1911
|
|
|
1912
1912
|
/**
|
|
1913
1913
|
* Account's position already exists.
|
|
1914
1914
|
**/
|
|
1915
|
-
PositionAlreadyExists: GenericPalletError
|
|
1915
|
+
PositionAlreadyExists: GenericPalletError;
|
|
1916
1916
|
|
|
1917
1917
|
/**
|
|
1918
1918
|
* Signer is not an owner of the staking position.
|
|
1919
1919
|
**/
|
|
1920
|
-
Forbidden: GenericPalletError
|
|
1920
|
+
Forbidden: GenericPalletError;
|
|
1921
1921
|
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Position contains registered votes.
|
|
1924
1924
|
**/
|
|
1925
|
-
ExistingVotes: GenericPalletError
|
|
1925
|
+
ExistingVotes: GenericPalletError;
|
|
1926
1926
|
|
|
1927
1927
|
/**
|
|
1928
1928
|
* Position contains processed votes. Removed these votes first before increasing stake or claiming.
|
|
1929
1929
|
**/
|
|
1930
|
-
ExistingProcessedVotes: GenericPalletError
|
|
1930
|
+
ExistingProcessedVotes: GenericPalletError;
|
|
1931
1931
|
|
|
1932
1932
|
/**
|
|
1933
1933
|
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1934
1934
|
* to protocol maintainers.
|
|
1935
1935
|
**/
|
|
1936
|
-
InconsistentState: GenericPalletError
|
|
1936
|
+
InconsistentState: GenericPalletError;
|
|
1937
1937
|
|
|
1938
1938
|
/**
|
|
1939
1939
|
* Generic pallet error
|
|
1940
1940
|
**/
|
|
1941
|
-
[error: string]: GenericPalletError
|
|
1941
|
+
[error: string]: GenericPalletError;
|
|
1942
1942
|
};
|
|
1943
1943
|
/**
|
|
1944
1944
|
* Pallet `Stableswap`'s errors
|
|
@@ -1947,147 +1947,147 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1947
1947
|
/**
|
|
1948
1948
|
* Creating a pool with same assets or less than 2 assets is not allowed.
|
|
1949
1949
|
**/
|
|
1950
|
-
IncorrectAssets: GenericPalletError
|
|
1950
|
+
IncorrectAssets: GenericPalletError;
|
|
1951
1951
|
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Maximum number of assets has been exceeded.
|
|
1954
1954
|
**/
|
|
1955
|
-
MaxAssetsExceeded: GenericPalletError
|
|
1955
|
+
MaxAssetsExceeded: GenericPalletError;
|
|
1956
1956
|
|
|
1957
1957
|
/**
|
|
1958
1958
|
* A pool with given assets does not exist.
|
|
1959
1959
|
**/
|
|
1960
|
-
PoolNotFound: GenericPalletError
|
|
1960
|
+
PoolNotFound: GenericPalletError;
|
|
1961
1961
|
|
|
1962
1962
|
/**
|
|
1963
1963
|
* A pool with given assets already exists.
|
|
1964
1964
|
**/
|
|
1965
|
-
PoolExists: GenericPalletError
|
|
1965
|
+
PoolExists: GenericPalletError;
|
|
1966
1966
|
|
|
1967
1967
|
/**
|
|
1968
1968
|
* Asset is not in the pool.
|
|
1969
1969
|
**/
|
|
1970
|
-
AssetNotInPool: GenericPalletError
|
|
1970
|
+
AssetNotInPool: GenericPalletError;
|
|
1971
1971
|
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Share asset is not registered in Registry.
|
|
1974
1974
|
**/
|
|
1975
|
-
ShareAssetNotRegistered: GenericPalletError
|
|
1975
|
+
ShareAssetNotRegistered: GenericPalletError;
|
|
1976
1976
|
|
|
1977
1977
|
/**
|
|
1978
1978
|
* Share asset is amount assets when creating a pool.
|
|
1979
1979
|
**/
|
|
1980
|
-
ShareAssetInPoolAssets: GenericPalletError
|
|
1980
|
+
ShareAssetInPoolAssets: GenericPalletError;
|
|
1981
1981
|
|
|
1982
1982
|
/**
|
|
1983
1983
|
* One or more assets are not registered in AssetRegistry
|
|
1984
1984
|
**/
|
|
1985
|
-
AssetNotRegistered: GenericPalletError
|
|
1985
|
+
AssetNotRegistered: GenericPalletError;
|
|
1986
1986
|
|
|
1987
1987
|
/**
|
|
1988
1988
|
* Invalid asset amount provided. Amount must be greater than zero.
|
|
1989
1989
|
**/
|
|
1990
|
-
InvalidAssetAmount: GenericPalletError
|
|
1990
|
+
InvalidAssetAmount: GenericPalletError;
|
|
1991
1991
|
|
|
1992
1992
|
/**
|
|
1993
1993
|
* Balance of an asset is not sufficient to perform a trade.
|
|
1994
1994
|
**/
|
|
1995
|
-
InsufficientBalance: GenericPalletError
|
|
1995
|
+
InsufficientBalance: GenericPalletError;
|
|
1996
1996
|
|
|
1997
1997
|
/**
|
|
1998
1998
|
* Balance of a share asset is not sufficient to withdraw liquidity.
|
|
1999
1999
|
**/
|
|
2000
|
-
InsufficientShares: GenericPalletError
|
|
2000
|
+
InsufficientShares: GenericPalletError;
|
|
2001
2001
|
|
|
2002
2002
|
/**
|
|
2003
2003
|
* Liquidity has not reached the required minimum.
|
|
2004
2004
|
**/
|
|
2005
|
-
InsufficientLiquidity: GenericPalletError
|
|
2005
|
+
InsufficientLiquidity: GenericPalletError;
|
|
2006
2006
|
|
|
2007
2007
|
/**
|
|
2008
2008
|
* Insufficient liquidity left in the pool after withdrawal.
|
|
2009
2009
|
**/
|
|
2010
|
-
InsufficientLiquidityRemaining: GenericPalletError
|
|
2010
|
+
InsufficientLiquidityRemaining: GenericPalletError;
|
|
2011
2011
|
|
|
2012
2012
|
/**
|
|
2013
2013
|
* Amount is less than the minimum trading amount configured.
|
|
2014
2014
|
**/
|
|
2015
|
-
InsufficientTradingAmount: GenericPalletError
|
|
2015
|
+
InsufficientTradingAmount: GenericPalletError;
|
|
2016
2016
|
|
|
2017
2017
|
/**
|
|
2018
2018
|
* Minimum limit has not been reached during trade.
|
|
2019
2019
|
**/
|
|
2020
|
-
BuyLimitNotReached: GenericPalletError
|
|
2020
|
+
BuyLimitNotReached: GenericPalletError;
|
|
2021
2021
|
|
|
2022
2022
|
/**
|
|
2023
2023
|
* Maximum limit has been exceeded during trade.
|
|
2024
2024
|
**/
|
|
2025
|
-
SellLimitExceeded: GenericPalletError
|
|
2025
|
+
SellLimitExceeded: GenericPalletError;
|
|
2026
2026
|
|
|
2027
2027
|
/**
|
|
2028
2028
|
* Initial liquidity of asset must be > 0.
|
|
2029
2029
|
**/
|
|
2030
|
-
InvalidInitialLiquidity: GenericPalletError
|
|
2030
|
+
InvalidInitialLiquidity: GenericPalletError;
|
|
2031
2031
|
|
|
2032
2032
|
/**
|
|
2033
2033
|
* Amplification is outside configured range.
|
|
2034
2034
|
**/
|
|
2035
|
-
InvalidAmplification: GenericPalletError
|
|
2035
|
+
InvalidAmplification: GenericPalletError;
|
|
2036
2036
|
|
|
2037
2037
|
/**
|
|
2038
2038
|
* Remaining balance of share asset is below asset's existential deposit.
|
|
2039
2039
|
**/
|
|
2040
|
-
InsufficientShareBalance: GenericPalletError
|
|
2040
|
+
InsufficientShareBalance: GenericPalletError;
|
|
2041
2041
|
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Not allowed to perform an operation on given asset.
|
|
2044
2044
|
**/
|
|
2045
|
-
NotAllowed: GenericPalletError
|
|
2045
|
+
NotAllowed: GenericPalletError;
|
|
2046
2046
|
|
|
2047
2047
|
/**
|
|
2048
2048
|
* Future block number is in the past.
|
|
2049
2049
|
**/
|
|
2050
|
-
PastBlock: GenericPalletError
|
|
2050
|
+
PastBlock: GenericPalletError;
|
|
2051
2051
|
|
|
2052
2052
|
/**
|
|
2053
2053
|
* New amplification is equal to the previous value.
|
|
2054
2054
|
**/
|
|
2055
|
-
SameAmplification: GenericPalletError
|
|
2055
|
+
SameAmplification: GenericPalletError;
|
|
2056
2056
|
|
|
2057
2057
|
/**
|
|
2058
2058
|
* Slippage protection.
|
|
2059
2059
|
**/
|
|
2060
|
-
SlippageLimit: GenericPalletError
|
|
2060
|
+
SlippageLimit: GenericPalletError;
|
|
2061
2061
|
|
|
2062
2062
|
/**
|
|
2063
2063
|
* Failed to retrieve asset decimals.
|
|
2064
2064
|
**/
|
|
2065
|
-
UnknownDecimals: GenericPalletError
|
|
2065
|
+
UnknownDecimals: GenericPalletError;
|
|
2066
2066
|
|
|
2067
2067
|
/**
|
|
2068
2068
|
* List of provided pegs is incorrect.
|
|
2069
2069
|
**/
|
|
2070
|
-
IncorrectInitialPegs: GenericPalletError
|
|
2070
|
+
IncorrectInitialPegs: GenericPalletError;
|
|
2071
2071
|
|
|
2072
2072
|
/**
|
|
2073
2073
|
* Failed to retrieve oracle entry.
|
|
2074
2074
|
**/
|
|
2075
|
-
MissingTargetPegOracle: GenericPalletError
|
|
2075
|
+
MissingTargetPegOracle: GenericPalletError;
|
|
2076
2076
|
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Creating pool with pegs is not allowed for asset with different decimals.
|
|
2079
2079
|
**/
|
|
2080
|
-
IncorrectAssetDecimals: GenericPalletError
|
|
2080
|
+
IncorrectAssetDecimals: GenericPalletError;
|
|
2081
2081
|
|
|
2082
2082
|
/**
|
|
2083
2083
|
* Pool does not have pegs configured.
|
|
2084
2084
|
**/
|
|
2085
|
-
NoPegSource: GenericPalletError
|
|
2085
|
+
NoPegSource: GenericPalletError;
|
|
2086
2086
|
|
|
2087
2087
|
/**
|
|
2088
2088
|
* Generic pallet error
|
|
2089
2089
|
**/
|
|
2090
|
-
[error: string]: GenericPalletError
|
|
2090
|
+
[error: string]: GenericPalletError;
|
|
2091
2091
|
};
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Pallet `Bonds`'s errors
|
|
@@ -2096,42 +2096,42 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2096
2096
|
/**
|
|
2097
2097
|
* Bond not registered
|
|
2098
2098
|
**/
|
|
2099
|
-
NotRegistered: GenericPalletError
|
|
2099
|
+
NotRegistered: GenericPalletError;
|
|
2100
2100
|
|
|
2101
2101
|
/**
|
|
2102
2102
|
* Bond is not mature
|
|
2103
2103
|
**/
|
|
2104
|
-
NotMature: GenericPalletError
|
|
2104
|
+
NotMature: GenericPalletError;
|
|
2105
2105
|
|
|
2106
2106
|
/**
|
|
2107
2107
|
* Maturity not long enough
|
|
2108
2108
|
**/
|
|
2109
|
-
InvalidMaturity: GenericPalletError
|
|
2109
|
+
InvalidMaturity: GenericPalletError;
|
|
2110
2110
|
|
|
2111
2111
|
/**
|
|
2112
2112
|
* Asset type not allowed for underlying asset
|
|
2113
2113
|
**/
|
|
2114
|
-
DisallowedAsset: GenericPalletError
|
|
2114
|
+
DisallowedAsset: GenericPalletError;
|
|
2115
2115
|
|
|
2116
2116
|
/**
|
|
2117
2117
|
* Asset is not registered in `AssetRegistry`
|
|
2118
2118
|
**/
|
|
2119
|
-
AssetNotFound: GenericPalletError
|
|
2119
|
+
AssetNotFound: GenericPalletError;
|
|
2120
2120
|
|
|
2121
2121
|
/**
|
|
2122
2122
|
* Generated name is not valid.
|
|
2123
2123
|
**/
|
|
2124
|
-
InvalidBondName: GenericPalletError
|
|
2124
|
+
InvalidBondName: GenericPalletError;
|
|
2125
2125
|
|
|
2126
2126
|
/**
|
|
2127
2127
|
* Bond's name parsing was now successful
|
|
2128
2128
|
**/
|
|
2129
|
-
FailToParseName: GenericPalletError
|
|
2129
|
+
FailToParseName: GenericPalletError;
|
|
2130
2130
|
|
|
2131
2131
|
/**
|
|
2132
2132
|
* Generic pallet error
|
|
2133
2133
|
**/
|
|
2134
|
-
[error: string]: GenericPalletError
|
|
2134
|
+
[error: string]: GenericPalletError;
|
|
2135
2135
|
};
|
|
2136
2136
|
/**
|
|
2137
2137
|
* Pallet `OtcSettlements`'s errors
|
|
@@ -2140,42 +2140,42 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2140
2140
|
/**
|
|
2141
2141
|
* Otc order not found
|
|
2142
2142
|
**/
|
|
2143
|
-
OrderNotFound: GenericPalletError
|
|
2143
|
+
OrderNotFound: GenericPalletError;
|
|
2144
2144
|
|
|
2145
2145
|
/**
|
|
2146
2146
|
* OTC order is not partially fillable
|
|
2147
2147
|
**/
|
|
2148
|
-
NotPartiallyFillable: GenericPalletError
|
|
2148
|
+
NotPartiallyFillable: GenericPalletError;
|
|
2149
2149
|
|
|
2150
2150
|
/**
|
|
2151
2151
|
* Provided route doesn't match the existing route
|
|
2152
2152
|
**/
|
|
2153
|
-
InvalidRoute: GenericPalletError
|
|
2153
|
+
InvalidRoute: GenericPalletError;
|
|
2154
2154
|
|
|
2155
2155
|
/**
|
|
2156
2156
|
* Initial and final balance are different
|
|
2157
2157
|
**/
|
|
2158
|
-
BalanceInconsistency: GenericPalletError
|
|
2158
|
+
BalanceInconsistency: GenericPalletError;
|
|
2159
2159
|
|
|
2160
2160
|
/**
|
|
2161
2161
|
* Trade amount higher than necessary
|
|
2162
2162
|
**/
|
|
2163
|
-
TradeAmountTooHigh: GenericPalletError
|
|
2163
|
+
TradeAmountTooHigh: GenericPalletError;
|
|
2164
2164
|
|
|
2165
2165
|
/**
|
|
2166
2166
|
* Trade amount lower than necessary
|
|
2167
2167
|
**/
|
|
2168
|
-
TradeAmountTooLow: GenericPalletError
|
|
2168
|
+
TradeAmountTooLow: GenericPalletError;
|
|
2169
2169
|
|
|
2170
2170
|
/**
|
|
2171
2171
|
* Price for a route is not available
|
|
2172
2172
|
**/
|
|
2173
|
-
PriceNotAvailable: GenericPalletError
|
|
2173
|
+
PriceNotAvailable: GenericPalletError;
|
|
2174
2174
|
|
|
2175
2175
|
/**
|
|
2176
2176
|
* Generic pallet error
|
|
2177
2177
|
**/
|
|
2178
|
-
[error: string]: GenericPalletError
|
|
2178
|
+
[error: string]: GenericPalletError;
|
|
2179
2179
|
};
|
|
2180
2180
|
/**
|
|
2181
2181
|
* Pallet `LBP`'s errors
|
|
@@ -2184,122 +2184,122 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2184
2184
|
/**
|
|
2185
2185
|
* Pool assets can not be the same
|
|
2186
2186
|
**/
|
|
2187
|
-
CannotCreatePoolWithSameAssets: GenericPalletError
|
|
2187
|
+
CannotCreatePoolWithSameAssets: GenericPalletError;
|
|
2188
2188
|
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Account is not a pool owner
|
|
2191
2191
|
**/
|
|
2192
|
-
NotOwner: GenericPalletError
|
|
2192
|
+
NotOwner: GenericPalletError;
|
|
2193
2193
|
|
|
2194
2194
|
/**
|
|
2195
2195
|
* Sale already started
|
|
2196
2196
|
**/
|
|
2197
|
-
SaleStarted: GenericPalletError
|
|
2197
|
+
SaleStarted: GenericPalletError;
|
|
2198
2198
|
|
|
2199
2199
|
/**
|
|
2200
2200
|
* Sale is still in progress
|
|
2201
2201
|
**/
|
|
2202
|
-
SaleNotEnded: GenericPalletError
|
|
2202
|
+
SaleNotEnded: GenericPalletError;
|
|
2203
2203
|
|
|
2204
2204
|
/**
|
|
2205
2205
|
* Sale is not running
|
|
2206
2206
|
**/
|
|
2207
|
-
SaleIsNotRunning: GenericPalletError
|
|
2207
|
+
SaleIsNotRunning: GenericPalletError;
|
|
2208
2208
|
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Sale duration is too long
|
|
2211
2211
|
**/
|
|
2212
|
-
MaxSaleDurationExceeded: GenericPalletError
|
|
2212
|
+
MaxSaleDurationExceeded: GenericPalletError;
|
|
2213
2213
|
|
|
2214
2214
|
/**
|
|
2215
2215
|
* Liquidity being added should not be zero
|
|
2216
2216
|
**/
|
|
2217
|
-
CannotAddZeroLiquidity: GenericPalletError
|
|
2217
|
+
CannotAddZeroLiquidity: GenericPalletError;
|
|
2218
2218
|
|
|
2219
2219
|
/**
|
|
2220
2220
|
* Asset balance too low
|
|
2221
2221
|
**/
|
|
2222
|
-
InsufficientAssetBalance: GenericPalletError
|
|
2222
|
+
InsufficientAssetBalance: GenericPalletError;
|
|
2223
2223
|
|
|
2224
2224
|
/**
|
|
2225
2225
|
* Pool does not exist
|
|
2226
2226
|
**/
|
|
2227
|
-
PoolNotFound: GenericPalletError
|
|
2227
|
+
PoolNotFound: GenericPalletError;
|
|
2228
2228
|
|
|
2229
2229
|
/**
|
|
2230
2230
|
* Pool has been already created
|
|
2231
2231
|
**/
|
|
2232
|
-
PoolAlreadyExists: GenericPalletError
|
|
2232
|
+
PoolAlreadyExists: GenericPalletError;
|
|
2233
2233
|
|
|
2234
2234
|
/**
|
|
2235
2235
|
* Invalid block range
|
|
2236
2236
|
**/
|
|
2237
|
-
InvalidBlockRange: GenericPalletError
|
|
2237
|
+
InvalidBlockRange: GenericPalletError;
|
|
2238
2238
|
|
|
2239
2239
|
/**
|
|
2240
2240
|
* Calculation error
|
|
2241
2241
|
**/
|
|
2242
|
-
WeightCalculationError: GenericPalletError
|
|
2242
|
+
WeightCalculationError: GenericPalletError;
|
|
2243
2243
|
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Weight set is out of range
|
|
2246
2246
|
**/
|
|
2247
|
-
InvalidWeight: GenericPalletError
|
|
2247
|
+
InvalidWeight: GenericPalletError;
|
|
2248
2248
|
|
|
2249
2249
|
/**
|
|
2250
2250
|
* Can not perform a trade with zero amount
|
|
2251
2251
|
**/
|
|
2252
|
-
ZeroAmount: GenericPalletError
|
|
2252
|
+
ZeroAmount: GenericPalletError;
|
|
2253
2253
|
|
|
2254
2254
|
/**
|
|
2255
2255
|
* Trade amount is too high
|
|
2256
2256
|
**/
|
|
2257
|
-
MaxInRatioExceeded: GenericPalletError
|
|
2257
|
+
MaxInRatioExceeded: GenericPalletError;
|
|
2258
2258
|
|
|
2259
2259
|
/**
|
|
2260
2260
|
* Trade amount is too high
|
|
2261
2261
|
**/
|
|
2262
|
-
MaxOutRatioExceeded: GenericPalletError
|
|
2262
|
+
MaxOutRatioExceeded: GenericPalletError;
|
|
2263
2263
|
|
|
2264
2264
|
/**
|
|
2265
2265
|
* Invalid fee amount
|
|
2266
2266
|
**/
|
|
2267
|
-
FeeAmountInvalid: GenericPalletError
|
|
2267
|
+
FeeAmountInvalid: GenericPalletError;
|
|
2268
2268
|
|
|
2269
2269
|
/**
|
|
2270
2270
|
* Trading limit reached
|
|
2271
2271
|
**/
|
|
2272
|
-
TradingLimitReached: GenericPalletError
|
|
2272
|
+
TradingLimitReached: GenericPalletError;
|
|
2273
2273
|
|
|
2274
2274
|
/**
|
|
2275
2275
|
* An unexpected integer overflow occurred
|
|
2276
2276
|
**/
|
|
2277
|
-
Overflow: GenericPalletError
|
|
2277
|
+
Overflow: GenericPalletError;
|
|
2278
2278
|
|
|
2279
2279
|
/**
|
|
2280
2280
|
* Nothing to update
|
|
2281
2281
|
**/
|
|
2282
|
-
NothingToUpdate: GenericPalletError
|
|
2282
|
+
NothingToUpdate: GenericPalletError;
|
|
2283
2283
|
|
|
2284
2284
|
/**
|
|
2285
2285
|
* Liquidity has not reached the required minimum.
|
|
2286
2286
|
**/
|
|
2287
|
-
InsufficientLiquidity: GenericPalletError
|
|
2287
|
+
InsufficientLiquidity: GenericPalletError;
|
|
2288
2288
|
|
|
2289
2289
|
/**
|
|
2290
2290
|
* Amount is less than minimum trading limit.
|
|
2291
2291
|
**/
|
|
2292
|
-
InsufficientTradingAmount: GenericPalletError
|
|
2292
|
+
InsufficientTradingAmount: GenericPalletError;
|
|
2293
2293
|
|
|
2294
2294
|
/**
|
|
2295
2295
|
* Not more than one fee collector per asset id
|
|
2296
2296
|
**/
|
|
2297
|
-
FeeCollectorWithAssetAlreadyUsed: GenericPalletError
|
|
2297
|
+
FeeCollectorWithAssetAlreadyUsed: GenericPalletError;
|
|
2298
2298
|
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Generic pallet error
|
|
2301
2301
|
**/
|
|
2302
|
-
[error: string]: GenericPalletError
|
|
2302
|
+
[error: string]: GenericPalletError;
|
|
2303
2303
|
};
|
|
2304
2304
|
/**
|
|
2305
2305
|
* Pallet `XYK`'s errors
|
|
@@ -2308,139 +2308,139 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2308
2308
|
/**
|
|
2309
2309
|
* It is not allowed to create a pool between same assets.
|
|
2310
2310
|
**/
|
|
2311
|
-
CannotCreatePoolWithSameAssets: GenericPalletError
|
|
2311
|
+
CannotCreatePoolWithSameAssets: GenericPalletError;
|
|
2312
2312
|
|
|
2313
2313
|
/**
|
|
2314
2314
|
* Liquidity has not reached the required minimum.
|
|
2315
2315
|
**/
|
|
2316
|
-
InsufficientLiquidity: GenericPalletError
|
|
2316
|
+
InsufficientLiquidity: GenericPalletError;
|
|
2317
2317
|
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Amount is less than min trading limit.
|
|
2320
2320
|
**/
|
|
2321
|
-
InsufficientTradingAmount: GenericPalletError
|
|
2321
|
+
InsufficientTradingAmount: GenericPalletError;
|
|
2322
2322
|
|
|
2323
2323
|
/**
|
|
2324
2324
|
* Liquidity is zero.
|
|
2325
2325
|
**/
|
|
2326
|
-
ZeroLiquidity: GenericPalletError
|
|
2326
|
+
ZeroLiquidity: GenericPalletError;
|
|
2327
2327
|
|
|
2328
2328
|
/**
|
|
2329
2329
|
* It is not allowed to create a pool with zero initial price.
|
|
2330
2330
|
* Not used, kept for backward compatibility
|
|
2331
2331
|
**/
|
|
2332
|
-
ZeroInitialPrice: GenericPalletError
|
|
2332
|
+
ZeroInitialPrice: GenericPalletError;
|
|
2333
2333
|
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Overflow
|
|
2336
2336
|
* Not used, kept for backward compatibility
|
|
2337
2337
|
**/
|
|
2338
|
-
CreatePoolAssetAmountInvalid: GenericPalletError
|
|
2338
|
+
CreatePoolAssetAmountInvalid: GenericPalletError;
|
|
2339
2339
|
|
|
2340
2340
|
/**
|
|
2341
2341
|
* Overflow
|
|
2342
2342
|
**/
|
|
2343
|
-
InvalidMintedLiquidity: GenericPalletError
|
|
2343
|
+
InvalidMintedLiquidity: GenericPalletError;
|
|
2344
2344
|
|
|
2345
2345
|
/**
|
|
2346
2346
|
* Overflow
|
|
2347
2347
|
**/
|
|
2348
|
-
InvalidLiquidityAmount: GenericPalletError
|
|
2348
|
+
InvalidLiquidityAmount: GenericPalletError;
|
|
2349
2349
|
|
|
2350
2350
|
/**
|
|
2351
2351
|
* Asset amount has exceeded given limit.
|
|
2352
2352
|
**/
|
|
2353
|
-
AssetAmountExceededLimit: GenericPalletError
|
|
2353
|
+
AssetAmountExceededLimit: GenericPalletError;
|
|
2354
2354
|
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Asset amount has not reached given limit.
|
|
2357
2357
|
**/
|
|
2358
|
-
AssetAmountNotReachedLimit: GenericPalletError
|
|
2358
|
+
AssetAmountNotReachedLimit: GenericPalletError;
|
|
2359
2359
|
|
|
2360
2360
|
/**
|
|
2361
2361
|
* Asset balance is not sufficient.
|
|
2362
2362
|
**/
|
|
2363
|
-
InsufficientAssetBalance: GenericPalletError
|
|
2363
|
+
InsufficientAssetBalance: GenericPalletError;
|
|
2364
2364
|
|
|
2365
2365
|
/**
|
|
2366
2366
|
* Not enough asset liquidity in the pool.
|
|
2367
2367
|
**/
|
|
2368
|
-
InsufficientPoolAssetBalance: GenericPalletError
|
|
2368
|
+
InsufficientPoolAssetBalance: GenericPalletError;
|
|
2369
2369
|
|
|
2370
2370
|
/**
|
|
2371
2371
|
* Not enough core asset liquidity in the pool.
|
|
2372
2372
|
**/
|
|
2373
|
-
InsufficientNativeCurrencyBalance: GenericPalletError
|
|
2373
|
+
InsufficientNativeCurrencyBalance: GenericPalletError;
|
|
2374
2374
|
|
|
2375
2375
|
/**
|
|
2376
2376
|
* Liquidity pool for given assets does not exist.
|
|
2377
2377
|
**/
|
|
2378
|
-
TokenPoolNotFound: GenericPalletError
|
|
2378
|
+
TokenPoolNotFound: GenericPalletError;
|
|
2379
2379
|
|
|
2380
2380
|
/**
|
|
2381
2381
|
* Liquidity pool for given assets already exists.
|
|
2382
2382
|
**/
|
|
2383
|
-
TokenPoolAlreadyExists: GenericPalletError
|
|
2383
|
+
TokenPoolAlreadyExists: GenericPalletError;
|
|
2384
2384
|
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Overflow
|
|
2387
2387
|
**/
|
|
2388
|
-
AddAssetAmountInvalid: GenericPalletError
|
|
2388
|
+
AddAssetAmountInvalid: GenericPalletError;
|
|
2389
2389
|
|
|
2390
2390
|
/**
|
|
2391
2391
|
* Overflow
|
|
2392
2392
|
**/
|
|
2393
|
-
RemoveAssetAmountInvalid: GenericPalletError
|
|
2393
|
+
RemoveAssetAmountInvalid: GenericPalletError;
|
|
2394
2394
|
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Overflow
|
|
2397
2397
|
**/
|
|
2398
|
-
SellAssetAmountInvalid: GenericPalletError
|
|
2398
|
+
SellAssetAmountInvalid: GenericPalletError;
|
|
2399
2399
|
|
|
2400
2400
|
/**
|
|
2401
2401
|
* Overflow
|
|
2402
2402
|
**/
|
|
2403
|
-
BuyAssetAmountInvalid: GenericPalletError
|
|
2403
|
+
BuyAssetAmountInvalid: GenericPalletError;
|
|
2404
2404
|
|
|
2405
2405
|
/**
|
|
2406
2406
|
* Overflow
|
|
2407
2407
|
**/
|
|
2408
|
-
FeeAmountInvalid: GenericPalletError
|
|
2408
|
+
FeeAmountInvalid: GenericPalletError;
|
|
2409
2409
|
|
|
2410
2410
|
/**
|
|
2411
2411
|
* Overflow
|
|
2412
2412
|
**/
|
|
2413
|
-
CannotApplyDiscount: GenericPalletError
|
|
2413
|
+
CannotApplyDiscount: GenericPalletError;
|
|
2414
2414
|
|
|
2415
2415
|
/**
|
|
2416
2416
|
* Max fraction of pool to buy in single transaction has been exceeded.
|
|
2417
2417
|
**/
|
|
2418
|
-
MaxOutRatioExceeded: GenericPalletError
|
|
2418
|
+
MaxOutRatioExceeded: GenericPalletError;
|
|
2419
2419
|
|
|
2420
2420
|
/**
|
|
2421
2421
|
* Max fraction of pool to sell in single transaction has been exceeded.
|
|
2422
2422
|
**/
|
|
2423
|
-
MaxInRatioExceeded: GenericPalletError
|
|
2423
|
+
MaxInRatioExceeded: GenericPalletError;
|
|
2424
2424
|
|
|
2425
2425
|
/**
|
|
2426
2426
|
* Overflow
|
|
2427
2427
|
**/
|
|
2428
|
-
Overflow: GenericPalletError
|
|
2428
|
+
Overflow: GenericPalletError;
|
|
2429
2429
|
|
|
2430
2430
|
/**
|
|
2431
2431
|
* Pool cannot be created due to outside factors.
|
|
2432
2432
|
**/
|
|
2433
|
-
CannotCreatePool: GenericPalletError
|
|
2433
|
+
CannotCreatePool: GenericPalletError;
|
|
2434
2434
|
|
|
2435
2435
|
/**
|
|
2436
2436
|
* Slippage protection.
|
|
2437
2437
|
**/
|
|
2438
|
-
SlippageLimit: GenericPalletError
|
|
2438
|
+
SlippageLimit: GenericPalletError;
|
|
2439
2439
|
|
|
2440
2440
|
/**
|
|
2441
2441
|
* Generic pallet error
|
|
2442
2442
|
**/
|
|
2443
|
-
[error: string]: GenericPalletError
|
|
2443
|
+
[error: string]: GenericPalletError;
|
|
2444
2444
|
};
|
|
2445
2445
|
/**
|
|
2446
2446
|
* Pallet `Referrals`'s errors
|
|
@@ -2449,77 +2449,77 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2449
2449
|
/**
|
|
2450
2450
|
* Referral code is too long.
|
|
2451
2451
|
**/
|
|
2452
|
-
TooLong: GenericPalletError
|
|
2452
|
+
TooLong: GenericPalletError;
|
|
2453
2453
|
|
|
2454
2454
|
/**
|
|
2455
2455
|
* Referral code is too short.
|
|
2456
2456
|
**/
|
|
2457
|
-
TooShort: GenericPalletError
|
|
2457
|
+
TooShort: GenericPalletError;
|
|
2458
2458
|
|
|
2459
2459
|
/**
|
|
2460
2460
|
* Referral code contains invalid character. Only alphanumeric characters are allowed.
|
|
2461
2461
|
**/
|
|
2462
|
-
InvalidCharacter: GenericPalletError
|
|
2462
|
+
InvalidCharacter: GenericPalletError;
|
|
2463
2463
|
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Referral code already exists.
|
|
2466
2466
|
**/
|
|
2467
|
-
AlreadyExists: GenericPalletError
|
|
2467
|
+
AlreadyExists: GenericPalletError;
|
|
2468
2468
|
|
|
2469
2469
|
/**
|
|
2470
2470
|
* Provided referral code is invalid. Either does not exist or is too long.
|
|
2471
2471
|
**/
|
|
2472
|
-
InvalidCode: GenericPalletError
|
|
2472
|
+
InvalidCode: GenericPalletError;
|
|
2473
2473
|
|
|
2474
2474
|
/**
|
|
2475
2475
|
* Account is already linked to another referral account.
|
|
2476
2476
|
**/
|
|
2477
|
-
AlreadyLinked: GenericPalletError
|
|
2477
|
+
AlreadyLinked: GenericPalletError;
|
|
2478
2478
|
|
|
2479
2479
|
/**
|
|
2480
2480
|
* Nothing in the referral pot account for the asset.
|
|
2481
2481
|
**/
|
|
2482
|
-
ZeroAmount: GenericPalletError
|
|
2482
|
+
ZeroAmount: GenericPalletError;
|
|
2483
2483
|
|
|
2484
2484
|
/**
|
|
2485
2485
|
* Linking an account to the same referral account is not allowed.
|
|
2486
2486
|
**/
|
|
2487
|
-
LinkNotAllowed: GenericPalletError
|
|
2487
|
+
LinkNotAllowed: GenericPalletError;
|
|
2488
2488
|
|
|
2489
2489
|
/**
|
|
2490
2490
|
* Calculated rewards are more than the fee amount. This can happen if percentages are incorrectly set.
|
|
2491
2491
|
**/
|
|
2492
|
-
IncorrectRewardCalculation: GenericPalletError
|
|
2492
|
+
IncorrectRewardCalculation: GenericPalletError;
|
|
2493
2493
|
|
|
2494
2494
|
/**
|
|
2495
2495
|
* Given referrer and trader percentages exceeds 100% percent.
|
|
2496
2496
|
**/
|
|
2497
|
-
IncorrectRewardPercentage: GenericPalletError
|
|
2497
|
+
IncorrectRewardPercentage: GenericPalletError;
|
|
2498
2498
|
|
|
2499
2499
|
/**
|
|
2500
2500
|
* The account has already a code registered.
|
|
2501
2501
|
**/
|
|
2502
|
-
AlreadyRegistered: GenericPalletError
|
|
2502
|
+
AlreadyRegistered: GenericPalletError;
|
|
2503
2503
|
|
|
2504
2504
|
/**
|
|
2505
2505
|
* Price for given asset pair not found.
|
|
2506
2506
|
**/
|
|
2507
|
-
PriceNotFound: GenericPalletError
|
|
2507
|
+
PriceNotFound: GenericPalletError;
|
|
2508
2508
|
|
|
2509
2509
|
/**
|
|
2510
2510
|
* Minimum trading amount for conversion has not been reached.
|
|
2511
2511
|
**/
|
|
2512
|
-
ConversionMinTradingAmountNotReached: GenericPalletError
|
|
2512
|
+
ConversionMinTradingAmountNotReached: GenericPalletError;
|
|
2513
2513
|
|
|
2514
2514
|
/**
|
|
2515
2515
|
* Zero amount received from conversion.
|
|
2516
2516
|
**/
|
|
2517
|
-
ConversionZeroAmountReceived: GenericPalletError
|
|
2517
|
+
ConversionZeroAmountReceived: GenericPalletError;
|
|
2518
2518
|
|
|
2519
2519
|
/**
|
|
2520
2520
|
* Generic pallet error
|
|
2521
2521
|
**/
|
|
2522
|
-
[error: string]: GenericPalletError
|
|
2522
|
+
[error: string]: GenericPalletError;
|
|
2523
2523
|
};
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Pallet `Liquidation`'s errors
|
|
@@ -2528,37 +2528,37 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2528
2528
|
/**
|
|
2529
2529
|
* AssetId to EVM address conversion failed
|
|
2530
2530
|
**/
|
|
2531
|
-
AssetConversionFailed: GenericPalletError
|
|
2531
|
+
AssetConversionFailed: GenericPalletError;
|
|
2532
2532
|
|
|
2533
2533
|
/**
|
|
2534
2534
|
* Liquidation call failed
|
|
2535
2535
|
**/
|
|
2536
|
-
LiquidationCallFailed: GenericPalletError
|
|
2536
|
+
LiquidationCallFailed: GenericPalletError;
|
|
2537
2537
|
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Provided route doesn't match the existing route
|
|
2540
2540
|
**/
|
|
2541
|
-
InvalidRoute: GenericPalletError
|
|
2541
|
+
InvalidRoute: GenericPalletError;
|
|
2542
2542
|
|
|
2543
2543
|
/**
|
|
2544
2544
|
* Liquidation was not profitable enough to repay flash loan
|
|
2545
2545
|
**/
|
|
2546
|
-
NotProfitable: GenericPalletError
|
|
2546
|
+
NotProfitable: GenericPalletError;
|
|
2547
2547
|
|
|
2548
2548
|
/**
|
|
2549
2549
|
* Flash minter contract address not set. It is required for Hollar liquidations.
|
|
2550
2550
|
**/
|
|
2551
|
-
FlashMinterNotSet: GenericPalletError
|
|
2551
|
+
FlashMinterNotSet: GenericPalletError;
|
|
2552
2552
|
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Invalid liquidation data provided
|
|
2555
2555
|
**/
|
|
2556
|
-
InvalidLiquidationData: GenericPalletError
|
|
2556
|
+
InvalidLiquidationData: GenericPalletError;
|
|
2557
2557
|
|
|
2558
2558
|
/**
|
|
2559
2559
|
* Generic pallet error
|
|
2560
2560
|
**/
|
|
2561
|
-
[error: string]: GenericPalletError
|
|
2561
|
+
[error: string]: GenericPalletError;
|
|
2562
2562
|
};
|
|
2563
2563
|
/**
|
|
2564
2564
|
* Pallet `HSM`'s errors
|
|
@@ -2569,153 +2569,146 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2569
2569
|
*
|
|
2570
2570
|
* The operation attempted to use an asset that is not registered as an approved collateral.
|
|
2571
2571
|
**/
|
|
2572
|
-
AssetNotApproved: GenericPalletError
|
|
2572
|
+
AssetNotApproved: GenericPalletError;
|
|
2573
2573
|
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Asset is already approved as collateral
|
|
2576
2576
|
*
|
|
2577
2577
|
* Attempted to add an asset that is already registered as a collateral.
|
|
2578
2578
|
**/
|
|
2579
|
-
AssetAlreadyApproved: GenericPalletError
|
|
2579
|
+
AssetAlreadyApproved: GenericPalletError;
|
|
2580
2580
|
|
|
2581
2581
|
/**
|
|
2582
2582
|
* Another asset from the same pool is already approved
|
|
2583
2583
|
*
|
|
2584
2584
|
* Only one asset from each StableSwap pool can be used as collateral.
|
|
2585
2585
|
**/
|
|
2586
|
-
PoolAlreadyHasCollateral: GenericPalletError
|
|
2586
|
+
PoolAlreadyHasCollateral: GenericPalletError;
|
|
2587
2587
|
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Invalid asset pair, must be Hollar and approved collateral
|
|
2590
2590
|
*
|
|
2591
2591
|
* The asset pair for buy/sell operations must include Hollar as one side and an approved collateral as the other.
|
|
2592
2592
|
**/
|
|
2593
|
-
InvalidAssetPair: GenericPalletError
|
|
2593
|
+
InvalidAssetPair: GenericPalletError;
|
|
2594
2594
|
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Max buy price exceeded
|
|
2597
2597
|
*
|
|
2598
2598
|
* The calculated buy price exceeds the maximum allowed buy price for the collateral.
|
|
2599
2599
|
**/
|
|
2600
|
-
MaxBuyPriceExceeded: GenericPalletError
|
|
2600
|
+
MaxBuyPriceExceeded: GenericPalletError;
|
|
2601
2601
|
|
|
2602
2602
|
/**
|
|
2603
2603
|
* Max buy back amount in single block exceeded
|
|
2604
2604
|
*
|
|
2605
2605
|
* The amount of Hollar being sold to HSM exceeds the maximum allowed in a single block for this collateral.
|
|
2606
2606
|
**/
|
|
2607
|
-
MaxBuyBackExceeded: GenericPalletError
|
|
2607
|
+
MaxBuyBackExceeded: GenericPalletError;
|
|
2608
2608
|
|
|
2609
2609
|
/**
|
|
2610
2610
|
* Max holding amount for collateral exceeded
|
|
2611
2611
|
*
|
|
2612
2612
|
* The operation would cause the HSM to hold more of the collateral than the configured maximum.
|
|
2613
2613
|
**/
|
|
2614
|
-
MaxHoldingExceeded: GenericPalletError
|
|
2614
|
+
MaxHoldingExceeded: GenericPalletError;
|
|
2615
2615
|
|
|
2616
2616
|
/**
|
|
2617
2617
|
* Slippage limit exceeded
|
|
2618
2618
|
*
|
|
2619
2619
|
* The calculated amount is worse than the provided slippage limit.
|
|
2620
2620
|
**/
|
|
2621
|
-
SlippageLimitExceeded: GenericPalletError
|
|
2621
|
+
SlippageLimitExceeded: GenericPalletError;
|
|
2622
2622
|
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Invalid EVM contract interaction
|
|
2625
2625
|
*
|
|
2626
2626
|
* The call to the EVM contract (GHO Hollar token) failed.
|
|
2627
2627
|
**/
|
|
2628
|
-
InvalidEVMInteraction: GenericPalletError
|
|
2628
|
+
InvalidEVMInteraction: GenericPalletError;
|
|
2629
2629
|
|
|
2630
2630
|
/**
|
|
2631
2631
|
* Decimal retrieval failed
|
|
2632
2632
|
*
|
|
2633
2633
|
* Failed to retrieve the decimal information for an asset.
|
|
2634
2634
|
**/
|
|
2635
|
-
DecimalRetrievalFailed: GenericPalletError
|
|
2635
|
+
DecimalRetrievalFailed: GenericPalletError;
|
|
2636
2636
|
|
|
2637
2637
|
/**
|
|
2638
2638
|
* No arbitrage opportunity
|
|
2639
2639
|
*
|
|
2640
2640
|
* There is no profitable arbitrage opportunity for the specified collateral.
|
|
2641
2641
|
**/
|
|
2642
|
-
NoArbitrageOpportunity: GenericPalletError
|
|
2643
|
-
|
|
2644
|
-
/**
|
|
2645
|
-
* Offchain lock error
|
|
2646
|
-
*
|
|
2647
|
-
* Failed to acquire the lock for offchain workers, likely because another operation is in progress.
|
|
2648
|
-
**/
|
|
2649
|
-
OffchainLockError: GenericPalletError<Rv>;
|
|
2642
|
+
NoArbitrageOpportunity: GenericPalletError;
|
|
2650
2643
|
|
|
2651
2644
|
/**
|
|
2652
2645
|
* Asset not in the pool
|
|
2653
2646
|
*
|
|
2654
2647
|
* The specified asset was not found in the pool.
|
|
2655
2648
|
**/
|
|
2656
|
-
AssetNotFound: GenericPalletError
|
|
2649
|
+
AssetNotFound: GenericPalletError;
|
|
2657
2650
|
|
|
2658
2651
|
/**
|
|
2659
2652
|
* Provided pool state is invalid
|
|
2660
2653
|
*
|
|
2661
2654
|
* The retrieved pool state has inconsistent or invalid data.
|
|
2662
2655
|
**/
|
|
2663
|
-
InvalidPoolState: GenericPalletError
|
|
2656
|
+
InvalidPoolState: GenericPalletError;
|
|
2664
2657
|
|
|
2665
2658
|
/**
|
|
2666
2659
|
* Collateral is not empty
|
|
2667
2660
|
*
|
|
2668
2661
|
* Cannot remove a collateral asset that still has a non-zero balance in the HSM account.
|
|
2669
2662
|
**/
|
|
2670
|
-
CollateralNotEmpty: GenericPalletError
|
|
2663
|
+
CollateralNotEmpty: GenericPalletError;
|
|
2671
2664
|
|
|
2672
2665
|
/**
|
|
2673
2666
|
* Asset not in the pool
|
|
2674
2667
|
*
|
|
2675
2668
|
* The collateral asset is not present in the specified pool.
|
|
2676
2669
|
**/
|
|
2677
|
-
AssetNotInPool: GenericPalletError
|
|
2670
|
+
AssetNotInPool: GenericPalletError;
|
|
2678
2671
|
|
|
2679
2672
|
/**
|
|
2680
2673
|
* Hollar is not in the pool
|
|
2681
2674
|
*
|
|
2682
2675
|
* The Hollar asset is not present in the specified pool.
|
|
2683
2676
|
**/
|
|
2684
|
-
HollarNotInPool: GenericPalletError
|
|
2677
|
+
HollarNotInPool: GenericPalletError;
|
|
2685
2678
|
|
|
2686
2679
|
/**
|
|
2687
2680
|
* Insufficient collateral balance
|
|
2688
2681
|
*
|
|
2689
2682
|
* The HSM does not have enough of the collateral asset to complete the operation.
|
|
2690
2683
|
**/
|
|
2691
|
-
InsufficientCollateralBalance: GenericPalletError
|
|
2684
|
+
InsufficientCollateralBalance: GenericPalletError;
|
|
2692
2685
|
|
|
2693
2686
|
/**
|
|
2694
2687
|
* GHO Contract address not found
|
|
2695
2688
|
*
|
|
2696
2689
|
* The EVM address for the GHO (Hollar) token contract was not found.
|
|
2697
2690
|
**/
|
|
2698
|
-
HollarContractAddressNotFound: GenericPalletError
|
|
2691
|
+
HollarContractAddressNotFound: GenericPalletError;
|
|
2699
2692
|
|
|
2700
2693
|
/**
|
|
2701
2694
|
* HSM contains maximum number of allowed collateral assets.
|
|
2702
2695
|
**/
|
|
2703
|
-
MaxNumberOfCollateralsReached: GenericPalletError
|
|
2696
|
+
MaxNumberOfCollateralsReached: GenericPalletError;
|
|
2704
2697
|
|
|
2705
2698
|
/**
|
|
2706
2699
|
* Flash minter address not set
|
|
2707
2700
|
**/
|
|
2708
|
-
FlashMinterNotSet: GenericPalletError
|
|
2701
|
+
FlashMinterNotSet: GenericPalletError;
|
|
2709
2702
|
|
|
2710
2703
|
/**
|
|
2711
2704
|
* Provided arbitrage data is invalid
|
|
2712
2705
|
**/
|
|
2713
|
-
InvalidArbitrageData: GenericPalletError
|
|
2706
|
+
InvalidArbitrageData: GenericPalletError;
|
|
2714
2707
|
|
|
2715
2708
|
/**
|
|
2716
2709
|
* Generic pallet error
|
|
2717
2710
|
**/
|
|
2718
|
-
[error: string]: GenericPalletError
|
|
2711
|
+
[error: string]: GenericPalletError;
|
|
2719
2712
|
};
|
|
2720
2713
|
/**
|
|
2721
2714
|
* Pallet `Tokens`'s errors
|
|
@@ -2724,43 +2717,43 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2724
2717
|
/**
|
|
2725
2718
|
* The balance is too low
|
|
2726
2719
|
**/
|
|
2727
|
-
BalanceTooLow: GenericPalletError
|
|
2720
|
+
BalanceTooLow: GenericPalletError;
|
|
2728
2721
|
|
|
2729
2722
|
/**
|
|
2730
2723
|
* Cannot convert Amount into Balance type
|
|
2731
2724
|
**/
|
|
2732
|
-
AmountIntoBalanceFailed: GenericPalletError
|
|
2725
|
+
AmountIntoBalanceFailed: GenericPalletError;
|
|
2733
2726
|
|
|
2734
2727
|
/**
|
|
2735
2728
|
* Failed because liquidity restrictions due to locking
|
|
2736
2729
|
**/
|
|
2737
|
-
LiquidityRestrictions: GenericPalletError
|
|
2730
|
+
LiquidityRestrictions: GenericPalletError;
|
|
2738
2731
|
|
|
2739
2732
|
/**
|
|
2740
2733
|
* Failed because the maximum locks was exceeded
|
|
2741
2734
|
**/
|
|
2742
|
-
MaxLocksExceeded: GenericPalletError
|
|
2735
|
+
MaxLocksExceeded: GenericPalletError;
|
|
2743
2736
|
|
|
2744
2737
|
/**
|
|
2745
2738
|
* Transfer/payment would kill account
|
|
2746
2739
|
**/
|
|
2747
|
-
KeepAlive: GenericPalletError
|
|
2740
|
+
KeepAlive: GenericPalletError;
|
|
2748
2741
|
|
|
2749
2742
|
/**
|
|
2750
2743
|
* Value too low to create account due to existential deposit
|
|
2751
2744
|
**/
|
|
2752
|
-
ExistentialDeposit: GenericPalletError
|
|
2745
|
+
ExistentialDeposit: GenericPalletError;
|
|
2753
2746
|
|
|
2754
2747
|
/**
|
|
2755
2748
|
* Beneficiary account must pre-exist
|
|
2756
2749
|
**/
|
|
2757
|
-
DeadAccount: GenericPalletError
|
|
2758
|
-
TooManyReserves: GenericPalletError
|
|
2750
|
+
DeadAccount: GenericPalletError;
|
|
2751
|
+
TooManyReserves: GenericPalletError;
|
|
2759
2752
|
|
|
2760
2753
|
/**
|
|
2761
2754
|
* Generic pallet error
|
|
2762
2755
|
**/
|
|
2763
|
-
[error: string]: GenericPalletError
|
|
2756
|
+
[error: string]: GenericPalletError;
|
|
2764
2757
|
};
|
|
2765
2758
|
/**
|
|
2766
2759
|
* Pallet `Currencies`'s errors
|
|
@@ -2769,27 +2762,27 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2769
2762
|
/**
|
|
2770
2763
|
* Unable to convert the Amount type into Balance.
|
|
2771
2764
|
**/
|
|
2772
|
-
AmountIntoBalanceFailed: GenericPalletError
|
|
2765
|
+
AmountIntoBalanceFailed: GenericPalletError;
|
|
2773
2766
|
|
|
2774
2767
|
/**
|
|
2775
2768
|
* Balance is too low.
|
|
2776
2769
|
**/
|
|
2777
|
-
BalanceTooLow: GenericPalletError
|
|
2770
|
+
BalanceTooLow: GenericPalletError;
|
|
2778
2771
|
|
|
2779
2772
|
/**
|
|
2780
2773
|
* Deposit result is not expected
|
|
2781
2774
|
**/
|
|
2782
|
-
DepositFailed: GenericPalletError
|
|
2775
|
+
DepositFailed: GenericPalletError;
|
|
2783
2776
|
|
|
2784
2777
|
/**
|
|
2785
2778
|
* Operation is not supported for this currency
|
|
2786
2779
|
**/
|
|
2787
|
-
NotSupported: GenericPalletError
|
|
2780
|
+
NotSupported: GenericPalletError;
|
|
2788
2781
|
|
|
2789
2782
|
/**
|
|
2790
2783
|
* Generic pallet error
|
|
2791
2784
|
**/
|
|
2792
|
-
[error: string]: GenericPalletError
|
|
2785
|
+
[error: string]: GenericPalletError;
|
|
2793
2786
|
};
|
|
2794
2787
|
/**
|
|
2795
2788
|
* Pallet `Vesting`'s errors
|
|
@@ -2798,37 +2791,37 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2798
2791
|
/**
|
|
2799
2792
|
* Vesting period is zero
|
|
2800
2793
|
**/
|
|
2801
|
-
ZeroVestingPeriod: GenericPalletError
|
|
2794
|
+
ZeroVestingPeriod: GenericPalletError;
|
|
2802
2795
|
|
|
2803
2796
|
/**
|
|
2804
2797
|
* Number of vests is zero
|
|
2805
2798
|
**/
|
|
2806
|
-
ZeroVestingPeriodCount: GenericPalletError
|
|
2799
|
+
ZeroVestingPeriodCount: GenericPalletError;
|
|
2807
2800
|
|
|
2808
2801
|
/**
|
|
2809
2802
|
* Insufficient amount of balance to lock
|
|
2810
2803
|
**/
|
|
2811
|
-
InsufficientBalanceToLock: GenericPalletError
|
|
2804
|
+
InsufficientBalanceToLock: GenericPalletError;
|
|
2812
2805
|
|
|
2813
2806
|
/**
|
|
2814
2807
|
* This account have too many vesting schedules
|
|
2815
2808
|
**/
|
|
2816
|
-
TooManyVestingSchedules: GenericPalletError
|
|
2809
|
+
TooManyVestingSchedules: GenericPalletError;
|
|
2817
2810
|
|
|
2818
2811
|
/**
|
|
2819
2812
|
* The vested transfer amount is too low
|
|
2820
2813
|
**/
|
|
2821
|
-
AmountLow: GenericPalletError
|
|
2814
|
+
AmountLow: GenericPalletError;
|
|
2822
2815
|
|
|
2823
2816
|
/**
|
|
2824
2817
|
* Failed because the maximum vesting schedules was exceeded
|
|
2825
2818
|
**/
|
|
2826
|
-
MaxVestingSchedulesExceeded: GenericPalletError
|
|
2819
|
+
MaxVestingSchedulesExceeded: GenericPalletError;
|
|
2827
2820
|
|
|
2828
2821
|
/**
|
|
2829
2822
|
* Generic pallet error
|
|
2830
2823
|
**/
|
|
2831
|
-
[error: string]: GenericPalletError
|
|
2824
|
+
[error: string]: GenericPalletError;
|
|
2832
2825
|
};
|
|
2833
2826
|
/**
|
|
2834
2827
|
* Pallet `EVM`'s errors
|
|
@@ -2837,72 +2830,72 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2837
2830
|
/**
|
|
2838
2831
|
* Not enough balance to perform action
|
|
2839
2832
|
**/
|
|
2840
|
-
BalanceLow: GenericPalletError
|
|
2833
|
+
BalanceLow: GenericPalletError;
|
|
2841
2834
|
|
|
2842
2835
|
/**
|
|
2843
2836
|
* Calculating total fee overflowed
|
|
2844
2837
|
**/
|
|
2845
|
-
FeeOverflow: GenericPalletError
|
|
2838
|
+
FeeOverflow: GenericPalletError;
|
|
2846
2839
|
|
|
2847
2840
|
/**
|
|
2848
2841
|
* Calculating total payment overflowed
|
|
2849
2842
|
**/
|
|
2850
|
-
PaymentOverflow: GenericPalletError
|
|
2843
|
+
PaymentOverflow: GenericPalletError;
|
|
2851
2844
|
|
|
2852
2845
|
/**
|
|
2853
2846
|
* Withdraw fee failed
|
|
2854
2847
|
**/
|
|
2855
|
-
WithdrawFailed: GenericPalletError
|
|
2848
|
+
WithdrawFailed: GenericPalletError;
|
|
2856
2849
|
|
|
2857
2850
|
/**
|
|
2858
2851
|
* Gas price is too low.
|
|
2859
2852
|
**/
|
|
2860
|
-
GasPriceTooLow: GenericPalletError
|
|
2853
|
+
GasPriceTooLow: GenericPalletError;
|
|
2861
2854
|
|
|
2862
2855
|
/**
|
|
2863
2856
|
* Nonce is invalid
|
|
2864
2857
|
**/
|
|
2865
|
-
InvalidNonce: GenericPalletError
|
|
2858
|
+
InvalidNonce: GenericPalletError;
|
|
2866
2859
|
|
|
2867
2860
|
/**
|
|
2868
2861
|
* Gas limit is too low.
|
|
2869
2862
|
**/
|
|
2870
|
-
GasLimitTooLow: GenericPalletError
|
|
2863
|
+
GasLimitTooLow: GenericPalletError;
|
|
2871
2864
|
|
|
2872
2865
|
/**
|
|
2873
2866
|
* Gas limit is too high.
|
|
2874
2867
|
**/
|
|
2875
|
-
GasLimitTooHigh: GenericPalletError
|
|
2868
|
+
GasLimitTooHigh: GenericPalletError;
|
|
2876
2869
|
|
|
2877
2870
|
/**
|
|
2878
2871
|
* The chain id is invalid.
|
|
2879
2872
|
**/
|
|
2880
|
-
InvalidChainId: GenericPalletError
|
|
2873
|
+
InvalidChainId: GenericPalletError;
|
|
2881
2874
|
|
|
2882
2875
|
/**
|
|
2883
2876
|
* the signature is invalid.
|
|
2884
2877
|
**/
|
|
2885
|
-
InvalidSignature: GenericPalletError
|
|
2878
|
+
InvalidSignature: GenericPalletError;
|
|
2886
2879
|
|
|
2887
2880
|
/**
|
|
2888
2881
|
* EVM reentrancy
|
|
2889
2882
|
**/
|
|
2890
|
-
Reentrancy: GenericPalletError
|
|
2883
|
+
Reentrancy: GenericPalletError;
|
|
2891
2884
|
|
|
2892
2885
|
/**
|
|
2893
2886
|
* EIP-3607,
|
|
2894
2887
|
**/
|
|
2895
|
-
TransactionMustComeFromEOA: GenericPalletError
|
|
2888
|
+
TransactionMustComeFromEOA: GenericPalletError;
|
|
2896
2889
|
|
|
2897
2890
|
/**
|
|
2898
2891
|
* Undefined error.
|
|
2899
2892
|
**/
|
|
2900
|
-
Undefined: GenericPalletError
|
|
2893
|
+
Undefined: GenericPalletError;
|
|
2901
2894
|
|
|
2902
2895
|
/**
|
|
2903
2896
|
* Generic pallet error
|
|
2904
2897
|
**/
|
|
2905
|
-
[error: string]: GenericPalletError
|
|
2898
|
+
[error: string]: GenericPalletError;
|
|
2906
2899
|
};
|
|
2907
2900
|
/**
|
|
2908
2901
|
* Pallet `Ethereum`'s errors
|
|
@@ -2911,17 +2904,17 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2911
2904
|
/**
|
|
2912
2905
|
* Signature is invalid.
|
|
2913
2906
|
**/
|
|
2914
|
-
InvalidSignature: GenericPalletError
|
|
2907
|
+
InvalidSignature: GenericPalletError;
|
|
2915
2908
|
|
|
2916
2909
|
/**
|
|
2917
2910
|
* Pre-log is present, therefore transact is not allowed.
|
|
2918
2911
|
**/
|
|
2919
|
-
PreLogExists: GenericPalletError
|
|
2912
|
+
PreLogExists: GenericPalletError;
|
|
2920
2913
|
|
|
2921
2914
|
/**
|
|
2922
2915
|
* Generic pallet error
|
|
2923
2916
|
**/
|
|
2924
|
-
[error: string]: GenericPalletError
|
|
2917
|
+
[error: string]: GenericPalletError;
|
|
2925
2918
|
};
|
|
2926
2919
|
/**
|
|
2927
2920
|
* Pallet `EVMAccounts`'s errors
|
|
@@ -2930,27 +2923,27 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2930
2923
|
/**
|
|
2931
2924
|
* Active EVM account cannot be bound
|
|
2932
2925
|
**/
|
|
2933
|
-
TruncatedAccountAlreadyUsed: GenericPalletError
|
|
2926
|
+
TruncatedAccountAlreadyUsed: GenericPalletError;
|
|
2934
2927
|
|
|
2935
2928
|
/**
|
|
2936
2929
|
* Address is already bound
|
|
2937
2930
|
**/
|
|
2938
|
-
AddressAlreadyBound: GenericPalletError
|
|
2931
|
+
AddressAlreadyBound: GenericPalletError;
|
|
2939
2932
|
|
|
2940
2933
|
/**
|
|
2941
2934
|
* Bound address cannot be used
|
|
2942
2935
|
**/
|
|
2943
|
-
BoundAddressCannotBeUsed: GenericPalletError
|
|
2936
|
+
BoundAddressCannotBeUsed: GenericPalletError;
|
|
2944
2937
|
|
|
2945
2938
|
/**
|
|
2946
2939
|
* Address not whitelisted
|
|
2947
2940
|
**/
|
|
2948
|
-
AddressNotWhitelisted: GenericPalletError
|
|
2941
|
+
AddressNotWhitelisted: GenericPalletError;
|
|
2949
2942
|
|
|
2950
2943
|
/**
|
|
2951
2944
|
* Generic pallet error
|
|
2952
2945
|
**/
|
|
2953
|
-
[error: string]: GenericPalletError
|
|
2946
|
+
[error: string]: GenericPalletError;
|
|
2954
2947
|
};
|
|
2955
2948
|
/**
|
|
2956
2949
|
* Pallet `XYKLiquidityMining`'s errors
|
|
@@ -2959,72 +2952,72 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2959
2952
|
/**
|
|
2960
2953
|
* Nft pallet didn't return an owner.
|
|
2961
2954
|
**/
|
|
2962
|
-
CantFindDepositOwner: GenericPalletError
|
|
2955
|
+
CantFindDepositOwner: GenericPalletError;
|
|
2963
2956
|
|
|
2964
2957
|
/**
|
|
2965
2958
|
* Account balance of XYK pool shares is not sufficient.
|
|
2966
2959
|
**/
|
|
2967
|
-
InsufficientXykSharesBalance: GenericPalletError
|
|
2960
|
+
InsufficientXykSharesBalance: GenericPalletError;
|
|
2968
2961
|
|
|
2969
2962
|
/**
|
|
2970
2963
|
* XYK pool does not exist
|
|
2971
2964
|
**/
|
|
2972
|
-
XykPoolDoesntExist: GenericPalletError
|
|
2965
|
+
XykPoolDoesntExist: GenericPalletError;
|
|
2973
2966
|
|
|
2974
2967
|
/**
|
|
2975
2968
|
* Account is not deposit owner.
|
|
2976
2969
|
**/
|
|
2977
|
-
NotDepositOwner: GenericPalletError
|
|
2970
|
+
NotDepositOwner: GenericPalletError;
|
|
2978
2971
|
|
|
2979
2972
|
/**
|
|
2980
2973
|
* XYK did not return assets for given pool id
|
|
2981
2974
|
**/
|
|
2982
|
-
CantGetXykAssets: GenericPalletError
|
|
2975
|
+
CantGetXykAssets: GenericPalletError;
|
|
2983
2976
|
|
|
2984
2977
|
/**
|
|
2985
2978
|
* Deposit data not found
|
|
2986
2979
|
**/
|
|
2987
|
-
DepositDataNotFound: GenericPalletError
|
|
2980
|
+
DepositDataNotFound: GenericPalletError;
|
|
2988
2981
|
|
|
2989
2982
|
/**
|
|
2990
2983
|
* Calculated reward to claim is 0.
|
|
2991
2984
|
**/
|
|
2992
|
-
ZeroClaimedRewards: GenericPalletError
|
|
2985
|
+
ZeroClaimedRewards: GenericPalletError;
|
|
2993
2986
|
|
|
2994
2987
|
/**
|
|
2995
2988
|
* Asset is not in the `AssetPair`.
|
|
2996
2989
|
**/
|
|
2997
|
-
AssetNotInAssetPair: GenericPalletError
|
|
2990
|
+
AssetNotInAssetPair: GenericPalletError;
|
|
2998
2991
|
|
|
2999
2992
|
/**
|
|
3000
2993
|
* Provided `AssetPair` is not used by the deposit.
|
|
3001
2994
|
**/
|
|
3002
|
-
InvalidAssetPair: GenericPalletError
|
|
2995
|
+
InvalidAssetPair: GenericPalletError;
|
|
3003
2996
|
|
|
3004
2997
|
/**
|
|
3005
2998
|
* Asset is not registered in asset registry.
|
|
3006
2999
|
**/
|
|
3007
|
-
AssetNotRegistered: GenericPalletError
|
|
3000
|
+
AssetNotRegistered: GenericPalletError;
|
|
3008
3001
|
|
|
3009
3002
|
/**
|
|
3010
3003
|
* Failed to calculate `pot`'s account.
|
|
3011
3004
|
**/
|
|
3012
|
-
FailToGetPotId: GenericPalletError
|
|
3005
|
+
FailToGetPotId: GenericPalletError;
|
|
3013
3006
|
|
|
3014
3007
|
/**
|
|
3015
3008
|
* No global farm - yield farm pairs specified to join
|
|
3016
3009
|
**/
|
|
3017
|
-
NoFarmsSpecified: GenericPalletError
|
|
3010
|
+
NoFarmsSpecified: GenericPalletError;
|
|
3018
3011
|
|
|
3019
3012
|
/**
|
|
3020
3013
|
* Failed to calculate value of xyk shares
|
|
3021
3014
|
**/
|
|
3022
|
-
FailedToValueShares: GenericPalletError
|
|
3015
|
+
FailedToValueShares: GenericPalletError;
|
|
3023
3016
|
|
|
3024
3017
|
/**
|
|
3025
3018
|
* Generic pallet error
|
|
3026
3019
|
**/
|
|
3027
|
-
[error: string]: GenericPalletError
|
|
3020
|
+
[error: string]: GenericPalletError;
|
|
3028
3021
|
};
|
|
3029
3022
|
/**
|
|
3030
3023
|
* Pallet `XYKWarehouseLM`'s errors
|
|
@@ -3033,154 +3026,154 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3033
3026
|
/**
|
|
3034
3027
|
* Global farm does not exist.
|
|
3035
3028
|
**/
|
|
3036
|
-
GlobalFarmNotFound: GenericPalletError
|
|
3029
|
+
GlobalFarmNotFound: GenericPalletError;
|
|
3037
3030
|
|
|
3038
3031
|
/**
|
|
3039
3032
|
* Yield farm does not exist.
|
|
3040
3033
|
**/
|
|
3041
|
-
YieldFarmNotFound: GenericPalletError
|
|
3034
|
+
YieldFarmNotFound: GenericPalletError;
|
|
3042
3035
|
|
|
3043
3036
|
/**
|
|
3044
3037
|
* Multiple claims in the same period is not allowed.
|
|
3045
3038
|
**/
|
|
3046
|
-
DoubleClaimInPeriod: GenericPalletError
|
|
3039
|
+
DoubleClaimInPeriod: GenericPalletError;
|
|
3047
3040
|
|
|
3048
3041
|
/**
|
|
3049
3042
|
* Liquidity mining is canceled.
|
|
3050
3043
|
**/
|
|
3051
|
-
LiquidityMiningCanceled: GenericPalletError
|
|
3044
|
+
LiquidityMiningCanceled: GenericPalletError;
|
|
3052
3045
|
|
|
3053
3046
|
/**
|
|
3054
3047
|
* Liquidity mining is not canceled.
|
|
3055
3048
|
**/
|
|
3056
|
-
LiquidityMiningIsActive: GenericPalletError
|
|
3049
|
+
LiquidityMiningIsActive: GenericPalletError;
|
|
3057
3050
|
|
|
3058
3051
|
/**
|
|
3059
3052
|
* Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
3060
3053
|
**/
|
|
3061
|
-
LiquidityMiningIsNotStopped: GenericPalletError
|
|
3054
|
+
LiquidityMiningIsNotStopped: GenericPalletError;
|
|
3062
3055
|
|
|
3063
3056
|
/**
|
|
3064
3057
|
* Account is not allowed to perform action.
|
|
3065
3058
|
**/
|
|
3066
|
-
Forbidden: GenericPalletError
|
|
3059
|
+
Forbidden: GenericPalletError;
|
|
3067
3060
|
|
|
3068
3061
|
/**
|
|
3069
3062
|
* Yield farm multiplier can't be 0.
|
|
3070
3063
|
**/
|
|
3071
|
-
InvalidMultiplier: GenericPalletError
|
|
3064
|
+
InvalidMultiplier: GenericPalletError;
|
|
3072
3065
|
|
|
3073
3066
|
/**
|
|
3074
3067
|
* Yield farm with given `amm_pool_id` already exists in global farm.
|
|
3075
3068
|
**/
|
|
3076
|
-
YieldFarmAlreadyExists: GenericPalletError
|
|
3069
|
+
YieldFarmAlreadyExists: GenericPalletError;
|
|
3077
3070
|
|
|
3078
3071
|
/**
|
|
3079
3072
|
* Loyalty curve's initial reward percentage is not valid. Valid range is: [0, 1).
|
|
3080
3073
|
**/
|
|
3081
|
-
InvalidInitialRewardPercentage: GenericPalletError
|
|
3074
|
+
InvalidInitialRewardPercentage: GenericPalletError;
|
|
3082
3075
|
|
|
3083
3076
|
/**
|
|
3084
3077
|
* One or more yield farms exist in global farm.
|
|
3085
3078
|
**/
|
|
3086
|
-
GlobalFarmIsNotEmpty: GenericPalletError
|
|
3079
|
+
GlobalFarmIsNotEmpty: GenericPalletError;
|
|
3087
3080
|
|
|
3088
3081
|
/**
|
|
3089
3082
|
* Farm's `incentivized_asset` is missing in provided asset pair.
|
|
3090
3083
|
**/
|
|
3091
|
-
MissingIncentivizedAsset: GenericPalletError
|
|
3084
|
+
MissingIncentivizedAsset: GenericPalletError;
|
|
3092
3085
|
|
|
3093
3086
|
/**
|
|
3094
3087
|
* Reward currency balance is not sufficient.
|
|
3095
3088
|
**/
|
|
3096
|
-
InsufficientRewardCurrencyBalance: GenericPalletError
|
|
3089
|
+
InsufficientRewardCurrencyBalance: GenericPalletError;
|
|
3097
3090
|
|
|
3098
3091
|
/**
|
|
3099
3092
|
* Blocks per period can't be 0.
|
|
3100
3093
|
**/
|
|
3101
|
-
InvalidBlocksPerPeriod: GenericPalletError
|
|
3094
|
+
InvalidBlocksPerPeriod: GenericPalletError;
|
|
3102
3095
|
|
|
3103
3096
|
/**
|
|
3104
3097
|
* Yield per period can't be 0.
|
|
3105
3098
|
**/
|
|
3106
|
-
InvalidYieldPerPeriod: GenericPalletError
|
|
3099
|
+
InvalidYieldPerPeriod: GenericPalletError;
|
|
3107
3100
|
|
|
3108
3101
|
/**
|
|
3109
3102
|
* Total rewards is less than `MinTotalFarmRewards`.
|
|
3110
3103
|
**/
|
|
3111
|
-
InvalidTotalRewards: GenericPalletError
|
|
3104
|
+
InvalidTotalRewards: GenericPalletError;
|
|
3112
3105
|
|
|
3113
3106
|
/**
|
|
3114
3107
|
* Planned yielding periods is less than `MinPlannedYieldingPeriods`.
|
|
3115
3108
|
**/
|
|
3116
|
-
InvalidPlannedYieldingPeriods: GenericPalletError
|
|
3109
|
+
InvalidPlannedYieldingPeriods: GenericPalletError;
|
|
3117
3110
|
|
|
3118
3111
|
/**
|
|
3119
3112
|
* Maximum number of locks reached for deposit.
|
|
3120
3113
|
**/
|
|
3121
|
-
MaxEntriesPerDeposit: GenericPalletError
|
|
3114
|
+
MaxEntriesPerDeposit: GenericPalletError;
|
|
3122
3115
|
|
|
3123
3116
|
/**
|
|
3124
3117
|
* Trying to lock LP shares into already locked yield farm.
|
|
3125
3118
|
**/
|
|
3126
|
-
DoubleLock: GenericPalletError
|
|
3119
|
+
DoubleLock: GenericPalletError;
|
|
3127
3120
|
|
|
3128
3121
|
/**
|
|
3129
3122
|
* Yield farm entry doesn't exist for given deposit.
|
|
3130
3123
|
**/
|
|
3131
|
-
YieldFarmEntryNotFound: GenericPalletError
|
|
3124
|
+
YieldFarmEntryNotFound: GenericPalletError;
|
|
3132
3125
|
|
|
3133
3126
|
/**
|
|
3134
3127
|
* Max number of yield farms in global farm was reached. Global farm can't accept new
|
|
3135
3128
|
* yield farms until some yield farm is not removed from storage.
|
|
3136
3129
|
**/
|
|
3137
|
-
GlobalFarmIsFull: GenericPalletError
|
|
3130
|
+
GlobalFarmIsFull: GenericPalletError;
|
|
3138
3131
|
|
|
3139
3132
|
/**
|
|
3140
3133
|
* Invalid min. deposit was set for global farm.
|
|
3141
3134
|
**/
|
|
3142
|
-
InvalidMinDeposit: GenericPalletError
|
|
3135
|
+
InvalidMinDeposit: GenericPalletError;
|
|
3143
3136
|
|
|
3144
3137
|
/**
|
|
3145
3138
|
* Price adjustment multiplier can't be 0.
|
|
3146
3139
|
**/
|
|
3147
|
-
InvalidPriceAdjustment: GenericPalletError
|
|
3140
|
+
InvalidPriceAdjustment: GenericPalletError;
|
|
3148
3141
|
|
|
3149
3142
|
/**
|
|
3150
3143
|
* Account creation from id failed.
|
|
3151
3144
|
**/
|
|
3152
|
-
ErrorGetAccountId: GenericPalletError
|
|
3145
|
+
ErrorGetAccountId: GenericPalletError;
|
|
3153
3146
|
|
|
3154
3147
|
/**
|
|
3155
3148
|
* Value of deposited shares amount in reward currency is bellow min. limit.
|
|
3156
3149
|
**/
|
|
3157
|
-
IncorrectValuedShares: GenericPalletError
|
|
3150
|
+
IncorrectValuedShares: GenericPalletError;
|
|
3158
3151
|
|
|
3159
3152
|
/**
|
|
3160
3153
|
* `reward_currency` is not registered in asset registry.
|
|
3161
3154
|
**/
|
|
3162
|
-
RewardCurrencyNotRegistered: GenericPalletError
|
|
3155
|
+
RewardCurrencyNotRegistered: GenericPalletError;
|
|
3163
3156
|
|
|
3164
3157
|
/**
|
|
3165
3158
|
* `incentivized_asset` is not registered in asset registry.
|
|
3166
3159
|
**/
|
|
3167
|
-
IncentivizedAssetNotRegistered: GenericPalletError
|
|
3160
|
+
IncentivizedAssetNotRegistered: GenericPalletError;
|
|
3168
3161
|
|
|
3169
3162
|
/**
|
|
3170
3163
|
* Provided `amm_pool_id` doesn't match deposit's `amm_pool_id`.
|
|
3171
3164
|
**/
|
|
3172
|
-
AmmPoolIdMismatch: GenericPalletError
|
|
3165
|
+
AmmPoolIdMismatch: GenericPalletError;
|
|
3173
3166
|
|
|
3174
3167
|
/**
|
|
3175
3168
|
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
3176
3169
|
* to protocol maintainers.
|
|
3177
3170
|
**/
|
|
3178
|
-
InconsistentState: GenericPalletError
|
|
3171
|
+
InconsistentState: GenericPalletError;
|
|
3179
3172
|
|
|
3180
3173
|
/**
|
|
3181
3174
|
* Generic pallet error
|
|
3182
3175
|
**/
|
|
3183
|
-
[error: string]: GenericPalletError
|
|
3176
|
+
[error: string]: GenericPalletError;
|
|
3184
3177
|
};
|
|
3185
3178
|
/**
|
|
3186
3179
|
* Pallet `RelayChainInfo`'s errors
|
|
@@ -3189,7 +3182,7 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3189
3182
|
/**
|
|
3190
3183
|
* Generic pallet error
|
|
3191
3184
|
**/
|
|
3192
|
-
[error: string]: GenericPalletError
|
|
3185
|
+
[error: string]: GenericPalletError;
|
|
3193
3186
|
};
|
|
3194
3187
|
/**
|
|
3195
3188
|
* Pallet `DCA`'s errors
|
|
@@ -3198,107 +3191,107 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3198
3191
|
/**
|
|
3199
3192
|
* Schedule not exist
|
|
3200
3193
|
**/
|
|
3201
|
-
ScheduleNotFound: GenericPalletError
|
|
3194
|
+
ScheduleNotFound: GenericPalletError;
|
|
3202
3195
|
|
|
3203
3196
|
/**
|
|
3204
3197
|
* The min trade amount is not reached
|
|
3205
3198
|
**/
|
|
3206
|
-
MinTradeAmountNotReached: GenericPalletError
|
|
3199
|
+
MinTradeAmountNotReached: GenericPalletError;
|
|
3207
3200
|
|
|
3208
3201
|
/**
|
|
3209
3202
|
* Forbidden as the user is not the owner of the schedule
|
|
3210
3203
|
**/
|
|
3211
|
-
Forbidden: GenericPalletError
|
|
3204
|
+
Forbidden: GenericPalletError;
|
|
3212
3205
|
|
|
3213
3206
|
/**
|
|
3214
3207
|
* The next execution block number is not in the future
|
|
3215
3208
|
**/
|
|
3216
|
-
BlockNumberIsNotInFuture: GenericPalletError
|
|
3209
|
+
BlockNumberIsNotInFuture: GenericPalletError;
|
|
3217
3210
|
|
|
3218
3211
|
/**
|
|
3219
3212
|
* Price is unstable as price change from oracle data is bigger than max allowed
|
|
3220
3213
|
**/
|
|
3221
|
-
PriceUnstable: GenericPalletError
|
|
3214
|
+
PriceUnstable: GenericPalletError;
|
|
3222
3215
|
|
|
3223
3216
|
/**
|
|
3224
3217
|
* Order was randomly rescheduled to next block
|
|
3225
3218
|
**/
|
|
3226
|
-
Bumped: GenericPalletError
|
|
3219
|
+
Bumped: GenericPalletError;
|
|
3227
3220
|
|
|
3228
3221
|
/**
|
|
3229
3222
|
* Error occurred when calculating price
|
|
3230
3223
|
**/
|
|
3231
|
-
CalculatingPriceError: GenericPalletError
|
|
3224
|
+
CalculatingPriceError: GenericPalletError;
|
|
3232
3225
|
|
|
3233
3226
|
/**
|
|
3234
3227
|
* The total amount to be reserved is smaller than min budget
|
|
3235
3228
|
**/
|
|
3236
|
-
TotalAmountIsSmallerThanMinBudget: GenericPalletError
|
|
3229
|
+
TotalAmountIsSmallerThanMinBudget: GenericPalletError;
|
|
3237
3230
|
|
|
3238
3231
|
/**
|
|
3239
3232
|
* The budget is too low for executing at least two orders
|
|
3240
3233
|
**/
|
|
3241
|
-
BudgetTooLow: GenericPalletError
|
|
3234
|
+
BudgetTooLow: GenericPalletError;
|
|
3242
3235
|
|
|
3243
3236
|
/**
|
|
3244
3237
|
* There is no free block found to plan DCA execution
|
|
3245
3238
|
**/
|
|
3246
|
-
NoFreeBlockFound: GenericPalletError
|
|
3239
|
+
NoFreeBlockFound: GenericPalletError;
|
|
3247
3240
|
|
|
3248
3241
|
/**
|
|
3249
3242
|
* The DCA schedule has been manually terminated
|
|
3250
3243
|
**/
|
|
3251
|
-
ManuallyTerminated: GenericPalletError
|
|
3244
|
+
ManuallyTerminated: GenericPalletError;
|
|
3252
3245
|
|
|
3253
3246
|
/**
|
|
3254
3247
|
* Max number of retries reached for schedule
|
|
3255
3248
|
**/
|
|
3256
|
-
MaxRetryReached: GenericPalletError
|
|
3249
|
+
MaxRetryReached: GenericPalletError;
|
|
3257
3250
|
|
|
3258
3251
|
/**
|
|
3259
3252
|
* Absolutely trade limit reached, leading to retry
|
|
3260
3253
|
**/
|
|
3261
|
-
TradeLimitReached: GenericPalletError
|
|
3254
|
+
TradeLimitReached: GenericPalletError;
|
|
3262
3255
|
|
|
3263
3256
|
/**
|
|
3264
3257
|
* Slippage limit calculated from oracle is reached, leading to retry
|
|
3265
3258
|
**/
|
|
3266
|
-
SlippageLimitReached: GenericPalletError
|
|
3259
|
+
SlippageLimitReached: GenericPalletError;
|
|
3267
3260
|
|
|
3268
3261
|
/**
|
|
3269
3262
|
* No parent hash has been found from relay chain
|
|
3270
3263
|
**/
|
|
3271
|
-
NoParentHashFound: GenericPalletError
|
|
3264
|
+
NoParentHashFound: GenericPalletError;
|
|
3272
3265
|
|
|
3273
3266
|
/**
|
|
3274
3267
|
* Error that should not really happen only in case of invalid state of the schedule storage entries
|
|
3275
3268
|
**/
|
|
3276
|
-
InvalidState: GenericPalletError
|
|
3269
|
+
InvalidState: GenericPalletError;
|
|
3277
3270
|
|
|
3278
3271
|
/**
|
|
3279
3272
|
* Period should be longer than 5 blocks
|
|
3280
3273
|
**/
|
|
3281
|
-
PeriodTooShort: GenericPalletError
|
|
3274
|
+
PeriodTooShort: GenericPalletError;
|
|
3282
3275
|
|
|
3283
3276
|
/**
|
|
3284
3277
|
* Stability threshold cannot be higher than `MaxConfigurablePriceDifferenceBetweenBlock`
|
|
3285
3278
|
**/
|
|
3286
|
-
StabilityThresholdTooHigh: GenericPalletError
|
|
3279
|
+
StabilityThresholdTooHigh: GenericPalletError;
|
|
3287
3280
|
|
|
3288
3281
|
/**
|
|
3289
3282
|
* User still has active DCA schedules and cannot unlock reserves
|
|
3290
3283
|
**/
|
|
3291
|
-
HasActiveSchedules: GenericPalletError
|
|
3284
|
+
HasActiveSchedules: GenericPalletError;
|
|
3292
3285
|
|
|
3293
3286
|
/**
|
|
3294
3287
|
* No reserves are locked for the user for the given asset
|
|
3295
3288
|
**/
|
|
3296
|
-
NoReservesLocked: GenericPalletError
|
|
3289
|
+
NoReservesLocked: GenericPalletError;
|
|
3297
3290
|
|
|
3298
3291
|
/**
|
|
3299
3292
|
* Generic pallet error
|
|
3300
3293
|
**/
|
|
3301
|
-
[error: string]: GenericPalletError
|
|
3294
|
+
[error: string]: GenericPalletError;
|
|
3302
3295
|
};
|
|
3303
3296
|
/**
|
|
3304
3297
|
* Pallet `Scheduler`'s errors
|
|
@@ -3307,32 +3300,32 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3307
3300
|
/**
|
|
3308
3301
|
* Failed to schedule a call
|
|
3309
3302
|
**/
|
|
3310
|
-
FailedToSchedule: GenericPalletError
|
|
3303
|
+
FailedToSchedule: GenericPalletError;
|
|
3311
3304
|
|
|
3312
3305
|
/**
|
|
3313
3306
|
* Cannot find the scheduled call.
|
|
3314
3307
|
**/
|
|
3315
|
-
NotFound: GenericPalletError
|
|
3308
|
+
NotFound: GenericPalletError;
|
|
3316
3309
|
|
|
3317
3310
|
/**
|
|
3318
3311
|
* Given target block number is in the past.
|
|
3319
3312
|
**/
|
|
3320
|
-
TargetBlockNumberInPast: GenericPalletError
|
|
3313
|
+
TargetBlockNumberInPast: GenericPalletError;
|
|
3321
3314
|
|
|
3322
3315
|
/**
|
|
3323
3316
|
* Reschedule failed because it does not change scheduled time.
|
|
3324
3317
|
**/
|
|
3325
|
-
RescheduleNoChange: GenericPalletError
|
|
3318
|
+
RescheduleNoChange: GenericPalletError;
|
|
3326
3319
|
|
|
3327
3320
|
/**
|
|
3328
3321
|
* Attempt to use a non-named function on a named task.
|
|
3329
3322
|
**/
|
|
3330
|
-
Named: GenericPalletError
|
|
3323
|
+
Named: GenericPalletError;
|
|
3331
3324
|
|
|
3332
3325
|
/**
|
|
3333
3326
|
* Generic pallet error
|
|
3334
3327
|
**/
|
|
3335
|
-
[error: string]: GenericPalletError
|
|
3328
|
+
[error: string]: GenericPalletError;
|
|
3336
3329
|
};
|
|
3337
3330
|
/**
|
|
3338
3331
|
* Pallet `ParachainSystem`'s errors
|
|
@@ -3341,48 +3334,48 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3341
3334
|
/**
|
|
3342
3335
|
* Attempt to upgrade validation function while existing upgrade pending.
|
|
3343
3336
|
**/
|
|
3344
|
-
OverlappingUpgrades: GenericPalletError
|
|
3337
|
+
OverlappingUpgrades: GenericPalletError;
|
|
3345
3338
|
|
|
3346
3339
|
/**
|
|
3347
3340
|
* Polkadot currently prohibits this parachain from upgrading its validation function.
|
|
3348
3341
|
**/
|
|
3349
|
-
ProhibitedByPolkadot: GenericPalletError
|
|
3342
|
+
ProhibitedByPolkadot: GenericPalletError;
|
|
3350
3343
|
|
|
3351
3344
|
/**
|
|
3352
3345
|
* The supplied validation function has compiled into a blob larger than Polkadot is
|
|
3353
3346
|
* willing to run.
|
|
3354
3347
|
**/
|
|
3355
|
-
TooBig: GenericPalletError
|
|
3348
|
+
TooBig: GenericPalletError;
|
|
3356
3349
|
|
|
3357
3350
|
/**
|
|
3358
3351
|
* The inherent which supplies the validation data did not run this block.
|
|
3359
3352
|
**/
|
|
3360
|
-
ValidationDataNotAvailable: GenericPalletError
|
|
3353
|
+
ValidationDataNotAvailable: GenericPalletError;
|
|
3361
3354
|
|
|
3362
3355
|
/**
|
|
3363
3356
|
* The inherent which supplies the host configuration did not run this block.
|
|
3364
3357
|
**/
|
|
3365
|
-
HostConfigurationNotAvailable: GenericPalletError
|
|
3358
|
+
HostConfigurationNotAvailable: GenericPalletError;
|
|
3366
3359
|
|
|
3367
3360
|
/**
|
|
3368
3361
|
* No validation function upgrade is currently scheduled.
|
|
3369
3362
|
**/
|
|
3370
|
-
NotScheduled: GenericPalletError
|
|
3363
|
+
NotScheduled: GenericPalletError;
|
|
3371
3364
|
|
|
3372
3365
|
/**
|
|
3373
3366
|
* No code upgrade has been authorized.
|
|
3374
3367
|
**/
|
|
3375
|
-
NothingAuthorized: GenericPalletError
|
|
3368
|
+
NothingAuthorized: GenericPalletError;
|
|
3376
3369
|
|
|
3377
3370
|
/**
|
|
3378
3371
|
* The given code upgrade has not been authorized.
|
|
3379
3372
|
**/
|
|
3380
|
-
Unauthorized: GenericPalletError
|
|
3373
|
+
Unauthorized: GenericPalletError;
|
|
3381
3374
|
|
|
3382
3375
|
/**
|
|
3383
3376
|
* Generic pallet error
|
|
3384
3377
|
**/
|
|
3385
|
-
[error: string]: GenericPalletError
|
|
3378
|
+
[error: string]: GenericPalletError;
|
|
3386
3379
|
};
|
|
3387
3380
|
/**
|
|
3388
3381
|
* Pallet `PolkadotXcm`'s errors
|
|
@@ -3392,129 +3385,129 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3392
3385
|
* The desired destination was unreachable, generally because there is a no way of routing
|
|
3393
3386
|
* to it.
|
|
3394
3387
|
**/
|
|
3395
|
-
Unreachable: GenericPalletError
|
|
3388
|
+
Unreachable: GenericPalletError;
|
|
3396
3389
|
|
|
3397
3390
|
/**
|
|
3398
3391
|
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
3399
3392
|
* Perhaps a lack of space for buffering the message.
|
|
3400
3393
|
**/
|
|
3401
|
-
SendFailure: GenericPalletError
|
|
3394
|
+
SendFailure: GenericPalletError;
|
|
3402
3395
|
|
|
3403
3396
|
/**
|
|
3404
3397
|
* The message execution fails the filter.
|
|
3405
3398
|
**/
|
|
3406
|
-
Filtered: GenericPalletError
|
|
3399
|
+
Filtered: GenericPalletError;
|
|
3407
3400
|
|
|
3408
3401
|
/**
|
|
3409
3402
|
* The message's weight could not be determined.
|
|
3410
3403
|
**/
|
|
3411
|
-
UnweighableMessage: GenericPalletError
|
|
3404
|
+
UnweighableMessage: GenericPalletError;
|
|
3412
3405
|
|
|
3413
3406
|
/**
|
|
3414
3407
|
* The destination `Location` provided cannot be inverted.
|
|
3415
3408
|
**/
|
|
3416
|
-
DestinationNotInvertible: GenericPalletError
|
|
3409
|
+
DestinationNotInvertible: GenericPalletError;
|
|
3417
3410
|
|
|
3418
3411
|
/**
|
|
3419
3412
|
* The assets to be sent are empty.
|
|
3420
3413
|
**/
|
|
3421
|
-
Empty: GenericPalletError
|
|
3414
|
+
Empty: GenericPalletError;
|
|
3422
3415
|
|
|
3423
3416
|
/**
|
|
3424
3417
|
* Could not re-anchor the assets to declare the fees for the destination chain.
|
|
3425
3418
|
**/
|
|
3426
|
-
CannotReanchor: GenericPalletError
|
|
3419
|
+
CannotReanchor: GenericPalletError;
|
|
3427
3420
|
|
|
3428
3421
|
/**
|
|
3429
3422
|
* Too many assets have been attempted for transfer.
|
|
3430
3423
|
**/
|
|
3431
|
-
TooManyAssets: GenericPalletError
|
|
3424
|
+
TooManyAssets: GenericPalletError;
|
|
3432
3425
|
|
|
3433
3426
|
/**
|
|
3434
3427
|
* Origin is invalid for sending.
|
|
3435
3428
|
**/
|
|
3436
|
-
InvalidOrigin: GenericPalletError
|
|
3429
|
+
InvalidOrigin: GenericPalletError;
|
|
3437
3430
|
|
|
3438
3431
|
/**
|
|
3439
3432
|
* The version of the `Versioned` value used is not able to be interpreted.
|
|
3440
3433
|
**/
|
|
3441
|
-
BadVersion: GenericPalletError
|
|
3434
|
+
BadVersion: GenericPalletError;
|
|
3442
3435
|
|
|
3443
3436
|
/**
|
|
3444
3437
|
* The given location could not be used (e.g. because it cannot be expressed in the
|
|
3445
3438
|
* desired version of XCM).
|
|
3446
3439
|
**/
|
|
3447
|
-
BadLocation: GenericPalletError
|
|
3440
|
+
BadLocation: GenericPalletError;
|
|
3448
3441
|
|
|
3449
3442
|
/**
|
|
3450
3443
|
* The referenced subscription could not be found.
|
|
3451
3444
|
**/
|
|
3452
|
-
NoSubscription: GenericPalletError
|
|
3445
|
+
NoSubscription: GenericPalletError;
|
|
3453
3446
|
|
|
3454
3447
|
/**
|
|
3455
3448
|
* The location is invalid since it already has a subscription from us.
|
|
3456
3449
|
**/
|
|
3457
|
-
AlreadySubscribed: GenericPalletError
|
|
3450
|
+
AlreadySubscribed: GenericPalletError;
|
|
3458
3451
|
|
|
3459
3452
|
/**
|
|
3460
3453
|
* Could not check-out the assets for teleportation to the destination chain.
|
|
3461
3454
|
**/
|
|
3462
|
-
CannotCheckOutTeleport: GenericPalletError
|
|
3455
|
+
CannotCheckOutTeleport: GenericPalletError;
|
|
3463
3456
|
|
|
3464
3457
|
/**
|
|
3465
3458
|
* The owner does not own (all) of the asset that they wish to do the operation on.
|
|
3466
3459
|
**/
|
|
3467
|
-
LowBalance: GenericPalletError
|
|
3460
|
+
LowBalance: GenericPalletError;
|
|
3468
3461
|
|
|
3469
3462
|
/**
|
|
3470
3463
|
* The asset owner has too many locks on the asset.
|
|
3471
3464
|
**/
|
|
3472
|
-
TooManyLocks: GenericPalletError
|
|
3465
|
+
TooManyLocks: GenericPalletError;
|
|
3473
3466
|
|
|
3474
3467
|
/**
|
|
3475
3468
|
* The given account is not an identifiable sovereign account for any location.
|
|
3476
3469
|
**/
|
|
3477
|
-
AccountNotSovereign: GenericPalletError
|
|
3470
|
+
AccountNotSovereign: GenericPalletError;
|
|
3478
3471
|
|
|
3479
3472
|
/**
|
|
3480
3473
|
* The operation required fees to be paid which the initiator could not meet.
|
|
3481
3474
|
**/
|
|
3482
|
-
FeesNotMet: GenericPalletError
|
|
3475
|
+
FeesNotMet: GenericPalletError;
|
|
3483
3476
|
|
|
3484
3477
|
/**
|
|
3485
3478
|
* A remote lock with the corresponding data could not be found.
|
|
3486
3479
|
**/
|
|
3487
|
-
LockNotFound: GenericPalletError
|
|
3480
|
+
LockNotFound: GenericPalletError;
|
|
3488
3481
|
|
|
3489
3482
|
/**
|
|
3490
3483
|
* The unlock operation cannot succeed because there are still consumers of the lock.
|
|
3491
3484
|
**/
|
|
3492
|
-
InUse: GenericPalletError
|
|
3485
|
+
InUse: GenericPalletError;
|
|
3493
3486
|
|
|
3494
3487
|
/**
|
|
3495
3488
|
* Invalid asset, reserve chain could not be determined for it.
|
|
3496
3489
|
**/
|
|
3497
|
-
InvalidAssetUnknownReserve: GenericPalletError
|
|
3490
|
+
InvalidAssetUnknownReserve: GenericPalletError;
|
|
3498
3491
|
|
|
3499
3492
|
/**
|
|
3500
3493
|
* Invalid asset, do not support remote asset reserves with different fees reserves.
|
|
3501
3494
|
**/
|
|
3502
|
-
InvalidAssetUnsupportedReserve: GenericPalletError
|
|
3495
|
+
InvalidAssetUnsupportedReserve: GenericPalletError;
|
|
3503
3496
|
|
|
3504
3497
|
/**
|
|
3505
3498
|
* Too many assets with different reserve locations have been attempted for transfer.
|
|
3506
3499
|
**/
|
|
3507
|
-
TooManyReserves: GenericPalletError
|
|
3500
|
+
TooManyReserves: GenericPalletError;
|
|
3508
3501
|
|
|
3509
3502
|
/**
|
|
3510
3503
|
* Local XCM execution incomplete.
|
|
3511
3504
|
**/
|
|
3512
|
-
LocalExecutionIncomplete: GenericPalletError
|
|
3505
|
+
LocalExecutionIncomplete: GenericPalletError;
|
|
3513
3506
|
|
|
3514
3507
|
/**
|
|
3515
3508
|
* Generic pallet error
|
|
3516
3509
|
**/
|
|
3517
|
-
[error: string]: GenericPalletError
|
|
3510
|
+
[error: string]: GenericPalletError;
|
|
3518
3511
|
};
|
|
3519
3512
|
/**
|
|
3520
3513
|
* Pallet `XcmpQueue`'s errors
|
|
@@ -3523,32 +3516,32 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3523
3516
|
/**
|
|
3524
3517
|
* Setting the queue config failed since one of its values was invalid.
|
|
3525
3518
|
**/
|
|
3526
|
-
BadQueueConfig: GenericPalletError
|
|
3519
|
+
BadQueueConfig: GenericPalletError;
|
|
3527
3520
|
|
|
3528
3521
|
/**
|
|
3529
3522
|
* The execution is already suspended.
|
|
3530
3523
|
**/
|
|
3531
|
-
AlreadySuspended: GenericPalletError
|
|
3524
|
+
AlreadySuspended: GenericPalletError;
|
|
3532
3525
|
|
|
3533
3526
|
/**
|
|
3534
3527
|
* The execution is already resumed.
|
|
3535
3528
|
**/
|
|
3536
|
-
AlreadyResumed: GenericPalletError
|
|
3529
|
+
AlreadyResumed: GenericPalletError;
|
|
3537
3530
|
|
|
3538
3531
|
/**
|
|
3539
3532
|
* There are too many active outbound channels.
|
|
3540
3533
|
**/
|
|
3541
|
-
TooManyActiveOutboundChannels: GenericPalletError
|
|
3534
|
+
TooManyActiveOutboundChannels: GenericPalletError;
|
|
3542
3535
|
|
|
3543
3536
|
/**
|
|
3544
3537
|
* The message is too big.
|
|
3545
3538
|
**/
|
|
3546
|
-
TooBig: GenericPalletError
|
|
3539
|
+
TooBig: GenericPalletError;
|
|
3547
3540
|
|
|
3548
3541
|
/**
|
|
3549
3542
|
* Generic pallet error
|
|
3550
3543
|
**/
|
|
3551
|
-
[error: string]: GenericPalletError
|
|
3544
|
+
[error: string]: GenericPalletError;
|
|
3552
3545
|
};
|
|
3553
3546
|
/**
|
|
3554
3547
|
* Pallet `MessageQueue`'s errors
|
|
@@ -3558,32 +3551,32 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3558
3551
|
* Page is not reapable because it has items remaining to be processed and is not old
|
|
3559
3552
|
* enough.
|
|
3560
3553
|
**/
|
|
3561
|
-
NotReapable: GenericPalletError
|
|
3554
|
+
NotReapable: GenericPalletError;
|
|
3562
3555
|
|
|
3563
3556
|
/**
|
|
3564
3557
|
* Page to be reaped does not exist.
|
|
3565
3558
|
**/
|
|
3566
|
-
NoPage: GenericPalletError
|
|
3559
|
+
NoPage: GenericPalletError;
|
|
3567
3560
|
|
|
3568
3561
|
/**
|
|
3569
3562
|
* The referenced message could not be found.
|
|
3570
3563
|
**/
|
|
3571
|
-
NoMessage: GenericPalletError
|
|
3564
|
+
NoMessage: GenericPalletError;
|
|
3572
3565
|
|
|
3573
3566
|
/**
|
|
3574
3567
|
* The message was already processed and cannot be processed again.
|
|
3575
3568
|
**/
|
|
3576
|
-
AlreadyProcessed: GenericPalletError
|
|
3569
|
+
AlreadyProcessed: GenericPalletError;
|
|
3577
3570
|
|
|
3578
3571
|
/**
|
|
3579
3572
|
* The message is queued for future execution.
|
|
3580
3573
|
**/
|
|
3581
|
-
Queued: GenericPalletError
|
|
3574
|
+
Queued: GenericPalletError;
|
|
3582
3575
|
|
|
3583
3576
|
/**
|
|
3584
3577
|
* There is temporarily not enough weight to continue servicing messages.
|
|
3585
3578
|
**/
|
|
3586
|
-
InsufficientWeight: GenericPalletError
|
|
3579
|
+
InsufficientWeight: GenericPalletError;
|
|
3587
3580
|
|
|
3588
3581
|
/**
|
|
3589
3582
|
* This message is temporarily unprocessable.
|
|
@@ -3591,24 +3584,24 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3591
3584
|
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
|
3592
3585
|
* retrying.
|
|
3593
3586
|
**/
|
|
3594
|
-
TemporarilyUnprocessable: GenericPalletError
|
|
3587
|
+
TemporarilyUnprocessable: GenericPalletError;
|
|
3595
3588
|
|
|
3596
3589
|
/**
|
|
3597
3590
|
* The queue is paused and no message can be executed from it.
|
|
3598
3591
|
*
|
|
3599
3592
|
* This can change at any time and may resolve in the future by re-trying.
|
|
3600
3593
|
**/
|
|
3601
|
-
QueuePaused: GenericPalletError
|
|
3594
|
+
QueuePaused: GenericPalletError;
|
|
3602
3595
|
|
|
3603
3596
|
/**
|
|
3604
3597
|
* Another call is in progress and needs to finish before this call can happen.
|
|
3605
3598
|
**/
|
|
3606
|
-
RecursiveDisallowed: GenericPalletError
|
|
3599
|
+
RecursiveDisallowed: GenericPalletError;
|
|
3607
3600
|
|
|
3608
3601
|
/**
|
|
3609
3602
|
* Generic pallet error
|
|
3610
3603
|
**/
|
|
3611
|
-
[error: string]: GenericPalletError
|
|
3604
|
+
[error: string]: GenericPalletError;
|
|
3612
3605
|
};
|
|
3613
3606
|
/**
|
|
3614
3607
|
* Pallet `OrmlXcm`'s errors
|
|
@@ -3618,24 +3611,24 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3618
3611
|
* The message and destination combination was not recognized as being
|
|
3619
3612
|
* reachable.
|
|
3620
3613
|
**/
|
|
3621
|
-
Unreachable: GenericPalletError
|
|
3614
|
+
Unreachable: GenericPalletError;
|
|
3622
3615
|
|
|
3623
3616
|
/**
|
|
3624
3617
|
* The message and destination was recognized as being reachable but
|
|
3625
3618
|
* the operation could not be completed.
|
|
3626
3619
|
**/
|
|
3627
|
-
SendFailure: GenericPalletError
|
|
3620
|
+
SendFailure: GenericPalletError;
|
|
3628
3621
|
|
|
3629
3622
|
/**
|
|
3630
3623
|
* The version of the `Versioned` value used is not able to be
|
|
3631
3624
|
* interpreted.
|
|
3632
3625
|
**/
|
|
3633
|
-
BadVersion: GenericPalletError
|
|
3626
|
+
BadVersion: GenericPalletError;
|
|
3634
3627
|
|
|
3635
3628
|
/**
|
|
3636
3629
|
* Generic pallet error
|
|
3637
3630
|
**/
|
|
3638
|
-
[error: string]: GenericPalletError
|
|
3631
|
+
[error: string]: GenericPalletError;
|
|
3639
3632
|
};
|
|
3640
3633
|
/**
|
|
3641
3634
|
* Pallet `XTokens`'s errors
|
|
@@ -3644,110 +3637,110 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3644
3637
|
/**
|
|
3645
3638
|
* Asset has no reserve location.
|
|
3646
3639
|
**/
|
|
3647
|
-
AssetHasNoReserve: GenericPalletError
|
|
3640
|
+
AssetHasNoReserve: GenericPalletError;
|
|
3648
3641
|
|
|
3649
3642
|
/**
|
|
3650
3643
|
* Not cross-chain transfer.
|
|
3651
3644
|
**/
|
|
3652
|
-
NotCrossChainTransfer: GenericPalletError
|
|
3645
|
+
NotCrossChainTransfer: GenericPalletError;
|
|
3653
3646
|
|
|
3654
3647
|
/**
|
|
3655
3648
|
* Invalid transfer destination.
|
|
3656
3649
|
**/
|
|
3657
|
-
InvalidDest: GenericPalletError
|
|
3650
|
+
InvalidDest: GenericPalletError;
|
|
3658
3651
|
|
|
3659
3652
|
/**
|
|
3660
3653
|
* Currency is not cross-chain transferable.
|
|
3661
3654
|
**/
|
|
3662
|
-
NotCrossChainTransferableCurrency: GenericPalletError
|
|
3655
|
+
NotCrossChainTransferableCurrency: GenericPalletError;
|
|
3663
3656
|
|
|
3664
3657
|
/**
|
|
3665
3658
|
* The message's weight could not be determined.
|
|
3666
3659
|
**/
|
|
3667
|
-
UnweighableMessage: GenericPalletError
|
|
3660
|
+
UnweighableMessage: GenericPalletError;
|
|
3668
3661
|
|
|
3669
3662
|
/**
|
|
3670
3663
|
* XCM execution failed.
|
|
3671
3664
|
**/
|
|
3672
|
-
XcmExecutionFailed: GenericPalletError
|
|
3665
|
+
XcmExecutionFailed: GenericPalletError;
|
|
3673
3666
|
|
|
3674
3667
|
/**
|
|
3675
3668
|
* Could not re-anchor the assets to declare the fees for the
|
|
3676
3669
|
* destination chain.
|
|
3677
3670
|
**/
|
|
3678
|
-
CannotReanchor: GenericPalletError
|
|
3671
|
+
CannotReanchor: GenericPalletError;
|
|
3679
3672
|
|
|
3680
3673
|
/**
|
|
3681
3674
|
* Could not get ancestry of asset reserve location.
|
|
3682
3675
|
**/
|
|
3683
|
-
InvalidAncestry: GenericPalletError
|
|
3676
|
+
InvalidAncestry: GenericPalletError;
|
|
3684
3677
|
|
|
3685
3678
|
/**
|
|
3686
3679
|
* The Asset is invalid.
|
|
3687
3680
|
**/
|
|
3688
|
-
InvalidAsset: GenericPalletError
|
|
3681
|
+
InvalidAsset: GenericPalletError;
|
|
3689
3682
|
|
|
3690
3683
|
/**
|
|
3691
3684
|
* The destination `Location` provided cannot be inverted.
|
|
3692
3685
|
**/
|
|
3693
|
-
DestinationNotInvertible: GenericPalletError
|
|
3686
|
+
DestinationNotInvertible: GenericPalletError;
|
|
3694
3687
|
|
|
3695
3688
|
/**
|
|
3696
3689
|
* The version of the `Versioned` value used is not able to be
|
|
3697
3690
|
* interpreted.
|
|
3698
3691
|
**/
|
|
3699
|
-
BadVersion: GenericPalletError
|
|
3692
|
+
BadVersion: GenericPalletError;
|
|
3700
3693
|
|
|
3701
3694
|
/**
|
|
3702
3695
|
* We tried sending distinct asset and fee but they have different
|
|
3703
3696
|
* reserve chains.
|
|
3704
3697
|
**/
|
|
3705
|
-
DistinctReserveForAssetAndFee: GenericPalletError
|
|
3698
|
+
DistinctReserveForAssetAndFee: GenericPalletError;
|
|
3706
3699
|
|
|
3707
3700
|
/**
|
|
3708
3701
|
* The fee is zero.
|
|
3709
3702
|
**/
|
|
3710
|
-
ZeroFee: GenericPalletError
|
|
3703
|
+
ZeroFee: GenericPalletError;
|
|
3711
3704
|
|
|
3712
3705
|
/**
|
|
3713
3706
|
* The transfering asset amount is zero.
|
|
3714
3707
|
**/
|
|
3715
|
-
ZeroAmount: GenericPalletError
|
|
3708
|
+
ZeroAmount: GenericPalletError;
|
|
3716
3709
|
|
|
3717
3710
|
/**
|
|
3718
3711
|
* The number of assets to be sent is over the maximum.
|
|
3719
3712
|
**/
|
|
3720
|
-
TooManyAssetsBeingSent: GenericPalletError
|
|
3713
|
+
TooManyAssetsBeingSent: GenericPalletError;
|
|
3721
3714
|
|
|
3722
3715
|
/**
|
|
3723
3716
|
* The specified index does not exist in a Assets struct.
|
|
3724
3717
|
**/
|
|
3725
|
-
AssetIndexNonExistent: GenericPalletError
|
|
3718
|
+
AssetIndexNonExistent: GenericPalletError;
|
|
3726
3719
|
|
|
3727
3720
|
/**
|
|
3728
3721
|
* Fee is not enough.
|
|
3729
3722
|
**/
|
|
3730
|
-
FeeNotEnough: GenericPalletError
|
|
3723
|
+
FeeNotEnough: GenericPalletError;
|
|
3731
3724
|
|
|
3732
3725
|
/**
|
|
3733
3726
|
* Not supported Location
|
|
3734
3727
|
**/
|
|
3735
|
-
NotSupportedLocation: GenericPalletError
|
|
3728
|
+
NotSupportedLocation: GenericPalletError;
|
|
3736
3729
|
|
|
3737
3730
|
/**
|
|
3738
3731
|
* MinXcmFee not registered for certain reserve location
|
|
3739
3732
|
**/
|
|
3740
|
-
MinXcmFeeNotDefined: GenericPalletError
|
|
3733
|
+
MinXcmFeeNotDefined: GenericPalletError;
|
|
3741
3734
|
|
|
3742
3735
|
/**
|
|
3743
3736
|
* Asset transfer is limited by RateLimiter.
|
|
3744
3737
|
**/
|
|
3745
|
-
RateLimited: GenericPalletError
|
|
3738
|
+
RateLimited: GenericPalletError;
|
|
3746
3739
|
|
|
3747
3740
|
/**
|
|
3748
3741
|
* Generic pallet error
|
|
3749
3742
|
**/
|
|
3750
|
-
[error: string]: GenericPalletError
|
|
3743
|
+
[error: string]: GenericPalletError;
|
|
3751
3744
|
};
|
|
3752
3745
|
/**
|
|
3753
3746
|
* Pallet `UnknownTokens`'s errors
|
|
@@ -3756,22 +3749,22 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3756
3749
|
/**
|
|
3757
3750
|
* The balance is too low.
|
|
3758
3751
|
**/
|
|
3759
|
-
BalanceTooLow: GenericPalletError
|
|
3752
|
+
BalanceTooLow: GenericPalletError;
|
|
3760
3753
|
|
|
3761
3754
|
/**
|
|
3762
3755
|
* The operation will cause balance to overflow.
|
|
3763
3756
|
**/
|
|
3764
|
-
BalanceOverflow: GenericPalletError
|
|
3757
|
+
BalanceOverflow: GenericPalletError;
|
|
3765
3758
|
|
|
3766
3759
|
/**
|
|
3767
3760
|
* Unhandled asset.
|
|
3768
3761
|
**/
|
|
3769
|
-
UnhandledAsset: GenericPalletError
|
|
3762
|
+
UnhandledAsset: GenericPalletError;
|
|
3770
3763
|
|
|
3771
3764
|
/**
|
|
3772
3765
|
* Generic pallet error
|
|
3773
3766
|
**/
|
|
3774
|
-
[error: string]: GenericPalletError
|
|
3767
|
+
[error: string]: GenericPalletError;
|
|
3775
3768
|
};
|
|
3776
3769
|
/**
|
|
3777
3770
|
* Pallet `CollatorSelection`'s errors
|
|
@@ -3780,92 +3773,92 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3780
3773
|
/**
|
|
3781
3774
|
* The pallet has too many candidates.
|
|
3782
3775
|
**/
|
|
3783
|
-
TooManyCandidates: GenericPalletError
|
|
3776
|
+
TooManyCandidates: GenericPalletError;
|
|
3784
3777
|
|
|
3785
3778
|
/**
|
|
3786
3779
|
* Leaving would result in too few candidates.
|
|
3787
3780
|
**/
|
|
3788
|
-
TooFewEligibleCollators: GenericPalletError
|
|
3781
|
+
TooFewEligibleCollators: GenericPalletError;
|
|
3789
3782
|
|
|
3790
3783
|
/**
|
|
3791
3784
|
* Account is already a candidate.
|
|
3792
3785
|
**/
|
|
3793
|
-
AlreadyCandidate: GenericPalletError
|
|
3786
|
+
AlreadyCandidate: GenericPalletError;
|
|
3794
3787
|
|
|
3795
3788
|
/**
|
|
3796
3789
|
* Account is not a candidate.
|
|
3797
3790
|
**/
|
|
3798
|
-
NotCandidate: GenericPalletError
|
|
3791
|
+
NotCandidate: GenericPalletError;
|
|
3799
3792
|
|
|
3800
3793
|
/**
|
|
3801
3794
|
* There are too many Invulnerables.
|
|
3802
3795
|
**/
|
|
3803
|
-
TooManyInvulnerables: GenericPalletError
|
|
3796
|
+
TooManyInvulnerables: GenericPalletError;
|
|
3804
3797
|
|
|
3805
3798
|
/**
|
|
3806
3799
|
* Account is already an Invulnerable.
|
|
3807
3800
|
**/
|
|
3808
|
-
AlreadyInvulnerable: GenericPalletError
|
|
3801
|
+
AlreadyInvulnerable: GenericPalletError;
|
|
3809
3802
|
|
|
3810
3803
|
/**
|
|
3811
3804
|
* Account is not an Invulnerable.
|
|
3812
3805
|
**/
|
|
3813
|
-
NotInvulnerable: GenericPalletError
|
|
3806
|
+
NotInvulnerable: GenericPalletError;
|
|
3814
3807
|
|
|
3815
3808
|
/**
|
|
3816
3809
|
* Account has no associated validator ID.
|
|
3817
3810
|
**/
|
|
3818
|
-
NoAssociatedValidatorId: GenericPalletError
|
|
3811
|
+
NoAssociatedValidatorId: GenericPalletError;
|
|
3819
3812
|
|
|
3820
3813
|
/**
|
|
3821
3814
|
* Validator ID is not yet registered.
|
|
3822
3815
|
**/
|
|
3823
|
-
ValidatorNotRegistered: GenericPalletError
|
|
3816
|
+
ValidatorNotRegistered: GenericPalletError;
|
|
3824
3817
|
|
|
3825
3818
|
/**
|
|
3826
3819
|
* Could not insert in the candidate list.
|
|
3827
3820
|
**/
|
|
3828
|
-
InsertToCandidateListFailed: GenericPalletError
|
|
3821
|
+
InsertToCandidateListFailed: GenericPalletError;
|
|
3829
3822
|
|
|
3830
3823
|
/**
|
|
3831
3824
|
* Could not remove from the candidate list.
|
|
3832
3825
|
**/
|
|
3833
|
-
RemoveFromCandidateListFailed: GenericPalletError
|
|
3826
|
+
RemoveFromCandidateListFailed: GenericPalletError;
|
|
3834
3827
|
|
|
3835
3828
|
/**
|
|
3836
3829
|
* New deposit amount would be below the minimum candidacy bond.
|
|
3837
3830
|
**/
|
|
3838
|
-
DepositTooLow: GenericPalletError
|
|
3831
|
+
DepositTooLow: GenericPalletError;
|
|
3839
3832
|
|
|
3840
3833
|
/**
|
|
3841
3834
|
* Could not update the candidate list.
|
|
3842
3835
|
**/
|
|
3843
|
-
UpdateCandidateListFailed: GenericPalletError
|
|
3836
|
+
UpdateCandidateListFailed: GenericPalletError;
|
|
3844
3837
|
|
|
3845
3838
|
/**
|
|
3846
3839
|
* Deposit amount is too low to take the target's slot in the candidate list.
|
|
3847
3840
|
**/
|
|
3848
|
-
InsufficientBond: GenericPalletError
|
|
3841
|
+
InsufficientBond: GenericPalletError;
|
|
3849
3842
|
|
|
3850
3843
|
/**
|
|
3851
3844
|
* The target account to be replaced in the candidate list is not a candidate.
|
|
3852
3845
|
**/
|
|
3853
|
-
TargetIsNotCandidate: GenericPalletError
|
|
3846
|
+
TargetIsNotCandidate: GenericPalletError;
|
|
3854
3847
|
|
|
3855
3848
|
/**
|
|
3856
3849
|
* The updated deposit amount is equal to the amount already reserved.
|
|
3857
3850
|
**/
|
|
3858
|
-
IdenticalDeposit: GenericPalletError
|
|
3851
|
+
IdenticalDeposit: GenericPalletError;
|
|
3859
3852
|
|
|
3860
3853
|
/**
|
|
3861
3854
|
* Cannot lower candidacy bond while occupying a future collator slot in the list.
|
|
3862
3855
|
**/
|
|
3863
|
-
InvalidUnreserve: GenericPalletError
|
|
3856
|
+
InvalidUnreserve: GenericPalletError;
|
|
3864
3857
|
|
|
3865
3858
|
/**
|
|
3866
3859
|
* Generic pallet error
|
|
3867
3860
|
**/
|
|
3868
|
-
[error: string]: GenericPalletError
|
|
3861
|
+
[error: string]: GenericPalletError;
|
|
3869
3862
|
};
|
|
3870
3863
|
/**
|
|
3871
3864
|
* Pallet `Session`'s errors
|
|
@@ -3874,55 +3867,152 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3874
3867
|
/**
|
|
3875
3868
|
* Invalid ownership proof.
|
|
3876
3869
|
**/
|
|
3877
|
-
InvalidProof: GenericPalletError
|
|
3870
|
+
InvalidProof: GenericPalletError;
|
|
3878
3871
|
|
|
3879
3872
|
/**
|
|
3880
3873
|
* No associated validator ID for account.
|
|
3881
3874
|
**/
|
|
3882
|
-
NoAssociatedValidatorId: GenericPalletError
|
|
3875
|
+
NoAssociatedValidatorId: GenericPalletError;
|
|
3883
3876
|
|
|
3884
3877
|
/**
|
|
3885
3878
|
* Registered duplicate key.
|
|
3886
3879
|
**/
|
|
3887
|
-
DuplicatedKey: GenericPalletError
|
|
3880
|
+
DuplicatedKey: GenericPalletError;
|
|
3888
3881
|
|
|
3889
3882
|
/**
|
|
3890
3883
|
* No keys are associated with this account.
|
|
3891
3884
|
**/
|
|
3892
|
-
NoKeys: GenericPalletError
|
|
3885
|
+
NoKeys: GenericPalletError;
|
|
3893
3886
|
|
|
3894
3887
|
/**
|
|
3895
3888
|
* Key setting account is not live, so it's impossible to associate keys.
|
|
3896
3889
|
**/
|
|
3897
|
-
NoAccount: GenericPalletError
|
|
3890
|
+
NoAccount: GenericPalletError;
|
|
3891
|
+
|
|
3892
|
+
/**
|
|
3893
|
+
* Generic pallet error
|
|
3894
|
+
**/
|
|
3895
|
+
[error: string]: GenericPalletError;
|
|
3896
|
+
};
|
|
3897
|
+
/**
|
|
3898
|
+
* Pallet `Ismp`'s errors
|
|
3899
|
+
**/
|
|
3900
|
+
ismp: {
|
|
3901
|
+
/**
|
|
3902
|
+
* Invalid ISMP message
|
|
3903
|
+
**/
|
|
3904
|
+
InvalidMessage: GenericPalletError;
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* Requested message was not found
|
|
3908
|
+
**/
|
|
3909
|
+
MessageNotFound: GenericPalletError;
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
* Encountered an error while creating the consensus client.
|
|
3913
|
+
**/
|
|
3914
|
+
ConsensusClientCreationFailed: GenericPalletError;
|
|
3915
|
+
|
|
3916
|
+
/**
|
|
3917
|
+
* Couldn't update unbonding period
|
|
3918
|
+
**/
|
|
3919
|
+
UnbondingPeriodUpdateFailed: GenericPalletError;
|
|
3920
|
+
|
|
3921
|
+
/**
|
|
3922
|
+
* Couldn't update challenge period
|
|
3923
|
+
**/
|
|
3924
|
+
ChallengePeriodUpdateFailed: GenericPalletError;
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* Generic pallet error
|
|
3928
|
+
**/
|
|
3929
|
+
[error: string]: GenericPalletError;
|
|
3930
|
+
};
|
|
3931
|
+
/**
|
|
3932
|
+
* Pallet `Hyperbridge`'s errors
|
|
3933
|
+
**/
|
|
3934
|
+
hyperbridge: {
|
|
3935
|
+
/**
|
|
3936
|
+
* Generic pallet error
|
|
3937
|
+
**/
|
|
3938
|
+
[error: string]: GenericPalletError;
|
|
3939
|
+
};
|
|
3940
|
+
/**
|
|
3941
|
+
* Pallet `TokenGateway`'s errors
|
|
3942
|
+
**/
|
|
3943
|
+
tokenGateway: {
|
|
3944
|
+
/**
|
|
3945
|
+
* A asset that has not been registered
|
|
3946
|
+
**/
|
|
3947
|
+
UnregisteredAsset: GenericPalletError;
|
|
3948
|
+
|
|
3949
|
+
/**
|
|
3950
|
+
* Error while teleporting asset
|
|
3951
|
+
**/
|
|
3952
|
+
AssetTeleportError: GenericPalletError;
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* Coprocessor was not configured in the runtime
|
|
3956
|
+
**/
|
|
3957
|
+
CoprocessorNotConfigured: GenericPalletError;
|
|
3958
|
+
|
|
3959
|
+
/**
|
|
3960
|
+
* Asset or update Dispatch Error
|
|
3961
|
+
**/
|
|
3962
|
+
DispatchError: GenericPalletError;
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* Asset Id creation failed
|
|
3966
|
+
**/
|
|
3967
|
+
AssetCreationError: GenericPalletError;
|
|
3968
|
+
|
|
3969
|
+
/**
|
|
3970
|
+
* Asset decimals not found
|
|
3971
|
+
**/
|
|
3972
|
+
AssetDecimalsNotFound: GenericPalletError;
|
|
3973
|
+
|
|
3974
|
+
/**
|
|
3975
|
+
* Protocol Params have not been initialized
|
|
3976
|
+
**/
|
|
3977
|
+
NotInitialized: GenericPalletError;
|
|
3978
|
+
|
|
3979
|
+
/**
|
|
3980
|
+
* Unknown Asset
|
|
3981
|
+
**/
|
|
3982
|
+
UnknownAsset: GenericPalletError;
|
|
3983
|
+
|
|
3984
|
+
/**
|
|
3985
|
+
* Only root or asset owner can update asset
|
|
3986
|
+
**/
|
|
3987
|
+
NotAssetOwner: GenericPalletError;
|
|
3898
3988
|
|
|
3899
3989
|
/**
|
|
3900
3990
|
* Generic pallet error
|
|
3901
3991
|
**/
|
|
3902
|
-
[error: string]: GenericPalletError
|
|
3992
|
+
[error: string]: GenericPalletError;
|
|
3903
3993
|
};
|
|
3904
3994
|
/**
|
|
3905
3995
|
* Pallet `EmaOracle`'s errors
|
|
3906
3996
|
**/
|
|
3907
3997
|
emaOracle: {
|
|
3908
|
-
TooManyUniqueEntries: GenericPalletError
|
|
3909
|
-
OnTradeValueZero: GenericPalletError
|
|
3910
|
-
OracleNotFound: GenericPalletError
|
|
3998
|
+
TooManyUniqueEntries: GenericPalletError;
|
|
3999
|
+
OnTradeValueZero: GenericPalletError;
|
|
4000
|
+
OracleNotFound: GenericPalletError;
|
|
3911
4001
|
|
|
3912
4002
|
/**
|
|
3913
4003
|
* Asset not found
|
|
3914
4004
|
**/
|
|
3915
|
-
AssetNotFound: GenericPalletError
|
|
4005
|
+
AssetNotFound: GenericPalletError;
|
|
3916
4006
|
|
|
3917
4007
|
/**
|
|
3918
4008
|
* The new price is outside the max allowed range
|
|
3919
4009
|
**/
|
|
3920
|
-
PriceOutsideAllowedRange: GenericPalletError
|
|
4010
|
+
PriceOutsideAllowedRange: GenericPalletError;
|
|
3921
4011
|
|
|
3922
4012
|
/**
|
|
3923
4013
|
* Generic pallet error
|
|
3924
4014
|
**/
|
|
3925
|
-
[error: string]: GenericPalletError
|
|
4015
|
+
[error: string]: GenericPalletError;
|
|
3926
4016
|
};
|
|
3927
4017
|
/**
|
|
3928
4018
|
* Pallet `Broadcast`'s errors
|
|
@@ -3931,16 +4021,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3931
4021
|
/**
|
|
3932
4022
|
* The execution context call stack has reached its maximum size
|
|
3933
4023
|
**/
|
|
3934
|
-
ExecutionCallStackOverflow: GenericPalletError
|
|
4024
|
+
ExecutionCallStackOverflow: GenericPalletError;
|
|
3935
4025
|
|
|
3936
4026
|
/**
|
|
3937
4027
|
* The execution context call stack is empty, unable to decrease level
|
|
3938
4028
|
**/
|
|
3939
|
-
ExecutionCallStackUnderflow: GenericPalletError
|
|
4029
|
+
ExecutionCallStackUnderflow: GenericPalletError;
|
|
3940
4030
|
|
|
3941
4031
|
/**
|
|
3942
4032
|
* Generic pallet error
|
|
3943
4033
|
**/
|
|
3944
|
-
[error: string]: GenericPalletError
|
|
4034
|
+
[error: string]: GenericPalletError;
|
|
3945
4035
|
};
|
|
3946
4036
|
}
|