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
9e03a1e
commit af2939e
Showing
24 changed files
with
146 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Audits | ||
|
||
Please check out __only__ listed audited version for production code. | ||
|
||
| Date | Version | Commit | Auditor | Scope | Links | | ||
| ------------ | ------- | ---------- | ------------ | -------------------- | ----------------------------------------------------------- | | ||
| June 2024 | v1.0.0 | `9e03a1e5` | OpenZeppelin | All contracts in `contracts/src/` excluding `mocks/` | [🔗](./OpenZeppelin-Audit-2024-06-24.pdf) | | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,12 @@ import {SafeERC20} from "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC | |
import {SafeERC20TransferFrom} from "../utils/SafeERC20TransferFrom.sol"; | ||
import {CallUtils} from "../utils/CallUtils.sol"; | ||
|
||
/** | ||
* THIS CONTRACT HAS BEEN AUDITED, BUT MAY CONTAIN UN-AUDITED CHANGES. | ||
* PLEASE CHECK `audits/README.md` FOR INFORMATION ON AUDITED VERSIONS OF THIS CONTRACT. | ||
* DO NOT USE UN-AUDITED CODE IN PRODUCTION. | ||
*/ | ||
|
||
/** | ||
* @title ERC20TokenHome | ||
* @notice An {IERC20TokenHome} implementation that locks a specified ERC20 token to be sent to | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,12 @@ import {CallUtils} from "../utils/CallUtils.sol"; | |
import {SafeWrappedNativeTokenDeposit} from "../utils/SafeWrappedNativeTokenDeposit.sol"; | ||
import {Address} from "@openzeppelin/[email protected]/utils/Address.sol"; | ||
|
||
/** | ||
* THIS CONTRACT HAS BEEN AUDITED, BUT MAY CONTAIN UN-AUDITED CHANGES. | ||
* PLEASE CHECK `audits/README.md` FOR INFORMATION ON AUDITED VERSIONS OF THIS CONTRACT. | ||
* DO NOT USE UN-AUDITED CODE IN PRODUCTION. | ||
*/ | ||
|
||
/** | ||
* @title NativeTokenHome | ||
* @notice An {INativeTokenHome} implementation that locks the native token of this chain to be transferred to | ||
|
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 |
---|---|---|
|
@@ -26,6 +26,12 @@ import {IWarpMessenger} from | |
"@avalabs/[email protected]/contracts/interfaces/IWarpMessenger.sol"; | ||
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; | ||
|
||
/** | ||
* THIS CONTRACT HAS BEEN AUDITED, BUT MAY CONTAIN UN-AUDITED CHANGES. | ||
* PLEASE CHECK `audits/README.md` FOR INFORMATION ON AUDITED VERSIONS OF THIS CONTRACT. | ||
* DO NOT USE UN-AUDITED CODE IN PRODUCTION. | ||
*/ | ||
|
||
/** | ||
* @notice Each TokenRemote instance registers with the home contract, and provides settings for transferring | ||
* to the remote token transfer contract. | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,12 @@ import {IERC20, ERC20} from "@openzeppelin/[email protected]/token/ERC20/ERC20.sol | |
import {SafeERC20TransferFrom} from "../utils/SafeERC20TransferFrom.sol"; | ||
import {CallUtils} from "../utils/CallUtils.sol"; | ||
|
||
/** | ||
* THIS CONTRACT HAS BEEN AUDITED, BUT MAY CONTAIN UN-AUDITED CHANGES. | ||
* PLEASE CHECK `audits/README.md` FOR INFORMATION ON AUDITED VERSIONS OF THIS CONTRACT. | ||
* DO NOT USE UN-AUDITED CODE IN PRODUCTION. | ||
*/ | ||
|
||
/** | ||
* @title ERC20TokenRemote | ||
* @notice This contract is an {IERC20TokenTransferrer} that receives tokens from its specifed {TokenHome} instance, | ||
|
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
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,6 +9,12 @@ import {IWrappedNativeToken} from "./interfaces/IWrappedNativeToken.sol"; | |
import {ERC20} from "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; | ||
import {Address} from "@openzeppelin/[email protected]/utils/Address.sol"; | ||
|
||
/** | ||
* THIS CONTRACT HAS BEEN AUDITED, BUT MAY CONTAIN UN-AUDITED CHANGES. | ||
* PLEASE CHECK `audits/README.md` FOR INFORMATION ON AUDITED VERSIONS OF THIS CONTRACT. | ||
* DO NOT USE UN-AUDITED CODE IN PRODUCTION. | ||
*/ | ||
|
||
contract WrappedNativeToken is IWrappedNativeToken, ERC20 { | ||
using Address for address payable; | ||
|
||
|
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
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 |
---|---|---|
|
@@ -7,6 +7,12 @@ pragma solidity 0.8.18; | |
|
||
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; | ||
|
||
/** | ||
* THIS CONTRACT HAS BEEN AUDITED, BUT MAY CONTAIN UN-AUDITED CHANGES. | ||
* PLEASE CHECK `audits/README.md` FOR INFORMATION ON AUDITED VERSIONS OF THIS CONTRACT. | ||
* DO NOT USE UN-AUDITED CODE IN PRODUCTION. | ||
*/ | ||
|
||
/** | ||
* @title IWrappedNativeToken | ||
* @notice Interface for a wrapped native token | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,12 @@ pragma solidity 0.8.18; | |
import {IERC20} from "@openzeppelin/[email protected]/token/ERC20/IERC20.sol"; | ||
import {SafeERC20} from "@openzeppelin/[email protected]/token/ERC20/utils/SafeERC20.sol"; | ||
|
||
/** | ||
* THIS CONTRACT HAS BEEN AUDITED, BUT MAY CONTAIN UN-AUDITED CHANGES. | ||
* PLEASE CHECK `audits/README.md` FOR INFORMATION ON AUDITED VERSIONS OF THIS CONTRACT. | ||
* DO NOT USE UN-AUDITED CODE IN PRODUCTION. | ||
*/ | ||
|
||
/** | ||
* @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 | ||
|
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