diff --git a/public/samples/CCIP/usdc/IStaker.sol b/public/samples/CCIP/usdc/IStaker.sol deleted file mode 100644 index 5fd467100b5..00000000000 --- a/public/samples/CCIP/usdc/IStaker.sol +++ /dev/null @@ -1,8 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.19; - -interface IStaker { - function stake(address beneficiary, uint256 amount) external; - - function redeem() external; -} diff --git a/public/samples/CCIP/usdc/Sender.sol b/public/samples/CCIP/usdc/Sender.sol index 4fba2db9d89..d288305dd2c 100644 --- a/public/samples/CCIP/usdc/Sender.sol +++ b/public/samples/CCIP/usdc/Sender.sol @@ -6,7 +6,6 @@ import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/O import {Client} from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol"; import {IERC20} from "@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; -import {IStaker} from "./IStaker.sol"; /** * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. @@ -14,6 +13,12 @@ import {IStaker} from "./IStaker.sol"; * DO NOT USE THIS CODE IN PRODUCTION. */ +interface IStaker { + function stake(address beneficiary, uint256 amount) external; + + function redeem() external; +} + /// @title - A simple messenger contract for transferring tokens to a receiver that calls a staker contract. contract Sender is OwnerIsCreator { using SafeERC20 for IERC20; diff --git a/public/samples/CCIP/usdc/Staker.sol b/public/samples/CCIP/usdc/Staker.sol index 83e2ca5d6d0..f72c92ba046 100644 --- a/public/samples/CCIP/usdc/Staker.sol +++ b/public/samples/CCIP/usdc/Staker.sol @@ -3,7 +3,6 @@ pragma solidity 0.8.19; import {ERC20} from "@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/ERC20.sol"; import {SafeERC20} from "@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; -import {IStaker} from "./IStaker.sol"; /** * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. @@ -11,6 +10,12 @@ import {IStaker} from "./IStaker.sol"; * DO NOT USE THIS CODE IN PRODUCTION. */ +interface IStaker { + function stake(address beneficiary, uint256 amount) external; + + function redeem() external; +} + /// @title - A simple Staker contract for staking usc tokens and redeeming the staker contracts contract Staker is IStaker, ERC20 { using SafeERC20 for ERC20;