Azoyalabs / avalanche_hackathon

https://avalanche-hackathon-web.vercel.app
0 stars 1 forks source link

Implement Whitelist / Blacklist - Chainlink functions #9

Closed Wally869 closed 8 months ago

Wally869 commented 8 months ago

Need to think of workflow for this: Ban only on creating new articles? Or mark some articles as spam?

Wally869 commented 8 months ago

Do an auth map with 3 states: unknown, authorized, banned Basically authors need to be in "authorized" state to post, and the chainlink function handles changes in state. System is a blanket ban (no more new articles for the banned guy)

This 3 state system shows that the author used our anti-bot system (for example captcha)

Use an enum? Need to check return type, and if Viem handles it fine (is a uint or an object returned when querying for an enum?)

Wally869 commented 8 months ago

Implemented access control in 2a2b73139c07726c165c4ee1cb4441df6cc29c78 Plus tests

Currently, access control is purely in minting function, @MBeliou need to ask if also needs to be in withdrawals or if this is good enough

Wally869 commented 8 months ago

After discussion, restrictions should only apply on minting operations

Considering the issue as closed then