-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update core to use latest opfwdr contracts ABI (#11027)
- Loading branch information
1 parent
2930423
commit 7194613
Showing
7 changed files
with
110 additions
and
64 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
32 changes: 32 additions & 0 deletions
32
contracts/scripts/native_solc_compile_all_operatorforwarder
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,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
echo " ┌──────────────────────────────────────────────┐" | ||
echo " │ Compiling Operator Forwarder contracts... │" | ||
echo " └──────────────────────────────────────────────┘" | ||
|
||
SOLC_VERSION="0.8.19" | ||
OPTIMIZE_RUNS=1000000 | ||
|
||
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
ROOT="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; cd ../../ && pwd -P )" | ||
python3 -m pip install --require-hashes -r $SCRIPTPATH/requirements.txt | ||
|
||
solc-select install $SOLC_VERSION | ||
solc-select use $SOLC_VERSION | ||
export SOLC_VERSION=$SOLC_VERSION | ||
|
||
compileContract () { | ||
solc @openzeppelin/=$ROOT/contracts/node_modules/@openzeppelin/ --overwrite --optimize --optimize-runs $OPTIMIZE_RUNS --metadata-hash none \ | ||
-o $ROOT/contracts/solc/v$SOLC_VERSION \ | ||
--abi --bin --allow-paths $ROOT/contracts/src/v0.8,$ROOT/contracts/node_modules\ | ||
$ROOT/contracts/src/v0.8/$1 | ||
} | ||
|
||
# Contracts | ||
compileContract operatorforwarder/dev/AuthorizedForwarder.sol | ||
compileContract operatorforwarder/dev/AuthorizedReceiver.sol | ||
compileContract operatorforwarder/dev/Operator.sol | ||
compileContract operatorforwarder/dev/OperatorFactory.sol | ||
|
54 changes: 34 additions & 20 deletions
54
core/gethwrappers/generated/authorized_forwarder/authorized_forwarder.go
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
core/gethwrappers/generated/operator_factory/operator_factory.go
Large diffs are not rendered by default.
Oops, something went wrong.
52 changes: 26 additions & 26 deletions
52
core/gethwrappers/generated/operator_wrapper/operator_wrapper.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