Skip to content

Commit

Permalink
Merge pull request #487 from primitivefinance/version-update/cleanup
Browse files Browse the repository at this point in the history
arbiter-core-v0.5.0/cleanup
  • Loading branch information
0xJepsen authored Sep 13, 2023
2 parents b2d2e79 + e77ded0 commit e136b60
Show file tree
Hide file tree
Showing 12 changed files with 174 additions and 91 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: lint
on:
pull_request:
branches:
- main
- main
types: [opened, synchronize, reopened]

jobs:
Expand Down Expand Up @@ -35,6 +35,19 @@ jobs:
with:
toolchain: stable
components: clippy

- name: cargo clippy
run: cargo clippy --all --all-features -- -D warnings

codespell:
name: codespell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run CodeSpell
uses: codespell-project/actions-codespell@v2.0
with:
check_hidden: true
check_filenames: true
skip: Cargo.lock,target
ignore_words_list: crate,Crate
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ path = "bin/main.rs"
[dependencies]
# Command line and config
clap = { version = "4.3.0", features = ["derive"] }
serde = { version = "1.0.163", features =["derive"] }
toml = "0.7.4"
serde = { version = "1.0.163", features = ["derive"] }
toml = "0.8.0"

# Building files
quote = "1.0.28"
Expand All @@ -37,7 +37,7 @@ assert_cmd = "2.0.11"

# Release profile
[profile.release]
# Link-Time Optimization can inprove runtime at cost of build time
# Link-Time Optimization can improve runtime at cost of build time
lto = true
# The Rust compiler splits your crate into multiple codegen units to parallelize (and thus speed up) compilation but at the cost of optimization.
# This setting tells the compiler to use only one codegen unit, which will slow down compilation but improve optimization.
Expand Down
2 changes: 1 addition & 1 deletion arbiter-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arbiter-core"
version = "0.4.2"
version = "0.5.0"
edition = "2021"

# Dependencies for the release build
Expand Down
4 changes: 2 additions & 2 deletions arbiter-core/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use arbiter_core::{
arbiter_math::ArbiterMath,
arbiter_token::{self, ArbiterToken},
},
environment::{BlockType, EnvironmentParameters, GasSettings},
environment::{BlockSettings, EnvironmentParameters, GasSettings},
manager::Manager,
middleware::RevmMiddleware,
};
Expand Down Expand Up @@ -160,7 +160,7 @@ async fn arbiter_startup() -> Result<(Arc<RevmMiddleware>, Manager)> {
let mut manager = Manager::new();
let params = EnvironmentParameters {
label: ENV_LABEL.to_string(),
block_type: BlockType::UserControlled,
block_settings: BlockSettings::UserControlled,
gas_settings: GasSettings::UserControlled,
};
manager.add_environment(params)?;
Expand Down
Loading

0 comments on commit e136b60

Please # to comment.