gnoverse / gnochess

User-friendly chess dApp in Gno ecosystem
https://gnochess.com
GNU General Public License v3.0
16 stars 10 forks source link

feat: add r/demo/chess/register realm #163

Open moul opened 1 year ago

moul commented 1 year ago

First part of #160.

Following this, the concluding action requires the faucet to transition from the traditional gnokey send XXXugnot targetAddr. Instead, it should employ:

gnokey maketx call -pkgaddr gno.land/r/demo/chess/register -func RegisterPlayer -send 12345ugnot -args $targetAddr $args $token

This change ensures that the registration process aligns seamlessly with the newly proposed on-chain mechanism.

Depends on https://github.com/gnolang/faucet/pull/2

netlify[bot] commented 1 year ago

Deploy Preview for gnochess canceled.

Name Link
Latest commit caf6f0be247f597b532c1ffca32d09c538d560d2
Latest deploy log https://app.netlify.com/sites/gnochess/deploys/651288004c0084000858d684
netlify[bot] commented 1 year ago

Deploy Preview for gnochess-signup-form canceled.

Name Link
Latest commit caf6f0be247f597b532c1ffca32d09c538d560d2
Latest deploy log https://app.netlify.com/sites/gnochess-signup-form/deploys/65128800047d470008ad4136
moul commented 1 year ago

The missing part is roughly this: https://github.com/gnolang/faucet/pull/2/files.

I suggest we make the generic faucet repo accepting a custom callback to build the tx with arbitrary message when we don't want the faucet to actually call "send", but do "something else".