forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into sc/liquidity-migration
- Loading branch information
Showing
299 changed files
with
7,042 additions
and
10,986 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Workaround to prevent slither-action from trying to install JS deps. | ||
# Without this step, it detects the `package.json`, and since there is no | ||
# lockfile it defaults `npm install` which fails due to the preinstall | ||
# script to enforce pnpm. https://github.com/crytic/slither-action/issues/44#issuecomment-1338183656 | ||
- name: Remove package.json | ||
run: rm packages/contracts-bedrock/package.json | ||
|
||
- name: Run Slither | ||
uses: crytic/[email protected] | ||
id: slither | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ cache | |
venv | ||
.idea | ||
*.log | ||
example/bin | ||
testdata/example/bin | ||
contracts/out | ||
state.json | ||
*.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
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,29 @@ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/urfave/cli/v2" | ||
) | ||
|
||
type VMType string | ||
|
||
var cannonVMType VMType = "cannon" | ||
var mtVMType VMType = "cannon-mt" | ||
|
||
var VMTypeFlag = &cli.StringFlag{ | ||
Name: "type", | ||
Usage: "VM type to create state for. Options are 'cannon' (default), 'cannon-mt'", | ||
Value: "cannon", | ||
Required: false, | ||
} | ||
|
||
func vmTypeFromString(ctx *cli.Context) (VMType, error) { | ||
if vmTypeStr := ctx.String(VMTypeFlag.Name); vmTypeStr == string(cannonVMType) { | ||
return cannonVMType, nil | ||
} else if vmTypeStr == string(mtVMType) { | ||
return mtVMType, nil | ||
} else { | ||
return "", fmt.Errorf("unknown VM type %q", vmTypeStr) | ||
} | ||
} |
Oops, something went wrong.