@storagehub/api-augment 0.1.0 → 0.2.1
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/LICENSE +674 -0
- package/biome.json +2 -9
- package/dist/parachain/index.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-consts.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-errors.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-events.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-query.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-tx.js.map +1 -0
- package/dist/parachain/interfaces/augment-api.js.map +1 -0
- package/dist/parachain/interfaces/augment-types.js.map +1 -0
- package/dist/parachain/interfaces/definitions.js.map +1 -0
- package/dist/parachain/interfaces/index.js.map +1 -0
- package/dist/{interfaces → parachain/interfaces}/lookup.js +1465 -813
- package/dist/parachain/interfaces/lookup.js.map +1 -0
- package/dist/parachain/interfaces/registry.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/parachain/interfaces/types-lookup.js.map +1 -0
- package/dist/parachain/interfaces/types.js.map +1 -0
- package/dist/solochain-evm/index.js +4 -0
- package/dist/solochain-evm/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api.js +10 -0
- package/dist/solochain-evm/interfaces/augment-api.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-types.js +6 -0
- package/dist/solochain-evm/interfaces/augment-types.js.map +1 -0
- package/dist/solochain-evm/interfaces/definitions.js +2 -0
- package/dist/solochain-evm/interfaces/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/index.js +4 -0
- package/dist/solochain-evm/interfaces/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/lookup.js +3744 -0
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/registry.js +6 -0
- package/dist/solochain-evm/interfaces/registry.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/solochain-evm/interfaces/types-lookup.js +6 -0
- package/dist/solochain-evm/interfaces/types-lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/types.js +4 -0
- package/dist/solochain-evm/interfaces/types.js.map +1 -0
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-consts.d.ts +147 -20
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-errors.d.ts +235 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-events.d.ts +542 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-query.d.ts +208 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-rpc.d.ts +61 -4
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-runtime.d.ts +97 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-tx.d.ts +356 -181
- package/dist/types/{interfaces → parachain/interfaces}/augment-types.d.ts +144 -11
- package/dist/types/{interfaces → parachain/interfaces}/lookup.d.ts +1067 -513
- package/dist/types/parachain/interfaces/registry.d.ts +311 -0
- package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/types.d.ts +129 -18
- package/dist/types/{interfaces → parachain/interfaces}/types-lookup.d.ts +1619 -887
- package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +641 -0
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +1260 -0
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +2058 -0
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +1317 -0
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +775 -0
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +535 -0
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +2381 -0
- package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -0
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +1418 -0
- package/dist/types/solochain-evm/interfaces/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +3363 -0
- package/dist/types/solochain-evm/interfaces/registry.d.ts +252 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/definitions.d.ts +6 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +319 -0
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +3577 -0
- package/dist/types/solochain-evm/interfaces/types.d.ts +1 -0
- package/metadata-sh-parachain.json +5 -0
- package/metadata-sh-solochain-evm.json +5 -0
- package/package.json +41 -26
- package/scripts/scrapeMetadata.ts +41 -29
- package/src/parachain/index.ts +3 -0
- package/src/{interfaces → parachain/interfaces}/augment-api-consts.ts +147 -20
- package/src/{interfaces → parachain/interfaces}/augment-api-errors.ts +235 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-events.ts +527 -137
- package/src/{interfaces → parachain/interfaces}/augment-api-query.ts +272 -145
- package/src/{interfaces → parachain/interfaces}/augment-api-rpc.ts +123 -5
- package/src/{interfaces → parachain/interfaces}/augment-api-runtime.ts +183 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
- package/src/{interfaces → parachain/interfaces}/augment-types.ts +278 -12
- package/src/parachain/interfaces/definitions.ts +1 -0
- package/src/{interfaces → parachain/interfaces}/lookup.ts +1497 -813
- package/src/{interfaces → parachain/interfaces}/registry.ts +176 -98
- package/src/parachain/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/{interfaces → parachain/interfaces}/storagehubclient/types.ts +158 -18
- package/src/{interfaces → parachain/interfaces}/types-lookup.ts +1970 -896
- package/src/solochain-evm/index.ts +3 -0
- package/src/solochain-evm/interfaces/augment-api-consts.ts +655 -0
- package/src/solochain-evm/interfaces/augment-api-errors.ts +1268 -0
- package/src/solochain-evm/interfaces/augment-api-events.ts +1813 -0
- package/src/solochain-evm/interfaces/augment-api-query.ts +1838 -0
- package/src/solochain-evm/interfaces/augment-api-rpc.ts +1319 -0
- package/src/solochain-evm/interfaces/augment-api-runtime.ts +958 -0
- package/src/solochain-evm/interfaces/augment-api-tx.ts +2818 -0
- package/src/solochain-evm/interfaces/augment-api.ts +10 -0
- package/src/solochain-evm/interfaces/augment-types.ts +2774 -0
- package/src/solochain-evm/interfaces/definitions.ts +1 -0
- package/src/solochain-evm/interfaces/index.ts +4 -0
- package/src/solochain-evm/interfaces/lookup.ts +3788 -0
- package/src/solochain-evm/interfaces/registry.ts +506 -0
- package/src/solochain-evm/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/solochain-evm/interfaces/storagehubclient/index.ts +4 -0
- package/src/solochain-evm/interfaces/storagehubclient/types.ts +391 -0
- package/src/solochain-evm/interfaces/types-lookup.ts +4616 -0
- package/src/solochain-evm/interfaces/types.ts +4 -0
- package/tsconfig.json +17 -20
- package/tsconfig.parachain.json +17 -0
- package/tsconfig.solochain-evm.json +17 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/index.js.map +0 -1
- package/dist/interfaces/augment-api-consts.js.map +0 -1
- package/dist/interfaces/augment-api-errors.js.map +0 -1
- package/dist/interfaces/augment-api-events.js.map +0 -1
- package/dist/interfaces/augment-api-query.js.map +0 -1
- package/dist/interfaces/augment-api-rpc.js.map +0 -1
- package/dist/interfaces/augment-api-runtime.js.map +0 -1
- package/dist/interfaces/augment-api-tx.js.map +0 -1
- package/dist/interfaces/augment-api.js.map +0 -1
- package/dist/interfaces/augment-types.js.map +0 -1
- package/dist/interfaces/definitions.js.map +0 -1
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/lookup.js.map +0 -1
- package/dist/interfaces/registry.js.map +0 -1
- package/dist/interfaces/storagehubclient/definitions.js +0 -7
- package/dist/interfaces/storagehubclient/definitions.js.map +0 -1
- package/dist/interfaces/storagehubclient/index.js.map +0 -1
- package/dist/interfaces/storagehubclient/runtime.js.map +0 -1
- package/dist/interfaces/storagehubclient/types.js.map +0 -1
- package/dist/interfaces/types-lookup.js.map +0 -1
- package/dist/interfaces/types.js.map +0 -1
- package/dist/types/interfaces/registry.d.ts +0 -272
- package/src/interfaces/storagehubclient/definitions.ts +0 -7
- package/storagehub.json +0 -1
- /package/dist/{index.js → parachain/index.js} +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-consts.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-errors.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-events.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-query.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-rpc.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-tx.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/definitions.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/registry.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types-lookup.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types.js +0 -0
- /package/dist/types/{index.d.ts → parachain/index.d.ts} +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/augment-api.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/runtime.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/types.d.ts +0 -0
- /package/{src/index.ts → dist/types/solochain-evm/index.d.ts} +0 -0
- /package/{src/interfaces/definitions.ts → dist/types/solochain-evm/interfaces/definitions.d.ts} +0 -0
- /package/src/{interfaces → parachain/interfaces}/augment-api.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/runtime.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/types.ts +0 -0
|
@@ -179,13 +179,13 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
179
179
|
**/
|
|
180
180
|
BspNotConfirmed: AugmentedError<ApiType>;
|
|
181
181
|
/**
|
|
182
|
-
* BSP
|
|
182
|
+
* BSP cannot volunteer at this current tick.
|
|
183
183
|
**/
|
|
184
|
-
|
|
184
|
+
BspNotEligibleToVolunteer: AugmentedError<ApiType>;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
186
|
+
* BSP has not volunteered to store the given file.
|
|
187
187
|
**/
|
|
188
|
-
|
|
188
|
+
BspNotVolunteered: AugmentedError<ApiType>;
|
|
189
189
|
/**
|
|
190
190
|
* Action not allowed while the bucket is being moved.
|
|
191
191
|
**/
|
|
@@ -194,14 +194,30 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
194
194
|
* Bucket is not private. Call `update_bucket_privacy` to make it private.
|
|
195
195
|
**/
|
|
196
196
|
BucketIsNotPrivate: AugmentedError<ApiType>;
|
|
197
|
+
/**
|
|
198
|
+
* Bucket is not empty.
|
|
199
|
+
**/
|
|
200
|
+
BucketNotEmpty: AugmentedError<ApiType>;
|
|
197
201
|
/**
|
|
198
202
|
* Bucket does not exist
|
|
199
203
|
**/
|
|
200
204
|
BucketNotFound: AugmentedError<ApiType>;
|
|
205
|
+
/**
|
|
206
|
+
* Cannot hold the required deposit from the user
|
|
207
|
+
**/
|
|
208
|
+
CannotHoldDeposit: AugmentedError<ApiType>;
|
|
209
|
+
/**
|
|
210
|
+
* Collection ID was not found.
|
|
211
|
+
**/
|
|
212
|
+
CollectionNotFound: AugmentedError<ApiType>;
|
|
201
213
|
/**
|
|
202
214
|
* Divided by 0
|
|
203
215
|
**/
|
|
204
216
|
DividedByZero: AugmentedError<ApiType>;
|
|
217
|
+
/**
|
|
218
|
+
* Failed to fetch the dynamic-rate payment stream.
|
|
219
|
+
**/
|
|
220
|
+
DynamicRatePaymentStreamNotFound: AugmentedError<ApiType>;
|
|
205
221
|
/**
|
|
206
222
|
* Failed to verify proof: required to provide a proof of inclusion.
|
|
207
223
|
**/
|
|
@@ -210,6 +226,14 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
210
226
|
* Failed to verify proof: required to provide a proof of non-inclusion.
|
|
211
227
|
**/
|
|
212
228
|
ExpectedNonInclusionProof: AugmentedError<ApiType>;
|
|
229
|
+
/**
|
|
230
|
+
* Failed to compute file key
|
|
231
|
+
**/
|
|
232
|
+
FailedToComputeFileKey: AugmentedError<ApiType>;
|
|
233
|
+
/**
|
|
234
|
+
* Failed to create file metadata
|
|
235
|
+
**/
|
|
236
|
+
FailedToCreateFileMetadata: AugmentedError<ApiType>;
|
|
213
237
|
/**
|
|
214
238
|
* Failed to decode threshold.
|
|
215
239
|
**/
|
|
@@ -222,6 +246,18 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
222
246
|
* Failed to encode fingerprint as slice.
|
|
223
247
|
**/
|
|
224
248
|
FailedToEncodeFingerprint: AugmentedError<ApiType>;
|
|
249
|
+
/**
|
|
250
|
+
* Failed to get owner account of ID of provider
|
|
251
|
+
**/
|
|
252
|
+
FailedToGetOwnerAccount: AugmentedError<ApiType>;
|
|
253
|
+
/**
|
|
254
|
+
* Failed to get the payment account of the provider.
|
|
255
|
+
**/
|
|
256
|
+
FailedToGetPaymentAccount: AugmentedError<ApiType>;
|
|
257
|
+
/**
|
|
258
|
+
* Failed to query earliest volunteer tick
|
|
259
|
+
**/
|
|
260
|
+
FailedToQueryEarliestFileVolunteerTick: AugmentedError<ApiType>;
|
|
225
261
|
/**
|
|
226
262
|
* Failed to convert to primitive type.
|
|
227
263
|
**/
|
|
@@ -230,6 +266,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
230
266
|
* File key already pending deletion.
|
|
231
267
|
**/
|
|
232
268
|
FileKeyAlreadyPendingDeletion: AugmentedError<ApiType>;
|
|
269
|
+
/**
|
|
270
|
+
* File key computed from metadata doesn't match the provided file key.
|
|
271
|
+
**/
|
|
272
|
+
FileKeyMismatch: AugmentedError<ApiType>;
|
|
233
273
|
/**
|
|
234
274
|
* File key not found in pending deletion requests.
|
|
235
275
|
**/
|
|
@@ -242,10 +282,22 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
242
282
|
* File size cannot be zero.
|
|
243
283
|
**/
|
|
244
284
|
FileSizeCannotBeZero: AugmentedError<ApiType>;
|
|
285
|
+
/**
|
|
286
|
+
* Failed to fetch the rate for the payment stream.
|
|
287
|
+
**/
|
|
288
|
+
FixedRatePaymentStreamNotFound: AugmentedError<ApiType>;
|
|
289
|
+
/**
|
|
290
|
+
* Forest proof verification failed.
|
|
291
|
+
**/
|
|
292
|
+
ForestProofVerificationFailed: AugmentedError<ApiType>;
|
|
245
293
|
/**
|
|
246
294
|
* Failed to get value when just checked it existed.
|
|
247
295
|
**/
|
|
248
296
|
ImpossibleFailedToGetValue: AugmentedError<ApiType>;
|
|
297
|
+
/**
|
|
298
|
+
* Incomplete storage request not found.
|
|
299
|
+
**/
|
|
300
|
+
IncompleteStorageRequestNotFound: AugmentedError<ApiType>;
|
|
249
301
|
/**
|
|
250
302
|
* Key already exists in mapping when it should not.
|
|
251
303
|
**/
|
|
@@ -263,14 +315,30 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
263
315
|
**/
|
|
264
316
|
InvalidFileKeyMetadata: AugmentedError<ApiType>;
|
|
265
317
|
/**
|
|
266
|
-
*
|
|
267
|
-
* probably stop using this pallet.
|
|
318
|
+
* Invalid provider ID provided.
|
|
268
319
|
**/
|
|
269
|
-
|
|
320
|
+
InvalidProviderID: AugmentedError<ApiType>;
|
|
321
|
+
/**
|
|
322
|
+
* Invalid signature provided for file operation
|
|
323
|
+
**/
|
|
324
|
+
InvalidSignature: AugmentedError<ApiType>;
|
|
325
|
+
/**
|
|
326
|
+
* Invalid signed operation provided.
|
|
327
|
+
**/
|
|
328
|
+
InvalidSignedOperation: AugmentedError<ApiType>;
|
|
270
329
|
/**
|
|
271
330
|
* Maximum threshold cannot be zero.
|
|
272
331
|
**/
|
|
273
332
|
MaximumThresholdCannotBeZero: AugmentedError<ApiType>;
|
|
333
|
+
/**
|
|
334
|
+
* Max replication target cannot be smaller than default replication target.
|
|
335
|
+
**/
|
|
336
|
+
MaxReplicationTargetSmallerThanDefault: AugmentedError<ApiType>;
|
|
337
|
+
/**
|
|
338
|
+
* Error created in 2024. If you see this, you are well beyond the singularity and should
|
|
339
|
+
* probably stop using this pallet.
|
|
340
|
+
**/
|
|
341
|
+
MaxTickNumberReached: AugmentedError<ApiType>;
|
|
274
342
|
/**
|
|
275
343
|
* Max number of user pending deletion requests reached.
|
|
276
344
|
**/
|
|
@@ -295,10 +363,22 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
295
363
|
* Unauthorized operation, signer is not an MSP of the bucket id.
|
|
296
364
|
**/
|
|
297
365
|
MspNotStoringBucket: AugmentedError<ApiType>;
|
|
366
|
+
/**
|
|
367
|
+
* No BSP reputation weight set.
|
|
368
|
+
**/
|
|
369
|
+
NoBspReputationWeightSet: AugmentedError<ApiType>;
|
|
370
|
+
/**
|
|
371
|
+
* No file keys to confirm storing
|
|
372
|
+
**/
|
|
373
|
+
NoFileKeysToConfirm: AugmentedError<ApiType>;
|
|
298
374
|
/**
|
|
299
375
|
* No global reputation weight set.
|
|
300
376
|
**/
|
|
301
377
|
NoGlobalReputationWeightSet: AugmentedError<ApiType>;
|
|
378
|
+
/**
|
|
379
|
+
* Privacy update results in no change
|
|
380
|
+
**/
|
|
381
|
+
NoPrivacyChange: AugmentedError<ApiType>;
|
|
302
382
|
/**
|
|
303
383
|
* Account is not a BSP.
|
|
304
384
|
**/
|
|
@@ -323,6 +403,18 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
323
403
|
* The MSP is trying to confirm to store a file from a storage request is not the one selected to store it.
|
|
324
404
|
**/
|
|
325
405
|
NotSelectedMsp: AugmentedError<ApiType>;
|
|
406
|
+
/**
|
|
407
|
+
* Operations not allowed for insolvent provider
|
|
408
|
+
**/
|
|
409
|
+
OperationNotAllowedForInsolventProvider: AugmentedError<ApiType>;
|
|
410
|
+
/**
|
|
411
|
+
* Operations not allowed while bucket is not being stored by an MSP
|
|
412
|
+
**/
|
|
413
|
+
OperationNotAllowedWhileBucketIsNotStoredByMsp: AugmentedError<ApiType>;
|
|
414
|
+
/**
|
|
415
|
+
* Certain operations (such as issuing new storage requests) are not allowed when interacting with insolvent users.
|
|
416
|
+
**/
|
|
417
|
+
OperationNotAllowedWithInsolventUser: AugmentedError<ApiType>;
|
|
326
418
|
/**
|
|
327
419
|
* Pending stop storing request already exists.
|
|
328
420
|
**/
|
|
@@ -331,6 +423,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
331
423
|
* Pending stop storing request not found.
|
|
332
424
|
**/
|
|
333
425
|
PendingStopStoringRequestNotFound: AugmentedError<ApiType>;
|
|
426
|
+
/**
|
|
427
|
+
* Provider is not storing the file.
|
|
428
|
+
**/
|
|
429
|
+
ProviderNotStoringFile: AugmentedError<ApiType>;
|
|
334
430
|
/**
|
|
335
431
|
* Root of the provider not found.
|
|
336
432
|
**/
|
|
@@ -339,10 +435,18 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
339
435
|
* Replication target cannot be zero.
|
|
340
436
|
**/
|
|
341
437
|
ReplicationTargetCannotBeZero: AugmentedError<ApiType>;
|
|
438
|
+
/**
|
|
439
|
+
* BSPs required for storage request cannot exceed the maximum allowed.
|
|
440
|
+
**/
|
|
441
|
+
ReplicationTargetExceedsMaximum: AugmentedError<ApiType>;
|
|
342
442
|
/**
|
|
343
443
|
* The MSP is trying to confirm to store a file from a storage request that does not have a MSP assigned.
|
|
344
444
|
**/
|
|
345
445
|
RequestWithoutMsp: AugmentedError<ApiType>;
|
|
446
|
+
/**
|
|
447
|
+
* Root was not updated after applying delta
|
|
448
|
+
**/
|
|
449
|
+
RootNotUpdated: AugmentedError<ApiType>;
|
|
346
450
|
/**
|
|
347
451
|
* Storage request already registered for the given file.
|
|
348
452
|
**/
|
|
@@ -356,7 +460,7 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
356
460
|
**/
|
|
357
461
|
StorageRequestExists: AugmentedError<ApiType>;
|
|
358
462
|
/**
|
|
359
|
-
* No slot available found in
|
|
463
|
+
* No slot available found in ticks to insert storage request expiration time.
|
|
360
464
|
**/
|
|
361
465
|
StorageRequestExpiredNoSlotAvailable: AugmentedError<ApiType>;
|
|
362
466
|
/**
|
|
@@ -399,6 +503,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
399
503
|
* A SP tried to stop storing files from a user that was supposedly insolvent, but the user is not insolvent.
|
|
400
504
|
**/
|
|
401
505
|
UserNotInsolvent: AugmentedError<ApiType>;
|
|
506
|
+
/**
|
|
507
|
+
* The selected value proposition is not available in the MSP.
|
|
508
|
+
**/
|
|
509
|
+
ValuePropositionNotAvailable: AugmentedError<ApiType>;
|
|
402
510
|
/**
|
|
403
511
|
* Generic error
|
|
404
512
|
**/
|
|
@@ -722,6 +830,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
722
830
|
* Error thrown when failing to get the payment account of a registered Provider
|
|
723
831
|
**/
|
|
724
832
|
ProviderInconsistencyError: AugmentedError<ApiType>;
|
|
833
|
+
/**
|
|
834
|
+
* Error thrown when a charge is attempted when the provider is marked as insolvent
|
|
835
|
+
**/
|
|
836
|
+
ProviderInsolvent: AugmentedError<ApiType>;
|
|
725
837
|
/**
|
|
726
838
|
* Error thrown when trying to create a new fixed-rate payment stream with rate 0 or update the rate of an existing one to 0 (should use remove_fixed_rate_payment_stream instead)
|
|
727
839
|
**/
|
|
@@ -734,6 +846,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
734
846
|
* Error thrown when trying to update the rate of a fixed-rate payment stream to the same rate as before
|
|
735
847
|
**/
|
|
736
848
|
UpdateRateToSameRate: AugmentedError<ApiType>;
|
|
849
|
+
/**
|
|
850
|
+
* Error thrown when a user tries to clear the flag of being without funds before paying all its remaining debt
|
|
851
|
+
**/
|
|
852
|
+
UserHasRemainingDebt: AugmentedError<ApiType>;
|
|
737
853
|
/**
|
|
738
854
|
* Error thrown when a user that has not been flagged as without funds tries to use the extrinsic to pay its outstanding debt
|
|
739
855
|
**/
|
|
@@ -902,6 +1018,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
902
1018
|
* not sufficient for the challenges made.
|
|
903
1019
|
**/
|
|
904
1020
|
ForestProofVerificationFailed: AugmentedError<ApiType>;
|
|
1021
|
+
/**
|
|
1022
|
+
* The number of key proofs submitted does not match the number of keys proven in the forest proof.
|
|
1023
|
+
**/
|
|
1024
|
+
IncorrectNumberOfKeyProofs: AugmentedError<ApiType>;
|
|
905
1025
|
/**
|
|
906
1026
|
* There is at least one key proven in the forest proof, that does not have a corresponding
|
|
907
1027
|
* key proof.
|
|
@@ -954,6 +1074,11 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
954
1074
|
* The limit of Providers that can submit a proof in a single tick has been reached.
|
|
955
1075
|
**/
|
|
956
1076
|
TooManyValidProofSubmitters: AugmentedError<ApiType>;
|
|
1077
|
+
/**
|
|
1078
|
+
* After successfully applying delta for a set of mutations, the number of mutated keys is
|
|
1079
|
+
* not the same as the number of mutations expected to have been applied.
|
|
1080
|
+
**/
|
|
1081
|
+
UnexpectedNumberOfRemoveMutations: AugmentedError<ApiType>;
|
|
957
1082
|
/**
|
|
958
1083
|
* Provider is submitting a proof when they have a zero root.
|
|
959
1084
|
* Providers with zero roots are not providing any service, so they should not be
|
|
@@ -978,18 +1103,64 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
978
1103
|
* Error thrown when a bucket ID could not be added to the list of buckets of a MSP.
|
|
979
1104
|
**/
|
|
980
1105
|
AppendBucketToMspFailed: AugmentedError<ApiType>;
|
|
1106
|
+
/**
|
|
1107
|
+
* An operation dedicated to BSPs only
|
|
1108
|
+
**/
|
|
1109
|
+
BspOnlyOperation: AugmentedError<ApiType>;
|
|
981
1110
|
/**
|
|
982
1111
|
* Error thrown when a bucket ID already exists in storage.
|
|
983
1112
|
**/
|
|
984
1113
|
BucketAlreadyExists: AugmentedError<ApiType>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Error thrown when a bucket has no value proposition.
|
|
1116
|
+
**/
|
|
1117
|
+
BucketHasNoValueProposition: AugmentedError<ApiType>;
|
|
1118
|
+
/**
|
|
1119
|
+
* Error thrown when an operation requires an MSP to be storing the bucket.
|
|
1120
|
+
**/
|
|
1121
|
+
BucketMustHaveMspForOperation: AugmentedError<ApiType>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Bucket cannot be deleted because it is not empty.
|
|
1124
|
+
**/
|
|
1125
|
+
BucketNotEmpty: AugmentedError<ApiType>;
|
|
985
1126
|
/**
|
|
986
1127
|
* Error thrown when a bucket ID is not found in storage.
|
|
987
1128
|
**/
|
|
988
1129
|
BucketNotFound: AugmentedError<ApiType>;
|
|
1130
|
+
/**
|
|
1131
|
+
* Error thrown when a user exceeded the bucket data limit based on the associated value proposition.
|
|
1132
|
+
**/
|
|
1133
|
+
BucketSizeExceedsLimit: AugmentedError<ApiType>;
|
|
1134
|
+
/**
|
|
1135
|
+
* Error thrown when, after moving all buckets of a MSP when removing it from the system, the amount doesn't match the expected value.
|
|
1136
|
+
**/
|
|
1137
|
+
BucketsMovedAmountMismatch: AugmentedError<ApiType>;
|
|
989
1138
|
/**
|
|
990
1139
|
* Error thrown when the runtime cannot hold the required deposit from the account to register it as a SP or change its capacity.
|
|
991
1140
|
**/
|
|
992
1141
|
CannotHoldDeposit: AugmentedError<ApiType>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Cannot stop BSP cycles without a default root
|
|
1144
|
+
**/
|
|
1145
|
+
CannotStopCycleWithNonDefaultRoot: AugmentedError<ApiType>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Error thrown when a MSP tries to deactivate its last value proposition.
|
|
1148
|
+
**/
|
|
1149
|
+
CantDeactivateLastValueProp: AugmentedError<ApiType>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Failed to delete a provider due to conditions not being met.
|
|
1152
|
+
*
|
|
1153
|
+
* Call `can_delete_provider` runtime API to check if the provider can be deleted.
|
|
1154
|
+
**/
|
|
1155
|
+
DeleteProviderConditionsNotMet: AugmentedError<ApiType>;
|
|
1156
|
+
/**
|
|
1157
|
+
* Deposit too low to determine capacity.
|
|
1158
|
+
**/
|
|
1159
|
+
DepositTooLow: AugmentedError<ApiType>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Error thrown when a fixed payment stream is not found.
|
|
1162
|
+
**/
|
|
1163
|
+
FixedRatePaymentStreamNotFound: AugmentedError<ApiType>;
|
|
993
1164
|
/**
|
|
994
1165
|
* Error thrown when failing to decode the owner Account ID from the received metadata.
|
|
995
1166
|
**/
|
|
@@ -1002,6 +1173,34 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
1002
1173
|
* Error thrown when a user tries to sign up as a SP but any of the provided multiaddresses is invalid.
|
|
1003
1174
|
**/
|
|
1004
1175
|
InvalidMultiAddress: AugmentedError<ApiType>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Error thrown when a Provider tries to remove the last MultiAddress from its account.
|
|
1178
|
+
**/
|
|
1179
|
+
LastMultiAddressCantBeRemoved: AugmentedError<ApiType>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Congratulations, you either lived long enough or were born late enough to see this error.
|
|
1182
|
+
**/
|
|
1183
|
+
MaxBlockNumberReached: AugmentedError<ApiType>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Error thrown when changing the MSP of a bucket to the same assigned MSP.
|
|
1186
|
+
**/
|
|
1187
|
+
MspAlreadyAssignedToBucket: AugmentedError<ApiType>;
|
|
1188
|
+
/**
|
|
1189
|
+
* An operation dedicated to MSPs only
|
|
1190
|
+
**/
|
|
1191
|
+
MspOnlyOperation: AugmentedError<ApiType>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Error thrown when a Provider tries to add a new MultiAddress to its account but it already exists.
|
|
1194
|
+
**/
|
|
1195
|
+
MultiAddressAlreadyExists: AugmentedError<ApiType>;
|
|
1196
|
+
/**
|
|
1197
|
+
* Error thrown when a Provider tries to add a new MultiAddress to its account but it already has the maximum amount of multiaddresses.
|
|
1198
|
+
**/
|
|
1199
|
+
MultiAddressesMaxAmountReached: AugmentedError<ApiType>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Error thrown when a Provider tries to delete a MultiAddress from its account but it does not have that MultiAddress.
|
|
1202
|
+
**/
|
|
1203
|
+
MultiAddressNotFound: AugmentedError<ApiType>;
|
|
1005
1204
|
/**
|
|
1006
1205
|
* Error thrown when a user tries to change its capacity to zero (there are specific extrinsics to sign off as a SP).
|
|
1007
1206
|
**/
|
|
@@ -1042,6 +1241,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
1042
1241
|
* Error thrown when trying to get a root from a MSP without passing a User ID.
|
|
1043
1242
|
**/
|
|
1044
1243
|
NoUserId: AugmentedError<ApiType>;
|
|
1244
|
+
/**
|
|
1245
|
+
* Operation not allowed for insolvent provider
|
|
1246
|
+
**/
|
|
1247
|
+
OperationNotAllowedForInsolventProvider: AugmentedError<ApiType>;
|
|
1045
1248
|
/**
|
|
1046
1249
|
* Error thrown when trying to update a payment stream that does not exist.
|
|
1047
1250
|
**/
|
|
@@ -1054,6 +1257,10 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
1054
1257
|
* Error thrown when a user tries to confirm a sign up but the randomness is too fresh to be used yet.
|
|
1055
1258
|
**/
|
|
1056
1259
|
RandomnessNotValidYet: AugmentedError<ApiType>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Error thrown when a user tries to sign off as a BSP but the sign off period has not passed yet.
|
|
1262
|
+
**/
|
|
1263
|
+
SignOffPeriodNotPassed: AugmentedError<ApiType>;
|
|
1057
1264
|
/**
|
|
1058
1265
|
* Error thrown when a user tries to confirm a sign up that was not requested previously.
|
|
1059
1266
|
**/
|
|
@@ -1078,6 +1285,26 @@ declare module "@polkadot/api-base/types/errors" {
|
|
|
1078
1285
|
* Error thrown when a user tries to sign up or change its capacity to store less storage than the minimum required by the runtime.
|
|
1079
1286
|
**/
|
|
1080
1287
|
StorageTooLow: AugmentedError<ApiType>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Error thrown when a provider attempts to top up their deposit when not required.
|
|
1290
|
+
**/
|
|
1291
|
+
TopUpNotRequired: AugmentedError<ApiType>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Error thrown when value proposition under a given id already exists.
|
|
1294
|
+
**/
|
|
1295
|
+
ValuePropositionAlreadyExists: AugmentedError<ApiType>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Error thrown when a value proposition is not available.
|
|
1298
|
+
**/
|
|
1299
|
+
ValuePropositionNotAvailable: AugmentedError<ApiType>;
|
|
1300
|
+
/**
|
|
1301
|
+
* Error thrown when the value proposition id is not found.
|
|
1302
|
+
**/
|
|
1303
|
+
ValuePropositionNotFound: AugmentedError<ApiType>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Error thrown when, after deleting all value propositions of a MSP when removing it from the system, the amount doesn't match the expected value.
|
|
1306
|
+
**/
|
|
1307
|
+
ValuePropositionsDeletedAmountMismatch: AugmentedError<ApiType>;
|
|
1081
1308
|
/**
|
|
1082
1309
|
* Generic error
|
|
1083
1310
|
**/
|