Skip to content

ten-protocol/trickly

Repository files navigation

TEN ZEN Game

An on-chain game where the contract holds a private, incrementing number. Each time a player plays, the number is incremented and returned to them. If the number ends in a zero, the player earns a reward in ZEN tokens. The more trailing zeros the number has, the greater the reward.

In-game screenshot

Local environment setup

Set environment variables

Create an .env file in the root of the application directory

touch .env

Add the following env vars....

USER_KEY=<TEN TOKEN FROM ASSIGNED RPC>
PRIVATE_KEY=<WALLET_PRIVATE_KEY>
NEXT_PUBLIC_CONTRACT_ADDRESS=CONTRACT ADDRESS>
NEXT_PUBLIC_ZEN_CONTRACT_ADDRESS=<ZEN CONTRACT ADDRESS>
NEXT_PUBLIC_ZEN_API=https://faucet.ten.xyz
NEXT_PUBLIC_SITE_URL=http://localhost:3000

Install dependencies

npm ci

Run dev environment

npm run dev

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •