Skip to content

Commit

Permalink
relax audit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Dec 10, 2024
1 parent 044b732 commit 6552031
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Please use the most recently released version to perform testing and to validate

## Audit Reports

All complete audit reports for `TeleporterMessenger` can be found in the [audits](./audits/) directory.
All complete audit reports for the contracts in this repository can be found in the [audits](./audits/) directory.
2 changes: 1 addition & 1 deletion audits/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Audits

Below is the list of most recent audit for contracts in this repo. Please check out __only__ listed audited versions for production code. Code used should be the final commit audited.
Below is the list of most recent audit for each smart contract application in this repository. Please exercise caution when using code newer than the audited commit.

See `audits/historical` for older audits. These audits may now be obsolete, and legacy code superseded by new versions are __not__ recommended for production deployments.

Expand Down
5 changes: 1 addition & 4 deletions contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ This repository is set up as a [Foundry](https://github.com/foundry-rs/foundry)

## Audits

In general, the contracts in this repository have been audited. Any unaudited contracts will be explicitly marked as such. Note that the `main` branch may contain unaudited code. Please check [here](../audits/README.md) for which versions of each contract have been audited.

> [!CAUTION]
> DO NOT USE UN-AUDITED CODE IN PRODUCTION!
In general, the contracts in this repository have been audited. Any contracts that have not undergone at least one audit will be explicitly marked as such. Please note that audits capture the state of code at a point in time, and the code is subject to change in the meantime. Please check [here](../audits/README.md) for the full list of audits.
3 changes: 0 additions & 3 deletions contracts/teleporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ Once sent on chain, ICM messages cannot be re-signed by a new validator set in s

## TeleporterMessenger Contract Deployment

> [!CAUTION]
> DO NOT USE UN-AUDITED CODE IN PRODUCTION!
**Do not deploy the `TeleporterMessenger` contract using `forge create`**. The `TeleporterMessenger` contract must be deployed to the same contract address on every chain. To achieve this, the contract can be deployed using a static transaction that uses Nick's method as documented in [this guide](../..//utils/contract-deployment/README.md). Alternatively, if creating a new L1, the contract can be pre-allocated with the proper address and state in the new chain's [genesis file](https://docs.avax.network/build/subnet/upgrade/customize-a-subnet#setting-the-genesis-allocation).

As an example, to include `TeleporterMessenger` `v1.0.0` in the genesis file, include the following values in the `alloc` settings, as documented at the link above. The `storage` values included below correspond to the two contract values that are initialized as part of the default constructor of `TeleporterMessenger`. These are the `ReentrancyGuard` values set in this [abstract contract](../utilities/ReentrancyGuards.sol). Future versions of `TeleporterMessenger` may require different storage value initializations.
Expand Down

0 comments on commit 6552031

Please sign in to comment.