-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
105 lines (77 loc) · 6 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
.PHONY: clean generate regenerate test docs redocs hardhat bindings test-graffiti test-web3 clean-web3 deepclean gitmodule
build: gitmodule hardhat bindings bin/game7 bin/graffiti bin/robognome
rebuild: clean generate build
bin/game7:
mkdir -p bin
go mod tidy
go build -o bin/game7 ./cmd/game7
bin/robognome:
mkdir -p bin
go mod tidy
go build -o bin/robognome ./cmd/robognome
bin/graffiti:
mkdir -p bin
go mod tidy
go build -o bin/graffiti ./cmd/graffiti
bindings/IMulticall3/IMulticall3.go: abis/IMulticall3.json
mkdir -p bindings/IMulticall3
seer evm generate --package IMulticall3 --output bindings/IMulticall3/IMulticall3.go --abi abis/IMulticall3.json --struct IMulticall3
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/Metronome/Metronome.go: hardhat
mkdir -p bindings/Metronome
seer evm generate --package Metronome --output bindings/Metronome/Metronome.go --hardhat web3/artifacts/contracts/metronome/Metronome.sol/Metronome.json --cli --struct Metronome
bindings/utils/diamonds/Diamonds.go: hardhat
mkdir -p bindings/utils/diamonds/Diamond
seer evm generate --package Diamond --output bindings/utils/diamonds/Diamond/Diamond.go --hardhat web3/artifacts/contracts/utils/diamonds/contracts/Diamond.sol/Diamond.json --cli --struct Diamond
mkdir -p bindings/utils/diamonds/DiamondCutFacet
seer evm generate --package DiamondCutFacet --output bindings/utils/diamonds/DiamondCutFacet/DiamondCutFacet.go --hardhat web3/artifacts/contracts/utils/diamonds/contracts/facets/DiamondCutFacet.sol/DiamondCutFacet.json --cli --struct DiamondCutFacet
mkdir -p bindings/utils/diamonds/DiamondLoupeFacet
seer evm generate --package DiamondLoupeFacet --output bindings/utils/diamonds/DiamondLoupeFacet/DiamondLoupeFacet.go --hardhat web3/artifacts/contracts/utils/diamonds/contracts/facets/DiamondLoupeFacet.sol/DiamondLoupeFacet.json --cli --struct DiamondLoupeFacet
mkdir -p bindings/utils/diamonds/OwnershipFacet
seer evm generate --package OwnershipFacet --output bindings/utils/diamonds/OwnershipFacet/OwnershipFacet.go --hardhat web3/artifacts/contracts/utils/diamonds/contracts/facets/OwnershipFacet.sol/OwnershipFacet.json --cli --struct OwnershipFacet
bindings/utils/security/Terminus.go: hardhat
mkdir -p bindings/security/terminus/TerminusFacet
seer evm generate --package TerminusFacet --output bindings/security/terminus/TerminusFacet/TerminusFacet.go --hardhat web3/artifacts/contracts/security/terminus/TerminusFacet.sol/TerminusFacet.json --cli --struct TerminusFacet
mkdir -p bindings/security/terminus/TerminusInitializer
seer evm generate --package TerminusInitializer --output bindings/security/terminus/TerminusInitializer/TerminusInitializer.go --hardhat web3/artifacts/contracts/security/terminus/TerminusInitializer.sol/TerminusInitializer.json --cli --struct TerminusInitializer
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/Metronome/Metronome.go bindings/TokenSender/TokenSender.go bindings/utils/diamonds/Diamonds.go bindings/utils/security/Terminus.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/* bindings/utils/* bindings/security/*
clean-web3:
rm -rf web3/node_modules web3/artifacts
deepclean: clean clean-web3
hardhat:
cd web3 && npm install && npx hardhat compile
gitmodule:
git submodule update --init --recursive