@storagehub/api-augment 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.
Files changed (86) hide show
  1. package/README.md +54 -0
  2. package/biome.json +10 -0
  3. package/dist/index.js +4 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/interfaces/augment-api-consts.js +6 -0
  6. package/dist/interfaces/augment-api-consts.js.map +1 -0
  7. package/dist/interfaces/augment-api-errors.js +6 -0
  8. package/dist/interfaces/augment-api-errors.js.map +1 -0
  9. package/dist/interfaces/augment-api-events.js +6 -0
  10. package/dist/interfaces/augment-api-events.js.map +1 -0
  11. package/dist/interfaces/augment-api-query.js +6 -0
  12. package/dist/interfaces/augment-api-query.js.map +1 -0
  13. package/dist/interfaces/augment-api-rpc.js +6 -0
  14. package/dist/interfaces/augment-api-rpc.js.map +1 -0
  15. package/dist/interfaces/augment-api-runtime.js +6 -0
  16. package/dist/interfaces/augment-api-runtime.js.map +1 -0
  17. package/dist/interfaces/augment-api-tx.js +6 -0
  18. package/dist/interfaces/augment-api-tx.js.map +1 -0
  19. package/dist/interfaces/augment-api.js +10 -0
  20. package/dist/interfaces/augment-api.js.map +1 -0
  21. package/dist/interfaces/augment-types.js +6 -0
  22. package/dist/interfaces/augment-types.js.map +1 -0
  23. package/dist/interfaces/definitions.js +2 -0
  24. package/dist/interfaces/definitions.js.map +1 -0
  25. package/dist/interfaces/index.js +4 -0
  26. package/dist/interfaces/index.js.map +1 -0
  27. package/dist/interfaces/lookup.js +4504 -0
  28. package/dist/interfaces/lookup.js.map +1 -0
  29. package/dist/interfaces/registry.js +6 -0
  30. package/dist/interfaces/registry.js.map +1 -0
  31. package/dist/interfaces/storagehubclient/definitions.js +7 -0
  32. package/dist/interfaces/storagehubclient/definitions.js.map +1 -0
  33. package/dist/interfaces/storagehubclient/index.js +4 -0
  34. package/dist/interfaces/storagehubclient/index.js.map +1 -0
  35. package/dist/interfaces/storagehubclient/runtime.js +152 -0
  36. package/dist/interfaces/storagehubclient/runtime.js.map +1 -0
  37. package/dist/interfaces/storagehubclient/types.js +4 -0
  38. package/dist/interfaces/storagehubclient/types.js.map +1 -0
  39. package/dist/interfaces/types-lookup.js +6 -0
  40. package/dist/interfaces/types-lookup.js.map +1 -0
  41. package/dist/interfaces/types.js +4 -0
  42. package/dist/interfaces/types.js.map +1 -0
  43. package/dist/types/index.d.ts +3 -0
  44. package/dist/types/interfaces/augment-api-consts.d.ts +556 -0
  45. package/dist/types/interfaces/augment-api-errors.d.ts +1195 -0
  46. package/dist/types/interfaces/augment-api-events.d.ts +2070 -0
  47. package/dist/types/interfaces/augment-api-query.d.ts +1439 -0
  48. package/dist/types/interfaces/augment-api-rpc.d.ts +718 -0
  49. package/dist/types/interfaces/augment-api-runtime.d.ts +441 -0
  50. package/dist/types/interfaces/augment-api-tx.d.ts +3039 -0
  51. package/dist/types/interfaces/augment-api.d.ts +7 -0
  52. package/dist/types/interfaces/augment-types.d.ts +1285 -0
  53. package/dist/types/interfaces/definitions.d.ts +1 -0
  54. package/dist/types/interfaces/index.d.ts +1 -0
  55. package/dist/types/interfaces/lookup.d.ts +4179 -0
  56. package/dist/types/interfaces/registry.d.ts +272 -0
  57. package/dist/types/interfaces/storagehubclient/definitions.d.ts +6 -0
  58. package/dist/types/interfaces/storagehubclient/index.d.ts +1 -0
  59. package/dist/types/interfaces/storagehubclient/runtime.d.ts +2 -0
  60. package/dist/types/interfaces/storagehubclient/types.d.ts +198 -0
  61. package/dist/types/interfaces/types-lookup.d.ts +4457 -0
  62. package/dist/types/interfaces/types.d.ts +1 -0
  63. package/package.json +38 -0
  64. package/scripts/scrapeMetadata.ts +77 -0
  65. package/src/index.ts +3 -0
  66. package/src/interfaces/augment-api-consts.ts +570 -0
  67. package/src/interfaces/augment-api-errors.ts +1203 -0
  68. package/src/interfaces/augment-api-events.ts +1836 -0
  69. package/src/interfaces/augment-api-query.ts +1975 -0
  70. package/src/interfaces/augment-api-rpc.ts +1201 -0
  71. package/src/interfaces/augment-api-runtime.ts +707 -0
  72. package/src/interfaces/augment-api-tx.ts +3418 -0
  73. package/src/interfaces/augment-api.ts +10 -0
  74. package/src/interfaces/augment-types.ts +2508 -0
  75. package/src/interfaces/definitions.ts +1 -0
  76. package/src/interfaces/index.ts +4 -0
  77. package/src/interfaces/lookup.ts +4511 -0
  78. package/src/interfaces/registry.ts +546 -0
  79. package/src/interfaces/storagehubclient/definitions.ts +7 -0
  80. package/src/interfaces/storagehubclient/index.ts +4 -0
  81. package/src/interfaces/storagehubclient/runtime.ts +156 -0
  82. package/src/interfaces/storagehubclient/types.ts +241 -0
  83. package/src/interfaces/types-lookup.ts +5623 -0
  84. package/src/interfaces/types.ts +4 -0
  85. package/storagehub.json +1 -0
  86. package/tsconfig.json +22 -0
@@ -0,0 +1,707 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+
4
+ // import type lookup before we augment - in some environments
5
+ // this is required to allow for ambient/previous definitions
6
+ import "@polkadot/api-base/types/calls";
7
+
8
+ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from "@polkadot/api-base/types";
9
+ import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from "@polkadot/types-codec";
10
+ import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
11
+ import type { CheckInherentsResult, InherentData } from "@polkadot/types/interfaces/blockbuilder";
12
+ import type { BlockHash } from "@polkadot/types/interfaces/chain";
13
+ import type { AuthorityId } from "@polkadot/types/interfaces/consensus";
14
+ import type { CollationInfo } from "@polkadot/types/interfaces/cumulus";
15
+ import type { Extrinsic } from "@polkadot/types/interfaces/extrinsics";
16
+ import type { GenesisBuildErr } from "@polkadot/types/interfaces/genesisBuilder";
17
+ import type { OpaqueMetadata } from "@polkadot/types/interfaces/metadata";
18
+ import type { FeeDetails, RuntimeDispatchInfo } from "@polkadot/types/interfaces/payment";
19
+ import type {
20
+ AccountId,
21
+ Balance,
22
+ Block,
23
+ BlockNumber,
24
+ Call,
25
+ ExtrinsicInclusionMode,
26
+ H256,
27
+ Header,
28
+ Index,
29
+ KeyTypeId,
30
+ Slot,
31
+ SlotDuration,
32
+ Weight,
33
+ WeightV2
34
+ } from "@polkadot/types/interfaces/runtime";
35
+ import type { RuntimeVersion } from "@polkadot/types/interfaces/state";
36
+ import type { ApplyExtrinsicResult, Key } from "@polkadot/types/interfaces/system";
37
+ import type { TransactionSource, TransactionValidity } from "@polkadot/types/interfaces/txqueue";
38
+ import type { XcmPaymentApiError } from "@polkadot/types/interfaces/xcmPaymentApi";
39
+ import type { Error } from "@polkadot/types/interfaces/xcmRuntimeApi";
40
+ import type {
41
+ XcmVersionedAssetId,
42
+ XcmVersionedLocation,
43
+ XcmVersionedXcm
44
+ } from "@polkadot/types/lookup";
45
+ import type { IExtrinsic, Observable } from "@polkadot/types/types";
46
+ import type {
47
+ BackupStorageProvider,
48
+ BackupStorageProviderId,
49
+ ChunkId,
50
+ GetBspInfoError,
51
+ GetChallengePeriodError,
52
+ GetChallengeSeedError,
53
+ GetCheckpointChallengesError,
54
+ GetLastTickProviderSubmittedProofError,
55
+ GetNextDeadlineTickError,
56
+ GetUsersWithDebtOverThresholdError,
57
+ MainStorageProviderId,
58
+ Multiaddresses,
59
+ ProviderId,
60
+ QueryAvailableStorageCapacityError,
61
+ QueryBspConfirmChunksToProveForFileError,
62
+ QueryEarliestChangeCapacityBlockError,
63
+ QueryFileEarliestVolunteerBlockError,
64
+ QueryMspConfirmChunksToProveForFileError,
65
+ QueryMspIdOfBucketIdError,
66
+ QueryProviderMultiaddressesError,
67
+ QueryStorageProviderCapacityError,
68
+ RandomnessOutput,
69
+ StorageDataUnit,
70
+ StorageProviderId,
71
+ TrieRemoveMutation
72
+ } from "@storagehub/api-augment/interfaces/storagehubclient";
73
+
74
+ export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
75
+ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
76
+
77
+ declare module "@polkadot/api-base/types/calls" {
78
+ interface AugmentedCalls<ApiType extends ApiTypes> {
79
+ /** 0xbc9d89904f5b923f/1 */
80
+ accountNonceApi: {
81
+ /**
82
+ * The API to query account nonce (aka transaction index)
83
+ **/
84
+ accountNonce: AugmentedCall<
85
+ ApiType,
86
+ (accountId: AccountId | string | Uint8Array) => Observable<Index>
87
+ >;
88
+ /**
89
+ * Generic call
90
+ **/
91
+ [key: string]: DecoratedCallBase<ApiType>;
92
+ };
93
+ /** 0xdd718d5cc53262d4/1 */
94
+ auraApi: {
95
+ /**
96
+ * Return the current set of authorities.
97
+ **/
98
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
99
+ /**
100
+ * Returns the slot duration for Aura.
101
+ **/
102
+ slotDuration: AugmentedCall<ApiType, () => Observable<SlotDuration>>;
103
+ /**
104
+ * Generic call
105
+ **/
106
+ [key: string]: DecoratedCallBase<ApiType>;
107
+ };
108
+ /** 0xd7bdd8a272ca0d65/1 */
109
+ auraUnincludedSegmentApi: {
110
+ /**
111
+ * Whether it is legal to extend the chain
112
+ **/
113
+ canBuildUpon: AugmentedCall<
114
+ ApiType,
115
+ (
116
+ includedHash: BlockHash | string | Uint8Array,
117
+ slot: Slot | AnyNumber | Uint8Array
118
+ ) => Observable<bool>
119
+ >;
120
+ /**
121
+ * Generic call
122
+ **/
123
+ [key: string]: DecoratedCallBase<ApiType>;
124
+ };
125
+ /** 0x40fe3ad401f8959a/6 */
126
+ blockBuilder: {
127
+ /**
128
+ * Apply the given extrinsic.
129
+ **/
130
+ applyExtrinsic: AugmentedCall<
131
+ ApiType,
132
+ (
133
+ extrinsic: Extrinsic | IExtrinsic | string | Uint8Array
134
+ ) => Observable<ApplyExtrinsicResult>
135
+ >;
136
+ /**
137
+ * Check that the inherents are valid.
138
+ **/
139
+ checkInherents: AugmentedCall<
140
+ ApiType,
141
+ (
142
+ block: Block | { header?: any; extrinsics?: any } | string | Uint8Array,
143
+ data: InherentData | { data?: any } | string | Uint8Array
144
+ ) => Observable<CheckInherentsResult>
145
+ >;
146
+ /**
147
+ * Finish the current block.
148
+ **/
149
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
150
+ /**
151
+ * Generate inherent extrinsics.
152
+ **/
153
+ inherentExtrinsics: AugmentedCall<
154
+ ApiType,
155
+ (
156
+ inherent: InherentData | { data?: any } | string | Uint8Array
157
+ ) => Observable<Vec<Extrinsic>>
158
+ >;
159
+ /**
160
+ * Generic call
161
+ **/
162
+ [key: string]: DecoratedCallBase<ApiType>;
163
+ };
164
+ /** 0xea93e3f16f3d6962/2 */
165
+ collectCollationInfo: {
166
+ /**
167
+ * Collect information about a collation.
168
+ **/
169
+ collectCollationInfo: AugmentedCall<
170
+ ApiType,
171
+ (
172
+ header:
173
+ | Header
174
+ | {
175
+ parentHash?: any;
176
+ number?: any;
177
+ stateRoot?: any;
178
+ extrinsicsRoot?: any;
179
+ digest?: any;
180
+ }
181
+ | string
182
+ | Uint8Array
183
+ ) => Observable<CollationInfo>
184
+ >;
185
+ /**
186
+ * Generic call
187
+ **/
188
+ [key: string]: DecoratedCallBase<ApiType>;
189
+ };
190
+ /** 0xdf6acb689907609b/5 */
191
+ core: {
192
+ /**
193
+ * Execute the given block.
194
+ **/
195
+ executeBlock: AugmentedCall<
196
+ ApiType,
197
+ (
198
+ block: Block | { header?: any; extrinsics?: any } | string | Uint8Array
199
+ ) => Observable<Null>
200
+ >;
201
+ /**
202
+ * Initialize a block with the given header.
203
+ **/
204
+ initializeBlock: AugmentedCall<
205
+ ApiType,
206
+ (
207
+ header:
208
+ | Header
209
+ | {
210
+ parentHash?: any;
211
+ number?: any;
212
+ stateRoot?: any;
213
+ extrinsicsRoot?: any;
214
+ digest?: any;
215
+ }
216
+ | string
217
+ | Uint8Array
218
+ ) => Observable<ExtrinsicInclusionMode>
219
+ >;
220
+ /**
221
+ * Returns the version of the runtime.
222
+ **/
223
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
224
+ /**
225
+ * Generic call
226
+ **/
227
+ [key: string]: DecoratedCallBase<ApiType>;
228
+ };
229
+ /** 0xb9e7717ace5b45cd/1 */
230
+ fileSystemApi: {
231
+ /**
232
+ * Query the chunks that a BSP needs to prove to confirm that it is storing a file.
233
+ **/
234
+ queryBspConfirmChunksToProveForFile: AugmentedCall<
235
+ ApiType,
236
+ (
237
+ bspId: BackupStorageProviderId | string | Uint8Array,
238
+ fileKey: H256 | string | Uint8Array
239
+ ) => Observable<Result<Vec<ChunkId>, QueryBspConfirmChunksToProveForFileError>>
240
+ >;
241
+ /**
242
+ * Query the earliest tick number that a BSP can volunteer for a file.
243
+ **/
244
+ queryEarliestFileVolunteerTick: AugmentedCall<
245
+ ApiType,
246
+ (
247
+ bspId: BackupStorageProviderId | string | Uint8Array,
248
+ fileKey: H256 | string | Uint8Array
249
+ ) => Observable<Result<BlockNumber, QueryFileEarliestVolunteerBlockError>>
250
+ >;
251
+ /**
252
+ * Query the chunks that a MSP needs to prove to confirm that it is storing a file.
253
+ **/
254
+ queryMspConfirmChunksToProveForFile: AugmentedCall<
255
+ ApiType,
256
+ (
257
+ mspId: MainStorageProviderId | string | Uint8Array,
258
+ fileKey: H256 | string | Uint8Array
259
+ ) => Observable<Result<Vec<ChunkId>, QueryMspConfirmChunksToProveForFileError>>
260
+ >;
261
+ /**
262
+ * Generic call
263
+ **/
264
+ [key: string]: DecoratedCallBase<ApiType>;
265
+ };
266
+ /** 0xfbc577b9d747efd6/1 */
267
+ genesisBuilder: {
268
+ /**
269
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
270
+ **/
271
+ buildConfig: AugmentedCall<
272
+ ApiType,
273
+ (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>
274
+ >;
275
+ /**
276
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
277
+ **/
278
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
279
+ /**
280
+ * Generic call
281
+ **/
282
+ [key: string]: DecoratedCallBase<ApiType>;
283
+ };
284
+ /** 0x9ffb505aa738d69c/1 */
285
+ locationToAccountApi: {
286
+ /**
287
+ * Converts `Location` to `AccountId`
288
+ **/
289
+ convertLocation: AugmentedCall<
290
+ ApiType,
291
+ (
292
+ location:
293
+ | XcmVersionedLocation
294
+ | { V2: any }
295
+ | { V3: any }
296
+ | { V4: any }
297
+ | string
298
+ | Uint8Array
299
+ ) => Observable<Result<AccountId, Error>>
300
+ >;
301
+ /**
302
+ * Generic call
303
+ **/
304
+ [key: string]: DecoratedCallBase<ApiType>;
305
+ };
306
+ /** 0x37e397fc7c91f5e4/2 */
307
+ metadata: {
308
+ /**
309
+ * Returns the metadata of a runtime
310
+ **/
311
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
312
+ /**
313
+ * Returns the metadata at a given version.
314
+ **/
315
+ metadataAtVersion: AugmentedCall<
316
+ ApiType,
317
+ (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>
318
+ >;
319
+ /**
320
+ * Returns the supported metadata versions.
321
+ **/
322
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
323
+ /**
324
+ * Generic call
325
+ **/
326
+ [key: string]: DecoratedCallBase<ApiType>;
327
+ };
328
+ /** 0xf78b278be53f454c/2 */
329
+ offchainWorkerApi: {
330
+ /**
331
+ * Starts the off-chain task for given block header.
332
+ **/
333
+ offchainWorker: AugmentedCall<
334
+ ApiType,
335
+ (
336
+ header:
337
+ | Header
338
+ | {
339
+ parentHash?: any;
340
+ number?: any;
341
+ stateRoot?: any;
342
+ extrinsicsRoot?: any;
343
+ digest?: any;
344
+ }
345
+ | string
346
+ | Uint8Array
347
+ ) => Observable<Null>
348
+ >;
349
+ /**
350
+ * Generic call
351
+ **/
352
+ [key: string]: DecoratedCallBase<ApiType>;
353
+ };
354
+ /** 0x1078d7ac24a07b0e/1 */
355
+ paymentStreamsApi: {
356
+ /**
357
+ * Get the payment streams of a provider.
358
+ **/
359
+ getUsersOfPaymentStreamsOfProvider: AugmentedCall<
360
+ ApiType,
361
+ (providerId: ProviderId | string | Uint8Array) => Observable<Vec<AccountId>>
362
+ >;
363
+ /**
364
+ * Get the users that have a debt to the provider greater than the threshold.
365
+ **/
366
+ getUsersWithDebtOverThreshold: AugmentedCall<
367
+ ApiType,
368
+ (
369
+ providerId: ProviderId | string | Uint8Array,
370
+ threshold: Balance | AnyNumber | Uint8Array
371
+ ) => Observable<Result<Vec<AccountId>, GetUsersWithDebtOverThresholdError>>
372
+ >;
373
+ /**
374
+ * Generic call
375
+ **/
376
+ [key: string]: DecoratedCallBase<ApiType>;
377
+ };
378
+ /** 0x0be7208954c7c6c9/1 */
379
+ proofsDealerApi: {
380
+ /**
381
+ * Get the challenge period for a given Provider.
382
+ **/
383
+ getChallengePeriod: AugmentedCall<
384
+ ApiType,
385
+ (
386
+ providerId: ProviderId | string | Uint8Array
387
+ ) => Observable<Result<BlockNumber, GetChallengePeriodError>>
388
+ >;
389
+ /**
390
+ * Get the seed for a given challenge tick.
391
+ **/
392
+ getChallengeSeed: AugmentedCall<
393
+ ApiType,
394
+ (
395
+ tick: BlockNumber | AnyNumber | Uint8Array
396
+ ) => Observable<Result<RandomnessOutput, GetChallengeSeedError>>
397
+ >;
398
+ /**
399
+ * Get challenges from a seed.
400
+ **/
401
+ getChallengesFromSeed: AugmentedCall<
402
+ ApiType,
403
+ (
404
+ seed: RandomnessOutput | string | Uint8Array,
405
+ providerId: ProviderId | string | Uint8Array,
406
+ count: u32 | AnyNumber | Uint8Array
407
+ ) => Observable<Vec<Key>>
408
+ >;
409
+ /**
410
+ * Get the checkpoint challenge period.
411
+ **/
412
+ getCheckpointChallengePeriod: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
413
+ /**
414
+ * Get checkpoint challenges for a given block.
415
+ **/
416
+ getCheckpointChallenges: AugmentedCall<
417
+ ApiType,
418
+ (
419
+ tick: BlockNumber | AnyNumber | Uint8Array
420
+ ) => Observable<
421
+ Result<Vec<ITuple<[Key, Option<TrieRemoveMutation>]>>, GetCheckpointChallengesError>
422
+ >
423
+ >;
424
+ /**
425
+ * Get the current tick.
426
+ **/
427
+ getCurrentTick: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
428
+ /**
429
+ * Get forest challenges from a seed.
430
+ **/
431
+ getForestChallengesFromSeed: AugmentedCall<
432
+ ApiType,
433
+ (
434
+ seed: RandomnessOutput | string | Uint8Array,
435
+ providerId: ProviderId | string | Uint8Array
436
+ ) => Observable<Vec<Key>>
437
+ >;
438
+ /**
439
+ * Get the last checkpoint challenge tick.
440
+ **/
441
+ getLastCheckpointChallengeTick: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
442
+ /**
443
+ * Get the last tick for which the submitter submitted a proof.
444
+ **/
445
+ getLastTickProviderSubmittedProof: AugmentedCall<
446
+ ApiType,
447
+ (
448
+ providerId: ProviderId | string | Uint8Array
449
+ ) => Observable<Result<BlockNumber, GetLastTickProviderSubmittedProofError>>
450
+ >;
451
+ /**
452
+ * Get the next deadline tick.
453
+ **/
454
+ getNextDeadlineTick: AugmentedCall<
455
+ ApiType,
456
+ (
457
+ providerId: ProviderId | string | Uint8Array
458
+ ) => Observable<Result<BlockNumber, GetNextDeadlineTickError>>
459
+ >;
460
+ /**
461
+ * Generic call
462
+ **/
463
+ [key: string]: DecoratedCallBase<ApiType>;
464
+ };
465
+ /** 0xab3c0572291feb8b/1 */
466
+ sessionKeys: {
467
+ /**
468
+ * Decode the given public session keys.
469
+ **/
470
+ decodeSessionKeys: AugmentedCall<
471
+ ApiType,
472
+ (
473
+ encoded: Bytes | string | Uint8Array
474
+ ) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>
475
+ >;
476
+ /**
477
+ * Generate a set of session keys with optionally using the given seed.
478
+ **/
479
+ generateSessionKeys: AugmentedCall<
480
+ ApiType,
481
+ (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>
482
+ >;
483
+ /**
484
+ * Generic call
485
+ **/
486
+ [key: string]: DecoratedCallBase<ApiType>;
487
+ };
488
+ /** 0x966604ffe78eb092/1 */
489
+ storageProvidersApi: {
490
+ /**
491
+ * Get the BSP info for a given BSP ID.
492
+ **/
493
+ getBspInfo: AugmentedCall<
494
+ ApiType,
495
+ (
496
+ bspId: BackupStorageProviderId | string | Uint8Array
497
+ ) => Observable<Result<BackupStorageProvider, GetBspInfoError>>
498
+ >;
499
+ /**
500
+ * Get the slashable amount corresponding to the configured max file size.
501
+ **/
502
+ getSlashAmountPerMaxFileSize: AugmentedCall<ApiType, () => Observable<Balance>>;
503
+ /**
504
+ * Get the Storage Provider ID for a given Account ID.
505
+ **/
506
+ getStorageProviderId: AugmentedCall<
507
+ ApiType,
508
+ (who: AccountId | string | Uint8Array) => Observable<Option<StorageProviderId>>
509
+ >;
510
+ /**
511
+ * Get the worst case scenario slashable amount for a provider.
512
+ **/
513
+ getWorstCaseScenarioSlashableAmount: AugmentedCall<
514
+ ApiType,
515
+ (providerId: ProviderId | string | Uint8Array) => Observable<Option<Balance>>
516
+ >;
517
+ /**
518
+ * Query the available storage capacity.
519
+ **/
520
+ queryAvailableStorageCapacity: AugmentedCall<
521
+ ApiType,
522
+ (
523
+ providerId: ProviderId | string | Uint8Array
524
+ ) => Observable<Result<StorageDataUnit, QueryAvailableStorageCapacityError>>
525
+ >;
526
+ /**
527
+ * Query the earliest block number that a BSP can change its capacity.
528
+ **/
529
+ queryEarliestChangeCapacityBlock: AugmentedCall<
530
+ ApiType,
531
+ (
532
+ providerId: BackupStorageProviderId | string | Uint8Array
533
+ ) => Observable<Result<BlockNumber, QueryEarliestChangeCapacityBlockError>>
534
+ >;
535
+ /**
536
+ * Query the MSP ID of a bucket ID.
537
+ **/
538
+ queryMspIdOfBucketId: AugmentedCall<
539
+ ApiType,
540
+ (
541
+ bucketId: H256 | string | Uint8Array
542
+ ) => Observable<Result<ProviderId, QueryMspIdOfBucketIdError>>
543
+ >;
544
+ /**
545
+ * Query the provider's multiaddresses.
546
+ **/
547
+ queryProviderMultiaddresses: AugmentedCall<
548
+ ApiType,
549
+ (
550
+ providerId: ProviderId | string | Uint8Array
551
+ ) => Observable<Result<Multiaddresses, QueryProviderMultiaddressesError>>
552
+ >;
553
+ /**
554
+ * Query the storage provider capacity.
555
+ **/
556
+ queryStorageProviderCapacity: AugmentedCall<
557
+ ApiType,
558
+ (
559
+ providerId: ProviderId | string | Uint8Array
560
+ ) => Observable<Result<StorageDataUnit, QueryStorageProviderCapacityError>>
561
+ >;
562
+ /**
563
+ * Generic call
564
+ **/
565
+ [key: string]: DecoratedCallBase<ApiType>;
566
+ };
567
+ /** 0xd2bc9897eed08f15/3 */
568
+ taggedTransactionQueue: {
569
+ /**
570
+ * Validate the transaction.
571
+ **/
572
+ validateTransaction: AugmentedCall<
573
+ ApiType,
574
+ (
575
+ source: TransactionSource | "InBlock" | "Local" | "External" | number | Uint8Array,
576
+ tx: Extrinsic | IExtrinsic | string | Uint8Array,
577
+ blockHash: BlockHash | string | Uint8Array
578
+ ) => Observable<TransactionValidity>
579
+ >;
580
+ /**
581
+ * Generic call
582
+ **/
583
+ [key: string]: DecoratedCallBase<ApiType>;
584
+ };
585
+ /** 0x37c8bb1350a9a2a8/4 */
586
+ transactionPaymentApi: {
587
+ /**
588
+ * The transaction fee details
589
+ **/
590
+ queryFeeDetails: AugmentedCall<
591
+ ApiType,
592
+ (
593
+ uxt: Extrinsic | IExtrinsic | string | Uint8Array,
594
+ len: u32 | AnyNumber | Uint8Array
595
+ ) => Observable<FeeDetails>
596
+ >;
597
+ /**
598
+ * The transaction info
599
+ **/
600
+ queryInfo: AugmentedCall<
601
+ ApiType,
602
+ (
603
+ uxt: Extrinsic | IExtrinsic | string | Uint8Array,
604
+ len: u32 | AnyNumber | Uint8Array
605
+ ) => Observable<RuntimeDispatchInfo>
606
+ >;
607
+ /**
608
+ * Query the output of the current LengthToFee given some input
609
+ **/
610
+ queryLengthToFee: AugmentedCall<
611
+ ApiType,
612
+ (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
613
+ >;
614
+ /**
615
+ * Query the output of the current WeightToFee given some input
616
+ **/
617
+ queryWeightToFee: AugmentedCall<
618
+ ApiType,
619
+ (
620
+ weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array
621
+ ) => Observable<Balance>
622
+ >;
623
+ /**
624
+ * Generic call
625
+ **/
626
+ [key: string]: DecoratedCallBase<ApiType>;
627
+ };
628
+ /** 0xf3ff14d5ab527059/3 */
629
+ transactionPaymentCallApi: {
630
+ /**
631
+ * The call fee details
632
+ **/
633
+ queryCallFeeDetails: AugmentedCall<
634
+ ApiType,
635
+ (
636
+ call: Call | IMethod | string | Uint8Array,
637
+ len: u32 | AnyNumber | Uint8Array
638
+ ) => Observable<FeeDetails>
639
+ >;
640
+ /**
641
+ * The call info
642
+ **/
643
+ queryCallInfo: AugmentedCall<
644
+ ApiType,
645
+ (
646
+ call: Call | IMethod | string | Uint8Array,
647
+ len: u32 | AnyNumber | Uint8Array
648
+ ) => Observable<RuntimeDispatchInfo>
649
+ >;
650
+ /**
651
+ * Query the output of the current LengthToFee given some input
652
+ **/
653
+ queryLengthToFee: AugmentedCall<
654
+ ApiType,
655
+ (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
656
+ >;
657
+ /**
658
+ * Query the output of the current WeightToFee given some input
659
+ **/
660
+ queryWeightToFee: AugmentedCall<
661
+ ApiType,
662
+ (
663
+ weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array
664
+ ) => Observable<Balance>
665
+ >;
666
+ /**
667
+ * Generic call
668
+ **/
669
+ [key: string]: DecoratedCallBase<ApiType>;
670
+ };
671
+ /** 0x6ff52ee858e6c5bd/1 */
672
+ xcmPaymentApi: {
673
+ /**
674
+ * The API to query acceptable payment assets
675
+ **/
676
+ queryAcceptablePaymentAssets: AugmentedCall<
677
+ ApiType,
678
+ (
679
+ version: u32 | AnyNumber | Uint8Array
680
+ ) => Observable<Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>>
681
+ >;
682
+ /**
683
+ *
684
+ **/
685
+ queryWeightToAssetFee: AugmentedCall<
686
+ ApiType,
687
+ (
688
+ weight: WeightV2 | { refTime?: any; proofSize?: any } | string | Uint8Array,
689
+ asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array
690
+ ) => Observable<Result<u128, XcmPaymentApiError>>
691
+ >;
692
+ /**
693
+ *
694
+ **/
695
+ queryXcmWeight: AugmentedCall<
696
+ ApiType,
697
+ (
698
+ message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array
699
+ ) => Observable<Result<WeightV2, XcmPaymentApiError>>
700
+ >;
701
+ /**
702
+ * Generic call
703
+ **/
704
+ [key: string]: DecoratedCallBase<ApiType>;
705
+ };
706
+ } // AugmentedCalls
707
+ } // declare module