Skip to content

Commit

Permalink
Merge tag 'v0.3.6' into merge-v0.3.6
Browse files Browse the repository at this point in the history
chore: Release alloy-serde version 0.3.6

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEEQCFA0ZHpEsgE2qgNyx7WsmjsJ+YFAmbq1+gACgkQyx7Wsmjs
# J+ZYCBAAyUaZZPkKM5ApiC/nUBLAhoGiijKfXhVy4vJeyw35lgQAnUtH1U8Zenpq
# 4V9ujIqUqqaJYVOEk535tNF5XJ513/f7whWiYcIZ4fObftcD/isjRNsw41AJePse
# Yggo5c9a/IQFeQAYk6tWy4ij8ZNZ5wHmj4Hl7k12LIjmaY7wRwWXtepl0VeLQNOn
# 0jf/sA1piISMZ8/gRkxWngbP4mFE12r8AYZfwzXP0VHzb1AucxJC1P4H0EoWmMu0
# bAox9712i1br7vTN33y/x8wg3g3Aknbud76IBYnucUzYllrN6EycCPaXFgdqeqeB
# tPXOJD9iqh4EJyBHR5TznIEkJtvMI82b17vKhq6pN4gDagOmuYL/KMNhd/a7UTU9
# dQFAp3YK2TwAYB2pO7zt5t101ECoDEYCrWglGbMWmJxKuICcvbiVstfFiXGYDz7N
# pZlqrX1qzKguSDlu5OL35JaJ8te+BEM4ni85rKj4um0NTcNlbt34NwL+muV+sP9g
# blwRiDeFcD72pznVvpLo+xsCiuQDlRyHOQcxNOWTDmNk1WJVd6bBciuE12k5dfY/
# dTqHa6uJ+g3oCYYUWug9lgMG3CPCj8XQdcQmnvYo2noVMrq4l0SP26QTE2XToDW3
# EKGKKscNB8ETVK9dd9FcfLCWIlJ918U09moez8cB88Fjvug9n30=
# =a6Wq
# -----END PGP SIGNATURE-----
  • Loading branch information
pythonberg1997 committed Sep 19, 2024
2 parents 7a05057 + 237693b commit 004a0ba
Show file tree
Hide file tree
Showing 148 changed files with 6,299 additions and 1,911 deletions.
52 changes: 35 additions & 17 deletions .github/scripts/install_test_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Note: intended for use only with CI (x86_64 Ubuntu, MacOS or Windows)
set -e

GETH_BUILD=${GETH_BUILD:-"1.14.0-87246f3c"}
GETH_BUILD=${GETH_BUILD:-"1.14.8-a9523b64"}
RETH_BUILD=${RETH_BUILD:-"1.0.6"}

BIN_DIR=${BIN_DIR:-"$HOME/bin"}

Expand All @@ -17,32 +18,49 @@ main() {
echo "$BIN_DIR" >> "$GITHUB_PATH"
fi

install_geth
install_geth &
install_reth &

echo ""
echo "Installed Geth:"
geth version
wait
}

# Installs geth from https://geth.ethereum.org/downloads
install_geth() {
case "$PLATFORM" in
linux|darwin)
name="geth-$PLATFORM-amd64-$GETH_BUILD"
curl -s "https://gethstore.blob.core.windows.net/builds/$name.tar.gz" | tar -xzf -
mv -f "$name/geth" ./
rm -rf "$name"
linux)
NAME="geth-$PLATFORM-amd64-$GETH_BUILD"
curl -sL "https://gethstore.blob.core.windows.net/builds/$NAME.tar.gz" | tar -xzf -
mv -f "$NAME/geth" ./
rm -rf "$NAME"
chmod +x geth
;;
*)
name="geth-windows-amd64-$GETH_BUILD"
zip="$name.zip"
curl -so "$zip" "https://gethstore.blob.core.windows.net/builds/$zip"
unzip "$zip"
mv -f "$name/geth.exe" ./
rm -rf "$name" "$zip"
NAME="geth-windows-amd64-$GETH_BUILD"
curl -so $NAME.zip "https://gethstore.blob.core.windows.net/builds/$NAME.zip"
unzip $NAME.zip
mv -f "$NAME/geth.exe" ./
rm -rf "$NAME" "$NAME.zip"
;;
esac

echo ""
echo "Installed Geth:"
geth version
}

# Install reth from https://github.com/paradigmxyz/reth/releases
install_reth() {
case "$PLATFORM" in
linux)
NAME="reth-v$RETH_BUILD-x86_64-unknown-linux-gnu"
curl -sL "https://github.com/paradigmxyz/reth/releases/download/v$RETH_BUILD/$NAME.tar.gz" | tar -xzf -
chmod +x reth

echo ""
echo "Installed Reth:"
reth --version
;;
esac
}

main
main
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
rust:
- "stable"
- "nightly"
- "1.76" # MSRV
- "1.79" # MSRV
flags:
# No features
- "--no-default-features"
Expand All @@ -34,7 +34,7 @@ jobs:
- "--all-features"
exclude:
# All features on MSRV
- rust: "1.76" # MSRV
- rust: "1.79" # MSRV
flags: "--all-features"
steps:
- uses: actions/checkout@v4
Expand All @@ -53,14 +53,14 @@ jobs:
cache-on-failure: true
# Only run tests on latest stable and above
- name: Install cargo-nextest
if: ${{ matrix.rust != '1.76' }} # MSRV
if: ${{ matrix.rust != '1.79' }} # MSRV
uses: taiki-e/install-action@nextest
- name: build
if: ${{ matrix.rust == '1.76' }} # MSRV
if: ${{ matrix.rust == '1.79' }} # MSRV
run: cargo build --workspace ${{ matrix.flags }}
- name: test
shell: bash
if: ${{ matrix.rust != '1.76' }} # MSRV
if: ${{ matrix.rust != '1.79' }} # MSRV
run: cargo nextest run --workspace ${{ matrix.flags }}

doctest:
Expand Down Expand Up @@ -127,33 +127,33 @@ jobs:
- name: build ledger
run: cargo build -p alloy-signer-ledger --features browser --target wasm32-wasip1

no-std:
feature-checks:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: riscv32imac-unknown-none-elf
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: check
run: ./scripts/check_no_std.sh
- name: cargo hack
run: cargo hack check --feature-powerset --depth 1

feature-checks:
check-no-std:
name: check no_std ${{ matrix.features }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: riscv32imac-unknown-none-elf
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo hack
run: cargo hack check --feature-powerset --depth 1
- run: ./scripts/check_no_std.sh

clippy:
runs-on: ubuntu-latest
Expand Down
161 changes: 161 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,166 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.6](https://github.com/alloy-rs/alloy/releases/tag/v0.3.6) - 2024-09-18

### Bug Fixes

- [types-eth] Optional Alloy Serde ([#1284](https://github.com/alloy-rs/alloy/issues/1284))
- `eth_simulateV1` ([#1289](https://github.com/alloy-rs/alloy/issues/1289))

### Features

- Add block num hash helper ([#1304](https://github.com/alloy-rs/alloy/issues/1304))
- ProviderCall ([#788](https://github.com/alloy-rs/alloy/issues/788))
- [rpc-types-beacon] `SignedBidSubmissionV4` ([#1303](https://github.com/alloy-rs/alloy/issues/1303))
- [transport-http] Layer client ([#1227](https://github.com/alloy-rs/alloy/issues/1227))
- Add blob and proof v1 ([#1300](https://github.com/alloy-rs/alloy/issues/1300))
- Add types for flat call tracer ([#1292](https://github.com/alloy-rs/alloy/issues/1292))
- [`node-bindings`] Support appending extra args ([#1299](https://github.com/alloy-rs/alloy/issues/1299))

### Miscellaneous Tasks

- [rpc] Rename witness fields ([#1293](https://github.com/alloy-rs/alloy/issues/1293))
- [engine] `no_std` Checks ([#1298](https://github.com/alloy-rs/alloy/issues/1298))

### Refactor

- Separate transaction builders for tx types ([#1259](https://github.com/alloy-rs/alloy/issues/1259))

## [0.3.5](https://github.com/alloy-rs/alloy/releases/tag/v0.3.5) - 2024-09-13

### Bug Fixes

- Add missing conversion ([#1287](https://github.com/alloy-rs/alloy/issues/1287))

### Miscellaneous Tasks

- Release 0.3.5
- Release 0.3.5

## [0.3.4](https://github.com/alloy-rs/alloy/releases/tag/v0.3.4) - 2024-09-13

### Bug Fixes

- `debug_traceCallMany` and `trace_callMany` ([#1278](https://github.com/alloy-rs/alloy/issues/1278))
- Serde for `eth_simulateV1` ([#1273](https://github.com/alloy-rs/alloy/issues/1273))

### Features

- [engine] Optional Serde ([#1283](https://github.com/alloy-rs/alloy/issues/1283))
- [alloy-rpc-types-eth] Optional serde ([#1276](https://github.com/alloy-rs/alloy/issues/1276))
- Improve node bindings ([#1279](https://github.com/alloy-rs/alloy/issues/1279))
- Add serde for NumHash ([#1277](https://github.com/alloy-rs/alloy/issues/1277))
- [engine] No_std engine types ([#1268](https://github.com/alloy-rs/alloy/issues/1268))
- No_std eth rpc types ([#1252](https://github.com/alloy-rs/alloy/issues/1252))

### Miscellaneous Tasks

- Release 0.3.4
- Remove eth rpc types dep from engine types ([#1280](https://github.com/alloy-rs/alloy/issues/1280))
- Swap `BlockHashOrNumber` alias and struct name ([#1270](https://github.com/alloy-rs/alloy/issues/1270))
- [consensus] Remove Header Method ([#1271](https://github.com/alloy-rs/alloy/issues/1271))
- [consensus] Alloc by Default ([#1272](https://github.com/alloy-rs/alloy/issues/1272))
- [network-primitives] Remove alloc Vec Dep ([#1267](https://github.com/alloy-rs/alloy/issues/1267))

### Other

- Add trait methods `cumulative_gas_used` and `state_root` to `ReceiptResponse` ([#1275](https://github.com/alloy-rs/alloy/issues/1275))
- Implement `seal` helper for `Header` ([#1269](https://github.com/alloy-rs/alloy/issues/1269))

## [0.3.3](https://github.com/alloy-rs/alloy/releases/tag/v0.3.3) - 2024-09-10

### Bug Fixes

- [rpc-types-trace] Use rpc-types Log in OtsReceipt ([#1261](https://github.com/alloy-rs/alloy/issues/1261))

### Features

- [rpc-types-trace] Always serialize result if no error ([#1258](https://github.com/alloy-rs/alloy/issues/1258))

### Miscellaneous Tasks

- Release 0.3.3
- Require destination for 7702 ([#1262](https://github.com/alloy-rs/alloy/issues/1262))
- Swap BlockNumHash alias and struct name ([#1265](https://github.com/alloy-rs/alloy/issues/1265))

### Other

- Implement `AsRef` for `Header` ([#1260](https://github.com/alloy-rs/alloy/issues/1260))

### Testing

- Dont use fork test ([#1263](https://github.com/alloy-rs/alloy/issues/1263))

## [0.3.2](https://github.com/alloy-rs/alloy/releases/tag/v0.3.2) - 2024-09-09

### Bug Fixes

- [consensus] Remove Unused Alloc Vecs ([#1250](https://github.com/alloy-rs/alloy/issues/1250))

### Dependencies

- Bump tower to 0.5 ([#1249](https://github.com/alloy-rs/alloy/issues/1249))

### Features

- No_std network primitives ([#1248](https://github.com/alloy-rs/alloy/issues/1248))
- [rpc-types-eth] AnyBlock ([#1243](https://github.com/alloy-rs/alloy/issues/1243))
- Add Reth node bindings ([#1092](https://github.com/alloy-rs/alloy/issues/1092))
- [rpc-types-engine] Add forkchoice state zero helpers ([#1231](https://github.com/alloy-rs/alloy/issues/1231))
- [network-primitives] Expose more fields via block response traits ([#1229](https://github.com/alloy-rs/alloy/issues/1229))

### Miscellaneous Tasks

- Release 0.3.2
- Add aliases for Num Hash ([#1253](https://github.com/alloy-rs/alloy/issues/1253))
- Add helpers for beacon blob bundle ([#1254](https://github.com/alloy-rs/alloy/issues/1254))
- [eip1898] Display `RpcBlockHash` ([#1242](https://github.com/alloy-rs/alloy/issues/1242))
- Optional derive more ([#1239](https://github.com/alloy-rs/alloy/issues/1239))
- Derive more default features false ([#1230](https://github.com/alloy-rs/alloy/issues/1230))

### Other

- Add getter trait methods to `ReceiptResponse` ([#1251](https://github.com/alloy-rs/alloy/issues/1251))
- Impl `exceeds_allowed_future_timestamp` for `Header` ([#1237](https://github.com/alloy-rs/alloy/issues/1237))
- Impl `is_zero_difficulty` for `Header` ([#1236](https://github.com/alloy-rs/alloy/issues/1236))
- Impl parent_num_hash for Header ([#1238](https://github.com/alloy-rs/alloy/issues/1238))
- Implement `Arbitrary` for `Header` ([#1235](https://github.com/alloy-rs/alloy/issues/1235))

## [0.3.1](https://github.com/alloy-rs/alloy/releases/tag/v0.3.1) - 2024-09-02

### Bug Fixes

- Anvil builder default port ([#1213](https://github.com/alloy-rs/alloy/issues/1213))
- [eips] No-std compat ([#1222](https://github.com/alloy-rs/alloy/issues/1222))
- Value of TxEip1559.ty ([#1210](https://github.com/alloy-rs/alloy/issues/1210))

### Dependencies

- Bump rust msrv to 1.78 ([#1219](https://github.com/alloy-rs/alloy/issues/1219))

### Documentation

- Update version ([#1211](https://github.com/alloy-rs/alloy/issues/1211))

### Features

- [`json-rpc`] Implement From U256 and String for SubId ([#1226](https://github.com/alloy-rs/alloy/issues/1226))
- Workflow to validate no_std compatibility ([#1223](https://github.com/alloy-rs/alloy/issues/1223))
- Derive `arbitrary::Arbitrary` for `TxEip7702` ([#1216](https://github.com/alloy-rs/alloy/issues/1216))
- Implement `tx_type` for `TxEip7702` ([#1214](https://github.com/alloy-rs/alloy/issues/1214))
- [alloy-provider] Add abstraction for `NonceFiller` behavior ([#1108](https://github.com/alloy-rs/alloy/issues/1108))

### Miscellaneous Tasks

- Release 0.3.1
- [README] Add a link to `rpc-types-debug` ([#1212](https://github.com/alloy-rs/alloy/issues/1212))
- [features] Enable `consensus` and `network` along with `providers` ([#1207](https://github.com/alloy-rs/alloy/issues/1207))

### Other

- Rm useless methods for `TxEip7702` ([#1221](https://github.com/alloy-rs/alloy/issues/1221))

## [0.3.0](https://github.com/alloy-rs/alloy/releases/tag/v0.3.0) - 2024-08-28

### Bug Fixes
Expand Down Expand Up @@ -92,6 +252,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Miscellaneous Tasks

- Release 0.3.0
- [consensus] Add missing getter trait methods for `alloy_consensus::Transaction` ([#1197](https://github.com/alloy-rs/alloy/issues/1197))
- Rm Rich type ([#1195](https://github.com/alloy-rs/alloy/issues/1195))
- Clippy für docs ([#1194](https://github.com/alloy-rs/alloy/issues/1194))
Expand Down
16 changes: 11 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.3.0"
version = "0.3.6"
edition = "2021"
rust-version = "1.76"
rust-version = "1.79"
authors = ["Alloy Contributors"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/alloy-rs/alloy"
Expand Down Expand Up @@ -113,18 +113,22 @@ rustls = { version = "0.23", default-features = false, features = [
] }
tokio-test = "0.4"
tokio-tungstenite = "0.23"
tower = { version = "0.4", features = ["util"] }
tower = { version = "0.5", features = ["util"] }

# tracing
tracing = "0.1"
tracing-subscriber = "0.3"

# no_std
cfg-if = "1"
hashbrown = "0.14.5"

# misc
auto_impl = "1.2"
base64 = "0.22"
bimap = "0.6"
home = "0.5"
itertools = "0.13"
itertools = { version = "0.13", default-features = false }
once_cell = { version = "1.19", default-features = false }
pin-project = "1.1"
rand = "0.8"
Expand All @@ -133,7 +137,8 @@ semver = "1.0"
thiserror = "1.0"
thiserror-no-std = "2.0.2"
url = "2.5"
derive_more = "1.0.0"
derive_more = { version = "1.0.0", default-features = false }
http = "1.1.0"

## serde
serde = { version = "1.0", default-features = false, features = [
Expand All @@ -149,3 +154,4 @@ assert_matches = "1.5"
serial_test = "3.0"
similar-asserts = "1.5"
tempfile = "3.10"
tower-http = "0.5.2"
Loading

0 comments on commit 004a0ba

Please sign in to comment.