We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a18b9 commit 30f6517Copy full SHA for 30f6517
Makefile
@@ -1,5 +1,10 @@
1
SHELL := /usr/bin/env bash
2
3
+lower = $(shell echo '$1' | tr '[:upper:]' '[:lower:]')
4
+
5
+CONTRACTS := $(basename $(notdir $(wildcard ./src/*.sol)))
6
+BINDINGS := $(foreach contract,$(CONTRACTS),$(call lower,$(contract)))
7
8
all: forge gen
9
.PHONY: all forge gen
10
@@ -8,3 +13,8 @@ forge:
13
14
gen:
15
go run gen/gen.go -config genconfig.toml -base-path ./
16
17
+$(BINDINGS:%=bindings/%.go): forge
18
+ abigen --abi <(jq '.["abi"]' "out/$(basename $(notdir $@)).sol/$(basename $(notdir $@)).json") --pkg bindings --out $@
19
20
+bindings: $(BINDINGS:%=bindings/%.go)
0 commit comments