Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roles #336

Merged
merged 2 commits into from
Feb 18, 2022
Merged

roles #336

merged 2 commits into from
Feb 18, 2022

Conversation

alexcos20
Copy link
Member

Closes #334
Since order of events is not always trustable, I had to refactor a bit

query{
  nfts(first:5){
    id,
    name,
    address,
    storeUpdateRole,
    metadataRole,
    managerRole,
    erc20DeployerRole
  }
  tokens(first:5){
    id,
    name,
    symbol
    address,
    paymentManager,
    paymentCollector,
    minter
  },
}

+>

{
  "data": {
    "nfts": [
      {
        "address": "0x0e08dc9e8c45c2575a1be2c0308b5002f2ce5aeb",
        "erc20DeployerRole": [
          "0x312213d6f6b5fcf9f56b7b8946a6c727bf4bc21f"
        ],
        "id": "0x0e08dc9e8c45c2575a1be2c0308b5002f2ce5aeb",
        "managerRole": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        ],
        "metadataRole": null,
        "name": "72120Bundle",
        "storeUpdateRole": null
      },
      {
        "address": "0x154c95fd69f46385d7be443a8ca759db805ee955",
        "erc20DeployerRole": [
          "0x312213d6f6b5fcf9f56b7b8946a6c727bf4bc21f"
        ],
        "id": "0x154c95fd69f46385d7be443a8ca759db805ee955",
        "managerRole": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        ],
        "metadataRole": null,
        "name": "72120Bundle",
        "storeUpdateRole": null
      },
      {
        "address": "0x244c1e0ba0e1b19a706c8bfbc357cb77beab2982",
        "erc20DeployerRole": [
          "0x312213d6f6b5fcf9f56b7b8946a6c727bf4bc21f"
        ],
        "id": "0x244c1e0ba0e1b19a706c8bfbc357cb77beab2982",
        "managerRole": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        ],
        "metadataRole": null,
        "name": "72120Bundle",
        "storeUpdateRole": null
      },
      {
        "address": "0x3b3c31712de9f641d9d926c192864b0737e1b3ec",
        "erc20DeployerRole": [
          "0x312213d6f6b5fcf9f56b7b8946a6c727bf4bc21f"
        ],
        "id": "0x3b3c31712de9f641d9d926c192864b0737e1b3ec",
        "managerRole": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        ],
        "metadataRole": null,
        "name": "72120Bundle",
        "storeUpdateRole": null
      },
      {
        "address": "0x557f84e9eb2e89476e883774e3da53cf0aa0726c",
        "erc20DeployerRole": [
          "0x312213d6f6b5fcf9f56b7b8946a6c727bf4bc21f"
        ],
        "id": "0x557f84e9eb2e89476e883774e3da53cf0aa0726c",
        "managerRole": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        ],
        "metadataRole": null,
        "name": "72120Bundle",
        "storeUpdateRole": null
      }
    ],
    "tokens": [
      {
        "address": "0x0356a886ad462e18880f1e6bfbbcb035759b127d",
        "id": "0x0356a886ad462e18880f1e6bfbbcb035759b127d",
        "minter": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        ],
        "name": "ERC20B1",
        "paymentCollector": "0xe17d2a07efd5b112f4d675ea2d122ddb145d117b",
        "paymentManager": null,
        "symbol": "ERC20DT1Symbol"
      },
      {
        "address": "0x053ae1fecdc2f391753e2bf2aae301e75cc0aac9",
        "id": "0x053ae1fecdc2f391753e2bf2aae301e75cc0aac9",
        "minter": null,
        "name": "USDC",
        "paymentCollector": null,
        "paymentManager": null,
        "symbol": "USDC"
      },
      {
        "address": "0x0710f6b294e925274fff94185a4c899e84f303f2",
        "id": "0x0710f6b294e925274fff94185a4c899e84f303f2",
        "minter": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260"
        ],
        "name": "ERC20B1",
        "paymentCollector": "0xe17d2a07efd5b112f4d675ea2d122ddb145d117b",
        "paymentManager": null,
        "symbol": "ERC20DT1Symbol"
      },
      {
        "address": "0x1b053c851600526eabf43f9b3a512a9872068428",
        "id": "0x1b053c851600526eabf43f9b3a512a9872068428",
        "minter": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260",
          "0x91eb42b164664cb28a09b0cf9651b404ee105afa"
        ],
        "name": "ERC20B1",
        "paymentCollector": "0xe17d2a07efd5b112f4d675ea2d122ddb145d117b",
        "paymentManager": null,
        "symbol": "ERC20DT1Symbol"
      },
      {
        "address": "0x48878c6a90de17e0a9352629ba388077da3a3f55",
        "id": "0x48878c6a90de17e0a9352629ba388077da3a3f55",
        "minter": [
          "0xe2dd09d719da89e5a3d0f2549c7e24566e947260",
          "0x91eb42b164664cb28a09b0cf9651b404ee105afa"
        ],
        "name": "ERC20B1",
        "paymentCollector": "0xe17d2a07efd5b112f4d675ea2d122ddb145d117b",
        "paymentManager": null,
        "symbol": "ERC20DT1Symbol"
      }
    ]
  }
}

@alexcos20 alexcos20 added this to the V4 milestone Feb 18, 2022
@alexcos20 alexcos20 requested a review from mihaisc February 18, 2022 10:36
@alexcos20 alexcos20 self-assigned this Feb 18, 2022
@alexcos20 alexcos20 merged commit 772b723 into v4main Feb 18, 2022
@alexcos20 alexcos20 deleted the feature/roles branch February 18, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Roles
2 participants