-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: generate function selector list to selectors.txt (#671)
- Loading branch information
Showing
3 changed files
with
597 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
cd ../.. | ||
npx hardhat flatten packages/network-contracts/contracts/OperatorTokenomics/Operator.sol > temp.sol | ||
grep -v SPDX-License-Identifier temp.sol > temp2.sol | ||
grep -v "pragma experimental" temp2.sol > temp.sol | ||
echo // SPDX-License-Identifier: MIT > sol | ||
echo pragma experimental ABIEncoderV2; >> sol | ||
cat temp.sol >> sol | ||
docker run -v .:/Operator ethereum/solc:0.8.13 --hashes Operator/sol > packages/network-contracts/selectors.txt | ||
rm temp.sol temp2.sol sol |
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
Oops, something went wrong.