/wasm-lottery

Simple lottery contract example in wasm ink

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

WASM lottery project

This contract is an example for the lottery implementation in wasm.

License

Apache 2.0

🏗️ How to use - Contracts

💫 Build

Clone project

git clone git@github.com:swanky-dapps/wasm-lottery.git

Build

swanky contract compile lottery
💫 Run unit test
swanky test
💫 Deploy

First start your local node. Recommended swanky-node v1.0.0

swanky contract deploy lottery
  • or deploy polkadot JS. Instructions on Astar docs
💫 Run integration test

First start your local node. Recommended swanky-node v1.0.0

yarn
yarn compile
yarn test
💫 Deployed contracts

Shibuya: ZZJDDGxbe4gximPQGQyPYTvEXEhpagpsStpTYetABEAUeRu

🏗️ How to use - UI

yarn
yarn start

Goto http://localhost:3000

links

link to firebase deployed website: https://wasm-lottery.web.app/

E2E tests
cd contracts/lottery
cargo test --features e2e-tests