Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
d16a8532
Commit
d16a8532
authored
Jul 28, 2022
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-bindings: speed up build
parent
c97ad241
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
Makefile
op-bindings/Makefile
+6
-6
gen_bindings.sh
op-bindings/gen_bindings.sh
+8
-5
No files found.
op-bindings/Makefile
View file @
d16a8532
...
...
@@ -18,22 +18,22 @@ gas-price-oracle-deployed: gas-price-oracle-bindings
./gen_deployed_bytecode.sh GasPriceOracle bindings
l1block-bindings
:
./gen_bindings.sh L1Block bindings
./gen_bindings.sh
contracts/L2/L1Block.sol:
L1Block bindings
l2-to-l1-message-passer-bindings
:
./gen_bindings.sh L2ToL1MessagePasser bindings
./gen_bindings.sh
contracts/L2/L2ToL1MessagePasser.sol:
L2ToL1MessagePasser bindings
optimism-portal-bindings
:
./gen_bindings.sh OptimismPortal bindings
./gen_bindings.sh
contracts/L1/OptimismPortal.sol:
OptimismPortal bindings
l2-output-oracle-bindings
:
./gen_bindings.sh L2OutputOracle bindings
./gen_bindings.sh
contracts/L1/L2OutputOracle.sol:
L2OutputOracle bindings
gas-price-oracle-bindings
:
./gen_bindings.sh GasPriceOracle bindings
./gen_bindings.sh
contracts/L2/GasPriceOracle.sol:
GasPriceOracle bindings
address-manager-bindings
:
./gen_bindings.sh AddressManager bindings
./gen_bindings.sh
contracts/legacy/AddressManager.sol:
AddressManager bindings
mkdir
:
mkdir
-p
bin bindings
...
...
op-bindings/gen_bindings.sh
View file @
d16a8532
...
...
@@ -19,8 +19,11 @@ need_cmd() {
need_cmd forge
need_cmd abigen
TYPE
=
$1
NAME
=
$1
# This can handle both fully qualified syntax or just
# the name of the contract.
# Fully qualified: path-to-contract-file:contract-name
TYPE
=
$(
echo
"
$NAME
"
|
cut
-d
':'
-f2
)
PACKAGE
=
$2
# Convert to lower case to respect golang package naming conventions
...
...
@@ -35,9 +38,9 @@ CWD=$(pwd)
# Build contracts
cd
${
CONTRACTS_PATH
}
forge build
forge inspect
${
TYP
E
}
abi
>
${
TEMP
}
/
${
TYPE
}
.abi
forge inspect
${
TYP
E
}
bytecode
>
${
TEMP
}
/
${
TYPE
}
.bin
forge inspect
${
TYP
E
}
deployedBytecode
>
${
CWD
}
/bin/
${
TYPE_LOWER
}
_deployed.hex
forge inspect
${
NAM
E
}
abi
>
${
TEMP
}
/
${
TYPE
}
.abi
forge inspect
${
NAM
E
}
bytecode
>
${
TEMP
}
/
${
TYPE
}
.bin
forge inspect
${
NAM
E
}
deployedBytecode
>
${
CWD
}
/bin/
${
TYPE_LOWER
}
_deployed.hex
# Run ABIGEN
cd
${
CWD
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment