Skip to content

Commit

Permalink
fix import (smartcontractkit#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmanaa authored May 27, 2024
1 parent 1020004 commit a1e9b7e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 0 additions & 8 deletions public/samples/CCIP/usdc/IStaker.sol

This file was deleted.

7 changes: 6 additions & 1 deletion public/samples/CCIP/usdc/Sender.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ 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.
* THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE.
* 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;
Expand Down
7 changes: 6 additions & 1 deletion public/samples/CCIP/usdc/Staker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ 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.
* THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE.
* 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;
Expand Down

0 comments on commit a1e9b7e

Please sign in to comment.