forked from smartcontractkit/ccip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing post merge fixes (smartcontractkit#268)
Co-authored-by: AnieeG <[email protected]> Co-authored-by: Rens Rooimans <[email protected]> Co-authored-by: dimitris <[email protected]> Co-authored-by: Jean Arnaud <[email protected]> Co-authored-by: Chunkai Yang <[email protected]> Co-authored-by: Connor Stein <[email protected]>
- Loading branch information
1 parent
fce4279
commit 24cb822
Showing
130 changed files
with
7,536 additions
and
1,775 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,3 +1,3 @@ | ||
[submodule "contracts/foundry-lib/forge-std"] | ||
path = contracts/foundry-lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
url = https://github.com/foundry-rs/forge-std |
This file was deleted.
Oops, something went wrong.
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
Submodule forge-std
updated
28 files
+48 −6 | .github/workflows/ci.yml | |
+29 −0 | .github/workflows/sync.yml | |
+1 −1 | foundry.toml | |
+1 −1 | lib/ds-test | |
+1 −1 | package.json | |
+5 −3 | src/Base.sol | |
+4 −3 | src/Script.sol | |
+8 −8 | src/StdAssertions.sol | |
+24 −21 | src/StdChains.sol | |
+205 −17 | src/StdCheats.sol | |
+16 −1 | src/StdInvariant.sol | |
+18 −14 | src/StdJson.sol | |
+54 −3 | src/StdStorage.sol | |
+2 −2 | src/StdStyle.sol | |
+12 −3 | src/StdUtils.sol | |
+4 −3 | src/Test.sol | |
+504 −180 | src/Vm.sol | |
+394 −382 | src/console2.sol | |
+13,248 −0 | src/safeconsole.sol | |
+145 −84 | test/StdAssertions.t.sol | |
+112 −52 | test/StdChains.t.sol | |
+242 −43 | test/StdCheats.t.sol | |
+10 −10 | test/StdError.t.sol | |
+27 −12 | test/StdMath.t.sol | |
+66 −34 | test/StdStorage.t.sol | |
+4 −4 | test/StdStyle.t.sol | |
+80 −35 | test/StdUtils.t.sol | |
+15 −0 | test/Vm.t.sol |
Submodule openzeppelin-contracts
deleted from
1a60b0
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 +18,8 @@ | |
"prepublishOnly": "pnpm compile && ./scripts/prepublish_generate_abi_folder", | ||
"publish-beta": "pnpm publish --tag beta", | ||
"publish-prod": "npm dist-tag add @chainlink/[email protected] latest", | ||
"lint:ccip": "solhint --config ./src/v0.8/ccip/.solhint.json --ignore-path .ccip-solhint-ignore --max-warnings 0 \"./src/v0.8/ccip/**/*.sol\"" | ||
"lint:ccip": "solhint --config ./src/v0.8/ccip/.solhint.json --ignore-path .ccip-solhint-ignore --max-warnings 0 \"./src/v0.8/ccip/**/*.sol\"", | ||
"solhint": "solhint --max-warnings 404 \"./src/v0.8/**/*.sol\"" | ||
}, | ||
"files": [ | ||
"src/v0.8/ccip/**/*.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
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,43 +0,0 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"plugins": ["prettier", "chainlink-solidity"], | ||
"rules": { | ||
"compiler-version": ["off", "^0.8.0"], | ||
"const-name-snakecase": "off", | ||
"constructor-syntax": "error", | ||
"var-name-mixedcase": "off", | ||
"func-named-parameters": "off", | ||
"immutable-vars-naming": "off", | ||
"func-visibility": [ | ||
"error", | ||
{ | ||
"ignoreConstructors": true | ||
} | ||
], | ||
"not-rely-on-time": "off", | ||
"prettier/prettier": [ | ||
"off", | ||
{ | ||
"endOfLine": "auto" | ||
} | ||
], | ||
"no-empty-blocks": "off", | ||
"quotes": ["error", "double"], | ||
"reason-string": [ | ||
"warn", | ||
{ | ||
"maxLength": 64 | ||
} | ||
], | ||
"chainlink-solidity/prefix-internal-functions-with-underscore": "warn", | ||
"chainlink-solidity/prefix-private-functions-with-underscore": "warn", | ||
"chainlink-solidity/prefix-storage-variables-with-s-underscore": "warn", | ||
"chainlink-solidity/prefix-immutable-variables-with-i": "warn", | ||
"chainlink-solidity/all-caps-constant-storage-variables": "warn", | ||
"chainlink-solidity/no-hardhat-imports": "warn", | ||
"chainlink-solidity/inherited-constructor-args-not-in-contract-definition": "warn", | ||
"chainlink-solidity/explicit-imports": "warn", | ||
"chainlink-solidity/no-require-statements": "warn", | ||
"chainlink-solidity/no-block-single-if-reverts": "warn" | ||
} | ||
} | ||
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.19; | ||
|
||
import {ITypeAndVersion} from "../../shared/interfaces/ITypeAndVersion.sol"; | ||
import {IBurnMintERC20} from "../../shared/token/ERC20/IBurnMintERC20.sol"; | ||
|
||
import {TokenPool} from "./TokenPool.sol"; | ||
import {BurnMintTokenPoolAbstract} from "./BurnMintTokenPoolAbstract.sol"; | ||
|
||
/// @notice This pool mints and burns a 3rd-party token. | ||
/// @dev Pool whitelisting mode is set in the constructor and cannot be modified later. | ||
/// It either accepts any address as originalSender, or only accepts whitelisted originalSender. | ||
/// The only way to change whitelisting mode is to deploy a new pool. | ||
/// If that is expected, please make sure the token's burner/minter roles are adjustable. | ||
contract BurnFromMintTokenPool is BurnMintTokenPoolAbstract, ITypeAndVersion { | ||
// solhint-disable-next-line chainlink-solidity/all-caps-constant-storage-variables | ||
string public constant override typeAndVersion = "BurnFromMintTokenPool 1.2.0"; | ||
|
||
constructor( | ||
IBurnMintERC20 token, | ||
address[] memory allowlist, | ||
address armProxy | ||
) TokenPool(token, allowlist, armProxy) { | ||
// Some tokens allow burning from the sender without approval, but not all do. | ||
// To be safe, we approve the pool to burn from the pool. | ||
token.approve(address(this), type(uint256).max); | ||
} | ||
|
||
/// @inheritdoc BurnMintTokenPoolAbstract | ||
function _burn(uint256 amount) internal virtual override { | ||
IBurnMintERC20(address(i_token)).burnFrom(address(this), amount); | ||
} | ||
} |
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
Oops, something went wrong.