Skip to content

Commit

Permalink
V03 sbrv pc support impl 2 (#15338)
Browse files Browse the repository at this point in the history
* Base changes

* Initial working impl of SBRV migration

* Tests + fixes

* Remaining test + fixes

* Restore interface

* Fix setConfig migration

* Audit fixes

* wrappers / abi

* Prettier

* Update gethwrappers

* gas snapshot

* Fixed dependency relocation and snapshot

* Changeset

* Fix gas snapshots

* Remove script files wihch should not have been incl

* Remove base gas snapshot

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 72166ea commit b4610a6
Show file tree
Hide file tree
Showing 50 changed files with 14,404 additions and 1,563 deletions.
5 changes: 5 additions & 0 deletions contracts/.changeset/purple-spies-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts': minor
---

Added new Data Streams contract version v0.5
277 changes: 271 additions & 6 deletions contracts/gas-snapshots/llo-feeds.gas-snapshot

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions contracts/scripts/native_solc_compile_all_llo-feeds
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ echo " └───────────────────────
SOLC_VERSION="0.8.19"
OPTIMIZE_RUNS=1000000


SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
python3 -m pip install --require-hashes -r "$SCRIPTPATH"/requirements.txt
solc-select install $SOLC_VERSION
Expand All @@ -19,15 +18,15 @@ export SOLC_VERSION=$SOLC_VERSION
ROOT="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; cd ../../ && pwd -P )"

compileContract () {
local contract
contract=$(basename "$1" ".sol")

solc --overwrite --optimize --optimize-runs $OPTIMIZE_RUNS --metadata-hash none \
-o "$ROOT"/contracts/solc/v$SOLC_VERSION/"$contract" \
--abi --bin --allow-paths "$ROOT"/contracts/src/v0.8\
"$ROOT"/contracts/src/v0.8/"$1"
local contract dir
contract=$(basename "$1" ".sol")
dir=$(dirname "$1")

solc --overwrite --optimize --optimize-runs $OPTIMIZE_RUNS --metadata-hash none \
-o "$ROOT"/contracts/solc/v$SOLC_VERSION/"$dir"/"$contract" \
--abi --bin --allow-paths "$ROOT"/contracts/src/v0.8\
"$ROOT"/contracts/src/v0.8/"$1"
}

compileContract llo-feeds/v0.3.0/Verifier.sol
compileContract llo-feeds/v0.3.0/VerifierProxy.sol
compileContract llo-feeds/v0.3.0/FeeManager.sol
Expand All @@ -38,6 +37,10 @@ compileContract llo-feeds/v0.4.0/DestinationFeeManager.sol
compileContract llo-feeds/v0.4.0/DestinationRewardManager.sol
compileContract llo-feeds/v0.5.0/configuration/ChannelConfigStore.sol
compileContract llo-feeds/v0.5.0/configuration/Configurator.sol
compileContract llo-feeds/v0.5.0/Verifier.sol
compileContract llo-feeds/v0.5.0/VerifierProxy.sol
compileContract llo-feeds/v0.5.0/FeeManager.sol
compileContract llo-feeds/v0.5.0/RewardManager.sol

# Test | Mocks
compileContract llo-feeds/v0.3.0/test/mocks/ErroredVerifier.sol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ contract VerifierVerifySingleConfigDigestTest is VerifierVerifyTest {
s_verifier.verify(signedReport, msg.sender);
}

function test_revertsIfMismatchedSignatureLength() public {
function test_revertsIfMismatchedSignatureLengthV03() public {
bytes32[] memory rs = new bytes32[](FAULT_TOLERANCE + 1);
bytes32[] memory ss = new bytes32[](FAULT_TOLERANCE + 3);
bytes32 rawVs = bytes32("");
Expand Down
Loading

0 comments on commit b4610a6

Please sign in to comment.