unlock-protocol / locked.fyi

A basic notes application where notes are stored on IPFS and only visible by members of a lock
https://locked.fyi/
MIT License
21 stars 7 forks source link

Adding the test-setup #46

Closed nfurfaro closed 4 years ago

nfurfaro commented 4 years ago

This adds the initial testing setup via some fixtures for deploying Unlock, Lock template, config Unlock, deploy new lock, config new lock and deploy hook. It gives a simple way to get to a point where I can start adding real tests by calling purchase on the lock and testing the hook's behaviour.

I've made a bit of progress on the hook contract, but it's still in draft-status. The next step is to make a mock-hook so I can test it without adding temporary functions/variables, and ensure the math is working as expected.

nfurfaro commented 4 years ago

closing, replaced by #47