Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 8a42b48
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Apr 1 14:43:52 2024 -0600

    build(deps): bump mio from 0.8.10 to 0.8.11 in /docs (#927)

    Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.10 to 0.8.11.
    - [Release notes](https://github.com/tokio-rs/mio/releases)
    - [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
    - [Commits](tokio-rs/mio@v0.8.10...v0.8.11)

    ---
    updated-dependencies:
    - dependency-name: mio
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Waylon Jepsen <[email protected]>
    Co-authored-by: Colin Roberts <[email protected]>

commit 70ca564
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Apr 1 14:43:23 2024 -0600

    build(deps): bump anyhow from 1.0.80 to 1.0.81 (#933)

    Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.80 to 1.0.81.
    - [Release notes](https://github.com/dtolnay/anyhow/releases)
    - [Commits](dtolnay/anyhow@1.0.80...1.0.81)

    ---
    updated-dependencies:
    - dependency-name: anyhow
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Colin Roberts <[email protected]>

commit fe1dee1
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Apr 1 14:41:31 2024 -0600

    build(deps): bump proc-macro2 from 1.0.78 to 1.0.79 (#934)

    Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.78 to 1.0.79.
    - [Release notes](https://github.com/dtolnay/proc-macro2/releases)
    - [Commits](dtolnay/proc-macro2@1.0.78...1.0.79)

    ---
    updated-dependencies:
    - dependency-name: proc-macro2
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Colin Roberts <[email protected]>

commit a3eb86c
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Apr 1 14:40:57 2024 -0600

    build(deps): bump toml from 0.8.10 to 0.8.12 (#935)

    Bumps [toml](https://github.com/toml-rs/toml) from 0.8.10 to 0.8.12.
    - [Commits](toml-rs/toml@toml-v0.8.10...toml-v0.8.12)

    ---
    updated-dependencies:
    - dependency-name: toml
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Colin Roberts <[email protected]>

commit edd120d
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Apr 1 14:40:25 2024 -0600

    build(deps): bump rayon from 1.8.1 to 1.10.0 (#937)

    Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.8.1 to 1.10.0.
    - [Changelog](https://github.com/rayon-rs/rayon/blob/main/RELEASES.md)
    - [Commits](rayon-rs/rayon@rayon-core-v1.8.1...rayon-core-v1.10.0)

    ---
    updated-dependencies:
    - dependency-name: rayon
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 227525e
Author: Waylon Jepsen <[email protected]>
Date:   Mon Apr 1 14:39:59 2024 -0600

    chore: update submodule (#928)

    Co-authored-by: Colin Roberts <[email protected]>

commit e5ddb29
Author: ali <[email protected]>
Date:   Thu Mar 21 20:15:08 2024 +0300

    Update README.md (#936)

          Fixed the cargo binary install package name

commit 8d31dc8
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Mar 6 13:42:23 2024 -0700

    build(deps): bump ethers from 2.0.13 to 2.0.14 (#931)

    Bumps [ethers](https://github.com/gakonst/ethers-rs) from 2.0.13 to 2.0.14.
    - [Release notes](https://github.com/gakonst/ethers-rs/releases)
    - [Changelog](https://github.com/gakonst/ethers-rs/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/gakonst/ethers-rs/commits)

    ---
    updated-dependencies:
    - dependency-name: ethers
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 87778e4
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Mar 6 13:41:30 2024 -0700

    build(deps): bump clap from 4.5.1 to 4.5.2 (#929)

    Bumps [clap](https://github.com/clap-rs/clap) from 4.5.1 to 4.5.2.
    - [Release notes](https://github.com/clap-rs/clap/releases)
    - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
    - [Commits](clap-rs/clap@clap_complete-v4.5.1...v4.5.2)

    ---
    updated-dependencies:
    - dependency-name: clap
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit f682745
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Mar 6 13:40:51 2024 -0700

    build(deps): bump chrono from 0.4.34 to 0.4.35 (#930)

    Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.34 to 0.4.35.
    - [Release notes](https://github.com/chronotope/chrono/releases)
    - [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
    - [Commits](chronotope/chrono@v0.4.34...v0.4.35)

    ---
    updated-dependencies:
    - dependency-name: chrono
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 5a2263e
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Mar 4 16:57:30 2024 -0700

    build(deps): bump mio from 0.8.10 to 0.8.11 (#926)

    Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.10 to 0.8.11.
    - [Release notes](https://github.com/tokio-rs/mio/releases)
    - [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
    - [Commits](tokio-rs/mio@v0.8.10...v0.8.11)

    ---
    updated-dependencies:
    - dependency-name: mio
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 16bf32e
Author: Colin Roberts <[email protected]>
Date:   Wed Feb 28 19:57:55 2024 -0700

    feat: environment logs (#911)

    * feat: logs

    * feat: filter on logs

    * refactor: `ArbiterDB` and `Environment`

commit dbca2d4
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Feb 28 14:05:43 2024 -0700

    build(deps): bump crossbeam-channel from 0.5.11 to 0.5.12 (#919)

    Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam) from 0.5.11 to 0.5.12.
    - [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
    - [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
    - [Commits](crossbeam-rs/crossbeam@crossbeam-channel-0.5.11...crossbeam-channel-0.5.12)

    ---
    updated-dependencies:
    - dependency-name: crossbeam-channel
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 63f167b
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Feb 28 14:05:33 2024 -0700

    build(deps): bump syn from 2.0.51 to 2.0.52 (#920)

    Bumps [syn](https://github.com/dtolnay/syn) from 2.0.51 to 2.0.52.
    - [Release notes](https://github.com/dtolnay/syn/releases)
    - [Commits](dtolnay/syn@2.0.51...2.0.52)

    ---
    updated-dependencies:
    - dependency-name: syn
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit de894a3
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Wed Feb 28 14:05:20 2024 -0700

    build(deps): bump tempfile from 3.10.0 to 3.10.1 (#917)

    Bumps [tempfile](https://github.com/Stebalien/tempfile) from 3.10.0 to 3.10.1.
    - [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md)
    - [Commits](Stebalien/tempfile@v3.10.0...v3.10.1)

    ---
    updated-dependencies:
    - dependency-name: tempfile
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 50bfbd3
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Mon Feb 26 13:38:48 2024 -0700

    build(deps): bump syn from 2.0.50 to 2.0.51 (#915)

    Bumps [syn](https://github.com/dtolnay/syn) from 2.0.50 to 2.0.51.
    - [Release notes](https://github.com/dtolnay/syn/releases)
    - [Commits](dtolnay/syn@2.0.50...2.0.51)

    ---
    updated-dependencies:
    - dependency-name: syn
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 1db6bec
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Mon Feb 26 10:47:13 2024 -0700

    chore: release (#914)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

commit 8211c6e
Author: Colin Roberts <[email protected]>
Date:   Mon Feb 26 10:42:46 2024 -0700

    feat: `error!` output from behavior (#913)

    * feat: `error!` output from behavior
    * submodule: update `template`
    * fix: `minter` example
    * fix: clippy
  • Loading branch information
Autoparallel committed Apr 1, 2024
1 parent 78b5e84 commit ed895e7
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 21 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.19](https://github.com/primitivefinance/arbiter/compare/arbiter-v0.4.18...arbiter-v0.4.19) - 2024-02-26

### Added
- `error!` output from behavior ([#913](https://github.com/primitivefinance/arbiter/pull/913))

## [0.4.18](https://github.com/primitivefinance/arbiter/compare/arbiter-v0.4.17...arbiter-v0.4.18) - 2024-02-20

### Other
Expand Down
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude = ["benches", "docs"]
# Package configuration
[package]
name = "arbiter"
version = "0.4.18"
version = "0.4.19"
edition = "2021"
authors = [
"Waylon Jepsen <[email protected]>",
Expand Down Expand Up @@ -47,32 +47,32 @@ arbiter-macros = "0.1.1"

revm = { version = "5.0.0", features = ["ethersdb", "std", "serde"] }
revm-primitives = "=2.0.0"
ethers = { version = "2.0.13" }
ethers = { version = "2.0.14" }

serde = { version = "1.0.197", features = ["derive"] }
serde_json = { version = "1.0.114" }
toml = "0.8.10"
toml = "0.8.12"

tokio = { version = "1.36.0", features = ["macros", "full"] }
futures = "0.3.30"
futures-util = { version = "0.3.30" }
async-stream = "0.3.5"
async-trait = { version = "0.1.77" }
crossbeam-channel = { version = "0.5.11" }
crossbeam-channel = { version = "0.5.12" }

syn = { version = "2.0.50", features = ["full"] }
proc-macro2 = { version = "1.0.78" }
syn = { version = "2.0.52", features = ["full"] }
proc-macro2 = { version = "1.0.79" }

tracing = "0.1.40"
thiserror = { version = "1.0.57" }
anyhow = "1.0.80"
anyhow = "1.0.81"

# Dependencies for the release build of Arbiter bin
[dependencies]
arbiter-core.workspace = true

# Command line and config
clap = { version = "4.5.1", features = ["derive"] }
clap = { version = "4.5.2", features = ["derive"] }
serde.workspace = true
serde_json.workspace = true
config = { version = "=0.14.0" }
Expand All @@ -85,7 +85,7 @@ Inflector = { version = "=0.11.4" }

# Building files
foundry-config = { version = "=0.2.0" }
tempfile = { version = "3.10.0" }
tempfile = { version = "3.10.1" }

# Errors
thiserror.workspace = true
Expand All @@ -98,7 +98,7 @@ revm-primitives.workspace = true
serde.workspace = true
async-trait.workspace = true
anyhow.workspace = true
rayon = { version = "1.8.0" }
rayon = { version = "1.10.0" }

# Necessary for examples
tokio.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ You'll be prompted to provide a project name, and the rest will be set up for yo
### Binary
To install the Arbiter binary, run:
```bash
cargo install Arbiter
cargo install arbiter
```
This will install the Arbiter binary on your machine. You can then run `arbiter --help` to see that Arbiter was correctly installed and see the help menu.

Expand Down
2 changes: 1 addition & 1 deletion bindings/lib/forge-std
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ futures.workspace = true

# For bench
cargo_metadata = "0.18.1"
chrono = "0.4.34"
chrono = "0.4.35"

assert_matches = { version = "=1.5" }

Expand Down
4 changes: 2 additions & 2 deletions docs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions engine/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.2](https://github.com/primitivefinance/arbiter/compare/arbiter-engine-v0.3.1...arbiter-engine-v0.3.2) - 2024-02-26

### Added
- `error!` output from behavior ([#913](https://github.com/primitivefinance/arbiter/pull/913))

## [0.3.1](https://github.com/primitivefinance/arbiter/compare/arbiter-engine-v0.3.0...arbiter-engine-v0.3.1) - 2024-02-20

### Other
Expand Down
2 changes: 1 addition & 1 deletion engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arbiter-engine"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
authors = [
"Waylon Jepsen <[email protected]>",
Expand Down
26 changes: 22 additions & 4 deletions engine/src/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use anyhow::Result;
use arbiter_core::middleware::ArbiterMiddleware;
use futures_util::{Stream, StreamExt};
use tokio::task::JoinHandle;
use tracing::error;

use super::*;

Expand Down Expand Up @@ -216,23 +217,40 @@ where
async fn execute(&mut self, instruction: MachineInstruction) -> Result<()> {
// NOTE: The unwraps here are safe because the `Behavior` in an engine is only
// accessed here and it is private.
let id: Option<String>;
match instruction {
MachineInstruction::Start(client, messager) => {
id = messager.id.clone();
let id_clone = id.clone();
self.state = State::Starting;
let mut behavior = self.behavior.take().unwrap();
let behavior_task: JoinHandle<Result<(Option<EventStream<E>>, B)>> =
tokio::spawn(async move {
let id = messager.id.clone();
let stream = behavior.startup(client, messager).await?;
debug!("startup complete for behavior {:?}", id);
let stream = match behavior.startup(client, messager).await {
Ok(stream) => stream,
Err(e) => {
error!(
"startup failed for behavior {:?}: \n reason: {:?}",
id_clone, e
);
// Throw a panic as we cannot recover from this for now.
panic!();
}
};
debug!("startup complete for behavior {:?}", id_clone);
Ok((stream, behavior))
});
let (stream, behavior) = behavior_task.await??;
match stream {
Some(stream) => {
self.event_stream = Some(stream);
self.behavior = Some(behavior);
self.execute(MachineInstruction::Process).await?;
match self.execute(MachineInstruction::Process).await {
Ok(_) => {}
Err(e) => {
error!("process failed for behavior {:?}: \n reason: {:?}", id, e);
}
}
Ok(())
}
None => {
Expand Down
2 changes: 1 addition & 1 deletion examples/template

0 comments on commit ed895e7

Please sign in to comment.