-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pr-scan workflow and flaky tests
- Loading branch information
1 parent
c582e58
commit ca48b2c
Showing
11 changed files
with
134 additions
and
34 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 |
---|---|---|
|
@@ -40,7 +40,7 @@ jobs: | |
run: yarn contract-size | ||
|
||
- name: Run forge tests | ||
run: forge test | ||
run: forge test -vvv | ||
|
||
- name: Generate gas report | ||
run: yarn gas-report | ||
|
@@ -97,7 +97,9 @@ jobs: | |
|
||
scan: | ||
if: github.event_name == 'pull_request' | ||
uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1 | ||
uses: circlefin/circle-public-github-workflows/.github/workflows/[email protected] | ||
with: | ||
allow-reciprocal-licenses: false | ||
|
||
release-sbom: | ||
if: github.event_name == 'push' | ||
|
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,36 @@ | ||
pkg:npm/pako | ||
pkg:npm/highlightjs-solidity | ||
pkg:npm/ethereum-ens | ||
pkg:npm/%40ethereumjs/[email protected] | ||
pkg:npm/%40ethereumjs/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/%40nomicfoundation/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] | ||
pkg:npm/[email protected] |
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,40 @@ | ||
/** | ||
* Copyright 2024 Circle Internet Financial, LTD. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
pragma solidity 0.6.12; | ||
pragma experimental ABIEncoderV2; // needed for compiling older solc versions: https://github.com/foundry-rs/foundry/issues/4376 | ||
|
||
import { Script } from "forge-std/Script.sol"; | ||
|
||
/** | ||
* Shared utilities for scripts. It inherits the Script contract in order | ||
* to access vm cheatcodes. | ||
*/ | ||
contract ScriptUtils is Script { | ||
/** | ||
* @notice helper function that loads local json | ||
*/ | ||
function _loadAccountsToBlacklist(string memory blacklistFileName) | ||
internal | ||
view | ||
returns (address[] memory) | ||
{ | ||
string memory json = vm.readFile(blacklistFileName); | ||
return vm.parseJsonAddressArray(json, ""); | ||
} | ||
} |
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,4 @@ | ||
[ | ||
"0x04DBA1194ee10112fE6C3207C0687DEf0e78baCf", | ||
"0xb6f5ec1A0a9cd1526536D3F0426c429529471F40" | ||
] |
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