Skip to content

Commit

Permalink
chore: added extra abi, bin output compile
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Dec 2, 2024
1 parent e968e74 commit e5c13d2
Show file tree
Hide file tree
Showing 2 changed files with 1,169 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ include .env
export

.DEFAULT_GOAL := all
package=types
network=polygon-amoy
report=lcov
stage=development
package=types
file=out/${contract}.sol/${contract}

# https://github.com/crytic/slither?tab=readme-ov-file#detectors
# https://book.getfoundry.sh/getting-started/installation
Expand Down Expand Up @@ -35,7 +36,16 @@ forge-update:

.PHONY: compile ## compile contracts
compile:
@forge build
@forge build --extra-output-files bin abi

# https://geth.ethereum.org/docs/tools/abigen
# https://geth.ethereum.org/docs/getting-started/installing-geth
# eg:
# abigen --abi out/RightsPolicyManager.sol/RightsPolicyManager.abi.json --bin out/RightsPolicyManager.sol/RightsPolicyManager.bin /
# --pkg synapse --type RightsPolicyManager --out RightsPolicyManager.go
.PHONY: generate ## generate contract using abigen
generate:
@abigen --abi ${file}.abi.json --bin ${file}.bin --pkg contracts --type ${contract} --out ${contract}.go

.PHONY: force-compile ## compile contracts
force-compile:
Expand Down
Loading

0 comments on commit e5c13d2

Please sign in to comment.