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.2.1 #7

Closed
wants to merge 62 commits into from
Closed

Conversation

pythonberg1997
Copy link

Motivation

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

mattsse and others added 30 commits July 9, 2024 14:25
* Implement Rpc namespace

* Review comment

* Dependency fix

---------

Co-authored-by: Mikhail Sozin <[email protected]>
* chore: add failing test

* fix(eip7702): Add correct rlp decode/encode

* clippy fmt

* fmt

* can be const
* feat(genesis): rm eip150_hash

Signed-off-by: jsvisa <[email protected]>

* fix testcase

Signed-off-by: jsvisa <[email protected]>

---------

Signed-off-by: jsvisa <[email protected]>
* feat: add arbitrary to auth

* cant use cfg because k256 can be enabled on workspace level

* use macro and share fn
)

* chore: remove proptest in most crates and Arbitrary derives

* cargo fmt

rewriting static

* remove other proptest derive

* remove the rest of the proptest impls

* make arbitraryvalue not pub

* remove proptest derive from auth list
* feat: generate valid signed auth signatures

* feature gate the auth arbitrary
…alloy-rs#1043)

* fix(otterscan): add OtsSlimBlock for BlockDetails

Signed-off-by: jsvisa <[email protected]>

* feat(otterscan): use serde_repr to serialize OperationType to int

Signed-off-by: jsvisa <[email protected]>

* feat(otterscan): add a new function for BlockDetails

Signed-off-by: jsvisa <[email protected]>

* Revert "feat(otterscan): use serde_repr to serialize OperationType to int"

This reverts commit 96df6f4.

Signed-off-by: jsvisa <[email protected]>

* feat(otterscan): custom implement Serialize for OperationType

Signed-off-by: jsvisa <[email protected]>

* (de)serialize to u8

Signed-off-by: jsvisa <[email protected]>

* clippy

Signed-off-by: jsvisa <[email protected]>

---------

Signed-off-by: jsvisa <[email protected]>
* fix(admin): id in NodeInfo is string instead of B256

Signed-off-by: jsvisa <[email protected]>

* fix testcase

Signed-off-by: jsvisa <[email protected]>

* apply code review

Signed-off-by: jsvisa <[email protected]>

---------

Signed-off-by: jsvisa <[email protected]>
* chore: make auth mandatory in recovered auth

* features
…lloy-rs#1051)

* feat: add authorization list to rpc transaction and tx receipt types

* fix: add default impl

Co-authored-by: Matthias Seitz <[email protected]>

* fix: use signed authorization for rpc transaction type

* fix: enable arbitrary and k256 features for development

* fix: cargo hack fix

* chore: flatten signature

---------

Co-authored-by: Matthias Seitz <[email protected]>
* refactor: replace `U64` with `u64` in rpc-types-(eth|trace)

* replace `U64` in rpc-types-(eth|engine)

* use u128 in OptimismTransactionFields.mint
…y-rs#955 (alloy-rs#1058)

* fix: broken bincode serialization from alloy-rs#955

* remove optional in alloy-serde

* resolve matt's comments

* get rid of broken test

* fix cargo fmt

* enforce storage key

---------

Co-authored-by: Matthias Seitz <[email protected]>
…l_with_wallet_and_config` (alloy-rs#1055)

* node-bindings: Add AnvilError::NoKeysAvailable

* prevent panic from having 0 keys

* fix the error handlings for `on_anvil_with_wallet`

* fix clippy

* fix(clippy): Add type alias

* Add `try_on_anvil_with_wallet_and_config` and call it in `on_anvil_with_wallet_and_config`

* Revert test changes

* Fix docs
* feat: expose encoded_len_with_signature()

* nit: fmt
StackOverflowExcept1on and others added 28 commits July 19, 2024 15:27
…y-rs#1083)

consensus: add From<ConsolidationRequest> for Request
* chore : fix typos

* revert infura
alloy-rs#1088)

feat(json-rpc): implement From<u64> for Id and From<String> for Id
* ake 7702 auth recovery fallible

* Update auth_list.rs

* Update auth_list.rs

* clippy

* clippy

* Update auth_list.rs

* Update crates/eips/src/eip7702/auth_list.rs

Co-authored-by: Matthias Seitz <[email protected]>

* Update auth_list.rs

* Update crates/eips/src/eip7702/auth_list.rs

Co-authored-by: Oliver <[email protected]>

* Update crates/eips/src/eip7702/auth_list.rs

Co-authored-by: Oliver <[email protected]>

* chore: add is fns

---------

Co-authored-by: Matthias Seitz <[email protected]>
Co-authored-by: Oliver <[email protected]>
* feat(trace): filter with TransactionTrace

Signed-off-by: jsvisa <[email protected]>

* wip: add test case

Signed-off-by: jsvisa <[email protected]>

* Revert "wip: add test case"

This reverts commit 7f4ca13.

Signed-off-by: jsvisa <[email protected]>

* add test case

Signed-off-by: jsvisa <[email protected]>

* Update crates/rpc-types-trace/src/filter.rs

Co-authored-by: Matthias Seitz <[email protected]>

* add more docs

Signed-off-by: jsvisa <[email protected]>

---------

Signed-off-by: jsvisa <[email protected]>
Co-authored-by: Matthias Seitz <[email protected]>
* feat: add helper for decoding custom errors

* use find_map
* Feat: eth_simulateV1 Request / Response types

* Update lib.rs

* Update simulate.rs

* fmt

* Update simulate.rs

* Update simulate.rs

* Delete crates/rpc-types-trace/src/simulate.rs

* Update lib.rs

* Create simulate.rs

* Update lib.rs

* fmt

* fmt

* Update lib.rs

* Update lib.rs

* touchups

* fix type

---------

Co-authored-by: Matthias Seitz <[email protected]>
* feat: use EncodableSignature for tx encoding

* feat: integrate EncodableSignature in alloy directly
* refactor: add network-primitives

* fix tests

* fix docs

* add re-exports

* Block<T>
* Update parity.rs Bytes to Option<Bytes>

That will resolve the issue when the RPC server returns "output": null, as Nethermind does.

* Use null_as_default for handling null output and added test
* rpc: derive arbitrary for TransactionRequest

* fix deny
* replace type, change type of result and add type in mod.rs

* add new methods

* add docs and impl

* docs linking

* clippy

* rustmft

---------

Co-authored-by: Matthias Seitz <[email protected]>
…transaction (alloy-rs#1118)

Make Deserialize impl for FilterChanges generic over transaction
# Conflicts:
#	CHANGELOG.md
#	Cargo.toml
#	crates/alloy/CHANGELOG.md
#	crates/consensus/CHANGELOG.md
#	crates/consensus/src/transaction/eip1559.rs
#	crates/consensus/src/transaction/eip2930.rs
#	crates/consensus/src/transaction/eip4844.rs
#	crates/consensus/src/transaction/eip7702.rs
#	crates/consensus/src/transaction/legacy.rs
#	crates/contract/CHANGELOG.md
#	crates/eip7547/CHANGELOG.md
#	crates/eips/CHANGELOG.md
#	crates/eips/Cargo.toml
#	crates/eips/src/eip7702/auth_list.rs
#	crates/genesis/CHANGELOG.md
#	crates/json-rpc/CHANGELOG.md
#	crates/network/CHANGELOG.md
#	crates/node-bindings/CHANGELOG.md
#	crates/provider/CHANGELOG.md
#	crates/provider/src/builder.rs
#	crates/pubsub/CHANGELOG.md
#	crates/rpc-client/CHANGELOG.md
#	crates/rpc-types-admin/CHANGELOG.md
#	crates/rpc-types-anvil/CHANGELOG.md
#	crates/rpc-types-beacon/CHANGELOG.md
#	crates/rpc-types-engine/CHANGELOG.md
#	crates/rpc-types-eth/CHANGELOG.md
#	crates/rpc-types-eth/src/account.rs
#	crates/rpc-types-eth/src/block.rs
#	crates/rpc-types-eth/src/lib.rs
#	crates/rpc-types-eth/src/transaction/mod.rs
#	crates/rpc-types-eth/src/transaction/receipt.rs
#	crates/rpc-types-mev/CHANGELOG.md
#	crates/rpc-types-trace/CHANGELOG.md
#	crates/rpc-types-trace/src/otterscan.rs
#	crates/rpc-types-txpool/CHANGELOG.md
#	crates/rpc-types/CHANGELOG.md
#	crates/serde/CHANGELOG.md
#	crates/signer-aws/CHANGELOG.md
#	crates/signer-gcp/CHANGELOG.md
#	crates/signer-ledger/CHANGELOG.md
#	crates/signer-local/CHANGELOG.md
#	crates/signer-trezor/CHANGELOG.md
#	crates/signer/CHANGELOG.md
#	crates/transport-http/CHANGELOG.md
#	crates/transport-ipc/CHANGELOG.md
#	crates/transport-ws/CHANGELOG.md
#	crates/transport/CHANGELOG.md
@pythonberg1997 pythonberg1997 deleted the merge-v0.2.1 branch September 19, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.