-
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.
Support v0.3 schema report format in LLO (#13780)
* Support v0.3 legacy reports in streams - Add 'stream' to allowed job type list - Improve streams logging; add "Verbose" option - Bump chainlink-data-streams - Fix some LLO bugs - Close MERC-3525 - Close MERC-4184 - Close MERC-5934 - Handle case where LINK or NATIVE price query fails - Close MERC-5952 * Fix rebase * Prettier * Bump migration number
- Loading branch information
Showing
51 changed files
with
3,471 additions
and
1,084 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"chainlink": patch | ||
--- | ||
|
||
Further development of LLO plugin (parallel composition) #wip |
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,5 @@ | ||
--- | ||
'@chainlink/contracts': patch | ||
--- | ||
|
||
Add new channel definitions config store contract for parallel compositions #added |
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
41 changes: 41 additions & 0 deletions
41
contracts/src/v0.8/llo-feeds/dev/test/ChannelConfigStore.t.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.19; | ||
|
||
import {IChannelConfigStore} from "../interfaces/IChannelConfigStore.sol"; | ||
import {Test} from "forge-std/Test.sol"; | ||
import {ChannelConfigStore} from "../ChannelConfigStore.sol"; | ||
import {ExposedChannelConfigStore} from "./mocks/ExposedChannelConfigStore.sol"; | ||
|
||
/** | ||
* @title ChannelConfigStoreTest | ||
* @author samsondav | ||
* @notice Base class for ChannelConfigStore tests | ||
*/ | ||
contract ChannelConfigStoreTest is Test { | ||
ExposedChannelConfigStore public channelConfigStore; | ||
event NewChannelDefinition(uint256 indexed donId, uint32 version, string url, bytes32 sha); | ||
|
||
function setUp() public virtual { | ||
channelConfigStore = new ExposedChannelConfigStore(); | ||
} | ||
|
||
function testTypeAndVersion() public view { | ||
assertEq(channelConfigStore.typeAndVersion(), "ChannelConfigStore 0.0.1"); | ||
} | ||
|
||
function testSupportsInterface() public view { | ||
assertTrue(channelConfigStore.supportsInterface(type(IChannelConfigStore).interfaceId)); | ||
} | ||
|
||
function testSetChannelDefinitions() public { | ||
vm.expectEmit(); | ||
emit NewChannelDefinition(42, 1, "url", keccak256("sha")); | ||
channelConfigStore.setChannelDefinitions(42, "url", keccak256("sha")); | ||
|
||
vm.expectEmit(); | ||
emit NewChannelDefinition(42, 2, "url2", keccak256("sha2")); | ||
channelConfigStore.setChannelDefinitions(42, "url2", keccak256("sha2")); | ||
|
||
assertEq(channelConfigStore.exposedReadChannelDefinitionStates(42), uint32(2)); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
contracts/src/v0.8/llo-feeds/dev/test/mocks/ExposedChannelConfigStore.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.19; | ||
|
||
import {ChannelConfigStore} from "../../ChannelConfigStore.sol"; | ||
|
||
// Exposed ChannelConfigStore exposes certain internal ChannelConfigStore | ||
// methods/structures so that golang code can access them, and we get | ||
// reliable type checking on their usage | ||
contract ExposedChannelConfigStore is ChannelConfigStore { | ||
constructor() {} | ||
|
||
function exposedReadChannelDefinitionStates(uint256 donId) public view returns (uint256) { | ||
return s_channelDefinitionVersions[donId]; | ||
} | ||
} |
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
Oops, something went wrong.