-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
70 lines (49 loc) · 3.4 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.PHONY: clean generate regenerate test docs redocs hardhat bindings test-graffiti test-web3 clean-web3 deepclean
build: hardhat bindings bin/game7 bin/graffiti
rebuild: clean generate build
bin/game7:
mkdir -p bin
go build -o bin/game7 ./cmd/game7
bin/graffiti:
mkdir -p bin
go build -o bin/graffiti ./cmd/graffiti
bindings/ERC20/ERC20.go: hardhat
mkdir -p bindings/ERC20
seer evm generate --package ERC20 --output bindings/ERC20/ERC20.go --hardhat web3/artifacts/contracts/token/ERC20.sol/ERC20.json --cli --struct ERC20
bindings/TokenFaucet/TokenFaucet.go: hardhat
mkdir -p bindings/TokenFaucet
seer evm generate --package TokenFaucet --output bindings/TokenFaucet/TokenFaucet.go --hardhat web3/artifacts/contracts/faucet/TokenFaucet.sol/TokenFaucet.json --cli --struct TokenFaucet
bindings/WrappedNativeToken/WrappedNativeToken.go: hardhat
mkdir -p bindings/WrappedNativeToken
seer evm generate --package WrappedNativeToken --output bindings/WrappedNativeToken/WrappedNativeToken.go --hardhat web3/artifacts/contracts/token/WrappedNativeToken.sol/WrappedNativeToken.json --cli --struct WrappedNativeToken
bindings/Staker/Staker.go: hardhat
mkdir -p bindings/Staker
seer evm generate --package Staker --output bindings/Staker/Staker.go --hardhat web3/artifacts/contracts/staking/Staker.sol/Staker.json --cli --struct Staker
bindings/PositionMetadata/PositionMetadata.go: hardhat
mkdir -p bindings/PositionMetadata
seer evm generate --package PositionMetadata --output bindings/PositionMetadata/PositionMetadata.go --hardhat web3/artifacts/contracts/staking/PositionMetadata.sol/PositionMetadata.json --cli --struct PositionMetadata
bindings/MockERC20/MockERC20.go: hardhat
mkdir -p bindings/MockERC20
seer evm generate --package MockERC20 --output bindings/MockERC20/MockERC20.go --hardhat web3/artifacts/contracts/mock/tokens.sol/MockERC20.json --cli --struct MockERC20
bindings/MockERC721/MockERC721.go: hardhat
mkdir -p bindings/MockERC721
seer evm generate --package MockERC721 --output bindings/MockERC721/MockERC721.go --hardhat web3/artifacts/contracts/mock/tokens.sol/MockERC721.json --cli --struct MockERC721
bindings/MockERC1155/MockERC1155.go: hardhat
mkdir -p bindings/MockERC1155
seer evm generate --package MockERC1155 --output bindings/MockERC1155/MockERC1155.go --hardhat web3/artifacts/contracts/mock/tokens.sol/MockERC1155.json --cli --struct MockERC1155
bindings/TokenSender/TokenSender.go: hardhat
mkdir -p bindings/TokenSender
seer evm generate --package TokenSender --output bindings/TokenSender/TokenSender.go --hardhat web3/artifacts/contracts/faucet/TokenSender.sol/TokenSender.json --cli --struct TokenSender
bindings: bindings/ERC20/ERC20.go bindings/TokenFaucet/TokenFaucet.go bindings/WrappedNativeToken/WrappedNativeToken.go bindings/Staker/Staker.go bindings/MockERC20/MockERC20.go bindings/MockERC721/MockERC721.go bindings/MockERC1155/MockERC1155.go bindings/PositionMetadata/PositionMetadata.go bindings/TokenSender/TokenSender.go
test-web3:
cd web3 && npx hardhat test
test-graffiti:
go test ./cmd/graffiti -v
test: test-web3 test-graffiti
clean:
rm -rf bindings/ERC20/* bin/* bindings/TokenFaucet/* bindings/WrappedNativeToken/* bindings/Staker/* bindings/MockERC20/* bindings/MockERC721/* bindings/MockERC1155/* bindings/PositionMetadata/* bindings/TokenSender/*
clean-web3:
rm -rf web3/node_modules web3/artifacts
deepclean: clean clean-web3
hardhat:
cd web3 && npm install && npx hardhat compile