Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Specify bindings struct name
Browse files Browse the repository at this point in the history
This is necessary because we have multiple contracts in the same
bindings package.
  • Loading branch information
jannikluhn committed Apr 7, 2024
1 parent 91e289e commit 1bb7f0d
Show file tree
Hide file tree
Showing 7 changed files with 1,255 additions and 1,256 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ SHELL := /usr/bin/env bash
lower = $(shell echo '$1' | tr '[:upper:]' '[:lower:]')

CONTRACTS := $(basename $(notdir $(wildcard ./src/*.sol)))
BINDINGS := $(foreach contract,$(CONTRACTS),$(call lower,$(contract)))

all: forge gen
.PHONY: all forge gen
Expand All @@ -14,7 +13,7 @@ forge:
gen:
go run gen/gen.go -config genconfig.toml -base-path ./

$(BINDINGS:%=bindings/%.go): forge
abigen --abi <(jq '.["abi"]' "out/$(basename $(notdir $@)).sol/$(basename $(notdir $@)).json") --pkg bindings --out $@
$(CONTRACTS:%=bindings/%.go): forge
abigen --abi <(jq '.["abi"]' "out/$(basename $(notdir $@)).sol/$(basename $(notdir $@)).json") --pkg bindings --type $(basename $(notdir $@)) --out $@

bindings: $(BINDINGS:%=bindings/%.go)
bindings: $(CONTRACTS:%=bindings/%.go)
198 changes: 99 additions & 99 deletions bindings/eonkeypublish.go

Large diffs are not rendered by default.

678 changes: 339 additions & 339 deletions bindings/inbox.go

Large diffs are not rendered by default.

202 changes: 101 additions & 101 deletions bindings/keybroadcastcontract.go

Large diffs are not rendered by default.

342 changes: 171 additions & 171 deletions bindings/keyperset.go

Large diffs are not rendered by default.

590 changes: 295 additions & 295 deletions bindings/keypersetmanager.go

Large diffs are not rendered by default.

494 changes: 247 additions & 247 deletions bindings/restrictedpausable.go

Large diffs are not rendered by default.

0 comments on commit 1bb7f0d

Please sign in to comment.