-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
56 lines (47 loc) · 1.57 KB
/
Makefile
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
default:build
build:
cargo build --target wasm32-unknown-unknown --release
build_logs:
cargo build --target wasm32-unknown-unknown --profile release-with-logs
initialize:
soroban invoke \
--wasm target/wasm32-unknown-unknown/release/mass_payouts.wasm \
--id 1 \
--fn initialize \
--arg '{"object":{"vec":[{"symbol":"Account"},{"object":{"accountId":{"publicKeyTypeEd25519":"$(admin)"}}}]}}' \
--arg $(currency)
get_state:
soroban invoke \
--wasm target/wasm32-unknown-unknown/release/mass_payouts.wasm \
--id 1 \
--fn get_state
set_acc:
soroban invoke \
--wasm target/wasm32-unknown-unknown/release/mass_payouts.wasm \
--id 1 \
--account $(admin) \
--fn set_acc \
--arg '{"object":{"accountId":{"publicKeyTypeEd25519":"$(account)"}}}' \
--arg '{ "u32": $(amount) }' \
get_acc:
soroban invoke \
--wasm target/wasm32-unknown-unknown/release/mass_payouts.wasm \
--id 1 \
--fn get_acc \
--arg '{"object":{"accountId":{"publicKeyTypeEd25519":"$(account)"}}}'
start_node:
docker run --rm -it \
--platform linux/amd64 \
-p 8000:8000 \
--name futurenet_stellar \
stellar/quickstart:soroban-dev@sha256:0993d3350148af6ffeab5dc8f0b835236b28dade6dcae77ff8a09317162f768d \
--futurenet \
--enable-soroban-rpc
deploy_contract:
soroban deploy \
--wasm target/wasm32-unknown-unknown/release/mass_payouts.wasm \
--secret-key $(secret) \
--rpc-url http://localhost:8000/soroban/rpc \
--network-passphrase 'Test SDF Future Network ; October 2022'
test:
cargo test -- --nocapture