-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 794 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (20 loc) · 794 Bytes
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
default: build
all: test
test: build
cargo test
build:
stellar contract build
mkdir -p target/wasm32v1-none/optimized
stellar contract optimize \
--wasm target/wasm32v1-none/release/smol.wasm \
--wasm-out target/wasm32v1-none/optimized/smol.wasm
cd target/wasm32v1-none/optimized/ && \
for i in *.wasm ; do \
ls -l "$$i"; \
done
fmt:
cargo fmt --all
clean:
cargo clean
snapshot:
stellar snapshot create --network testnet --address GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGO6V --address CAHERVSQSDMK6ULIG63LQFWD2JOWSRPUMZXQBPPDUPOEV5B5NXESTA2R --address CB6RPCFIL7QAQWLZCAURWUROQ4FY6KRAR7U42UXRTRKXUJRWIHDGPZYK --address GCEDG23LK46PHGXIY63E3ELQGBX6VHQ4EWLYT7FMLOOCIS3ZY2ITHDXB --address GCHPTWXMT3HYF4RLZHWBNRF4MPXLTJ76ISHMSYIWCCDXWUYOQG5MR2AB --output json