offers.storage
@bosonprotocol/core-sdk / Exports / offers / storage
Namespace: storage
offers.storage
Table of contents
Functions
Functions
storeMetadataOnTheGraph
▸ storeMetadataOnTheGraph(args
): Promise
<string
| null
>
We use the feature ipfsOnEthereum
in our subgraph to resolve metadata from IPFS
and store them in the graph. In order for the graph node to reliably resolve them,
we need to add the metadata additionally to the IPFS node of the graph.
See https://thegraph.com/docs/en/developer/assemblyscript-api/#ipfs-api
Parameters
Name | Type |
---|---|
args | Object |
args.metadataStorage? | MetadataStorage |
args.metadataUriOrHash | string |
args.theGraphStorage? | MetadataStorage |
Returns
Promise
<string
| null
>