@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
|
@@ -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,50 +11,55 @@ 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
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A multi-block migration is ongoing and prevents the current code from being replaced.
|
|
46
|
+
**/
|
|
47
|
+
MultiBlockMigrationsOngoing: GenericPalletError<Rv>;
|
|
43
48
|
|
|
44
49
|
/**
|
|
45
50
|
* No upgrade authorized.
|
|
46
51
|
**/
|
|
47
|
-
NothingAuthorized: GenericPalletError
|
|
52
|
+
NothingAuthorized: GenericPalletError<Rv>;
|
|
48
53
|
|
|
49
54
|
/**
|
|
50
55
|
* The submitted code is not authorized.
|
|
51
56
|
**/
|
|
52
|
-
Unauthorized: GenericPalletError
|
|
57
|
+
Unauthorized: GenericPalletError<Rv>;
|
|
53
58
|
|
|
54
59
|
/**
|
|
55
60
|
* Generic pallet error
|
|
56
61
|
**/
|
|
57
|
-
[error: string]: GenericPalletError
|
|
62
|
+
[error: string]: GenericPalletError<Rv>;
|
|
58
63
|
};
|
|
59
64
|
/**
|
|
60
65
|
* Pallet `ParachainSystem`'s errors
|
|
@@ -63,48 +68,48 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
63
68
|
/**
|
|
64
69
|
* Attempt to upgrade validation function while existing upgrade pending.
|
|
65
70
|
**/
|
|
66
|
-
OverlappingUpgrades: GenericPalletError
|
|
71
|
+
OverlappingUpgrades: GenericPalletError<Rv>;
|
|
67
72
|
|
|
68
73
|
/**
|
|
69
74
|
* Polkadot currently prohibits this parachain from upgrading its validation function.
|
|
70
75
|
**/
|
|
71
|
-
ProhibitedByPolkadot: GenericPalletError
|
|
76
|
+
ProhibitedByPolkadot: GenericPalletError<Rv>;
|
|
72
77
|
|
|
73
78
|
/**
|
|
74
79
|
* The supplied validation function has compiled into a blob larger than Polkadot is
|
|
75
80
|
* willing to run.
|
|
76
81
|
**/
|
|
77
|
-
TooBig: GenericPalletError
|
|
82
|
+
TooBig: GenericPalletError<Rv>;
|
|
78
83
|
|
|
79
84
|
/**
|
|
80
85
|
* The inherent which supplies the validation data did not run this block.
|
|
81
86
|
**/
|
|
82
|
-
ValidationDataNotAvailable: GenericPalletError
|
|
87
|
+
ValidationDataNotAvailable: GenericPalletError<Rv>;
|
|
83
88
|
|
|
84
89
|
/**
|
|
85
90
|
* The inherent which supplies the host configuration did not run this block.
|
|
86
91
|
**/
|
|
87
|
-
HostConfigurationNotAvailable: GenericPalletError
|
|
92
|
+
HostConfigurationNotAvailable: GenericPalletError<Rv>;
|
|
88
93
|
|
|
89
94
|
/**
|
|
90
95
|
* No validation function upgrade is currently scheduled.
|
|
91
96
|
**/
|
|
92
|
-
NotScheduled: GenericPalletError
|
|
97
|
+
NotScheduled: GenericPalletError<Rv>;
|
|
93
98
|
|
|
94
99
|
/**
|
|
95
100
|
* No code upgrade has been authorized.
|
|
96
101
|
**/
|
|
97
|
-
NothingAuthorized: GenericPalletError
|
|
102
|
+
NothingAuthorized: GenericPalletError<Rv>;
|
|
98
103
|
|
|
99
104
|
/**
|
|
100
105
|
* The given code upgrade has not been authorized.
|
|
101
106
|
**/
|
|
102
|
-
Unauthorized: GenericPalletError
|
|
107
|
+
Unauthorized: GenericPalletError<Rv>;
|
|
103
108
|
|
|
104
109
|
/**
|
|
105
110
|
* Generic pallet error
|
|
106
111
|
**/
|
|
107
|
-
[error: string]: GenericPalletError
|
|
112
|
+
[error: string]: GenericPalletError<Rv>;
|
|
108
113
|
};
|
|
109
114
|
/**
|
|
110
115
|
* Pallet `Balances`'s errors
|
|
@@ -113,67 +118,67 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
113
118
|
/**
|
|
114
119
|
* Vesting balance too high to send value.
|
|
115
120
|
**/
|
|
116
|
-
VestingBalance: GenericPalletError
|
|
121
|
+
VestingBalance: GenericPalletError<Rv>;
|
|
117
122
|
|
|
118
123
|
/**
|
|
119
124
|
* Account liquidity restrictions prevent withdrawal.
|
|
120
125
|
**/
|
|
121
|
-
LiquidityRestrictions: GenericPalletError
|
|
126
|
+
LiquidityRestrictions: GenericPalletError<Rv>;
|
|
122
127
|
|
|
123
128
|
/**
|
|
124
129
|
* Balance too low to send value.
|
|
125
130
|
**/
|
|
126
|
-
InsufficientBalance: GenericPalletError
|
|
131
|
+
InsufficientBalance: GenericPalletError<Rv>;
|
|
127
132
|
|
|
128
133
|
/**
|
|
129
134
|
* Value too low to create account due to existential deposit.
|
|
130
135
|
**/
|
|
131
|
-
ExistentialDeposit: GenericPalletError
|
|
136
|
+
ExistentialDeposit: GenericPalletError<Rv>;
|
|
132
137
|
|
|
133
138
|
/**
|
|
134
139
|
* Transfer/payment would kill account.
|
|
135
140
|
**/
|
|
136
|
-
Expendability: GenericPalletError
|
|
141
|
+
Expendability: GenericPalletError<Rv>;
|
|
137
142
|
|
|
138
143
|
/**
|
|
139
144
|
* A vesting schedule already exists for this account.
|
|
140
145
|
**/
|
|
141
|
-
ExistingVestingSchedule: GenericPalletError
|
|
146
|
+
ExistingVestingSchedule: GenericPalletError<Rv>;
|
|
142
147
|
|
|
143
148
|
/**
|
|
144
149
|
* Beneficiary account must pre-exist.
|
|
145
150
|
**/
|
|
146
|
-
DeadAccount: GenericPalletError
|
|
151
|
+
DeadAccount: GenericPalletError<Rv>;
|
|
147
152
|
|
|
148
153
|
/**
|
|
149
154
|
* Number of named reserves exceed `MaxReserves`.
|
|
150
155
|
**/
|
|
151
|
-
TooManyReserves: GenericPalletError
|
|
156
|
+
TooManyReserves: GenericPalletError<Rv>;
|
|
152
157
|
|
|
153
158
|
/**
|
|
154
159
|
* Number of holds exceed `VariantCountOf<T::RuntimeHoldReason>`.
|
|
155
160
|
**/
|
|
156
|
-
TooManyHolds: GenericPalletError
|
|
161
|
+
TooManyHolds: GenericPalletError<Rv>;
|
|
157
162
|
|
|
158
163
|
/**
|
|
159
164
|
* Number of freezes exceed `MaxFreezes`.
|
|
160
165
|
**/
|
|
161
|
-
TooManyFreezes: GenericPalletError
|
|
166
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
162
167
|
|
|
163
168
|
/**
|
|
164
169
|
* The issuance cannot be modified since it is already deactivated.
|
|
165
170
|
**/
|
|
166
|
-
IssuanceDeactivated: GenericPalletError
|
|
171
|
+
IssuanceDeactivated: GenericPalletError<Rv>;
|
|
167
172
|
|
|
168
173
|
/**
|
|
169
174
|
* The delta cannot be zero.
|
|
170
175
|
**/
|
|
171
|
-
DeltaZero: GenericPalletError
|
|
176
|
+
DeltaZero: GenericPalletError<Rv>;
|
|
172
177
|
|
|
173
178
|
/**
|
|
174
179
|
* Generic pallet error
|
|
175
180
|
**/
|
|
176
|
-
[error: string]: GenericPalletError
|
|
181
|
+
[error: string]: GenericPalletError<Rv>;
|
|
177
182
|
};
|
|
178
183
|
/**
|
|
179
184
|
* Pallet `CollatorSelection`'s errors
|
|
@@ -182,92 +187,92 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
182
187
|
/**
|
|
183
188
|
* The pallet has too many candidates.
|
|
184
189
|
**/
|
|
185
|
-
TooManyCandidates: GenericPalletError
|
|
190
|
+
TooManyCandidates: GenericPalletError<Rv>;
|
|
186
191
|
|
|
187
192
|
/**
|
|
188
193
|
* Leaving would result in too few candidates.
|
|
189
194
|
**/
|
|
190
|
-
TooFewEligibleCollators: GenericPalletError
|
|
195
|
+
TooFewEligibleCollators: GenericPalletError<Rv>;
|
|
191
196
|
|
|
192
197
|
/**
|
|
193
198
|
* Account is already a candidate.
|
|
194
199
|
**/
|
|
195
|
-
AlreadyCandidate: GenericPalletError
|
|
200
|
+
AlreadyCandidate: GenericPalletError<Rv>;
|
|
196
201
|
|
|
197
202
|
/**
|
|
198
203
|
* Account is not a candidate.
|
|
199
204
|
**/
|
|
200
|
-
NotCandidate: GenericPalletError
|
|
205
|
+
NotCandidate: GenericPalletError<Rv>;
|
|
201
206
|
|
|
202
207
|
/**
|
|
203
208
|
* There are too many Invulnerables.
|
|
204
209
|
**/
|
|
205
|
-
TooManyInvulnerables: GenericPalletError
|
|
210
|
+
TooManyInvulnerables: GenericPalletError<Rv>;
|
|
206
211
|
|
|
207
212
|
/**
|
|
208
213
|
* Account is already an Invulnerable.
|
|
209
214
|
**/
|
|
210
|
-
AlreadyInvulnerable: GenericPalletError
|
|
215
|
+
AlreadyInvulnerable: GenericPalletError<Rv>;
|
|
211
216
|
|
|
212
217
|
/**
|
|
213
218
|
* Account is not an Invulnerable.
|
|
214
219
|
**/
|
|
215
|
-
NotInvulnerable: GenericPalletError
|
|
220
|
+
NotInvulnerable: GenericPalletError<Rv>;
|
|
216
221
|
|
|
217
222
|
/**
|
|
218
223
|
* Account has no associated validator ID.
|
|
219
224
|
**/
|
|
220
|
-
NoAssociatedValidatorId: GenericPalletError
|
|
225
|
+
NoAssociatedValidatorId: GenericPalletError<Rv>;
|
|
221
226
|
|
|
222
227
|
/**
|
|
223
228
|
* Validator ID is not yet registered.
|
|
224
229
|
**/
|
|
225
|
-
ValidatorNotRegistered: GenericPalletError
|
|
230
|
+
ValidatorNotRegistered: GenericPalletError<Rv>;
|
|
226
231
|
|
|
227
232
|
/**
|
|
228
233
|
* Could not insert in the candidate list.
|
|
229
234
|
**/
|
|
230
|
-
InsertToCandidateListFailed: GenericPalletError
|
|
235
|
+
InsertToCandidateListFailed: GenericPalletError<Rv>;
|
|
231
236
|
|
|
232
237
|
/**
|
|
233
238
|
* Could not remove from the candidate list.
|
|
234
239
|
**/
|
|
235
|
-
RemoveFromCandidateListFailed: GenericPalletError
|
|
240
|
+
RemoveFromCandidateListFailed: GenericPalletError<Rv>;
|
|
236
241
|
|
|
237
242
|
/**
|
|
238
243
|
* New deposit amount would be below the minimum candidacy bond.
|
|
239
244
|
**/
|
|
240
|
-
DepositTooLow: GenericPalletError
|
|
245
|
+
DepositTooLow: GenericPalletError<Rv>;
|
|
241
246
|
|
|
242
247
|
/**
|
|
243
248
|
* Could not update the candidate list.
|
|
244
249
|
**/
|
|
245
|
-
UpdateCandidateListFailed: GenericPalletError
|
|
250
|
+
UpdateCandidateListFailed: GenericPalletError<Rv>;
|
|
246
251
|
|
|
247
252
|
/**
|
|
248
253
|
* Deposit amount is too low to take the target's slot in the candidate list.
|
|
249
254
|
**/
|
|
250
|
-
InsufficientBond: GenericPalletError
|
|
255
|
+
InsufficientBond: GenericPalletError<Rv>;
|
|
251
256
|
|
|
252
257
|
/**
|
|
253
258
|
* The target account to be replaced in the candidate list is not a candidate.
|
|
254
259
|
**/
|
|
255
|
-
TargetIsNotCandidate: GenericPalletError
|
|
260
|
+
TargetIsNotCandidate: GenericPalletError<Rv>;
|
|
256
261
|
|
|
257
262
|
/**
|
|
258
263
|
* The updated deposit amount is equal to the amount already reserved.
|
|
259
264
|
**/
|
|
260
|
-
IdenticalDeposit: GenericPalletError
|
|
265
|
+
IdenticalDeposit: GenericPalletError<Rv>;
|
|
261
266
|
|
|
262
267
|
/**
|
|
263
268
|
* Cannot lower candidacy bond while occupying a future collator slot in the list.
|
|
264
269
|
**/
|
|
265
|
-
InvalidUnreserve: GenericPalletError
|
|
270
|
+
InvalidUnreserve: GenericPalletError<Rv>;
|
|
266
271
|
|
|
267
272
|
/**
|
|
268
273
|
* Generic pallet error
|
|
269
274
|
**/
|
|
270
|
-
[error: string]: GenericPalletError
|
|
275
|
+
[error: string]: GenericPalletError<Rv>;
|
|
271
276
|
};
|
|
272
277
|
/**
|
|
273
278
|
* Pallet `Session`'s errors
|
|
@@ -276,32 +281,32 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
276
281
|
/**
|
|
277
282
|
* Invalid ownership proof.
|
|
278
283
|
**/
|
|
279
|
-
InvalidProof: GenericPalletError
|
|
284
|
+
InvalidProof: GenericPalletError<Rv>;
|
|
280
285
|
|
|
281
286
|
/**
|
|
282
287
|
* No associated validator ID for account.
|
|
283
288
|
**/
|
|
284
|
-
NoAssociatedValidatorId: GenericPalletError
|
|
289
|
+
NoAssociatedValidatorId: GenericPalletError<Rv>;
|
|
285
290
|
|
|
286
291
|
/**
|
|
287
292
|
* Registered duplicate key.
|
|
288
293
|
**/
|
|
289
|
-
DuplicatedKey: GenericPalletError
|
|
294
|
+
DuplicatedKey: GenericPalletError<Rv>;
|
|
290
295
|
|
|
291
296
|
/**
|
|
292
297
|
* No keys are associated with this account.
|
|
293
298
|
**/
|
|
294
|
-
NoKeys: GenericPalletError
|
|
299
|
+
NoKeys: GenericPalletError<Rv>;
|
|
295
300
|
|
|
296
301
|
/**
|
|
297
302
|
* Key setting account is not live, so it's impossible to associate keys.
|
|
298
303
|
**/
|
|
299
|
-
NoAccount: GenericPalletError
|
|
304
|
+
NoAccount: GenericPalletError<Rv>;
|
|
300
305
|
|
|
301
306
|
/**
|
|
302
307
|
* Generic pallet error
|
|
303
308
|
**/
|
|
304
|
-
[error: string]: GenericPalletError
|
|
309
|
+
[error: string]: GenericPalletError<Rv>;
|
|
305
310
|
};
|
|
306
311
|
/**
|
|
307
312
|
* Pallet `XcmpQueue`'s errors
|
|
@@ -310,22 +315,32 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
310
315
|
/**
|
|
311
316
|
* Setting the queue config failed since one of its values was invalid.
|
|
312
317
|
**/
|
|
313
|
-
BadQueueConfig: GenericPalletError
|
|
318
|
+
BadQueueConfig: GenericPalletError<Rv>;
|
|
314
319
|
|
|
315
320
|
/**
|
|
316
321
|
* The execution is already suspended.
|
|
317
322
|
**/
|
|
318
|
-
AlreadySuspended: GenericPalletError
|
|
323
|
+
AlreadySuspended: GenericPalletError<Rv>;
|
|
319
324
|
|
|
320
325
|
/**
|
|
321
326
|
* The execution is already resumed.
|
|
322
327
|
**/
|
|
323
|
-
AlreadyResumed: GenericPalletError
|
|
328
|
+
AlreadyResumed: GenericPalletError<Rv>;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* There are too many active outbound channels.
|
|
332
|
+
**/
|
|
333
|
+
TooManyActiveOutboundChannels: GenericPalletError<Rv>;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* The message is too big.
|
|
337
|
+
**/
|
|
338
|
+
TooBig: GenericPalletError<Rv>;
|
|
324
339
|
|
|
325
340
|
/**
|
|
326
341
|
* Generic pallet error
|
|
327
342
|
**/
|
|
328
|
-
[error: string]: GenericPalletError
|
|
343
|
+
[error: string]: GenericPalletError<Rv>;
|
|
329
344
|
};
|
|
330
345
|
/**
|
|
331
346
|
* Pallet `PolkadotXcm`'s errors
|
|
@@ -335,134 +350,129 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
335
350
|
* The desired destination was unreachable, generally because there is a no way of routing
|
|
336
351
|
* to it.
|
|
337
352
|
**/
|
|
338
|
-
Unreachable: GenericPalletError
|
|
353
|
+
Unreachable: GenericPalletError<Rv>;
|
|
339
354
|
|
|
340
355
|
/**
|
|
341
356
|
* There was some other issue (i.e. not to do with routing) in sending the message.
|
|
342
357
|
* Perhaps a lack of space for buffering the message.
|
|
343
358
|
**/
|
|
344
|
-
SendFailure: GenericPalletError
|
|
359
|
+
SendFailure: GenericPalletError<Rv>;
|
|
345
360
|
|
|
346
361
|
/**
|
|
347
362
|
* The message execution fails the filter.
|
|
348
363
|
**/
|
|
349
|
-
Filtered: GenericPalletError
|
|
364
|
+
Filtered: GenericPalletError<Rv>;
|
|
350
365
|
|
|
351
366
|
/**
|
|
352
367
|
* The message's weight could not be determined.
|
|
353
368
|
**/
|
|
354
|
-
UnweighableMessage: GenericPalletError
|
|
369
|
+
UnweighableMessage: GenericPalletError<Rv>;
|
|
355
370
|
|
|
356
371
|
/**
|
|
357
372
|
* The destination `Location` provided cannot be inverted.
|
|
358
373
|
**/
|
|
359
|
-
DestinationNotInvertible: GenericPalletError
|
|
374
|
+
DestinationNotInvertible: GenericPalletError<Rv>;
|
|
360
375
|
|
|
361
376
|
/**
|
|
362
377
|
* The assets to be sent are empty.
|
|
363
378
|
**/
|
|
364
|
-
Empty: GenericPalletError
|
|
379
|
+
Empty: GenericPalletError<Rv>;
|
|
365
380
|
|
|
366
381
|
/**
|
|
367
382
|
* Could not re-anchor the assets to declare the fees for the destination chain.
|
|
368
383
|
**/
|
|
369
|
-
CannotReanchor: GenericPalletError
|
|
384
|
+
CannotReanchor: GenericPalletError<Rv>;
|
|
370
385
|
|
|
371
386
|
/**
|
|
372
387
|
* Too many assets have been attempted for transfer.
|
|
373
388
|
**/
|
|
374
|
-
TooManyAssets: GenericPalletError
|
|
389
|
+
TooManyAssets: GenericPalletError<Rv>;
|
|
375
390
|
|
|
376
391
|
/**
|
|
377
392
|
* Origin is invalid for sending.
|
|
378
393
|
**/
|
|
379
|
-
InvalidOrigin: GenericPalletError
|
|
394
|
+
InvalidOrigin: GenericPalletError<Rv>;
|
|
380
395
|
|
|
381
396
|
/**
|
|
382
397
|
* The version of the `Versioned` value used is not able to be interpreted.
|
|
383
398
|
**/
|
|
384
|
-
BadVersion: GenericPalletError
|
|
399
|
+
BadVersion: GenericPalletError<Rv>;
|
|
385
400
|
|
|
386
401
|
/**
|
|
387
402
|
* The given location could not be used (e.g. because it cannot be expressed in the
|
|
388
403
|
* desired version of XCM).
|
|
389
404
|
**/
|
|
390
|
-
BadLocation: GenericPalletError
|
|
405
|
+
BadLocation: GenericPalletError<Rv>;
|
|
391
406
|
|
|
392
407
|
/**
|
|
393
408
|
* The referenced subscription could not be found.
|
|
394
409
|
**/
|
|
395
|
-
NoSubscription: GenericPalletError
|
|
410
|
+
NoSubscription: GenericPalletError<Rv>;
|
|
396
411
|
|
|
397
412
|
/**
|
|
398
413
|
* The location is invalid since it already has a subscription from us.
|
|
399
414
|
**/
|
|
400
|
-
AlreadySubscribed: GenericPalletError
|
|
415
|
+
AlreadySubscribed: GenericPalletError<Rv>;
|
|
401
416
|
|
|
402
417
|
/**
|
|
403
418
|
* Could not check-out the assets for teleportation to the destination chain.
|
|
404
419
|
**/
|
|
405
|
-
CannotCheckOutTeleport: GenericPalletError
|
|
420
|
+
CannotCheckOutTeleport: GenericPalletError<Rv>;
|
|
406
421
|
|
|
407
422
|
/**
|
|
408
423
|
* The owner does not own (all) of the asset that they wish to do the operation on.
|
|
409
424
|
**/
|
|
410
|
-
LowBalance: GenericPalletError
|
|
425
|
+
LowBalance: GenericPalletError<Rv>;
|
|
411
426
|
|
|
412
427
|
/**
|
|
413
428
|
* The asset owner has too many locks on the asset.
|
|
414
429
|
**/
|
|
415
|
-
TooManyLocks: GenericPalletError
|
|
430
|
+
TooManyLocks: GenericPalletError<Rv>;
|
|
416
431
|
|
|
417
432
|
/**
|
|
418
433
|
* The given account is not an identifiable sovereign account for any location.
|
|
419
434
|
**/
|
|
420
|
-
AccountNotSovereign: GenericPalletError
|
|
435
|
+
AccountNotSovereign: GenericPalletError<Rv>;
|
|
421
436
|
|
|
422
437
|
/**
|
|
423
438
|
* The operation required fees to be paid which the initiator could not meet.
|
|
424
439
|
**/
|
|
425
|
-
FeesNotMet: GenericPalletError
|
|
440
|
+
FeesNotMet: GenericPalletError<Rv>;
|
|
426
441
|
|
|
427
442
|
/**
|
|
428
443
|
* A remote lock with the corresponding data could not be found.
|
|
429
444
|
**/
|
|
430
|
-
LockNotFound: GenericPalletError
|
|
445
|
+
LockNotFound: GenericPalletError<Rv>;
|
|
431
446
|
|
|
432
447
|
/**
|
|
433
448
|
* The unlock operation cannot succeed because there are still consumers of the lock.
|
|
434
449
|
**/
|
|
435
|
-
InUse: GenericPalletError
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Invalid non-concrete asset.
|
|
439
|
-
**/
|
|
440
|
-
InvalidAssetNotConcrete: GenericPalletError;
|
|
450
|
+
InUse: GenericPalletError<Rv>;
|
|
441
451
|
|
|
442
452
|
/**
|
|
443
453
|
* Invalid asset, reserve chain could not be determined for it.
|
|
444
454
|
**/
|
|
445
|
-
InvalidAssetUnknownReserve: GenericPalletError
|
|
455
|
+
InvalidAssetUnknownReserve: GenericPalletError<Rv>;
|
|
446
456
|
|
|
447
457
|
/**
|
|
448
458
|
* Invalid asset, do not support remote asset reserves with different fees reserves.
|
|
449
459
|
**/
|
|
450
|
-
InvalidAssetUnsupportedReserve: GenericPalletError
|
|
460
|
+
InvalidAssetUnsupportedReserve: GenericPalletError<Rv>;
|
|
451
461
|
|
|
452
462
|
/**
|
|
453
463
|
* Too many assets with different reserve locations have been attempted for transfer.
|
|
454
464
|
**/
|
|
455
|
-
TooManyReserves: GenericPalletError
|
|
465
|
+
TooManyReserves: GenericPalletError<Rv>;
|
|
456
466
|
|
|
457
467
|
/**
|
|
458
468
|
* Local XCM execution incomplete.
|
|
459
469
|
**/
|
|
460
|
-
LocalExecutionIncomplete: GenericPalletError
|
|
470
|
+
LocalExecutionIncomplete: GenericPalletError<Rv>;
|
|
461
471
|
|
|
462
472
|
/**
|
|
463
473
|
* Generic pallet error
|
|
464
474
|
**/
|
|
465
|
-
[error: string]: GenericPalletError
|
|
475
|
+
[error: string]: GenericPalletError<Rv>;
|
|
466
476
|
};
|
|
467
477
|
/**
|
|
468
478
|
* Pallet `MessageQueue`'s errors
|
|
@@ -472,32 +482,32 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
472
482
|
* Page is not reapable because it has items remaining to be processed and is not old
|
|
473
483
|
* enough.
|
|
474
484
|
**/
|
|
475
|
-
NotReapable: GenericPalletError
|
|
485
|
+
NotReapable: GenericPalletError<Rv>;
|
|
476
486
|
|
|
477
487
|
/**
|
|
478
488
|
* Page to be reaped does not exist.
|
|
479
489
|
**/
|
|
480
|
-
NoPage: GenericPalletError
|
|
490
|
+
NoPage: GenericPalletError<Rv>;
|
|
481
491
|
|
|
482
492
|
/**
|
|
483
493
|
* The referenced message could not be found.
|
|
484
494
|
**/
|
|
485
|
-
NoMessage: GenericPalletError
|
|
495
|
+
NoMessage: GenericPalletError<Rv>;
|
|
486
496
|
|
|
487
497
|
/**
|
|
488
498
|
* The message was already processed and cannot be processed again.
|
|
489
499
|
**/
|
|
490
|
-
AlreadyProcessed: GenericPalletError
|
|
500
|
+
AlreadyProcessed: GenericPalletError<Rv>;
|
|
491
501
|
|
|
492
502
|
/**
|
|
493
503
|
* The message is queued for future execution.
|
|
494
504
|
**/
|
|
495
|
-
Queued: GenericPalletError
|
|
505
|
+
Queued: GenericPalletError<Rv>;
|
|
496
506
|
|
|
497
507
|
/**
|
|
498
508
|
* There is temporarily not enough weight to continue servicing messages.
|
|
499
509
|
**/
|
|
500
|
-
InsufficientWeight: GenericPalletError
|
|
510
|
+
InsufficientWeight: GenericPalletError<Rv>;
|
|
501
511
|
|
|
502
512
|
/**
|
|
503
513
|
* This message is temporarily unprocessable.
|
|
@@ -505,24 +515,24 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
505
515
|
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
|
506
516
|
* retrying.
|
|
507
517
|
**/
|
|
508
|
-
TemporarilyUnprocessable: GenericPalletError
|
|
518
|
+
TemporarilyUnprocessable: GenericPalletError<Rv>;
|
|
509
519
|
|
|
510
520
|
/**
|
|
511
521
|
* The queue is paused and no message can be executed from it.
|
|
512
522
|
*
|
|
513
523
|
* This can change at any time and may resolve in the future by re-trying.
|
|
514
524
|
**/
|
|
515
|
-
QueuePaused: GenericPalletError
|
|
525
|
+
QueuePaused: GenericPalletError<Rv>;
|
|
516
526
|
|
|
517
527
|
/**
|
|
518
528
|
* Another call is in progress and needs to finish before this call can happen.
|
|
519
529
|
**/
|
|
520
|
-
RecursiveDisallowed: GenericPalletError
|
|
530
|
+
RecursiveDisallowed: GenericPalletError<Rv>;
|
|
521
531
|
|
|
522
532
|
/**
|
|
523
533
|
* Generic pallet error
|
|
524
534
|
**/
|
|
525
|
-
[error: string]: GenericPalletError
|
|
535
|
+
[error: string]: GenericPalletError<Rv>;
|
|
526
536
|
};
|
|
527
537
|
/**
|
|
528
538
|
* Pallet `Utility`'s errors
|
|
@@ -531,12 +541,12 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
531
541
|
/**
|
|
532
542
|
* Too many calls batched.
|
|
533
543
|
**/
|
|
534
|
-
TooManyCalls: GenericPalletError
|
|
544
|
+
TooManyCalls: GenericPalletError<Rv>;
|
|
535
545
|
|
|
536
546
|
/**
|
|
537
547
|
* Generic pallet error
|
|
538
548
|
**/
|
|
539
|
-
[error: string]: GenericPalletError
|
|
549
|
+
[error: string]: GenericPalletError<Rv>;
|
|
540
550
|
};
|
|
541
551
|
/**
|
|
542
552
|
* Pallet `Multisig`'s errors
|
|
@@ -545,77 +555,77 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
545
555
|
/**
|
|
546
556
|
* Threshold must be 2 or greater.
|
|
547
557
|
**/
|
|
548
|
-
MinimumThreshold: GenericPalletError
|
|
558
|
+
MinimumThreshold: GenericPalletError<Rv>;
|
|
549
559
|
|
|
550
560
|
/**
|
|
551
561
|
* Call is already approved by this signatory.
|
|
552
562
|
**/
|
|
553
|
-
AlreadyApproved: GenericPalletError
|
|
563
|
+
AlreadyApproved: GenericPalletError<Rv>;
|
|
554
564
|
|
|
555
565
|
/**
|
|
556
566
|
* Call doesn't need any (more) approvals.
|
|
557
567
|
**/
|
|
558
|
-
NoApprovalsNeeded: GenericPalletError
|
|
568
|
+
NoApprovalsNeeded: GenericPalletError<Rv>;
|
|
559
569
|
|
|
560
570
|
/**
|
|
561
571
|
* There are too few signatories in the list.
|
|
562
572
|
**/
|
|
563
|
-
TooFewSignatories: GenericPalletError
|
|
573
|
+
TooFewSignatories: GenericPalletError<Rv>;
|
|
564
574
|
|
|
565
575
|
/**
|
|
566
576
|
* There are too many signatories in the list.
|
|
567
577
|
**/
|
|
568
|
-
TooManySignatories: GenericPalletError
|
|
578
|
+
TooManySignatories: GenericPalletError<Rv>;
|
|
569
579
|
|
|
570
580
|
/**
|
|
571
581
|
* The signatories were provided out of order; they should be ordered.
|
|
572
582
|
**/
|
|
573
|
-
SignatoriesOutOfOrder: GenericPalletError
|
|
583
|
+
SignatoriesOutOfOrder: GenericPalletError<Rv>;
|
|
574
584
|
|
|
575
585
|
/**
|
|
576
586
|
* The sender was contained in the other signatories; it shouldn't be.
|
|
577
587
|
**/
|
|
578
|
-
SenderInSignatories: GenericPalletError
|
|
588
|
+
SenderInSignatories: GenericPalletError<Rv>;
|
|
579
589
|
|
|
580
590
|
/**
|
|
581
591
|
* Multisig operation not found when attempting to cancel.
|
|
582
592
|
**/
|
|
583
|
-
NotFound: GenericPalletError
|
|
593
|
+
NotFound: GenericPalletError<Rv>;
|
|
584
594
|
|
|
585
595
|
/**
|
|
586
596
|
* Only the account that originally created the multisig is able to cancel it.
|
|
587
597
|
**/
|
|
588
|
-
NotOwner: GenericPalletError
|
|
598
|
+
NotOwner: GenericPalletError<Rv>;
|
|
589
599
|
|
|
590
600
|
/**
|
|
591
601
|
* No timepoint was given, yet the multisig operation is already underway.
|
|
592
602
|
**/
|
|
593
|
-
NoTimepoint: GenericPalletError
|
|
603
|
+
NoTimepoint: GenericPalletError<Rv>;
|
|
594
604
|
|
|
595
605
|
/**
|
|
596
606
|
* A different timepoint was given to the multisig operation that is underway.
|
|
597
607
|
**/
|
|
598
|
-
WrongTimepoint: GenericPalletError
|
|
608
|
+
WrongTimepoint: GenericPalletError<Rv>;
|
|
599
609
|
|
|
600
610
|
/**
|
|
601
611
|
* A timepoint was given, yet no multisig operation is underway.
|
|
602
612
|
**/
|
|
603
|
-
UnexpectedTimepoint: GenericPalletError
|
|
613
|
+
UnexpectedTimepoint: GenericPalletError<Rv>;
|
|
604
614
|
|
|
605
615
|
/**
|
|
606
616
|
* The maximum weight information provided was too low.
|
|
607
617
|
**/
|
|
608
|
-
MaxWeightTooLow: GenericPalletError
|
|
618
|
+
MaxWeightTooLow: GenericPalletError<Rv>;
|
|
609
619
|
|
|
610
620
|
/**
|
|
611
621
|
* The data to be stored is already stored.
|
|
612
622
|
**/
|
|
613
|
-
AlreadyStored: GenericPalletError
|
|
623
|
+
AlreadyStored: GenericPalletError<Rv>;
|
|
614
624
|
|
|
615
625
|
/**
|
|
616
626
|
* Generic pallet error
|
|
617
627
|
**/
|
|
618
|
-
[error: string]: GenericPalletError
|
|
628
|
+
[error: string]: GenericPalletError<Rv>;
|
|
619
629
|
};
|
|
620
630
|
/**
|
|
621
631
|
* Pallet `Proxy`'s errors
|
|
@@ -624,47 +634,47 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
624
634
|
/**
|
|
625
635
|
* There are too many proxies registered or too many announcements pending.
|
|
626
636
|
**/
|
|
627
|
-
TooMany: GenericPalletError
|
|
637
|
+
TooMany: GenericPalletError<Rv>;
|
|
628
638
|
|
|
629
639
|
/**
|
|
630
640
|
* Proxy registration not found.
|
|
631
641
|
**/
|
|
632
|
-
NotFound: GenericPalletError
|
|
642
|
+
NotFound: GenericPalletError<Rv>;
|
|
633
643
|
|
|
634
644
|
/**
|
|
635
645
|
* Sender is not a proxy of the account to be proxied.
|
|
636
646
|
**/
|
|
637
|
-
NotProxy: GenericPalletError
|
|
647
|
+
NotProxy: GenericPalletError<Rv>;
|
|
638
648
|
|
|
639
649
|
/**
|
|
640
650
|
* A call which is incompatible with the proxy type's filter was attempted.
|
|
641
651
|
**/
|
|
642
|
-
Unproxyable: GenericPalletError
|
|
652
|
+
Unproxyable: GenericPalletError<Rv>;
|
|
643
653
|
|
|
644
654
|
/**
|
|
645
655
|
* Account is already a proxy.
|
|
646
656
|
**/
|
|
647
|
-
Duplicate: GenericPalletError
|
|
657
|
+
Duplicate: GenericPalletError<Rv>;
|
|
648
658
|
|
|
649
659
|
/**
|
|
650
660
|
* Call may not be made by proxy because it may escalate its privileges.
|
|
651
661
|
**/
|
|
652
|
-
NoPermission: GenericPalletError
|
|
662
|
+
NoPermission: GenericPalletError<Rv>;
|
|
653
663
|
|
|
654
664
|
/**
|
|
655
665
|
* Announcement, if made at all, was made too recently.
|
|
656
666
|
**/
|
|
657
|
-
Unannounced: GenericPalletError
|
|
667
|
+
Unannounced: GenericPalletError<Rv>;
|
|
658
668
|
|
|
659
669
|
/**
|
|
660
670
|
* Cannot add self as proxy.
|
|
661
671
|
**/
|
|
662
|
-
NoSelfProxy: GenericPalletError
|
|
672
|
+
NoSelfProxy: GenericPalletError<Rv>;
|
|
663
673
|
|
|
664
674
|
/**
|
|
665
675
|
* Generic pallet error
|
|
666
676
|
**/
|
|
667
|
-
[error: string]: GenericPalletError
|
|
677
|
+
[error: string]: GenericPalletError<Rv>;
|
|
668
678
|
};
|
|
669
679
|
/**
|
|
670
680
|
* Pallet `Assets`'s errors
|
|
@@ -673,110 +683,115 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
673
683
|
/**
|
|
674
684
|
* Account balance must be greater than or equal to the transfer amount.
|
|
675
685
|
**/
|
|
676
|
-
BalanceLow: GenericPalletError
|
|
686
|
+
BalanceLow: GenericPalletError<Rv>;
|
|
677
687
|
|
|
678
688
|
/**
|
|
679
689
|
* The account to alter does not exist.
|
|
680
690
|
**/
|
|
681
|
-
NoAccount: GenericPalletError
|
|
691
|
+
NoAccount: GenericPalletError<Rv>;
|
|
682
692
|
|
|
683
693
|
/**
|
|
684
694
|
* The signing account has no permission to do the operation.
|
|
685
695
|
**/
|
|
686
|
-
NoPermission: GenericPalletError
|
|
696
|
+
NoPermission: GenericPalletError<Rv>;
|
|
687
697
|
|
|
688
698
|
/**
|
|
689
699
|
* The given asset ID is unknown.
|
|
690
700
|
**/
|
|
691
|
-
Unknown: GenericPalletError
|
|
701
|
+
Unknown: GenericPalletError<Rv>;
|
|
692
702
|
|
|
693
703
|
/**
|
|
694
704
|
* The origin account is frozen.
|
|
695
705
|
**/
|
|
696
|
-
Frozen: GenericPalletError
|
|
706
|
+
Frozen: GenericPalletError<Rv>;
|
|
697
707
|
|
|
698
708
|
/**
|
|
699
709
|
* The asset ID is already taken.
|
|
700
710
|
**/
|
|
701
|
-
InUse: GenericPalletError
|
|
711
|
+
InUse: GenericPalletError<Rv>;
|
|
702
712
|
|
|
703
713
|
/**
|
|
704
714
|
* Invalid witness data given.
|
|
705
715
|
**/
|
|
706
|
-
BadWitness: GenericPalletError
|
|
716
|
+
BadWitness: GenericPalletError<Rv>;
|
|
707
717
|
|
|
708
718
|
/**
|
|
709
719
|
* Minimum balance should be non-zero.
|
|
710
720
|
**/
|
|
711
|
-
MinBalanceZero: GenericPalletError
|
|
721
|
+
MinBalanceZero: GenericPalletError<Rv>;
|
|
712
722
|
|
|
713
723
|
/**
|
|
714
724
|
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
715
725
|
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
716
726
|
* fewer then the maximum number of consumers has been reached.
|
|
717
727
|
**/
|
|
718
|
-
UnavailableConsumer: GenericPalletError
|
|
728
|
+
UnavailableConsumer: GenericPalletError<Rv>;
|
|
719
729
|
|
|
720
730
|
/**
|
|
721
731
|
* Invalid metadata given.
|
|
722
732
|
**/
|
|
723
|
-
BadMetadata: GenericPalletError
|
|
733
|
+
BadMetadata: GenericPalletError<Rv>;
|
|
724
734
|
|
|
725
735
|
/**
|
|
726
736
|
* No approval exists that would allow the transfer.
|
|
727
737
|
**/
|
|
728
|
-
Unapproved: GenericPalletError
|
|
738
|
+
Unapproved: GenericPalletError<Rv>;
|
|
729
739
|
|
|
730
740
|
/**
|
|
731
741
|
* The source account would not survive the transfer and it needs to stay alive.
|
|
732
742
|
**/
|
|
733
|
-
WouldDie: GenericPalletError
|
|
743
|
+
WouldDie: GenericPalletError<Rv>;
|
|
734
744
|
|
|
735
745
|
/**
|
|
736
746
|
* The asset-account already exists.
|
|
737
747
|
**/
|
|
738
|
-
AlreadyExists: GenericPalletError
|
|
748
|
+
AlreadyExists: GenericPalletError<Rv>;
|
|
739
749
|
|
|
740
750
|
/**
|
|
741
751
|
* The asset-account doesn't have an associated deposit.
|
|
742
752
|
**/
|
|
743
|
-
NoDeposit: GenericPalletError
|
|
753
|
+
NoDeposit: GenericPalletError<Rv>;
|
|
744
754
|
|
|
745
755
|
/**
|
|
746
756
|
* The operation would result in funds being burned.
|
|
747
757
|
**/
|
|
748
|
-
WouldBurn: GenericPalletError
|
|
758
|
+
WouldBurn: GenericPalletError<Rv>;
|
|
749
759
|
|
|
750
760
|
/**
|
|
751
761
|
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
752
762
|
* as `start_destroy` which require the asset to be in a destroying state.
|
|
753
763
|
**/
|
|
754
|
-
LiveAsset: GenericPalletError
|
|
764
|
+
LiveAsset: GenericPalletError<Rv>;
|
|
755
765
|
|
|
756
766
|
/**
|
|
757
767
|
* The asset is not live, and likely being destroyed.
|
|
758
768
|
**/
|
|
759
|
-
AssetNotLive: GenericPalletError
|
|
769
|
+
AssetNotLive: GenericPalletError<Rv>;
|
|
760
770
|
|
|
761
771
|
/**
|
|
762
772
|
* The asset status is not the expected status.
|
|
763
773
|
**/
|
|
764
|
-
IncorrectStatus: GenericPalletError
|
|
774
|
+
IncorrectStatus: GenericPalletError<Rv>;
|
|
765
775
|
|
|
766
776
|
/**
|
|
767
777
|
* The asset should be frozen before the given operation.
|
|
768
778
|
**/
|
|
769
|
-
NotFrozen: GenericPalletError
|
|
779
|
+
NotFrozen: GenericPalletError<Rv>;
|
|
770
780
|
|
|
771
781
|
/**
|
|
772
782
|
* Callback action resulted in error
|
|
773
783
|
**/
|
|
774
|
-
CallbackFailed: GenericPalletError
|
|
784
|
+
CallbackFailed: GenericPalletError<Rv>;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
788
|
+
**/
|
|
789
|
+
BadAssetId: GenericPalletError<Rv>;
|
|
775
790
|
|
|
776
791
|
/**
|
|
777
792
|
* Generic pallet error
|
|
778
793
|
**/
|
|
779
|
-
[error: string]: GenericPalletError
|
|
794
|
+
[error: string]: GenericPalletError<Rv>;
|
|
780
795
|
};
|
|
781
796
|
/**
|
|
782
797
|
* Pallet `Uniques`'s errors
|
|
@@ -785,97 +800,97 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
785
800
|
/**
|
|
786
801
|
* The signing account has no permission to do the operation.
|
|
787
802
|
**/
|
|
788
|
-
NoPermission: GenericPalletError
|
|
803
|
+
NoPermission: GenericPalletError<Rv>;
|
|
789
804
|
|
|
790
805
|
/**
|
|
791
806
|
* The given item ID is unknown.
|
|
792
807
|
**/
|
|
793
|
-
UnknownCollection: GenericPalletError
|
|
808
|
+
UnknownCollection: GenericPalletError<Rv>;
|
|
794
809
|
|
|
795
810
|
/**
|
|
796
811
|
* The item ID has already been used for an item.
|
|
797
812
|
**/
|
|
798
|
-
AlreadyExists: GenericPalletError
|
|
813
|
+
AlreadyExists: GenericPalletError<Rv>;
|
|
799
814
|
|
|
800
815
|
/**
|
|
801
816
|
* The owner turned out to be different to what was expected.
|
|
802
817
|
**/
|
|
803
|
-
WrongOwner: GenericPalletError
|
|
818
|
+
WrongOwner: GenericPalletError<Rv>;
|
|
804
819
|
|
|
805
820
|
/**
|
|
806
821
|
* Invalid witness data given.
|
|
807
822
|
**/
|
|
808
|
-
BadWitness: GenericPalletError
|
|
823
|
+
BadWitness: GenericPalletError<Rv>;
|
|
809
824
|
|
|
810
825
|
/**
|
|
811
826
|
* The item ID is already taken.
|
|
812
827
|
**/
|
|
813
|
-
InUse: GenericPalletError
|
|
828
|
+
InUse: GenericPalletError<Rv>;
|
|
814
829
|
|
|
815
830
|
/**
|
|
816
831
|
* The item or collection is frozen.
|
|
817
832
|
**/
|
|
818
|
-
Frozen: GenericPalletError
|
|
833
|
+
Frozen: GenericPalletError<Rv>;
|
|
819
834
|
|
|
820
835
|
/**
|
|
821
836
|
* The delegate turned out to be different to what was expected.
|
|
822
837
|
**/
|
|
823
|
-
WrongDelegate: GenericPalletError
|
|
838
|
+
WrongDelegate: GenericPalletError<Rv>;
|
|
824
839
|
|
|
825
840
|
/**
|
|
826
841
|
* There is no delegate approved.
|
|
827
842
|
**/
|
|
828
|
-
NoDelegate: GenericPalletError
|
|
843
|
+
NoDelegate: GenericPalletError<Rv>;
|
|
829
844
|
|
|
830
845
|
/**
|
|
831
846
|
* No approval exists that would allow the transfer.
|
|
832
847
|
**/
|
|
833
|
-
Unapproved: GenericPalletError
|
|
848
|
+
Unapproved: GenericPalletError<Rv>;
|
|
834
849
|
|
|
835
850
|
/**
|
|
836
851
|
* The named owner has not signed ownership of the collection is acceptable.
|
|
837
852
|
**/
|
|
838
|
-
Unaccepted: GenericPalletError
|
|
853
|
+
Unaccepted: GenericPalletError<Rv>;
|
|
839
854
|
|
|
840
855
|
/**
|
|
841
856
|
* The item is locked.
|
|
842
857
|
**/
|
|
843
|
-
Locked: GenericPalletError
|
|
858
|
+
Locked: GenericPalletError<Rv>;
|
|
844
859
|
|
|
845
860
|
/**
|
|
846
861
|
* All items have been minted.
|
|
847
862
|
**/
|
|
848
|
-
MaxSupplyReached: GenericPalletError
|
|
863
|
+
MaxSupplyReached: GenericPalletError<Rv>;
|
|
849
864
|
|
|
850
865
|
/**
|
|
851
866
|
* The max supply has already been set.
|
|
852
867
|
**/
|
|
853
|
-
MaxSupplyAlreadySet: GenericPalletError
|
|
868
|
+
MaxSupplyAlreadySet: GenericPalletError<Rv>;
|
|
854
869
|
|
|
855
870
|
/**
|
|
856
871
|
* The provided max supply is less to the amount of items a collection already has.
|
|
857
872
|
**/
|
|
858
|
-
MaxSupplyTooSmall: GenericPalletError
|
|
873
|
+
MaxSupplyTooSmall: GenericPalletError<Rv>;
|
|
859
874
|
|
|
860
875
|
/**
|
|
861
876
|
* The given item ID is unknown.
|
|
862
877
|
**/
|
|
863
|
-
UnknownItem: GenericPalletError
|
|
878
|
+
UnknownItem: GenericPalletError<Rv>;
|
|
864
879
|
|
|
865
880
|
/**
|
|
866
881
|
* Item is not for sale.
|
|
867
882
|
**/
|
|
868
|
-
NotForSale: GenericPalletError
|
|
883
|
+
NotForSale: GenericPalletError<Rv>;
|
|
869
884
|
|
|
870
885
|
/**
|
|
871
886
|
* The provided bid is too low.
|
|
872
887
|
**/
|
|
873
|
-
BidTooLow: GenericPalletError
|
|
888
|
+
BidTooLow: GenericPalletError<Rv>;
|
|
874
889
|
|
|
875
890
|
/**
|
|
876
891
|
* Generic pallet error
|
|
877
892
|
**/
|
|
878
|
-
[error: string]: GenericPalletError
|
|
893
|
+
[error: string]: GenericPalletError<Rv>;
|
|
879
894
|
};
|
|
880
895
|
/**
|
|
881
896
|
* Pallet `Nfts`'s errors
|
|
@@ -884,232 +899,232 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
884
899
|
/**
|
|
885
900
|
* The signing account has no permission to do the operation.
|
|
886
901
|
**/
|
|
887
|
-
NoPermission: GenericPalletError
|
|
902
|
+
NoPermission: GenericPalletError<Rv>;
|
|
888
903
|
|
|
889
904
|
/**
|
|
890
905
|
* The given item ID is unknown.
|
|
891
906
|
**/
|
|
892
|
-
UnknownCollection: GenericPalletError
|
|
907
|
+
UnknownCollection: GenericPalletError<Rv>;
|
|
893
908
|
|
|
894
909
|
/**
|
|
895
910
|
* The item ID has already been used for an item.
|
|
896
911
|
**/
|
|
897
|
-
AlreadyExists: GenericPalletError
|
|
912
|
+
AlreadyExists: GenericPalletError<Rv>;
|
|
898
913
|
|
|
899
914
|
/**
|
|
900
915
|
* The approval had a deadline that expired, so the approval isn't valid anymore.
|
|
901
916
|
**/
|
|
902
|
-
ApprovalExpired: GenericPalletError
|
|
917
|
+
ApprovalExpired: GenericPalletError<Rv>;
|
|
903
918
|
|
|
904
919
|
/**
|
|
905
920
|
* The owner turned out to be different to what was expected.
|
|
906
921
|
**/
|
|
907
|
-
WrongOwner: GenericPalletError
|
|
922
|
+
WrongOwner: GenericPalletError<Rv>;
|
|
908
923
|
|
|
909
924
|
/**
|
|
910
925
|
* The witness data given does not match the current state of the chain.
|
|
911
926
|
**/
|
|
912
|
-
BadWitness: GenericPalletError
|
|
927
|
+
BadWitness: GenericPalletError<Rv>;
|
|
913
928
|
|
|
914
929
|
/**
|
|
915
930
|
* Collection ID is already taken.
|
|
916
931
|
**/
|
|
917
|
-
CollectionIdInUse: GenericPalletError
|
|
932
|
+
CollectionIdInUse: GenericPalletError<Rv>;
|
|
918
933
|
|
|
919
934
|
/**
|
|
920
935
|
* Items within that collection are non-transferable.
|
|
921
936
|
**/
|
|
922
|
-
ItemsNonTransferable: GenericPalletError
|
|
937
|
+
ItemsNonTransferable: GenericPalletError<Rv>;
|
|
923
938
|
|
|
924
939
|
/**
|
|
925
940
|
* The provided account is not a delegate.
|
|
926
941
|
**/
|
|
927
|
-
NotDelegate: GenericPalletError
|
|
942
|
+
NotDelegate: GenericPalletError<Rv>;
|
|
928
943
|
|
|
929
944
|
/**
|
|
930
945
|
* The delegate turned out to be different to what was expected.
|
|
931
946
|
**/
|
|
932
|
-
WrongDelegate: GenericPalletError
|
|
947
|
+
WrongDelegate: GenericPalletError<Rv>;
|
|
933
948
|
|
|
934
949
|
/**
|
|
935
950
|
* No approval exists that would allow the transfer.
|
|
936
951
|
**/
|
|
937
|
-
Unapproved: GenericPalletError
|
|
952
|
+
Unapproved: GenericPalletError<Rv>;
|
|
938
953
|
|
|
939
954
|
/**
|
|
940
955
|
* The named owner has not signed ownership acceptance of the collection.
|
|
941
956
|
**/
|
|
942
|
-
Unaccepted: GenericPalletError
|
|
957
|
+
Unaccepted: GenericPalletError<Rv>;
|
|
943
958
|
|
|
944
959
|
/**
|
|
945
960
|
* The item is locked (non-transferable).
|
|
946
961
|
**/
|
|
947
|
-
ItemLocked: GenericPalletError
|
|
962
|
+
ItemLocked: GenericPalletError<Rv>;
|
|
948
963
|
|
|
949
964
|
/**
|
|
950
965
|
* Item's attributes are locked.
|
|
951
966
|
**/
|
|
952
|
-
LockedItemAttributes: GenericPalletError
|
|
967
|
+
LockedItemAttributes: GenericPalletError<Rv>;
|
|
953
968
|
|
|
954
969
|
/**
|
|
955
970
|
* Collection's attributes are locked.
|
|
956
971
|
**/
|
|
957
|
-
LockedCollectionAttributes: GenericPalletError
|
|
972
|
+
LockedCollectionAttributes: GenericPalletError<Rv>;
|
|
958
973
|
|
|
959
974
|
/**
|
|
960
975
|
* Item's metadata is locked.
|
|
961
976
|
**/
|
|
962
|
-
LockedItemMetadata: GenericPalletError
|
|
977
|
+
LockedItemMetadata: GenericPalletError<Rv>;
|
|
963
978
|
|
|
964
979
|
/**
|
|
965
980
|
* Collection's metadata is locked.
|
|
966
981
|
**/
|
|
967
|
-
LockedCollectionMetadata: GenericPalletError
|
|
982
|
+
LockedCollectionMetadata: GenericPalletError<Rv>;
|
|
968
983
|
|
|
969
984
|
/**
|
|
970
985
|
* All items have been minted.
|
|
971
986
|
**/
|
|
972
|
-
MaxSupplyReached: GenericPalletError
|
|
987
|
+
MaxSupplyReached: GenericPalletError<Rv>;
|
|
973
988
|
|
|
974
989
|
/**
|
|
975
990
|
* The max supply is locked and can't be changed.
|
|
976
991
|
**/
|
|
977
|
-
MaxSupplyLocked: GenericPalletError
|
|
992
|
+
MaxSupplyLocked: GenericPalletError<Rv>;
|
|
978
993
|
|
|
979
994
|
/**
|
|
980
995
|
* The provided max supply is less than the number of items a collection already has.
|
|
981
996
|
**/
|
|
982
|
-
MaxSupplyTooSmall: GenericPalletError
|
|
997
|
+
MaxSupplyTooSmall: GenericPalletError<Rv>;
|
|
983
998
|
|
|
984
999
|
/**
|
|
985
1000
|
* The given item ID is unknown.
|
|
986
1001
|
**/
|
|
987
|
-
UnknownItem: GenericPalletError
|
|
1002
|
+
UnknownItem: GenericPalletError<Rv>;
|
|
988
1003
|
|
|
989
1004
|
/**
|
|
990
1005
|
* Swap doesn't exist.
|
|
991
1006
|
**/
|
|
992
|
-
UnknownSwap: GenericPalletError
|
|
1007
|
+
UnknownSwap: GenericPalletError<Rv>;
|
|
993
1008
|
|
|
994
1009
|
/**
|
|
995
1010
|
* The given item has no metadata set.
|
|
996
1011
|
**/
|
|
997
|
-
MetadataNotFound: GenericPalletError
|
|
1012
|
+
MetadataNotFound: GenericPalletError<Rv>;
|
|
998
1013
|
|
|
999
1014
|
/**
|
|
1000
1015
|
* The provided attribute can't be found.
|
|
1001
1016
|
**/
|
|
1002
|
-
AttributeNotFound: GenericPalletError
|
|
1017
|
+
AttributeNotFound: GenericPalletError<Rv>;
|
|
1003
1018
|
|
|
1004
1019
|
/**
|
|
1005
1020
|
* Item is not for sale.
|
|
1006
1021
|
**/
|
|
1007
|
-
NotForSale: GenericPalletError
|
|
1022
|
+
NotForSale: GenericPalletError<Rv>;
|
|
1008
1023
|
|
|
1009
1024
|
/**
|
|
1010
1025
|
* The provided bid is too low.
|
|
1011
1026
|
**/
|
|
1012
|
-
BidTooLow: GenericPalletError
|
|
1027
|
+
BidTooLow: GenericPalletError<Rv>;
|
|
1013
1028
|
|
|
1014
1029
|
/**
|
|
1015
1030
|
* The item has reached its approval limit.
|
|
1016
1031
|
**/
|
|
1017
|
-
ReachedApprovalLimit: GenericPalletError
|
|
1032
|
+
ReachedApprovalLimit: GenericPalletError<Rv>;
|
|
1018
1033
|
|
|
1019
1034
|
/**
|
|
1020
1035
|
* The deadline has already expired.
|
|
1021
1036
|
**/
|
|
1022
|
-
DeadlineExpired: GenericPalletError
|
|
1037
|
+
DeadlineExpired: GenericPalletError<Rv>;
|
|
1023
1038
|
|
|
1024
1039
|
/**
|
|
1025
1040
|
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
|
1026
1041
|
**/
|
|
1027
|
-
WrongDuration: GenericPalletError
|
|
1042
|
+
WrongDuration: GenericPalletError<Rv>;
|
|
1028
1043
|
|
|
1029
1044
|
/**
|
|
1030
1045
|
* The method is disabled by system settings.
|
|
1031
1046
|
**/
|
|
1032
|
-
MethodDisabled: GenericPalletError
|
|
1047
|
+
MethodDisabled: GenericPalletError<Rv>;
|
|
1033
1048
|
|
|
1034
1049
|
/**
|
|
1035
1050
|
* The provided setting can't be set.
|
|
1036
1051
|
**/
|
|
1037
|
-
WrongSetting: GenericPalletError
|
|
1052
|
+
WrongSetting: GenericPalletError<Rv>;
|
|
1038
1053
|
|
|
1039
1054
|
/**
|
|
1040
1055
|
* Item's config already exists and should be equal to the provided one.
|
|
1041
1056
|
**/
|
|
1042
|
-
InconsistentItemConfig: GenericPalletError
|
|
1057
|
+
InconsistentItemConfig: GenericPalletError<Rv>;
|
|
1043
1058
|
|
|
1044
1059
|
/**
|
|
1045
1060
|
* Config for a collection or an item can't be found.
|
|
1046
1061
|
**/
|
|
1047
|
-
NoConfig: GenericPalletError
|
|
1062
|
+
NoConfig: GenericPalletError<Rv>;
|
|
1048
1063
|
|
|
1049
1064
|
/**
|
|
1050
1065
|
* Some roles were not cleared.
|
|
1051
1066
|
**/
|
|
1052
|
-
RolesNotCleared: GenericPalletError
|
|
1067
|
+
RolesNotCleared: GenericPalletError<Rv>;
|
|
1053
1068
|
|
|
1054
1069
|
/**
|
|
1055
1070
|
* Mint has not started yet.
|
|
1056
1071
|
**/
|
|
1057
|
-
MintNotStarted: GenericPalletError
|
|
1072
|
+
MintNotStarted: GenericPalletError<Rv>;
|
|
1058
1073
|
|
|
1059
1074
|
/**
|
|
1060
1075
|
* Mint has already ended.
|
|
1061
1076
|
**/
|
|
1062
|
-
MintEnded: GenericPalletError
|
|
1077
|
+
MintEnded: GenericPalletError<Rv>;
|
|
1063
1078
|
|
|
1064
1079
|
/**
|
|
1065
1080
|
* The provided Item was already used for claiming.
|
|
1066
1081
|
**/
|
|
1067
|
-
AlreadyClaimed: GenericPalletError
|
|
1082
|
+
AlreadyClaimed: GenericPalletError<Rv>;
|
|
1068
1083
|
|
|
1069
1084
|
/**
|
|
1070
1085
|
* The provided data is incorrect.
|
|
1071
1086
|
**/
|
|
1072
|
-
IncorrectData: GenericPalletError
|
|
1087
|
+
IncorrectData: GenericPalletError<Rv>;
|
|
1073
1088
|
|
|
1074
1089
|
/**
|
|
1075
1090
|
* The extrinsic was sent by the wrong origin.
|
|
1076
1091
|
**/
|
|
1077
|
-
WrongOrigin: GenericPalletError
|
|
1092
|
+
WrongOrigin: GenericPalletError<Rv>;
|
|
1078
1093
|
|
|
1079
1094
|
/**
|
|
1080
1095
|
* The provided signature is incorrect.
|
|
1081
1096
|
**/
|
|
1082
|
-
WrongSignature: GenericPalletError
|
|
1097
|
+
WrongSignature: GenericPalletError<Rv>;
|
|
1083
1098
|
|
|
1084
1099
|
/**
|
|
1085
1100
|
* The provided metadata might be too long.
|
|
1086
1101
|
**/
|
|
1087
|
-
IncorrectMetadata: GenericPalletError
|
|
1102
|
+
IncorrectMetadata: GenericPalletError<Rv>;
|
|
1088
1103
|
|
|
1089
1104
|
/**
|
|
1090
1105
|
* Can't set more attributes per one call.
|
|
1091
1106
|
**/
|
|
1092
|
-
MaxAttributesLimitReached: GenericPalletError
|
|
1107
|
+
MaxAttributesLimitReached: GenericPalletError<Rv>;
|
|
1093
1108
|
|
|
1094
1109
|
/**
|
|
1095
1110
|
* The provided namespace isn't supported in this call.
|
|
1096
1111
|
**/
|
|
1097
|
-
WrongNamespace: GenericPalletError
|
|
1112
|
+
WrongNamespace: GenericPalletError<Rv>;
|
|
1098
1113
|
|
|
1099
1114
|
/**
|
|
1100
1115
|
* Can't delete non-empty collections.
|
|
1101
1116
|
**/
|
|
1102
|
-
CollectionNotEmpty: GenericPalletError
|
|
1117
|
+
CollectionNotEmpty: GenericPalletError<Rv>;
|
|
1103
1118
|
|
|
1104
1119
|
/**
|
|
1105
1120
|
* The witness data should be provided.
|
|
1106
1121
|
**/
|
|
1107
|
-
WitnessRequired: GenericPalletError
|
|
1122
|
+
WitnessRequired: GenericPalletError<Rv>;
|
|
1108
1123
|
|
|
1109
1124
|
/**
|
|
1110
1125
|
* Generic pallet error
|
|
1111
1126
|
**/
|
|
1112
|
-
[error: string]: GenericPalletError
|
|
1127
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1113
1128
|
};
|
|
1114
1129
|
/**
|
|
1115
1130
|
* Pallet `ForeignAssets`'s errors
|
|
@@ -1118,110 +1133,115 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1118
1133
|
/**
|
|
1119
1134
|
* Account balance must be greater than or equal to the transfer amount.
|
|
1120
1135
|
**/
|
|
1121
|
-
BalanceLow: GenericPalletError
|
|
1136
|
+
BalanceLow: GenericPalletError<Rv>;
|
|
1122
1137
|
|
|
1123
1138
|
/**
|
|
1124
1139
|
* The account to alter does not exist.
|
|
1125
1140
|
**/
|
|
1126
|
-
NoAccount: GenericPalletError
|
|
1141
|
+
NoAccount: GenericPalletError<Rv>;
|
|
1127
1142
|
|
|
1128
1143
|
/**
|
|
1129
1144
|
* The signing account has no permission to do the operation.
|
|
1130
1145
|
**/
|
|
1131
|
-
NoPermission: GenericPalletError
|
|
1146
|
+
NoPermission: GenericPalletError<Rv>;
|
|
1132
1147
|
|
|
1133
1148
|
/**
|
|
1134
1149
|
* The given asset ID is unknown.
|
|
1135
1150
|
**/
|
|
1136
|
-
Unknown: GenericPalletError
|
|
1151
|
+
Unknown: GenericPalletError<Rv>;
|
|
1137
1152
|
|
|
1138
1153
|
/**
|
|
1139
1154
|
* The origin account is frozen.
|
|
1140
1155
|
**/
|
|
1141
|
-
Frozen: GenericPalletError
|
|
1156
|
+
Frozen: GenericPalletError<Rv>;
|
|
1142
1157
|
|
|
1143
1158
|
/**
|
|
1144
1159
|
* The asset ID is already taken.
|
|
1145
1160
|
**/
|
|
1146
|
-
InUse: GenericPalletError
|
|
1161
|
+
InUse: GenericPalletError<Rv>;
|
|
1147
1162
|
|
|
1148
1163
|
/**
|
|
1149
1164
|
* Invalid witness data given.
|
|
1150
1165
|
**/
|
|
1151
|
-
BadWitness: GenericPalletError
|
|
1166
|
+
BadWitness: GenericPalletError<Rv>;
|
|
1152
1167
|
|
|
1153
1168
|
/**
|
|
1154
1169
|
* Minimum balance should be non-zero.
|
|
1155
1170
|
**/
|
|
1156
|
-
MinBalanceZero: GenericPalletError
|
|
1171
|
+
MinBalanceZero: GenericPalletError<Rv>;
|
|
1157
1172
|
|
|
1158
1173
|
/**
|
|
1159
1174
|
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
1160
1175
|
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
1161
1176
|
* fewer then the maximum number of consumers has been reached.
|
|
1162
1177
|
**/
|
|
1163
|
-
UnavailableConsumer: GenericPalletError
|
|
1178
|
+
UnavailableConsumer: GenericPalletError<Rv>;
|
|
1164
1179
|
|
|
1165
1180
|
/**
|
|
1166
1181
|
* Invalid metadata given.
|
|
1167
1182
|
**/
|
|
1168
|
-
BadMetadata: GenericPalletError
|
|
1183
|
+
BadMetadata: GenericPalletError<Rv>;
|
|
1169
1184
|
|
|
1170
1185
|
/**
|
|
1171
1186
|
* No approval exists that would allow the transfer.
|
|
1172
1187
|
**/
|
|
1173
|
-
Unapproved: GenericPalletError
|
|
1188
|
+
Unapproved: GenericPalletError<Rv>;
|
|
1174
1189
|
|
|
1175
1190
|
/**
|
|
1176
1191
|
* The source account would not survive the transfer and it needs to stay alive.
|
|
1177
1192
|
**/
|
|
1178
|
-
WouldDie: GenericPalletError
|
|
1193
|
+
WouldDie: GenericPalletError<Rv>;
|
|
1179
1194
|
|
|
1180
1195
|
/**
|
|
1181
1196
|
* The asset-account already exists.
|
|
1182
1197
|
**/
|
|
1183
|
-
AlreadyExists: GenericPalletError
|
|
1198
|
+
AlreadyExists: GenericPalletError<Rv>;
|
|
1184
1199
|
|
|
1185
1200
|
/**
|
|
1186
1201
|
* The asset-account doesn't have an associated deposit.
|
|
1187
1202
|
**/
|
|
1188
|
-
NoDeposit: GenericPalletError
|
|
1203
|
+
NoDeposit: GenericPalletError<Rv>;
|
|
1189
1204
|
|
|
1190
1205
|
/**
|
|
1191
1206
|
* The operation would result in funds being burned.
|
|
1192
1207
|
**/
|
|
1193
|
-
WouldBurn: GenericPalletError
|
|
1208
|
+
WouldBurn: GenericPalletError<Rv>;
|
|
1194
1209
|
|
|
1195
1210
|
/**
|
|
1196
1211
|
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
1197
1212
|
* as `start_destroy` which require the asset to be in a destroying state.
|
|
1198
1213
|
**/
|
|
1199
|
-
LiveAsset: GenericPalletError
|
|
1214
|
+
LiveAsset: GenericPalletError<Rv>;
|
|
1200
1215
|
|
|
1201
1216
|
/**
|
|
1202
1217
|
* The asset is not live, and likely being destroyed.
|
|
1203
1218
|
**/
|
|
1204
|
-
AssetNotLive: GenericPalletError
|
|
1219
|
+
AssetNotLive: GenericPalletError<Rv>;
|
|
1205
1220
|
|
|
1206
1221
|
/**
|
|
1207
1222
|
* The asset status is not the expected status.
|
|
1208
1223
|
**/
|
|
1209
|
-
IncorrectStatus: GenericPalletError
|
|
1224
|
+
IncorrectStatus: GenericPalletError<Rv>;
|
|
1210
1225
|
|
|
1211
1226
|
/**
|
|
1212
1227
|
* The asset should be frozen before the given operation.
|
|
1213
1228
|
**/
|
|
1214
|
-
NotFrozen: GenericPalletError
|
|
1229
|
+
NotFrozen: GenericPalletError<Rv>;
|
|
1215
1230
|
|
|
1216
1231
|
/**
|
|
1217
1232
|
* Callback action resulted in error
|
|
1218
1233
|
**/
|
|
1219
|
-
CallbackFailed: GenericPalletError
|
|
1234
|
+
CallbackFailed: GenericPalletError<Rv>;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
1238
|
+
**/
|
|
1239
|
+
BadAssetId: GenericPalletError<Rv>;
|
|
1220
1240
|
|
|
1221
1241
|
/**
|
|
1222
1242
|
* Generic pallet error
|
|
1223
1243
|
**/
|
|
1224
|
-
[error: string]: GenericPalletError
|
|
1244
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1225
1245
|
};
|
|
1226
1246
|
/**
|
|
1227
1247
|
* Pallet `NftFractionalization`'s errors
|
|
@@ -1230,27 +1250,27 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1230
1250
|
/**
|
|
1231
1251
|
* Asset ID does not correspond to locked NFT.
|
|
1232
1252
|
**/
|
|
1233
|
-
IncorrectAssetId: GenericPalletError
|
|
1253
|
+
IncorrectAssetId: GenericPalletError<Rv>;
|
|
1234
1254
|
|
|
1235
1255
|
/**
|
|
1236
1256
|
* The signing account has no permission to do the operation.
|
|
1237
1257
|
**/
|
|
1238
|
-
NoPermission: GenericPalletError
|
|
1258
|
+
NoPermission: GenericPalletError<Rv>;
|
|
1239
1259
|
|
|
1240
1260
|
/**
|
|
1241
1261
|
* NFT doesn't exist.
|
|
1242
1262
|
**/
|
|
1243
|
-
NftNotFound: GenericPalletError
|
|
1263
|
+
NftNotFound: GenericPalletError<Rv>;
|
|
1244
1264
|
|
|
1245
1265
|
/**
|
|
1246
1266
|
* NFT has not yet been fractionalised.
|
|
1247
1267
|
**/
|
|
1248
|
-
NftNotFractionalized: GenericPalletError
|
|
1268
|
+
NftNotFractionalized: GenericPalletError<Rv>;
|
|
1249
1269
|
|
|
1250
1270
|
/**
|
|
1251
1271
|
* Generic pallet error
|
|
1252
1272
|
**/
|
|
1253
|
-
[error: string]: GenericPalletError
|
|
1273
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1254
1274
|
};
|
|
1255
1275
|
/**
|
|
1256
1276
|
* Pallet `PoolAssets`'s errors
|
|
@@ -1259,110 +1279,115 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1259
1279
|
/**
|
|
1260
1280
|
* Account balance must be greater than or equal to the transfer amount.
|
|
1261
1281
|
**/
|
|
1262
|
-
BalanceLow: GenericPalletError
|
|
1282
|
+
BalanceLow: GenericPalletError<Rv>;
|
|
1263
1283
|
|
|
1264
1284
|
/**
|
|
1265
1285
|
* The account to alter does not exist.
|
|
1266
1286
|
**/
|
|
1267
|
-
NoAccount: GenericPalletError
|
|
1287
|
+
NoAccount: GenericPalletError<Rv>;
|
|
1268
1288
|
|
|
1269
1289
|
/**
|
|
1270
1290
|
* The signing account has no permission to do the operation.
|
|
1271
1291
|
**/
|
|
1272
|
-
NoPermission: GenericPalletError
|
|
1292
|
+
NoPermission: GenericPalletError<Rv>;
|
|
1273
1293
|
|
|
1274
1294
|
/**
|
|
1275
1295
|
* The given asset ID is unknown.
|
|
1276
1296
|
**/
|
|
1277
|
-
Unknown: GenericPalletError
|
|
1297
|
+
Unknown: GenericPalletError<Rv>;
|
|
1278
1298
|
|
|
1279
1299
|
/**
|
|
1280
1300
|
* The origin account is frozen.
|
|
1281
1301
|
**/
|
|
1282
|
-
Frozen: GenericPalletError
|
|
1302
|
+
Frozen: GenericPalletError<Rv>;
|
|
1283
1303
|
|
|
1284
1304
|
/**
|
|
1285
1305
|
* The asset ID is already taken.
|
|
1286
1306
|
**/
|
|
1287
|
-
InUse: GenericPalletError
|
|
1307
|
+
InUse: GenericPalletError<Rv>;
|
|
1288
1308
|
|
|
1289
1309
|
/**
|
|
1290
1310
|
* Invalid witness data given.
|
|
1291
1311
|
**/
|
|
1292
|
-
BadWitness: GenericPalletError
|
|
1312
|
+
BadWitness: GenericPalletError<Rv>;
|
|
1293
1313
|
|
|
1294
1314
|
/**
|
|
1295
1315
|
* Minimum balance should be non-zero.
|
|
1296
1316
|
**/
|
|
1297
|
-
MinBalanceZero: GenericPalletError
|
|
1317
|
+
MinBalanceZero: GenericPalletError<Rv>;
|
|
1298
1318
|
|
|
1299
1319
|
/**
|
|
1300
1320
|
* Unable to increment the consumer reference counters on the account. Either no provider
|
|
1301
1321
|
* reference exists to allow a non-zero balance of a non-self-sufficient asset, or one
|
|
1302
1322
|
* fewer then the maximum number of consumers has been reached.
|
|
1303
1323
|
**/
|
|
1304
|
-
UnavailableConsumer: GenericPalletError
|
|
1324
|
+
UnavailableConsumer: GenericPalletError<Rv>;
|
|
1305
1325
|
|
|
1306
1326
|
/**
|
|
1307
1327
|
* Invalid metadata given.
|
|
1308
1328
|
**/
|
|
1309
|
-
BadMetadata: GenericPalletError
|
|
1329
|
+
BadMetadata: GenericPalletError<Rv>;
|
|
1310
1330
|
|
|
1311
1331
|
/**
|
|
1312
1332
|
* No approval exists that would allow the transfer.
|
|
1313
1333
|
**/
|
|
1314
|
-
Unapproved: GenericPalletError
|
|
1334
|
+
Unapproved: GenericPalletError<Rv>;
|
|
1315
1335
|
|
|
1316
1336
|
/**
|
|
1317
1337
|
* The source account would not survive the transfer and it needs to stay alive.
|
|
1318
1338
|
**/
|
|
1319
|
-
WouldDie: GenericPalletError
|
|
1339
|
+
WouldDie: GenericPalletError<Rv>;
|
|
1320
1340
|
|
|
1321
1341
|
/**
|
|
1322
1342
|
* The asset-account already exists.
|
|
1323
1343
|
**/
|
|
1324
|
-
AlreadyExists: GenericPalletError
|
|
1344
|
+
AlreadyExists: GenericPalletError<Rv>;
|
|
1325
1345
|
|
|
1326
1346
|
/**
|
|
1327
1347
|
* The asset-account doesn't have an associated deposit.
|
|
1328
1348
|
**/
|
|
1329
|
-
NoDeposit: GenericPalletError
|
|
1349
|
+
NoDeposit: GenericPalletError<Rv>;
|
|
1330
1350
|
|
|
1331
1351
|
/**
|
|
1332
1352
|
* The operation would result in funds being burned.
|
|
1333
1353
|
**/
|
|
1334
|
-
WouldBurn: GenericPalletError
|
|
1354
|
+
WouldBurn: GenericPalletError<Rv>;
|
|
1335
1355
|
|
|
1336
1356
|
/**
|
|
1337
1357
|
* The asset is a live asset and is actively being used. Usually emit for operations such
|
|
1338
1358
|
* as `start_destroy` which require the asset to be in a destroying state.
|
|
1339
1359
|
**/
|
|
1340
|
-
LiveAsset: GenericPalletError
|
|
1360
|
+
LiveAsset: GenericPalletError<Rv>;
|
|
1341
1361
|
|
|
1342
1362
|
/**
|
|
1343
1363
|
* The asset is not live, and likely being destroyed.
|
|
1344
1364
|
**/
|
|
1345
|
-
AssetNotLive: GenericPalletError
|
|
1365
|
+
AssetNotLive: GenericPalletError<Rv>;
|
|
1346
1366
|
|
|
1347
1367
|
/**
|
|
1348
1368
|
* The asset status is not the expected status.
|
|
1349
1369
|
**/
|
|
1350
|
-
IncorrectStatus: GenericPalletError
|
|
1370
|
+
IncorrectStatus: GenericPalletError<Rv>;
|
|
1351
1371
|
|
|
1352
1372
|
/**
|
|
1353
1373
|
* The asset should be frozen before the given operation.
|
|
1354
1374
|
**/
|
|
1355
|
-
NotFrozen: GenericPalletError
|
|
1375
|
+
NotFrozen: GenericPalletError<Rv>;
|
|
1356
1376
|
|
|
1357
1377
|
/**
|
|
1358
1378
|
* Callback action resulted in error
|
|
1359
1379
|
**/
|
|
1360
|
-
CallbackFailed: GenericPalletError
|
|
1380
|
+
CallbackFailed: GenericPalletError<Rv>;
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* The asset ID must be equal to the [`NextAssetId`].
|
|
1384
|
+
**/
|
|
1385
|
+
BadAssetId: GenericPalletError<Rv>;
|
|
1361
1386
|
|
|
1362
1387
|
/**
|
|
1363
1388
|
* Generic pallet error
|
|
1364
1389
|
**/
|
|
1365
|
-
[error: string]: GenericPalletError
|
|
1390
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1366
1391
|
};
|
|
1367
1392
|
/**
|
|
1368
1393
|
* Pallet `AssetConversion`'s errors
|
|
@@ -1371,124 +1396,240 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1371
1396
|
/**
|
|
1372
1397
|
* Provided asset pair is not supported for pool.
|
|
1373
1398
|
**/
|
|
1374
|
-
InvalidAssetPair: GenericPalletError
|
|
1399
|
+
InvalidAssetPair: GenericPalletError<Rv>;
|
|
1375
1400
|
|
|
1376
1401
|
/**
|
|
1377
1402
|
* Pool already exists.
|
|
1378
1403
|
**/
|
|
1379
|
-
PoolExists: GenericPalletError
|
|
1404
|
+
PoolExists: GenericPalletError<Rv>;
|
|
1380
1405
|
|
|
1381
1406
|
/**
|
|
1382
1407
|
* Desired amount can't be zero.
|
|
1383
1408
|
**/
|
|
1384
|
-
WrongDesiredAmount: GenericPalletError
|
|
1409
|
+
WrongDesiredAmount: GenericPalletError<Rv>;
|
|
1385
1410
|
|
|
1386
1411
|
/**
|
|
1387
1412
|
* Provided amount should be greater than or equal to the existential deposit/asset's
|
|
1388
1413
|
* minimal amount.
|
|
1389
1414
|
**/
|
|
1390
|
-
AmountOneLessThanMinimal: GenericPalletError
|
|
1415
|
+
AmountOneLessThanMinimal: GenericPalletError<Rv>;
|
|
1391
1416
|
|
|
1392
1417
|
/**
|
|
1393
1418
|
* Provided amount should be greater than or equal to the existential deposit/asset's
|
|
1394
1419
|
* minimal amount.
|
|
1395
1420
|
**/
|
|
1396
|
-
AmountTwoLessThanMinimal: GenericPalletError
|
|
1421
|
+
AmountTwoLessThanMinimal: GenericPalletError<Rv>;
|
|
1397
1422
|
|
|
1398
1423
|
/**
|
|
1399
1424
|
* Reserve needs to always be greater than or equal to the existential deposit/asset's
|
|
1400
1425
|
* minimal amount.
|
|
1401
1426
|
**/
|
|
1402
|
-
ReserveLeftLessThanMinimal: GenericPalletError
|
|
1427
|
+
ReserveLeftLessThanMinimal: GenericPalletError<Rv>;
|
|
1403
1428
|
|
|
1404
1429
|
/**
|
|
1405
1430
|
* Desired amount can't be equal to the pool reserve.
|
|
1406
1431
|
**/
|
|
1407
|
-
AmountOutTooHigh: GenericPalletError
|
|
1432
|
+
AmountOutTooHigh: GenericPalletError<Rv>;
|
|
1408
1433
|
|
|
1409
1434
|
/**
|
|
1410
1435
|
* The pool doesn't exist.
|
|
1411
1436
|
**/
|
|
1412
|
-
PoolNotFound: GenericPalletError
|
|
1437
|
+
PoolNotFound: GenericPalletError<Rv>;
|
|
1413
1438
|
|
|
1414
1439
|
/**
|
|
1415
1440
|
* An overflow happened.
|
|
1416
1441
|
**/
|
|
1417
|
-
Overflow: GenericPalletError
|
|
1442
|
+
Overflow: GenericPalletError<Rv>;
|
|
1418
1443
|
|
|
1419
1444
|
/**
|
|
1420
1445
|
* The minimal amount requirement for the first token in the pair wasn't met.
|
|
1421
1446
|
**/
|
|
1422
|
-
AssetOneDepositDidNotMeetMinimum: GenericPalletError
|
|
1447
|
+
AssetOneDepositDidNotMeetMinimum: GenericPalletError<Rv>;
|
|
1423
1448
|
|
|
1424
1449
|
/**
|
|
1425
1450
|
* The minimal amount requirement for the second token in the pair wasn't met.
|
|
1426
1451
|
**/
|
|
1427
|
-
AssetTwoDepositDidNotMeetMinimum: GenericPalletError
|
|
1452
|
+
AssetTwoDepositDidNotMeetMinimum: GenericPalletError<Rv>;
|
|
1428
1453
|
|
|
1429
1454
|
/**
|
|
1430
1455
|
* The minimal amount requirement for the first token in the pair wasn't met.
|
|
1431
1456
|
**/
|
|
1432
|
-
AssetOneWithdrawalDidNotMeetMinimum: GenericPalletError
|
|
1457
|
+
AssetOneWithdrawalDidNotMeetMinimum: GenericPalletError<Rv>;
|
|
1433
1458
|
|
|
1434
1459
|
/**
|
|
1435
1460
|
* The minimal amount requirement for the second token in the pair wasn't met.
|
|
1436
1461
|
**/
|
|
1437
|
-
AssetTwoWithdrawalDidNotMeetMinimum: GenericPalletError
|
|
1462
|
+
AssetTwoWithdrawalDidNotMeetMinimum: GenericPalletError<Rv>;
|
|
1438
1463
|
|
|
1439
1464
|
/**
|
|
1440
1465
|
* Optimal calculated amount is less than desired.
|
|
1441
1466
|
**/
|
|
1442
|
-
OptimalAmountLessThanDesired: GenericPalletError
|
|
1467
|
+
OptimalAmountLessThanDesired: GenericPalletError<Rv>;
|
|
1443
1468
|
|
|
1444
1469
|
/**
|
|
1445
1470
|
* Insufficient liquidity minted.
|
|
1446
1471
|
**/
|
|
1447
|
-
InsufficientLiquidityMinted: GenericPalletError
|
|
1472
|
+
InsufficientLiquidityMinted: GenericPalletError<Rv>;
|
|
1448
1473
|
|
|
1449
1474
|
/**
|
|
1450
1475
|
* Requested liquidity can't be zero.
|
|
1451
1476
|
**/
|
|
1452
|
-
ZeroLiquidity: GenericPalletError
|
|
1477
|
+
ZeroLiquidity: GenericPalletError<Rv>;
|
|
1453
1478
|
|
|
1454
1479
|
/**
|
|
1455
1480
|
* Amount can't be zero.
|
|
1456
1481
|
**/
|
|
1457
|
-
ZeroAmount: GenericPalletError
|
|
1482
|
+
ZeroAmount: GenericPalletError<Rv>;
|
|
1458
1483
|
|
|
1459
1484
|
/**
|
|
1460
1485
|
* Calculated amount out is less than provided minimum amount.
|
|
1461
1486
|
**/
|
|
1462
|
-
ProvidedMinimumNotSufficientForSwap: GenericPalletError
|
|
1487
|
+
ProvidedMinimumNotSufficientForSwap: GenericPalletError<Rv>;
|
|
1463
1488
|
|
|
1464
1489
|
/**
|
|
1465
1490
|
* Provided maximum amount is not sufficient for swap.
|
|
1466
1491
|
**/
|
|
1467
|
-
ProvidedMaximumNotSufficientForSwap: GenericPalletError
|
|
1492
|
+
ProvidedMaximumNotSufficientForSwap: GenericPalletError<Rv>;
|
|
1468
1493
|
|
|
1469
1494
|
/**
|
|
1470
1495
|
* The provided path must consists of 2 assets at least.
|
|
1471
1496
|
**/
|
|
1472
|
-
InvalidPath: GenericPalletError
|
|
1497
|
+
InvalidPath: GenericPalletError<Rv>;
|
|
1473
1498
|
|
|
1474
1499
|
/**
|
|
1475
1500
|
* The provided path must consists of unique assets.
|
|
1476
1501
|
**/
|
|
1477
|
-
NonUniquePath: GenericPalletError
|
|
1502
|
+
NonUniquePath: GenericPalletError<Rv>;
|
|
1478
1503
|
|
|
1479
1504
|
/**
|
|
1480
1505
|
* It was not possible to get or increment the Id of the pool.
|
|
1481
1506
|
**/
|
|
1482
|
-
IncorrectPoolAssetId: GenericPalletError
|
|
1507
|
+
IncorrectPoolAssetId: GenericPalletError<Rv>;
|
|
1483
1508
|
|
|
1484
1509
|
/**
|
|
1485
1510
|
* The destination account cannot exist with the swapped funds.
|
|
1486
1511
|
**/
|
|
1487
|
-
BelowMinimum: GenericPalletError
|
|
1512
|
+
BelowMinimum: GenericPalletError<Rv>;
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Generic pallet error
|
|
1516
|
+
**/
|
|
1517
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1518
|
+
};
|
|
1519
|
+
/**
|
|
1520
|
+
* Pallet `AssetsFreezer`'s errors
|
|
1521
|
+
**/
|
|
1522
|
+
assetsFreezer: {
|
|
1523
|
+
/**
|
|
1524
|
+
* Number of freezes on an account would exceed `MaxFreezes`.
|
|
1525
|
+
**/
|
|
1526
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Generic pallet error
|
|
1530
|
+
**/
|
|
1531
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1532
|
+
};
|
|
1533
|
+
/**
|
|
1534
|
+
* Pallet `ForeignAssetsFreezer`'s errors
|
|
1535
|
+
**/
|
|
1536
|
+
foreignAssetsFreezer: {
|
|
1537
|
+
/**
|
|
1538
|
+
* Number of freezes on an account would exceed `MaxFreezes`.
|
|
1539
|
+
**/
|
|
1540
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* Generic pallet error
|
|
1544
|
+
**/
|
|
1545
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1546
|
+
};
|
|
1547
|
+
/**
|
|
1548
|
+
* Pallet `PoolAssetsFreezer`'s errors
|
|
1549
|
+
**/
|
|
1550
|
+
poolAssetsFreezer: {
|
|
1551
|
+
/**
|
|
1552
|
+
* Number of freezes on an account would exceed `MaxFreezes`.
|
|
1553
|
+
**/
|
|
1554
|
+
TooManyFreezes: GenericPalletError<Rv>;
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* Generic pallet error
|
|
1558
|
+
**/
|
|
1559
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1560
|
+
};
|
|
1561
|
+
/**
|
|
1562
|
+
* Pallet `StateTrieMigration`'s errors
|
|
1563
|
+
**/
|
|
1564
|
+
stateTrieMigration: {
|
|
1565
|
+
/**
|
|
1566
|
+
* Max signed limits not respected.
|
|
1567
|
+
**/
|
|
1568
|
+
MaxSignedLimits: GenericPalletError<Rv>;
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* A key was longer than the configured maximum.
|
|
1572
|
+
*
|
|
1573
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
1574
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
1575
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
1576
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
1577
|
+
* stored [`crate::Progress::LastKey`].
|
|
1578
|
+
**/
|
|
1579
|
+
KeyTooLong: GenericPalletError<Rv>;
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* submitter does not have enough funds.
|
|
1583
|
+
**/
|
|
1584
|
+
NotEnoughFunds: GenericPalletError<Rv>;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Bad witness data provided.
|
|
1588
|
+
**/
|
|
1589
|
+
BadWitness: GenericPalletError<Rv>;
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
1593
|
+
**/
|
|
1594
|
+
SignedMigrationNotAllowed: GenericPalletError<Rv>;
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Bad child root provided.
|
|
1598
|
+
**/
|
|
1599
|
+
BadChildRoot: GenericPalletError<Rv>;
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* Generic pallet error
|
|
1603
|
+
**/
|
|
1604
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1605
|
+
};
|
|
1606
|
+
/**
|
|
1607
|
+
* Pallet `AssetConversionMigration`'s errors
|
|
1608
|
+
**/
|
|
1609
|
+
assetConversionMigration: {
|
|
1610
|
+
/**
|
|
1611
|
+
* Provided asset pair is not supported for pool.
|
|
1612
|
+
**/
|
|
1613
|
+
InvalidAssetPair: GenericPalletError<Rv>;
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* The pool doesn't exist.
|
|
1617
|
+
**/
|
|
1618
|
+
PoolNotFound: GenericPalletError<Rv>;
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Pool's balance cannot be zero.
|
|
1622
|
+
**/
|
|
1623
|
+
ZeroBalance: GenericPalletError<Rv>;
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* Indicates a partial transfer of balance to the new account during a migration.
|
|
1627
|
+
**/
|
|
1628
|
+
PartialTransfer: GenericPalletError<Rv>;
|
|
1488
1629
|
|
|
1489
1630
|
/**
|
|
1490
1631
|
* Generic pallet error
|
|
1491
1632
|
**/
|
|
1492
|
-
[error: string]: GenericPalletError
|
|
1633
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1493
1634
|
};
|
|
1494
1635
|
}
|