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.1.4 #5

Merged
merged 62 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
8211239
feat: add trace_filter method (#946)
DoTheBestToGetTheBest Jun 19, 2024
1ee31cf
chore: nightly clippy (#947)
DaniPopes Jun 20, 2024
7b28acf
chore(eips): make `alloy-serde` optional under `serde` (#948)
DaniPopes Jun 20, 2024
b3b5828
chore(eips): make `sha2` optional, add `kzg-sidecar` feature (#949)
DaniPopes Jun 20, 2024
f44f35c
fix: enable tls12 in rustls (#952)
DaniPopes Jun 20, 2024
8aa5482
chore: add more features to meta crate (#953)
DaniPopes Jun 20, 2024
194f266
fix: deserialization of null storage keys in AccessListItem (#955)
Wodann Jun 21, 2024
5eadbf1
feat: add eip-7251 system contract address/code (#956)
onbjerg Jun 21, 2024
61921bc
fix: continue reading ipc on large data (#958)
publicqi Jun 22, 2024
9b8437e
docs: copy/paste error of eip-7251 link (#961)
jsvisa Jun 24, 2024
ea0cffc
feat(contract): implement Filter's builder methods on Event (#960)
alexfertel Jun 24, 2024
2d26b05
feat: add eip-7702 helpers (#950)
onbjerg Jun 24, 2024
a1c9f8a
chore(eips): Add serde to Authorization types (#964)
rakita Jun 24, 2024
b69b5a3
hotfix(contract): support state overrides for gas estimation (#967)
shankinson Jun 25, 2024
4b5541e
feat(alloy): forward `rustls` & `native` reqwest TLS configuration to…
zerosnacks Jun 25, 2024
46d93cd
feat: move mev.rs from reth to rpc-types-mev (#970)
Jun 25, 2024
6ac2635
feat(network): Add `input` method to `TransactionResponse` (#959)
moricho Jun 25, 2024
1094236
chore: release 0.1.3
DaniPopes Jun 25, 2024
02f375e
chore: release 0.1.3
DaniPopes Jun 25, 2024
38ace64
chore: release 0.1.3 (-p alloy)
DaniPopes Jun 25, 2024
67881cb
add range test in `FilterBlockOption` (#939)
tcoratger Jun 25, 2024
5be0002
docs: add release checklist (#972)
DaniPopes Jun 25, 2024
1936907
chore(deps): remove reqwest and hyper from meta crate (#974)
DaniPopes Jun 25, 2024
a48e71a
dev(hotfix): typo change pub(crate) to pub (#979)
Jun 26, 2024
8748f9b
fix(signer-trezor): fix zero gas price when sending legacy tx with tr…
TuDo1403 Jun 26, 2024
761909b
feat: add missing eth bundle args (#978)
mattsse Jun 26, 2024
b17baf3
chore(provider): simplify nonce filler (#976)
DaniPopes Jun 26, 2024
1376683
feat: impl `From<RpcBlockHash>` for `BlockHashOrNumber` (#980)
tcoratger Jun 26, 2024
60cd429
feat: add helpers for trace action (#982)
mattsse Jun 26, 2024
097e21a
Allow to convert CallBuilderTo TransactionRequest (#981)
leruaa Jun 27, 2024
3cc55de
feat: add into transactions iterator (#984)
mattsse Jun 28, 2024
a2182f4
Update builders to vector of strings in privacy struct (#983)
igorline Jun 28, 2024
91e5628
feat: add missing debug_* rpc methods (#986)
alexfertel Jun 28, 2024
bd5700b
chore: make wrapped index value pub (#988)
mattsse Jun 28, 2024
1807965
feat: add net rpc namespace (#989)
alexfertel Jun 29, 2024
0b8ad51
test: fix flaky anvil test (#992)
DaniPopes Jun 29, 2024
b15bb6a
ci: fix wasi job (#993)
DaniPopes Jun 29, 2024
7b47529
feat: Add trace_get (#987)
SozinM Jun 29, 2024
b036bc9
feat: add submit block request query (#995)
mattsse Jun 30, 2024
c98a175
fix: ots_getContractCreater has field hash instead of tx (#999)
jsvisa Jul 1, 2024
984ee1b
chore: clean up 7702 encoding (#1000)
onbjerg Jul 1, 2024
490b841
feat: support web3_sha3 provider function (#996)
PanGan21 Jul 1, 2024
735c73a
feat(otterscan): add output for TraceEntry (#1001)
jsvisa Jul 2, 2024
3cbefdd
feat(network): block context in ReceiptResponse (#1003)
yash-atreya Jul 2, 2024
ec9e13e
feat: add missing admin_* methods (#991)
alexfertel Jul 3, 2024
78807cb
test: add missing unit test for op `calc_next_block_base_fee` (#1008)
tcoratger Jul 3, 2024
629b496
feat(eip1559): Support Optimism Canyon hardfork (#1010)
moricho Jul 4, 2024
aa01a15
chore(docs): Add the missing crate `rpc-types-mev` (#1011)
moricho Jul 4, 2024
83e5aa9
feat: impl Transaction for TxEnvelope (#1006)
klkvr Jul 4, 2024
ca1f1f0
feat(rpc-types-eth): add more utils to `TransactionIndex` (#1007)
tcoratger Jul 4, 2024
a24e30b
feat: add consolidation requests to v4 payload (#1013)
mattsse Jul 4, 2024
2133aad
feat: add execution payloadbodyv2 (#1012)
mattsse Jul 4, 2024
40e6860
chore: convert rcp-types-eth block Header to consensus Header (#1014)
teddav Jul 5, 2024
96e3a84
feat(transport): retry layer (#849)
yash-atreya Jul 5, 2024
07d1de5
feat: add helper to set both input and data fields (#1019)
mattsse Jul 6, 2024
75ef6a4
Remove signature.v parity before calculating tx hash (#893)
kpp Jul 8, 2024
e6b3edd
fix: Fix watching already mined transactions (#997)
popzxc Jul 8, 2024
e849732
chore: add helper functions for destructuring auth types (#1022)
mattsse Jul 8, 2024
b9a9625
chore: update release config
DaniPopes Jul 8, 2024
83343b1
chore: release 0.1.4
DaniPopes Jul 8, 2024
28b65f5
Merge tag 'refs/tags/v0.1.4' into parlia
pythonberg1997 Jul 10, 2024
10549bc
chore: resolve merge conflicts
pythonberg1997 Jul 10, 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
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,23 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasi
target: wasm32-wasip1
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: pin cc # https://github.com/rust-lang/cc-rs/issues/1109
run: cargo update cc --precise 1.0.99
- name: cargo hack
run: |
cargo hack build --workspace --target wasm32-wasi \
cargo hack build --workspace --target wasm32-wasip1 \
--exclude alloy-signer-gcp \
--exclude alloy-signer-ledger \
--exclude alloy-signer-trezor \
--exclude alloy-transport-ipc
# Ledger signer requires one of `browser` or `node` features.
- name: build ledger
run: cargo build -p alloy-signer-ledger --features browser --target wasm32-wasi
run: cargo build -p alloy-signer-ledger --features browser --target wasm32-wasip1

no-std:
runs-on: ubuntu-latest
Expand Down
103 changes: 103 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,108 @@ 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.1.4](https://github.com/alloy-rs/alloy/releases/tag/v0.1.4) - 2024-07-08

### Bug Fixes

- Fix watching already mined transactions ([#997](https://github.com/alloy-rs/alloy/issues/997))
- Ots_getContractCreater has field hash instead of tx ([#999](https://github.com/alloy-rs/alloy/issues/999))
- [signer-trezor] Fix zero gas price when sending legacy tx with trezor ([#977](https://github.com/alloy-rs/alloy/issues/977))

### Dependencies

- [deps] Remove reqwest and hyper from meta crate ([#974](https://github.com/alloy-rs/alloy/issues/974))

### Documentation

- Add release checklist ([#972](https://github.com/alloy-rs/alloy/issues/972))

### Features

- Add helper to set both input and data fields ([#1019](https://github.com/alloy-rs/alloy/issues/1019))
- [transport] Retry layer ([#849](https://github.com/alloy-rs/alloy/issues/849))
- Add execution payloadbodyv2 ([#1012](https://github.com/alloy-rs/alloy/issues/1012))
- Add consolidation requests to v4 payload ([#1013](https://github.com/alloy-rs/alloy/issues/1013))
- [rpc-types-eth] Add more utils to `TransactionIndex` ([#1007](https://github.com/alloy-rs/alloy/issues/1007))
- Impl Transaction for TxEnvelope ([#1006](https://github.com/alloy-rs/alloy/issues/1006))
- [eip1559] Support Optimism Canyon hardfork ([#1010](https://github.com/alloy-rs/alloy/issues/1010))
- Add missing admin_* methods ([#991](https://github.com/alloy-rs/alloy/issues/991))
- [network] Block context in ReceiptResponse ([#1003](https://github.com/alloy-rs/alloy/issues/1003))
- [otterscan] Add output for TraceEntry ([#1001](https://github.com/alloy-rs/alloy/issues/1001))
- Support web3_sha3 provider function ([#996](https://github.com/alloy-rs/alloy/issues/996))
- Add submit block request query ([#995](https://github.com/alloy-rs/alloy/issues/995))
- Add trace_get ([#987](https://github.com/alloy-rs/alloy/issues/987))
- Add net rpc namespace ([#989](https://github.com/alloy-rs/alloy/issues/989))
- Add missing debug_* rpc methods ([#986](https://github.com/alloy-rs/alloy/issues/986))
- Add into transactions iterator ([#984](https://github.com/alloy-rs/alloy/issues/984))
- Add helpers for trace action ([#982](https://github.com/alloy-rs/alloy/issues/982))
- Impl `From<RpcBlockHash>` for `BlockHashOrNumber` ([#980](https://github.com/alloy-rs/alloy/issues/980))
- Add missing eth bundle args ([#978](https://github.com/alloy-rs/alloy/issues/978))

### Miscellaneous Tasks

- Update release config
- Add helper functions for destructuring auth types ([#1022](https://github.com/alloy-rs/alloy/issues/1022))
- Convert rcp-types-eth block Header to consensus Header ([#1014](https://github.com/alloy-rs/alloy/issues/1014))
- [docs] Add the missing crate `rpc-types-mev` ([#1011](https://github.com/alloy-rs/alloy/issues/1011))
- Clean up 7702 encoding ([#1000](https://github.com/alloy-rs/alloy/issues/1000))
- Make wrapped index value pub ([#988](https://github.com/alloy-rs/alloy/issues/988))
- [provider] Simplify nonce filler ([#976](https://github.com/alloy-rs/alloy/issues/976))
- Release 0.1.3 (-p alloy)

### Other

- Remove signature.v parity before calculating tx hash ([#893](https://github.com/alloy-rs/alloy/issues/893))
- Fix wasi job ([#993](https://github.com/alloy-rs/alloy/issues/993))
- Update builders to vector of strings in privacy struct ([#983](https://github.com/alloy-rs/alloy/issues/983))
- Allow to convert CallBuilderTo TransactionRequest ([#981](https://github.com/alloy-rs/alloy/issues/981))
- [hotfix] Typo change pub(crate) to pub ([#979](https://github.com/alloy-rs/alloy/issues/979))
- Add range test in `FilterBlockOption` ([#939](https://github.com/alloy-rs/alloy/issues/939))

### Testing

- Add missing unit test for op `calc_next_block_base_fee` ([#1008](https://github.com/alloy-rs/alloy/issues/1008))
- Fix flaky anvil test ([#992](https://github.com/alloy-rs/alloy/issues/992))

## [0.1.3](https://github.com/alloy-rs/alloy/releases/tag/v0.1.3) - 2024-06-25

### Bug Fixes

- Continue reading ipc on large data ([#958](https://github.com/alloy-rs/alloy/issues/958))
- Deserialization of null storage keys in AccessListItem ([#955](https://github.com/alloy-rs/alloy/issues/955))
- Enable tls12 in rustls ([#952](https://github.com/alloy-rs/alloy/issues/952))

### Dependencies

- [eips] Make `alloy-serde` optional under `serde` ([#948](https://github.com/alloy-rs/alloy/issues/948))

### Documentation

- Copy/paste error of eip-7251 link ([#961](https://github.com/alloy-rs/alloy/issues/961))

### Features

- [network] Add `input` method to `TransactionResponse` ([#959](https://github.com/alloy-rs/alloy/issues/959))
- Move mev.rs from reth to rpc-types-mev ([#970](https://github.com/alloy-rs/alloy/issues/970))
- [alloy] Forward `rustls` & `native` reqwest TLS configuration to Alloy's metacrate ([#969](https://github.com/alloy-rs/alloy/issues/969))
- Add eip-7702 helpers ([#950](https://github.com/alloy-rs/alloy/issues/950))
- [contract] Implement Filter's builder methods on Event ([#960](https://github.com/alloy-rs/alloy/issues/960))
- Add eip-7251 system contract address/code ([#956](https://github.com/alloy-rs/alloy/issues/956))
- Add trace_filter method ([#946](https://github.com/alloy-rs/alloy/issues/946))

### Miscellaneous Tasks

- Release 0.1.3
- Release 0.1.3
- [eips] Add serde to Authorization types ([#964](https://github.com/alloy-rs/alloy/issues/964))
- Add more features to meta crate ([#953](https://github.com/alloy-rs/alloy/issues/953))
- [eips] Make `sha2` optional, add `kzg-sidecar` feature ([#949](https://github.com/alloy-rs/alloy/issues/949))
- Nightly clippy ([#947](https://github.com/alloy-rs/alloy/issues/947))

### Other

- [contract] Support state overrides for gas estimation ([#967](https://github.com/alloy-rs/alloy/issues/967))

## [0.1.2](https://github.com/alloy-rs/alloy/releases/tag/v0.1.2) - 2024-06-19

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

### Miscellaneous Tasks

- Release 0.1.2
- [rpc-types] Remove duplicate `Index` definition in `rpc-types-anvil` in favor of the one in `rpc-types-eth` ([#943](https://github.com/alloy-rs/alloy/issues/943))
- Update eip-2935 bytecode and address ([#934](https://github.com/alloy-rs/alloy/issues/934))
- Don't self-host documentation anymore ([#920](https://github.com/alloy-rs/alloy/issues/920))
Expand Down
25 changes: 15 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.1.2"
version = "0.1.4"
edition = "2021"
rust-version = "1.76"
authors = ["Alloy Contributors"]
Expand All @@ -13,18 +13,19 @@ repository = "https://github.com/alloy-rs/alloy"
exclude = ["benches/", "tests/"]

[workspace.lints]
rust.missing_debug_implementations = "warn"
rust.missing_docs = "warn"
rust.unreachable_pub = "warn"
rust.unused_must_use = "deny"
rust.rust_2018_idioms = "deny"
rust.missing-debug-implementations = "warn"
rust.missing-docs = "warn"
rust.unreachable-pub = "warn"
rust.unused-must-use = "deny"
rust.rust-2018-idioms = "deny"
rustdoc.all = "warn"

[workspace.lints.clippy]
all = "warn"
missing_const_for_fn = "warn"
use_self = "warn"
option_if_let_else = "warn"
missing-const-for-fn = "warn"
use-self = "warn"
option-if-let-else = "warn"
redundant-clone = "warn"

[workspace.metadata.docs.rs]
all-features = true
Expand All @@ -47,6 +48,7 @@ alloy-rpc-types-anvil = { version = "0.1", path = "crates/rpc-types-anvil", defa
alloy-rpc-types-beacon = { version = "0.1", path = "crates/rpc-types-beacon", default-features = false }
alloy-rpc-types-engine = { version = "0.1", path = "crates/rpc-types-engine", default-features = false }
alloy-rpc-types-eth = { version = "0.1", path = "crates/rpc-types-eth", default-features = false }
alloy-rpc-types-mev = { version = "0.1", path = "crates/rpc-types-mev", default-features = false }
alloy-rpc-types-trace = { version = "0.1", path = "crates/rpc-types-trace", default-features = false }
alloy-rpc-types-txpool = { version = "0.1", path = "crates/rpc-types-txpool", default-features = false }
alloy-rpc-types = { version = "0.1", path = "crates/rpc-types", default-features = false }
Expand Down Expand Up @@ -96,7 +98,10 @@ http-body-util = "0.1"
tokio = "1"
tokio-util = "0.7"
tokio-stream = "0.1"
rustls = { version = "0.23", default-features = false, features = ["std"] }
rustls = { version = "0.23", default-features = false, features = [
"std",
"tls12",
] }
tokio-test = "0.4"
tokio-tungstenite = "0.23"
tower = { version = "0.4", features = ["util"] }
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ This repository contains the following crates:
- [`alloy-rpc-types-beacon`] - Types for the [Ethereum Beacon Node API][beacon-apis]
- [`alloy-rpc-types-engine`] - Types for the `engine` Ethereum JSON-RPC namespace
- [`alloy-rpc-types-eth`] - Types for the `eth` Ethereum JSON-RPC namespace
- [`alloy-rpc-types-mev`] - Types for the MEV bundle JSON-RPC namespace
- [`alloy-rpc-types-trace`] - Types for the `trace` Ethereum JSON-RPC namespace
- [`alloy-rpc-types-txpool`] - Types for the `txpool` Ethereum JSON-RPC namespace
- [`alloy-serde`] - [Serde]-related utilities
Expand Down Expand Up @@ -86,6 +87,7 @@ This repository contains the following crates:
[`alloy-rpc-types-beacon`]: https://github.com/alloy-rs/alloy/tree/main/crates/rpc-types-beacon
[`alloy-rpc-types-engine`]: https://github.com/alloy-rs/alloy/tree/main/crates/rpc-types-engine
[`alloy-rpc-types-eth`]: https://github.com/alloy-rs/alloy/tree/main/crates/rpc-types-eth
[`alloy-rpc-types-mev`]: https://github.com/alloy-rs/alloy/tree/main/crates/rpc-types-mev
[`alloy-rpc-types-trace`]: https://github.com/alloy-rs/alloy/tree/main/crates/rpc-types-trace
[`alloy-rpc-types-txpool`]: https://github.com/alloy-rs/alloy/tree/main/crates/rpc-types-txpool
[`alloy-serde`]: https://github.com/alloy-rs/alloy/tree/main/crates/serde
Expand Down
26 changes: 26 additions & 0 deletions RELEASE_CHECKLIST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Release checklist

This checklist is meant to be used as a guide for the `crates.io` release process.

Releases are always made in lockstep, meaning that all crates in the repository
are released with the same version number, regardless of whether they have
changed or not.

## Requirements

- [cargo-release](https://github.com/crate-ci/cargo-release): `cargo install cargo-release`
- [git-cliff](https://github.com/orhun/git-cliff) (patched with [orhun/git-cliff#711](https://github.com/orhun/git-cliff/pull/711)): `cargo install --git https://github.com/DaniPopes/git-cliff.git --branch fix-include-paths git-cliff`

## Steps

- [ ] Make sure you're on the `main` branch.
- [ ] (optional) Dry run `cargo-release`: `cargo release <version>`
- [ ] Run `cargo-release`: `PUBLISH_GRACE_SLEEP=10 cargo release --execute [--no-verify] <version>`
- Ignore these warnings:
- `warning: updating <crate> to <version> despite no changes made since...`
- `git-cliff` warning `there is already a tag (<tag>) for ...`
- [ ] If a failure happened:
- [ ] You should have an unpushed commit. After the issue is fixed, retry the release process with `--no-push` and squash the commits together.
- [ ] If some crates were published before the error, AFAICT you must manually `--exclude <crate>` each already-published crate.
- [ ] Verify that the commit is correct, and push to the repository with `git push --tags`.
- [ ] Create a new GitHub release with the automatically generated changelog and with the name set to `<repo> v<X.Y.Z>`
26 changes: 26 additions & 0 deletions crates/alloy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ 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.1.4](https://github.com/alloy-rs/alloy/releases/tag/v0.1.4) - 2024-07-08

### Dependencies

- [deps] Remove reqwest and hyper from meta crate ([#974](https://github.com/alloy-rs/alloy/issues/974))

### Features

- Add net rpc namespace ([#989](https://github.com/alloy-rs/alloy/issues/989))

### Miscellaneous Tasks

- Release 0.1.3 (-p alloy)

## [0.1.3](https://github.com/alloy-rs/alloy/releases/tag/v0.1.3) - 2024-06-25

### Features

- [alloy] Forward `rustls` & `native` reqwest TLS configuration to Alloy's metacrate ([#969](https://github.com/alloy-rs/alloy/issues/969))
- Add eip-7702 helpers ([#950](https://github.com/alloy-rs/alloy/issues/950))

### Miscellaneous Tasks

- Add more features to meta crate ([#953](https://github.com/alloy-rs/alloy/issues/953))

## [0.1.2](https://github.com/alloy-rs/alloy/releases/tag/v0.1.2) - 2024-06-19

### Documentation
Expand All @@ -13,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Miscellaneous Tasks

- Release 0.1.2
- Update changelogs for v0.1.1 ([#922](https://github.com/alloy-rs/alloy/issues/922))
- Add docs.rs metadata to all manifests ([#917](https://github.com/alloy-rs/alloy/issues/917))

Expand Down
Loading