Canto-Network / Canto

Layer-1 blockchain powered by Free Public Infrastructure
GNU Lesser General Public License v3.0
82 stars 80 forks source link

Creating template for the turnstile smart contract #44

Closed davidterpay closed 2 years ago

davidterpay commented 2 years ago

In this PR, I create a template for what the CSR turnstile smart will be doing. Essentially, since users are going to be injecting this new code into the smart contracts that they are developing, we want to be able to communicate the updates and registrations to the blockchain side of things. We can do so by emitting events and processing them on the client side in a special type of hook.

Note this will be updated progressively.