Implements

Hierarchy

  • TernoaIPFS

Constructors

Properties

apiKey?: string
apiUrl: URL

Methods

  • Parameters

    • hash: string

    Returns Promise<unknown>

  • Type Parameters

    • T

    Parameters

    • profileFile: File
    • bannerFile: File
    • metadata: CollectionMetadataType<T>

    Returns Promise<IpfsAddDataResponseType>

  • Type Parameters

    • T

    Parameters

    • file: File
    • metadata: MarketplaceMetadataType<T>

    Returns Promise<IpfsAddDataResponseType>

  • Type Parameters

    • T

    Parameters

    • file: File
    • metadata: NftMetadataType<T>

    Returns Promise<IpfsAddDataResponseType>

  • Get file from IPFS.

    Returns

    IPFS file

    Parameters

    • ternoaIpfsService: IServiceIPFS
    • hash: string

    Returns Promise<unknown>

  • Store a single Ternoa Collection's metadata & assets on IPFS.

    Returns

    IPFS data (Hash, Size, Name)

    Type Parameters

    • T

    Parameters

    • service: IServiceIPFS
    • profileFile: File

      Collection's profile asset

    • bannerFile: File

      Collection's banner asset

    • metadata: CollectionMetadataType<T>

      Ternoa Collection metadata structure here.

    Returns Promise<IpfsAddDataResponseType>

  • Store a single file on IPFS.

    Returns

    IPFS data (hash, size, name)

    Parameters

    • service: IServiceIPFS
    • file: File

    Returns Promise<IpfsAddDataResponseType>

  • Store a single Ternoa Marketplace's metadata & asset on IPFS.

    Returns

    IPFS data (Hash, Size, Name)

    Type Parameters

    • T

    Parameters

    • service: IServiceIPFS
    • file: File

      Marketplace's logo asset

    • metadata: MarketplaceMetadataType<T>

      Ternoa Marketplace metadata structure here.

    Returns Promise<IpfsAddDataResponseType>

  • Store a Ternoa basic NFT's metadata & asset on IPFS.

    Returns

    IPFS data (Hash, Size, Name)

    Type Parameters

    • T

    Parameters

    • service: IServiceIPFS
    • file: File

      NFT's asset

    • metadata: NftMetadataType<T>

      Ternoa basic NFT metadata structure here.

    Returns Promise<IpfsAddDataResponseType>

  • Upload file form data to IPFS.

    Returns

    IPFS data (hash, size, name)

    Parameters

    Returns Promise<IpfsAddDataResponseType>

Generated using TypeDoc