@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/aleph/consts.d.ts +94 -13
- package/aleph/errors.d.ts +251 -182
- package/aleph/events.d.ts +319 -102
- package/aleph/index.d.ts +16 -11
- package/aleph/json-rpc.d.ts +76 -0
- package/aleph/query.d.ts +261 -168
- package/aleph/runtime.d.ts +90 -39
- package/aleph/tx.d.ts +1822 -1052
- package/aleph/types.d.ts +458 -138
- package/astar/consts.d.ts +112 -116
- package/astar/errors.d.ts +342 -409
- package/astar/events.d.ts +449 -358
- package/astar/index.d.ts +16 -11
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +459 -367
- package/astar/runtime.d.ts +591 -98
- package/astar/tx.d.ts +2485 -3430
- package/astar/types.d.ts +1530 -4436
- package/index.d.ts +3 -0
- package/index.ts +3 -0
- package/kusama/consts.d.ts +54 -115
- package/kusama/errors.d.ts +696 -682
- package/kusama/events.d.ts +592 -407
- package/kusama/index.d.ts +16 -11
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +840 -538
- package/kusama/runtime.d.ts +136 -65
- package/kusama/tx.d.ts +4557 -3051
- package/kusama/types.d.ts +1437 -1161
- package/kusamaAssetHub/consts.d.ts +66 -20
- package/kusamaAssetHub/errors.d.ts +428 -308
- package/kusamaAssetHub/events.d.ts +497 -305
- package/kusamaAssetHub/index.d.ts +16 -11
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +376 -253
- package/kusamaAssetHub/runtime.d.ts +82 -41
- package/kusamaAssetHub/tx.d.ts +3264 -1955
- package/kusamaAssetHub/types.d.ts +1262 -726
- package/moonbeam/consts.d.ts +115 -170
- package/moonbeam/errors.d.ts +564 -787
- package/moonbeam/events.d.ts +583 -746
- package/moonbeam/index.d.ts +16 -11
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +507 -607
- package/moonbeam/runtime.d.ts +132 -47
- package/moonbeam/tx.d.ts +3309 -3268
- package/moonbeam/types.d.ts +1484 -1375
- package/package.json +4 -14
- package/paseo/consts.d.ts +1331 -0
- package/paseo/errors.d.ts +2644 -0
- package/paseo/events.d.ts +2821 -0
- package/paseo/index.d.ts +27 -0
- package/paseo/json-rpc.d.ts +103 -0
- package/paseo/query.d.ts +3709 -0
- package/paseo/runtime.d.ts +1205 -0
- package/paseo/tx.d.ts +8024 -0
- package/paseo/types.d.ts +10194 -0
- package/polkadot/consts.d.ts +95 -50
- package/polkadot/errors.d.ts +619 -468
- package/polkadot/events.d.ts +582 -257
- package/polkadot/index.d.ts +16 -11
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +770 -399
- package/polkadot/runtime.d.ts +136 -65
- package/polkadot/tx.d.ts +4268 -2368
- package/polkadot/types.d.ts +1570 -745
- package/polkadotAssetHub/consts.d.ts +154 -15
- package/polkadotAssetHub/errors.d.ts +615 -234
- package/polkadotAssetHub/events.d.ts +829 -270
- package/polkadotAssetHub/index.d.ts +16 -11
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +438 -243
- package/polkadotAssetHub/runtime.d.ts +147 -40
- package/polkadotAssetHub/tx.d.ts +3747 -1643
- package/polkadotAssetHub/types.d.ts +2096 -806
- package/rococo/consts.d.ts +51 -32
- package/rococo/errors.d.ts +549 -605
- package/rococo/events.d.ts +447 -238
- package/rococo/index.d.ts +16 -11
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +724 -426
- package/rococo/runtime.d.ts +366 -144
- package/rococo/tx.d.ts +6850 -3079
- package/rococo/types.d.ts +5959 -1619
- package/rococoAssetHub/consts.d.ts +92 -7
- package/rococoAssetHub/errors.d.ts +381 -285
- package/rococoAssetHub/events.d.ts +461 -140
- package/rococoAssetHub/index.d.ts +16 -11
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +487 -174
- package/rococoAssetHub/runtime.d.ts +235 -51
- package/rococoAssetHub/tx.d.ts +6005 -2163
- package/rococoAssetHub/types.d.ts +6683 -1003
- package/substrate/consts.d.ts +233 -52
- package/substrate/errors.d.ts +966 -781
- package/substrate/events.d.ts +1226 -381
- package/substrate/index.d.ts +16 -11
- package/substrate/json-rpc.d.ts +103 -0
- package/substrate/query.d.ts +1090 -460
- package/substrate/runtime.d.ts +274 -71
- package/substrate/tx.d.ts +12313 -4510
- package/substrate/types.d.ts +11036 -1432
- package/westend/consts.d.ts +1349 -0
- package/westend/errors.d.ts +2736 -0
- package/westend/events.d.ts +2906 -0
- package/westend/index.d.ts +27 -0
- package/westend/json-rpc.d.ts +103 -0
- package/westend/query.d.ts +3855 -0
- package/westend/runtime.d.ts +1437 -0
- package/westend/tx.d.ts +10248 -0
- package/westend/types.d.ts +14769 -0
- package/westendAssetHub/consts.d.ts +126 -7
- package/westendAssetHub/errors.d.ts +426 -285
- package/westendAssetHub/events.d.ts +498 -140
- package/westendAssetHub/index.d.ts +16 -11
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +526 -174
- package/westendAssetHub/runtime.d.ts +245 -56
- package/westendAssetHub/tx.d.ts +6196 -2166
- package/westendAssetHub/types.d.ts +6913 -1002
- package/westendPeople/consts.d.ts +434 -0
- package/westendPeople/errors.d.ts +769 -0
- package/westendPeople/events.d.ts +1082 -0
- package/westendPeople/index.d.ts +27 -0
- package/westendPeople/json-rpc.d.ts +89 -0
- package/westendPeople/query.d.ts +1209 -0
- package/westendPeople/runtime.d.ts +636 -0
- package/westendPeople/tx.d.ts +2891 -0
- package/westendPeople/types.d.ts +4984 -0
- package/aleph/rpc.d.ts +0 -727
- package/astar/rpc.d.ts +0 -974
- package/kusama/rpc.d.ts +0 -904
- package/kusamaAssetHub/rpc.d.ts +0 -746
- package/moonbeam/rpc.d.ts +0 -1015
- package/packageInfo.d.ts +0 -4
- package/packageInfo.js +0 -2
- package/packageInfo.ts +0 -3
- package/polkadot/rpc.d.ts +0 -904
- package/polkadotAssetHub/rpc.d.ts +0 -746
- package/rococo/rpc.d.ts +0 -904
- package/rococoAssetHub/rpc.d.ts +0 -746
- package/substrate/rpc.d.ts +0 -894
- package/westendAssetHub/rpc.d.ts +0 -746
package/astar/errors.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Generated by
|
|
1
|
+
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericChainErrors, GenericPalletError } from '
|
|
3
|
+
import type { GenericChainErrors, GenericPalletError, RpcVersion } from 'dedot/types';
|
|
4
4
|
|
|
5
|
-
export interface ChainErrors extends GenericChainErrors {
|
|
5
|
+
export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<Rv> {
|
|
6
6
|
/**
|
|
7
7
|
* Pallet `System`'s errors
|
|
8
8
|
**/
|
|
@@ -11,40 +11,40 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
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<Rv>;
|
|
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<Rv>;
|
|
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<Rv>;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Suicide called when the account has non-default composite data.
|
|
31
31
|
**/
|
|
32
|
-
NonDefaultComposite: GenericPalletError
|
|
32
|
+
NonDefaultComposite: GenericPalletError<Rv>;
|
|
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<Rv>;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* The origin filter prevent the call to be dispatched.
|
|
41
41
|
**/
|
|
42
|
-
CallFiltered: GenericPalletError
|
|
42
|
+
CallFiltered: GenericPalletError<Rv>;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Generic pallet error
|
|
46
46
|
**/
|
|
47
|
-
[error: string]: GenericPalletError
|
|
47
|
+
[error: string]: GenericPalletError<Rv>;
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* Pallet `Utility`'s errors
|
|
@@ -53,12 +53,12 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
53
53
|
/**
|
|
54
54
|
* Too many calls batched.
|
|
55
55
|
**/
|
|
56
|
-
TooManyCalls: GenericPalletError
|
|
56
|
+
TooManyCalls: GenericPalletError<Rv>;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Generic pallet error
|
|
60
60
|
**/
|
|
61
|
-
[error: string]: GenericPalletError
|
|
61
|
+
[error: string]: GenericPalletError<Rv>;
|
|
62
62
|
};
|
|
63
63
|
/**
|
|
64
64
|
* Pallet `Identity`'s errors
|
|
@@ -67,97 +67,97 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
67
67
|
/**
|
|
68
68
|
* Too many subs-accounts.
|
|
69
69
|
**/
|
|
70
|
-
TooManySubAccounts: GenericPalletError
|
|
70
|
+
TooManySubAccounts: GenericPalletError<Rv>;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* Account isn't found.
|
|
74
74
|
**/
|
|
75
|
-
NotFound: GenericPalletError
|
|
75
|
+
NotFound: GenericPalletError<Rv>;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* Account isn't named.
|
|
79
79
|
**/
|
|
80
|
-
NotNamed: GenericPalletError
|
|
80
|
+
NotNamed: GenericPalletError<Rv>;
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Empty index.
|
|
84
84
|
**/
|
|
85
|
-
EmptyIndex: GenericPalletError
|
|
85
|
+
EmptyIndex: GenericPalletError<Rv>;
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* Fee is changed.
|
|
89
89
|
**/
|
|
90
|
-
FeeChanged: GenericPalletError
|
|
90
|
+
FeeChanged: GenericPalletError<Rv>;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* No identity found.
|
|
94
94
|
**/
|
|
95
|
-
NoIdentity: GenericPalletError
|
|
95
|
+
NoIdentity: GenericPalletError<Rv>;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Sticky judgement.
|
|
99
99
|
**/
|
|
100
|
-
StickyJudgement: GenericPalletError
|
|
100
|
+
StickyJudgement: GenericPalletError<Rv>;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Judgement given.
|
|
104
104
|
**/
|
|
105
|
-
JudgementGiven: GenericPalletError
|
|
105
|
+
JudgementGiven: GenericPalletError<Rv>;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* Invalid judgement.
|
|
109
109
|
**/
|
|
110
|
-
InvalidJudgement: GenericPalletError
|
|
110
|
+
InvalidJudgement: GenericPalletError<Rv>;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* The index is invalid.
|
|
114
114
|
**/
|
|
115
|
-
InvalidIndex: GenericPalletError
|
|
115
|
+
InvalidIndex: GenericPalletError<Rv>;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* The target is invalid.
|
|
119
119
|
**/
|
|
120
|
-
InvalidTarget: GenericPalletError
|
|
120
|
+
InvalidTarget: GenericPalletError<Rv>;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Too many additional fields.
|
|
124
124
|
**/
|
|
125
|
-
TooManyFields: GenericPalletError
|
|
125
|
+
TooManyFields: GenericPalletError<Rv>;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* Maximum amount of registrars reached. Cannot add any more.
|
|
129
129
|
**/
|
|
130
|
-
TooManyRegistrars: GenericPalletError
|
|
130
|
+
TooManyRegistrars: GenericPalletError<Rv>;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Account ID is already named.
|
|
134
134
|
**/
|
|
135
|
-
AlreadyClaimed: GenericPalletError
|
|
135
|
+
AlreadyClaimed: GenericPalletError<Rv>;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* Sender is not a sub-account.
|
|
139
139
|
**/
|
|
140
|
-
NotSub: GenericPalletError
|
|
140
|
+
NotSub: GenericPalletError<Rv>;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Sub-account isn't owned by sender.
|
|
144
144
|
**/
|
|
145
|
-
NotOwned: GenericPalletError
|
|
145
|
+
NotOwned: GenericPalletError<Rv>;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* The provided judgement was for a different identity.
|
|
149
149
|
**/
|
|
150
|
-
JudgementForDifferentIdentity: GenericPalletError
|
|
150
|
+
JudgementForDifferentIdentity: GenericPalletError<Rv>;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* Error that occurs when there is an issue paying for judgement.
|
|
154
154
|
**/
|
|
155
|
-
JudgementPaymentFailed: GenericPalletError
|
|
155
|
+
JudgementPaymentFailed: GenericPalletError<Rv>;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* Generic pallet error
|
|
159
159
|
**/
|
|
160
|
-
[error: string]: GenericPalletError
|
|
160
|
+
[error: string]: GenericPalletError<Rv>;
|
|
161
161
|
};
|
|
162
162
|
/**
|
|
163
163
|
* Pallet `Multisig`'s errors
|
|
@@ -166,77 +166,77 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
166
166
|
/**
|
|
167
167
|
* Threshold must be 2 or greater.
|
|
168
168
|
**/
|
|
169
|
-
MinimumThreshold: GenericPalletError
|
|
169
|
+
MinimumThreshold: GenericPalletError<Rv>;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Call is already approved by this signatory.
|
|
173
173
|
**/
|
|
174
|
-
AlreadyApproved: GenericPalletError
|
|
174
|
+
AlreadyApproved: GenericPalletError<Rv>;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* Call doesn't need any (more) approvals.
|
|
178
178
|
**/
|
|
179
|
-
NoApprovalsNeeded: GenericPalletError
|
|
179
|
+
NoApprovalsNeeded: GenericPalletError<Rv>;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* There are too few signatories in the list.
|
|
183
183
|
**/
|
|
184
|
-
TooFewSignatories: GenericPalletError
|
|
184
|
+
TooFewSignatories: GenericPalletError<Rv>;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* There are too many signatories in the list.
|
|
188
188
|
**/
|
|
189
|
-
TooManySignatories: GenericPalletError
|
|
189
|
+
TooManySignatories: GenericPalletError<Rv>;
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* The signatories were provided out of order; they should be ordered.
|
|
193
193
|
**/
|
|
194
|
-
SignatoriesOutOfOrder: GenericPalletError
|
|
194
|
+
SignatoriesOutOfOrder: GenericPalletError<Rv>;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* The sender was contained in the other signatories; it shouldn't be.
|
|
198
198
|
**/
|
|
199
|
-
SenderInSignatories: GenericPalletError
|
|
199
|
+
SenderInSignatories: GenericPalletError<Rv>;
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* Multisig operation not found when attempting to cancel.
|
|
203
203
|
**/
|
|
204
|
-
NotFound: GenericPalletError
|
|
204
|
+
NotFound: GenericPalletError<Rv>;
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* Only the account that originally created the multisig is able to cancel it.
|
|
208
208
|
**/
|
|
209
|
-
NotOwner: GenericPalletError
|
|
209
|
+
NotOwner: GenericPalletError<Rv>;
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* No timepoint was given, yet the multisig operation is already underway.
|
|
213
213
|
**/
|
|
214
|
-
NoTimepoint: GenericPalletError
|
|
214
|
+
NoTimepoint: GenericPalletError<Rv>;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
217
|
* A different timepoint was given to the multisig operation that is underway.
|
|
218
218
|
**/
|
|
219
|
-
WrongTimepoint: GenericPalletError
|
|
219
|
+
WrongTimepoint: GenericPalletError<Rv>;
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* A timepoint was given, yet no multisig operation is underway.
|
|
223
223
|
**/
|
|
224
|
-
UnexpectedTimepoint: GenericPalletError
|
|
224
|
+
UnexpectedTimepoint: GenericPalletError<Rv>;
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* The maximum weight information provided was too low.
|
|
228
228
|
**/
|
|
229
|
-
MaxWeightTooLow: GenericPalletError
|
|
229
|
+
MaxWeightTooLow: GenericPalletError<Rv>;
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
* The data to be stored is already stored.
|
|
233
233
|
**/
|
|
234
|
-
AlreadyStored: GenericPalletError
|
|
234
|
+
AlreadyStored: GenericPalletError<Rv>;
|
|
235
235
|
|
|
236
236
|
/**
|
|
237
237
|
* Generic pallet error
|
|
238
238
|
**/
|
|
239
|
-
[error: string]: GenericPalletError
|
|
239
|
+
[error: string]: GenericPalletError<Rv>;
|
|
240
240
|
};
|
|
241
241
|
/**
|
|
242
242
|
* Pallet `Proxy`'s errors
|
|
@@ -245,47 +245,47 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
245
245
|
/**
|
|
246
246
|
* There are too many proxies registered or too many announcements pending.
|
|
247
247
|
**/
|
|
248
|
-
TooMany: GenericPalletError
|
|
248
|
+
TooMany: GenericPalletError<Rv>;
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
251
|
* Proxy registration not found.
|
|
252
252
|
**/
|
|
253
|
-
NotFound: GenericPalletError
|
|
253
|
+
NotFound: GenericPalletError<Rv>;
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
256
|
* Sender is not a proxy of the account to be proxied.
|
|
257
257
|
**/
|
|
258
|
-
NotProxy: GenericPalletError
|
|
258
|
+
NotProxy: GenericPalletError<Rv>;
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* A call which is incompatible with the proxy type's filter was attempted.
|
|
262
262
|
**/
|
|
263
|
-
Unproxyable: GenericPalletError
|
|
263
|
+
Unproxyable: GenericPalletError<Rv>;
|
|
264
264
|
|
|
265
265
|
/**
|
|
266
266
|
* Account is already a proxy.
|
|
267
267
|
**/
|
|
268
|
-
Duplicate: GenericPalletError
|
|
268
|
+
Duplicate: GenericPalletError<Rv>;
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* Call may not be made by proxy because it may escalate its privileges.
|
|
272
272
|
**/
|
|
273
|
-
NoPermission: GenericPalletError
|
|
273
|
+
NoPermission: GenericPalletError<Rv>;
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Announcement, if made at all, was made too recently.
|
|
277
277
|
**/
|
|
278
|
-
Unannounced: GenericPalletError
|
|
278
|
+
Unannounced: GenericPalletError<Rv>;
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* Cannot add self as proxy.
|
|
282
282
|
**/
|
|
283
|
-
NoSelfProxy: GenericPalletError
|
|
283
|
+
NoSelfProxy: GenericPalletError<Rv>;
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
286
|
* Generic pallet error
|
|
287
287
|
**/
|
|
288
|
-
[error: string]: GenericPalletError
|
|
288
|
+
[error: string]: GenericPalletError<Rv>;
|
|
289
289
|
};
|
|
290
290
|
/**
|
|
291
291
|
* Pallet `ParachainSystem`'s errors
|
|
@@ -294,48 +294,48 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
294
294
|
/**
|
|
295
295
|
* Attempt to upgrade validation function while existing upgrade pending.
|
|
296
296
|
**/
|
|
297
|
-
OverlappingUpgrades: GenericPalletError
|
|
297
|
+
OverlappingUpgrades: GenericPalletError<Rv>;
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* Polkadot currently prohibits this parachain from upgrading its validation function.
|
|
301
301
|
**/
|
|
302
|
-
ProhibitedByPolkadot: GenericPalletError
|
|
302
|
+
ProhibitedByPolkadot: GenericPalletError<Rv>;
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
* The supplied validation function has compiled into a blob larger than Polkadot is
|
|
306
306
|
* willing to run.
|
|
307
307
|
**/
|
|
308
|
-
TooBig: GenericPalletError
|
|
308
|
+
TooBig: GenericPalletError<Rv>;
|
|
309
309
|
|
|
310
310
|
/**
|
|
311
311
|
* The inherent which supplies the validation data did not run this block.
|
|
312
312
|
**/
|
|
313
|
-
ValidationDataNotAvailable: GenericPalletError
|
|
313
|
+
ValidationDataNotAvailable: GenericPalletError<Rv>;
|
|
314
314
|
|
|
315
315
|
/**
|
|
316
316
|
* The inherent which supplies the host configuration did not run this block.
|
|
317
317
|
**/
|
|
318
|
-
HostConfigurationNotAvailable: GenericPalletError
|
|
318
|
+
HostConfigurationNotAvailable: GenericPalletError<Rv>;
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
321
|
* No validation function upgrade is currently scheduled.
|
|
322
322
|
**/
|
|
323
|
-
NotScheduled: GenericPalletError
|
|
323
|
+
NotScheduled: GenericPalletError<Rv>;
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
326
|
* No code upgrade has been authorized.
|
|
327
327
|
**/
|
|
328
|
-
NothingAuthorized: GenericPalletError
|
|
328
|
+
NothingAuthorized: GenericPalletError<Rv>;
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
331
|
* The given code upgrade has not been authorized.
|
|
332
332
|
**/
|
|
333
|
-
Unauthorized: GenericPalletError
|
|
333
|
+
Unauthorized: GenericPalletError<Rv>;
|
|
334
334
|
|
|
335
335
|
/**
|
|
336
336
|
* Generic pallet error
|
|
337
337
|
**/
|
|
338
|
-
[error: string]: GenericPalletError
|
|
338
|
+
[error: string]: GenericPalletError<Rv>;
|
|
339
339
|
};
|
|
340
340
|
/**
|
|
341
341
|
* Pallet `Balances`'s errors
|
|
@@ -344,57 +344,57 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
344
344
|
/**
|
|
345
345
|
* Vesting balance too high to send value.
|
|
346
346
|
**/
|
|
347
|
-
VestingBalance: GenericPalletError
|
|
347
|
+
VestingBalance: GenericPalletError<Rv>;
|
|
348
348
|
|
|
349
349
|
/**
|
|
350
350
|
* Account liquidity restrictions prevent withdrawal.
|
|
351
351
|
**/
|
|
352
|
-
LiquidityRestrictions: GenericPalletError
|
|
352
|
+
LiquidityRestrictions: GenericPalletError<Rv>;
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* Balance too low to send value.
|
|
356
356
|
**/
|
|
357
|
-
InsufficientBalance: GenericPalletError
|
|
357
|
+
InsufficientBalance: GenericPalletError<Rv>;
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
* Value too low to create account due to existential deposit.
|
|
361
361
|
**/
|
|
362
|
-
ExistentialDeposit: GenericPalletError
|
|
362
|
+
ExistentialDeposit: GenericPalletError<Rv>;
|
|
363
363
|
|
|
364
364
|
/**
|
|
365
365
|
* Transfer/payment would kill account.
|
|
366
366
|
**/
|
|
367
|
-
Expendability: GenericPalletError
|
|
367
|
+
Expendability: GenericPalletError<Rv>;
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* A vesting schedule already exists for this account.
|
|
371
371
|
**/
|
|
372
|
-
ExistingVestingSchedule: GenericPalletError
|
|
372
|
+
ExistingVestingSchedule: GenericPalletError<Rv>;
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
375
|
* Beneficiary account must pre-exist.
|
|
376
376
|
**/
|
|
377
|
-
DeadAccount: GenericPalletError
|
|
377
|
+
DeadAccount: GenericPalletError<Rv>;
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* Number of named reserves exceed `MaxReserves`.
|
|
381
381
|
**/
|
|
382
|
-
TooManyReserves: GenericPalletError
|
|
382
|
+
TooManyReserves: GenericPalletError<Rv>;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
385
|
* Number of holds exceed `MaxHolds`.
|
|
386
386
|
**/
|
|
387
|
-
TooManyHolds: GenericPalletError
|
|
387
|
+
TooManyHolds: GenericPalletError<Rv>;
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
390
|
* Number of freezes exceed `MaxFreezes`.
|
|
391
391
|
**/
|
|
392
|
-
TooManyFreezes: GenericPalletError
|
|
392
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
393
393
|
|
|
394
394
|
/**
|
|
395
395
|
* Generic pallet error
|
|
396
396
|
**/
|
|
397
|
-
[error: string]: GenericPalletError
|
|
397
|
+
[error: string]: GenericPalletError<Rv>;
|
|
398
398
|
};
|
|
399
399
|
/**
|
|
400
400
|
* Pallet `Vesting`'s errors
|
|
@@ -403,33 +403,33 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
403
403
|
/**
|
|
404
404
|
* The account given is not vesting.
|
|
405
405
|
**/
|
|
406
|
-
NotVesting: GenericPalletError
|
|
406
|
+
NotVesting: GenericPalletError<Rv>;
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
409
|
* The account already has `MaxVestingSchedules` count of schedules and thus
|
|
410
410
|
* cannot add another one. Consider merging existing schedules in order to add another.
|
|
411
411
|
**/
|
|
412
|
-
AtMaxVestingSchedules: GenericPalletError
|
|
412
|
+
AtMaxVestingSchedules: GenericPalletError<Rv>;
|
|
413
413
|
|
|
414
414
|
/**
|
|
415
415
|
* Amount being transferred is too low to create a vesting schedule.
|
|
416
416
|
**/
|
|
417
|
-
AmountLow: GenericPalletError
|
|
417
|
+
AmountLow: GenericPalletError<Rv>;
|
|
418
418
|
|
|
419
419
|
/**
|
|
420
420
|
* An index was out of bounds of the vesting schedules.
|
|
421
421
|
**/
|
|
422
|
-
ScheduleIndexOutOfBounds: GenericPalletError
|
|
422
|
+
ScheduleIndexOutOfBounds: GenericPalletError<Rv>;
|
|
423
423
|
|
|
424
424
|
/**
|
|
425
425
|
* Failed to create a new schedule because some parameter was invalid.
|
|
426
426
|
**/
|
|
427
|
-
InvalidScheduleParams: GenericPalletError
|
|
427
|
+
InvalidScheduleParams: GenericPalletError<Rv>;
|
|
428
428
|
|
|
429
429
|
/**
|
|
430
430
|
* Generic pallet error
|
|
431
431
|
**/
|
|
432
|
-
[error: string]: GenericPalletError
|
|
432
|
+
[error: string]: GenericPalletError<Rv>;
|
|
433
433
|
};
|
|
434
434
|
/**
|
|
435
435
|
* Pallet `Inflation`'s errors
|
|
@@ -438,12 +438,12 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
438
438
|
/**
|
|
439
439
|
* Sum of all parts must be one whole (100%).
|
|
440
440
|
**/
|
|
441
|
-
InvalidInflationParameters: GenericPalletError
|
|
441
|
+
InvalidInflationParameters: GenericPalletError<Rv>;
|
|
442
442
|
|
|
443
443
|
/**
|
|
444
444
|
* Generic pallet error
|
|
445
445
|
**/
|
|
446
|
-
[error: string]: GenericPalletError
|
|
446
|
+
[error: string]: GenericPalletError<Rv>;
|
|
447
447
|
};
|
|
448
448
|
/**
|
|
449
449
|
* Pallet `DappStaking`'s errors
|
|
@@ -452,184 +452,189 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
452
452
|
/**
|
|
453
453
|
* Pallet is disabled/in maintenance mode.
|
|
454
454
|
**/
|
|
455
|
-
Disabled: GenericPalletError
|
|
455
|
+
Disabled: GenericPalletError<Rv>;
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* Smart contract already exists within dApp staking protocol.
|
|
459
459
|
**/
|
|
460
|
-
ContractAlreadyExists: GenericPalletError
|
|
460
|
+
ContractAlreadyExists: GenericPalletError<Rv>;
|
|
461
461
|
|
|
462
462
|
/**
|
|
463
463
|
* Maximum number of smart contracts has been reached.
|
|
464
464
|
**/
|
|
465
|
-
ExceededMaxNumberOfContracts: GenericPalletError
|
|
465
|
+
ExceededMaxNumberOfContracts: GenericPalletError<Rv>;
|
|
466
466
|
|
|
467
467
|
/**
|
|
468
468
|
* Not possible to assign a new dApp Id.
|
|
469
469
|
* This should never happen since current type can support up to 65536 - 1 unique dApps.
|
|
470
470
|
**/
|
|
471
|
-
NewDAppIdUnavailable: GenericPalletError
|
|
471
|
+
NewDAppIdUnavailable: GenericPalletError<Rv>;
|
|
472
472
|
|
|
473
473
|
/**
|
|
474
474
|
* Specified smart contract does not exist in dApp staking.
|
|
475
475
|
**/
|
|
476
|
-
ContractNotFound: GenericPalletError
|
|
476
|
+
ContractNotFound: GenericPalletError<Rv>;
|
|
477
477
|
|
|
478
478
|
/**
|
|
479
479
|
* Call origin is not dApp owner.
|
|
480
480
|
**/
|
|
481
|
-
OriginNotOwner: GenericPalletError
|
|
481
|
+
OriginNotOwner: GenericPalletError<Rv>;
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
484
|
* Performing locking or staking with 0 amount.
|
|
485
485
|
**/
|
|
486
|
-
ZeroAmount: GenericPalletError
|
|
486
|
+
ZeroAmount: GenericPalletError<Rv>;
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
489
|
* Total locked amount for staker is below minimum threshold.
|
|
490
490
|
**/
|
|
491
|
-
LockedAmountBelowThreshold: GenericPalletError
|
|
491
|
+
LockedAmountBelowThreshold: GenericPalletError<Rv>;
|
|
492
492
|
|
|
493
493
|
/**
|
|
494
494
|
* Account is not allowed to participate in dApp staking due to some external reason (e.g. account is already a collator).
|
|
495
495
|
**/
|
|
496
|
-
AccountNotAvailableForDappStaking: GenericPalletError
|
|
496
|
+
AccountNotAvailableForDappStaking: GenericPalletError<Rv>;
|
|
497
497
|
|
|
498
498
|
/**
|
|
499
499
|
* Cannot add additional unlocking chunks due to capacity limit.
|
|
500
500
|
**/
|
|
501
|
-
TooManyUnlockingChunks: GenericPalletError
|
|
501
|
+
TooManyUnlockingChunks: GenericPalletError<Rv>;
|
|
502
502
|
|
|
503
503
|
/**
|
|
504
504
|
* Remaining stake prevents entire balance of starting the unlocking process.
|
|
505
505
|
**/
|
|
506
|
-
RemainingStakePreventsFullUnlock: GenericPalletError
|
|
506
|
+
RemainingStakePreventsFullUnlock: GenericPalletError<Rv>;
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
509
|
* There are no eligible unlocked chunks to claim. This can happen either if no eligible chunks exist, or if user has no chunks at all.
|
|
510
510
|
**/
|
|
511
|
-
NoUnlockedChunksToClaim: GenericPalletError
|
|
511
|
+
NoUnlockedChunksToClaim: GenericPalletError<Rv>;
|
|
512
512
|
|
|
513
513
|
/**
|
|
514
514
|
* There are no unlocking chunks available to relock.
|
|
515
515
|
**/
|
|
516
|
-
NoUnlockingChunks: GenericPalletError
|
|
516
|
+
NoUnlockingChunks: GenericPalletError<Rv>;
|
|
517
517
|
|
|
518
518
|
/**
|
|
519
519
|
* The amount being staked is too large compared to what's available for staking.
|
|
520
520
|
**/
|
|
521
|
-
UnavailableStakeFunds: GenericPalletError
|
|
521
|
+
UnavailableStakeFunds: GenericPalletError<Rv>;
|
|
522
522
|
|
|
523
523
|
/**
|
|
524
524
|
* There are unclaimed rewards remaining from past eras or periods. They should be claimed before attempting any stake modification again.
|
|
525
525
|
**/
|
|
526
|
-
UnclaimedRewards: GenericPalletError
|
|
526
|
+
UnclaimedRewards: GenericPalletError<Rv>;
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
* An unexpected error occurred while trying to stake.
|
|
530
530
|
**/
|
|
531
|
-
InternalStakeError: GenericPalletError
|
|
531
|
+
InternalStakeError: GenericPalletError<Rv>;
|
|
532
532
|
|
|
533
533
|
/**
|
|
534
534
|
* Total staked amount on contract is below the minimum required value.
|
|
535
535
|
**/
|
|
536
|
-
InsufficientStakeAmount: GenericPalletError
|
|
536
|
+
InsufficientStakeAmount: GenericPalletError<Rv>;
|
|
537
537
|
|
|
538
538
|
/**
|
|
539
539
|
* Stake operation is rejected since period ends in the next era.
|
|
540
540
|
**/
|
|
541
|
-
PeriodEndsInNextEra: GenericPalletError
|
|
541
|
+
PeriodEndsInNextEra: GenericPalletError<Rv>;
|
|
542
542
|
|
|
543
543
|
/**
|
|
544
544
|
* Unstaking is rejected since the period in which past stake was active has passed.
|
|
545
545
|
**/
|
|
546
|
-
UnstakeFromPastPeriod: GenericPalletError
|
|
546
|
+
UnstakeFromPastPeriod: GenericPalletError<Rv>;
|
|
547
547
|
|
|
548
548
|
/**
|
|
549
549
|
* Unstake amount is greater than the staked amount.
|
|
550
550
|
**/
|
|
551
|
-
UnstakeAmountTooLarge: GenericPalletError
|
|
551
|
+
UnstakeAmountTooLarge: GenericPalletError<Rv>;
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
554
|
* Account has no staking information for the contract.
|
|
555
555
|
**/
|
|
556
|
-
NoStakingInfo: GenericPalletError
|
|
556
|
+
NoStakingInfo: GenericPalletError<Rv>;
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
559
|
* An unexpected error occurred while trying to unstake.
|
|
560
560
|
**/
|
|
561
|
-
InternalUnstakeError: GenericPalletError
|
|
561
|
+
InternalUnstakeError: GenericPalletError<Rv>;
|
|
562
562
|
|
|
563
563
|
/**
|
|
564
564
|
* Rewards are no longer claimable since they are too old.
|
|
565
565
|
**/
|
|
566
|
-
RewardExpired: GenericPalletError
|
|
566
|
+
RewardExpired: GenericPalletError<Rv>;
|
|
567
567
|
|
|
568
568
|
/**
|
|
569
569
|
* Reward payout has failed due to an unexpected reason.
|
|
570
570
|
**/
|
|
571
|
-
RewardPayoutFailed: GenericPalletError
|
|
571
|
+
RewardPayoutFailed: GenericPalletError<Rv>;
|
|
572
572
|
|
|
573
573
|
/**
|
|
574
574
|
* There are no claimable rewards.
|
|
575
575
|
**/
|
|
576
|
-
NoClaimableRewards: GenericPalletError
|
|
576
|
+
NoClaimableRewards: GenericPalletError<Rv>;
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
579
|
* An unexpected error occurred while trying to claim staker rewards.
|
|
580
580
|
**/
|
|
581
|
-
InternalClaimStakerError: GenericPalletError
|
|
581
|
+
InternalClaimStakerError: GenericPalletError<Rv>;
|
|
582
582
|
|
|
583
583
|
/**
|
|
584
584
|
* Account is has no eligible stake amount for bonus reward.
|
|
585
585
|
**/
|
|
586
|
-
NotEligibleForBonusReward: GenericPalletError
|
|
586
|
+
NotEligibleForBonusReward: GenericPalletError<Rv>;
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
* An unexpected error occurred while trying to claim bonus reward.
|
|
590
590
|
**/
|
|
591
|
-
InternalClaimBonusError: GenericPalletError
|
|
591
|
+
InternalClaimBonusError: GenericPalletError<Rv>;
|
|
592
592
|
|
|
593
593
|
/**
|
|
594
594
|
* Claim era is invalid - it must be in history, and rewards must exist for it.
|
|
595
595
|
**/
|
|
596
|
-
InvalidClaimEra: GenericPalletError
|
|
596
|
+
InvalidClaimEra: GenericPalletError<Rv>;
|
|
597
597
|
|
|
598
598
|
/**
|
|
599
599
|
* No dApp tier info exists for the specified era. This can be because era has expired
|
|
600
600
|
* or because during the specified era there were no eligible rewards or protocol wasn't active.
|
|
601
601
|
**/
|
|
602
|
-
NoDAppTierInfo: GenericPalletError
|
|
602
|
+
NoDAppTierInfo: GenericPalletError<Rv>;
|
|
603
603
|
|
|
604
604
|
/**
|
|
605
605
|
* An unexpected error occurred while trying to claim dApp reward.
|
|
606
606
|
**/
|
|
607
|
-
InternalClaimDAppError: GenericPalletError
|
|
607
|
+
InternalClaimDAppError: GenericPalletError<Rv>;
|
|
608
608
|
|
|
609
609
|
/**
|
|
610
610
|
* Contract is still active, not unregistered.
|
|
611
611
|
**/
|
|
612
|
-
ContractStillActive: GenericPalletError
|
|
612
|
+
ContractStillActive: GenericPalletError<Rv>;
|
|
613
613
|
|
|
614
614
|
/**
|
|
615
615
|
* There are too many contract stake entries for the account. This can be cleaned up by either unstaking or cleaning expired entries.
|
|
616
616
|
**/
|
|
617
|
-
TooManyStakedContracts: GenericPalletError
|
|
617
|
+
TooManyStakedContracts: GenericPalletError<Rv>;
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
620
|
* There are no expired entries to cleanup for the account.
|
|
621
621
|
**/
|
|
622
|
-
NoExpiredEntries: GenericPalletError
|
|
622
|
+
NoExpiredEntries: GenericPalletError<Rv>;
|
|
623
623
|
|
|
624
624
|
/**
|
|
625
625
|
* Force call is not allowed in production.
|
|
626
626
|
**/
|
|
627
|
-
ForceNotAllowed: GenericPalletError
|
|
627
|
+
ForceNotAllowed: GenericPalletError<Rv>;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Account doesn't have the freeze inconsistency
|
|
631
|
+
**/
|
|
632
|
+
AccountNotInconsistent: GenericPalletError<Rv>;
|
|
628
633
|
|
|
629
634
|
/**
|
|
630
635
|
* Generic pallet error
|
|
631
636
|
**/
|
|
632
|
-
[error: string]: GenericPalletError
|
|
637
|
+
[error: string]: GenericPalletError<Rv>;
|
|
633
638
|
};
|
|
634
639
|
/**
|
|
635
640
|
* Pallet `Assets`'s errors
|
|
@@ -638,110 +643,153 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
638
643
|
/**
|
|
639
644
|
* Account balance must be greater than or equal to the transfer amount.
|
|
640
645
|
**/
|
|
641
|
-
BalanceLow: GenericPalletError
|
|
646
|
+
BalanceLow: GenericPalletError<Rv>;
|
|
642
647
|
|
|
643
648
|
/**
|
|
644
649
|
* The account to alter does not exist.
|
|
645
650
|
**/
|
|
646
|
-
NoAccount: GenericPalletError
|
|
651
|
+
NoAccount: GenericPalletError<Rv>;
|
|
647
652
|
|
|
648
653
|
/**
|
|
649
654
|
* The signing account has no permission to do the operation.
|
|
650
655
|
**/
|
|
651
|
-
NoPermission: GenericPalletError
|
|
656
|
+
NoPermission: GenericPalletError<Rv>;
|
|
652
657
|
|
|
653
658
|
/**
|
|
654
659
|
* The given asset ID is unknown.
|
|
655
660
|
**/
|
|
656
|
-
Unknown: GenericPalletError
|
|
661
|
+
Unknown: GenericPalletError<Rv>;
|
|
657
662
|
|
|
658
663
|
/**
|
|
659
664
|
* The origin account is frozen.
|
|
660
665
|
**/
|
|
661
|
-
Frozen: GenericPalletError
|
|
666
|
+
Frozen: GenericPalletError<Rv>;
|
|
662
667
|
|
|
663
668
|
/**
|
|
664
669
|
* The asset ID is already taken.
|
|
665
670
|
**/
|
|
666
|
-
InUse: GenericPalletError
|
|
671
|
+
InUse: GenericPalletError<Rv>;
|
|
667
672
|
|
|
668
673
|
/**
|
|
669
674
|
* Invalid witness data given.
|
|
670
675
|
**/
|
|
671
|
-
BadWitness: GenericPalletError
|
|
676
|
+
BadWitness: GenericPalletError<Rv>;
|
|
672
677
|
|
|
673
678
|
/**
|
|
674
679
|
* Minimum balance should be non-zero.
|
|
675
680
|
**/
|
|
676
|
-
MinBalanceZero: GenericPalletError
|
|
681
|
+
MinBalanceZero: GenericPalletError<Rv>;
|
|
677
682
|
|
|
678
683
|
/**
|
|
679
684
|
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
680
685
|
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
681
686
|
* fewer then the maximum number of consumers has been reached.
|
|
682
687
|
**/
|
|
683
|
-
UnavailableConsumer: GenericPalletError
|
|
688
|
+
UnavailableConsumer: GenericPalletError<Rv>;
|
|
684
689
|
|
|
685
690
|
/**
|
|
686
691
|
* Invalid metadata given.
|
|
687
692
|
**/
|
|
688
|
-
BadMetadata: GenericPalletError
|
|
693
|
+
BadMetadata: GenericPalletError<Rv>;
|
|
689
694
|
|
|
690
695
|
/**
|
|
691
696
|
* No approval exists that would allow the transfer.
|
|
692
697
|
**/
|
|
693
|
-
Unapproved: GenericPalletError
|
|
698
|
+
Unapproved: GenericPalletError<Rv>;
|
|
694
699
|
|
|
695
700
|
/**
|
|
696
701
|
* The source account would not survive the transfer and it needs to stay alive.
|
|
697
702
|
**/
|
|
698
|
-
WouldDie: GenericPalletError
|
|
703
|
+
WouldDie: GenericPalletError<Rv>;
|
|
699
704
|
|
|
700
705
|
/**
|
|
701
706
|
* The asset-account already exists.
|
|
702
707
|
**/
|
|
703
|
-
AlreadyExists: GenericPalletError
|
|
708
|
+
AlreadyExists: GenericPalletError<Rv>;
|
|
704
709
|
|
|
705
710
|
/**
|
|
706
711
|
* The asset-account doesn't have an associated deposit.
|
|
707
712
|
**/
|
|
708
|
-
NoDeposit: GenericPalletError
|
|
713
|
+
NoDeposit: GenericPalletError<Rv>;
|
|
709
714
|
|
|
710
715
|
/**
|
|
711
716
|
* The operation would result in funds being burned.
|
|
712
717
|
**/
|
|
713
|
-
WouldBurn: GenericPalletError
|
|
718
|
+
WouldBurn: GenericPalletError<Rv>;
|
|
714
719
|
|
|
715
720
|
/**
|
|
716
721
|
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
717
722
|
* as `start_destroy` which require the asset to be in a destroying state.
|
|
718
723
|
**/
|
|
719
|
-
LiveAsset: GenericPalletError
|
|
724
|
+
LiveAsset: GenericPalletError<Rv>;
|
|
720
725
|
|
|
721
726
|
/**
|
|
722
727
|
* The asset is not live, and likely being destroyed.
|
|
723
728
|
**/
|
|
724
|
-
AssetNotLive: GenericPalletError
|
|
729
|
+
AssetNotLive: GenericPalletError<Rv>;
|
|
725
730
|
|
|
726
731
|
/**
|
|
727
732
|
* The asset status is not the expected status.
|
|
728
733
|
**/
|
|
729
|
-
IncorrectStatus: GenericPalletError
|
|
734
|
+
IncorrectStatus: GenericPalletError<Rv>;
|
|
730
735
|
|
|
731
736
|
/**
|
|
732
737
|
* The asset should be frozen before the given operation.
|
|
733
738
|
**/
|
|
734
|
-
NotFrozen: GenericPalletError
|
|
739
|
+
NotFrozen: GenericPalletError<Rv>;
|
|
735
740
|
|
|
736
741
|
/**
|
|
737
742
|
* Callback action resulted in error
|
|
738
743
|
**/
|
|
739
|
-
CallbackFailed: GenericPalletError
|
|
744
|
+
CallbackFailed: GenericPalletError<Rv>;
|
|
740
745
|
|
|
741
746
|
/**
|
|
742
747
|
* Generic pallet error
|
|
743
748
|
**/
|
|
744
|
-
[error: string]: GenericPalletError
|
|
749
|
+
[error: string]: GenericPalletError<Rv>;
|
|
750
|
+
};
|
|
751
|
+
/**
|
|
752
|
+
* Pallet `Oracle`'s errors
|
|
753
|
+
**/
|
|
754
|
+
oracle: {
|
|
755
|
+
/**
|
|
756
|
+
* Sender does not have permission
|
|
757
|
+
**/
|
|
758
|
+
NoPermission: GenericPalletError<Rv>;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Feeder has already feeded at this block
|
|
762
|
+
**/
|
|
763
|
+
AlreadyFeeded: GenericPalletError<Rv>;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Generic pallet error
|
|
767
|
+
**/
|
|
768
|
+
[error: string]: GenericPalletError<Rv>;
|
|
769
|
+
};
|
|
770
|
+
/**
|
|
771
|
+
* Pallet `OracleMembership`'s errors
|
|
772
|
+
**/
|
|
773
|
+
oracleMembership: {
|
|
774
|
+
/**
|
|
775
|
+
* Already a member.
|
|
776
|
+
**/
|
|
777
|
+
AlreadyMember: GenericPalletError<Rv>;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Not a member.
|
|
781
|
+
**/
|
|
782
|
+
NotMember: GenericPalletError<Rv>;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Too many members.
|
|
786
|
+
**/
|
|
787
|
+
TooManyMembers: GenericPalletError<Rv>;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Generic pallet error
|
|
791
|
+
**/
|
|
792
|
+
[error: string]: GenericPalletError<Rv>;
|
|
745
793
|
};
|
|
746
794
|
/**
|
|
747
795
|
* Pallet `CollatorSelection`'s errors
|
|
@@ -750,57 +798,57 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
750
798
|
/**
|
|
751
799
|
* Too many candidates
|
|
752
800
|
**/
|
|
753
|
-
TooManyCandidates: GenericPalletError
|
|
801
|
+
TooManyCandidates: GenericPalletError<Rv>;
|
|
754
802
|
|
|
755
803
|
/**
|
|
756
804
|
* Too few candidates
|
|
757
805
|
**/
|
|
758
|
-
TooFewCandidates: GenericPalletError
|
|
806
|
+
TooFewCandidates: GenericPalletError<Rv>;
|
|
759
807
|
|
|
760
808
|
/**
|
|
761
809
|
* Unknown error
|
|
762
810
|
**/
|
|
763
|
-
Unknown: GenericPalletError
|
|
811
|
+
Unknown: GenericPalletError<Rv>;
|
|
764
812
|
|
|
765
813
|
/**
|
|
766
814
|
* Permission issue
|
|
767
815
|
**/
|
|
768
|
-
Permission: GenericPalletError
|
|
816
|
+
Permission: GenericPalletError<Rv>;
|
|
769
817
|
|
|
770
818
|
/**
|
|
771
819
|
* User is already a candidate
|
|
772
820
|
**/
|
|
773
|
-
AlreadyCandidate: GenericPalletError
|
|
821
|
+
AlreadyCandidate: GenericPalletError<Rv>;
|
|
774
822
|
|
|
775
823
|
/**
|
|
776
824
|
* User is not a candidate
|
|
777
825
|
**/
|
|
778
|
-
NotCandidate: GenericPalletError
|
|
826
|
+
NotCandidate: GenericPalletError<Rv>;
|
|
779
827
|
|
|
780
828
|
/**
|
|
781
829
|
* User is already an Invulnerable
|
|
782
830
|
**/
|
|
783
|
-
AlreadyInvulnerable: GenericPalletError
|
|
831
|
+
AlreadyInvulnerable: GenericPalletError<Rv>;
|
|
784
832
|
|
|
785
833
|
/**
|
|
786
834
|
* Account has no associated validator ID
|
|
787
835
|
**/
|
|
788
|
-
NoAssociatedValidatorId: GenericPalletError
|
|
836
|
+
NoAssociatedValidatorId: GenericPalletError<Rv>;
|
|
789
837
|
|
|
790
838
|
/**
|
|
791
839
|
* Validator ID is not yet registered
|
|
792
840
|
**/
|
|
793
|
-
ValidatorNotRegistered: GenericPalletError
|
|
841
|
+
ValidatorNotRegistered: GenericPalletError<Rv>;
|
|
794
842
|
|
|
795
843
|
/**
|
|
796
844
|
* Account is now allowed to be a candidate due to an external reason (e.g. it might be participating in dApp staking)
|
|
797
845
|
**/
|
|
798
|
-
NotAllowedCandidate: GenericPalletError
|
|
846
|
+
NotAllowedCandidate: GenericPalletError<Rv>;
|
|
799
847
|
|
|
800
848
|
/**
|
|
801
849
|
* Generic pallet error
|
|
802
850
|
**/
|
|
803
|
-
[error: string]: GenericPalletError
|
|
851
|
+
[error: string]: GenericPalletError<Rv>;
|
|
804
852
|
};
|
|
805
853
|
/**
|
|
806
854
|
* Pallet `Session`'s errors
|
|
@@ -809,32 +857,32 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
809
857
|
/**
|
|
810
858
|
* Invalid ownership proof.
|
|
811
859
|
**/
|
|
812
|
-
InvalidProof: GenericPalletError
|
|
860
|
+
InvalidProof: GenericPalletError<Rv>;
|
|
813
861
|
|
|
814
862
|
/**
|
|
815
863
|
* No associated validator ID for account.
|
|
816
864
|
**/
|
|
817
|
-
NoAssociatedValidatorId: GenericPalletError
|
|
865
|
+
NoAssociatedValidatorId: GenericPalletError<Rv>;
|
|
818
866
|
|
|
819
867
|
/**
|
|
820
868
|
* Registered duplicate key.
|
|
821
869
|
**/
|
|
822
|
-
DuplicatedKey: GenericPalletError
|
|
870
|
+
DuplicatedKey: GenericPalletError<Rv>;
|
|
823
871
|
|
|
824
872
|
/**
|
|
825
873
|
* No keys are associated with this account.
|
|
826
874
|
**/
|
|
827
|
-
NoKeys: GenericPalletError
|
|
875
|
+
NoKeys: GenericPalletError<Rv>;
|
|
828
876
|
|
|
829
877
|
/**
|
|
830
878
|
* Key setting account is not live, so it's impossible to associate keys.
|
|
831
879
|
**/
|
|
832
|
-
NoAccount: GenericPalletError
|
|
880
|
+
NoAccount: GenericPalletError<Rv>;
|
|
833
881
|
|
|
834
882
|
/**
|
|
835
883
|
* Generic pallet error
|
|
836
884
|
**/
|
|
837
|
-
[error: string]: GenericPalletError
|
|
885
|
+
[error: string]: GenericPalletError<Rv>;
|
|
838
886
|
};
|
|
839
887
|
/**
|
|
840
888
|
* Pallet `XcmpQueue`'s errors
|
|
@@ -843,32 +891,32 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
843
891
|
/**
|
|
844
892
|
* Failed to send XCM message.
|
|
845
893
|
**/
|
|
846
|
-
FailedToSend: GenericPalletError
|
|
894
|
+
FailedToSend: GenericPalletError<Rv>;
|
|
847
895
|
|
|
848
896
|
/**
|
|
849
897
|
* Bad XCM origin.
|
|
850
898
|
**/
|
|
851
|
-
BadXcmOrigin: GenericPalletError
|
|
899
|
+
BadXcmOrigin: GenericPalletError<Rv>;
|
|
852
900
|
|
|
853
901
|
/**
|
|
854
902
|
* Bad XCM data.
|
|
855
903
|
**/
|
|
856
|
-
BadXcm: GenericPalletError
|
|
904
|
+
BadXcm: GenericPalletError<Rv>;
|
|
857
905
|
|
|
858
906
|
/**
|
|
859
907
|
* Bad overweight index.
|
|
860
908
|
**/
|
|
861
|
-
BadOverweightIndex: GenericPalletError
|
|
909
|
+
BadOverweightIndex: GenericPalletError<Rv>;
|
|
862
910
|
|
|
863
911
|
/**
|
|
864
912
|
* Provided weight is possibly not enough to execute the message.
|
|
865
913
|
**/
|
|
866
|
-
WeightOverLimit: GenericPalletError
|
|
914
|
+
WeightOverLimit: GenericPalletError<Rv>;
|
|
867
915
|
|
|
868
916
|
/**
|
|
869
917
|
* Generic pallet error
|
|
870
918
|
**/
|
|
871
|
-
[error: string]: GenericPalletError
|
|
919
|
+
[error: string]: GenericPalletError<Rv>;
|
|
872
920
|
};
|
|
873
921
|
/**
|
|
874
922
|
* Pallet `PolkadotXcm`'s errors
|
|
@@ -878,109 +926,109 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
878
926
|
* The desired destination was unreachable, generally because there is a no way of routing
|
|
879
927
|
* to it.
|
|
880
928
|
**/
|
|
881
|
-
Unreachable: GenericPalletError
|
|
929
|
+
Unreachable: GenericPalletError<Rv>;
|
|
882
930
|
|
|
883
931
|
/**
|
|
884
|
-
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
885
|
-
* a lack of space for buffering the message.
|
|
932
|
+
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
933
|
+
* Perhaps a lack of space for buffering the message.
|
|
886
934
|
**/
|
|
887
|
-
SendFailure: GenericPalletError
|
|
935
|
+
SendFailure: GenericPalletError<Rv>;
|
|
888
936
|
|
|
889
937
|
/**
|
|
890
938
|
* The message execution fails the filter.
|
|
891
939
|
**/
|
|
892
|
-
Filtered: GenericPalletError
|
|
940
|
+
Filtered: GenericPalletError<Rv>;
|
|
893
941
|
|
|
894
942
|
/**
|
|
895
943
|
* The message's weight could not be determined.
|
|
896
944
|
**/
|
|
897
|
-
UnweighableMessage: GenericPalletError
|
|
945
|
+
UnweighableMessage: GenericPalletError<Rv>;
|
|
898
946
|
|
|
899
947
|
/**
|
|
900
948
|
* The destination `MultiLocation` provided cannot be inverted.
|
|
901
949
|
**/
|
|
902
|
-
DestinationNotInvertible: GenericPalletError
|
|
950
|
+
DestinationNotInvertible: GenericPalletError<Rv>;
|
|
903
951
|
|
|
904
952
|
/**
|
|
905
953
|
* The assets to be sent are empty.
|
|
906
954
|
**/
|
|
907
|
-
Empty: GenericPalletError
|
|
955
|
+
Empty: GenericPalletError<Rv>;
|
|
908
956
|
|
|
909
957
|
/**
|
|
910
958
|
* Could not re-anchor the assets to declare the fees for the destination chain.
|
|
911
959
|
**/
|
|
912
|
-
CannotReanchor: GenericPalletError
|
|
960
|
+
CannotReanchor: GenericPalletError<Rv>;
|
|
913
961
|
|
|
914
962
|
/**
|
|
915
963
|
* Too many assets have been attempted for transfer.
|
|
916
964
|
**/
|
|
917
|
-
TooManyAssets: GenericPalletError
|
|
965
|
+
TooManyAssets: GenericPalletError<Rv>;
|
|
918
966
|
|
|
919
967
|
/**
|
|
920
968
|
* Origin is invalid for sending.
|
|
921
969
|
**/
|
|
922
|
-
InvalidOrigin: GenericPalletError
|
|
970
|
+
InvalidOrigin: GenericPalletError<Rv>;
|
|
923
971
|
|
|
924
972
|
/**
|
|
925
973
|
* The version of the `Versioned` value used is not able to be interpreted.
|
|
926
974
|
**/
|
|
927
|
-
BadVersion: GenericPalletError
|
|
975
|
+
BadVersion: GenericPalletError<Rv>;
|
|
928
976
|
|
|
929
977
|
/**
|
|
930
978
|
* The given location could not be used (e.g. because it cannot be expressed in the
|
|
931
979
|
* desired version of XCM).
|
|
932
980
|
**/
|
|
933
|
-
BadLocation: GenericPalletError
|
|
981
|
+
BadLocation: GenericPalletError<Rv>;
|
|
934
982
|
|
|
935
983
|
/**
|
|
936
984
|
* The referenced subscription could not be found.
|
|
937
985
|
**/
|
|
938
|
-
NoSubscription: GenericPalletError
|
|
986
|
+
NoSubscription: GenericPalletError<Rv>;
|
|
939
987
|
|
|
940
988
|
/**
|
|
941
989
|
* The location is invalid since it already has a subscription from us.
|
|
942
990
|
**/
|
|
943
|
-
AlreadySubscribed: GenericPalletError
|
|
991
|
+
AlreadySubscribed: GenericPalletError<Rv>;
|
|
944
992
|
|
|
945
993
|
/**
|
|
946
994
|
* Invalid asset for the operation.
|
|
947
995
|
**/
|
|
948
|
-
InvalidAsset: GenericPalletError
|
|
996
|
+
InvalidAsset: GenericPalletError<Rv>;
|
|
949
997
|
|
|
950
998
|
/**
|
|
951
999
|
* The owner does not own (all) of the asset that they wish to do the operation on.
|
|
952
1000
|
**/
|
|
953
|
-
LowBalance: GenericPalletError
|
|
1001
|
+
LowBalance: GenericPalletError<Rv>;
|
|
954
1002
|
|
|
955
1003
|
/**
|
|
956
1004
|
* The asset owner has too many locks on the asset.
|
|
957
1005
|
**/
|
|
958
|
-
TooManyLocks: GenericPalletError
|
|
1006
|
+
TooManyLocks: GenericPalletError<Rv>;
|
|
959
1007
|
|
|
960
1008
|
/**
|
|
961
1009
|
* The given account is not an identifiable sovereign account for any location.
|
|
962
1010
|
**/
|
|
963
|
-
AccountNotSovereign: GenericPalletError
|
|
1011
|
+
AccountNotSovereign: GenericPalletError<Rv>;
|
|
964
1012
|
|
|
965
1013
|
/**
|
|
966
1014
|
* The operation required fees to be paid which the initiator could not meet.
|
|
967
1015
|
**/
|
|
968
|
-
FeesNotMet: GenericPalletError
|
|
1016
|
+
FeesNotMet: GenericPalletError<Rv>;
|
|
969
1017
|
|
|
970
1018
|
/**
|
|
971
1019
|
* A remote lock with the corresponding data could not be found.
|
|
972
1020
|
**/
|
|
973
|
-
LockNotFound: GenericPalletError
|
|
1021
|
+
LockNotFound: GenericPalletError<Rv>;
|
|
974
1022
|
|
|
975
1023
|
/**
|
|
976
1024
|
* The unlock operation cannot succeed because there are still consumers of the lock.
|
|
977
1025
|
**/
|
|
978
|
-
InUse: GenericPalletError
|
|
1026
|
+
InUse: GenericPalletError<Rv>;
|
|
979
1027
|
|
|
980
1028
|
/**
|
|
981
1029
|
* Generic pallet error
|
|
982
1030
|
**/
|
|
983
|
-
[error: string]: GenericPalletError
|
|
1031
|
+
[error: string]: GenericPalletError<Rv>;
|
|
984
1032
|
};
|
|
985
1033
|
/**
|
|
986
1034
|
* Pallet `CumulusXcm`'s errors
|
|
@@ -989,7 +1037,7 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
989
1037
|
/**
|
|
990
1038
|
* Generic pallet error
|
|
991
1039
|
**/
|
|
992
|
-
[error: string]: GenericPalletError
|
|
1040
|
+
[error: string]: GenericPalletError<Rv>;
|
|
993
1041
|
};
|
|
994
1042
|
/**
|
|
995
1043
|
* Pallet `DmpQueue`'s errors
|
|
@@ -998,17 +1046,17 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
998
1046
|
/**
|
|
999
1047
|
* The message index given is unknown.
|
|
1000
1048
|
**/
|
|
1001
|
-
Unknown: GenericPalletError
|
|
1049
|
+
Unknown: GenericPalletError<Rv>;
|
|
1002
1050
|
|
|
1003
1051
|
/**
|
|
1004
1052
|
* The amount of weight given is possibly not enough for executing the message.
|
|
1005
1053
|
**/
|
|
1006
|
-
OverLimit: GenericPalletError
|
|
1054
|
+
OverLimit: GenericPalletError<Rv>;
|
|
1007
1055
|
|
|
1008
1056
|
/**
|
|
1009
1057
|
* Generic pallet error
|
|
1010
1058
|
**/
|
|
1011
|
-
[error: string]: GenericPalletError
|
|
1059
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1012
1060
|
};
|
|
1013
1061
|
/**
|
|
1014
1062
|
* Pallet `XcAssetConfig`'s errors
|
|
@@ -1017,22 +1065,22 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1017
1065
|
/**
|
|
1018
1066
|
* Asset is already registered.
|
|
1019
1067
|
**/
|
|
1020
|
-
AssetAlreadyRegistered: GenericPalletError
|
|
1068
|
+
AssetAlreadyRegistered: GenericPalletError<Rv>;
|
|
1021
1069
|
|
|
1022
1070
|
/**
|
|
1023
1071
|
* Asset does not exist (hasn't been registered).
|
|
1024
1072
|
**/
|
|
1025
|
-
AssetDoesNotExist: GenericPalletError
|
|
1073
|
+
AssetDoesNotExist: GenericPalletError<Rv>;
|
|
1026
1074
|
|
|
1027
1075
|
/**
|
|
1028
1076
|
* Failed to convert to latest versioned MultiLocation
|
|
1029
1077
|
**/
|
|
1030
|
-
MultiLocationNotSupported: GenericPalletError
|
|
1078
|
+
MultiLocationNotSupported: GenericPalletError<Rv>;
|
|
1031
1079
|
|
|
1032
1080
|
/**
|
|
1033
1081
|
* Generic pallet error
|
|
1034
1082
|
**/
|
|
1035
|
-
[error: string]: GenericPalletError
|
|
1083
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1036
1084
|
};
|
|
1037
1085
|
/**
|
|
1038
1086
|
* Pallet `XTokens`'s errors
|
|
@@ -1041,105 +1089,105 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1041
1089
|
/**
|
|
1042
1090
|
* Asset has no reserve location.
|
|
1043
1091
|
**/
|
|
1044
|
-
AssetHasNoReserve: GenericPalletError
|
|
1092
|
+
AssetHasNoReserve: GenericPalletError<Rv>;
|
|
1045
1093
|
|
|
1046
1094
|
/**
|
|
1047
1095
|
* Not cross-chain transfer.
|
|
1048
1096
|
**/
|
|
1049
|
-
NotCrossChainTransfer: GenericPalletError
|
|
1097
|
+
NotCrossChainTransfer: GenericPalletError<Rv>;
|
|
1050
1098
|
|
|
1051
1099
|
/**
|
|
1052
1100
|
* Invalid transfer destination.
|
|
1053
1101
|
**/
|
|
1054
|
-
InvalidDest: GenericPalletError
|
|
1102
|
+
InvalidDest: GenericPalletError<Rv>;
|
|
1055
1103
|
|
|
1056
1104
|
/**
|
|
1057
1105
|
* Currency is not cross-chain transferable.
|
|
1058
1106
|
**/
|
|
1059
|
-
NotCrossChainTransferableCurrency: GenericPalletError
|
|
1107
|
+
NotCrossChainTransferableCurrency: GenericPalletError<Rv>;
|
|
1060
1108
|
|
|
1061
1109
|
/**
|
|
1062
1110
|
* The message's weight could not be determined.
|
|
1063
1111
|
**/
|
|
1064
|
-
UnweighableMessage: GenericPalletError
|
|
1112
|
+
UnweighableMessage: GenericPalletError<Rv>;
|
|
1065
1113
|
|
|
1066
1114
|
/**
|
|
1067
1115
|
* XCM execution failed.
|
|
1068
1116
|
**/
|
|
1069
|
-
XcmExecutionFailed: GenericPalletError
|
|
1117
|
+
XcmExecutionFailed: GenericPalletError<Rv>;
|
|
1070
1118
|
|
|
1071
1119
|
/**
|
|
1072
1120
|
* Could not re-anchor the assets to declare the fees for the
|
|
1073
1121
|
* destination chain.
|
|
1074
1122
|
**/
|
|
1075
|
-
CannotReanchor: GenericPalletError
|
|
1123
|
+
CannotReanchor: GenericPalletError<Rv>;
|
|
1076
1124
|
|
|
1077
1125
|
/**
|
|
1078
1126
|
* Could not get ancestry of asset reserve location.
|
|
1079
1127
|
**/
|
|
1080
|
-
InvalidAncestry: GenericPalletError
|
|
1128
|
+
InvalidAncestry: GenericPalletError<Rv>;
|
|
1081
1129
|
|
|
1082
1130
|
/**
|
|
1083
1131
|
* The MultiAsset is invalid.
|
|
1084
1132
|
**/
|
|
1085
|
-
InvalidAsset: GenericPalletError
|
|
1133
|
+
InvalidAsset: GenericPalletError<Rv>;
|
|
1086
1134
|
|
|
1087
1135
|
/**
|
|
1088
1136
|
* The destination `MultiLocation` provided cannot be inverted.
|
|
1089
1137
|
**/
|
|
1090
|
-
DestinationNotInvertible: GenericPalletError
|
|
1138
|
+
DestinationNotInvertible: GenericPalletError<Rv>;
|
|
1091
1139
|
|
|
1092
1140
|
/**
|
|
1093
1141
|
* The version of the `Versioned` value used is not able to be
|
|
1094
1142
|
* interpreted.
|
|
1095
1143
|
**/
|
|
1096
|
-
BadVersion: GenericPalletError
|
|
1144
|
+
BadVersion: GenericPalletError<Rv>;
|
|
1097
1145
|
|
|
1098
1146
|
/**
|
|
1099
1147
|
* We tried sending distinct asset and fee but they have different
|
|
1100
1148
|
* reserve chains.
|
|
1101
1149
|
**/
|
|
1102
|
-
DistinctReserveForAssetAndFee: GenericPalletError
|
|
1150
|
+
DistinctReserveForAssetAndFee: GenericPalletError<Rv>;
|
|
1103
1151
|
|
|
1104
1152
|
/**
|
|
1105
1153
|
* The fee is zero.
|
|
1106
1154
|
**/
|
|
1107
|
-
ZeroFee: GenericPalletError
|
|
1155
|
+
ZeroFee: GenericPalletError<Rv>;
|
|
1108
1156
|
|
|
1109
1157
|
/**
|
|
1110
1158
|
* The transfering asset amount is zero.
|
|
1111
1159
|
**/
|
|
1112
|
-
ZeroAmount: GenericPalletError
|
|
1160
|
+
ZeroAmount: GenericPalletError<Rv>;
|
|
1113
1161
|
|
|
1114
1162
|
/**
|
|
1115
1163
|
* The number of assets to be sent is over the maximum.
|
|
1116
1164
|
**/
|
|
1117
|
-
TooManyAssetsBeingSent: GenericPalletError
|
|
1165
|
+
TooManyAssetsBeingSent: GenericPalletError<Rv>;
|
|
1118
1166
|
|
|
1119
1167
|
/**
|
|
1120
1168
|
* The specified index does not exist in a MultiAssets struct.
|
|
1121
1169
|
**/
|
|
1122
|
-
AssetIndexNonExistent: GenericPalletError
|
|
1170
|
+
AssetIndexNonExistent: GenericPalletError<Rv>;
|
|
1123
1171
|
|
|
1124
1172
|
/**
|
|
1125
1173
|
* Fee is not enough.
|
|
1126
1174
|
**/
|
|
1127
|
-
FeeNotEnough: GenericPalletError
|
|
1175
|
+
FeeNotEnough: GenericPalletError<Rv>;
|
|
1128
1176
|
|
|
1129
1177
|
/**
|
|
1130
1178
|
* Not supported MultiLocation
|
|
1131
1179
|
**/
|
|
1132
|
-
NotSupportedMultiLocation: GenericPalletError
|
|
1180
|
+
NotSupportedMultiLocation: GenericPalletError<Rv>;
|
|
1133
1181
|
|
|
1134
1182
|
/**
|
|
1135
1183
|
* MinXcmFee not registered for certain reserve location
|
|
1136
1184
|
**/
|
|
1137
|
-
MinXcmFeeNotDefined: GenericPalletError
|
|
1185
|
+
MinXcmFeeNotDefined: GenericPalletError<Rv>;
|
|
1138
1186
|
|
|
1139
1187
|
/**
|
|
1140
1188
|
* Generic pallet error
|
|
1141
1189
|
**/
|
|
1142
|
-
[error: string]: GenericPalletError
|
|
1190
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1143
1191
|
};
|
|
1144
1192
|
/**
|
|
1145
1193
|
* Pallet `EVM`'s errors
|
|
@@ -1148,62 +1196,72 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1148
1196
|
/**
|
|
1149
1197
|
* Not enough balance to perform action
|
|
1150
1198
|
**/
|
|
1151
|
-
BalanceLow: GenericPalletError
|
|
1199
|
+
BalanceLow: GenericPalletError<Rv>;
|
|
1152
1200
|
|
|
1153
1201
|
/**
|
|
1154
1202
|
* Calculating total fee overflowed
|
|
1155
1203
|
**/
|
|
1156
|
-
FeeOverflow: GenericPalletError
|
|
1204
|
+
FeeOverflow: GenericPalletError<Rv>;
|
|
1157
1205
|
|
|
1158
1206
|
/**
|
|
1159
1207
|
* Calculating total payment overflowed
|
|
1160
1208
|
**/
|
|
1161
|
-
PaymentOverflow: GenericPalletError
|
|
1209
|
+
PaymentOverflow: GenericPalletError<Rv>;
|
|
1162
1210
|
|
|
1163
1211
|
/**
|
|
1164
1212
|
* Withdraw fee failed
|
|
1165
1213
|
**/
|
|
1166
|
-
WithdrawFailed: GenericPalletError
|
|
1214
|
+
WithdrawFailed: GenericPalletError<Rv>;
|
|
1167
1215
|
|
|
1168
1216
|
/**
|
|
1169
1217
|
* Gas price is too low.
|
|
1170
1218
|
**/
|
|
1171
|
-
GasPriceTooLow: GenericPalletError
|
|
1219
|
+
GasPriceTooLow: GenericPalletError<Rv>;
|
|
1172
1220
|
|
|
1173
1221
|
/**
|
|
1174
1222
|
* Nonce is invalid
|
|
1175
1223
|
**/
|
|
1176
|
-
InvalidNonce: GenericPalletError
|
|
1224
|
+
InvalidNonce: GenericPalletError<Rv>;
|
|
1177
1225
|
|
|
1178
1226
|
/**
|
|
1179
1227
|
* Gas limit is too low.
|
|
1180
1228
|
**/
|
|
1181
|
-
GasLimitTooLow: GenericPalletError
|
|
1229
|
+
GasLimitTooLow: GenericPalletError<Rv>;
|
|
1182
1230
|
|
|
1183
1231
|
/**
|
|
1184
1232
|
* Gas limit is too high.
|
|
1185
1233
|
**/
|
|
1186
|
-
GasLimitTooHigh: GenericPalletError
|
|
1234
|
+
GasLimitTooHigh: GenericPalletError<Rv>;
|
|
1187
1235
|
|
|
1188
1236
|
/**
|
|
1189
|
-
*
|
|
1237
|
+
* The chain id is invalid.
|
|
1190
1238
|
**/
|
|
1191
|
-
|
|
1239
|
+
InvalidChainId: GenericPalletError<Rv>;
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* the signature is invalid.
|
|
1243
|
+
**/
|
|
1244
|
+
InvalidSignature: GenericPalletError<Rv>;
|
|
1192
1245
|
|
|
1193
1246
|
/**
|
|
1194
1247
|
* EVM reentrancy
|
|
1195
1248
|
**/
|
|
1196
|
-
Reentrancy: GenericPalletError
|
|
1249
|
+
Reentrancy: GenericPalletError<Rv>;
|
|
1197
1250
|
|
|
1198
1251
|
/**
|
|
1199
1252
|
* EIP-3607,
|
|
1200
1253
|
**/
|
|
1201
|
-
TransactionMustComeFromEOA: GenericPalletError
|
|
1254
|
+
TransactionMustComeFromEOA: GenericPalletError<Rv>;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Undefined error.
|
|
1258
|
+
**/
|
|
1259
|
+
Undefined: GenericPalletError<Rv>;
|
|
1202
1260
|
|
|
1203
1261
|
/**
|
|
1204
1262
|
* Generic pallet error
|
|
1205
1263
|
**/
|
|
1206
|
-
[error: string]: GenericPalletError
|
|
1264
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1207
1265
|
};
|
|
1208
1266
|
/**
|
|
1209
1267
|
* Pallet `Ethereum`'s errors
|
|
@@ -1212,17 +1270,17 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1212
1270
|
/**
|
|
1213
1271
|
* Signature is invalid.
|
|
1214
1272
|
**/
|
|
1215
|
-
InvalidSignature: GenericPalletError
|
|
1273
|
+
InvalidSignature: GenericPalletError<Rv>;
|
|
1216
1274
|
|
|
1217
1275
|
/**
|
|
1218
1276
|
* Pre-log is present, therefore transact is not allowed.
|
|
1219
1277
|
**/
|
|
1220
|
-
PreLogExists: GenericPalletError
|
|
1278
|
+
PreLogExists: GenericPalletError<Rv>;
|
|
1221
1279
|
|
|
1222
1280
|
/**
|
|
1223
1281
|
* Generic pallet error
|
|
1224
1282
|
**/
|
|
1225
|
-
[error: string]: GenericPalletError
|
|
1283
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1226
1284
|
};
|
|
1227
1285
|
/**
|
|
1228
1286
|
* Pallet `DynamicEvmBaseFee`'s errors
|
|
@@ -1231,124 +1289,129 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1231
1289
|
/**
|
|
1232
1290
|
* Specified value is outside of the allowed range.
|
|
1233
1291
|
**/
|
|
1234
|
-
ValueOutOfBounds: GenericPalletError
|
|
1292
|
+
ValueOutOfBounds: GenericPalletError<Rv>;
|
|
1235
1293
|
|
|
1236
1294
|
/**
|
|
1237
1295
|
* Generic pallet error
|
|
1238
1296
|
**/
|
|
1239
|
-
[error: string]: GenericPalletError
|
|
1297
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1240
1298
|
};
|
|
1241
1299
|
/**
|
|
1242
1300
|
* Pallet `Contracts`'s errors
|
|
1243
1301
|
**/
|
|
1244
1302
|
contracts: {
|
|
1245
1303
|
/**
|
|
1246
|
-
*
|
|
1304
|
+
* Invalid schedule supplied, e.g. with zero weight of a basic operation.
|
|
1247
1305
|
**/
|
|
1248
|
-
|
|
1306
|
+
InvalidSchedule: GenericPalletError<Rv>;
|
|
1249
1307
|
|
|
1250
1308
|
/**
|
|
1251
1309
|
* Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
|
|
1252
1310
|
**/
|
|
1253
|
-
InvalidCallFlags: GenericPalletError
|
|
1311
|
+
InvalidCallFlags: GenericPalletError<Rv>;
|
|
1254
1312
|
|
|
1255
1313
|
/**
|
|
1256
1314
|
* The executed contract exhausted its gas limit.
|
|
1257
1315
|
**/
|
|
1258
|
-
OutOfGas: GenericPalletError
|
|
1316
|
+
OutOfGas: GenericPalletError<Rv>;
|
|
1259
1317
|
|
|
1260
1318
|
/**
|
|
1261
1319
|
* The output buffer supplied to a contract API call was too small.
|
|
1262
1320
|
**/
|
|
1263
|
-
OutputBufferTooSmall: GenericPalletError
|
|
1321
|
+
OutputBufferTooSmall: GenericPalletError<Rv>;
|
|
1264
1322
|
|
|
1265
1323
|
/**
|
|
1266
1324
|
* Performing the requested transfer failed. Probably because there isn't enough
|
|
1267
1325
|
* free balance in the sender's account.
|
|
1268
1326
|
**/
|
|
1269
|
-
TransferFailed: GenericPalletError
|
|
1327
|
+
TransferFailed: GenericPalletError<Rv>;
|
|
1270
1328
|
|
|
1271
1329
|
/**
|
|
1272
1330
|
* Performing a call was denied because the calling depth reached the limit
|
|
1273
1331
|
* of what is specified in the schedule.
|
|
1274
1332
|
**/
|
|
1275
|
-
MaxCallDepthReached: GenericPalletError
|
|
1333
|
+
MaxCallDepthReached: GenericPalletError<Rv>;
|
|
1276
1334
|
|
|
1277
1335
|
/**
|
|
1278
1336
|
* No contract was found at the specified address.
|
|
1279
1337
|
**/
|
|
1280
|
-
ContractNotFound: GenericPalletError
|
|
1338
|
+
ContractNotFound: GenericPalletError<Rv>;
|
|
1281
1339
|
|
|
1282
1340
|
/**
|
|
1283
1341
|
* The code supplied to `instantiate_with_code` exceeds the limit specified in the
|
|
1284
1342
|
* current schedule.
|
|
1285
1343
|
**/
|
|
1286
|
-
CodeTooLarge: GenericPalletError
|
|
1344
|
+
CodeTooLarge: GenericPalletError<Rv>;
|
|
1287
1345
|
|
|
1288
1346
|
/**
|
|
1289
1347
|
* No code could be found at the supplied code hash.
|
|
1290
1348
|
**/
|
|
1291
|
-
CodeNotFound: GenericPalletError
|
|
1349
|
+
CodeNotFound: GenericPalletError<Rv>;
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* No code info could be found at the supplied code hash.
|
|
1353
|
+
**/
|
|
1354
|
+
CodeInfoNotFound: GenericPalletError<Rv>;
|
|
1292
1355
|
|
|
1293
1356
|
/**
|
|
1294
1357
|
* A buffer outside of sandbox memory was passed to a contract API function.
|
|
1295
1358
|
**/
|
|
1296
|
-
OutOfBounds: GenericPalletError
|
|
1359
|
+
OutOfBounds: GenericPalletError<Rv>;
|
|
1297
1360
|
|
|
1298
1361
|
/**
|
|
1299
1362
|
* Input passed to a contract API function failed to decode as expected type.
|
|
1300
1363
|
**/
|
|
1301
|
-
DecodingFailed: GenericPalletError
|
|
1364
|
+
DecodingFailed: GenericPalletError<Rv>;
|
|
1302
1365
|
|
|
1303
1366
|
/**
|
|
1304
1367
|
* Contract trapped during execution.
|
|
1305
1368
|
**/
|
|
1306
|
-
ContractTrapped: GenericPalletError
|
|
1369
|
+
ContractTrapped: GenericPalletError<Rv>;
|
|
1307
1370
|
|
|
1308
1371
|
/**
|
|
1309
1372
|
* The size defined in `T::MaxValueSize` was exceeded.
|
|
1310
1373
|
**/
|
|
1311
|
-
ValueTooLarge: GenericPalletError
|
|
1374
|
+
ValueTooLarge: GenericPalletError<Rv>;
|
|
1312
1375
|
|
|
1313
1376
|
/**
|
|
1314
1377
|
* Termination of a contract is not allowed while the contract is already
|
|
1315
1378
|
* on the call stack. Can be triggered by `seal_terminate`.
|
|
1316
1379
|
**/
|
|
1317
|
-
TerminatedWhileReentrant: GenericPalletError
|
|
1380
|
+
TerminatedWhileReentrant: GenericPalletError<Rv>;
|
|
1318
1381
|
|
|
1319
1382
|
/**
|
|
1320
1383
|
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
|
1321
1384
|
**/
|
|
1322
|
-
InputForwarded: GenericPalletError
|
|
1385
|
+
InputForwarded: GenericPalletError<Rv>;
|
|
1323
1386
|
|
|
1324
1387
|
/**
|
|
1325
1388
|
* The subject passed to `seal_random` exceeds the limit.
|
|
1326
1389
|
**/
|
|
1327
|
-
RandomSubjectTooLong: GenericPalletError
|
|
1390
|
+
RandomSubjectTooLong: GenericPalletError<Rv>;
|
|
1328
1391
|
|
|
1329
1392
|
/**
|
|
1330
1393
|
* The amount of topics passed to `seal_deposit_events` exceeds the limit.
|
|
1331
1394
|
**/
|
|
1332
|
-
TooManyTopics: GenericPalletError
|
|
1395
|
+
TooManyTopics: GenericPalletError<Rv>;
|
|
1333
1396
|
|
|
1334
1397
|
/**
|
|
1335
1398
|
* The chain does not provide a chain extension. Calling the chain extension results
|
|
1336
1399
|
* in this error. Note that this usually shouldn't happen as deploying such contracts
|
|
1337
1400
|
* is rejected.
|
|
1338
1401
|
**/
|
|
1339
|
-
NoChainExtension: GenericPalletError
|
|
1402
|
+
NoChainExtension: GenericPalletError<Rv>;
|
|
1340
1403
|
|
|
1341
1404
|
/**
|
|
1342
1405
|
* A contract with the same AccountId already exists.
|
|
1343
1406
|
**/
|
|
1344
|
-
DuplicateContract: GenericPalletError
|
|
1407
|
+
DuplicateContract: GenericPalletError<Rv>;
|
|
1345
1408
|
|
|
1346
1409
|
/**
|
|
1347
1410
|
* A contract self destructed in its constructor.
|
|
1348
1411
|
*
|
|
1349
1412
|
* This can be triggered by a call to `seal_terminate`.
|
|
1350
1413
|
**/
|
|
1351
|
-
TerminatedInConstructor: GenericPalletError
|
|
1414
|
+
TerminatedInConstructor: GenericPalletError<Rv>;
|
|
1352
1415
|
|
|
1353
1416
|
/**
|
|
1354
1417
|
* A call tried to invoke a contract that is flagged as non-reentrant.
|
|
@@ -1356,22 +1419,22 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1356
1419
|
* into `pallet-contracts`. This would make the whole pallet reentrant with regard to
|
|
1357
1420
|
* contract code execution which is not supported.
|
|
1358
1421
|
**/
|
|
1359
|
-
ReentranceDenied: GenericPalletError
|
|
1422
|
+
ReentranceDenied: GenericPalletError<Rv>;
|
|
1360
1423
|
|
|
1361
1424
|
/**
|
|
1362
1425
|
* Origin doesn't have enough balance to pay the required storage deposits.
|
|
1363
1426
|
**/
|
|
1364
|
-
StorageDepositNotEnoughFunds: GenericPalletError
|
|
1427
|
+
StorageDepositNotEnoughFunds: GenericPalletError<Rv>;
|
|
1365
1428
|
|
|
1366
1429
|
/**
|
|
1367
1430
|
* More storage was created than allowed by the storage deposit limit.
|
|
1368
1431
|
**/
|
|
1369
|
-
StorageDepositLimitExhausted: GenericPalletError
|
|
1432
|
+
StorageDepositLimitExhausted: GenericPalletError<Rv>;
|
|
1370
1433
|
|
|
1371
1434
|
/**
|
|
1372
1435
|
* Code removal was denied because the code is still in use by at least one contract.
|
|
1373
1436
|
**/
|
|
1374
|
-
CodeInUse: GenericPalletError
|
|
1437
|
+
CodeInUse: GenericPalletError<Rv>;
|
|
1375
1438
|
|
|
1376
1439
|
/**
|
|
1377
1440
|
* The contract ran to completion but decided to revert its storage changes.
|
|
@@ -1379,10 +1442,10 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1379
1442
|
* or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
|
|
1380
1443
|
* to determine whether a reversion has taken place.
|
|
1381
1444
|
**/
|
|
1382
|
-
ContractReverted: GenericPalletError
|
|
1445
|
+
ContractReverted: GenericPalletError<Rv>;
|
|
1383
1446
|
|
|
1384
1447
|
/**
|
|
1385
|
-
* The contract's code was found to be invalid during validation
|
|
1448
|
+
* The contract's code was found to be invalid during validation.
|
|
1386
1449
|
*
|
|
1387
1450
|
* The most likely cause of this is that an API was used which is not supported by the
|
|
1388
1451
|
* node. This happens if an older node is used with a new version of ink!. Try updating
|
|
@@ -1391,190 +1454,60 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1391
1454
|
* A more detailed error can be found on the node console if debug messages are enabled
|
|
1392
1455
|
* by supplying `-lruntime::contracts=debug`.
|
|
1393
1456
|
**/
|
|
1394
|
-
CodeRejected: GenericPalletError
|
|
1457
|
+
CodeRejected: GenericPalletError<Rv>;
|
|
1395
1458
|
|
|
1396
1459
|
/**
|
|
1397
1460
|
* An indetermistic code was used in a context where this is not permitted.
|
|
1398
1461
|
**/
|
|
1399
|
-
Indeterministic: GenericPalletError
|
|
1462
|
+
Indeterministic: GenericPalletError<Rv>;
|
|
1400
1463
|
|
|
1401
1464
|
/**
|
|
1402
1465
|
* A pending migration needs to complete before the extrinsic can be called.
|
|
1403
1466
|
**/
|
|
1404
|
-
MigrationInProgress: GenericPalletError
|
|
1467
|
+
MigrationInProgress: GenericPalletError<Rv>;
|
|
1405
1468
|
|
|
1406
1469
|
/**
|
|
1407
1470
|
* Migrate dispatch call was attempted but no migration was performed.
|
|
1408
1471
|
**/
|
|
1409
|
-
NoMigrationPerformed: GenericPalletError
|
|
1472
|
+
NoMigrationPerformed: GenericPalletError<Rv>;
|
|
1410
1473
|
|
|
1411
1474
|
/**
|
|
1412
|
-
*
|
|
1475
|
+
* The contract has reached its maximum number of delegate dependencies.
|
|
1413
1476
|
**/
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
/**
|
|
1417
|
-
* Pallet `Sudo`'s errors
|
|
1418
|
-
**/
|
|
1419
|
-
sudo: {
|
|
1477
|
+
MaxDelegateDependenciesReached: GenericPalletError<Rv>;
|
|
1478
|
+
|
|
1420
1479
|
/**
|
|
1421
|
-
*
|
|
1480
|
+
* The dependency was not found in the contract's delegate dependencies.
|
|
1422
1481
|
**/
|
|
1423
|
-
|
|
1482
|
+
DelegateDependencyNotFound: GenericPalletError<Rv>;
|
|
1424
1483
|
|
|
1425
1484
|
/**
|
|
1426
|
-
*
|
|
1485
|
+
* The contract already depends on the given delegate dependency.
|
|
1427
1486
|
**/
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
/**
|
|
1431
|
-
* Pallet `StaticPriceProvider`'s errors
|
|
1432
|
-
**/
|
|
1433
|
-
staticPriceProvider: {
|
|
1487
|
+
DelegateDependencyAlreadyExists: GenericPalletError<Rv>;
|
|
1488
|
+
|
|
1434
1489
|
/**
|
|
1435
|
-
*
|
|
1490
|
+
* Can not add a delegate dependency to the code hash of the contract itself.
|
|
1436
1491
|
**/
|
|
1437
|
-
|
|
1492
|
+
CannotAddSelfAsDelegateDependency: GenericPalletError<Rv>;
|
|
1438
1493
|
|
|
1439
1494
|
/**
|
|
1440
1495
|
* Generic pallet error
|
|
1441
1496
|
**/
|
|
1442
|
-
[error: string]: GenericPalletError
|
|
1497
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1443
1498
|
};
|
|
1444
1499
|
/**
|
|
1445
|
-
* Pallet `
|
|
1500
|
+
* Pallet `Sudo`'s errors
|
|
1446
1501
|
**/
|
|
1447
|
-
|
|
1448
|
-
/**
|
|
1449
|
-
* Disabled
|
|
1450
|
-
**/
|
|
1451
|
-
Disabled: GenericPalletError;
|
|
1452
|
-
|
|
1453
|
-
/**
|
|
1454
|
-
* No change in maintenance mode
|
|
1455
|
-
**/
|
|
1456
|
-
NoMaintenanceModeChange: GenericPalletError;
|
|
1457
|
-
|
|
1458
|
-
/**
|
|
1459
|
-
* Upgrade is too heavy, reduce the weight parameter.
|
|
1460
|
-
**/
|
|
1461
|
-
UpgradeTooHeavy: GenericPalletError;
|
|
1462
|
-
|
|
1463
|
-
/**
|
|
1464
|
-
* Can not stake with zero value.
|
|
1465
|
-
**/
|
|
1466
|
-
StakingWithNoValue: GenericPalletError;
|
|
1467
|
-
|
|
1468
|
-
/**
|
|
1469
|
-
* Can not stake with value less than minimum staking value
|
|
1470
|
-
**/
|
|
1471
|
-
InsufficientValue: GenericPalletError;
|
|
1472
|
-
|
|
1473
|
-
/**
|
|
1474
|
-
* Number of stakers per contract exceeded.
|
|
1475
|
-
**/
|
|
1476
|
-
MaxNumberOfStakersExceeded: GenericPalletError;
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* Targets must be operated contracts
|
|
1480
|
-
**/
|
|
1481
|
-
NotOperatedContract: GenericPalletError;
|
|
1482
|
-
|
|
1483
|
-
/**
|
|
1484
|
-
* Contract isn't staked.
|
|
1485
|
-
**/
|
|
1486
|
-
NotStakedContract: GenericPalletError;
|
|
1487
|
-
|
|
1488
|
-
/**
|
|
1489
|
-
* Contract isn't unregistered.
|
|
1490
|
-
**/
|
|
1491
|
-
NotUnregisteredContract: GenericPalletError;
|
|
1492
|
-
|
|
1493
|
-
/**
|
|
1494
|
-
* Unclaimed rewards should be claimed before withdrawing stake.
|
|
1495
|
-
**/
|
|
1496
|
-
UnclaimedRewardsRemaining: GenericPalletError;
|
|
1497
|
-
|
|
1498
|
-
/**
|
|
1499
|
-
* Unstaking a contract with zero value
|
|
1500
|
-
**/
|
|
1501
|
-
UnstakingWithNoValue: GenericPalletError;
|
|
1502
|
-
|
|
1503
|
-
/**
|
|
1504
|
-
* There are no previously unbonded funds that can be unstaked and withdrawn.
|
|
1505
|
-
**/
|
|
1506
|
-
NothingToWithdraw: GenericPalletError;
|
|
1507
|
-
|
|
1508
|
-
/**
|
|
1509
|
-
* The contract is already registered by other account
|
|
1510
|
-
**/
|
|
1511
|
-
AlreadyRegisteredContract: GenericPalletError;
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* This account was already used to register contract
|
|
1515
|
-
**/
|
|
1516
|
-
AlreadyUsedDeveloperAccount: GenericPalletError;
|
|
1517
|
-
|
|
1518
|
-
/**
|
|
1519
|
-
* Smart contract not owned by the account id.
|
|
1520
|
-
**/
|
|
1521
|
-
NotOwnedContract: GenericPalletError;
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* Report issue on github if this is ever emitted
|
|
1525
|
-
**/
|
|
1526
|
-
UnknownEraReward: GenericPalletError;
|
|
1527
|
-
|
|
1528
|
-
/**
|
|
1529
|
-
* Report issue on github if this is ever emitted
|
|
1530
|
-
**/
|
|
1531
|
-
UnexpectedStakeInfoEra: GenericPalletError;
|
|
1532
|
-
|
|
1533
|
-
/**
|
|
1534
|
-
* Contract has too many unlocking chunks. Withdraw the existing chunks if possible
|
|
1535
|
-
* or wait for current chunks to complete unlocking process to withdraw them.
|
|
1536
|
-
**/
|
|
1537
|
-
TooManyUnlockingChunks: GenericPalletError;
|
|
1538
|
-
|
|
1539
|
-
/**
|
|
1540
|
-
* Contract already claimed in this era and reward is distributed
|
|
1541
|
-
**/
|
|
1542
|
-
AlreadyClaimedInThisEra: GenericPalletError;
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* Era parameter is out of bounds
|
|
1546
|
-
**/
|
|
1547
|
-
EraOutOfBounds: GenericPalletError;
|
|
1548
|
-
|
|
1549
|
-
/**
|
|
1550
|
-
* Too many active `EraStake` values for (staker, contract) pairing.
|
|
1551
|
-
* Claim existing rewards to fix this problem.
|
|
1552
|
-
**/
|
|
1553
|
-
TooManyEraStakeValues: GenericPalletError;
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* Account is not actively staking
|
|
1557
|
-
**/
|
|
1558
|
-
NotActiveStaker: GenericPalletError;
|
|
1559
|
-
|
|
1560
|
-
/**
|
|
1561
|
-
* Transfering nomination to the same contract
|
|
1562
|
-
**/
|
|
1563
|
-
NominationTransferToSameContract: GenericPalletError;
|
|
1564
|
-
|
|
1565
|
-
/**
|
|
1566
|
-
* Decommission is in progress so this call is not allowed.
|
|
1567
|
-
**/
|
|
1568
|
-
DecommissionInProgress: GenericPalletError;
|
|
1569
|
-
|
|
1502
|
+
sudo: {
|
|
1570
1503
|
/**
|
|
1571
|
-
*
|
|
1504
|
+
* Sender must be the Sudo account
|
|
1572
1505
|
**/
|
|
1573
|
-
|
|
1506
|
+
RequireSudo: GenericPalletError<Rv>;
|
|
1574
1507
|
|
|
1575
1508
|
/**
|
|
1576
1509
|
* Generic pallet error
|
|
1577
1510
|
**/
|
|
1578
|
-
[error: string]: GenericPalletError
|
|
1511
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1579
1512
|
};
|
|
1580
1513
|
}
|