This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee1fabd
commit 9e1f0c9
Showing
13 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@openzeppelin/[email protected]/=lib/openzeppelin-contracts/contracts/ | ||
@openzeppelin/[email protected]/=lib/openzeppelin-contracts-upgradeable/contracts/ | ||
@avalabs/[email protected]/=lib/teleporter/contracts/lib/subnet-evm/contracts/ | ||
@teleporter/=lib/teleporter/contracts/src/teleporter/ | ||
@teleporter-mocks/=lib/teleporter/contracts/src/mocks | ||
@avalabs/[email protected]/=lib/teleporter/lib/subnet-evm/contracts/ | ||
@teleporter/=lib/teleporter/contracts/teleporter/ | ||
@teleporter-mocks/=lib/teleporter/contracts/mocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ import {SafeERC20} from "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC | |
/** | ||
* @dev Provides a wrapper used for calling an ERC20 transferFrom method to receive tokens to a contract | ||
* from a specified sender. Differs from the "SafeERC20TransferFrom" implementation found here | ||
* https://github.com/ava-labs/teleporter/blob/main/contracts/src/Teleporter/SafeERC20TransferFrom.sol in that | ||
* https://github.com/ava-labs/teleporter/blob/main/contracts/teleporter/SafeERC20TransferFrom.sol in that | ||
* it supports passing arbitrary sender address values, allowing its use in ERC-2771 compliant meta-transactions. | ||
* | ||
* Checks the balance of the contract using the library before and after the call to safeTransferFrom, and | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ import {SendTokensInput} from "../src/interfaces/ITokenTransferrer.sol"; | |
import {ERC20TokenHomeUpgradeable} from "../src/TokenHome/ERC20TokenHomeUpgradeable.sol"; | ||
import {ERC20TokenHome} from "../src/TokenHome/ERC20TokenHome.sol"; | ||
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/IERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/src/mocks/ExampleERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/mocks/ExampleERC20.sol"; | ||
import {SafeERC20} from "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol"; | ||
import {TeleporterMessageInput, TeleporterFeeInfo} from "@teleporter/ITeleporterMessenger.sol"; | ||
import {TokenScalingUtils} from "../src/utils/TokenScalingUtils.sol"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ import {ERC20TokenRemoteUpgradeable} from "../src/TokenRemote/ERC20TokenRemoteUp | |
import {ERC20TokenRemote} from "../src/TokenRemote/ERC20TokenRemote.sol"; | ||
import {SafeERC20} from "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol"; | ||
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/IERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/src/mocks/ExampleERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/mocks/ExampleERC20.sol"; | ||
import {SendTokensInput} from "../src/interfaces/ITokenTransferrer.sol"; | ||
import {Ownable} from "@openzeppelin/[email protected]/access/Ownable.sol"; | ||
import {ICTTInitializable} from "../src/utils/ICTTInitializable.sol"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ import {Test} from "forge-std/Test.sol"; | |
import {MockERC20SendAndCallReceiver} from "../src/mocks/MockERC20SendAndCallReceiver.sol"; | ||
import {MockNativeSendAndCallReceiver} from "../src/mocks/MockNativeSendAndCallReceiver.sol"; | ||
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/IERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/src/mocks/ExampleERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/mocks/ExampleERC20.sol"; | ||
|
||
contract MockERC20SendAndCallReceiverTest is Test { | ||
IERC20 public erc20; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ import { | |
import {SendTokensInput} from "../src/interfaces/ITokenTransferrer.sol"; | ||
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/IERC20.sol"; | ||
import {SafeERC20} from "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/src/mocks/ExampleERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/mocks/ExampleERC20.sol"; | ||
import {ICTTInitializable} from "../src/utils/ICTTInitializable.sol"; | ||
import {Initializable} from "@openzeppelin/[email protected]/proxy/utils/Initializable.sol"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ import { | |
RegisterRemoteMessage | ||
} from "../src/interfaces/ITokenTransferrer.sol"; | ||
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/IERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/src/mocks/ExampleERC20.sol"; | ||
import {ExampleERC20} from "../lib/teleporter/contracts/mocks/ExampleERC20.sol"; | ||
import {SafeERC20} from "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol"; | ||
|
||
abstract contract TokenRemoteTest is TokenTransferrerTest { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters