Skip to content

Commit

Permalink
compilation errors from porting
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAustinWang committed Jul 10, 2023
1 parent b56744f commit 622475c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions contracts/src/v0.8/functions/dev/0_0_0/FunctionsOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ contract FunctionsOracle is Initializable, IFunctionsOracle, OCR2BaseUpgradeable
event UserCallbackError(bytes32 indexed requestId, string reason);
event UserCallbackRawError(bytes32 indexed requestId, bytes lowLevelData);
event InvalidRequestID(bytes32 indexed requestId);
event ResponseTransmitted(bytes32 indexed requestId, address transmitter);

error EmptyRequestData();
error InconsistentReportData();
Expand Down
4 changes: 2 additions & 2 deletions contracts/src/v0.8/functions/dev/1_0_0/FunctionsBilling.sol
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,13 @@ abstract contract FunctionsBilling is Route, IFunctionsBilling {
// | Cost Estimation Methods |
// ================================================================
/**
* @inheritdoc IFunctionsBilling
* @notice Uses current fees from DON and admin to estimate a cost
*/
function estimateCost(
bytes calldata data,
uint32 callbackGasLimit,
uint256 gasPrice
) external view override returns (uint96) {
) external view returns (uint96) {
RequestBilling memory billing = RequestBilling(
0, /*Use mock subscriptionId */
msg.sender,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {IFunctionsSubscriptions} from "./interfaces/IFunctionsSubscriptions.sol"
* @notice Contract that nodes of a Decentralized Oracle Network (DON) interact with
* @dev THIS CONTRACT HAS NOT GONE THROUGH ANY SECURITY REVIEW. DO NOT USE IN PROD.
*/
contract FunctionsCoordinator is OCR2Base, IFunctionsCoordinator, FunctionsBilling {
abstract contract FunctionsCoordinator is OCR2Base, IFunctionsCoordinator, FunctionsBilling {
uint16 constant REQUEST_DATA_VERSION = Functions.REQUEST_DATA_VERSION;

event OracleRequest(
Expand Down Expand Up @@ -56,16 +56,16 @@ contract FunctionsCoordinator is OCR2Base, IFunctionsCoordinator, FunctionsBilli
}

/**
* @inheritdoc IFunctionsOracle
* @inheritdoc IFunctionsCoordinator
*/
function getThresholdPublicKey() external view override returns (bytes memory) {
return s_thresholdPublicKey;
}

/**
* @inheritdoc IFunctionsOracle
* @inheritdoc IFunctionsCoordinator
*/
function setThresholdPublicKey(bytes calldata thresholdPublicKey) external override onlyOwner {
function setThresholdPublicKey(bytes calldata thresholdPublicKey) external override onlyRouterOwner {
if (thresholdPublicKey.length == 0) {
revert EmptyPublicKey();
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/v0.8/functions/dev/1_0_0/RouterBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ abstract contract RouterBase is IRouterBase, Pausable, ITypeAndVersion, Confirme
address implAddr = s_route[id];
bytes32 currentConfigHash;
if (implAddr == address(this)) {
currentConfigHash = getConfigHash();
currentConfigHash = s_config_hash;
} else {
currentConfigHash = IConfigurable(implAddr).getConfigHash();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pragma solidity ^0.8.6;

import {BaseTest} from "../BaseTest.t.sol";
import {FunctionsOracle, FunctionsOracleWithInit} from "../testhelpers/FunctionsOracleWithInit.sol";
import {FunctionsBillingRegistryWithInit} from "../testhelpers/FunctionsBillingRegistryWithInit.sol";
import {FunctionsOracle, FunctionsOracleWithInit} from "./testhelpers/FunctionsOracleWithInit.sol";
import {FunctionsBillingRegistryWithInit} from "./testhelpers/FunctionsBillingRegistryWithInit.sol";
import {ConfirmedOwnerUpgradeable} from "../../dev/0_0_0/accessControl/ConfirmedOwnerUpgradeable.sol";

// import {LinkToken} from "../../../../src/v0.4/LinkToken.sol";
Expand Down

0 comments on commit 622475c

Please sign in to comment.