Skip to content

Commit

Permalink
use yui-ibc-solidity@v0.3.34
Browse files Browse the repository at this point in the history
Signed-off-by: Masanori Yoshida <masanori.yoshida@datachain.jp>
  • Loading branch information
siburu committed Aug 9, 2024
1 parent 95a9d18 commit c701335
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 319 deletions.
15 changes: 6 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,12 @@ compile:
.PHONY: abigen
abigen: compile
@mkdir -p ./build/abi
@mkdir -p ./pkg/contract/ibchandler
@mkdir -p ./pkg/contract/multicall3
@mkdir -p ./pkg/contract/ibcchannelupgradablemodule
@jq -r '.abi' ./yui-ibc-solidity/out/IBCHandler.sol/IBCHandler.json > ./build/abi/IBCHandler.abi
@jq -r '.abi' ./yui-ibc-solidity/out/Multicall3.sol/Multicall3.json > ./build/abi/Multicall3.abi
@jq -r '.abi' ./yui-ibc-solidity/out/IBCChannelUpgradableModule.sol/IIBCChannelUpgradableModule.json > ./build/abi/IIBCChannelUpgradableModule.abi
@$(ABIGEN) --abi ./build/abi/IBCHandler.abi --pkg ibchandler --out ./pkg/contract/ibchandler/ibchandler.go
@$(ABIGEN) --abi ./build/abi/Multicall3.abi --pkg multicall3 --out ./pkg/contract/multicall3/multicall3.go
@$(ABIGEN) --abi ./build/abi/IIBCChannelUpgradableModule.abi --pkg ibcchannelupgradablemodule -out ./pkg/contract/ibcchannelupgradablemodule/ibcchannelupgradablemodule.go
@for a in IBCHandler Multicall3 IIBCChannelUpgradableModule; do \
b=$$(echo $$a | tr '[A-Z]' '[a-z]'); \
mkdir -p ./build/abi ./pkg/contract/$$b; \
jq -r '.abi' ./yui-ibc-solidity/out/$$a.sol/$$a.json > ./build/abi/$$a.abi; \
$(ABIGEN) --abi ./build/abi/$$a.abi --pkg $$b --out ./pkg/contract/$$b/$$b.go; \
done

.PHONY: proto-gen proto-update-deps
proto-gen:
Expand Down
Loading

0 comments on commit c701335

Please sign in to comment.