-
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(eventindexer): ei update for state vars (#18867)
Co-authored-by: David <[email protected]>
- Loading branch information
1 parent
9d2aac8
commit 5ac01d9
Showing
4 changed files
with
5,734 additions
and
5 deletions.
There are no files selected for viewing
5,690 changes: 5,690 additions & 0 deletions
5,690
packages/eventindexer/contracts/v2/taikol1/TaikoL1.go
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d "../protocol/out" ]; then | ||
echo "ABI not generated in protocol package yet. Please run npm install && pnpm run 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 > contracts/v2/$lower/${names[i]}.json | ||
abigen --abi contracts/v2/$lower/${names[i]}.json \ | ||
--pkg $lower \ | ||
--type ${names[i]} \ | ||
--out contracts/v2/$lower/${names[i]}.go | ||
done | ||
|
||
exit 0 |