-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from ethereum-optimism/tip/pcw109550/update-bi…
…ndings Refactor bindings
- Loading branch information
Showing
8 changed files
with
58 additions
and
242 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
out := '../rvsol/out' | ||
|
||
bindings-upgrades: | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
build_abi() { | ||
jq .abi "{{out}}/$1.sol/$1.json" > "/tmp/$1.json" | ||
|
||
local lowercase=$(echo "$1" | awk '{print tolower($0)}') | ||
abigen \ | ||
--abi "/tmp/$1.json" \ | ||
--pkg bindings \ | ||
--out "bindings/$lowercase.go" \ | ||
--type $1 | ||
} | ||
|
||
build_abi RISCV | ||
build_abi PreimageOracle |