@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
@@ -67,7 +67,6 @@ import type { FeeDetails, RuntimeDispatchInfoV1 } from "@polkadot/types/interfac
67
67
  import type { RpcMethods } from "@polkadot/types/interfaces/rpc";
68
68
  import type {
69
69
  AccountId,
70
- AccountId32,
71
70
  BlockNumber,
72
71
  H160,
73
72
  H256,
@@ -98,10 +97,14 @@ import type {
98
97
  } from "@polkadot/types/interfaces/system";
99
98
  import type { IExtrinsic, Observable } from "@polkadot/types/types";
100
99
  import type {
100
+ AddFilesToForestStorageResult,
101
+ CheckpointChallenge,
101
102
  FileMetadata,
102
103
  GetFileFromFileStorageResult,
104
+ LoadFileInStorageResult,
105
+ RemoveFilesFromForestStorageResult,
103
106
  SaveFileToDisk
104
- } from "@storagehub/api-augment/interfaces/storagehubclient";
107
+ } from "@storagehub/api-augment/parachain/interfaces/storagehubclient";
105
108
 
106
109
  export type __AugmentedRpc = AugmentedRpc<() => unknown>;
107
110
 
@@ -782,6 +785,15 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
782
785
  version: AugmentedRpc<() => Observable<Text>>;
783
786
  };
784
787
  offchain: {
788
+ /**
789
+ * Clear offchain local storage under given key and prefix
790
+ **/
791
+ localStorageClear: AugmentedRpc<
792
+ (
793
+ kind: StorageKind | "PERSISTENT" | "LOCAL" | number | Uint8Array,
794
+ key: Bytes | string | Uint8Array
795
+ ) => Observable<Null>
796
+ >;
785
797
  /**
786
798
  * Get offchain local storage under given key and prefix
787
799
  **/
@@ -1026,6 +1038,52 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
1026
1038
  >;
1027
1039
  };
1028
1040
  storagehubclient: {
1041
+ /**
1042
+ * Add files to the forest storage. Useful when doing manual maintenance.
1043
+ **/
1044
+ addFilesToForestStorage: AugmentedRpc<
1045
+ (
1046
+ forest_key: Option<H256> | null | Uint8Array | H256 | string,
1047
+ metadata_of_files_to_add:
1048
+ | Vec<FileMetadata>
1049
+ | (
1050
+ | FileMetadata
1051
+ | {
1052
+ owner?: any;
1053
+ bucket_id?: any;
1054
+ location?: any;
1055
+ file_size?: any;
1056
+ fingerprint?: any;
1057
+ }
1058
+ | string
1059
+ | Uint8Array
1060
+ )[]
1061
+ ) => Observable<AddFilesToForestStorageResult>
1062
+ >;
1063
+ /**
1064
+ * Add key to exclude list. Exclude type can be `file`, `user`, `bucket` and `fingerprint`.
1065
+ **/
1066
+ addToExcludeList: AugmentedRpc<
1067
+ (key: H256 | string | Uint8Array, exclude_type: Text | string) => Observable<ITuple<[]>>
1068
+ >;
1069
+ /**
1070
+ * Generate a SCALE-encoded proof for a file key to allow a BSP to confirm storing it.
1071
+ **/
1072
+ generateFileKeyProofBspConfirm: AugmentedRpc<
1073
+ (
1074
+ bsp_id: H256 | string | Uint8Array,
1075
+ file_key: H256 | string | Uint8Array
1076
+ ) => Observable<Bytes>
1077
+ >;
1078
+ /**
1079
+ * Generate a SCALE-encoded proof for a file key to allow a MSP to accept storing it.
1080
+ **/
1081
+ generateFileKeyProofMspAccept: AugmentedRpc<
1082
+ (
1083
+ msp_id: H256 | string | Uint8Array,
1084
+ file_key: H256 | string | Uint8Array
1085
+ ) => Observable<Bytes>
1086
+ >;
1029
1087
  /**
1030
1088
  * Generate a SCALE-encoded proof for a group of file keys that might or might not be in the forest.
1031
1089
  **/
@@ -1035,6 +1093,26 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
1035
1093
  challenged_file_keys: Vec<H256> | (H256 | string | Uint8Array)[]
1036
1094
  ) => Observable<Bytes>
1037
1095
  >;
1096
+ /**
1097
+ * Generate a SCALE-encoded proof for a group of file keys that might or might not be in the forest, alongside their key proofs.
1098
+ **/
1099
+ generateProof: AugmentedRpc<
1100
+ (
1101
+ provider_id: H256 | string | Uint8Array,
1102
+ seed: H256 | string | Uint8Array,
1103
+ checkpoint_challenges:
1104
+ | Option<Vec<CheckpointChallenge>>
1105
+ | null
1106
+ | Uint8Array
1107
+ | Vec<CheckpointChallenge>
1108
+ | (
1109
+ | CheckpointChallenge
1110
+ | { file_key?: any; should_remove_file?: any }
1111
+ | string
1112
+ | Uint8Array
1113
+ )[]
1114
+ ) => Observable<Bytes>
1115
+ >;
1038
1116
  /**
1039
1117
  * Get the metadata of a file from the Forest storage.
1040
1118
  **/
@@ -1048,7 +1126,7 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
1048
1126
  * Get the root of the forest trie.
1049
1127
  **/
1050
1128
  getForestRoot: AugmentedRpc<
1051
- (forest_key: Option<H256> | null | Uint8Array | H256 | string) => Observable<H256>
1129
+ (forest_key: Option<H256> | null | Uint8Array | H256 | string) => Observable<Option<H256>>
1052
1130
  >;
1053
1131
  /**
1054
1132
  * Generate and insert new keys of type BCSV into the keystore.
@@ -1071,6 +1149,10 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
1071
1149
  file_key: H256 | string | Uint8Array
1072
1150
  ) => Observable<bool>
1073
1151
  >;
1152
+ /**
1153
+ * Check whether this node is currently expecting to receive the given file key
1154
+ **/
1155
+ isFileKeyExpected: AugmentedRpc<(file_key: H256 | string | Uint8Array) => Observable<bool>>;
1074
1156
  /**
1075
1157
  * Load a file in the local storage. This is the first step when uploading a file.
1076
1158
  **/
@@ -1078,14 +1160,50 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
1078
1160
  (
1079
1161
  file_path: Text | string,
1080
1162
  location: Text | string,
1081
- owner: AccountId32 | string | Uint8Array,
1163
+ owner_account_id_hex: Text | string,
1082
1164
  bucket_id: H256 | string | Uint8Array
1083
- ) => Observable<FileMetadata>
1165
+ ) => Observable<LoadFileInStorageResult>
1166
+ >;
1167
+ /**
1168
+ * Send a FileKeyProof with one or more chunks to be processed locally by the node
1169
+ **/
1170
+ receiveBackendFileChunks: AugmentedRpc<
1171
+ (
1172
+ file_key: H256 | string | Uint8Array,
1173
+ file_key_proof: Bytes | string | Uint8Array
1174
+ ) => Observable<Bytes>
1084
1175
  >;
1085
1176
  /**
1086
1177
  * Remove keys of BCSV type for the Blockchain Service.
1087
1178
  **/
1088
1179
  removeBcsvKeys: AugmentedRpc<(keystore_path: Text | string) => Observable<ITuple<[]>>>;
1180
+ /**
1181
+ * Remove a list of files from the file storage. Useful when doing manual maintenance.
1182
+ **/
1183
+ removeFilesFromFileStorage: AugmentedRpc<
1184
+ (file_keys: Vec<H256> | (H256 | string | Uint8Array)[]) => Observable<ITuple<[]>>
1185
+ >;
1186
+ /**
1187
+ * Remove files from the forest storage. Useful when doing manual maintenance.
1188
+ **/
1189
+ removeFilesFromForestStorage: AugmentedRpc<
1190
+ (
1191
+ forest_key: Option<H256> | null | Uint8Array | H256 | string,
1192
+ file_keys: Vec<H256> | (H256 | string | Uint8Array)[]
1193
+ ) => Observable<RemoveFilesFromForestStorageResult>
1194
+ >;
1195
+ /**
1196
+ * Remove all files under a prefix from the file storage. Useful when doing manual maintenance.
1197
+ **/
1198
+ removeFilesWithPrefixFromFileStorage: AugmentedRpc<
1199
+ (prefix: H256 | string | Uint8Array) => Observable<ITuple<[]>>
1200
+ >;
1201
+ /**
1202
+ * Remove key from exclude list
1203
+ **/
1204
+ removeFromExcludeList: AugmentedRpc<
1205
+ (key: H256 | string | Uint8Array, exclude_type: Text | string) => Observable<ITuple<[]>>
1206
+ >;
1089
1207
  /**
1090
1208
  * Save a file from the local storage to the disk.
1091
1209
  **/
@@ -6,12 +6,27 @@
6
6
  import "@polkadot/api-base/types/calls";
7
7
 
8
8
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from "@polkadot/api-base/types";
9
- import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from "@polkadot/types-codec";
9
+ import type {
10
+ BTreeMap,
11
+ Bytes,
12
+ Null,
13
+ Option,
14
+ Result,
15
+ Vec,
16
+ bool,
17
+ u128,
18
+ u32
19
+ } from "@polkadot/types-codec";
10
20
  import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
11
21
  import type { CheckInherentsResult, InherentData } from "@polkadot/types/interfaces/blockbuilder";
12
22
  import type { BlockHash } from "@polkadot/types/interfaces/chain";
13
23
  import type { AuthorityId } from "@polkadot/types/interfaces/consensus";
14
24
  import type { CollationInfo } from "@polkadot/types/interfaces/cumulus";
25
+ import type {
26
+ CallDryRunEffects,
27
+ XcmDryRunApiError,
28
+ XcmDryRunEffects
29
+ } from "@polkadot/types/interfaces/dryRunApi";
15
30
  import type { Extrinsic } from "@polkadot/types/interfaces/extrinsics";
16
31
  import type { GenesisBuildErr } from "@polkadot/types/interfaces/genesisBuilder";
17
32
  import type { OpaqueMetadata } from "@polkadot/types/interfaces/metadata";
@@ -27,6 +42,8 @@ import type {
27
42
  Header,
28
43
  Index,
29
44
  KeyTypeId,
45
+ OriginCaller,
46
+ RuntimeCall,
30
47
  Slot,
31
48
  SlotDuration,
32
49
  Weight,
@@ -35,6 +52,7 @@ import type {
35
52
  import type { RuntimeVersion } from "@polkadot/types/interfaces/state";
36
53
  import type { ApplyExtrinsicResult, Key } from "@polkadot/types/interfaces/system";
37
54
  import type { TransactionSource, TransactionValidity } from "@polkadot/types/interfaces/txqueue";
55
+ import type { VersionedMultiLocation, VersionedXcm } from "@polkadot/types/interfaces/xcm";
38
56
  import type { XcmPaymentApiError } from "@polkadot/types/interfaces/xcmPaymentApi";
39
57
  import type { Error } from "@polkadot/types/interfaces/xcmRuntimeApi";
40
58
  import type {
@@ -46,21 +64,29 @@ import type { IExtrinsic, Observable } from "@polkadot/types/types";
46
64
  import type {
47
65
  BackupStorageProvider,
48
66
  BackupStorageProviderId,
67
+ BucketId,
49
68
  ChunkId,
69
+ GenericApplyDeltaEventInfoError,
50
70
  GetBspInfoError,
51
71
  GetChallengePeriodError,
52
72
  GetChallengeSeedError,
53
73
  GetCheckpointChallengesError,
54
- GetLastTickProviderSubmittedProofError,
55
74
  GetNextDeadlineTickError,
75
+ GetProofSubmissionRecordError,
76
+ GetStakeError,
56
77
  GetUsersWithDebtOverThresholdError,
78
+ IncompleteStorageRequestMetadataResponse,
79
+ IsStorageRequestOpenToVolunteersError,
57
80
  MainStorageProviderId,
58
81
  Multiaddresses,
59
82
  ProviderId,
60
83
  QueryAvailableStorageCapacityError,
61
84
  QueryBspConfirmChunksToProveForFileError,
85
+ QueryBucketsForMspError,
86
+ QueryBucketsOfUserStoredByMspError,
62
87
  QueryEarliestChangeCapacityBlockError,
63
88
  QueryFileEarliestVolunteerBlockError,
89
+ QueryIncompleteStorageRequestMetadataError,
64
90
  QueryMspConfirmChunksToProveForFileError,
65
91
  QueryMspIdOfBucketIdError,
66
92
  QueryProviderMultiaddressesError,
@@ -68,8 +94,10 @@ import type {
68
94
  RandomnessOutput,
69
95
  StorageDataUnit,
70
96
  StorageProviderId,
71
- TrieRemoveMutation
72
- } from "@storagehub/api-augment/interfaces/storagehubclient";
97
+ StorageRequestMetadata,
98
+ TrieRemoveMutation,
99
+ ValuePropositionWithId
100
+ } from "@storagehub/api-augment/parachain/interfaces/storagehubclient";
73
101
 
74
102
  export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
75
103
  export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
@@ -226,8 +254,81 @@ declare module "@polkadot/api-base/types/calls" {
226
254
  **/
227
255
  [key: string]: DecoratedCallBase<ApiType>;
228
256
  };
257
+ /** 0x91b1c8b16328eb92/2 */
258
+ dryRunApi: {
259
+ /**
260
+ * Dry run call
261
+ **/
262
+ dryRunCall: AugmentedCall<
263
+ ApiType,
264
+ (
265
+ origin: OriginCaller | { System: any } | string | Uint8Array,
266
+ call: RuntimeCall | IMethod | string | Uint8Array,
267
+ resultXcmsVersion: u32 | AnyNumber | Uint8Array
268
+ ) => Observable<Result<CallDryRunEffects, XcmDryRunApiError>>
269
+ >;
270
+ /**
271
+ * Dry run XCM program
272
+ **/
273
+ dryRunXcm: AugmentedCall<
274
+ ApiType,
275
+ (
276
+ originLocation:
277
+ | VersionedMultiLocation
278
+ | { V0: any }
279
+ | { V1: any }
280
+ | { V2: any }
281
+ | { V3: any }
282
+ | { V4: any }
283
+ | { v5: any }
284
+ | string
285
+ | Uint8Array,
286
+ xcm:
287
+ | VersionedXcm
288
+ | { V0: any }
289
+ | { V1: any }
290
+ | { V2: any }
291
+ | { V3: any }
292
+ | { V4: any }
293
+ | { V5: any }
294
+ | string
295
+ | Uint8Array
296
+ ) => Observable<Result<XcmDryRunEffects, XcmDryRunApiError>>
297
+ >;
298
+ /**
299
+ * Generic call
300
+ **/
301
+ [key: string]: DecoratedCallBase<ApiType>;
302
+ };
229
303
  /** 0xb9e7717ace5b45cd/1 */
230
304
  fileSystemApi: {
305
+ /**
306
+ * Decodes the BucketId expected to be found in the event info of a generic apply delta.
307
+ **/
308
+ decodeGenericApplyDeltaEventInfo: AugmentedCall<
309
+ ApiType,
310
+ (
311
+ encodedEventInfo: Bytes | string | Uint8Array
312
+ ) => Observable<Result<BucketId, GenericApplyDeltaEventInfoError>>
313
+ >;
314
+ /**
315
+ * Check if a storage request is open to volunteers.
316
+ **/
317
+ isStorageRequestOpenToVolunteers: AugmentedCall<
318
+ ApiType,
319
+ (
320
+ fileKey: H256 | string | Uint8Array
321
+ ) => Observable<Result<bool, IsStorageRequestOpenToVolunteersError>>
322
+ >;
323
+ /**
324
+ * Get pending storage requests for a Main Storage Provider.
325
+ **/
326
+ pendingStorageRequestsByMsp: AugmentedCall<
327
+ ApiType,
328
+ (
329
+ mspId: MainStorageProviderId | string | Uint8Array
330
+ ) => Observable<BTreeMap<H256, StorageRequestMetadata>>
331
+ >;
231
332
  /**
232
333
  * Query the chunks that a BSP needs to prove to confirm that it is storing a file.
233
334
  **/
@@ -248,6 +349,20 @@ declare module "@polkadot/api-base/types/calls" {
248
349
  fileKey: H256 | string | Uint8Array
249
350
  ) => Observable<Result<BlockNumber, QueryFileEarliestVolunteerBlockError>>
250
351
  >;
352
+ /**
353
+ * Query incomplete storage request metadata for a file key.
354
+ **/
355
+ queryIncompleteStorageRequestMetadata: AugmentedCall<
356
+ ApiType,
357
+ (
358
+ fileKey: H256 | string | Uint8Array
359
+ ) => Observable<
360
+ Result<
361
+ IncompleteStorageRequestMetadataResponse,
362
+ QueryIncompleteStorageRequestMetadataError
363
+ >
364
+ >
365
+ >;
251
366
  /**
252
367
  * Query the chunks that a MSP needs to prove to confirm that it is storing a file.
253
368
  **/
@@ -291,9 +406,9 @@ declare module "@polkadot/api-base/types/calls" {
291
406
  (
292
407
  location:
293
408
  | XcmVersionedLocation
294
- | { V2: any }
295
409
  | { V3: any }
296
410
  | { V4: any }
411
+ | { V5: any }
297
412
  | string
298
413
  | Uint8Array
299
414
  ) => Observable<Result<AccountId, Error>>
@@ -353,6 +468,13 @@ declare module "@polkadot/api-base/types/calls" {
353
468
  };
354
469
  /** 0x1078d7ac24a07b0e/1 */
355
470
  paymentStreamsApi: {
471
+ /**
472
+ * Get the Providers that have at least one payment stream with a specific user.
473
+ **/
474
+ getProvidersWithPaymentStreamsWithUser: AugmentedCall<
475
+ ApiType,
476
+ (userAccount: AccountId | string | Uint8Array) => Observable<Vec<ProviderId>>
477
+ >;
356
478
  /**
357
479
  * Get the payment streams of a provider.
358
480
  **/
@@ -446,7 +568,7 @@ declare module "@polkadot/api-base/types/calls" {
446
568
  ApiType,
447
569
  (
448
570
  providerId: ProviderId | string | Uint8Array
449
- ) => Observable<Result<BlockNumber, GetLastTickProviderSubmittedProofError>>
571
+ ) => Observable<Result<BlockNumber, GetProofSubmissionRecordError>>
450
572
  >;
451
573
  /**
452
574
  * Get the next deadline tick.
@@ -457,6 +579,15 @@ declare module "@polkadot/api-base/types/calls" {
457
579
  providerId: ProviderId | string | Uint8Array
458
580
  ) => Observable<Result<BlockNumber, GetNextDeadlineTickError>>
459
581
  >;
582
+ /**
583
+ * Get the next tick for which the submitter should submit a proof.
584
+ **/
585
+ getNextTickToSubmitProofFor: AugmentedCall<
586
+ ApiType,
587
+ (
588
+ providerId: ProviderId | string | Uint8Array
589
+ ) => Observable<Result<BlockNumber, GetProofSubmissionRecordError>>
590
+ >;
460
591
  /**
461
592
  * Generic call
462
593
  **/
@@ -487,6 +618,13 @@ declare module "@polkadot/api-base/types/calls" {
487
618
  };
488
619
  /** 0x966604ffe78eb092/1 */
489
620
  storageProvidersApi: {
621
+ /**
622
+ * Check if a provider can be deleted.
623
+ **/
624
+ canDeleteProvider: AugmentedCall<
625
+ ApiType,
626
+ (providerId: ProviderId | string | Uint8Array) => Observable<bool>
627
+ >;
490
628
  /**
491
629
  * Get the BSP info for a given BSP ID.
492
630
  **/
@@ -496,6 +634,15 @@ declare module "@polkadot/api-base/types/calls" {
496
634
  bspId: BackupStorageProviderId | string | Uint8Array
497
635
  ) => Observable<Result<BackupStorageProvider, GetBspInfoError>>
498
636
  >;
637
+ /**
638
+ * Get the stake of a BSP.
639
+ **/
640
+ getBspStake: AugmentedCall<
641
+ ApiType,
642
+ (
643
+ bspId: BackupStorageProviderId | string | Uint8Array
644
+ ) => Observable<Result<Balance, GetStakeError>>
645
+ >;
499
646
  /**
500
647
  * Get the slashable amount corresponding to the configured max file size.
501
648
  **/
@@ -523,6 +670,25 @@ declare module "@polkadot/api-base/types/calls" {
523
670
  providerId: ProviderId | string | Uint8Array
524
671
  ) => Observable<Result<StorageDataUnit, QueryAvailableStorageCapacityError>>
525
672
  >;
673
+ /**
674
+ * Get the Buckets that an MSP is storing.
675
+ **/
676
+ queryBucketsForMsp: AugmentedCall<
677
+ ApiType,
678
+ (
679
+ mspId: MainStorageProviderId | string | Uint8Array
680
+ ) => Observable<Result<Vec<BucketId>, QueryBucketsForMspError>>
681
+ >;
682
+ /**
683
+ * Query the buckets stored by an MSP that belong to a specific user.
684
+ **/
685
+ queryBucketsOfUserStoredByMsp: AugmentedCall<
686
+ ApiType,
687
+ (
688
+ mspId: ProviderId | string | Uint8Array,
689
+ user: AccountId | string | Uint8Array
690
+ ) => Observable<Result<Vec<H256>, QueryBucketsOfUserStoredByMspError>>
691
+ >;
526
692
  /**
527
693
  * Query the earliest block number that a BSP can change its capacity.
528
694
  **/
@@ -559,6 +725,15 @@ declare module "@polkadot/api-base/types/calls" {
559
725
  providerId: ProviderId | string | Uint8Array
560
726
  ) => Observable<Result<StorageDataUnit, QueryStorageProviderCapacityError>>
561
727
  >;
728
+ /**
729
+ * Query the value propositions for a MSP.
730
+ **/
731
+ queryValuePropositionsForMsp: AugmentedCall<
732
+ ApiType,
733
+ (
734
+ mspId: MainStorageProviderId | string | Uint8Array
735
+ ) => Observable<Vec<ValuePropositionWithId>>
736
+ >;
562
737
  /**
563
738
  * Generic call
564
739
  **/
@@ -686,7 +861,7 @@ declare module "@polkadot/api-base/types/calls" {
686
861
  ApiType,
687
862
  (
688
863
  weight: WeightV2 | { refTime?: any; proofSize?: any } | string | Uint8Array,
689
- asset: XcmVersionedAssetId | { V3: any } | { V4: any } | string | Uint8Array
864
+ asset: XcmVersionedAssetId | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array
690
865
  ) => Observable<Result<u128, XcmPaymentApiError>>
691
866
  >;
692
867
  /**
@@ -695,7 +870,7 @@ declare module "@polkadot/api-base/types/calls" {
695
870
  queryXcmWeight: AugmentedCall<
696
871
  ApiType,
697
872
  (
698
- message: XcmVersionedXcm | { V2: any } | { V3: any } | { V4: any } | string | Uint8Array
873
+ message: XcmVersionedXcm | { V3: any } | { V4: any } | { V5: any } | string | Uint8Array
699
874
  ) => Observable<Result<WeightV2, XcmPaymentApiError>>
700
875
  >;
701
876
  /**