Skip to content

inkdevhub/wasm-lottery

Repository files navigation

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 [email protected]: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

About

Simple lottery contract example in wasm ink

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •