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

Issue28 track metadata updates #47

Merged
merged 5 commits into from
Mar 4, 2021
Merged

Conversation

ssallam
Copy link
Contributor

@ssallam ssallam commented Mar 4, 2021

Fixes #28

Changes proposed in this PR:

  • Add data source for the Metadata contract in all supported networks
  • Track/process created/updated events from the Metadata contract
  • Link datatoken with all of the corresponding metadata updates

Here is a sample output:

"datatokens": [
      {
        "id": "0x003f89b1b206165029573e5855c5567ce39b5751",
        "metadataUpdateCount": "1",
        "updates": [
          {
            "block": 7443427,
            "timestamp": 1603809123,
            "userAddress": "0x001a08b8b5c4e41fba84f963feee4a6d15528b3e"
          }
        ]
      },
      {
        "id": "0x18366683d873c0e1b5a7f1b9ca8fdbad5ed8177a",
        "metadataUpdateCount": "2",
        "updates": [
          {
            "block": 7496507,
            "timestamp": 1604605855,
            "userAddress": "0xa68f7bae2d4bf3aad6e4f869e2c162ff7bd32281"
          },
          {
            "block": 7494425,
            "timestamp": 1604574622,
            "userAddress": "0xa68f7bae2d4bf3aad6e4f869e2c162ff7bd32281"
          }
        ]
      }
 ]

@alexcos20 alexcos20 self-requested a review March 4, 2021 09:27
Copy link
Contributor

@mihaisc mihaisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ssallam ssallam merged commit bf158af into main Mar 4, 2021
@ssallam ssallam deleted the issue28-track-metadata-updates branch March 4, 2021 10:38
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.

Edit information related to datatoken
2 participants