-
Notifications
You must be signed in to change notification settings - Fork 4
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
[feat] Add GoodDollar whitelist #10
Comments
IdentityV2 as seen in GD documentation or Github is the contract in charge of managing whitelisted addresses. |
Let's investigate https://github.com/GoodDollar/GoodProtocol/blob/master/releases/deployment.json by looking at networkId fields |
Let's do Celo Mainnet first: https://celoscan.io/address/0xC361A6E67822a0EDc17D899227dd9FC50BD62F42#readProxyContract#F19 (from @bertux's link) |
The code change will be like in GD claiming contract UBIScheme.sol Claim function previous version It was manually checked to work, and new UBIScheme claim is not needed - it checks if sender isWhiteListed or Identity contract itself, and holds root for further root actions Moving on from here |
Yes, exactly. It will work fine on whatever network where we actually have a GD whitelist availaible. @bertux @Shloyem What can we do for other networks and tests? |
As we later discussed on Telegram, it's first tested on Celo Alfajores testnet with mocks:
Next thing I'll check on Celo either Mainnet or simulate via Tenderly |
From what I saw on this branch 10-feat-add-gooddollar-whitelist, we probably want to:
@Shloyem Do you want me to do that + create a draft merge request? |
Deployed to Alfajores:
1st successful deposit: 0x7a311b27ce78e6e235a2c159e7fbcfbcc636b410374ac4204fa8029454bf3dec |
Good ideas, done on draft pull request |
As far as I understand:
Pros:
Cons:
But again this is my personal take, @bertux knows better:) |
About this, we can just add a require in the setNameService function:
|
Thanks for your reply! I'm definitely in favour of it. There's already a link pointing to GoodDapp claim (https://gooddapp.org/#/claim) in gCFA UI. But I need to know how can the UI detect if a user is whitelisted or not? Upcoming version of the UI: https://gcfa-ui-staging.on.fleek.co/ @Shloyem I'm displaying this "You're currently not whitelisted, we need a Proof-of-Liveness which you can get here." but I need to call the |
Thanks for your replies as well, nice work
Good idea, yes, described in the other item |
We need to:
|
Let's focus on the first 2 points, the other can be improved later, it's already the same in the UI. |
No description provided.
The text was updated successfully, but these errors were encountered: