@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/aleph/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 `Scheduler`'s errors
|
|
@@ -53,32 +53,32 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
53
53
|
/**
|
|
54
54
|
* Failed to schedule a call
|
|
55
55
|
**/
|
|
56
|
-
FailedToSchedule: GenericPalletError
|
|
56
|
+
FailedToSchedule: GenericPalletError<Rv>;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Cannot find the scheduled call.
|
|
60
60
|
**/
|
|
61
|
-
NotFound: GenericPalletError
|
|
61
|
+
NotFound: GenericPalletError<Rv>;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* Given target block number is in the past.
|
|
65
65
|
**/
|
|
66
|
-
TargetBlockNumberInPast: GenericPalletError
|
|
66
|
+
TargetBlockNumberInPast: GenericPalletError<Rv>;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Reschedule failed because it does not change scheduled time.
|
|
70
70
|
**/
|
|
71
|
-
RescheduleNoChange: GenericPalletError
|
|
71
|
+
RescheduleNoChange: GenericPalletError<Rv>;
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Attempt to use a non-named function on a named task.
|
|
75
75
|
**/
|
|
76
|
-
Named: GenericPalletError
|
|
76
|
+
Named: GenericPalletError<Rv>;
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* Generic pallet error
|
|
80
80
|
**/
|
|
81
|
-
[error: string]: GenericPalletError
|
|
81
|
+
[error: string]: GenericPalletError<Rv>;
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* Pallet `Balances`'s errors
|
|
@@ -87,57 +87,57 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
87
87
|
/**
|
|
88
88
|
* Vesting balance too high to send value.
|
|
89
89
|
**/
|
|
90
|
-
VestingBalance: GenericPalletError
|
|
90
|
+
VestingBalance: GenericPalletError<Rv>;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Account liquidity restrictions prevent withdrawal.
|
|
94
94
|
**/
|
|
95
|
-
LiquidityRestrictions: GenericPalletError
|
|
95
|
+
LiquidityRestrictions: GenericPalletError<Rv>;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Balance too low to send value.
|
|
99
99
|
**/
|
|
100
|
-
InsufficientBalance: GenericPalletError
|
|
100
|
+
InsufficientBalance: GenericPalletError<Rv>;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Value too low to create account due to existential deposit.
|
|
104
104
|
**/
|
|
105
|
-
ExistentialDeposit: GenericPalletError
|
|
105
|
+
ExistentialDeposit: GenericPalletError<Rv>;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* Transfer/payment would kill account.
|
|
109
109
|
**/
|
|
110
|
-
Expendability: GenericPalletError
|
|
110
|
+
Expendability: GenericPalletError<Rv>;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* A vesting schedule already exists for this account.
|
|
114
114
|
**/
|
|
115
|
-
ExistingVestingSchedule: GenericPalletError
|
|
115
|
+
ExistingVestingSchedule: GenericPalletError<Rv>;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* Beneficiary account must pre-exist.
|
|
119
119
|
**/
|
|
120
|
-
DeadAccount: GenericPalletError
|
|
120
|
+
DeadAccount: GenericPalletError<Rv>;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Number of named reserves exceed `MaxReserves`.
|
|
124
124
|
**/
|
|
125
|
-
TooManyReserves: GenericPalletError
|
|
125
|
+
TooManyReserves: GenericPalletError<Rv>;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* Number of holds exceed `MaxHolds`.
|
|
129
129
|
**/
|
|
130
|
-
TooManyHolds: GenericPalletError
|
|
130
|
+
TooManyHolds: GenericPalletError<Rv>;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Number of freezes exceed `MaxFreezes`.
|
|
134
134
|
**/
|
|
135
|
-
TooManyFreezes: GenericPalletError
|
|
135
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* Generic pallet error
|
|
139
139
|
**/
|
|
140
|
-
[error: string]: GenericPalletError
|
|
140
|
+
[error: string]: GenericPalletError<Rv>;
|
|
141
141
|
};
|
|
142
142
|
/**
|
|
143
143
|
* Pallet `Staking`'s errors
|
|
@@ -146,136 +146,136 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
146
146
|
/**
|
|
147
147
|
* Not a controller account.
|
|
148
148
|
**/
|
|
149
|
-
NotController: GenericPalletError
|
|
149
|
+
NotController: GenericPalletError<Rv>;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Not a stash account.
|
|
153
153
|
**/
|
|
154
|
-
NotStash: GenericPalletError
|
|
154
|
+
NotStash: GenericPalletError<Rv>;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Stash is already bonded.
|
|
158
158
|
**/
|
|
159
|
-
AlreadyBonded: GenericPalletError
|
|
159
|
+
AlreadyBonded: GenericPalletError<Rv>;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* Controller is already paired.
|
|
163
163
|
**/
|
|
164
|
-
AlreadyPaired: GenericPalletError
|
|
164
|
+
AlreadyPaired: GenericPalletError<Rv>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Targets cannot be empty.
|
|
168
168
|
**/
|
|
169
|
-
EmptyTargets: GenericPalletError
|
|
169
|
+
EmptyTargets: GenericPalletError<Rv>;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Duplicate index.
|
|
173
173
|
**/
|
|
174
|
-
DuplicateIndex: GenericPalletError
|
|
174
|
+
DuplicateIndex: GenericPalletError<Rv>;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* Slash record index out of bounds.
|
|
178
178
|
**/
|
|
179
|
-
InvalidSlashIndex: GenericPalletError
|
|
179
|
+
InvalidSlashIndex: GenericPalletError<Rv>;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* Cannot have a validator or nominator role, with value less than the minimum defined by
|
|
183
183
|
* governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
|
|
184
184
|
* intention, `chill` first to remove one's role as validator/nominator.
|
|
185
185
|
**/
|
|
186
|
-
InsufficientBond: GenericPalletError
|
|
186
|
+
InsufficientBond: GenericPalletError<Rv>;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* Can not schedule more unlock chunks.
|
|
190
190
|
**/
|
|
191
|
-
NoMoreChunks: GenericPalletError
|
|
191
|
+
NoMoreChunks: GenericPalletError<Rv>;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
194
|
* Can not rebond without unlocking chunks.
|
|
195
195
|
**/
|
|
196
|
-
NoUnlockChunk: GenericPalletError
|
|
196
|
+
NoUnlockChunk: GenericPalletError<Rv>;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Attempting to target a stash that still has funds.
|
|
200
200
|
**/
|
|
201
|
-
FundedTarget: GenericPalletError
|
|
201
|
+
FundedTarget: GenericPalletError<Rv>;
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
204
|
* Invalid era to reward.
|
|
205
205
|
**/
|
|
206
|
-
InvalidEraToReward: GenericPalletError
|
|
206
|
+
InvalidEraToReward: GenericPalletError<Rv>;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Invalid number of nominations.
|
|
210
210
|
**/
|
|
211
|
-
InvalidNumberOfNominations: GenericPalletError
|
|
211
|
+
InvalidNumberOfNominations: GenericPalletError<Rv>;
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* Items are not sorted and unique.
|
|
215
215
|
**/
|
|
216
|
-
NotSortedAndUnique: GenericPalletError
|
|
216
|
+
NotSortedAndUnique: GenericPalletError<Rv>;
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
219
|
* Rewards for this era have already been claimed for this validator.
|
|
220
220
|
**/
|
|
221
|
-
AlreadyClaimed: GenericPalletError
|
|
221
|
+
AlreadyClaimed: GenericPalletError<Rv>;
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* Incorrect previous history depth input provided.
|
|
225
225
|
**/
|
|
226
|
-
IncorrectHistoryDepth: GenericPalletError
|
|
226
|
+
IncorrectHistoryDepth: GenericPalletError<Rv>;
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* Incorrect number of slashing spans provided.
|
|
230
230
|
**/
|
|
231
|
-
IncorrectSlashingSpans: GenericPalletError
|
|
231
|
+
IncorrectSlashingSpans: GenericPalletError<Rv>;
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
234
|
* Internal state has become somehow corrupted and the operation cannot continue.
|
|
235
235
|
**/
|
|
236
|
-
BadState: GenericPalletError
|
|
236
|
+
BadState: GenericPalletError<Rv>;
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* Too many nomination targets supplied.
|
|
240
240
|
**/
|
|
241
|
-
TooManyTargets: GenericPalletError
|
|
241
|
+
TooManyTargets: GenericPalletError<Rv>;
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
244
|
* A nomination target was supplied that was blocked or otherwise not a validator.
|
|
245
245
|
**/
|
|
246
|
-
BadTarget: GenericPalletError
|
|
246
|
+
BadTarget: GenericPalletError<Rv>;
|
|
247
247
|
|
|
248
248
|
/**
|
|
249
249
|
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
|
250
250
|
**/
|
|
251
|
-
CannotChillOther: GenericPalletError
|
|
251
|
+
CannotChillOther: GenericPalletError<Rv>;
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
254
|
* There are too many nominators in the system. Governance needs to adjust the staking
|
|
255
255
|
* settings to keep things safe for the runtime.
|
|
256
256
|
**/
|
|
257
|
-
TooManyNominators: GenericPalletError
|
|
257
|
+
TooManyNominators: GenericPalletError<Rv>;
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
260
|
* There are too many validator candidates in the system. Governance needs to adjust the
|
|
261
261
|
* staking settings to keep things safe for the runtime.
|
|
262
262
|
**/
|
|
263
|
-
TooManyValidators: GenericPalletError
|
|
263
|
+
TooManyValidators: GenericPalletError<Rv>;
|
|
264
264
|
|
|
265
265
|
/**
|
|
266
266
|
* Commission is too low. Must be at least `MinCommission`.
|
|
267
267
|
**/
|
|
268
|
-
CommissionTooLow: GenericPalletError
|
|
268
|
+
CommissionTooLow: GenericPalletError<Rv>;
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
271
|
* Some bound is not met.
|
|
272
272
|
**/
|
|
273
|
-
BoundNotMet: GenericPalletError
|
|
273
|
+
BoundNotMet: GenericPalletError<Rv>;
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Generic pallet error
|
|
277
277
|
**/
|
|
278
|
-
[error: string]: GenericPalletError
|
|
278
|
+
[error: string]: GenericPalletError<Rv>;
|
|
279
279
|
};
|
|
280
280
|
/**
|
|
281
281
|
* Pallet `Session`'s errors
|
|
@@ -284,47 +284,47 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
284
284
|
/**
|
|
285
285
|
* Invalid ownership proof.
|
|
286
286
|
**/
|
|
287
|
-
InvalidProof: GenericPalletError
|
|
287
|
+
InvalidProof: GenericPalletError<Rv>;
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
290
|
* No associated validator ID for account.
|
|
291
291
|
**/
|
|
292
|
-
NoAssociatedValidatorId: GenericPalletError
|
|
292
|
+
NoAssociatedValidatorId: GenericPalletError<Rv>;
|
|
293
293
|
|
|
294
294
|
/**
|
|
295
295
|
* Registered duplicate key.
|
|
296
296
|
**/
|
|
297
|
-
DuplicatedKey: GenericPalletError
|
|
297
|
+
DuplicatedKey: GenericPalletError<Rv>;
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* No keys are associated with this account.
|
|
301
301
|
**/
|
|
302
|
-
NoKeys: GenericPalletError
|
|
302
|
+
NoKeys: GenericPalletError<Rv>;
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
* Key setting account is not live, so it's impossible to associate keys.
|
|
306
306
|
**/
|
|
307
|
-
NoAccount: GenericPalletError
|
|
307
|
+
NoAccount: GenericPalletError<Rv>;
|
|
308
308
|
|
|
309
309
|
/**
|
|
310
310
|
* Generic pallet error
|
|
311
311
|
**/
|
|
312
|
-
[error: string]: GenericPalletError
|
|
312
|
+
[error: string]: GenericPalletError<Rv>;
|
|
313
313
|
};
|
|
314
314
|
/**
|
|
315
315
|
* Pallet `Elections`'s errors
|
|
316
316
|
**/
|
|
317
317
|
elections: {
|
|
318
|
-
NotEnoughValidators: GenericPalletError
|
|
319
|
-
NotEnoughReservedValidators: GenericPalletError
|
|
320
|
-
NotEnoughNonReservedValidators: GenericPalletError
|
|
321
|
-
NonUniqueListOfValidators: GenericPalletError
|
|
322
|
-
NonReservedFinalitySeatsLargerThanNonReservedSeats: GenericPalletError
|
|
318
|
+
NotEnoughValidators: GenericPalletError<Rv>;
|
|
319
|
+
NotEnoughReservedValidators: GenericPalletError<Rv>;
|
|
320
|
+
NotEnoughNonReservedValidators: GenericPalletError<Rv>;
|
|
321
|
+
NonUniqueListOfValidators: GenericPalletError<Rv>;
|
|
322
|
+
NonReservedFinalitySeatsLargerThanNonReservedSeats: GenericPalletError<Rv>;
|
|
323
323
|
|
|
324
324
|
/**
|
|
325
325
|
* Generic pallet error
|
|
326
326
|
**/
|
|
327
|
-
[error: string]: GenericPalletError
|
|
327
|
+
[error: string]: GenericPalletError<Rv>;
|
|
328
328
|
};
|
|
329
329
|
/**
|
|
330
330
|
* Pallet `Treasury`'s errors
|
|
@@ -333,33 +333,33 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
333
333
|
/**
|
|
334
334
|
* Proposer's balance is too low.
|
|
335
335
|
**/
|
|
336
|
-
InsufficientProposersBalance: GenericPalletError
|
|
336
|
+
InsufficientProposersBalance: GenericPalletError<Rv>;
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
339
|
* No proposal or bounty at that index.
|
|
340
340
|
**/
|
|
341
|
-
InvalidIndex: GenericPalletError
|
|
341
|
+
InvalidIndex: GenericPalletError<Rv>;
|
|
342
342
|
|
|
343
343
|
/**
|
|
344
344
|
* Too many approvals in the queue.
|
|
345
345
|
**/
|
|
346
|
-
TooManyApprovals: GenericPalletError
|
|
346
|
+
TooManyApprovals: GenericPalletError<Rv>;
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* The spend origin is valid but the amount it is allowed to spend is lower than the
|
|
350
350
|
* amount to be spent.
|
|
351
351
|
**/
|
|
352
|
-
InsufficientPermission: GenericPalletError
|
|
352
|
+
InsufficientPermission: GenericPalletError<Rv>;
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* Proposal has not been approved.
|
|
356
356
|
**/
|
|
357
|
-
ProposalNotApproved: GenericPalletError
|
|
357
|
+
ProposalNotApproved: GenericPalletError<Rv>;
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
* Generic pallet error
|
|
361
361
|
**/
|
|
362
|
-
[error: string]: GenericPalletError
|
|
362
|
+
[error: string]: GenericPalletError<Rv>;
|
|
363
363
|
};
|
|
364
364
|
/**
|
|
365
365
|
* Pallet `Vesting`'s errors
|
|
@@ -368,33 +368,33 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
368
368
|
/**
|
|
369
369
|
* The account given is not vesting.
|
|
370
370
|
**/
|
|
371
|
-
NotVesting: GenericPalletError
|
|
371
|
+
NotVesting: GenericPalletError<Rv>;
|
|
372
372
|
|
|
373
373
|
/**
|
|
374
374
|
* The account already has `MaxVestingSchedules` count of schedules and thus
|
|
375
375
|
* cannot add another one. Consider merging existing schedules in order to add another.
|
|
376
376
|
**/
|
|
377
|
-
AtMaxVestingSchedules: GenericPalletError
|
|
377
|
+
AtMaxVestingSchedules: GenericPalletError<Rv>;
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
380
|
* Amount being transferred is too low to create a vesting schedule.
|
|
381
381
|
**/
|
|
382
|
-
AmountLow: GenericPalletError
|
|
382
|
+
AmountLow: GenericPalletError<Rv>;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
385
|
* An index was out of bounds of the vesting schedules.
|
|
386
386
|
**/
|
|
387
|
-
ScheduleIndexOutOfBounds: GenericPalletError
|
|
387
|
+
ScheduleIndexOutOfBounds: GenericPalletError<Rv>;
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
390
|
* Failed to create a new schedule because some parameter was invalid.
|
|
391
391
|
**/
|
|
392
|
-
InvalidScheduleParams: GenericPalletError
|
|
392
|
+
InvalidScheduleParams: 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 `Utility`'s errors
|
|
@@ -403,12 +403,12 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
403
403
|
/**
|
|
404
404
|
* Too many calls batched.
|
|
405
405
|
**/
|
|
406
|
-
TooManyCalls: GenericPalletError
|
|
406
|
+
TooManyCalls: GenericPalletError<Rv>;
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
409
|
* Generic pallet error
|
|
410
410
|
**/
|
|
411
|
-
[error: string]: GenericPalletError
|
|
411
|
+
[error: string]: GenericPalletError<Rv>;
|
|
412
412
|
};
|
|
413
413
|
/**
|
|
414
414
|
* Pallet `Multisig`'s errors
|
|
@@ -417,77 +417,77 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
417
417
|
/**
|
|
418
418
|
* Threshold must be 2 or greater.
|
|
419
419
|
**/
|
|
420
|
-
MinimumThreshold: GenericPalletError
|
|
420
|
+
MinimumThreshold: GenericPalletError<Rv>;
|
|
421
421
|
|
|
422
422
|
/**
|
|
423
423
|
* Call is already approved by this signatory.
|
|
424
424
|
**/
|
|
425
|
-
AlreadyApproved: GenericPalletError
|
|
425
|
+
AlreadyApproved: GenericPalletError<Rv>;
|
|
426
426
|
|
|
427
427
|
/**
|
|
428
428
|
* Call doesn't need any (more) approvals.
|
|
429
429
|
**/
|
|
430
|
-
NoApprovalsNeeded: GenericPalletError
|
|
430
|
+
NoApprovalsNeeded: GenericPalletError<Rv>;
|
|
431
431
|
|
|
432
432
|
/**
|
|
433
433
|
* There are too few signatories in the list.
|
|
434
434
|
**/
|
|
435
|
-
TooFewSignatories: GenericPalletError
|
|
435
|
+
TooFewSignatories: GenericPalletError<Rv>;
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
438
|
* There are too many signatories in the list.
|
|
439
439
|
**/
|
|
440
|
-
TooManySignatories: GenericPalletError
|
|
440
|
+
TooManySignatories: GenericPalletError<Rv>;
|
|
441
441
|
|
|
442
442
|
/**
|
|
443
443
|
* The signatories were provided out of order; they should be ordered.
|
|
444
444
|
**/
|
|
445
|
-
SignatoriesOutOfOrder: GenericPalletError
|
|
445
|
+
SignatoriesOutOfOrder: GenericPalletError<Rv>;
|
|
446
446
|
|
|
447
447
|
/**
|
|
448
448
|
* The sender was contained in the other signatories; it shouldn't be.
|
|
449
449
|
**/
|
|
450
|
-
SenderInSignatories: GenericPalletError
|
|
450
|
+
SenderInSignatories: GenericPalletError<Rv>;
|
|
451
451
|
|
|
452
452
|
/**
|
|
453
453
|
* Multisig operation not found when attempting to cancel.
|
|
454
454
|
**/
|
|
455
|
-
NotFound: GenericPalletError
|
|
455
|
+
NotFound: GenericPalletError<Rv>;
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* Only the account that originally created the multisig is able to cancel it.
|
|
459
459
|
**/
|
|
460
|
-
NotOwner: GenericPalletError
|
|
460
|
+
NotOwner: GenericPalletError<Rv>;
|
|
461
461
|
|
|
462
462
|
/**
|
|
463
463
|
* No timepoint was given, yet the multisig operation is already underway.
|
|
464
464
|
**/
|
|
465
|
-
NoTimepoint: GenericPalletError
|
|
465
|
+
NoTimepoint: GenericPalletError<Rv>;
|
|
466
466
|
|
|
467
467
|
/**
|
|
468
468
|
* A different timepoint was given to the multisig operation that is underway.
|
|
469
469
|
**/
|
|
470
|
-
WrongTimepoint: GenericPalletError
|
|
470
|
+
WrongTimepoint: GenericPalletError<Rv>;
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
473
|
* A timepoint was given, yet no multisig operation is underway.
|
|
474
474
|
**/
|
|
475
|
-
UnexpectedTimepoint: GenericPalletError
|
|
475
|
+
UnexpectedTimepoint: GenericPalletError<Rv>;
|
|
476
476
|
|
|
477
477
|
/**
|
|
478
478
|
* The maximum weight information provided was too low.
|
|
479
479
|
**/
|
|
480
|
-
MaxWeightTooLow: GenericPalletError
|
|
480
|
+
MaxWeightTooLow: GenericPalletError<Rv>;
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
483
|
* The data to be stored is already stored.
|
|
484
484
|
**/
|
|
485
|
-
AlreadyStored: GenericPalletError
|
|
485
|
+
AlreadyStored: GenericPalletError<Rv>;
|
|
486
486
|
|
|
487
487
|
/**
|
|
488
488
|
* Generic pallet error
|
|
489
489
|
**/
|
|
490
|
-
[error: string]: GenericPalletError
|
|
490
|
+
[error: string]: GenericPalletError<Rv>;
|
|
491
491
|
};
|
|
492
492
|
/**
|
|
493
493
|
* Pallet `Sudo`'s errors
|
|
@@ -496,12 +496,12 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
496
496
|
/**
|
|
497
497
|
* Sender must be the Sudo account
|
|
498
498
|
**/
|
|
499
|
-
RequireSudo: GenericPalletError
|
|
499
|
+
RequireSudo: GenericPalletError<Rv>;
|
|
500
500
|
|
|
501
501
|
/**
|
|
502
502
|
* Generic pallet error
|
|
503
503
|
**/
|
|
504
|
-
[error: string]: GenericPalletError
|
|
504
|
+
[error: string]: GenericPalletError<Rv>;
|
|
505
505
|
};
|
|
506
506
|
/**
|
|
507
507
|
* Pallet `Contracts`'s errors
|
|
@@ -510,115 +510,115 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
510
510
|
/**
|
|
511
511
|
* Invalid schedule supplied, e.g. with zero weight of a basic operation.
|
|
512
512
|
**/
|
|
513
|
-
InvalidSchedule: GenericPalletError
|
|
513
|
+
InvalidSchedule: GenericPalletError<Rv>;
|
|
514
514
|
|
|
515
515
|
/**
|
|
516
516
|
* Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
|
|
517
517
|
**/
|
|
518
|
-
InvalidCallFlags: GenericPalletError
|
|
518
|
+
InvalidCallFlags: GenericPalletError<Rv>;
|
|
519
519
|
|
|
520
520
|
/**
|
|
521
521
|
* The executed contract exhausted its gas limit.
|
|
522
522
|
**/
|
|
523
|
-
OutOfGas: GenericPalletError
|
|
523
|
+
OutOfGas: GenericPalletError<Rv>;
|
|
524
524
|
|
|
525
525
|
/**
|
|
526
526
|
* The output buffer supplied to a contract API call was too small.
|
|
527
527
|
**/
|
|
528
|
-
OutputBufferTooSmall: GenericPalletError
|
|
528
|
+
OutputBufferTooSmall: GenericPalletError<Rv>;
|
|
529
529
|
|
|
530
530
|
/**
|
|
531
531
|
* Performing the requested transfer failed. Probably because there isn't enough
|
|
532
532
|
* free balance in the sender's account.
|
|
533
533
|
**/
|
|
534
|
-
TransferFailed: GenericPalletError
|
|
534
|
+
TransferFailed: GenericPalletError<Rv>;
|
|
535
535
|
|
|
536
536
|
/**
|
|
537
537
|
* Performing a call was denied because the calling depth reached the limit
|
|
538
538
|
* of what is specified in the schedule.
|
|
539
539
|
**/
|
|
540
|
-
MaxCallDepthReached: GenericPalletError
|
|
540
|
+
MaxCallDepthReached: GenericPalletError<Rv>;
|
|
541
541
|
|
|
542
542
|
/**
|
|
543
543
|
* No contract was found at the specified address.
|
|
544
544
|
**/
|
|
545
|
-
ContractNotFound: GenericPalletError
|
|
545
|
+
ContractNotFound: GenericPalletError<Rv>;
|
|
546
546
|
|
|
547
547
|
/**
|
|
548
548
|
* The code supplied to `instantiate_with_code` exceeds the limit specified in the
|
|
549
549
|
* current schedule.
|
|
550
550
|
**/
|
|
551
|
-
CodeTooLarge: GenericPalletError
|
|
551
|
+
CodeTooLarge: GenericPalletError<Rv>;
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
554
|
* No code could be found at the supplied code hash.
|
|
555
555
|
**/
|
|
556
|
-
CodeNotFound: GenericPalletError
|
|
556
|
+
CodeNotFound: GenericPalletError<Rv>;
|
|
557
557
|
|
|
558
558
|
/**
|
|
559
559
|
* No code info could be found at the supplied code hash.
|
|
560
560
|
**/
|
|
561
|
-
CodeInfoNotFound: GenericPalletError
|
|
561
|
+
CodeInfoNotFound: GenericPalletError<Rv>;
|
|
562
562
|
|
|
563
563
|
/**
|
|
564
564
|
* A buffer outside of sandbox memory was passed to a contract API function.
|
|
565
565
|
**/
|
|
566
|
-
OutOfBounds: GenericPalletError
|
|
566
|
+
OutOfBounds: GenericPalletError<Rv>;
|
|
567
567
|
|
|
568
568
|
/**
|
|
569
569
|
* Input passed to a contract API function failed to decode as expected type.
|
|
570
570
|
**/
|
|
571
|
-
DecodingFailed: GenericPalletError
|
|
571
|
+
DecodingFailed: GenericPalletError<Rv>;
|
|
572
572
|
|
|
573
573
|
/**
|
|
574
574
|
* Contract trapped during execution.
|
|
575
575
|
**/
|
|
576
|
-
ContractTrapped: GenericPalletError
|
|
576
|
+
ContractTrapped: GenericPalletError<Rv>;
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
579
|
* The size defined in `T::MaxValueSize` was exceeded.
|
|
580
580
|
**/
|
|
581
|
-
ValueTooLarge: GenericPalletError
|
|
581
|
+
ValueTooLarge: GenericPalletError<Rv>;
|
|
582
582
|
|
|
583
583
|
/**
|
|
584
584
|
* Termination of a contract is not allowed while the contract is already
|
|
585
585
|
* on the call stack. Can be triggered by `seal_terminate`.
|
|
586
586
|
**/
|
|
587
|
-
TerminatedWhileReentrant: GenericPalletError
|
|
587
|
+
TerminatedWhileReentrant: GenericPalletError<Rv>;
|
|
588
588
|
|
|
589
589
|
/**
|
|
590
590
|
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
|
591
591
|
**/
|
|
592
|
-
InputForwarded: GenericPalletError
|
|
592
|
+
InputForwarded: GenericPalletError<Rv>;
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
595
|
* The subject passed to `seal_random` exceeds the limit.
|
|
596
596
|
**/
|
|
597
|
-
RandomSubjectTooLong: GenericPalletError
|
|
597
|
+
RandomSubjectTooLong: GenericPalletError<Rv>;
|
|
598
598
|
|
|
599
599
|
/**
|
|
600
600
|
* The amount of topics passed to `seal_deposit_events` exceeds the limit.
|
|
601
601
|
**/
|
|
602
|
-
TooManyTopics: GenericPalletError
|
|
602
|
+
TooManyTopics: GenericPalletError<Rv>;
|
|
603
603
|
|
|
604
604
|
/**
|
|
605
605
|
* The chain does not provide a chain extension. Calling the chain extension results
|
|
606
606
|
* in this error. Note that this usually shouldn't happen as deploying such contracts
|
|
607
607
|
* is rejected.
|
|
608
608
|
**/
|
|
609
|
-
NoChainExtension: GenericPalletError
|
|
609
|
+
NoChainExtension: GenericPalletError<Rv>;
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
612
|
* A contract with the same AccountId already exists.
|
|
613
613
|
**/
|
|
614
|
-
DuplicateContract: GenericPalletError
|
|
614
|
+
DuplicateContract: GenericPalletError<Rv>;
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
617
|
* A contract self destructed in its constructor.
|
|
618
618
|
*
|
|
619
619
|
* This can be triggered by a call to `seal_terminate`.
|
|
620
620
|
**/
|
|
621
|
-
TerminatedInConstructor: GenericPalletError
|
|
621
|
+
TerminatedInConstructor: GenericPalletError<Rv>;
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
624
|
* A call tried to invoke a contract that is flagged as non-reentrant.
|
|
@@ -626,22 +626,22 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
626
626
|
* into `pallet-contracts`. This would make the whole pallet reentrant with regard to
|
|
627
627
|
* contract code execution which is not supported.
|
|
628
628
|
**/
|
|
629
|
-
ReentranceDenied: GenericPalletError
|
|
629
|
+
ReentranceDenied: GenericPalletError<Rv>;
|
|
630
630
|
|
|
631
631
|
/**
|
|
632
632
|
* Origin doesn't have enough balance to pay the required storage deposits.
|
|
633
633
|
**/
|
|
634
|
-
StorageDepositNotEnoughFunds: GenericPalletError
|
|
634
|
+
StorageDepositNotEnoughFunds: GenericPalletError<Rv>;
|
|
635
635
|
|
|
636
636
|
/**
|
|
637
637
|
* More storage was created than allowed by the storage deposit limit.
|
|
638
638
|
**/
|
|
639
|
-
StorageDepositLimitExhausted: GenericPalletError
|
|
639
|
+
StorageDepositLimitExhausted: GenericPalletError<Rv>;
|
|
640
640
|
|
|
641
641
|
/**
|
|
642
642
|
* Code removal was denied because the code is still in use by at least one contract.
|
|
643
643
|
**/
|
|
644
|
-
CodeInUse: GenericPalletError
|
|
644
|
+
CodeInUse: GenericPalletError<Rv>;
|
|
645
645
|
|
|
646
646
|
/**
|
|
647
647
|
* The contract ran to completion but decided to revert its storage changes.
|
|
@@ -649,7 +649,7 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
649
649
|
* or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
|
|
650
650
|
* to determine whether a reversion has taken place.
|
|
651
651
|
**/
|
|
652
|
-
ContractReverted: GenericPalletError
|
|
652
|
+
ContractReverted: GenericPalletError<Rv>;
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
655
|
* The contract's code was found to be invalid during validation.
|
|
@@ -661,27 +661,47 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
661
661
|
* A more detailed error can be found on the node console if debug messages are enabled
|
|
662
662
|
* by supplying `-lruntime::contracts=debug`.
|
|
663
663
|
**/
|
|
664
|
-
CodeRejected: GenericPalletError
|
|
664
|
+
CodeRejected: GenericPalletError<Rv>;
|
|
665
665
|
|
|
666
666
|
/**
|
|
667
667
|
* An indetermistic code was used in a context where this is not permitted.
|
|
668
668
|
**/
|
|
669
|
-
Indeterministic: GenericPalletError
|
|
669
|
+
Indeterministic: GenericPalletError<Rv>;
|
|
670
670
|
|
|
671
671
|
/**
|
|
672
672
|
* A pending migration needs to complete before the extrinsic can be called.
|
|
673
673
|
**/
|
|
674
|
-
MigrationInProgress: GenericPalletError
|
|
674
|
+
MigrationInProgress: GenericPalletError<Rv>;
|
|
675
675
|
|
|
676
676
|
/**
|
|
677
677
|
* Migrate dispatch call was attempted but no migration was performed.
|
|
678
678
|
**/
|
|
679
|
-
NoMigrationPerformed: GenericPalletError
|
|
679
|
+
NoMigrationPerformed: GenericPalletError<Rv>;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* The contract has reached its maximum number of delegate dependencies.
|
|
683
|
+
**/
|
|
684
|
+
MaxDelegateDependenciesReached: GenericPalletError<Rv>;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* The dependency was not found in the contract's delegate dependencies.
|
|
688
|
+
**/
|
|
689
|
+
DelegateDependencyNotFound: GenericPalletError<Rv>;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* The contract already depends on the given delegate dependency.
|
|
693
|
+
**/
|
|
694
|
+
DelegateDependencyAlreadyExists: GenericPalletError<Rv>;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Can not add a delegate dependency to the code hash of the contract itself.
|
|
698
|
+
**/
|
|
699
|
+
CannotAddSelfAsDelegateDependency: GenericPalletError<Rv>;
|
|
680
700
|
|
|
681
701
|
/**
|
|
682
702
|
* Generic pallet error
|
|
683
703
|
**/
|
|
684
|
-
[error: string]: GenericPalletError
|
|
704
|
+
[error: string]: GenericPalletError<Rv>;
|
|
685
705
|
};
|
|
686
706
|
/**
|
|
687
707
|
* Pallet `NominationPools`'s errors
|
|
@@ -690,44 +710,44 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
690
710
|
/**
|
|
691
711
|
* A (bonded) pool id does not exist.
|
|
692
712
|
**/
|
|
693
|
-
PoolNotFound: GenericPalletError
|
|
713
|
+
PoolNotFound: GenericPalletError<Rv>;
|
|
694
714
|
|
|
695
715
|
/**
|
|
696
716
|
* An account is not a member.
|
|
697
717
|
**/
|
|
698
|
-
PoolMemberNotFound: GenericPalletError
|
|
718
|
+
PoolMemberNotFound: GenericPalletError<Rv>;
|
|
699
719
|
|
|
700
720
|
/**
|
|
701
721
|
* A reward pool does not exist. In all cases this is a system logic error.
|
|
702
722
|
**/
|
|
703
|
-
RewardPoolNotFound: GenericPalletError
|
|
723
|
+
RewardPoolNotFound: GenericPalletError<Rv>;
|
|
704
724
|
|
|
705
725
|
/**
|
|
706
726
|
* A sub pool does not exist.
|
|
707
727
|
**/
|
|
708
|
-
SubPoolsNotFound: GenericPalletError
|
|
728
|
+
SubPoolsNotFound: GenericPalletError<Rv>;
|
|
709
729
|
|
|
710
730
|
/**
|
|
711
731
|
* An account is already delegating in another pool. An account may only belong to one
|
|
712
732
|
* pool at a time.
|
|
713
733
|
**/
|
|
714
|
-
AccountBelongsToOtherPool: GenericPalletError
|
|
734
|
+
AccountBelongsToOtherPool: GenericPalletError<Rv>;
|
|
715
735
|
|
|
716
736
|
/**
|
|
717
737
|
* The member is fully unbonded (and thus cannot access the bonded and reward pool
|
|
718
738
|
* anymore to, for example, collect rewards).
|
|
719
739
|
**/
|
|
720
|
-
FullyUnbonding: GenericPalletError
|
|
740
|
+
FullyUnbonding: GenericPalletError<Rv>;
|
|
721
741
|
|
|
722
742
|
/**
|
|
723
743
|
* The member cannot unbond further chunks due to reaching the limit.
|
|
724
744
|
**/
|
|
725
|
-
MaxUnbondingLimit: GenericPalletError
|
|
745
|
+
MaxUnbondingLimit: GenericPalletError<Rv>;
|
|
726
746
|
|
|
727
747
|
/**
|
|
728
748
|
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
|
729
749
|
**/
|
|
730
|
-
CannotWithdrawAny: GenericPalletError
|
|
750
|
+
CannotWithdrawAny: GenericPalletError<Rv>;
|
|
731
751
|
|
|
732
752
|
/**
|
|
733
753
|
* The amount does not meet the minimum bond to either join or create a pool.
|
|
@@ -736,124 +756,124 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
736
756
|
* `Pallet::depositor_min_bond`. The caller does not have nominating
|
|
737
757
|
* permissions for the pool. Members can never unbond to a value below `MinJoinBond`.
|
|
738
758
|
**/
|
|
739
|
-
MinimumBondNotMet: GenericPalletError
|
|
759
|
+
MinimumBondNotMet: GenericPalletError<Rv>;
|
|
740
760
|
|
|
741
761
|
/**
|
|
742
762
|
* The transaction could not be executed due to overflow risk for the pool.
|
|
743
763
|
**/
|
|
744
|
-
OverflowRisk: GenericPalletError
|
|
764
|
+
OverflowRisk: GenericPalletError<Rv>;
|
|
745
765
|
|
|
746
766
|
/**
|
|
747
767
|
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
|
748
768
|
* other members to be permissionlessly unbonded.
|
|
749
769
|
**/
|
|
750
|
-
NotDestroying: GenericPalletError
|
|
770
|
+
NotDestroying: GenericPalletError<Rv>;
|
|
751
771
|
|
|
752
772
|
/**
|
|
753
773
|
* The caller does not have nominating permissions for the pool.
|
|
754
774
|
**/
|
|
755
|
-
NotNominator: GenericPalletError
|
|
775
|
+
NotNominator: GenericPalletError<Rv>;
|
|
756
776
|
|
|
757
777
|
/**
|
|
758
778
|
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
|
759
779
|
**/
|
|
760
|
-
NotKickerOrDestroying: GenericPalletError
|
|
780
|
+
NotKickerOrDestroying: GenericPalletError<Rv>;
|
|
761
781
|
|
|
762
782
|
/**
|
|
763
783
|
* The pool is not open to join
|
|
764
784
|
**/
|
|
765
|
-
NotOpen: GenericPalletError
|
|
785
|
+
NotOpen: GenericPalletError<Rv>;
|
|
766
786
|
|
|
767
787
|
/**
|
|
768
788
|
* The system is maxed out on pools.
|
|
769
789
|
**/
|
|
770
|
-
MaxPools: GenericPalletError
|
|
790
|
+
MaxPools: GenericPalletError<Rv>;
|
|
771
791
|
|
|
772
792
|
/**
|
|
773
793
|
* Too many members in the pool or system.
|
|
774
794
|
**/
|
|
775
|
-
MaxPoolMembers: GenericPalletError
|
|
795
|
+
MaxPoolMembers: GenericPalletError<Rv>;
|
|
776
796
|
|
|
777
797
|
/**
|
|
778
798
|
* The pools state cannot be changed.
|
|
779
799
|
**/
|
|
780
|
-
CanNotChangeState: GenericPalletError
|
|
800
|
+
CanNotChangeState: GenericPalletError<Rv>;
|
|
781
801
|
|
|
782
802
|
/**
|
|
783
803
|
* The caller does not have adequate permissions.
|
|
784
804
|
**/
|
|
785
|
-
DoesNotHavePermission: GenericPalletError
|
|
805
|
+
DoesNotHavePermission: GenericPalletError<Rv>;
|
|
786
806
|
|
|
787
807
|
/**
|
|
788
808
|
* Metadata exceeds [`Config::MaxMetadataLen`]
|
|
789
809
|
**/
|
|
790
|
-
MetadataExceedsMaxLen: GenericPalletError
|
|
810
|
+
MetadataExceedsMaxLen: GenericPalletError<Rv>;
|
|
791
811
|
|
|
792
812
|
/**
|
|
793
813
|
* Some error occurred that should never happen. This should be reported to the
|
|
794
814
|
* maintainers.
|
|
795
815
|
**/
|
|
796
|
-
Defensive: GenericPalletError
|
|
816
|
+
Defensive: GenericPalletError<Rv>;
|
|
797
817
|
|
|
798
818
|
/**
|
|
799
819
|
* Partial unbonding now allowed permissionlessly.
|
|
800
820
|
**/
|
|
801
|
-
PartialUnbondNotAllowedPermissionlessly: GenericPalletError
|
|
821
|
+
PartialUnbondNotAllowedPermissionlessly: GenericPalletError<Rv>;
|
|
802
822
|
|
|
803
823
|
/**
|
|
804
824
|
* The pool's max commission cannot be set higher than the existing value.
|
|
805
825
|
**/
|
|
806
|
-
MaxCommissionRestricted: GenericPalletError
|
|
826
|
+
MaxCommissionRestricted: GenericPalletError<Rv>;
|
|
807
827
|
|
|
808
828
|
/**
|
|
809
829
|
* The supplied commission exceeds the max allowed commission.
|
|
810
830
|
**/
|
|
811
|
-
CommissionExceedsMaximum: GenericPalletError
|
|
831
|
+
CommissionExceedsMaximum: GenericPalletError<Rv>;
|
|
812
832
|
|
|
813
833
|
/**
|
|
814
834
|
* The supplied commission exceeds global maximum commission.
|
|
815
835
|
**/
|
|
816
|
-
CommissionExceedsGlobalMaximum: GenericPalletError
|
|
836
|
+
CommissionExceedsGlobalMaximum: GenericPalletError<Rv>;
|
|
817
837
|
|
|
818
838
|
/**
|
|
819
839
|
* Not enough blocks have surpassed since the last commission update.
|
|
820
840
|
**/
|
|
821
|
-
CommissionChangeThrottled: GenericPalletError
|
|
841
|
+
CommissionChangeThrottled: GenericPalletError<Rv>;
|
|
822
842
|
|
|
823
843
|
/**
|
|
824
844
|
* The submitted changes to commission change rate are not allowed.
|
|
825
845
|
**/
|
|
826
|
-
CommissionChangeRateNotAllowed: GenericPalletError
|
|
846
|
+
CommissionChangeRateNotAllowed: GenericPalletError<Rv>;
|
|
827
847
|
|
|
828
848
|
/**
|
|
829
849
|
* There is no pending commission to claim.
|
|
830
850
|
**/
|
|
831
|
-
NoPendingCommission: GenericPalletError
|
|
851
|
+
NoPendingCommission: GenericPalletError<Rv>;
|
|
832
852
|
|
|
833
853
|
/**
|
|
834
854
|
* No commission current has been set.
|
|
835
855
|
**/
|
|
836
|
-
NoCommissionCurrentSet: GenericPalletError
|
|
856
|
+
NoCommissionCurrentSet: GenericPalletError<Rv>;
|
|
837
857
|
|
|
838
858
|
/**
|
|
839
859
|
* Pool id currently in use.
|
|
840
860
|
**/
|
|
841
|
-
PoolIdInUse: GenericPalletError
|
|
861
|
+
PoolIdInUse: GenericPalletError<Rv>;
|
|
842
862
|
|
|
843
863
|
/**
|
|
844
864
|
* Pool id provided is not correct/usable.
|
|
845
865
|
**/
|
|
846
|
-
InvalidPoolId: GenericPalletError
|
|
866
|
+
InvalidPoolId: GenericPalletError<Rv>;
|
|
847
867
|
|
|
848
868
|
/**
|
|
849
869
|
* Bonding extra is restricted to the exact pending reward amount.
|
|
850
870
|
**/
|
|
851
|
-
BondExtraRestricted: GenericPalletError
|
|
871
|
+
BondExtraRestricted: GenericPalletError<Rv>;
|
|
852
872
|
|
|
853
873
|
/**
|
|
854
874
|
* Generic pallet error
|
|
855
875
|
**/
|
|
856
|
-
[error: string]: GenericPalletError
|
|
876
|
+
[error: string]: GenericPalletError<Rv>;
|
|
857
877
|
};
|
|
858
878
|
/**
|
|
859
879
|
* Pallet `Identity`'s errors
|
|
@@ -862,97 +882,97 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
862
882
|
/**
|
|
863
883
|
* Too many subs-accounts.
|
|
864
884
|
**/
|
|
865
|
-
TooManySubAccounts: GenericPalletError
|
|
885
|
+
TooManySubAccounts: GenericPalletError<Rv>;
|
|
866
886
|
|
|
867
887
|
/**
|
|
868
888
|
* Account isn't found.
|
|
869
889
|
**/
|
|
870
|
-
NotFound: GenericPalletError
|
|
890
|
+
NotFound: GenericPalletError<Rv>;
|
|
871
891
|
|
|
872
892
|
/**
|
|
873
893
|
* Account isn't named.
|
|
874
894
|
**/
|
|
875
|
-
NotNamed: GenericPalletError
|
|
895
|
+
NotNamed: GenericPalletError<Rv>;
|
|
876
896
|
|
|
877
897
|
/**
|
|
878
898
|
* Empty index.
|
|
879
899
|
**/
|
|
880
|
-
EmptyIndex: GenericPalletError
|
|
900
|
+
EmptyIndex: GenericPalletError<Rv>;
|
|
881
901
|
|
|
882
902
|
/**
|
|
883
903
|
* Fee is changed.
|
|
884
904
|
**/
|
|
885
|
-
FeeChanged: GenericPalletError
|
|
905
|
+
FeeChanged: GenericPalletError<Rv>;
|
|
886
906
|
|
|
887
907
|
/**
|
|
888
908
|
* No identity found.
|
|
889
909
|
**/
|
|
890
|
-
NoIdentity: GenericPalletError
|
|
910
|
+
NoIdentity: GenericPalletError<Rv>;
|
|
891
911
|
|
|
892
912
|
/**
|
|
893
913
|
* Sticky judgement.
|
|
894
914
|
**/
|
|
895
|
-
StickyJudgement: GenericPalletError
|
|
915
|
+
StickyJudgement: GenericPalletError<Rv>;
|
|
896
916
|
|
|
897
917
|
/**
|
|
898
918
|
* Judgement given.
|
|
899
919
|
**/
|
|
900
|
-
JudgementGiven: GenericPalletError
|
|
920
|
+
JudgementGiven: GenericPalletError<Rv>;
|
|
901
921
|
|
|
902
922
|
/**
|
|
903
923
|
* Invalid judgement.
|
|
904
924
|
**/
|
|
905
|
-
InvalidJudgement: GenericPalletError
|
|
925
|
+
InvalidJudgement: GenericPalletError<Rv>;
|
|
906
926
|
|
|
907
927
|
/**
|
|
908
928
|
* The index is invalid.
|
|
909
929
|
**/
|
|
910
|
-
InvalidIndex: GenericPalletError
|
|
930
|
+
InvalidIndex: GenericPalletError<Rv>;
|
|
911
931
|
|
|
912
932
|
/**
|
|
913
933
|
* The target is invalid.
|
|
914
934
|
**/
|
|
915
|
-
InvalidTarget: GenericPalletError
|
|
935
|
+
InvalidTarget: GenericPalletError<Rv>;
|
|
916
936
|
|
|
917
937
|
/**
|
|
918
938
|
* Too many additional fields.
|
|
919
939
|
**/
|
|
920
|
-
TooManyFields: GenericPalletError
|
|
940
|
+
TooManyFields: GenericPalletError<Rv>;
|
|
921
941
|
|
|
922
942
|
/**
|
|
923
943
|
* Maximum amount of registrars reached. Cannot add any more.
|
|
924
944
|
**/
|
|
925
|
-
TooManyRegistrars: GenericPalletError
|
|
945
|
+
TooManyRegistrars: GenericPalletError<Rv>;
|
|
926
946
|
|
|
927
947
|
/**
|
|
928
948
|
* Account ID is already named.
|
|
929
949
|
**/
|
|
930
|
-
AlreadyClaimed: GenericPalletError
|
|
950
|
+
AlreadyClaimed: GenericPalletError<Rv>;
|
|
931
951
|
|
|
932
952
|
/**
|
|
933
953
|
* Sender is not a sub-account.
|
|
934
954
|
**/
|
|
935
|
-
NotSub: GenericPalletError
|
|
955
|
+
NotSub: GenericPalletError<Rv>;
|
|
936
956
|
|
|
937
957
|
/**
|
|
938
958
|
* Sub-account isn't owned by sender.
|
|
939
959
|
**/
|
|
940
|
-
NotOwned: GenericPalletError
|
|
960
|
+
NotOwned: GenericPalletError<Rv>;
|
|
941
961
|
|
|
942
962
|
/**
|
|
943
963
|
* The provided judgement was for a different identity.
|
|
944
964
|
**/
|
|
945
|
-
JudgementForDifferentIdentity: GenericPalletError
|
|
965
|
+
JudgementForDifferentIdentity: GenericPalletError<Rv>;
|
|
946
966
|
|
|
947
967
|
/**
|
|
948
968
|
* Error that occurs when there is an issue paying for judgement.
|
|
949
969
|
**/
|
|
950
|
-
JudgementPaymentFailed: GenericPalletError
|
|
970
|
+
JudgementPaymentFailed: GenericPalletError<Rv>;
|
|
951
971
|
|
|
952
972
|
/**
|
|
953
973
|
* Generic pallet error
|
|
954
974
|
**/
|
|
955
|
-
[error: string]: GenericPalletError
|
|
975
|
+
[error: string]: GenericPalletError<Rv>;
|
|
956
976
|
};
|
|
957
977
|
/**
|
|
958
978
|
* Pallet `CommitteeManagement`'s errors
|
|
@@ -964,22 +984,71 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
964
984
|
* * `underperformed_session_count_threshold` must be a positive number,
|
|
965
985
|
* * `clean_session_counter_delay` must be a positive number.
|
|
966
986
|
**/
|
|
967
|
-
InvalidBanConfig: GenericPalletError
|
|
987
|
+
InvalidBanConfig: GenericPalletError<Rv>;
|
|
968
988
|
|
|
969
989
|
/**
|
|
970
990
|
* Ban reason is too big, ie given vector of bytes is greater than
|
|
971
991
|
* [`primitives::DEFAULT_BAN_REASON_LENGTH`]
|
|
972
992
|
**/
|
|
973
|
-
BanReasonTooBig: GenericPalletError
|
|
993
|
+
BanReasonTooBig: GenericPalletError<Rv>;
|
|
974
994
|
|
|
975
995
|
/**
|
|
976
996
|
* Lenient threshold not in [0-100] range
|
|
977
997
|
**/
|
|
978
|
-
InvalidLenientThreshold: GenericPalletError
|
|
998
|
+
InvalidLenientThreshold: GenericPalletError<Rv>;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Generic pallet error
|
|
1002
|
+
**/
|
|
1003
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1004
|
+
};
|
|
1005
|
+
/**
|
|
1006
|
+
* Pallet `Proxy`'s errors
|
|
1007
|
+
**/
|
|
1008
|
+
proxy: {
|
|
1009
|
+
/**
|
|
1010
|
+
* There are too many proxies registered or too many announcements pending.
|
|
1011
|
+
**/
|
|
1012
|
+
TooMany: GenericPalletError<Rv>;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Proxy registration not found.
|
|
1016
|
+
**/
|
|
1017
|
+
NotFound: GenericPalletError<Rv>;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* Sender is not a proxy of the account to be proxied.
|
|
1021
|
+
**/
|
|
1022
|
+
NotProxy: GenericPalletError<Rv>;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* A call which is incompatible with the proxy type's filter was attempted.
|
|
1026
|
+
**/
|
|
1027
|
+
Unproxyable: GenericPalletError<Rv>;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Account is already a proxy.
|
|
1031
|
+
**/
|
|
1032
|
+
Duplicate: GenericPalletError<Rv>;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* Call may not be made by proxy because it may escalate its privileges.
|
|
1036
|
+
**/
|
|
1037
|
+
NoPermission: GenericPalletError<Rv>;
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Announcement, if made at all, was made too recently.
|
|
1041
|
+
**/
|
|
1042
|
+
Unannounced: GenericPalletError<Rv>;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Cannot add self as proxy.
|
|
1046
|
+
**/
|
|
1047
|
+
NoSelfProxy: GenericPalletError<Rv>;
|
|
979
1048
|
|
|
980
1049
|
/**
|
|
981
1050
|
* Generic pallet error
|
|
982
1051
|
**/
|
|
983
|
-
[error: string]: GenericPalletError
|
|
1052
|
+
[error: string]: GenericPalletError<Rv>;
|
|
984
1053
|
};
|
|
985
1054
|
}
|