Skip to content

Commit

Permalink
Rename VRFV2PlusWrapperInterface to IVRFV2PlusWrapper to be consisten…
Browse files Browse the repository at this point in the history
…t with rest of interfaces (#10857)

Co-authored-by: Sri Kidambi <[email protected]>
  • Loading branch information
kidambisrinivas and kidambisrinivas authored Oct 4, 2023
1 parent c97bb57 commit dd3a699
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFV2PlusWrapperInterface {
interface IVRFV2PlusWrapper {
/**
* @return the request ID of the most recent VRF V2 request made by this wrapper. This should only
* be relied option within the same transaction that the request was made.
Expand Down
4 changes: 2 additions & 2 deletions contracts/src/v0.8/dev/vrf/VRFV2PlusWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import "./VRFConsumerBaseV2Plus.sol";
import "../../shared/interfaces/LinkTokenInterface.sol";
import "../../interfaces/AggregatorV3Interface.sol";
import "../interfaces/IVRFCoordinatorV2Plus.sol";
import "../interfaces/VRFV2PlusWrapperInterface.sol";
import "../interfaces/IVRFV2PlusWrapper.sol";
import "./VRFV2PlusWrapperConsumerBase.sol";
import "../../ChainSpecificUtil.sol";

/**
* @notice A wrapper for VRFCoordinatorV2 that provides an interface better suited to one-off
* @notice requests for randomness.
*/
contract VRFV2PlusWrapper is ConfirmedOwner, TypeAndVersionInterface, VRFConsumerBaseV2Plus, VRFV2PlusWrapperInterface {
contract VRFV2PlusWrapper is ConfirmedOwner, TypeAndVersionInterface, VRFConsumerBaseV2Plus, IVRFV2PlusWrapper {
event WrapperFulfillmentFailed(uint256 indexed requestId, address indexed consumer);

error LinkAlreadySet();
Expand Down
6 changes: 3 additions & 3 deletions contracts/src/v0.8/dev/vrf/VRFV2PlusWrapperConsumerBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.0;

import "../../shared/interfaces/LinkTokenInterface.sol";
import "../interfaces/VRFV2PlusWrapperInterface.sol";
import "../interfaces/IVRFV2PlusWrapper.sol";

/**
*
Expand Down Expand Up @@ -32,7 +32,7 @@ abstract contract VRFV2PlusWrapperConsumerBase {
error LINKAlreadySet();

LinkTokenInterface internal LINK;
VRFV2PlusWrapperInterface internal VRF_V2_PLUS_WRAPPER;
IVRFV2PlusWrapper internal VRF_V2_PLUS_WRAPPER;

/**
* @param _link is the address of LinkToken
Expand All @@ -43,7 +43,7 @@ abstract contract VRFV2PlusWrapperConsumerBase {
LINK = LinkTokenInterface(_link);
}

VRF_V2_PLUS_WRAPPER = VRFV2PlusWrapperInterface(_vrfV2PlusWrapper);
VRF_V2_PLUS_WRAPPER = IVRFV2PlusWrapper(_vrfV2PlusWrapper);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ contract VRFV2PlusWrapperLoadTestConsumer is VRFV2PlusWrapperConsumerBase, Confi
require(success, "withdrawNative failed");
}

function getWrapper() external view returns (VRFV2PlusWrapperInterface) {
function getWrapper() external view returns (IVRFV2PlusWrapper) {
return VRF_V2_PLUS_WRAPPER;
}

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ vrfv2plus_malicious_migrator: ../../contracts/solc/v0.8.6/VRFV2PlusMaliciousMigr
vrfv2plus_reverting_example: ../../contracts/solc/v0.8.6/VRFV2PlusRevertingExample.abi ../../contracts/solc/v0.8.6/VRFV2PlusRevertingExample.bin 34743ac1dd5e2c9d210b2bd721ebd4dff3c29c548f05582538690dde07773589
vrfv2plus_wrapper: ../../contracts/solc/v0.8.6/VRFV2PlusWrapper.abi ../../contracts/solc/v0.8.6/VRFV2PlusWrapper.bin abbc47c56be3aef960abb9682f71c7a2e46ee7aab9fbe7d47030f01330329de4
vrfv2plus_wrapper_consumer_example: ../../contracts/solc/v0.8.6/VRFV2PlusWrapperConsumerExample.abi ../../contracts/solc/v0.8.6/VRFV2PlusWrapperConsumerExample.bin 4b3da45ff177e09b1e731b5b0cf4e050033a600ef8b0d32e79eec97db5c72408
vrfv2plus_wrapper_load_test_consumer: ../../contracts/solc/v0.8.6/VRFV2PlusWrapperLoadTestConsumer.abi ../../contracts/solc/v0.8.6/VRFV2PlusWrapperLoadTestConsumer.bin b1ba4c41b6fafe94fdf2f9ad273b4f95ff1c07129ced2883be75fad230836b09
vrfv2plus_wrapper_load_test_consumer: ../../contracts/solc/v0.8.6/VRFV2PlusWrapperLoadTestConsumer.abi ../../contracts/solc/v0.8.6/VRFV2PlusWrapperLoadTestConsumer.bin 4886b08ff9cf013033b7c08e0317f23130ba8e2be445625fdbe1424eb7c38989

0 comments on commit dd3a699

Please sign in to comment.