closerdao / proof-of-presence

TDF smart contracts
MIT License
2 stars 3 forks source link

Diamond implementation for Staking and Booking #15

Closed arturictus closed 2 years ago

arturictus commented 2 years ago

Diamond Implementation

Move ProofOfPresence and TokenLock to a Diamond. That will allow us to manage stake from booking without exposing dangerous methods like restaking to the pass

juliencharrel commented 2 years ago

@arturictus how do you instantiate then the delegate contracts and register the functions? how does it work afterwards? How can i generate an ABI and should it be only one for the diamond with all functions inside?

arturictus commented 2 years ago

@arturictus how do you instantiate then the delegate contracts and register the functions? how does it work afterwards? How can i generate an ABI and should it be only one for the diamond with all functions inside?

I generate the ABI already:

deployments/alfajores/TDFDiamond.json

Now you can call all the functions directly to the Diamond, to that address.

The functilonality that includes are: