Georgios Konstantopoulos
516dfcfd2a
chore: fix fmt from master
2023-03-14 23:13:35 -07:00
Georgios Konstantopoulos
8c5c248491
chore: allow clippy false positive ( #2259 )
...
otherwise filter wont live long enough
2023-03-13 14:00:44 -07:00
dependabot[bot]
6ba8dd72e7
chore(deps): bump enr from 0.7.0 to 0.8.0 ( #2255 )
...
Bumps [enr](https://github.com/sigp/enr ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/sigp/enr/releases )
- [Commits](https://github.com/sigp/enr/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: enr
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-13 12:58:59 -07:00
Georgios Konstantopoulos
941d3908d9
(cargo-release) version 2.0.0
2023-03-13 12:38:25 -07:00
Matthias Seitz
49dccf9d89
fix: dont poll stream again if done ( #2245 )
2023-03-09 13:59:13 -08:00
DaniPopes
f9086e703c
fix: docsrs builds final ( #2235 )
...
* fix
* fix: middleware
* fix: update rustc flags
* docs: add comment
2023-03-08 14:58:44 -08:00
Matthias Seitz
89b23647f1
chore(ws): add some docs and impl debug ( #2219 )
2023-03-05 12:17:43 -08:00
James Prestwich
73636a906e
RRR: Reconnection & Request Reissuance ( #2181 )
...
* wip: ws2
* ws2 backend compiles
* refactor: rename PubSubItem and BackendDriver
* feature: dispatch request to end subscription
* refactor: move ws2 to ws, fix reconnection and deser on subs
* chore: improve use of tracing in manager
* refactor: feature legacy_ws to enable backwards compatibility
* nit: mod file ordering
* docs: copy PR description to ws structs
* fixes: remove unused macros file, remove err formats
* docs: add comments to struct fields
* docs: comment client struct fields
* chore: changelog
* fix: unused imports in ws_errors test
* docs: missing comment
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
* fix: legacy-ws feature in root crate, hyphen not underscore
* fix: a couple bad imports/exports
---------
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-02-28 18:25:59 -07:00
DaniPopes
da743fc8b2
ci/test: improve CI jobs and tests ( #2189 )
...
* ci: move to scripts directory
* nits
* ci: improve main CI jobs
* fix: install script
* fix
* fix: use curl for windows installation
* fix: wasm typo
* tests: move to single binary
* chore: clippy
* chore: clippy
* chore: clippy
* fix: test command
* fix: quote tests
* update script
* fix: action exclude
* fix: dev deps
* fix: only run wasm in own job
* ci: add aarch64 targets
* test: rm useless test
* ci: update security audit
* ci: add deny CI
* chore: rm unused audit.toml
* chore: update geth.rs
* ci: remove unusable targets
* fix: install script path
* fix: wasm
* improve script
* fix: failing ci
* fix: contract tests
* ci: improve install script
* update middleware tests
* move integration etherscan tests to tests/ dir
* fix: eip2930 access_list field name
* add pendingtransaction must_use
* add random anvil comment
* ci: add miri job
* ci: simplify
* fixci
* Revert "add pendingtransaction must_use"
This reverts commit 770b21b4a3
.
* fix: macos script
* fix: use curl in script
* unused ci
* update script
* fix wasm
* rm_miri
* fix: signer test
* fix: wasm ci
* fix: ipc test
* fix: live celo tests
* fix: abi online source test
* fix: windows paths in test
* chore: update serial_test
* ci: run live tests separately
* fix: provider tests
* fix: unused var
* fix: feature
* fix merge
* fix: etherscan key tests
* ci: rm duplicate audit
* fix: split etherscan test ci
* fix: etherscan test
* fix: generate multiple unused ports
* fix: source test
* fix: udeps
* rm unused
2023-02-28 17:26:27 -07:00
DaniPopes
319b86a643
chore: replace rpc urls with generic ones ( #2199 )
2023-02-27 15:16:33 -07:00
dependabot[bot]
59781a4e62
chore(deps): bump tempfile from 3.3.0 to 3.4.0 ( #2200 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases )
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS )
- [Commits](https://github.com/Stebalien/tempfile/commits )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 13:03:47 -07:00
DaniPopes
203e350940
docs: fix broken links, update documentation ( #2203 )
...
* docs: fix broken links
* docs: update READMEs and module-level documentation
2023-02-27 13:03:17 -07:00
James Prestwich
2090bf560e
Expose contract revert errors in the ContractError struct ( #2172 )
...
* feature: spelunk for revert errors
* feature: bubble up revert to contract error
* feature: bubble up reverts to multicall
* fix: correctly remove signature when deserializing EthErrors
* chore: remove redundant test
* chore: clippy
* fix: allow empty revert string
* docs: add all missing rustdoc for ethers-contract
* chore: rustfmt
* chore: Changelog
* fix: danipope test comment
2023-02-22 14:52:25 -08:00
James Prestwich
ef6e7f41a1
Refactor: organize ethers-providers ( #2159 )
...
* feature: bubble up jsonrpc error response via trait
* refactor: ClientError to TransportError
* refactor: FromErr to MiddlewareError
* tests: fix test with middlewareerror
* fix: doctest
* fix: fix custom middleware example
* feature: as_serde_error
* docs: for error traits
* fix: custom example and unnecessary ref
* refactor: in progress organization
* refactor: continue cleaning up
* refactor: finish changing crate layout
* refactor: fix test imports
* refactor: move convenience impl into toolbox
* chore: changelog
* docs: make them suck less
* fix: remove deprecation
* fix: DaniPopes's nits
2023-02-20 15:55:36 -08:00
dependabot[bot]
69edf3b49e
chore(deps): bump once_cell from 1.17.0 to 1.17.1 ( #2156 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.0 to 1.17.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.0...v1.17.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 10:55:04 -08:00
Georgios Konstantopoulos
24163412f8
chore: fix ci
2023-02-02 11:12:40 -08:00
dependabot[bot]
7e11f54ab0
chore(deps): bump bytes from 1.3.0 to 1.4.0 ( #2100 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0 )
---
updated-dependencies:
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:32:32 -08:00
Dan Cline
08514ea986
fix(providers): use middleware associated err type ( #2093 )
2023-01-30 11:57:03 -08:00
wigy
7da559bbed
fix(provider): Add Send bound to return type of JsonRpcClient::request ( #2072 )
2023-01-27 16:57:08 -05:00
dependabot[bot]
8ed95f1363
chore(deps): bump reqwest from 0.11.13 to 0.11.14 ( #2065 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.13 to 0.11.14.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.13...v0.11.14 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-27 13:13:10 -05:00
Georgios Konstantopoulos
f2099a8eaa
chore: fix clippy ( #2059 )
2023-01-16 18:11:27 -08:00
DaniPopes
a1d6b5e3f7
chore: clippy ( #2032 )
2023-01-11 19:05:39 -08:00
dependabot[bot]
c439566625
chore(deps): bump base64 from 0.20.0 to 0.21.0 ( #2030 )
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.20.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 07:16:11 +02:00
Andrea Simeoni
5917e842d7
ci: fix nonce manager test ( #2014 )
...
* Use Anvil instead of Goerli to test the nonce manager
* restore comment
* fix: explicitly assign `inner.max_priority_fee_per_gas`
Co-authored-by: Andrea Simeoni <>
2023-01-06 11:29:46 +02:00
Dan Cline
c0e607da1e
feat(providers): support personal account apis ( #2009 )
...
* feat(providers): add personal key mgmt rpcs
* add personal_importRawKey and personal_unlockAccount
* expose geth personal api
* do not prefix with 0x
* serialize privkey as string
* add allow-insecure-unlock option to Geth
2023-01-04 23:35:44 +02:00
Dan Cline
5f2476510b
feat(providers): add mining related apis ( #2008 )
...
* feat(providers): add miner_start endpoint
* add other mining related apis
* add eth_mining
* add miner_stop
* expose Geth miner rpc api
2023-01-04 23:30:03 +02:00
DaniPopes
4fd742f8ce
feat: windows ipc provider (named pipe) ( #1976 )
...
* fmt: imports
* fix: ipc tests
* fmt
* chore: move ws macros
* chore: gate ipc to unix family
* chore: make tokio optional
* feat: initial named_pipe
* feat: windows ipc
* chore: update Provider
* chore: clippy
* chore: use Path instead of OsStr
* chore: clippy
* fix: docs
* lf
* lf
* test: better subscription tests
* docs
* fix: ipc doctest
* chore: make winapi optional
* fix: optional tokio
2023-01-03 16:15:51 +02:00
DaniPopes
fd4da49121
tests: use sepolia ( #1989 )
...
* tests: use sepolia
* update ci
* update sleep duration
* deprecate ropsten
* use goerli
* fmt
* keys
2022-12-31 12:47:53 +02:00
DaniPopes
d272318483
chore: update all rust editions to 2021 ( #1979 )
2022-12-30 14:48:29 +02:00
dependabot[bot]
a42cc9f63f
chore(deps): bump once_cell from 1.16.0 to 1.17.0 ( #1987 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.16.0...v1.17.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 14:43:05 +02:00
James Prestwich
e26ede21f1
fix: don't override user-set 1559 attributes ( #1980 )
...
* fix: don't override user-set 1559 attributes
* fix: enforce cap on prioirity fee per gas
2022-12-29 03:05:08 +02:00
Vid Kersic
b27c7b0773
feat: debug_traceCall ( #1949 )
...
* feat: debug_traceCall
* chore: update changelog
* fix: rebase to master and change tracer from string to enum
2022-12-25 13:33:05 +02:00
Sebastiano Faiella
253202f96a
docs(ethers-providers): fixed typos in rw client docs ( #1957 )
2022-12-22 20:59:20 +02:00
dependabot[bot]
cd19d1a691
chore(deps): bump base64 from 0.13.1 to 0.20.0 ( #1935 )
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.13.1 to 0.20.0.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.13.1...v0.20.0 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-15 09:46:21 +02:00
Matthias Seitz
3dfc04f9fe
chore(clippy): make clippy happy ( #1923 )
2022-12-05 22:05:33 -08:00
Dan Cline
80d887b67e
docs: update MRSV to 1.64 ( #1926 )
...
* IntoFuture was implemented in #1826 , which means the MSRV should now
be 1.64
2022-12-05 22:04:48 -08:00
Matthias Seitz
f886d379a4
feat: add infura error code to retry detection ( #1921 )
2022-12-02 13:30:56 -08:00
James Prestwich
d6fea13d23
feature: providererror conversion to middleware error ( #1920 )
...
* feature: providererror conversion to middleware error
* chore: update changelog
2022-12-02 12:12:14 -08:00
Andrea Simeoni
c4e09f261e
Fix: handle panic on Ws error ( #1915 )
...
* On Ws error close all active subscriptions and force clients to reconnect. the Websocket.
* Comment typos
* Unit tests
Lint
cargo +nightly fmt
* - Added CHANGELOG entry
- Added `#` prefix to issue IDs where missing
* ownership typo
Co-authored-by: Andrea Simeoni <>
2022-12-01 11:00:10 -08:00
Dan Cline
4b685621ed
feat(providers): add a subset of admin namespace ( #1880 )
...
* tell Geth to expose the admin namespace
* wip: add admin namespace support
* add networking and peer related structs
* add rest of chain config fields
* add datadir to geth
* fix data dir ref
* add dev flag to geth
* set dev only if block_time is not set
* put mutually exclusive options in an enum
* make block_time use the devmode enum
* add p2p port to geth
* add basic impls for admin endpoints
* move from_int_or_hex to ethers-core utils
* fix nodeinfo protocol field
* the type is better represented by a struct which can have either eth
or snap
* add chain id and discovery toggle for Geth
* remove PeerEvent
* should re-add when peer event endpoints are implemented
* simplify serde options for admin responses
* change signature for peer modification apis
* these admin apis accept an enode, which _may_ be an enr, but could
also be a legacy enode "v4" url.
* add note on where `ChainConfig` fields come from
* add note on PeerInfo about the source of fields
* add admin namespace support to CHANGELOG
* update pr number in changelog
* cargo fmt
* move chainconfig to genesis in utils
* accept genesis file in geth
* add genesis writing to geth spawn
* finally get geth nodes to connect
* import io::Read in provider tests
* fix PeerInfo and use enode id for provider test
* make clippy happy
* improve documentation for genesis module
* remove not(wasm) attributes on genesis module
* remove debugging printlns
* remove io::Read from provider tests
* add failing post merge test case
* add full mainnet nodeinfo for testing
* support deserializing json bignums to U256
* the serde_json arbitrary_precision feature is necessary so the
serde_json::Number variant of `IntOrHexOrBigNum` can be converted
into a string and fed into U256::from_dec_string
* fix from_int_or_hex_opt doc string
* remove third variant from IntOrHex
* unnecessary since serde_json::Number handles smaller ints as well
* add comments for ids
* fix enode id type in admin_peers provider test
* fix admin typo in Cargo.toml
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
* add method to wait on a gethinstance adding a peer
* fix dial loop and wait_to_add_peer doc comments
* update geth
* the build can be updated by changing the GETH_BUILD env var
* wait for geth to exit on drop
* remove unnecessary wait
* fix mid-handshake PeerInfo deserialization
* remove println
* make tests less flaky
* handle discovery with the rest of the non dev opts
* dump geth stderr to debug failing ci test
* add method which dumps the unread stderr of the geth instance into a
string
* remove call_raw debug println
* bug is due to authrpc endpoint being in use
* use unused port when authrpc port is not specified
* remove dump_stderr from GethInstance
* did not work properly anyways
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-11-30 13:22:44 -08:00
dependabot[bot]
bbe53bfa2a
chore(deps): bump tokio-tungstenite from 0.17.2 to 0.18.0 ( #1908 )
...
Bumps [tokio-tungstenite](https://github.com/snapview/tokio-tungstenite ) from 0.17.2 to 0.18.0.
- [Release notes](https://github.com/snapview/tokio-tungstenite/releases )
- [Changelog](https://github.com/snapview/tokio-tungstenite/blob/master/CHANGELOG.md )
- [Commits](https://github.com/snapview/tokio-tungstenite/compare/v0.17.2...v0.18.0 )
---
updated-dependencies:
- dependency-name: tokio-tungstenite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 13:20:04 -08:00
Matthias Seitz
d48187ac0d
feat(provider): check for serde error with missing req id ( #1910 )
2022-11-29 07:48:58 -08:00
Georgios Konstantopoulos
8034fd0e91
(cargo-release) version 1.0.2
2022-11-27 12:27:56 -08:00
Noah Citron
fa0ce0c750
feat: retry client wasm support ( #1877 )
...
* wasm support for retry client
* fix conection err check
* fix lockfile
* remove unused comment
2022-11-22 13:16:23 -08:00
dependabot[bot]
6b5f130ba2
chore(deps): bump bytes from 1.2.1 to 1.3.0 ( #1879 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/commits )
---
updated-dependencies:
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-22 13:15:45 -08:00
Matthias Seitz
49dc487676
feat: add another rate limit retry check ( #1881 )
2022-11-22 13:08:04 -08:00
dependabot[bot]
0e51835a33
chore(deps): bump reqwest from 0.11.12 to 0.11.13 ( #1866 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.12 to 0.11.13.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.12...v0.11.13 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-16 20:40:09 -08:00
Noah Citron
921dfa6b1c
fix: better retry timing ( #1855 )
...
* fix retries
* increase default backoff to 1s
* remove comment
* fmt
2022-11-13 07:50:00 -05:00
Georgios Konstantopoulos
960d89fccc
Revert "fix: get_logs_paginated fetches past latest block ( #1818 )" ( #1845 )
...
This reverts commit eb40392399
.
2022-11-08 16:05:28 -08:00
dependabot[bot]
715cd5b0a6
chore(deps): bump once_cell from 1.15.0 to 1.16.0 ( #1817 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.15.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-07 15:45:36 -08:00