-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
66 lines (45 loc) · 2.41 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
set positional-arguments
set dotenv-load
set dotenv-path := ".env.local"
build:
cartesi build
run:
cartesi run --epoch-duration=10
run-local:
cargo run --features lightwalletd
run-fullnode:
cargo run --no-default-features --features listen-graphql,lightwalletd
run-fullnode-testnet:
ROLLUP_HTTP_SERVER_URL=https://cartezcash.fly.dev/graphql cargo run --no-default-features --features listen-graphql,lightwalletd
run-nobackend:
cartesi run --no-backend --epoch-duration=10
##### Docker
build-fullnode-docker:
docker build -f fullnode.Dockerfile -t cartezcash/fullnode:latest .
run-fullnode-docker:
docker run -it --rm -p 50051:50051 -e ROLLUP_HTTP_SERVER_URL=http://host.docker.internal:8080/graphql -e GRPC_SERVER_URL="[::1]:50051" cartezcash/fullnode:latest
##### Interact with dApp via Cartesi CLI
@deposit address amount:
cartesi send ether --execLayerData=$1 --amount=$2 --rpc-url=http://127.0.0.1:8545 --chain-id=31337 --dapp=0xab7528bb862fB57E8A2BCd567a2e929a0Be56a5e
@send txn_hex:
cartesi send generic --input="0x$2" --rpc-url=http://127.0.0.1:8545 --chain-id=31337 --dapp=0xab7528bb862fB57E8A2BCd567a2e929a0Be56a5e
execute_voucher:
cast send 0xab7528bb862fB57E8A2BCd567a2e929a0Be56a5e "executeVoucher(address, bytes, struct Proof _proof)"
send-address:
cartesi send dapp-address --rpc-url=http://127.0.0.1:8545 --chain-id=31337 --dapp=0xab7528bb862fB57E8A2BCd567a2e929a0Be56a5e
##### wallet related commands
install-wallet:
cargo install --force --git https://github.com/willemolding/zingolib --branch willem/tinycash-desktop --bin zingo-cli
## Do not use these wallets on mainnet!
start-wallet:
zingo-cli --data-dir ./walletdata --server localhost:50051 --from "wood unaware body couch morning flavor wage relax inject point scare firm emotion civil risk athlete asthma pave mango title spatial celery use modify" --birthday 0
restart-wallet:
zingo-cli --data-dir ./walletdata --server localhost:50051
start-wallet-testnet:
zingo-cli --server https://cartezcash-fullnode.fly.dev:443 --birthday 0
start-wallet-2:
zingo-cli --data-dir ./walletdata2 --server localhost:50051 --from "february day pink knee nut struggle poem silver hawk voice stay rule food cabbage eight phrase parent spider forget laundry wagon dwarf improve flee" --birthday 0
restart-wallet-2:
zingo-cli --data-dir ./walletdata --server localhost:50051
clear-wallet:
rm -rf ./walletdata*