https://github.com/rustyneuron01/arch-lottery-smart-contract
Lottery Smart Contract on Arch Network Bitcoin L1. Users bid and update user info and choose winner randomly
https://github.com/rustyneuron01/arch-lottery-smart-contract
arch smart-contract solana
Last synced: 28 days ago
JSON representation
Lottery Smart Contract on Arch Network Bitcoin L1. Users bid and update user info and choose winner randomly
- Host: GitHub
- URL: https://github.com/rustyneuron01/arch-lottery-smart-contract
- Owner: rustyneuron01
- Created: 2024-10-08T00:12:10.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-28T18:17:13.000Z (over 1 year ago)
- Last Synced: 2025-10-30T20:15:08.948Z (7 months ago)
- Topics: arch, smart-contract, solana
- Language: Rust
- Homepage:
- Size: 3.72 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arch-lottery
This repo contains a local arch-network development stack, as well as some one sample program(lottery).
## Requirements:
- [Rust]
- [Docker]
- [A C++ Compiler (gcc/clang)](#21-install-c-compiler)
- [Solana CLI](#22---install-solana-cli)
## Getting Started
You can find Lottery Arch Network simple smart contract in https://github.com/FCBtc1116/Arch-Lottery/tree/master/examples/raffle repo.
## Build program
Run `cargo-build-sbf`
- Submit a test arch-network transaction, executing the `Lottery` program:
```bash
# return to the Raffle dir and run test
cd .. && cargo test -- --nocapture
```