@storagehub/api-augment 0.1.0 → 0.2.1

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