Skip to main content

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​

NameType
argsObject
args.metadataStorage?MetadataStorage
args.metadataUriOrHashstring
args.theGraphStorage?MetadataStorage

Returns​

Promise<string | null>

Defined in​

src/offers/storage.ts:9