Skip to content

Commit

Permalink
Merge branch 'develop' into upg-1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika authored Mar 1, 2024
2 parents 2bbb0b8 + 18b2e79 commit 0032622
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 307 deletions.
6 changes: 0 additions & 6 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
"GHSA-5h3x-9wvq-w4m2",
// axios cookies data-privacy issue; used only in hardhat-deploy and sol2uml (dev deps)
"GHSA-wf5p-g6vw-rhxx",
// semver vulnerable to Regular Expression Denial of Service
"GHSA-c2qf-rxjj-qqgw",
// flat vulnerable to Prototype Pollution
"GHSA-2j2x-2gpw-g8fm",
// regular expression DoS in debug
Expand All @@ -34,14 +32,10 @@
"GHSA-f8q6-p94x-37v3",
// Server-Side Request Forgery in Request
"GHSA-p8p7-x288-28g6",
// Prototype Pollution in lodash
"GHSA-p6mc-m468-83gw",
// OpenZeppelin Contracts using MerkleProof multiproofs may allow proving arbitrary leaves for specific trees; unused
"GHSA-wprv-93r4-jj2p",
// follow-redirects improperly handles URLs in the url.parse() function
"GHSA-jchw-25xp-jwwc",
// Undici's cookie header not cleared on cross-origin redirect in fetch,
"GHSA-wqq4-5wpv-mx2g",
// yargs-parser Vulnerable to Prototype Pollution
"GHSA-p9pc-299p-vxgp",
// Axios vulnerable to Server-Side Request Forgery
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ libs = ['node_modules', 'lib']
test = 'test/foundry'
cache_path = 'forge-cache/sol'
optimizer = true
optimizer_runs = 20000
optimizer_runs = 100
via_ir = false
solc_version = '0.8.9'
fs_permissions = [{ access = "read-write", path = "./scripts/foundry"}, { access = "read", path = "./out/yul"}]
Expand Down
263 changes: 0 additions & 263 deletions patches/@nomiclabs+hardhat-etherscan+3.1.0.patch

This file was deleted.

22 changes: 22 additions & 0 deletions src/mocks/PendingBlkTimeAndNrAdvanceCheck.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2021-2022, Offchain Labs, Inc.
// For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

import "../precompiles/ArbSys.sol";

contract PendingBlkTimeAndNrAdvanceCheck {
uint256 immutable deployedAt;
uint256 immutable deployedAtBlock;

constructor() {
deployedAt = block.timestamp;
deployedAtBlock = ArbSys(address(100)).arbBlockNumber();
}

function isAdvancing() external {
require(block.timestamp > deployedAt, "Time didn't advance");
require(ArbSys(address(100)).arbBlockNumber() > deployedAtBlock, "Block didn't advance");
}
}
Loading

0 comments on commit 0032622

Please sign in to comment.