• this is a workflow template function which takes an article and publishes it to the graph with a predefined hierarchy for the assets as per the ownership and licensing details

    Parameters

    • article: Article

      article payload of type Article

    • ipfsConfig: {
          pinataKey: string;
          pinataSecret: string;
      }

      ipfs config object with pinataKey and pinataSecret pinataConfig

      • pinataKey: string
      • pinataSecret: string
    • org: {
          ogNodeId: string;
          orgNodeId: string;
      }

      on chain org node id and original material node id

      • ogNodeId: string
      • orgNodeId: string

    Returns Promise<{
        assetHash: string;
        type: string;
    }[]>

    • array of asset hashes and types

Generated using TypeDoc