From 875a4e7b38703e77c249b0cafb915fe2cdb6c5b2 Mon Sep 17 00:00:00 2001 From: Neeraj Kashyap Date: Thu, 25 Jan 2024 11:06:10 -0800 Subject: [PATCH] Fixed smartcontractkit/chainlink bullshit What a shitty release cycle they have. --- brownie-config.yaml | 4 ++-- contracts/LootboxRandomness.sol | 2 +- contracts/mock/MockChainlinkCoordinator.sol | 4 ++-- contracts/mock/MockVRFUser.sol | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/brownie-config.yaml b/brownie-config.yaml index b30d8c21..505753d6 100644 --- a/brownie-config.yaml +++ b/brownie-config.yaml @@ -1,10 +1,10 @@ dependencies: - "OpenZeppelin/openzeppelin-contracts@4.4.0" - - "smartcontractkit/chainlink@1.13.3" + - "smartcontractkit/chainlink@2.1.1" compiler: solc: remappings: - "@openzeppelin-contracts=OpenZeppelin/openzeppelin-contracts@4.4.0" - "@openzeppelin/contracts=OpenZeppelin/openzeppelin-contracts@4.4.0" - - "@chainlink=smartcontractkit/chainlink@1.13.3" + - "@chainlink=smartcontractkit/chainlink@2.1.1" diff --git a/contracts/LootboxRandomness.sol b/contracts/LootboxRandomness.sol index fa272b0b..4b3b6903 100644 --- a/contracts/LootboxRandomness.sol +++ b/contracts/LootboxRandomness.sol @@ -7,7 +7,7 @@ pragma solidity ^0.8.0; -import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; +import "@chainlink/contracts/src/v0.8/vrf/VRFConsumerBase.sol"; abstract contract LootboxRandomness is VRFConsumerBase { uint256 ChainlinkVRFFee; diff --git a/contracts/mock/MockChainlinkCoordinator.sol b/contracts/mock/MockChainlinkCoordinator.sol index 1487a93d..df5d0bc0 100644 --- a/contracts/mock/MockChainlinkCoordinator.sol +++ b/contracts/mock/MockChainlinkCoordinator.sol @@ -3,9 +3,9 @@ pragma solidity ^0.8.0; import "./MockLinkToken.sol"; -import "@chainlink/contracts/src/v0.8/VRFRequestIDBase.sol"; +import "@chainlink/contracts/src/v0.8/vrf/VRFRequestIDBase.sol"; -import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; +import "@chainlink/contracts/src/v0.8/vrf/VRFConsumerBase.sol"; /** * @title MockChainlinkCordinator contract, to use VRF it locally diff --git a/contracts/mock/MockVRFUser.sol b/contracts/mock/MockVRFUser.sol index a9bedd27..934ec27d 100644 --- a/contracts/mock/MockVRFUser.sol +++ b/contracts/mock/MockVRFUser.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; -import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; +import "@chainlink/contracts/src/v0.8/vrf/VRFConsumerBase.sol"; contract MockVRFUser is VRFConsumerBase { uint256 ChainlinkVRFFee;