The .env.example
should look like this
RPC_URL=
PRIVATE_KEY=
CONTRACT_ADDRESS=
To copy it to your .env
run:
cp .env.example .env
After the copying the template you should fill in each environmental variable
First you have to clone this repo to your machine:
git clone https://github.com/Perelyn-sama/wager_cli
Next, you have to enter the wager_cli
directory then install it
cd wager_cli
cargo install .
Now you when you run:
wager_cli
You should see:
A basic CLi for interacting with Wager contract
Usage: wager_cli <COMMAND>
Commands:
add adds players
show show players
remove delete players
balance show balances
set_bet_amount set bet amount
provide_outcome provide outcome
submit_bet submit your bet
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
You can also check out the Makefile to see how to run commands