forked from OffchainLabs/nitro
-
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.
Merge tag 'v3.1.3-rc.2' into release/v3.x-fh
Arbitrum Nitro v3.1.3 Release Candidate 2
- Loading branch information
Showing
169 changed files
with
2,879 additions
and
1,171 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,21 +1,48 @@ | ||
name: Submodule Pin Check | ||
name: Merge Checks | ||
|
||
on: | ||
pull_request: | ||
pull_request_target: | ||
branches: [ master ] | ||
types: [synchronize, opened, reopened] | ||
|
||
permissions: | ||
statuses: write | ||
|
||
jobs: | ||
submodule-pin-check: | ||
name: Submodule Pin Check | ||
name: Check Submodule Pin | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
submodules: true | ||
|
||
- name: Check all submodules are ancestors of origin/HEAD or configured branch | ||
run: ${{ github.workspace }}/.github/workflows/submodule-pin-check.sh | ||
run: | | ||
status_state="pending" | ||
if ${{ github.workspace }}/.github/workflows/submodule-pin-check.sh; then | ||
status_state="success" | ||
else | ||
resp="$(curl -sSL --fail-with-body \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
"https://api.github.com/repos/$GITHUB_REPOSITORY/commits/${{ github.event.pull_request.head.sha }}/statuses")" | ||
if ! jq -e '.[] | select(.context == "Submodule Pin Check")' > /dev/null <<< "$resp"; then | ||
# Submodule pin check is failling and no status exists | ||
# Keep it without a status to keep the green checkmark appearing | ||
# Otherwise, the commit and PR's CI will appear to be indefinitely pending | ||
# Merging will still be blocked until the required status appears | ||
exit 0 | ||
fi | ||
fi | ||
curl -sSL --fail-with-body \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
"https://api.github.com/repos/$GITHUB_REPOSITORY/statuses/${{ github.event.pull_request.head.sha }}" \ | ||
-d '{"context":"Submodule Pin Check","state":"'"$status_state"'"}' |
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,64 @@ | ||
use std::fmt::Display; | ||
|
||
pub enum ParamType { | ||
I32, | ||
I64, | ||
} | ||
|
||
impl Display for ParamType { | ||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
use ParamType::*; | ||
match self { | ||
I32 => write!(f, "i32"), | ||
I64 => write!(f, "i64"), | ||
} | ||
} | ||
} | ||
|
||
use ParamType::*; | ||
|
||
/// order matters! | ||
pub const HOSTIOS: [(&str, &[ParamType], &[ParamType]); 42] = [ | ||
("read_args", &[I32], &[]), | ||
("write_result", &[I32, I32], &[]), | ||
("exit_early", &[I32], &[]), | ||
("storage_load_bytes32", &[I32, I32], &[]), | ||
("storage_cache_bytes32", &[I32, I32], &[]), | ||
("storage_flush_cache", &[I32], &[]), | ||
("transient_load_bytes32", &[I32, I32], &[]), | ||
("transient_store_bytes32", &[I32, I32], &[]), | ||
("call_contract", &[I32, I32, I32, I32, I64, I32], &[I32]), | ||
("delegate_call_contract", &[I32, I32, I32, I64, I32], &[I32]), | ||
("static_call_contract", &[I32, I32, I32, I64, I32], &[I32]), | ||
("create1", &[I32, I32, I32, I32, I32], &[]), | ||
("create2", &[I32, I32, I32, I32, I32, I32], &[]), | ||
("read_return_data", &[I32, I32, I32], &[I32]), | ||
("return_data_size", &[], &[I32]), | ||
("emit_log", &[I32, I32, I32], &[]), | ||
("account_balance", &[I32, I32], &[]), | ||
("account_code", &[I32, I32, I32, I32], &[I32]), | ||
("account_code_size", &[I32], &[I32]), | ||
("account_codehash", &[I32, I32], &[]), | ||
("evm_gas_left", &[], &[I64]), | ||
("evm_ink_left", &[], &[I64]), | ||
("block_basefee", &[I32], &[]), | ||
("chainid", &[], &[I64]), | ||
("block_coinbase", &[I32], &[]), | ||
("block_gas_limit", &[], &[I64]), | ||
("block_number", &[], &[I64]), | ||
("block_timestamp", &[], &[I64]), | ||
("contract_address", &[I32], &[]), | ||
("math_div", &[I32, I32], &[]), | ||
("math_mod", &[I32, I32], &[]), | ||
("math_pow", &[I32, I32], &[]), | ||
("math_add_mod", &[I32, I32, I32], &[]), | ||
("math_mul_mod", &[I32, I32, I32], &[]), | ||
("msg_reentrant", &[], &[I32]), | ||
("msg_sender", &[I32], &[]), | ||
("msg_value", &[I32], &[]), | ||
("native_keccak256", &[I32, I32, I32], &[]), | ||
("tx_gas_price", &[I32], &[]), | ||
("tx_ink_price", &[], &[I32]), | ||
("tx_origin", &[I32], &[]), | ||
("pay_for_memory_grow", &[I32], &[]), | ||
]; |
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
Oops, something went wrong.