@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,535 @@
1
+ import "@polkadot/api-base/types/calls";
2
+ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from "@polkadot/api-base/types";
3
+ import type { BTreeMap, Bytes, Null, Option, Result, U256, Vec, bool, u256, u32, u64 } from "@polkadot/types-codec";
4
+ import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
5
+ import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from "@polkadot/types/interfaces/babe";
6
+ import type { CheckInherentsResult, InherentData } from "@polkadot/types/interfaces/blockbuilder";
7
+ import type { BlockHash } from "@polkadot/types/interfaces/chain";
8
+ import type { AuthorityId } from "@polkadot/types/interfaces/consensus";
9
+ import type { BlockV2, EthReceiptV3, EthTransactionStatus, TransactionV2 } from "@polkadot/types/interfaces/eth";
10
+ import type { EvmAccount, EvmCallInfoV2, EvmCreateInfoV2 } from "@polkadot/types/interfaces/evm";
11
+ import type { Extrinsic } from "@polkadot/types/interfaces/extrinsics";
12
+ import type { GenesisBuildErr } from "@polkadot/types/interfaces/genesisBuilder";
13
+ import type { AuthorityList, GrandpaEquivocationProof, SetId } from "@polkadot/types/interfaces/grandpa";
14
+ import type { OpaqueMetadata } from "@polkadot/types/interfaces/metadata";
15
+ import type { FeeDetails, RuntimeDispatchInfo } from "@polkadot/types/interfaces/payment";
16
+ import type { AccountId, Balance, Block, BlockNumber, Call, ExtrinsicInclusionMode, H160, H256, Header, Index, KeyTypeId, Permill, Slot, Weight } from "@polkadot/types/interfaces/runtime";
17
+ import type { RuntimeVersion } from "@polkadot/types/interfaces/state";
18
+ import type { ApplyExtrinsicResult, DispatchError, Key } from "@polkadot/types/interfaces/system";
19
+ import type { TransactionSource, TransactionValidity } from "@polkadot/types/interfaces/txqueue";
20
+ import type { IExtrinsic, Observable } from "@polkadot/types/types";
21
+ import type { BackupStorageProvider, BackupStorageProviderId, BucketId, ChunkId, GenericApplyDeltaEventInfoError, GetBspInfoError, GetChallengePeriodError, GetChallengeSeedError, GetCheckpointChallengesError, GetNextDeadlineTickError, GetProofSubmissionRecordError, GetStakeError, GetUsersWithDebtOverThresholdError, IncompleteStorageRequestMetadataResponse, IsStorageRequestOpenToVolunteersError, MainStorageProviderId, Multiaddresses, ProviderId, QueryAvailableStorageCapacityError, QueryBspConfirmChunksToProveForFileError, QueryBucketsForMspError, QueryBucketsOfUserStoredByMspError, QueryEarliestChangeCapacityBlockError, QueryFileEarliestVolunteerBlockError, QueryIncompleteStorageRequestMetadataError, QueryMspConfirmChunksToProveForFileError, QueryMspIdOfBucketIdError, QueryProviderMultiaddressesError, QueryStorageProviderCapacityError, RandomnessOutput, StorageDataUnit, StorageProviderId, StorageRequestMetadata, TrieRemoveMutation, ValuePropositionWithId } from "@storagehub/api-augment/solochain-evm/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
+ /** 0xcbca25e39f142387/2 */
38
+ babeApi: {
39
+ /**
40
+ * Return the genesis configuration for BABE. The configuration is only read on genesis.
41
+ **/
42
+ configuration: AugmentedCall<ApiType, () => Observable<BabeGenesisConfiguration>>;
43
+ /**
44
+ * Returns information regarding the current epoch.
45
+ **/
46
+ currentEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
47
+ /**
48
+ * Returns the slot that started the current epoch.
49
+ **/
50
+ currentEpochStart: AugmentedCall<ApiType, () => Observable<Slot>>;
51
+ /**
52
+ * Generates a proof of key ownership for the given authority in the current epoch.
53
+ **/
54
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (slot: Slot | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
55
+ /**
56
+ * Returns information regarding the next epoch (which was already previously announced).
57
+ **/
58
+ nextEpoch: AugmentedCall<ApiType, () => Observable<Epoch>>;
59
+ /**
60
+ * Submits an unsigned extrinsic to report an equivocation.
61
+ **/
62
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BabeEquivocationProof | {
63
+ offender?: any;
64
+ slotNumber?: any;
65
+ firstHeader?: any;
66
+ secondHeader?: any;
67
+ } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
68
+ /**
69
+ * Generic call
70
+ **/
71
+ [key: string]: DecoratedCallBase<ApiType>;
72
+ };
73
+ /** 0x40fe3ad401f8959a/6 */
74
+ blockBuilder: {
75
+ /**
76
+ * Apply the given extrinsic.
77
+ **/
78
+ applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<ApplyExtrinsicResult>>;
79
+ /**
80
+ * Check that the inherents are valid.
81
+ **/
82
+ checkInherents: AugmentedCall<ApiType, (block: Block | {
83
+ header?: any;
84
+ extrinsics?: any;
85
+ } | string | Uint8Array, data: InherentData | {
86
+ data?: any;
87
+ } | string | Uint8Array) => Observable<CheckInherentsResult>>;
88
+ /**
89
+ * Finish the current block.
90
+ **/
91
+ finalizeBlock: AugmentedCall<ApiType, () => Observable<Header>>;
92
+ /**
93
+ * Generate inherent extrinsics.
94
+ **/
95
+ inherentExtrinsics: AugmentedCall<ApiType, (inherent: InherentData | {
96
+ data?: any;
97
+ } | string | Uint8Array) => Observable<Vec<Extrinsic>>>;
98
+ /**
99
+ * Generic call
100
+ **/
101
+ [key: string]: DecoratedCallBase<ApiType>;
102
+ };
103
+ /** 0xe65b00e46cedd0aa/2 */
104
+ convertTransactionRuntimeApi: {
105
+ /**
106
+ * Converts an Ethereum-style transaction to Extrinsic
107
+ **/
108
+ convertTransaction: AugmentedCall<ApiType, (transaction: TransactionV2 | {
109
+ Legacy: any;
110
+ } | {
111
+ EIP2930: any;
112
+ } | {
113
+ EIP1559: any;
114
+ } | string | Uint8Array) => Observable<Extrinsic>>;
115
+ /**
116
+ * Generic call
117
+ **/
118
+ [key: string]: DecoratedCallBase<ApiType>;
119
+ };
120
+ /** 0xdf6acb689907609b/5 */
121
+ core: {
122
+ /**
123
+ * Execute the given block.
124
+ **/
125
+ executeBlock: AugmentedCall<ApiType, (block: Block | {
126
+ header?: any;
127
+ extrinsics?: any;
128
+ } | string | Uint8Array) => Observable<Null>>;
129
+ /**
130
+ * Initialize a block with the given header.
131
+ **/
132
+ initializeBlock: AugmentedCall<ApiType, (header: Header | {
133
+ parentHash?: any;
134
+ number?: any;
135
+ stateRoot?: any;
136
+ extrinsicsRoot?: any;
137
+ digest?: any;
138
+ } | string | Uint8Array) => Observable<ExtrinsicInclusionMode>>;
139
+ /**
140
+ * Returns the version of the runtime.
141
+ **/
142
+ version: AugmentedCall<ApiType, () => Observable<RuntimeVersion>>;
143
+ /**
144
+ * Generic call
145
+ **/
146
+ [key: string]: DecoratedCallBase<ApiType>;
147
+ };
148
+ /** 0x582211f65bb14b89/5 */
149
+ ethereumRuntimeRPCApi: {
150
+ /**
151
+ * Returns pallet_evm::Accounts by address.
152
+ **/
153
+ accountBasic: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<EvmAccount>>;
154
+ /**
155
+ * For a given account address, returns pallet_evm::AccountCodes.
156
+ **/
157
+ accountCodeAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array) => Observable<Bytes>>;
158
+ /**
159
+ * Returns the converted FindAuthor::find_author authority id.
160
+ **/
161
+ author: AugmentedCall<ApiType, () => Observable<H160>>;
162
+ /**
163
+ * Returns a frame_ethereum::call response. If `estimate` is true,
164
+ **/
165
+ call: AugmentedCall<ApiType, (from: H160 | string | Uint8Array, to: H160 | string | Uint8Array, data: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: U256 | AnyNumber | Uint8Array, maxFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, estimate: bool | boolean | Uint8Array, accessList: Option<Vec<ITuple<[H160, Vec<H256>]>>> | null | Uint8Array | Vec<ITuple<[H160, Vec<H256>]>> | [H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]][]) => Observable<Result<EvmCallInfoV2, DispatchError>>>;
166
+ /**
167
+ * Returns runtime defined pallet_evm::ChainId.
168
+ **/
169
+ chainId: AugmentedCall<ApiType, () => Observable<u64>>;
170
+ /**
171
+ * Returns a frame_ethereum::call response. If `estimate` is true,
172
+ **/
173
+ create: AugmentedCall<ApiType, (from: H160 | string | Uint8Array, data: Bytes | string | Uint8Array, value: U256 | AnyNumber | Uint8Array, gasLimit: U256 | AnyNumber | Uint8Array, maxFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, maxPriorityFeePerGas: Option<U256> | null | Uint8Array | U256 | AnyNumber, nonce: Option<U256> | null | Uint8Array | U256 | AnyNumber, estimate: bool | boolean | Uint8Array, accessList: Option<Vec<ITuple<[H160, Vec<H256>]>>> | null | Uint8Array | Vec<ITuple<[H160, Vec<H256>]>> | [H160 | string | Uint8Array, Vec<H256> | (H256 | string | Uint8Array)[]][]) => Observable<Result<EvmCreateInfoV2, DispatchError>>>;
174
+ /**
175
+ * Return all the current data for a block in a single runtime call.
176
+ **/
177
+ currentAll: AugmentedCall<ApiType, () => Observable<ITuple<[Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>]>>>;
178
+ /**
179
+ * Return the current block.
180
+ **/
181
+ currentBlock: AugmentedCall<ApiType, () => Observable<BlockV2>>;
182
+ /**
183
+ * Return the current receipt.
184
+ **/
185
+ currentReceipts: AugmentedCall<ApiType, () => Observable<Option<Vec<EthReceiptV3>>>>;
186
+ /**
187
+ * Return the current transaction status.
188
+ **/
189
+ currentTransactionStatuses: AugmentedCall<ApiType, () => Observable<Option<Vec<EthTransactionStatus>>>>;
190
+ /**
191
+ * Return the elasticity multiplier.
192
+ **/
193
+ elasticity: AugmentedCall<ApiType, () => Observable<Option<Permill>>>;
194
+ /**
195
+ * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.
196
+ **/
197
+ extrinsicFilter: AugmentedCall<ApiType, (xts: Vec<Extrinsic> | (Extrinsic | IExtrinsic | string | Uint8Array)[]) => Observable<Vec<TransactionV2>>>;
198
+ /**
199
+ * Returns FixedGasPrice::min_gas_price
200
+ **/
201
+ gasPrice: AugmentedCall<ApiType, () => Observable<u256>>;
202
+ /**
203
+ * For a given account address and index, returns pallet_evm::AccountStorages.
204
+ **/
205
+ storageAt: AugmentedCall<ApiType, (address: H160 | string | Uint8Array, index: u256 | AnyNumber | Uint8Array) => Observable<H256>>;
206
+ /**
207
+ * Generic call
208
+ **/
209
+ [key: string]: DecoratedCallBase<ApiType>;
210
+ };
211
+ /** 0xb9e7717ace5b45cd/1 */
212
+ fileSystemApi: {
213
+ /**
214
+ * Decodes the BucketId expected to be found in the event info of a generic apply delta.
215
+ **/
216
+ decodeGenericApplyDeltaEventInfo: AugmentedCall<ApiType, (encodedEventInfo: Bytes | string | Uint8Array) => Observable<Result<BucketId, GenericApplyDeltaEventInfoError>>>;
217
+ /**
218
+ * Check if a storage request is open to volunteers.
219
+ **/
220
+ isStorageRequestOpenToVolunteers: AugmentedCall<ApiType, (fileKey: H256 | string | Uint8Array) => Observable<Result<bool, IsStorageRequestOpenToVolunteersError>>>;
221
+ /**
222
+ * Get pending storage requests for a Main Storage Provider.
223
+ **/
224
+ pendingStorageRequestsByMsp: AugmentedCall<ApiType, (mspId: MainStorageProviderId | string | Uint8Array) => Observable<BTreeMap<H256, StorageRequestMetadata>>>;
225
+ /**
226
+ * Query the chunks that a BSP needs to prove to confirm that it is storing a file.
227
+ **/
228
+ queryBspConfirmChunksToProveForFile: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array, fileKey: H256 | string | Uint8Array) => Observable<Result<Vec<ChunkId>, QueryBspConfirmChunksToProveForFileError>>>;
229
+ /**
230
+ * Query the earliest tick number that a BSP can volunteer for a file.
231
+ **/
232
+ queryEarliestFileVolunteerTick: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array, fileKey: H256 | string | Uint8Array) => Observable<Result<BlockNumber, QueryFileEarliestVolunteerBlockError>>>;
233
+ /**
234
+ * Query incomplete storage request metadata for a file key.
235
+ **/
236
+ queryIncompleteStorageRequestMetadata: AugmentedCall<ApiType, (fileKey: H256 | string | Uint8Array) => Observable<Result<IncompleteStorageRequestMetadataResponse, QueryIncompleteStorageRequestMetadataError>>>;
237
+ /**
238
+ * Query the chunks that a MSP needs to prove to confirm that it is storing a file.
239
+ **/
240
+ queryMspConfirmChunksToProveForFile: AugmentedCall<ApiType, (mspId: MainStorageProviderId | string | Uint8Array, fileKey: H256 | string | Uint8Array) => Observable<Result<Vec<ChunkId>, QueryMspConfirmChunksToProveForFileError>>>;
241
+ /**
242
+ * Generic call
243
+ **/
244
+ [key: string]: DecoratedCallBase<ApiType>;
245
+ };
246
+ /** 0xfbc577b9d747efd6/1 */
247
+ genesisBuilder: {
248
+ /**
249
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
250
+ **/
251
+ buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
252
+ /**
253
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
254
+ **/
255
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
256
+ /**
257
+ * Generic call
258
+ **/
259
+ [key: string]: DecoratedCallBase<ApiType>;
260
+ };
261
+ /** 0xed99c5acb25eedf5/3 */
262
+ grandpaApi: {
263
+ /**
264
+ * Get current GRANDPA authority set id.
265
+ **/
266
+ currentSetId: AugmentedCall<ApiType, () => Observable<SetId>>;
267
+ /**
268
+ * Generates a proof of key ownership for the given authority in the given set.
269
+ **/
270
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: SetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
271
+ /**
272
+ * Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
273
+ **/
274
+ grandpaAuthorities: AugmentedCall<ApiType, () => Observable<AuthorityList>>;
275
+ /**
276
+ * Submits an unsigned extrinsic to report an equivocation.
277
+ **/
278
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: GrandpaEquivocationProof | {
279
+ setId?: any;
280
+ equivocation?: any;
281
+ } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
282
+ /**
283
+ * Generic call
284
+ **/
285
+ [key: string]: DecoratedCallBase<ApiType>;
286
+ };
287
+ /** 0x37e397fc7c91f5e4/2 */
288
+ metadata: {
289
+ /**
290
+ * Returns the metadata of a runtime
291
+ **/
292
+ metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
293
+ /**
294
+ * Returns the metadata at a given version.
295
+ **/
296
+ metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
297
+ /**
298
+ * Returns the supported metadata versions.
299
+ **/
300
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
301
+ /**
302
+ * Generic call
303
+ **/
304
+ [key: string]: DecoratedCallBase<ApiType>;
305
+ };
306
+ /** 0xf78b278be53f454c/2 */
307
+ offchainWorkerApi: {
308
+ /**
309
+ * Starts the off-chain task for given block header.
310
+ **/
311
+ offchainWorker: AugmentedCall<ApiType, (header: Header | {
312
+ parentHash?: any;
313
+ number?: any;
314
+ stateRoot?: any;
315
+ extrinsicsRoot?: any;
316
+ digest?: any;
317
+ } | string | Uint8Array) => Observable<Null>>;
318
+ /**
319
+ * Generic call
320
+ **/
321
+ [key: string]: DecoratedCallBase<ApiType>;
322
+ };
323
+ /** 0x1078d7ac24a07b0e/1 */
324
+ paymentStreamsApi: {
325
+ /**
326
+ * Get the Providers that have at least one payment stream with a specific user.
327
+ **/
328
+ getProvidersWithPaymentStreamsWithUser: AugmentedCall<ApiType, (userAccount: AccountId | string | Uint8Array) => Observable<Vec<ProviderId>>>;
329
+ /**
330
+ * Get the payment streams of a provider.
331
+ **/
332
+ getUsersOfPaymentStreamsOfProvider: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Vec<AccountId>>>;
333
+ /**
334
+ * Get the users that have a debt to the provider greater than the threshold.
335
+ **/
336
+ getUsersWithDebtOverThreshold: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array, threshold: Balance | AnyNumber | Uint8Array) => Observable<Result<Vec<AccountId>, GetUsersWithDebtOverThresholdError>>>;
337
+ /**
338
+ * Generic call
339
+ **/
340
+ [key: string]: DecoratedCallBase<ApiType>;
341
+ };
342
+ /** 0x0be7208954c7c6c9/1 */
343
+ proofsDealerApi: {
344
+ /**
345
+ * Get the challenge period for a given Provider.
346
+ **/
347
+ getChallengePeriod: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<BlockNumber, GetChallengePeriodError>>>;
348
+ /**
349
+ * Get the seed for a given challenge tick.
350
+ **/
351
+ getChallengeSeed: AugmentedCall<ApiType, (tick: BlockNumber | AnyNumber | Uint8Array) => Observable<Result<RandomnessOutput, GetChallengeSeedError>>>;
352
+ /**
353
+ * Get challenges from a seed.
354
+ **/
355
+ getChallengesFromSeed: AugmentedCall<ApiType, (seed: RandomnessOutput | string | Uint8Array, providerId: ProviderId | string | Uint8Array, count: u32 | AnyNumber | Uint8Array) => Observable<Vec<Key>>>;
356
+ /**
357
+ * Get the checkpoint challenge period.
358
+ **/
359
+ getCheckpointChallengePeriod: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
360
+ /**
361
+ * Get checkpoint challenges for a given block.
362
+ **/
363
+ getCheckpointChallenges: AugmentedCall<ApiType, (tick: BlockNumber | AnyNumber | Uint8Array) => Observable<Result<Vec<ITuple<[Key, Option<TrieRemoveMutation>]>>, GetCheckpointChallengesError>>>;
364
+ /**
365
+ * Get the current tick.
366
+ **/
367
+ getCurrentTick: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
368
+ /**
369
+ * Get forest challenges from a seed.
370
+ **/
371
+ getForestChallengesFromSeed: AugmentedCall<ApiType, (seed: RandomnessOutput | string | Uint8Array, providerId: ProviderId | string | Uint8Array) => Observable<Vec<Key>>>;
372
+ /**
373
+ * Get the last checkpoint challenge tick.
374
+ **/
375
+ getLastCheckpointChallengeTick: AugmentedCall<ApiType, () => Observable<BlockNumber>>;
376
+ /**
377
+ * Get the last tick for which the submitter submitted a proof.
378
+ **/
379
+ getLastTickProviderSubmittedProof: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<BlockNumber, GetProofSubmissionRecordError>>>;
380
+ /**
381
+ * Get the next deadline tick.
382
+ **/
383
+ getNextDeadlineTick: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<BlockNumber, GetNextDeadlineTickError>>>;
384
+ /**
385
+ * Get the next tick for which the submitter should submit a proof.
386
+ **/
387
+ getNextTickToSubmitProofFor: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<BlockNumber, GetProofSubmissionRecordError>>>;
388
+ /**
389
+ * Generic call
390
+ **/
391
+ [key: string]: DecoratedCallBase<ApiType>;
392
+ };
393
+ /** 0xab3c0572291feb8b/1 */
394
+ sessionKeys: {
395
+ /**
396
+ * Decode the given public session keys.
397
+ **/
398
+ decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, KeyTypeId]>>>>>;
399
+ /**
400
+ * Generate a set of session keys with optionally using the given seed.
401
+ **/
402
+ generateSessionKeys: AugmentedCall<ApiType, (seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<Bytes>>;
403
+ /**
404
+ * Generic call
405
+ **/
406
+ [key: string]: DecoratedCallBase<ApiType>;
407
+ };
408
+ /** 0x966604ffe78eb092/1 */
409
+ storageProvidersApi: {
410
+ /**
411
+ * Check if a provider can be deleted.
412
+ **/
413
+ canDeleteProvider: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<bool>>;
414
+ /**
415
+ * Get the BSP info for a given BSP ID.
416
+ **/
417
+ getBspInfo: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array) => Observable<Result<BackupStorageProvider, GetBspInfoError>>>;
418
+ /**
419
+ * Get the stake of a BSP.
420
+ **/
421
+ getBspStake: AugmentedCall<ApiType, (bspId: BackupStorageProviderId | string | Uint8Array) => Observable<Result<Balance, GetStakeError>>>;
422
+ /**
423
+ * Get the slashable amount corresponding to the configured max file size.
424
+ **/
425
+ getSlashAmountPerMaxFileSize: AugmentedCall<ApiType, () => Observable<Balance>>;
426
+ /**
427
+ * Get the Storage Provider ID for a given Account ID.
428
+ **/
429
+ getStorageProviderId: AugmentedCall<ApiType, (who: AccountId | string | Uint8Array) => Observable<Option<StorageProviderId>>>;
430
+ /**
431
+ * Get the worst case scenario slashable amount for a provider.
432
+ **/
433
+ getWorstCaseScenarioSlashableAmount: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Option<Balance>>>;
434
+ /**
435
+ * Query the available storage capacity.
436
+ **/
437
+ queryAvailableStorageCapacity: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<StorageDataUnit, QueryAvailableStorageCapacityError>>>;
438
+ /**
439
+ * Get the Buckets that an MSP is storing.
440
+ **/
441
+ queryBucketsForMsp: AugmentedCall<ApiType, (mspId: MainStorageProviderId | string | Uint8Array) => Observable<Result<Vec<BucketId>, QueryBucketsForMspError>>>;
442
+ /**
443
+ * Query the buckets stored by an MSP that belong to a specific user.
444
+ **/
445
+ queryBucketsOfUserStoredByMsp: AugmentedCall<ApiType, (mspId: ProviderId | string | Uint8Array, user: AccountId | string | Uint8Array) => Observable<Result<Vec<H256>, QueryBucketsOfUserStoredByMspError>>>;
446
+ /**
447
+ * Query the earliest block number that a BSP can change its capacity.
448
+ **/
449
+ queryEarliestChangeCapacityBlock: AugmentedCall<ApiType, (providerId: BackupStorageProviderId | string | Uint8Array) => Observable<Result<BlockNumber, QueryEarliestChangeCapacityBlockError>>>;
450
+ /**
451
+ * Query the MSP ID of a bucket ID.
452
+ **/
453
+ queryMspIdOfBucketId: AugmentedCall<ApiType, (bucketId: H256 | string | Uint8Array) => Observable<Result<ProviderId, QueryMspIdOfBucketIdError>>>;
454
+ /**
455
+ * Query the provider's multiaddresses.
456
+ **/
457
+ queryProviderMultiaddresses: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<Multiaddresses, QueryProviderMultiaddressesError>>>;
458
+ /**
459
+ * Query the storage provider capacity.
460
+ **/
461
+ queryStorageProviderCapacity: AugmentedCall<ApiType, (providerId: ProviderId | string | Uint8Array) => Observable<Result<StorageDataUnit, QueryStorageProviderCapacityError>>>;
462
+ /**
463
+ * Query the value propositions for a MSP.
464
+ **/
465
+ queryValuePropositionsForMsp: AugmentedCall<ApiType, (mspId: MainStorageProviderId | string | Uint8Array) => Observable<Vec<ValuePropositionWithId>>>;
466
+ /**
467
+ * Generic call
468
+ **/
469
+ [key: string]: DecoratedCallBase<ApiType>;
470
+ };
471
+ /** 0xd2bc9897eed08f15/3 */
472
+ taggedTransactionQueue: {
473
+ /**
474
+ * Validate the transaction.
475
+ **/
476
+ validateTransaction: AugmentedCall<ApiType, (source: TransactionSource | "InBlock" | "Local" | "External" | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, blockHash: BlockHash | string | Uint8Array) => Observable<TransactionValidity>>;
477
+ /**
478
+ * Generic call
479
+ **/
480
+ [key: string]: DecoratedCallBase<ApiType>;
481
+ };
482
+ /** 0x37c8bb1350a9a2a8/4 */
483
+ transactionPaymentApi: {
484
+ /**
485
+ * The transaction fee details
486
+ **/
487
+ queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
488
+ /**
489
+ * The transaction info
490
+ **/
491
+ queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
492
+ /**
493
+ * Query the output of the current LengthToFee given some input
494
+ **/
495
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
496
+ /**
497
+ * Query the output of the current WeightToFee given some input
498
+ **/
499
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
500
+ refTime?: any;
501
+ proofSize?: any;
502
+ } | string | Uint8Array) => Observable<Balance>>;
503
+ /**
504
+ * Generic call
505
+ **/
506
+ [key: string]: DecoratedCallBase<ApiType>;
507
+ };
508
+ /** 0xf3ff14d5ab527059/3 */
509
+ transactionPaymentCallApi: {
510
+ /**
511
+ * The call fee details
512
+ **/
513
+ queryCallFeeDetails: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
514
+ /**
515
+ * The call info
516
+ **/
517
+ queryCallInfo: AugmentedCall<ApiType, (call: Call | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
518
+ /**
519
+ * Query the output of the current LengthToFee given some input
520
+ **/
521
+ queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
522
+ /**
523
+ * Query the output of the current WeightToFee given some input
524
+ **/
525
+ queryWeightToFee: AugmentedCall<ApiType, (weight: Weight | {
526
+ refTime?: any;
527
+ proofSize?: any;
528
+ } | string | Uint8Array) => Observable<Balance>>;
529
+ /**
530
+ * Generic call
531
+ **/
532
+ [key: string]: DecoratedCallBase<ApiType>;
533
+ };
534
+ }
535
+ }