Skip to content

Commit

Permalink
ci: update hahses
Browse files Browse the repository at this point in the history
  • Loading branch information
xenide committed Nov 28, 2024
1 parent bc6d914 commit 00fbe64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions script/coverage_patch_deployer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ UNOPTIMIZED_STABLE_HASH=$(cat script/unoptimized-deployer-meta | jq -r '.stable_
OPTIMIZED_CONSTANT_PRODUCT_HASH=$(cat script/optimized-deployer-meta | jq -r '.constant_product_hash')
UNOPTIMIZED_CONSTANT_PRODUCT_HASH=$(cat script/unoptimized-deployer-meta | jq -r '.constant_product_hash')

OPTIMIZED_ORACLE_CALLER_HASH=$(cat script/optimized-deployer-meta | jq -r '.oracle_caller_hash')
UNOPTIMIZED_ORACLE_CALLER_HASH=$(cat script/unoptimized-deployer-meta | jq -r '.oracle_caller_hash')

OPTIMIZED_FACTORY_HASH=$(cat script/optimized-deployer-meta | jq -r '.factory_hash')
UNOPTIMIZED_FACTORY_HASH=$(cat script/unoptimized-deployer-meta | jq -r '.factory_hash')

Expand All @@ -15,12 +12,10 @@ then
echo "Running with coverage profile, patching ReservoirDeployer"
sed -i "s/$OPTIMIZED_STABLE_HASH/$UNOPTIMIZED_STABLE_HASH/g" src/ReservoirDeployer.sol
sed -i "s/$OPTIMIZED_CONSTANT_PRODUCT_HASH/$UNOPTIMIZED_CONSTANT_PRODUCT_HASH/g" src/ReservoirDeployer.sol
sed -i "s/$OPTIMIZED_ORACLE_CALLER_HASH/$UNOPTIMIZED_ORACLE_CALLER_HASH/g" src/ReservoirDeployer.sol
sed -i "s/$OPTIMIZED_FACTORY_HASH/$UNOPTIMIZED_FACTORY_HASH/g" src/ReservoirDeployer.sol
else
echo "Running with default profile, patching ReservoirDeployer"
sed -i "s/$UNOPTIMIZED_STABLE_HASH/$OPTIMIZED_STABLE_HASH/g" src/ReservoirDeployer.sol
sed -i "s/$UNOPTIMIZED_CONSTANT_PRODUCT_HASH/$OPTIMIZED_CONSTANT_PRODUCT_HASH/g" src/ReservoirDeployer.sol
sed -i "s/$UNOPTIMIZED_ORACLE_CALLER_HASH/$OPTIMIZED_ORACLE_CALLER_HASH/g" src/ReservoirDeployer.sol
sed -i "s/$UNOPTIMIZED_FACTORY_HASH/$OPTIMIZED_FACTORY_HASH/g" src/ReservoirDeployer.sol
fi
6 changes: 3 additions & 3 deletions script/optimized-deployer-meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"constant_product_hash": "0xf42a27ee63a88c1d6fd7d5851d4acc9bdaf34f1914a6592f543f760fa562579c",
"factory_hash": "0x66bc11b8bb15d2fce6cc4e4eb39d62a7ab0590762303debfcfad5d0167d04e78",
"stable_hash": "0x1d543bc531824be8462dd57ecd8b6f8d81fb71fb662be35b856ff02aef600a4e"
"constant_product_hash": "0x55735cbf6e5d449d2d543bce7daff8899c1d7437aa94a0e811151e4352dceb32",
"factory_hash": "0xbf4289e36933e3d397e84204326b2315141b31912c6874e3195b491cf022881a",
"stable_hash": "0x9e930aad10856c051cd038e40b80b50becd911eec4b9b63f6f8fd2a5f63c5e64"
}
6 changes: 3 additions & 3 deletions src/ReservoirDeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ contract ReservoirDeployer {
uint256 public step = 0;

// Bytecode hashes.
bytes32 public constant FACTORY_HASH = bytes32(0x66bc11b8bb15d2fce6cc4e4eb39d62a7ab0590762303debfcfad5d0167d04e78);
bytes32 public constant FACTORY_HASH = bytes32(0xbf4289e36933e3d397e84204326b2315141b31912c6874e3195b491cf022881a);
bytes32 public constant CONSTANT_PRODUCT_HASH =
bytes32(0xf42a27ee63a88c1d6fd7d5851d4acc9bdaf34f1914a6592f543f760fa562579c);
bytes32 public constant STABLE_HASH = bytes32(0x1d543bc531824be8462dd57ecd8b6f8d81fb71fb662be35b856ff02aef600a4e);
bytes32(0x55735cbf6e5d449d2d543bce7daff8899c1d7437aa94a0e811151e4352dceb32);
bytes32 public constant STABLE_HASH = bytes32(0x9e930aad10856c051cd038e40b80b50becd911eec4b9b63f6f8fd2a5f63c5e64);

// Deployment addresses.
GenericFactory public factory;
Expand Down

0 comments on commit 00fbe64

Please sign in to comment.