-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
46 lines (39 loc) · 1.48 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
build:
ifeq (,$(wildcard ${current_dir}/bin/fvm_go_sdk))
BUILD_FIL_NETWORK=devnet-wasm cargo build -p fvm_go_sdk --release
endif
build-client-example:
cd examples/erc20/client_example && go build
cd examples/frc46token/client_example && go build
cd examples/hellocontract/client_example && go build
install:build
cp -f ./target/release/fvm_go_sdk /usr/local/bin
code-gen:
cd ./sdk/gen && go run main.go
cd ./sdk/cases && ./gen.sh
cd ./examples/hellocontract/gen && go run main.go
cd ./examples/hellocontract && fvm_go_sdk build
cd ./examples/erc20/gen && go run main.go
cd ./examples/erc20 && fvm_go_sdk build
cd ./examples/frc46token/gen && go run main.go
cd ./examples/frc46token && fvm_go_sdk build
cd ./examples/wallet/gen && go run main.go
cd ./examples/wallet && fvm_go_sdk build
cd ./examples/queuecall/gen && go run main.go
cd ./examples/queuecall && fvm_go_sdk build
clean:
rm -rf ./bin/*
lint:
golangci-lint run
cargo run -p ci -- lint
test: build code-gen
cd ./sdk/cases && fvm_go_sdk test
cd ./examples/hellocontract && fvm_go_sdk test
cd ./examples/erc20 && fvm_go_sdk test
cd ./examples/erc20/contract && go test --tags simulate
cd ./examples/frc46token && fvm_go_sdk test
cd ./examples/frc46token/contract && go test --tags simulate
cd ./examples/hellocontract/contract && go test --tags simulate
cd ./examples/queuecall/contract && go test --tags simulate
cd ./examples/wallet/contract && go test --tags simulate
check: code-gen lint build-client-example test