Inspiration

My main inspiration for creating this was based on the bounties and trying to combine the different data from SmartWeave contracts to allow for better debugging and notifications.

What it does

It allows anyone to look up a SmartWeave Contract, pull its transactions history, parse the state per transaction to see the state changes, and also set live email notifications when the state changes. It can also theoretically pull data associated to ANT contracts to see the transaction history.

How we built it

I used a monorepo turbo-repo to utilize NextJS as a serverless function API, a ViteJS React SPA that pulls from that data, and for local development I used Docker Postgres and MailHog.

Challenges we ran into

  • Some of the libraries offered didn't work with NextJS 13 app router https://github.com/warp-contracts/warp/issues/450
  • Some data need to be parsed in specific ways
  • I had to figure a way to eval the contract code on the fly
  • Figuring out a way to continuously pull large amounts of transaction data and parse it
  • Figuring out a way to handle the notifications UI to give a better UX in creating custom conditions for notifications

Accomplishments that we're proud of

  • Pulling and parsing data
  • Creating a custom UI that handles state updates and conditions

What we learned

That I might have taken on a lot more than expected. That this could be a bigger project, but would require funding for proper services.

What's next for SmartContractAR

  • Finish up the local environment settings
  • Finish the documentation so anyone can learn from it
  • Create a blog post demonstrating what it can do and how to set it up

Built With

Share this project:

Updates