Skip to content

Commit

Permalink
checkout other changes from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
afkbyte committed Jun 4, 2024
1 parent c25e017 commit 8b14808
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 17 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/arbitrator-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ env:
jobs:
arbitrator:
name: Run Arbitrator tests
runs-on: ubuntu-8
runs-on: linux-2xl
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
ssh-key: ${{ secrets.SSH_KEY }}


- name: Install Ubuntu dependencies
run: |
Expand Down Expand Up @@ -137,9 +139,10 @@ jobs:

- name: Make arbitrator libraries
run: make -j wasm-ci-build

- name: Clippy check
run: cargo clippy --all --manifest-path arbitrator/Cargo.toml -- -D warnings

# TODO: Enable clippy check
# - name: Clippy check
# run: cargo clippy --all --manifest-path arbitrator/Cargo.toml -- -D warnings

- name: Run rust tests
run: cargo test --all --manifest-path arbitrator/Cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/arbitrator-skip-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
arbitrator:
name: Run Arbitrator tests
runs-on: ubuntu-latest
runs-on: linux-2xl
steps:
- name: Do nothing
run: echo "doing nothing"
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
test:
name: Go Tests
runs-on: ubuntu-8
runs-on: linux-2xl

# Creates a redis container for redis tests
services:
Expand All @@ -32,6 +32,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
ssh-key: ${{ secrets.SSH_KEY }}

- name: Install dependencies
run: sudo apt update && sudo apt install -y wabt gotestsum
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ on:
jobs:
analyze:
name: Analyze
if: github.repository == 'OffchainLabs/nitro' # don't run in any forks without "Advanced Security" enabled
runs-on: ubuntu-8
if: github.repository == 'Layr-Labs/nitro' # don't run in any forks without "Advanced Security" enabled
runs-on: linux-2xl
permissions:
actions: read
contents: read
Expand All @@ -46,6 +46,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
ssh-key: ${{ secrets.SSH_KEY }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-eigenda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
docker:
runs-on: ubuntu-latest
runs-on: linux-2xl
strategy:
matrix:
include:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
docker:
name: Docker build
runs-on: ubuntu-8
runs-on: linux-2xl
services:
# local registery
registry:
Expand All @@ -26,6 +26,7 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
ssh-key: ${{ secrets.SSH_KEY }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build_and_run:
runs-on: ubuntu-8
runs-on: linux-2xl

steps:
- name: Checkout
Expand Down
4 changes: 3 additions & 1 deletion arbitrator/jit/src/gostack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ impl MemoryViewContainer {
fn closure<'a>(
store: &'a StoreRef,
) -> impl (for<'b> FnOnce(&'b Memory) -> MemoryView<'b>) + 'a {
move |memory: &Memory| memory.view(&store)
move |memory: &Memory| {
memory.view(&store)
}
}

let store = env.as_store_ref();
Expand Down
1 change: 1 addition & 0 deletions arbitrator/wasm-libraries/go-stub/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ pub unsafe fn get_field(source: u32, field: &[u8]) -> GoValue {
}
} else if source == GO_ID {
if field == b"_pendingEvent" {
#[allow(static_mut_refs)]
if let Some(event) = &PENDING_EVENT {
let id = DynamicObjectPool::singleton()
.insert(DynamicObject::PendingEvent(event.clone()));
Expand Down
1 change: 1 addition & 0 deletions das/eigenda/eigenda.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ type EigenDA struct {
}

func NewEigenDA(rpc string) (*EigenDA, error) {
// nolint:gosec
creds := credentials.NewTLS(&tls.Config{
InsecureSkipVerify: true,
})
Expand Down
8 changes: 7 additions & 1 deletion deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ func deployBridgeCreator(ctx context.Context, l1Reader *headerreader.HeaderReade
return common.Address{}, fmt.Errorf("bridge deploy error: %w", err)
}

dummyManager, tx, _, err := bridgegen.DeployEigenDADummyManager(auth, client)
err = andTxSucceeded(ctx, l1Reader, tx, err)
if err != nil {
return common.Address{}, fmt.Errorf("dummy manager deploy error: %w", err)
}

reader4844, tx, _, err := yulgen.DeployReader4844(auth, client)
err = andTxSucceeded(ctx, l1Reader, tx, err)
if err != nil {
return common.Address{}, fmt.Errorf("blob basefee reader deploy error: %w", err)
}
seqInboxTemplate, tx, _, err := bridgegen.DeploySequencerInbox(auth, client, maxDataSize, reader4844, isUsingFeeToken)
seqInboxTemplate, tx, _, err := bridgegen.DeploySequencerInbox(auth, client, maxDataSize, reader4844, dummyManager, dummyManager, isUsingFeeToken)
err = andTxSucceeded(ctx, l1Reader, tx, err)
if err != nil {
return common.Address{}, fmt.Errorf("sequencer inbox deploy error: %w", err)
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ replace github.com/cockroachdb/pebble => github.com/cockroachdb/pebble v0.0.0-20

require (
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible
github.com/Layr-Labs/eigenda 5c2ee4018cb551219279eedbf405e073c011ffcd
// github.com/Layr-Labs/eigenda/api v0.6.1
github.com/Layr-Labs/eigenda v0.6.1
github.com/Layr-Labs/eigenda/api v0.6.1
github.com/Shopify/toxiproxy v2.1.4+incompatible
github.com/alicebob/miniredis/v2 v2.21.0
github.com/andybalholm/brotli v1.0.4
Expand Down Expand Up @@ -120,6 +120,7 @@ require (
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
Expand Down Expand Up @@ -321,7 +322,6 @@ require (
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-redis/redis/v8 v8.11.4
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2313,4 +2313,4 @@ rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA=
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck=
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=
sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0=

0 comments on commit 8b14808

Please sign in to comment.