-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(relayer): relayer state var update for protocol compatibility (#…
- Loading branch information
1 parent
0f4db9b
commit c7c50fd
Showing
5 changed files
with
5,734 additions
and
6 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d "../protocol/out" ]; then | ||
echo "ABI not generated in protocol package yet. Please run npm install && npx hardhat compile in ../protocol" | ||
exit 1 | ||
fi | ||
|
||
paths=("layer1/TaikoL1.sol") | ||
|
||
names=("TaikoL1") | ||
|
||
for (( i = 0; i < ${#paths[@]}; ++i )); | ||
do | ||
lower=$(echo "${names[i]}" | tr '[:upper:]' '[:lower:]') | ||
jq .abi ../protocol/out/${paths[i]}/${names[i]}.json > bindings/v2/$lower/${names[i]}.json | ||
abigen --abi bindings/v2/$lower/${names[i]}.json \ | ||
--pkg $lower \ | ||
--type ${names[i]} \ | ||
--out bindings/v2/$lower/${names[i]}.go | ||
done | ||
|
||
exit 0 |