@storagehub/api-augment 0.1.0 → 0.2.2

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 (190) hide show
  1. package/LICENSE +674 -0
  2. package/biome.json +2 -9
  3. package/dist/parachain/index.js.map +1 -0
  4. package/dist/parachain/interfaces/augment-api-consts.js.map +1 -0
  5. package/dist/parachain/interfaces/augment-api-errors.js.map +1 -0
  6. package/dist/parachain/interfaces/augment-api-events.js.map +1 -0
  7. package/dist/parachain/interfaces/augment-api-query.js.map +1 -0
  8. package/dist/parachain/interfaces/augment-api-rpc.js.map +1 -0
  9. package/dist/parachain/interfaces/augment-api-runtime.js.map +1 -0
  10. package/dist/parachain/interfaces/augment-api-tx.js.map +1 -0
  11. package/dist/parachain/interfaces/augment-api.js.map +1 -0
  12. package/dist/parachain/interfaces/augment-types.js.map +1 -0
  13. package/dist/parachain/interfaces/definitions.js.map +1 -0
  14. package/dist/parachain/interfaces/index.js.map +1 -0
  15. package/dist/{interfaces → parachain/interfaces}/lookup.js +1465 -813
  16. package/dist/parachain/interfaces/lookup.js.map +1 -0
  17. package/dist/parachain/interfaces/registry.js.map +1 -0
  18. package/dist/parachain/interfaces/storagehubclient/definitions.js +7 -0
  19. package/dist/parachain/interfaces/storagehubclient/definitions.js.map +1 -0
  20. package/dist/parachain/interfaces/storagehubclient/index.js.map +1 -0
  21. package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -0
  22. package/dist/parachain/interfaces/storagehubclient/types.js.map +1 -0
  23. package/dist/parachain/interfaces/types-lookup.js.map +1 -0
  24. package/dist/parachain/interfaces/types.js.map +1 -0
  25. package/dist/solochain-evm/index.js +4 -0
  26. package/dist/solochain-evm/index.js.map +1 -0
  27. package/dist/solochain-evm/interfaces/augment-api-consts.js +6 -0
  28. package/dist/solochain-evm/interfaces/augment-api-consts.js.map +1 -0
  29. package/dist/solochain-evm/interfaces/augment-api-errors.js +6 -0
  30. package/dist/solochain-evm/interfaces/augment-api-errors.js.map +1 -0
  31. package/dist/solochain-evm/interfaces/augment-api-events.js +6 -0
  32. package/dist/solochain-evm/interfaces/augment-api-events.js.map +1 -0
  33. package/dist/solochain-evm/interfaces/augment-api-query.js +6 -0
  34. package/dist/solochain-evm/interfaces/augment-api-query.js.map +1 -0
  35. package/dist/solochain-evm/interfaces/augment-api-rpc.js +6 -0
  36. package/dist/solochain-evm/interfaces/augment-api-rpc.js.map +1 -0
  37. package/dist/solochain-evm/interfaces/augment-api-runtime.js +6 -0
  38. package/dist/solochain-evm/interfaces/augment-api-runtime.js.map +1 -0
  39. package/dist/solochain-evm/interfaces/augment-api-tx.js +6 -0
  40. package/dist/solochain-evm/interfaces/augment-api-tx.js.map +1 -0
  41. package/dist/solochain-evm/interfaces/augment-api.js +10 -0
  42. package/dist/solochain-evm/interfaces/augment-api.js.map +1 -0
  43. package/dist/solochain-evm/interfaces/augment-types.js +6 -0
  44. package/dist/solochain-evm/interfaces/augment-types.js.map +1 -0
  45. package/dist/solochain-evm/interfaces/definitions.js +2 -0
  46. package/dist/solochain-evm/interfaces/definitions.js.map +1 -0
  47. package/dist/solochain-evm/interfaces/index.js +4 -0
  48. package/dist/solochain-evm/interfaces/index.js.map +1 -0
  49. package/dist/solochain-evm/interfaces/lookup.js +3744 -0
  50. package/dist/solochain-evm/interfaces/lookup.js.map +1 -0
  51. package/dist/solochain-evm/interfaces/registry.js +6 -0
  52. package/dist/solochain-evm/interfaces/registry.js.map +1 -0
  53. package/dist/solochain-evm/interfaces/storagehubclient/definitions.js +7 -0
  54. package/dist/solochain-evm/interfaces/storagehubclient/definitions.js.map +1 -0
  55. package/dist/solochain-evm/interfaces/storagehubclient/index.js +4 -0
  56. package/dist/solochain-evm/interfaces/storagehubclient/index.js.map +1 -0
  57. package/dist/solochain-evm/interfaces/storagehubclient/types.js +4 -0
  58. package/dist/solochain-evm/interfaces/storagehubclient/types.js.map +1 -0
  59. package/dist/solochain-evm/interfaces/types-lookup.js +6 -0
  60. package/dist/solochain-evm/interfaces/types-lookup.js.map +1 -0
  61. package/dist/solochain-evm/interfaces/types.js +4 -0
  62. package/dist/solochain-evm/interfaces/types.js.map +1 -0
  63. package/dist/types/{interfaces → parachain/interfaces}/augment-api-consts.d.ts +147 -20
  64. package/dist/types/{interfaces → parachain/interfaces}/augment-api-errors.d.ts +235 -8
  65. package/dist/types/{interfaces → parachain/interfaces}/augment-api-events.d.ts +542 -118
  66. package/dist/types/{interfaces → parachain/interfaces}/augment-api-query.d.ts +208 -118
  67. package/dist/types/{interfaces → parachain/interfaces}/augment-api-rpc.d.ts +61 -4
  68. package/dist/types/{interfaces → parachain/interfaces}/augment-api-runtime.d.ts +105 -8
  69. package/dist/types/{interfaces → parachain/interfaces}/augment-api-tx.d.ts +356 -181
  70. package/dist/types/{interfaces → parachain/interfaces}/augment-types.d.ts +145 -11
  71. package/dist/types/{interfaces → parachain/interfaces}/lookup.d.ts +1067 -513
  72. package/dist/types/parachain/interfaces/registry.d.ts +311 -0
  73. package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/types.d.ts +135 -18
  74. package/dist/types/{interfaces → parachain/interfaces}/types-lookup.d.ts +1619 -887
  75. package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +641 -0
  76. package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +1260 -0
  77. package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +2058 -0
  78. package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +1317 -0
  79. package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +775 -0
  80. package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +543 -0
  81. package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +2381 -0
  82. package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -0
  83. package/dist/types/solochain-evm/interfaces/augment-types.d.ts +1419 -0
  84. package/dist/types/solochain-evm/interfaces/index.d.ts +1 -0
  85. package/dist/types/solochain-evm/interfaces/lookup.d.ts +3363 -0
  86. package/dist/types/solochain-evm/interfaces/registry.d.ts +252 -0
  87. package/dist/types/solochain-evm/interfaces/storagehubclient/definitions.d.ts +6 -0
  88. package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -0
  89. package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +325 -0
  90. package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +3577 -0
  91. package/dist/types/solochain-evm/interfaces/types.d.ts +1 -0
  92. package/metadata-sh-parachain.json +5 -0
  93. package/metadata-sh-solochain-evm.json +5 -0
  94. package/package.json +41 -26
  95. package/scripts/scrapeMetadata.ts +41 -29
  96. package/src/parachain/index.ts +3 -0
  97. package/src/{interfaces → parachain/interfaces}/augment-api-consts.ts +147 -20
  98. package/src/{interfaces → parachain/interfaces}/augment-api-errors.ts +235 -8
  99. package/src/{interfaces → parachain/interfaces}/augment-api-events.ts +527 -137
  100. package/src/{interfaces → parachain/interfaces}/augment-api-query.ts +272 -145
  101. package/src/{interfaces → parachain/interfaces}/augment-api-rpc.ts +123 -5
  102. package/src/{interfaces → parachain/interfaces}/augment-api-runtime.ts +202 -8
  103. package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
  104. package/src/{interfaces → parachain/interfaces}/augment-types.ts +280 -12
  105. package/src/parachain/interfaces/definitions.ts +1 -0
  106. package/src/{interfaces → parachain/interfaces}/lookup.ts +1497 -813
  107. package/src/{interfaces → parachain/interfaces}/registry.ts +176 -98
  108. package/src/parachain/interfaces/storagehubclient/definitions.ts +7 -0
  109. package/src/{interfaces → parachain/interfaces}/storagehubclient/types.ts +165 -18
  110. package/src/{interfaces → parachain/interfaces}/types-lookup.ts +1970 -896
  111. package/src/solochain-evm/index.ts +3 -0
  112. package/src/solochain-evm/interfaces/augment-api-consts.ts +655 -0
  113. package/src/solochain-evm/interfaces/augment-api-errors.ts +1268 -0
  114. package/src/solochain-evm/interfaces/augment-api-events.ts +1813 -0
  115. package/src/solochain-evm/interfaces/augment-api-query.ts +1838 -0
  116. package/src/solochain-evm/interfaces/augment-api-rpc.ts +1319 -0
  117. package/src/solochain-evm/interfaces/augment-api-runtime.ts +977 -0
  118. package/src/solochain-evm/interfaces/augment-api-tx.ts +2818 -0
  119. package/src/solochain-evm/interfaces/augment-api.ts +10 -0
  120. package/src/solochain-evm/interfaces/augment-types.ts +2776 -0
  121. package/src/solochain-evm/interfaces/definitions.ts +1 -0
  122. package/src/solochain-evm/interfaces/index.ts +4 -0
  123. package/src/solochain-evm/interfaces/lookup.ts +3788 -0
  124. package/src/solochain-evm/interfaces/registry.ts +506 -0
  125. package/src/solochain-evm/interfaces/storagehubclient/definitions.ts +7 -0
  126. package/src/solochain-evm/interfaces/storagehubclient/index.ts +4 -0
  127. package/src/solochain-evm/interfaces/storagehubclient/types.ts +398 -0
  128. package/src/solochain-evm/interfaces/types-lookup.ts +4616 -0
  129. package/src/solochain-evm/interfaces/types.ts +4 -0
  130. package/tsconfig.json +17 -20
  131. package/tsconfig.parachain.json +17 -0
  132. package/tsconfig.solochain-evm.json +17 -0
  133. package/tsconfig.tsbuildinfo +1 -0
  134. package/dist/index.js.map +0 -1
  135. package/dist/interfaces/augment-api-consts.js.map +0 -1
  136. package/dist/interfaces/augment-api-errors.js.map +0 -1
  137. package/dist/interfaces/augment-api-events.js.map +0 -1
  138. package/dist/interfaces/augment-api-query.js.map +0 -1
  139. package/dist/interfaces/augment-api-rpc.js.map +0 -1
  140. package/dist/interfaces/augment-api-runtime.js.map +0 -1
  141. package/dist/interfaces/augment-api-tx.js.map +0 -1
  142. package/dist/interfaces/augment-api.js.map +0 -1
  143. package/dist/interfaces/augment-types.js.map +0 -1
  144. package/dist/interfaces/definitions.js.map +0 -1
  145. package/dist/interfaces/index.js.map +0 -1
  146. package/dist/interfaces/lookup.js.map +0 -1
  147. package/dist/interfaces/registry.js.map +0 -1
  148. package/dist/interfaces/storagehubclient/definitions.js +0 -7
  149. package/dist/interfaces/storagehubclient/definitions.js.map +0 -1
  150. package/dist/interfaces/storagehubclient/index.js.map +0 -1
  151. package/dist/interfaces/storagehubclient/runtime.js.map +0 -1
  152. package/dist/interfaces/storagehubclient/types.js.map +0 -1
  153. package/dist/interfaces/types-lookup.js.map +0 -1
  154. package/dist/interfaces/types.js.map +0 -1
  155. package/dist/types/interfaces/registry.d.ts +0 -272
  156. package/src/interfaces/storagehubclient/definitions.ts +0 -7
  157. package/storagehub.json +0 -1
  158. /package/dist/{index.js → parachain/index.js} +0 -0
  159. /package/dist/{interfaces → parachain/interfaces}/augment-api-consts.js +0 -0
  160. /package/dist/{interfaces → parachain/interfaces}/augment-api-errors.js +0 -0
  161. /package/dist/{interfaces → parachain/interfaces}/augment-api-events.js +0 -0
  162. /package/dist/{interfaces → parachain/interfaces}/augment-api-query.js +0 -0
  163. /package/dist/{interfaces → parachain/interfaces}/augment-api-rpc.js +0 -0
  164. /package/dist/{interfaces → parachain/interfaces}/augment-api-runtime.js +0 -0
  165. /package/dist/{interfaces → parachain/interfaces}/augment-api-tx.js +0 -0
  166. /package/dist/{interfaces → parachain/interfaces}/augment-api.js +0 -0
  167. /package/dist/{interfaces → parachain/interfaces}/augment-types.js +0 -0
  168. /package/dist/{interfaces → parachain/interfaces}/definitions.js +0 -0
  169. /package/dist/{interfaces → parachain/interfaces}/index.js +0 -0
  170. /package/dist/{interfaces → parachain/interfaces}/registry.js +0 -0
  171. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/index.js +0 -0
  172. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/runtime.js +0 -0
  173. /package/dist/{interfaces → parachain/interfaces}/storagehubclient/types.js +0 -0
  174. /package/dist/{interfaces → parachain/interfaces}/types-lookup.js +0 -0
  175. /package/dist/{interfaces → parachain/interfaces}/types.js +0 -0
  176. /package/dist/types/{index.d.ts → parachain/index.d.ts} +0 -0
  177. /package/dist/types/{interfaces → parachain/interfaces}/augment-api.d.ts +0 -0
  178. /package/dist/types/{interfaces → parachain/interfaces}/definitions.d.ts +0 -0
  179. /package/dist/types/{interfaces → parachain/interfaces}/index.d.ts +0 -0
  180. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/definitions.d.ts +0 -0
  181. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/index.d.ts +0 -0
  182. /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/runtime.d.ts +0 -0
  183. /package/dist/types/{interfaces → parachain/interfaces}/types.d.ts +0 -0
  184. /package/{src/index.ts → dist/types/solochain-evm/index.d.ts} +0 -0
  185. /package/{src/interfaces/definitions.ts → dist/types/solochain-evm/interfaces/definitions.d.ts} +0 -0
  186. /package/src/{interfaces → parachain/interfaces}/augment-api.ts +0 -0
  187. /package/src/{interfaces → parachain/interfaces}/index.ts +0 -0
  188. /package/src/{interfaces → parachain/interfaces}/storagehubclient/index.ts +0 -0
  189. /package/src/{interfaces → parachain/interfaces}/storagehubclient/runtime.ts +0 -0
  190. /package/src/{interfaces → parachain/interfaces}/types.ts +0 -0
@@ -0,0 +1,977 @@
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 {
10
+ BTreeMap,
11
+ Bytes,
12
+ Null,
13
+ Option,
14
+ Result,
15
+ U256,
16
+ Vec,
17
+ bool,
18
+ u256,
19
+ u32,
20
+ u64
21
+ } from "@polkadot/types-codec";
22
+ import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
23
+ import type {
24
+ BabeEquivocationProof,
25
+ BabeGenesisConfiguration,
26
+ Epoch,
27
+ OpaqueKeyOwnershipProof
28
+ } from "@polkadot/types/interfaces/babe";
29
+ import type { CheckInherentsResult, InherentData } from "@polkadot/types/interfaces/blockbuilder";
30
+ import type { BlockHash } from "@polkadot/types/interfaces/chain";
31
+ import type { AuthorityId } from "@polkadot/types/interfaces/consensus";
32
+ import type {
33
+ BlockV2,
34
+ EthReceiptV3,
35
+ EthTransactionStatus,
36
+ TransactionV2
37
+ } from "@polkadot/types/interfaces/eth";
38
+ import type { EvmAccount, EvmCallInfoV2, EvmCreateInfoV2 } from "@polkadot/types/interfaces/evm";
39
+ import type { Extrinsic } from "@polkadot/types/interfaces/extrinsics";
40
+ import type { GenesisBuildErr } from "@polkadot/types/interfaces/genesisBuilder";
41
+ import type {
42
+ AuthorityList,
43
+ GrandpaEquivocationProof,
44
+ SetId
45
+ } from "@polkadot/types/interfaces/grandpa";
46
+ import type { OpaqueMetadata } from "@polkadot/types/interfaces/metadata";
47
+ import type { FeeDetails, RuntimeDispatchInfo } from "@polkadot/types/interfaces/payment";
48
+ import type {
49
+ AccountId,
50
+ Balance,
51
+ Block,
52
+ BlockNumber,
53
+ Call,
54
+ ExtrinsicInclusionMode,
55
+ H160,
56
+ H256,
57
+ Header,
58
+ Index,
59
+ KeyTypeId,
60
+ Permill,
61
+ Slot,
62
+ Weight
63
+ } from "@polkadot/types/interfaces/runtime";
64
+ import type { RuntimeVersion } from "@polkadot/types/interfaces/state";
65
+ import type { ApplyExtrinsicResult, DispatchError, Key } from "@polkadot/types/interfaces/system";
66
+ import type { TransactionSource, TransactionValidity } from "@polkadot/types/interfaces/txqueue";
67
+ import type { IExtrinsic, Observable } from "@polkadot/types/types";
68
+ import type {
69
+ BackupStorageProvider,
70
+ BackupStorageProviderId,
71
+ BucketId,
72
+ ChunkId,
73
+ GenericApplyDeltaEventInfoError,
74
+ GetBspInfoError,
75
+ GetChallengePeriodError,
76
+ GetChallengeSeedError,
77
+ GetCheckpointChallengesError,
78
+ GetNextDeadlineTickError,
79
+ GetProofSubmissionRecordError,
80
+ GetStakeError,
81
+ GetUsersWithDebtOverThresholdError,
82
+ IncompleteStorageRequestMetadataResponse,
83
+ IsStorageRequestOpenToVolunteersError,
84
+ MainStorageProviderId,
85
+ Multiaddresses,
86
+ ProviderId,
87
+ QueryAvailableStorageCapacityError,
88
+ QueryBspConfirmChunksToProveForFileError,
89
+ QueryBspsVolunteeredForFileError,
90
+ QueryBucketsForMspError,
91
+ QueryBucketsOfUserStoredByMspError,
92
+ QueryEarliestChangeCapacityBlockError,
93
+ QueryFileEarliestVolunteerBlockError,
94
+ QueryIncompleteStorageRequestMetadataError,
95
+ QueryMspConfirmChunksToProveForFileError,
96
+ QueryMspIdOfBucketIdError,
97
+ QueryProviderMultiaddressesError,
98
+ QueryStorageProviderCapacityError,
99
+ RandomnessOutput,
100
+ StorageDataUnit,
101
+ StorageProviderId,
102
+ StorageRequestMetadata,
103
+ TrieRemoveMutation,
104
+ ValuePropositionWithId
105
+ } from "@storagehub/api-augment/solochain-evm/interfaces/storagehubclient";
106
+
107
+ export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
108
+ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
109
+
110
+ declare module "@polkadot/api-base/types/calls" {
111
+ interface AugmentedCalls<ApiType extends ApiTypes> {
112
+ /** 0xbc9d89904f5b923f/1 */
113
+ accountNonceApi: {
114
+ /**
115
+ * The API to query account nonce (aka transaction index)
116
+ **/
117
+ accountNonce: AugmentedCall<
118
+ ApiType,
119
+ (accountId: AccountId | string | Uint8Array) => Observable<Index>
120
+ >;
121
+ /**
122
+ * Generic call
123
+ **/
124
+ [key: string]: DecoratedCallBase<ApiType>;
125
+ };
126
+ /** 0xcbca25e39f142387/2 */
127
+ babeApi: {
128
+ /**
129
+ * Return the genesis configuration for BABE. The configuration is only read on genesis.
130
+ **/
131
+ configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
132
+ /**
133
+ * Returns information regarding the current epoch.
134
+ **/
135
+ currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
136
+ /**
137
+ * Returns the slot that started the current epoch.
138
+ **/
139
+ currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
140
+ /**
141
+ * Generates a proof of key ownership for the given authority in the current epoch.
142
+ **/
143
+ generateKeyOwnershipProof: AugmentedCall<
144
+ ApiType,
145
+ (
146
+ slot: Slot | AnyNumber | Uint8Array,
147
+ authorityId: AuthorityId | string | Uint8Array
148
+ ) => Observable<Option<OpaqueKeyOwnershipProof>>
149
+ >;
150
+ /**
151
+ * Returns information regarding the next epoch (which was already previously announced).
152
+ **/
153
+ nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
154
+ /**
155
+ * Submits an unsigned extrinsic to report an equivocation.
156
+ **/
157
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<
158
+ ApiType,
159
+ (
160
+ equivocationProof:
161
+ | BabeEquivocationProof
162
+ | { offender?: any; slotNumber?: any; firstHeader?: any; secondHeader?: any }
163
+ | string
164
+ | Uint8Array,
165
+ keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array
166
+ ) => Observable<Option<Null>>
167
+ >;
168
+ /**
169
+ * Generic call
170
+ **/
171
+ [key: string]: DecoratedCallBase<ApiType>;
172
+ };
173
+ /** 0x40fe3ad401f8959a/6 */
174
+ blockBuilder: {
175
+ /**
176
+ * Apply the given extrinsic.
177
+ **/
178
+ applyExtrinsic: AugmentedCall<
179
+ ApiType,
180
+ (
181
+ extrinsic: Extrinsic | IExtrinsic | string | Uint8Array
182
+ ) => Observable<ApplyExtrinsicResult>
183
+ >;
184
+ /**
185
+ * Check that the inherents are valid.
186
+ **/
187
+ checkInherents: AugmentedCall<
188
+ ApiType,
189
+ (
190
+ block: Block | { header?: any; extrinsics?: any } | string | Uint8Array,
191
+ data: InherentData | { data?: any } | string | Uint8Array
192
+ ) => Observable<CheckInherentsResult>
193
+ >;
194
+ /**
195
+ * Finish the current block.
196
+ **/
197
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
198
+ /**
199
+ * Generate inherent extrinsics.
200
+ **/
201
+ inherentExtrinsics: AugmentedCall<
202
+ ApiType,
203
+ (
204
+ inherent: InherentData | { data?: any } | string | Uint8Array
205
+ ) => Observable<Vec<Extrinsic>>
206
+ >;
207
+ /**
208
+ * Generic call
209
+ **/
210
+ [key: string]: DecoratedCallBase<ApiType>;
211
+ };
212
+ /** 0xe65b00e46cedd0aa/2 */
213
+ convertTransactionRuntimeApi: {
214
+ /**
215
+ * Converts an Ethereum-style transaction to Extrinsic
216
+ **/
217
+ convertTransaction: AugmentedCall<
218
+ ApiType,
219
+ (
220
+ transaction:
221
+ | TransactionV2
222
+ | { Legacy: any }
223
+ | { EIP2930: any }
224
+ | { EIP1559: any }
225
+ | string
226
+ | Uint8Array
227
+ ) => Observable<Extrinsic>
228
+ >;
229
+ /**
230
+ * Generic call
231
+ **/
232
+ [key: string]: DecoratedCallBase<ApiType>;
233
+ };
234
+ /** 0xdf6acb689907609b/5 */
235
+ core: {
236
+ /**
237
+ * Execute the given block.
238
+ **/
239
+ executeBlock: AugmentedCall<
240
+ ApiType,
241
+ (
242
+ block: Block | { header?: any; extrinsics?: any } | string | Uint8Array
243
+ ) => Observable<Null>
244
+ >;
245
+ /**
246
+ * Initialize a block with the given header.
247
+ **/
248
+ initializeBlock: AugmentedCall<
249
+ ApiType,
250
+ (
251
+ header:
252
+ | Header
253
+ | {
254
+ parentHash?: any;
255
+ number?: any;
256
+ stateRoot?: any;
257
+ extrinsicsRoot?: any;
258
+ digest?: any;
259
+ }
260
+ | string
261
+ | Uint8Array
262
+ ) => Observable<ExtrinsicInclusionMode>
263
+ >;
264
+ /**
265
+ * Returns the version of the runtime.
266
+ **/
267
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
268
+ /**
269
+ * Generic call
270
+ **/
271
+ [key: string]: DecoratedCallBase<ApiType>;
272
+ };
273
+ /** 0x582211f65bb14b89/5 */
274
+ ethereumRuntimeRPCApi: {
275
+ /**
276
+ * Returns pallet_evm::Accounts by address.
277
+ **/
278
+ accountBasic: AugmentedCall<
279
+ ApiType,
280
+ (address: H160 | string | Uint8Array) => Observable<EvmAccount>
281
+ >;
282
+ /**
283
+ * For a given account address, returns pallet_evm::AccountCodes.
284
+ **/
285
+ accountCodeAt: AugmentedCall<
286
+ ApiType,
287
+ (address: H160 | string | Uint8Array) => Observable<Bytes>
288
+ >;
289
+ /**
290
+ * Returns the converted FindAuthor::find_author authority id.
291
+ **/
292
+ author: AugmentedCall<ApiType, () => Observable<H160>>;
293
+ /**
294
+ * Returns a frame_ethereum::call response. If `estimate` is true,
295
+ **/
296
+ call: AugmentedCall<
297
+ ApiType,
298
+ (
299
+ from: H160 | string | Uint8Array,
300
+ to: H160 | string | Uint8Array,
301
+ data: Bytes | string | Uint8Array,
302
+ value: U256 | AnyNumber | Uint8Array,
303
+ gasLimit: U256 | AnyNumber | Uint8Array,
304
+ maxFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber,
305
+ maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber,
306
+ nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber,
307
+ estimate: bool | boolean | Uint8Array,
308
+ accessList:
309
+ | Option<Vec<ITuple<[H160, Vec<H256>]>>>
310
+ | null
311
+ | Uint8Array
312
+ | Vec<ITuple<[H160, Vec<H256>]>>
313
+ | [H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]][]
314
+ ) => Observable<Result<EvmCallInfoV2, DispatchError>>
315
+ >;
316
+ /**
317
+ * Returns runtime defined pallet_evm::ChainId.
318
+ **/
319
+ chainId: AugmentedCall<ApiType, () => Observable<u64>>;
320
+ /**
321
+ * Returns a frame_ethereum::call response. If `estimate` is true,
322
+ **/
323
+ create: AugmentedCall<
324
+ ApiType,
325
+ (
326
+ from: H160 | string | Uint8Array,
327
+ data: Bytes | string | Uint8Array,
328
+ value: U256 | AnyNumber | Uint8Array,
329
+ gasLimit: U256 | AnyNumber | Uint8Array,
330
+ maxFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber,
331
+ maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber,
332
+ nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber,
333
+ estimate: bool | boolean | Uint8Array,
334
+ accessList:
335
+ | Option<Vec<ITuple<[H160, Vec<H256>]>>>
336
+ | null
337
+ | Uint8Array
338
+ | Vec<ITuple<[H160, Vec<H256>]>>
339
+ | [H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]][]
340
+ ) => Observable<Result<EvmCreateInfoV2, DispatchError>>
341
+ >;
342
+ /**
343
+ * Return all the current data for a block in a single runtime call.
344
+ **/
345
+ currentAll: AugmentedCall<
346
+ ApiType,
347
+ () => Observable<
348
+ ITuple<[Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>]>
349
+ >
350
+ >;
351
+ /**
352
+ * Return the current block.
353
+ **/
354
+ currentBlock: AugmentedCall<ApiType, () => Observable<BlockV2>>;
355
+ /**
356
+ * Return the current receipt.
357
+ **/
358
+ currentReceipts: AugmentedCall<ApiType, () => Observable<Option<Vec<EthReceiptV3>>>>;
359
+ /**
360
+ * Return the current transaction status.
361
+ **/
362
+ currentTransactionStatuses: AugmentedCall<
363
+ ApiType,
364
+ () => Observable<Option<Vec<EthTransactionStatus>>>
365
+ >;
366
+ /**
367
+ * Return the elasticity multiplier.
368
+ **/
369
+ elasticity: AugmentedCall<ApiType, () => Observable<Option<Permill>>>;
370
+ /**
371
+ * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.
372
+ **/
373
+ extrinsicFilter: AugmentedCall<
374
+ ApiType,
375
+ (
376
+ xts: Vec<Extrinsic> | (Extrinsic | IExtrinsic | string | Uint8Array)[]
377
+ ) => Observable<Vec<TransactionV2>>
378
+ >;
379
+ /**
380
+ * Returns FixedGasPrice::min_gas_price
381
+ **/
382
+ gasPrice: AugmentedCall<ApiType, () => Observable<u256>>;
383
+ /**
384
+ * For a given account address and index, returns pallet_evm::AccountStorages.
385
+ **/
386
+ storageAt: AugmentedCall<
387
+ ApiType,
388
+ (
389
+ address: H160 | string | Uint8Array,
390
+ index: u256 | AnyNumber | Uint8Array
391
+ ) => Observable<H256>
392
+ >;
393
+ /**
394
+ * Generic call
395
+ **/
396
+ [key: string]: DecoratedCallBase<ApiType>;
397
+ };
398
+ /** 0xb9e7717ace5b45cd/1 */
399
+ fileSystemApi: {
400
+ /**
401
+ * Decodes the BucketId expected to be found in the event info of a generic apply delta.
402
+ **/
403
+ decodeGenericApplyDeltaEventInfo: AugmentedCall<
404
+ ApiType,
405
+ (
406
+ encodedEventInfo: Bytes | string | Uint8Array
407
+ ) => Observable<Result<BucketId, GenericApplyDeltaEventInfoError>>
408
+ >;
409
+ /**
410
+ * Check if a storage request is open to volunteers.
411
+ **/
412
+ isStorageRequestOpenToVolunteers: AugmentedCall<
413
+ ApiType,
414
+ (
415
+ fileKey: H256 | string | Uint8Array
416
+ ) => Observable<Result<bool, IsStorageRequestOpenToVolunteersError>>
417
+ >;
418
+ /**
419
+ * Get pending storage requests for a Main Storage Provider.
420
+ **/
421
+ pendingStorageRequestsByMsp: AugmentedCall<
422
+ ApiType,
423
+ (
424
+ mspId: MainStorageProviderId | string | Uint8Array
425
+ ) => Observable<BTreeMap<H256, StorageRequestMetadata>>
426
+ >;
427
+ /**
428
+ * Query the chunks that a BSP needs to prove to confirm that it is storing a file.
429
+ **/
430
+ queryBspConfirmChunksToProveForFile: AugmentedCall<
431
+ ApiType,
432
+ (
433
+ bspId: BackupStorageProviderId | string | Uint8Array,
434
+ fileKey: H256 | string | Uint8Array
435
+ ) => Observable<Result<Vec<ChunkId>, QueryBspConfirmChunksToProveForFileError>>
436
+ >;
437
+ /**
438
+ * Query the BSPs that volunteered for a file.
439
+ **/
440
+ queryBspsVolunteeredForFile: AugmentedCall<
441
+ ApiType,
442
+ (
443
+ fileKey: H256 | string | Uint8Array
444
+ ) => Observable<Result<Vec<BackupStorageProviderId>, QueryBspsVolunteeredForFileError>>
445
+ >;
446
+ /**
447
+ * Query the earliest tick number that a BSP can volunteer for a file.
448
+ **/
449
+ queryEarliestFileVolunteerTick: AugmentedCall<
450
+ ApiType,
451
+ (
452
+ bspId: BackupStorageProviderId | string | Uint8Array,
453
+ fileKey: H256 | string | Uint8Array
454
+ ) => Observable<Result<BlockNumber, QueryFileEarliestVolunteerBlockError>>
455
+ >;
456
+ /**
457
+ * Query incomplete storage request metadata for a file key.
458
+ **/
459
+ queryIncompleteStorageRequestMetadata: AugmentedCall<
460
+ ApiType,
461
+ (
462
+ fileKey: H256 | string | Uint8Array
463
+ ) => Observable<
464
+ Result<
465
+ IncompleteStorageRequestMetadataResponse,
466
+ QueryIncompleteStorageRequestMetadataError
467
+ >
468
+ >
469
+ >;
470
+ /**
471
+ * Query the chunks that a MSP needs to prove to confirm that it is storing a file.
472
+ **/
473
+ queryMspConfirmChunksToProveForFile: AugmentedCall<
474
+ ApiType,
475
+ (
476
+ mspId: MainStorageProviderId | string | Uint8Array,
477
+ fileKey: H256 | string | Uint8Array
478
+ ) => Observable<Result<Vec<ChunkId>, QueryMspConfirmChunksToProveForFileError>>
479
+ >;
480
+ /**
481
+ * Get the storage requests for a given MSP.
482
+ **/
483
+ storageRequestsByMsp: AugmentedCall<
484
+ ApiType,
485
+ (
486
+ mspId: MainStorageProviderId | string | Uint8Array
487
+ ) => Observable<BTreeMap<H256, StorageRequestMetadata>>
488
+ >;
489
+ /**
490
+ * Generic call
491
+ **/
492
+ [key: string]: DecoratedCallBase<ApiType>;
493
+ };
494
+ /** 0xfbc577b9d747efd6/1 */
495
+ genesisBuilder: {
496
+ /**
497
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
498
+ **/
499
+ buildConfig: AugmentedCall<
500
+ ApiType,
501
+ (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>
502
+ >;
503
+ /**
504
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
505
+ **/
506
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
507
+ /**
508
+ * Generic call
509
+ **/
510
+ [key: string]: DecoratedCallBase<ApiType>;
511
+ };
512
+ /** 0xed99c5acb25eedf5/3 */
513
+ grandpaApi: {
514
+ /**
515
+ * Get current GRANDPA authority set id.
516
+ **/
517
+ currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
518
+ /**
519
+ * Generates a proof of key ownership for the given authority in the given set.
520
+ **/
521
+ generateKeyOwnershipProof: AugmentedCall<
522
+ ApiType,
523
+ (
524
+ setId: SetId | AnyNumber | Uint8Array,
525
+ authorityId: AuthorityId | string | Uint8Array
526
+ ) => Observable<Option<OpaqueKeyOwnershipProof>>
527
+ >;
528
+ /**
529
+ * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
530
+ **/
531
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
532
+ /**
533
+ * Submits an unsigned extrinsic to report an equivocation.
534
+ **/
535
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<
536
+ ApiType,
537
+ (
538
+ equivocationProof:
539
+ | GrandpaEquivocationProof
540
+ | { setId?: any; equivocation?: any }
541
+ | string
542
+ | Uint8Array,
543
+ keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array
544
+ ) => Observable<Option<Null>>
545
+ >;
546
+ /**
547
+ * Generic call
548
+ **/
549
+ [key: string]: DecoratedCallBase<ApiType>;
550
+ };
551
+ /** 0x37e397fc7c91f5e4/2 */
552
+ metadata: {
553
+ /**
554
+ * Returns the metadata of a runtime
555
+ **/
556
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
557
+ /**
558
+ * Returns the metadata at a given version.
559
+ **/
560
+ metadataAtVersion: AugmentedCall<
561
+ ApiType,
562
+ (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>
563
+ >;
564
+ /**
565
+ * Returns the supported metadata versions.
566
+ **/
567
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
568
+ /**
569
+ * Generic call
570
+ **/
571
+ [key: string]: DecoratedCallBase<ApiType>;
572
+ };
573
+ /** 0xf78b278be53f454c/2 */
574
+ offchainWorkerApi: {
575
+ /**
576
+ * Starts the off-chain task for given block header.
577
+ **/
578
+ offchainWorker: AugmentedCall<
579
+ ApiType,
580
+ (
581
+ header:
582
+ | Header
583
+ | {
584
+ parentHash?: any;
585
+ number?: any;
586
+ stateRoot?: any;
587
+ extrinsicsRoot?: any;
588
+ digest?: any;
589
+ }
590
+ | string
591
+ | Uint8Array
592
+ ) => Observable<Null>
593
+ >;
594
+ /**
595
+ * Generic call
596
+ **/
597
+ [key: string]: DecoratedCallBase<ApiType>;
598
+ };
599
+ /** 0x1078d7ac24a07b0e/1 */
600
+ paymentStreamsApi: {
601
+ /**
602
+ * Get the Providers that have at least one payment stream with a specific user.
603
+ **/
604
+ getProvidersWithPaymentStreamsWithUser: AugmentedCall<
605
+ ApiType,
606
+ (userAccount: AccountId | string | Uint8Array) => Observable<Vec<ProviderId>>
607
+ >;
608
+ /**
609
+ * Get the payment streams of a provider.
610
+ **/
611
+ getUsersOfPaymentStreamsOfProvider: AugmentedCall<
612
+ ApiType,
613
+ (providerId: ProviderId | string | Uint8Array) => Observable<Vec<AccountId>>
614
+ >;
615
+ /**
616
+ * Get the users that have a debt to the provider greater than the threshold.
617
+ **/
618
+ getUsersWithDebtOverThreshold: AugmentedCall<
619
+ ApiType,
620
+ (
621
+ providerId: ProviderId | string | Uint8Array,
622
+ threshold: Balance | AnyNumber | Uint8Array
623
+ ) => Observable<Result<Vec<AccountId>, GetUsersWithDebtOverThresholdError>>
624
+ >;
625
+ /**
626
+ * Generic call
627
+ **/
628
+ [key: string]: DecoratedCallBase<ApiType>;
629
+ };
630
+ /** 0x0be7208954c7c6c9/1 */
631
+ proofsDealerApi: {
632
+ /**
633
+ * Get the challenge period for a given Provider.
634
+ **/
635
+ getChallengePeriod: AugmentedCall<
636
+ ApiType,
637
+ (
638
+ providerId: ProviderId | string | Uint8Array
639
+ ) => Observable<Result<BlockNumber, GetChallengePeriodError>>
640
+ >;
641
+ /**
642
+ * Get the seed for a given challenge tick.
643
+ **/
644
+ getChallengeSeed: AugmentedCall<
645
+ ApiType,
646
+ (
647
+ tick: BlockNumber | AnyNumber | Uint8Array
648
+ ) => Observable<Result<RandomnessOutput, GetChallengeSeedError>>
649
+ >;
650
+ /**
651
+ * Get challenges from a seed.
652
+ **/
653
+ getChallengesFromSeed: AugmentedCall<
654
+ ApiType,
655
+ (
656
+ seed: RandomnessOutput | string | Uint8Array,
657
+ providerId: ProviderId | string | Uint8Array,
658
+ count: u32 | AnyNumber | Uint8Array
659
+ ) => Observable<Vec<Key>>
660
+ >;
661
+ /**
662
+ * Get the checkpoint challenge period.
663
+ **/
664
+ getCheckpointChallengePeriod: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
665
+ /**
666
+ * Get checkpoint challenges for a given block.
667
+ **/
668
+ getCheckpointChallenges: AugmentedCall<
669
+ ApiType,
670
+ (
671
+ tick: BlockNumber | AnyNumber | Uint8Array
672
+ ) => Observable<
673
+ Result<Vec<ITuple<[Key, Option<TrieRemoveMutation>]>>, GetCheckpointChallengesError>
674
+ >
675
+ >;
676
+ /**
677
+ * Get the current tick.
678
+ **/
679
+ getCurrentTick: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
680
+ /**
681
+ * Get forest challenges from a seed.
682
+ **/
683
+ getForestChallengesFromSeed: AugmentedCall<
684
+ ApiType,
685
+ (
686
+ seed: RandomnessOutput | string | Uint8Array,
687
+ providerId: ProviderId | string | Uint8Array
688
+ ) => Observable<Vec<Key>>
689
+ >;
690
+ /**
691
+ * Get the last checkpoint challenge tick.
692
+ **/
693
+ getLastCheckpointChallengeTick: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
694
+ /**
695
+ * Get the last tick for which the submitter submitted a proof.
696
+ **/
697
+ getLastTickProviderSubmittedProof: AugmentedCall<
698
+ ApiType,
699
+ (
700
+ providerId: ProviderId | string | Uint8Array
701
+ ) => Observable<Result<BlockNumber, GetProofSubmissionRecordError>>
702
+ >;
703
+ /**
704
+ * Get the next deadline tick.
705
+ **/
706
+ getNextDeadlineTick: AugmentedCall<
707
+ ApiType,
708
+ (
709
+ providerId: ProviderId | string | Uint8Array
710
+ ) => Observable<Result<BlockNumber, GetNextDeadlineTickError>>
711
+ >;
712
+ /**
713
+ * Get the next tick for which the submitter should submit a proof.
714
+ **/
715
+ getNextTickToSubmitProofFor: AugmentedCall<
716
+ ApiType,
717
+ (
718
+ providerId: ProviderId | string | Uint8Array
719
+ ) => Observable<Result<BlockNumber, GetProofSubmissionRecordError>>
720
+ >;
721
+ /**
722
+ * Generic call
723
+ **/
724
+ [key: string]: DecoratedCallBase<ApiType>;
725
+ };
726
+ /** 0xab3c0572291feb8b/1 */
727
+ sessionKeys: {
728
+ /**
729
+ * Decode the given public session keys.
730
+ **/
731
+ decodeSessionKeys: AugmentedCall<
732
+ ApiType,
733
+ (
734
+ encoded: Bytes | string | Uint8Array
735
+ ) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>
736
+ >;
737
+ /**
738
+ * Generate a set of session keys with optionally using the given seed.
739
+ **/
740
+ generateSessionKeys: AugmentedCall<
741
+ ApiType,
742
+ (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>
743
+ >;
744
+ /**
745
+ * Generic call
746
+ **/
747
+ [key: string]: DecoratedCallBase<ApiType>;
748
+ };
749
+ /** 0x966604ffe78eb092/1 */
750
+ storageProvidersApi: {
751
+ /**
752
+ * Check if a provider can be deleted.
753
+ **/
754
+ canDeleteProvider: AugmentedCall<
755
+ ApiType,
756
+ (providerId: ProviderId | string | Uint8Array) => Observable<bool>
757
+ >;
758
+ /**
759
+ * Get the BSP info for a given BSP ID.
760
+ **/
761
+ getBspInfo: AugmentedCall<
762
+ ApiType,
763
+ (
764
+ bspId: BackupStorageProviderId | string | Uint8Array
765
+ ) => Observable<Result<BackupStorageProvider, GetBspInfoError>>
766
+ >;
767
+ /**
768
+ * Get the stake of a BSP.
769
+ **/
770
+ getBspStake: AugmentedCall<
771
+ ApiType,
772
+ (
773
+ bspId: BackupStorageProviderId | string | Uint8Array
774
+ ) => Observable<Result<Balance, GetStakeError>>
775
+ >;
776
+ /**
777
+ * Get the slashable amount corresponding to the configured max file size.
778
+ **/
779
+ getSlashAmountPerMaxFileSize: AugmentedCall<ApiType, () => Observable<Balance>>;
780
+ /**
781
+ * Get the Storage Provider ID for a given Account ID.
782
+ **/
783
+ getStorageProviderId: AugmentedCall<
784
+ ApiType,
785
+ (who: AccountId | string | Uint8Array) => Observable<Option<StorageProviderId>>
786
+ >;
787
+ /**
788
+ * Get the worst case scenario slashable amount for a provider.
789
+ **/
790
+ getWorstCaseScenarioSlashableAmount: AugmentedCall<
791
+ ApiType,
792
+ (providerId: ProviderId | string | Uint8Array) => Observable<Option<Balance>>
793
+ >;
794
+ /**
795
+ * Query the available storage capacity.
796
+ **/
797
+ queryAvailableStorageCapacity: AugmentedCall<
798
+ ApiType,
799
+ (
800
+ providerId: ProviderId | string | Uint8Array
801
+ ) => Observable<Result<StorageDataUnit, QueryAvailableStorageCapacityError>>
802
+ >;
803
+ /**
804
+ * Get the Buckets that an MSP is storing.
805
+ **/
806
+ queryBucketsForMsp: AugmentedCall<
807
+ ApiType,
808
+ (
809
+ mspId: MainStorageProviderId | string | Uint8Array
810
+ ) => Observable<Result<Vec<BucketId>, QueryBucketsForMspError>>
811
+ >;
812
+ /**
813
+ * Query the buckets stored by an MSP that belong to a specific user.
814
+ **/
815
+ queryBucketsOfUserStoredByMsp: AugmentedCall<
816
+ ApiType,
817
+ (
818
+ mspId: ProviderId | string | Uint8Array,
819
+ user: AccountId | string | Uint8Array
820
+ ) => Observable<Result<Vec<H256>, QueryBucketsOfUserStoredByMspError>>
821
+ >;
822
+ /**
823
+ * Query the earliest block number that a BSP can change its capacity.
824
+ **/
825
+ queryEarliestChangeCapacityBlock: AugmentedCall<
826
+ ApiType,
827
+ (
828
+ providerId: BackupStorageProviderId | string | Uint8Array
829
+ ) => Observable<Result<BlockNumber, QueryEarliestChangeCapacityBlockError>>
830
+ >;
831
+ /**
832
+ * Query the MSP ID of a bucket ID.
833
+ **/
834
+ queryMspIdOfBucketId: AugmentedCall<
835
+ ApiType,
836
+ (
837
+ bucketId: H256 | string | Uint8Array
838
+ ) => Observable<Result<ProviderId, QueryMspIdOfBucketIdError>>
839
+ >;
840
+ /**
841
+ * Query the provider's multiaddresses.
842
+ **/
843
+ queryProviderMultiaddresses: AugmentedCall<
844
+ ApiType,
845
+ (
846
+ providerId: ProviderId | string | Uint8Array
847
+ ) => Observable<Result<Multiaddresses, QueryProviderMultiaddressesError>>
848
+ >;
849
+ /**
850
+ * Query the storage provider capacity.
851
+ **/
852
+ queryStorageProviderCapacity: AugmentedCall<
853
+ ApiType,
854
+ (
855
+ providerId: ProviderId | string | Uint8Array
856
+ ) => Observable<Result<StorageDataUnit, QueryStorageProviderCapacityError>>
857
+ >;
858
+ /**
859
+ * Query the value propositions for a MSP.
860
+ **/
861
+ queryValuePropositionsForMsp: AugmentedCall<
862
+ ApiType,
863
+ (
864
+ mspId: MainStorageProviderId | string | Uint8Array
865
+ ) => Observable<Vec<ValuePropositionWithId>>
866
+ >;
867
+ /**
868
+ * Generic call
869
+ **/
870
+ [key: string]: DecoratedCallBase<ApiType>;
871
+ };
872
+ /** 0xd2bc9897eed08f15/3 */
873
+ taggedTransactionQueue: {
874
+ /**
875
+ * Validate the transaction.
876
+ **/
877
+ validateTransaction: AugmentedCall<
878
+ ApiType,
879
+ (
880
+ source: TransactionSource | "InBlock" | "Local" | "External" | number | Uint8Array,
881
+ tx: Extrinsic | IExtrinsic | string | Uint8Array,
882
+ blockHash: BlockHash | string | Uint8Array
883
+ ) => Observable<TransactionValidity>
884
+ >;
885
+ /**
886
+ * Generic call
887
+ **/
888
+ [key: string]: DecoratedCallBase<ApiType>;
889
+ };
890
+ /** 0x37c8bb1350a9a2a8/4 */
891
+ transactionPaymentApi: {
892
+ /**
893
+ * The transaction fee details
894
+ **/
895
+ queryFeeDetails: AugmentedCall<
896
+ ApiType,
897
+ (
898
+ uxt: Extrinsic | IExtrinsic | string | Uint8Array,
899
+ len: u32 | AnyNumber | Uint8Array
900
+ ) => Observable<FeeDetails>
901
+ >;
902
+ /**
903
+ * The transaction info
904
+ **/
905
+ queryInfo: AugmentedCall<
906
+ ApiType,
907
+ (
908
+ uxt: Extrinsic | IExtrinsic | string | Uint8Array,
909
+ len: u32 | AnyNumber | Uint8Array
910
+ ) => Observable<RuntimeDispatchInfo>
911
+ >;
912
+ /**
913
+ * Query the output of the current LengthToFee given some input
914
+ **/
915
+ queryLengthToFee: AugmentedCall<
916
+ ApiType,
917
+ (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
918
+ >;
919
+ /**
920
+ * Query the output of the current WeightToFee given some input
921
+ **/
922
+ queryWeightToFee: AugmentedCall<
923
+ ApiType,
924
+ (
925
+ weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array
926
+ ) => Observable<Balance>
927
+ >;
928
+ /**
929
+ * Generic call
930
+ **/
931
+ [key: string]: DecoratedCallBase<ApiType>;
932
+ };
933
+ /** 0xf3ff14d5ab527059/3 */
934
+ transactionPaymentCallApi: {
935
+ /**
936
+ * The call fee details
937
+ **/
938
+ queryCallFeeDetails: AugmentedCall<
939
+ ApiType,
940
+ (
941
+ call: Call | IMethod | string | Uint8Array,
942
+ len: u32 | AnyNumber | Uint8Array
943
+ ) => Observable<FeeDetails>
944
+ >;
945
+ /**
946
+ * The call info
947
+ **/
948
+ queryCallInfo: AugmentedCall<
949
+ ApiType,
950
+ (
951
+ call: Call | IMethod | string | Uint8Array,
952
+ len: u32 | AnyNumber | Uint8Array
953
+ ) => Observable<RuntimeDispatchInfo>
954
+ >;
955
+ /**
956
+ * Query the output of the current LengthToFee given some input
957
+ **/
958
+ queryLengthToFee: AugmentedCall<
959
+ ApiType,
960
+ (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
961
+ >;
962
+ /**
963
+ * Query the output of the current WeightToFee given some input
964
+ **/
965
+ queryWeightToFee: AugmentedCall<
966
+ ApiType,
967
+ (
968
+ weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array
969
+ ) => Observable<Balance>
970
+ >;
971
+ /**
972
+ * Generic call
973
+ **/
974
+ [key: string]: DecoratedCallBase<ApiType>;
975
+ };
976
+ } // AugmentedCalls
977
+ } // declare module