Interface: HypercertStorageInterface
The interface for the Hypercert storage layer.
Implemented by
Properties
getData
• getData: (cidOrIpfsUri
: string
) => Promise
<unknown
>
Type declaration
▸ (cidOrIpfsUri
): Promise
<unknown
>
Retrieves arbitrary data from IPFS.
Parameters
Name | Type | Description |
---|---|---|
cidOrIpfsUri | string | The CID or IPFS URI of the data to retrieve. |
Returns
Promise
<unknown
>
A Promise that resolves to the retrieved data.
Defined in
getMetadata
• getMetadata: (cidOrIpfsUri
: string
) => Promise
<HypercertMetadata
>
Type declaration
▸ (cidOrIpfsUri
): Promise
<HypercertMetadata
>
Retrieves the metadata for a Hypercert evaluation.
Parameters
Name | Type | Description |
---|---|---|
cidOrIpfsUri | string | The CID or IPFS URI of the metadata to retrieve. |
Returns
Promise
<HypercertMetadata
>
A Promise that resolves to the retrieved metadata.
Defined in
storeData
• storeData: (data
: unknown
) => Promise
<CIDString
>
Type declaration
▸ (data
): Promise
<CIDString
>
Stores arbitrary data on IPFS.
Parameters
Name | Type | Description |
---|---|---|
data | unknown | The data to store. |
Returns
Promise
<CIDString
>
A Promise that resolves to the CID of the stored data.
Defined in
storeMetadata
• storeMetadata: (metadata
: HypercertMetadata
) => Promise
<CIDString
>
Type declaration
▸ (metadata
): Promise
<CIDString
>
Stores the metadata for a Hypercert evaluation.
Parameters
Name | Type | Description |
---|---|---|
metadata | HypercertMetadata | The metadata to store. |
Returns
Promise
<CIDString
>
A Promise that resolves to the CID of the stored metadata.