Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge with upstream v0.3.6 #9

Merged
merged 73 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
f6550c5
chore(features): enable `consensus` and `network` along with `provide…
klkvr Aug 28, 2024
ec70d9c
feat(alloy-provider): add abstraction for `NonceFiller` behavior (#1108)
StackOverflowExcept1on Aug 28, 2024
e30d510
fix: value of TxEip1559.ty (#1210)
bbjubjub2494 Aug 28, 2024
75f738b
docs: update version (#1211)
MistApproach Aug 29, 2024
2c831b0
chore(README): Add a link to `rpc-types-debug` (#1212)
moricho Aug 29, 2024
6f0bfdb
feat: implement `tx_type` for `TxEip7702` (#1214)
tcoratger Aug 29, 2024
08c3c34
feat: derive `arbitrary::Arbitrary` for `TxEip7702` (#1216)
tcoratger Aug 29, 2024
e51ed77
bump rust msrv to 1.78 (#1219)
tcoratger Aug 30, 2024
bfbbc32
eip7702: rm useless methods for `TxEip7702` (#1221)
tcoratger Aug 30, 2024
24e97da
fix(eips): no-std compat (#1222)
refcell Aug 30, 2024
59a39ac
feat: workflow to validate no_std compatibility (#1223)
refcell Aug 31, 2024
91d323f
fix: Anvil builder default port (#1213)
MistApproach Aug 31, 2024
8d5f065
feat(`json-rpc`): implement From U256 and String for SubId (#1226)
Evalir Sep 2, 2024
177f865
chore: release 0.3.1
mattsse Sep 2, 2024
81f4ab8
chore: derive more default features false (#1230)
mattsse Sep 3, 2024
06e0ae9
feat(network-primitives): expose more fields via block response trait…
yash-atreya Sep 3, 2024
6806537
feat(rpc-types-engine): add forkchoice state zero helpers (#1231)
Rjected Sep 3, 2024
de56cb9
consensus: implement `Arbitrary` for `Header` (#1235)
tcoratger Sep 4, 2024
68d245e
consensus: impl parent_num_hash for Header (#1238)
tcoratger Sep 4, 2024
aa1f234
consensus: impl `is_zero_difficulty` for `Header` (#1236)
tcoratger Sep 4, 2024
7cb6804
consensus: impl `exceeds_allowed_future_timestamp` for `Header` (#1237)
tcoratger Sep 4, 2024
0cb54b5
chore: optional derive more (#1239)
mattsse Sep 4, 2024
002aed5
feat: add Reth node bindings (#1092)
zerosnacks Sep 5, 2024
ab630b8
chore(eip1898): display `RpcBlockHash` (#1242)
emhane Sep 5, 2024
37b0c29
feat(rpc-types-eth): AnyBlock (#1243)
yash-atreya Sep 6, 2024
ad0538b
fix(consensus): Remove Unused Alloc Vecs (#1250)
refcell Sep 6, 2024
122c4b1
feat: no_std network primitives (#1248)
refcell Sep 6, 2024
9627e0a
dep: bump tower to 0.5 (#1249)
tcoratger Sep 7, 2024
2443101
rpc: add getter trait methods to `ReceiptResponse` (#1251)
tcoratger Sep 7, 2024
35aa090
chore: add helpers for beacon blob bundle (#1254)
mattsse Sep 9, 2024
72b5b9e
chore: add aliases for Num Hash (#1253)
mattsse Sep 9, 2024
4492c25
chore: release 0.3.2
mattsse Sep 9, 2024
7b487e4
feat(rpc-types-trace): always serialize result if no error (#1258)
jsvisa Sep 9, 2024
9c8bccc
consensus: implement `AsRef` for `Header` (#1260)
tcoratger Sep 9, 2024
1e9f45a
fix(rpc-types-trace): use rpc-types Log in OtsReceipt (#1261)
yash-atreya Sep 9, 2024
a8e5ae2
test: dont use fork test (#1263)
mattsse Sep 9, 2024
06dccfe
chore: swap BlockNumHash alias and struct name (#1265)
mattsse Sep 10, 2024
c9980cc
chore: require destination for 7702 (#1262)
mattsse Sep 10, 2024
c558a5c
chore: release 0.3.3
mattsse Sep 10, 2024
75d4d0c
chore(network-primitives): Remove alloc Vec Dep (#1267)
refcell Sep 10, 2024
c9e8263
chore(consensus): Alloc by Default (#1272)
refcell Sep 10, 2024
30897cc
chore(consensus): Remove Header Method (#1271)
refcell Sep 10, 2024
043dc20
consensus: implement `seal` helper for `Header` (#1269)
tcoratger Sep 10, 2024
5354223
fix: serde for `eth_simulateV1` (#1273)
klkvr Sep 11, 2024
41b2fd2
feat: no_std eth rpc types (#1252)
refcell Sep 11, 2024
8546ecf
chore: swap `BlockHashOrNumber` alias and struct name (#1270)
PanGan21 Sep 11, 2024
e61a184
feat(engine): no_std engine types (#1268)
refcell Sep 12, 2024
1d9e194
Add trait methods `cumulative_gas_used` and `state_root` to `ReceiptR…
emhane Sep 12, 2024
d535ac1
feat: add serde for NumHash (#1277)
mattsse Sep 12, 2024
3d8c680
feat: improve node bindings (#1279)
zerosnacks Sep 12, 2024
f50313a
fix: `debug_traceCallMany` and `trace_callMany` (#1278)
zerosnacks Sep 12, 2024
9362494
chore: remove eth rpc types dep from engine types (#1280)
mattsse Sep 12, 2024
8c5aff5
feat(alloy-rpc-types-eth): Optional serde (#1276)
refcell Sep 12, 2024
e7ea61d
feat(engine): Optional Serde (#1283)
refcell Sep 13, 2024
4545172
chore: release 0.3.4
mattsse Sep 13, 2024
6ea2451
fix: add missing conversion (#1287)
mattsse Sep 13, 2024
ba29d6b
chore: release 0.3.5
mattsse Sep 13, 2024
de77456
chore: release 0.3.5
mattsse Sep 13, 2024
cbfe3d9
fix: `eth_simulateV1` (#1289)
klkvr Sep 14, 2024
cb81345
chore(engine): `no_std` Checks (#1298)
refcell Sep 17, 2024
4e8f429
fix(types-eth): Optional Alloy Serde (#1284)
refcell Sep 17, 2024
099e64d
refactor: separate transaction builders for tx types (#1259)
klkvr Sep 17, 2024
a0eea36
feat(`node-bindings`): support appending extra args (#1299)
yash-atreya Sep 17, 2024
7424f09
feat: add types for flat call tracer (#1292)
mattsse Sep 17, 2024
6c409bd
feat: add blob and proof v1 (#1300)
mattsse Sep 17, 2024
347626b
chore(rpc): rename witness fields (#1293)
rkrasiuk Sep 17, 2024
68115f5
feat(transport-http): layer client (#1227)
yash-atreya Sep 18, 2024
79fe182
feat(rpc-types-beacon): `SignedBidSubmissionV4` (#1303)
rkrasiuk Sep 18, 2024
6369bcc
feature: ProviderCall (#788)
prestwich Sep 18, 2024
1681482
feat: add block num hash helper (#1304)
mattsse Sep 18, 2024
237693b
chore: release 0.3.6
mattsse Sep 18, 2024
004a0ba
Merge tag 'v0.3.6' into merge-v0.3.6
pythonberg1997 Sep 19, 2024
718aee5
chore: resolve merge conflicts
pythonberg1997 Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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