-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into merge-wasmer-4.3.7
- Loading branch information
Showing
378 changed files
with
12,965 additions
and
2,345 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
pre_build: | ||
commands: | ||
- git submodule update --init | ||
- echo Logging in to Dockerhub.... | ||
- docker login --username $DOCKERHUB_USERNAME --password $DOCKERHUB_PASSWORD | ||
- aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $REPOSITORY_URI | ||
- COMMIT_HASH=$(git rev-parse --short=7 HEAD || echo "latest") | ||
- VERSION_TAG=$(git tag --points-at HEAD | sed '/-/!s/$/_/' | sort -rV | sed 's/_$//' | head -n 1 | grep ^ || git show -s --pretty=%D | sed 's/, /\n/g' | grep -v '^origin/' |grep -v '^grafted\|HEAD\|master\|main$' || echo "dev") | ||
- NITRO_VERSION=${VERSION_TAG}-${COMMIT_HASH} | ||
- IMAGE_TAG=${NITRO_VERSION} | ||
- NITRO_DATETIME=$(git show -s --date=iso-strict --format=%cd) | ||
- NITRO_MODIFIED="false" | ||
- echo ${NITRO_VERSION} > ./.nitro-tag.txt | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- echo Building the Docker image ${NITRO_VERSION}... | ||
- DOCKER_BUILDKIT=1 docker build . -t nitro-node-slim --target nitro-node-slim --build-arg version=$NITRO_VERSION --build-arg datetime=$NITRO_DATETIME --build-arg modified=$NITRO_MODIFIED | ||
- DOCKER_BUILDKIT=1 docker build . -t nitro-node --target nitro-node --build-arg version=$NITRO_VERSION --build-arg datetime=$NITRO_DATETIME --build-arg modified=$NITRO_MODIFIED | ||
- DOCKER_BUILDKIT=1 docker build . -t nitro-node-dev --target nitro-node-dev --build-arg version=$NITRO_VERSION --build-arg datetime=$NITRO_DATETIME --build-arg modified=$NITRO_MODIFIED | ||
- DOCKER_BUILDKIT=1 docker build . -t nitro-node-validator --target nitro-node-validator --build-arg version=$NITRO_VERSION --build-arg datetime=$NITRO_DATETIME --build-arg modified=$NITRO_MODIFIED | ||
- docker tag nitro-node:latest $REPOSITORY_URI:$IMAGE_TAG-$ARCH_TAG | ||
- docker tag nitro-node-slim:latest $REPOSITORY_URI:$IMAGE_TAG-slim-$ARCH_TAG | ||
- docker tag nitro-node-dev:latest $REPOSITORY_URI:$IMAGE_TAG-dev-$ARCH_TAG | ||
- docker tag nitro-node-validator:latest $REPOSITORY_URI:$IMAGE_TAG-validator-$ARCH_TAG | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- echo pushing to repo | ||
- docker push $REPOSITORY_URI:$IMAGE_TAG-$ARCH_TAG | ||
- docker push $REPOSITORY_URI:$IMAGE_TAG-slim-$ARCH_TAG | ||
- docker push $REPOSITORY_URI:$IMAGE_TAG-dev-$ARCH_TAG | ||
- docker push $REPOSITORY_URI:$IMAGE_TAG-validator-$ARCH_TAG |
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ package arbcompress | |
#include "arbitrator.h" | ||
*/ | ||
import "C" | ||
|
||
import ( | ||
"errors" | ||
"fmt" | ||
|
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,14 @@ | ||
// Copyright 2024, Offchain Labs, Inc. | ||
// For license information, see https://github.com/nitro/blob/master/LICENSE | ||
|
||
use crate::evm::api::Ink; | ||
use std::time::{Duration, Instant}; | ||
|
||
// Benchmark is used to track the performance of blocks of code in stylus | ||
#[derive(Clone, Copy, Debug, Default)] | ||
pub struct Benchmark { | ||
pub timer: Option<Instant>, | ||
pub elapsed_total: Duration, | ||
pub ink_start: Option<Ink>, | ||
pub ink_total: Ink, | ||
} |
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,51 @@ | ||
// Copyright 2021-2024, Offchain Labs, Inc. | ||
// For license information, see https://github.com/OffchainLabs/nitro/blob/master/LICENSE | ||
|
||
use std::path::PathBuf; | ||
use structopt::StructOpt; | ||
|
||
mod arbcompress; | ||
mod caller_env; | ||
pub mod machine; | ||
mod prepare; | ||
pub mod program; | ||
mod socket; | ||
pub mod stylus_backend; | ||
mod test; | ||
mod wasip1_stub; | ||
mod wavmio; | ||
|
||
#[derive(StructOpt)] | ||
#[structopt(name = "jit-prover")] | ||
pub struct Opts { | ||
#[structopt(short, long)] | ||
binary: PathBuf, | ||
#[structopt(long, default_value = "0")] | ||
inbox_position: u64, | ||
#[structopt(long, default_value = "0")] | ||
delayed_inbox_position: u64, | ||
#[structopt(long, default_value = "0")] | ||
position_within_message: u64, | ||
#[structopt(long)] | ||
last_block_hash: Option<String>, | ||
#[structopt(long)] | ||
last_send_root: Option<String>, | ||
#[structopt(long)] | ||
inbox: Vec<PathBuf>, | ||
#[structopt(long)] | ||
delayed_inbox: Vec<PathBuf>, | ||
#[structopt(long)] | ||
preimages: Option<PathBuf>, | ||
#[structopt(long)] | ||
cranelift: bool, | ||
#[structopt(long)] | ||
forks: bool, | ||
#[structopt(long)] | ||
pub debug: bool, | ||
#[structopt(long)] | ||
pub require_success: bool, | ||
// JSON inputs supercede any of the command-line inputs which could | ||
// be specified in the JSON file. | ||
#[structopt(long)] | ||
json_inputs: Option<PathBuf>, | ||
} |
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.