Irys-xyz / arweave-js-sdk

JS SDK for Irys on Arweave
110 stars 95 forks source link

refactor: add each user tag to the tags #82

Closed jshaw-decides closed 1 year ago

jshaw-decides commented 1 year ago

Let me know if you need me to run any tests or any other way I can help get this in there.

joshbenaron commented 1 year ago

Can someone clearly state API changes here? @JesseTheRobot @mogulx-operates

JesseTheRobot commented 1 year ago

Can someone clearly state API changes here? @JesseTheRobot @mogulx-operates

Sure, so this just adds an optional manifestTags tag array option to folderUploader , that as the name suggests adds user defined tags to the manifest itself. apparently this is used for ANS-110

jshaw-decides commented 1 year ago

Can someone clearly state API changes here? @JesseTheRobot @mogulx-operates

@joshbenaron this is the the specific use case.

So I'm going to add ANS-110 tags to the manifest with Type "renderer".

Updated link because the one I gave you didn't say much ⬇️

https://github.com/mogulx-operates/arweave-standards/blob/ans-111/ans/ANS-111.md

Sample query:

query {
  transactions(
      first: 100,
        tags: [
          { name: "Type", values: ["renderer"] },
          { name: "Render-For", values: ["blog-post"] },
        ]) {
      edges {
          node {
              id
                owner {
                  address
                }
                tags {
                  name
                    value
                }
        }}
    }
}