A collaborative art project on the Chromia blockchain.
This is a Next.js project with Material UI and PiXI JS html engine.
Start by setting up your local environment. Follow the steps on the official chromia docs.
https://docs.chromia.com/category/set-up-local-environment
-
Install and run:
npm install npm run dev
-
Install library dependencies
chr install
-
Generate a secret
chr keygen --save .secret
-
Update
line 12"admin_pubkey"in chromia.yml to your new generated public key -
Start the node
chr node start --wipe
-
Run chromia tx to initialize the canvas (see main.rell)
chr tx init --secret .secret --await
-
Open http://localhost:3000 with your browser to see the result.
-
Install metamask extension to your browser and click "Login to view canvas" to create an account and sign in.
chr tx init --secret .secret --await
chr query get_all_cells user_id=x'0'
chr tx --secret .secret --await admin.canvas.update_canvas_zoomScale 0.4 10
chr tx admin.wallet.give_tokens 'account_id=x'ACCOUNT_ID' 'amount=50' --secret .secret --await
chr query get_leaderboard_participants 'type=0' 'page_size=10'