-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-jrigada-script-not-failing-when-no-fork-url
- Loading branch information
Showing
15 changed files
with
294 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
# Daily CI job to update forge-std version used for tests if new release has been published | ||
# Disabled as we update it via upstream sync or manually | ||
|
||
name: bump-forge-std | ||
# name: bump-forge-std | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
# on: | ||
# schedule: | ||
# - cron: "0 0 * * *" | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
update-tag: | ||
name: update forge-std tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Fetch and update forge-std tag | ||
run: curl 'https://api.github.com/repos/foundry-rs/forge-std/tags' | jq '.[0].commit.sha' -jr > testdata/forge-std-rev | ||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: "chore: bump forge-std version used for tests" | ||
title: "chore(tests): bump forge-std version" | ||
body: | | ||
New release of forge-std has been published, bump forge-std version used in tests. Likely some fixtures need to be updated. | ||
branch: chore/bump-forge-std | ||
# jobs: | ||
# update-tag: | ||
# name: update forge-std tag | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Fetch and update forge-std tag | ||
# run: curl 'https://api.github.com/repos/foundry-rs/forge-std/tags' | jq '.[0].commit.sha' -jr > testdata/forge-std-rev | ||
# - name: Create pull request | ||
# uses: peter-evans/create-pull-request@v5 | ||
# with: | ||
# commit-message: "chore: bump forge-std version used for tests" | ||
# title: "chore(tests): bump forge-std version" | ||
# body: | | ||
# New release of forge-std has been published, bump forge-std version used in tests. Likely some fixtures need to be updated. | ||
# branch: chore/bump-forge-std |
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
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,31 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity >=0.8.7 <0.9.0; | ||
|
||
import {Globals} from "./Globals.sol"; | ||
|
||
// excerpt from system-contracts | ||
interface ISystemContext { | ||
function chainId() external view returns (uint256); | ||
} | ||
|
||
library InZkVmLib { | ||
function _inZkVm() internal returns (bool) { | ||
(bool success, bytes memory retdata) = | ||
Globals.SYSTEM_CONTEXT_ADDR.call(abi.encodeWithSelector(ISystemContext.chainId.selector)); | ||
|
||
return success; | ||
} | ||
} | ||
|
||
abstract contract InZkVm { | ||
modifier inZkVm() { | ||
require(InZkVmLib._inZkVm(), "must be executed in zkVM"); | ||
_; | ||
} | ||
} | ||
|
||
abstract contract DeployOnlyInZkVm is InZkVm { | ||
constructor() { | ||
require(InZkVmLib._inZkVm(), "must be deployed in zkVM"); | ||
} | ||
} |
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.