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
DaniPopes
debd6fec3d
chore: clippy ( #1812 )
...
* chore: clippy
* fmt
2022-11-07 15:43:11 -08:00
Roger So
eb40392399
fix: get_logs_paginated fetches past latest block ( #1818 )
2022-11-07 12:43:11 -08:00
Georgios Konstantopoulos
87b10bdf24
Revert "chore: disable dev deps for release"
...
This reverts commit d8a1be6fb1
.
2022-10-25 11:12:50 -07:00
Georgios Konstantopoulos
d8a1be6fb1
chore: disable dev deps for release
2022-10-25 11:04:28 -07:00
Georgios Konstantopoulos
aac5fab028
(cargo-release) version 1.0.0
2022-10-25 11:03:00 -07:00
Georgios Konstantopoulos
79024ebbe9
(cargo-release) version 1.0.0
2022-10-25 11:02:59 -07:00
dependabot[bot]
7439dea0bb
chore(deps): bump tracing from 0.1.36 to 0.1.37 ( #1766 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.36 to 0.1.37.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.36...tracing-0.1.37 )
---
updated-dependencies:
- dependency-name: tracing
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-10-07 10:03:01 -07:00
Matthias Seitz
0645f4502c
chore: replace rinkeby with goerli ( #1768 )
...
* chore: replace rinkeby with goerli
* ignore example
2022-10-07 08:58:32 -07:00
DaniPopes
5c762c44d7
fmt: all ( #1751 )
...
* fmt: all
* fmt: eol
2022-09-28 11:58:26 -07:00
dependabot[bot]
5bca54c41d
chore(deps): bump reqwest from 0.11.11 to 0.11.12 ( #1724 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.11 to 0.11.12.
- [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.11...v0.11.12 )
---
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-09-21 09:57:31 -07:00
dependabot[bot]
139b4ae818
chore(deps): bump once_cell from 1.14.0 to 1.15.0 ( #1725 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.14.0 to 1.15.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.14.0...v1.15.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-09-21 09:57:22 -07:00
DaniPopes
db75e3628e
feat(core): add utility methods to NameOrAddress ( #1720 )
...
* feat: NameOrAddress impls
* feat: add to_addr to TypedTransaction
* fix: use NameOrAddress for ens
* chore: clippy
* dont clone
2022-09-19 10:51:04 -07:00
DaniPopes
3926749213
docs: add MSRV ( #1712 )
2022-09-18 08:45:45 -07:00
Matthias Seitz
f208fb9cd3
feat: detect requested backoff ( #1711 )
2022-09-17 12:06:29 -07:00
Trevor Porter
c568fd3934
fix(providers): don't default to "latest" block ID for `eth_estimateGas` ( #1657 )
...
* Don't default to 'latest' block ID for eth_estimateGas
* Add changelog entry
* Amend comment
2022-09-16 11:23:34 -07:00
Matthias Seitz
9773a76dd4
feat: retry infura's header not found ( #1706 )
2022-09-15 16:51:57 -07:00
dependabot[bot]
4883d28e86
chore(deps): bump url from 2.3.0 to 2.3.1 ( #1680 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.3.0...v2.3.1 )
---
updated-dependencies:
- dependency-name: url
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-09-10 18:03:15 -07:00
dependabot[bot]
91d8c21b21
chore(deps): bump url from 2.2.2 to 2.3.0 ( #1678 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.2.2...v2.3.0 )
---
updated-dependencies:
- dependency-name: url
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-09-08 09:07:56 -07:00
dependabot[bot]
96cc8242ee
chore(deps): bump once_cell from 1.13.1 to 1.14.0 ( #1669 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.1 to 1.14.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.13.1...v1.14.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-09-05 09:55:30 -07:00
Matthias Seitz
6a86d4ff22
chore(clippy): make clippy happy ( #1659 )
2022-09-04 10:57:52 -07:00
Georgios Konstantopoulos
c8e9d46cfa
chore: fmt
2022-08-22 16:33:00 -07:00
Mattie Conover
8218c96205
fix(providers): QuorumProvider zero-parameter json Value handling ( #1613 )
...
* Correction to QuorumProvider json Value handling with zero-parameter cases
* Update to properly pass through when no parameters are specified
2022-08-22 16:32:47 -07:00
Matthias Seitz
10f74f818a
fix: handle provider error correctly ( #1630 )
...
* fix: handle provider error correctly
* chore(clippy): make clippy happy
* chore: rustfmt
* convert http error
2022-08-22 13:47:43 -07:00
Matthias Seitz
98174863c9
feat: support retrying connection errors ( #1629 )
2022-08-22 09:47:26 -07:00
Matthias Seitz
da8c70ab7f
chore: add some traces ( #1622 )
...
* chore: add some traces
* Update ethers-providers/src/transports/ws.rs
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-08-20 15:32:10 -07:00
Matthias Seitz
8abb9d86e2
fix: extend eth_syncing response type and serde ( #1624 )
2022-08-20 15:30:53 -07:00
Nicolas Gotchac
68fba606c2
Don't auto-generate an AccessList when sending/filling a tx ( #1619 )
...
Add an optionnal `block` parameter to the gas estimation method
2022-08-19 14:33:12 -07:00
Remco Bloemen
afb6808ddb
Export LogQueryError ( #1615 )
2022-08-19 08:18:26 -07:00
dependabot[bot]
4655c44481
chore(deps): bump once_cell from 1.13.0 to 1.13.1 ( #1606 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.0 to 1.13.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.13.0...v1.13.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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 14:13:59 -07:00
joshieDo
d22ab5de0a
fix(providers): validate address resolver ( #1605 )
...
* validate address resolver
* use Selector type instead
* specify which ens_name on resolver error
* pad supportsInterface argument
2022-08-17 14:13:51 -07:00
Matthias Seitz
3040edf2ad
feat: add ProviderExt trait ( #1559 )
2022-08-03 09:21:55 -07:00
joshieDo
8026904c3d
take provider interval on PendingTransaction ( #1558 )
2022-08-03 09:19:10 -07:00
Matthias Seitz
555cbb16e6
feat(provider): expose url for http ( #1550 )
2022-08-02 12:35:28 -07:00
Matthias Seitz
e2754dee4f
feat: add set_interval helper function ( #1551 )
2022-08-02 12:14:03 -07:00
dependabot[bot]
140b90d9b4
chore(deps): bump bytes from 1.2.0 to 1.2.1 ( #1542 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.2.0 to 1.2.1.
- [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-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-31 21:14:44 -07:00
dependabot[bot]
aa213a58ee
chore(deps): bump tracing from 0.1.35 to 0.1.36 ( #1543 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.35 to 0.1.36.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.35...tracing-0.1.36 )
---
updated-dependencies:
- dependency-name: tracing
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>
2022-07-31 21:14:35 -07:00