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

Adds xDai to POAP verification #8677

Merged
merged 2 commits into from
Apr 5, 2021
Merged

Conversation

gdixon
Copy link
Contributor

@gdixon gdixon commented Mar 24, 2021

Description

This PR:

  1. Updates POAPs abi (taken from here - can anybody confirm that the proxy represents the same contract as 0x22C1f6050E56d2876009903609a2cC3fEf83B415? Or know how I can verify the abi for 0x22C1f6050E56d2876009903609a2cC3fEf83B415?)
  2. Corrects the starting block for mainnet (taken from POAPs subgraph repo)
  3. Checks the balance of the address before starting the event filter and returns 0 if filtering fails so that we can display a different error
  4. Introduces xDai
  5. Connects via sockets to make the connection more reliable
Refers/Fixes

Refers: to a conversion with @Kweiss last week
Fixes: #8676

Testing

Tested locally -- as mentioned here #8640 (review), filtering the Transfer events seems to fail intermittently - as I don't have any POAP tokens on mainnet, I'm not sure if this is an issue only on xDai or with event filtering in general. It would be great if we could migrate to a service like Opensea's api - but I am yet to find one which deals with tokens held on xDai - does anyone have any ideas?

Screenshot 2021-03-24 at 07 29 35

@thelostone-mc thelostone-mc merged commit 70ace8f into master Apr 5, 2021
iRhonin pushed a commit to iRhonin/web that referenced this pull request Apr 23, 2021
* Updates POAPs abi, from_blocks and adds xDai verification

* Tidies up logic
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.

Allow POAP verification via xDai
2 participants