An open API service indexing awesome lists of open source software.

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

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
```