/merry-pointmass

Everyone is crazy for points, so let's use Irys to build a CLI point advent calendar

Primary LanguageJavaScript

Merry point-mass

This is a GitHub repository created to accompany this livestream.

It's 2023 and everyone is cuckoo for points. So I thought a fun workshop project would be to build a retro CLI points advent calendar.

This project:

Installation

  1. Clone this repository
  2. Change .env.example to .env and add a EVM private key. This can be a throwaway key and does not need to be funded, it is only used to sign transactions
  3. npm install

Running

  1. node scripts/pointmass.js ______ And add a EVM wallet address

Yes, this is a demo

There are two main files in this project:

  • scripts/pointmass.js - CLI UI build using blessed
  • scripts/pointmass-irys.js - Functions to store points onchain using Irys and query point counts using the Irys query package

So, yeah, this is a demo. Everything executes on the client side, including storage of points and random number generation. That's obviously not very secure, but it makes it easiser when teaching. There's a lot you'd want to do if you were actually going to use this to release a point promotion, first off you'd move the Irys functions to the server where you could control the code.

More stuff