@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,441 @@
1
+ import "@polkadot/api-base/types/calls";
2
+ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from "@polkadot/api-base/types";
3
+ import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from "@polkadot/types-codec";
4
+ import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
5
+ import type { CheckInherentsResult, InherentData } from "@polkadot/types/interfaces/blockbuilder";
6
+ import type { BlockHash } from "@polkadot/types/interfaces/chain";
7
+ import type { AuthorityId } from "@polkadot/types/interfaces/consensus";
8
+ import type { CollationInfo } from "@polkadot/types/interfaces/cumulus";
9
+ import type { Extrinsic } from "@polkadot/types/interfaces/extrinsics";
10
+ import type { GenesisBuildErr } from "@polkadot/types/interfaces/genesisBuilder";
11
+ import type { OpaqueMetadata } from "@polkadot/types/interfaces/metadata";
12
+ import type { FeeDetails, RuntimeDispatchInfo } from "@polkadot/types/interfaces/payment";
13
+ import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, H256, Header, Index, KeyTypeId, Slot, SlotDuration, Weight, WeightV2 } from "@polkadot/types/interfaces/runtime";
14
+ import type { RuntimeVersion } from "@polkadot/types/interfaces/state";
15
+ import type { ApplyExtrinsicResult, Key } from "@polkadot/types/interfaces/system";
16
+ import type { TransactionSource, TransactionValidity } from "@polkadot/types/interfaces/txqueue";
17
+ import type { XcmPaymentApiError } from "@polkadot/types/interfaces/xcmPaymentApi";
18
+ import type { Error } from "@polkadot/types/interfaces/xcmRuntimeApi";
19
+ import type { XcmVersionedAssetId, XcmVersionedLocation, XcmVersionedXcm } from "@polkadot/types/lookup";
20
+ import type { IExtrinsic, Observable } from "@polkadot/types/types";
21
+ import type { BackupStorageProvider, BackupStorageProviderId, ChunkId, GetBspInfoError, GetChallengePeriodError, GetChallengeSeedError, GetCheckpointChallengesError, GetLastTickProviderSubmittedProofError, GetNextDeadlineTickError, GetUsersWithDebtOverThresholdError, MainStorageProviderId, Multiaddresses, ProviderId, QueryAvailableStorageCapacityError, QueryBspConfirmChunksToProveForFileError, QueryEarliestChangeCapacityBlockError, QueryFileEarliestVolunteerBlockError, QueryMspConfirmChunksToProveForFileError, QueryMspIdOfBucketIdError, QueryProviderMultiaddressesError, QueryStorageProviderCapacityError, RandomnessOutput, StorageDataUnit, StorageProviderId, TrieRemoveMutation } from "@storagehub/api-augment/interfaces/storagehubclient";
22
+ export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
23
+ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
24
+ declare module "@polkadot/api-base/types/calls" {
25
+ interface AugmentedCalls<ApiType extends ApiTypes> {
26
+ /** 0xbc9d89904f5b923f/1 */
27
+ accountNonceApi: {
28
+ /**
29
+ * The API to query account nonce (aka transaction index)
30
+ **/
31
+ accountNonce: AugmentedCall<ApiType, (accountId: AccountId | string | Uint8Array) => Observable<Index>>;
32
+ /**
33
+ * Generic call
34
+ **/
35
+ [key: string]: DecoratedCallBase<ApiType>;
36
+ };
37
+ /** 0xdd718d5cc53262d4/1 */
38
+ auraApi: {
39
+ /**
40
+ * Return the current set of authorities.
41
+ **/
42
+ authorities: AugmentedCall<ApiType, () => Observable<Vec<AuthorityId>>>;
43
+ /**
44
+ * Returns the slot duration for Aura.
45
+ **/
46
+ slotDuration: AugmentedCall<ApiType, () => Observable<SlotDuration>>;
47
+ /**
48
+ * Generic call
49
+ **/
50
+ [key: string]: DecoratedCallBase<ApiType>;
51
+ };
52
+ /** 0xd7bdd8a272ca0d65/1 */
53
+ auraUnincludedSegmentApi: {
54
+ /**
55
+ * Whether it is legal to extend the chain
56
+ **/
57
+ canBuildUpon: AugmentedCall<ApiType, (includedHash: BlockHash | string | Uint8Array, slot: Slot | AnyNumber | Uint8Array) => Observable<bool>>;
58
+ /**
59
+ * Generic call
60
+ **/
61
+ [key: string]: DecoratedCallBase<ApiType>;
62
+ };
63
+ /** 0x40fe3ad401f8959a/6 */
64
+ blockBuilder: {
65
+ /**
66
+ * Apply the given extrinsic.
67
+ **/
68
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
69
+ /**
70
+ * Check that the inherents are valid.
71
+ **/
72
+ checkInherents: AugmentedCall<ApiType, (block: Block | {
73
+ header?: any;
74
+ extrinsics?: any;
75
+ } | string | Uint8Array, data: InherentData | {
76
+ data?: any;
77
+ } | string | Uint8Array) => Observable<CheckInherentsResult>>;
78
+ /**
79
+ * Finish the current block.
80
+ **/
81
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
82
+ /**
83
+ * Generate inherent extrinsics.
84
+ **/
85
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
86
+ data?: any;
87
+ } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
88
+ /**
89
+ * Generic call
90
+ **/
91
+ [key: string]: DecoratedCallBase<ApiType>;
92
+ };
93
+ /** 0xea93e3f16f3d6962/2 */
94
+ collectCollationInfo: {
95
+ /**
96
+ * Collect information about a collation.
97
+ **/
98
+ collectCollationInfo: AugmentedCall<ApiType, (header: Header | {
99
+ parentHash?: any;
100
+ number?: any;
101
+ stateRoot?: any;
102
+ extrinsicsRoot?: any;
103
+ digest?: any;
104
+ } | string | Uint8Array) => Observable<CollationInfo>>;
105
+ /**
106
+ * Generic call
107
+ **/
108
+ [key: string]: DecoratedCallBase<ApiType>;
109
+ };
110
+ /** 0xdf6acb689907609b/5 */
111
+ core: {
112
+ /**
113
+ * Execute the given block.
114
+ **/
115
+ executeBlock: AugmentedCall<ApiType, (block: Block | {
116
+ header?: any;
117
+ extrinsics?: any;
118
+ } | string | Uint8Array) => Observable<Null>>;
119
+ /**
120
+ * Initialize a block with the given header.
121
+ **/
122
+ initializeBlock: AugmentedCall<ApiType, (header: Header | {
123
+ parentHash?: any;
124
+ number?: any;
125
+ stateRoot?: any;
126
+ extrinsicsRoot?: any;
127
+ digest?: any;
128
+ } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
129
+ /**
130
+ * Returns the version of the runtime.
131
+ **/
132
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
133
+ /**
134
+ * Generic call
135
+ **/
136
+ [key: string]: DecoratedCallBase<ApiType>;
137
+ };
138
+ /** 0xb9e7717ace5b45cd/1 */
139
+ fileSystemApi: {
140
+ /**
141
+ * Query the chunks that a BSP needs to prove to confirm that it is storing a file.
142
+ **/
143
+ queryBspConfirmChunksToProveForFile: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array, fileKey: H256 | string | Uint8Array) => Observable<Result<Vec<ChunkId>, QueryBspConfirmChunksToProveForFileError>>>;
144
+ /**
145
+ * Query the earliest tick number that a BSP can volunteer for a file.
146
+ **/
147
+ queryEarliestFileVolunteerTick: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array, fileKey: H256 | string | Uint8Array) => Observable<Result<BlockNumber, QueryFileEarliestVolunteerBlockError>>>;
148
+ /**
149
+ * Query the chunks that a MSP needs to prove to confirm that it is storing a file.
150
+ **/
151
+ queryMspConfirmChunksToProveForFile: AugmentedCall<ApiType, (mspId: MainStorageProviderId | string | Uint8Array, fileKey: H256 | string | Uint8Array) => Observable<Result<Vec<ChunkId>, QueryMspConfirmChunksToProveForFileError>>>;
152
+ /**
153
+ * Generic call
154
+ **/
155
+ [key: string]: DecoratedCallBase<ApiType>;
156
+ };
157
+ /** 0xfbc577b9d747efd6/1 */
158
+ genesisBuilder: {
159
+ /**
160
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
161
+ **/
162
+ buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
163
+ /**
164
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
165
+ **/
166
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
167
+ /**
168
+ * Generic call
169
+ **/
170
+ [key: string]: DecoratedCallBase<ApiType>;
171
+ };
172
+ /** 0x9ffb505aa738d69c/1 */
173
+ locationToAccountApi: {
174
+ /**
175
+ * Converts `Location` to `AccountId`
176
+ **/
177
+ convertLocation: AugmentedCall<ApiType, (location: XcmVersionedLocation | {
178
+ V2: any;
179
+ } | {
180
+ V3: any;
181
+ } | {
182
+ V4: any;
183
+ } | string | Uint8Array) => Observable<Result<AccountId, Error>>>;
184
+ /**
185
+ * Generic call
186
+ **/
187
+ [key: string]: DecoratedCallBase<ApiType>;
188
+ };
189
+ /** 0x37e397fc7c91f5e4/2 */
190
+ metadata: {
191
+ /**
192
+ * Returns the metadata of a runtime
193
+ **/
194
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
195
+ /**
196
+ * Returns the metadata at a given version.
197
+ **/
198
+ metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
199
+ /**
200
+ * Returns the supported metadata versions.
201
+ **/
202
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
203
+ /**
204
+ * Generic call
205
+ **/
206
+ [key: string]: DecoratedCallBase<ApiType>;
207
+ };
208
+ /** 0xf78b278be53f454c/2 */
209
+ offchainWorkerApi: {
210
+ /**
211
+ * Starts the off-chain task for given block header.
212
+ **/
213
+ offchainWorker: AugmentedCall<ApiType, (header: Header | {
214
+ parentHash?: any;
215
+ number?: any;
216
+ stateRoot?: any;
217
+ extrinsicsRoot?: any;
218
+ digest?: any;
219
+ } | string | Uint8Array) => Observable<Null>>;
220
+ /**
221
+ * Generic call
222
+ **/
223
+ [key: string]: DecoratedCallBase<ApiType>;
224
+ };
225
+ /** 0x1078d7ac24a07b0e/1 */
226
+ paymentStreamsApi: {
227
+ /**
228
+ * Get the payment streams of a provider.
229
+ **/
230
+ getUsersOfPaymentStreamsOfProvider: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Vec<AccountId>>>;
231
+ /**
232
+ * Get the users that have a debt to the provider greater than the threshold.
233
+ **/
234
+ getUsersWithDebtOverThreshold: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array, threshold: Balance | AnyNumber | Uint8Array) => Observable<Result<Vec<AccountId>, GetUsersWithDebtOverThresholdError>>>;
235
+ /**
236
+ * Generic call
237
+ **/
238
+ [key: string]: DecoratedCallBase<ApiType>;
239
+ };
240
+ /** 0x0be7208954c7c6c9/1 */
241
+ proofsDealerApi: {
242
+ /**
243
+ * Get the challenge period for a given Provider.
244
+ **/
245
+ getChallengePeriod: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<BlockNumber, GetChallengePeriodError>>>;
246
+ /**
247
+ * Get the seed for a given challenge tick.
248
+ **/
249
+ getChallengeSeed: AugmentedCall<ApiType, (tick: BlockNumber | AnyNumber | Uint8Array) => Observable<Result<RandomnessOutput, GetChallengeSeedError>>>;
250
+ /**
251
+ * Get challenges from a seed.
252
+ **/
253
+ getChallengesFromSeed: AugmentedCall<ApiType, (seed: RandomnessOutput | string | Uint8Array, providerId: ProviderId | string | Uint8Array, count: u32 | AnyNumber | Uint8Array) => Observable<Vec<Key>>>;
254
+ /**
255
+ * Get the checkpoint challenge period.
256
+ **/
257
+ getCheckpointChallengePeriod: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
258
+ /**
259
+ * Get checkpoint challenges for a given block.
260
+ **/
261
+ getCheckpointChallenges: AugmentedCall<ApiType, (tick: BlockNumber | AnyNumber | Uint8Array) => Observable<Result<Vec<ITuple<[Key, Option<TrieRemoveMutation>]>>, GetCheckpointChallengesError>>>;
262
+ /**
263
+ * Get the current tick.
264
+ **/
265
+ getCurrentTick: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
266
+ /**
267
+ * Get forest challenges from a seed.
268
+ **/
269
+ getForestChallengesFromSeed: AugmentedCall<ApiType, (seed: RandomnessOutput | string | Uint8Array, providerId: ProviderId | string | Uint8Array) => Observable<Vec<Key>>>;
270
+ /**
271
+ * Get the last checkpoint challenge tick.
272
+ **/
273
+ getLastCheckpointChallengeTick: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
274
+ /**
275
+ * Get the last tick for which the submitter submitted a proof.
276
+ **/
277
+ getLastTickProviderSubmittedProof: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<BlockNumber, GetLastTickProviderSubmittedProofError>>>;
278
+ /**
279
+ * Get the next deadline tick.
280
+ **/
281
+ getNextDeadlineTick: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<BlockNumber, GetNextDeadlineTickError>>>;
282
+ /**
283
+ * Generic call
284
+ **/
285
+ [key: string]: DecoratedCallBase<ApiType>;
286
+ };
287
+ /** 0xab3c0572291feb8b/1 */
288
+ sessionKeys: {
289
+ /**
290
+ * Decode the given public session keys.
291
+ **/
292
+ decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
293
+ /**
294
+ * Generate a set of session keys with optionally using the given seed.
295
+ **/
296
+ generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
297
+ /**
298
+ * Generic call
299
+ **/
300
+ [key: string]: DecoratedCallBase<ApiType>;
301
+ };
302
+ /** 0x966604ffe78eb092/1 */
303
+ storageProvidersApi: {
304
+ /**
305
+ * Get the BSP info for a given BSP ID.
306
+ **/
307
+ getBspInfo: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array) => Observable<Result<BackupStorageProvider, GetBspInfoError>>>;
308
+ /**
309
+ * Get the slashable amount corresponding to the configured max file size.
310
+ **/
311
+ getSlashAmountPerMaxFileSize: AugmentedCall<ApiType, () => Observable<Balance>>;
312
+ /**
313
+ * Get the Storage Provider ID for a given Account ID.
314
+ **/
315
+ getStorageProviderId: AugmentedCall<ApiType, (who: AccountId | string | Uint8Array) => Observable<Option<StorageProviderId>>>;
316
+ /**
317
+ * Get the worst case scenario slashable amount for a provider.
318
+ **/
319
+ getWorstCaseScenarioSlashableAmount: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Option<Balance>>>;
320
+ /**
321
+ * Query the available storage capacity.
322
+ **/
323
+ queryAvailableStorageCapacity: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<StorageDataUnit, QueryAvailableStorageCapacityError>>>;
324
+ /**
325
+ * Query the earliest block number that a BSP can change its capacity.
326
+ **/
327
+ queryEarliestChangeCapacityBlock: AugmentedCall<ApiType, (providerId: BackupStorageProviderId | string | Uint8Array) => Observable<Result<BlockNumber, QueryEarliestChangeCapacityBlockError>>>;
328
+ /**
329
+ * Query the MSP ID of a bucket ID.
330
+ **/
331
+ queryMspIdOfBucketId: AugmentedCall<ApiType, (bucketId: H256 | string | Uint8Array) => Observable<Result<ProviderId, QueryMspIdOfBucketIdError>>>;
332
+ /**
333
+ * Query the provider's multiaddresses.
334
+ **/
335
+ queryProviderMultiaddresses: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<Multiaddresses, QueryProviderMultiaddressesError>>>;
336
+ /**
337
+ * Query the storage provider capacity.
338
+ **/
339
+ queryStorageProviderCapacity: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<StorageDataUnit, QueryStorageProviderCapacityError>>>;
340
+ /**
341
+ * Generic call
342
+ **/
343
+ [key: string]: DecoratedCallBase<ApiType>;
344
+ };
345
+ /** 0xd2bc9897eed08f15/3 */
346
+ taggedTransactionQueue: {
347
+ /**
348
+ * Validate the transaction.
349
+ **/
350
+ validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | "InBlock" | "Local" | "External" | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
351
+ /**
352
+ * Generic call
353
+ **/
354
+ [key: string]: DecoratedCallBase<ApiType>;
355
+ };
356
+ /** 0x37c8bb1350a9a2a8/4 */
357
+ transactionPaymentApi: {
358
+ /**
359
+ * The transaction fee details
360
+ **/
361
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
362
+ /**
363
+ * The transaction info
364
+ **/
365
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
366
+ /**
367
+ * Query the output of the current LengthToFee given some input
368
+ **/
369
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
370
+ /**
371
+ * Query the output of the current WeightToFee given some input
372
+ **/
373
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
374
+ refTime?: any;
375
+ proofSize?: any;
376
+ } | string | Uint8Array) => Observable<Balance>>;
377
+ /**
378
+ * Generic call
379
+ **/
380
+ [key: string]: DecoratedCallBase<ApiType>;
381
+ };
382
+ /** 0xf3ff14d5ab527059/3 */
383
+ transactionPaymentCallApi: {
384
+ /**
385
+ * The call fee details
386
+ **/
387
+ queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
388
+ /**
389
+ * The call info
390
+ **/
391
+ queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
392
+ /**
393
+ * Query the output of the current LengthToFee given some input
394
+ **/
395
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
396
+ /**
397
+ * Query the output of the current WeightToFee given some input
398
+ **/
399
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
400
+ refTime?: any;
401
+ proofSize?: any;
402
+ } | string | Uint8Array) => Observable<Balance>>;
403
+ /**
404
+ * Generic call
405
+ **/
406
+ [key: string]: DecoratedCallBase<ApiType>;
407
+ };
408
+ /** 0x6ff52ee858e6c5bd/1 */
409
+ xcmPaymentApi: {
410
+ /**
411
+ * The API to query acceptable payment assets
412
+ **/
413
+ queryAcceptablePaymentAssets: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Result<Vec<XcmVersionedAssetId>, XcmPaymentApiError>>>;
414
+ /**
415
+ *
416
+ **/
417
+ queryWeightToAssetFee: AugmentedCall<ApiType, (weight: WeightV2 | {
418
+ refTime?: any;
419
+ proofSize?: any;
420
+ } | string | Uint8Array, asset: XcmVersionedAssetId | {
421
+ V3: any;
422
+ } | {
423
+ V4: any;
424
+ } | string | Uint8Array) => Observable<Result<u128, XcmPaymentApiError>>>;
425
+ /**
426
+ *
427
+ **/
428
+ queryXcmWeight: AugmentedCall<ApiType, (message: XcmVersionedXcm | {
429
+ V2: any;
430
+ } | {
431
+ V3: any;
432
+ } | {
433
+ V4: any;
434
+ } | string | Uint8Array) => Observable<Result<WeightV2, XcmPaymentApiError>>>;
435
+ /**
436
+ * Generic call
437
+ **/
438
+ [key: string]: DecoratedCallBase<ApiType>;
439
+ };
440
+ }
441
+ }