Smart contract -based coinflip game on TON blockchain. Written in Func and React Vite. Currently deployed on the testnet:
Frontend of the project, written in React. Frontend re-uses the smart contract from the blueprint. By default, App.tsx has a hardcoded address of the contract, but it can be changed to any other address:
const { balance, sendPlay } = useCoinFlipContract(
"EQCuWDIPWO6fGDN7w4ZpwNtBTEjl6_shllCJnfZptcoWgV-l" // Change this
);cd frontend-ui
npm install
npm run devnpm run buildRoot of the smart contract, written in Func. Subdirectories:
contracts- source code of all the smart contracts of the project and their dependencies.wrappers- wrapper classes (implementingContractfrom ton-core) for the contracts, including any [de]serialization primitives and compilation functions.tests- tests for the contracts.scripts- scripts used by the project, mainly the deployment scripts.
npx blueprint build or yarn blueprint build
npx blueprint test or yarn blueprint test
npx blueprint run or yarn blueprint run
npx blueprint create ContractName or yarn blueprint create ContractName