You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
@@ -26,11 +27,17 @@ export class HypercertsStorage implements HypercertStorageInterface {
26
27
* If the metadata is valid, it creates a new Blob from the metadata and stores it using the hypercerts API. If the storage operation fails, it throws a `StorageError`.
27
28
*
28
29
* @param {AllowlistEntry[]} allowList - The allowList to store.
30
+
* @param {bigin} totalUnits - The total number of units in the allowlist.
31
+
* @param {StorageConfigOverrides} [config] - An optional configuration object.
29
32
* @returns {Promise<string>} A promise that resolves to the CID of the stored metadata.
30
33
* @throws {StorageError} Will throw a `StorageError` if the storage operation fails.
31
34
* @throws {MalformedDataError} Will throw a `MalformedDataError` if the provided metadata is invalid.
@@ -65,19 +75,23 @@ export class HypercertsStorage implements HypercertStorageInterface {
65
75
* If the metadata is valid, it creates a new Blob from the metadata and stores it using the hypercerts API. If the storage operation fails, it throws a `StorageError`.
66
76
*
67
77
* @param {HypercertMetadata} data - The Hypercert metadata to store. This should be an object that conforms to the HypercertMetadata type.
78
+
* @param {StorageConfigOverrides} [config] - An optional configuration object.
68
79
* @returns {Promise<string>} A promise that resolves to the CID of the stored metadata.
69
80
* @throws {StorageError} Will throw a `StorageError` if the storage operation fails.
70
81
* @throws {MalformedDataError} Will throw a `MalformedDataError` if the provided metadata is invalid.
@@ -117,14 +135,14 @@ export class HypercertsStorage implements HypercertStorageInterface {
117
135
* This method first retrieves the data from IPFS using the `getFromIPFS` function. It then parses the retrieved data as JSON and returns it.
118
136
*
119
137
* @param {string} cidOrIpfsUri - The CID or IPFS URI of the data to retrieve.
138
+
* @param {StorageConfigOverrides} [config] - An optional configuration object.
120
139
* @returns {Promise<any>} A promise that resolves to the retrieved data.
121
140
* @throws {FetchError} Will throw a `FetchError` if the retrieval operation fails.
122
141
* @throws {MalformedDataError} Will throw a `MalformedDataError` if the retrieved data is not a single file.
123
142
*
124
143
* @remarkts Note: The original implementation using the Web3 Storage client is currently commented out due to issues with upstream repos. This will be replaced once those issues are resolved.
0 commit comments