This contract is an example for the lottery implementation in wasm.
Apache 2.0
- Use this instructions to setup your ink!/Rust environment
Clone project
git clone [email protected]:swanky-dapps/wasm-lottery.git
Build
swanky contract compile lottery
swanky test
First start your local node. Recommended swanky-node v1.0.0
swanky contract deploy lottery
- or deploy polkadot JS. Instructions on Astar docs
First start your local node. Recommended swanky-node v1.0.0
yarn
yarn compile
yarn test
Shibuya: ZZJDDGxbe4gximPQGQyPYTvEXEhpagpsStpTYetABEAUeRu
yarn
yarn start
link to firebase deployed website: https://wasm-lottery.web.app/
cd contracts/lottery
cargo test --features e2e-tests