Georgios Konstantopoulos
beffe32f15
fix: feature-gate TestProvider.ws fn
2022-03-13 11:29:11 -07:00
Georgios Konstantopoulos
4f37287859
feat: rotate infura keys for ws
2022-03-13 10:11:27 -07:00
Georgios Konstantopoulos
ae125bcfc7
feat: rotating infura keys ( #1017 )
...
* feat: add providers which rotate api keys
* test: use rotating key in provider instead of hardcoded
* chore: fmt
2022-03-13 09:04:09 -07:00
oblique
367f3444ec
fix: Export `ethers_providers::IpcError` and `ethers_providers::QuorumError` ( #1012 )
2022-03-13 13:58:29 +02:00
th4s
b05136e173
Fix websocket connection request ( #1005 )
...
In tungstenite 0.17 a change was introduced considering the logic of
`IntoClientRequest`. When using this trait on a `HttpRequest` it just
uses the request without any changes to inititate the websocket
connection.
This makes it necessary for the consumer of the api to supply the
correct http headers for initiating a websocket connection when using
`IntoClientRequest` on `HttpRequest`.
This commit adapts the logic in `connect_with_auth` to this new
behavior.
2022-03-10 13:36:42 -08:00
dependabot[bot]
37c25df5a5
chore(deps): bump tracing from 0.1.31 to 0.1.32 ( #1001 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.31 to 0.1.32.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.31...tracing-0.1.32 )
---
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-03-10 06:41:10 -08:00
Simon Bihel
1641be7395
Enforce commutativity of reverse resolution ( #996 )
...
As specified in https://docs.ens.domains/dapp-developer-guide/resolving-names#reverse-resolution
2022-03-08 06:45:45 -08:00
wolflo
a1accbf6ac
fix(providers): Propogate gas limit with access list ( #901 )
...
* fix(providers): Propogate gas price with access list
* Update CHANGELOG.md
* Fix clippy lint
* Clarify fill_transaction comments
* Fill tx gas price before gas limit
Updates Provider::fill_transaction() to fill the gas price of a
transaction before filling the gas limit. There are cases where the gas
used by a transaction may be dependent on the gas price. For example,
the following contract bytecode branches based on the result of the GASPRICE
opcode:
GASPRICE PUSH1 0xff GT PUSH1 {label} JUMPI
* Cleanup
* Propogate eth_estimateGas failure
2022-03-01 14:13:06 +02:00
dependabot[bot]
a6999f377e
chore(deps): bump tokio-tungstenite from 0.16.1 to 0.17.1 ( #945 )
...
* chore(deps): bump tokio-tungstenite from 0.16.1 to 0.17.1
Bumps [tokio-tungstenite](https://github.com/snapview/tokio-tungstenite ) from 0.16.1 to 0.17.1.
- [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.16.1...v0.17.1 )
---
updated-dependencies:
- dependency-name: tokio-tungstenite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix: no-op raw websocket frames
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-02-28 10:40:42 +02:00
Meet Mangukiya
133c32d64a
feat(ethers-providers): expose pending tx_hash with a getter ( #968 )
2022-02-26 16:36:29 +02:00
joshieDo
7afde0ca0a
handle case where the data from the resolver is empty ( #963 )
...
* handle case where the data from the resolver is empty
* is_empty instead of 0 comparison
2022-02-24 18:42:32 +02:00
dependabot[bot]
a7fabb114d
chore(deps): bump tracing from 0.1.30 to 0.1.31 ( #923 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.30 to 0.1.31.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.30...tracing-0.1.31 )
---
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-02-18 15:37:52 +02:00
Nicolas Trippar
f9f466ef07
change visibility of the function request in Provider<JsonRpcClient> to public so one can implement Middleware's with custom call to the node ( #919 )
2022-02-17 14:30:03 +02:00
Simon Bihel
cd8a9b5a97
Add ENS avatar and TXT records resolution ( #889 )
...
* Add ENS avatar resolution
As well as arbitrary fields.
* Use try_join
* Improve reqwest's error passing
* Split avatar resolution in ERC token parsing and resolution
* no_run examples
* Rename token to NFT
* A bit more documentation
* Nightly cargo fmt
* Use different ERC-721 test
* Update CHANGELOG
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-02-16 16:25:41 +02:00
dependabot[bot]
903edab7bf
chore(deps): bump tokio-util from 0.6.9 to 0.7.0 ( #895 )
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.6.9 to 0.7.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/commits )
---
updated-dependencies:
- dependency-name: tokio-util
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>
2022-02-11 13:12:20 +02:00
wolflo
14551a90c1
fix(providers): PendingTransaction::log() missing deref ( #886 )
2022-02-09 08:48:03 +02:00
wolflo
b657e47e6b
feat(providers): Log methods for PendingTransaction ( #884 )
...
* feat(providers): Log method for PendingTransaction
* feat(poviders): Add PendingTransaction inspect() method
* Apply suggestions from code review
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-02-09 00:55:35 +02:00
MistApproach
5005a3621a
Hide Infura API key from docs ( #863 )
2022-02-04 16:58:53 +02:00
dependabot[bot]
8d0d5a2d9a
chore(deps): bump tracing from 0.1.29 to 0.1.30 ( #862 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.29 to 0.1.30.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.29...tracing-0.1.30 )
---
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-02-04 10:09:02 +02:00
wolflo
885aa9c967
fix(providers): doc test for dev_rpc ( #857 )
2022-02-02 19:20:01 +02:00
rakita
24e7c471e4
add eth_syncing RPC ( #848 )
...
* add eth_syncing RPC
* Changelo updated
* small comments
* Intermediate SyncingStatus
2022-02-01 12:58:45 +02:00
Dan Cline
01544ec4b7
Implement RLP decoding for transactions ( #805 )
...
* Implement RLP decoding for transactions
* set chain_id in fill_transaction
2022-01-30 21:21:16 +02:00
Tarrence van As
9e6ed0522a
fix(ethers-providers): make http crate required ( #836 )
2022-01-28 08:51:13 +02:00
th4s
a97526d6fe
Add authorization for http and websocket ( #829 )
...
* Added basic and bearer authentication for http and websocket transport
* Improved api for websocket `connect_with_auth`
* Bugfix in doc
* Moved use statement into non-wasm imports
* Adapted changelog
* Fixed doc test
* Added constructors for Authorization
* Improved code quality and implemented feedback
* Made bas64 crate for basic auth encoding non-optional
* Added `Display` for `Authorization` instead of `into_auth_string`
2022-01-27 12:04:53 +02:00
Georgios Konstantopoulos
78dfd7591d
chore: remove broken celo test
...
the error was on the alfajores testnet:
'missing trie node c04caafad74d59d8ca27dbbbc49e257d4f4d490bbe40534691dbb101618e2e87'
unclear why this is happening, but tx validation for celo is working otherwise
2022-01-24 19:40:46 +02:00
Erwan
f9f77e829b
fix(ws): propagate deserialization errors upstream + infura quickfix ( #827 )
...
* fix(ws): propagate error when deserialization fails
* fix(ws): tolerate case-insensitive match on the jsonrpc field
Infura streams notifications with jsonrpc all capitalized. This fails to
deserialize on our end because serde expect a precise match ressembling
the Notification jsonrpc field.
Fixes #684 .
* chore(fmt): use nightly rustfmt
* chore: fmt
* chore: fix failing celo test
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-01-24 15:38:00 +02:00
Georgios Konstantopoulos
a30a4ecd16
test(providers): use new celo txhash which has not been wiped
2022-01-16 22:18:25 +02:00
Matthias Seitz
d2318d285d
chore(deps): bump solang ( #796 )
...
* chore(deps): bump solang
* fix: breaking test
2022-01-15 17:53:46 +02:00
Eugene
cbfbd6052c
Implement trace_callMany ( #792 )
...
* Implement trace_callMany
* cargo fix and ignore flaky test for now
* Update ethers-providers/src/provider.rs
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-01-15 12:41:43 +02:00
Matthias Seitz
d2b59d7097
chore: silence unused ws macro ( #788 )
2022-01-13 02:59:02 +02:00
dependabot[bot]
c95c12e0d1
chore(deps): bump tempfile from 3.2.0 to 3.3.0 ( #780 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases )
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.2.0...v3.3.0 )
---
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>
2022-01-11 12:03:09 +02:00
dependabot[bot]
e3c86231de
chore(deps): bump reqwest from 0.11.8 to 0.11.9 ( #785 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.8 to 0.11.9.
- [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.8...v0.11.9 )
---
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>
2022-01-11 11:18:03 +02:00
georgewhewell
bb0cd7acdd
mark TransactionFut as Send ( #723 )
...
* mark TransactionFut as Send
* no send when wasm32
2021-12-23 16:29:51 +02:00
Georgios Konstantopoulos
d7c29cc615
fix: configure rustls & openssl via feature flag ( #703 )
...
* chore(etherscan): allow specifying openssl or rustls
* chore(contract): allow specifying openssl or rustls
* chore(solc): allow specifying openssl or rustls
* chore: expose new rustls/openssl features at top level crate
* chore: bump tokio-tungstenite / remove dup rustls version
* chore: bump svm-rs
* fix: feature gate sha2-asm
* ci: remove --all-features from windows tests
* chore: do not enable sha2-asm by default
* fix: do not pull in svm-rs in wasm builds
* chore: use upstream svm again
2021-12-19 16:56:54 +02:00
Matthias Seitz
e24117a1e1
chore(clippy): make clippy happy ( #705 )
2021-12-19 06:28:38 +02:00
James Prestwich
060dd6033d
refactor: move fill_transaction impl to provider rather than default ( #697 )
...
* refactor: move fill_transaction impl to provider rather than default
* chore: changelog and docstring for fill_transaction
2021-12-16 01:09:09 +02:00
Alex Xiong
6cbdc89187
fix: avoid futures-util yanked err ( #693 )
2021-12-15 03:32:36 +01:00
James Prestwich
3338cdead1
feature: set nonce in fill transaction ( #687 )
...
* feature: set nonce in fill transaction
* chore: update changelog
* refactor: remove nonce_setting in fill_transaction
* refactor: set nonce in send_escalating
2021-12-14 00:50:13 +02:00
James Prestwich
47e9e7d3c7
refactor: move FeeHistory to core types ( #688 )
2021-12-14 00:49:49 +02:00
Matthias Seitz
f4c89c6cb1
ci: test on windows targets ( #682 )
...
* ci: test on windows targets
* make ipc optional
* fix: only activate ipc on unix families
* add cfg
* only check default members
* no parallel limits
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-12-13 23:25:10 +02:00
Nicholas Rodrigues Lordello
79f2e1d5ef
Serialize block count as quantity 2 ( #669 )
...
* Serialize eth_feeHistory block count as QUANTITY
* update changelog
* Make sure to first convert to U256 :face_palm:
* Fix issue with move of `block_count` value.
* fix merge issue
* Revert changelog
2021-12-10 09:16:20 -07:00
Nicholas Rodrigues Lordello
7bd42be0d8
Serialize `eth_feeHistory` block count as `QUANTITY` ( #668 )
...
* Serialize eth_feeHistory block count as QUANTITY
* update changelog
2021-12-10 08:49:27 -07:00
Daniil Naumetc
fffb965f2f
fix: nonce too low for different providers ( #655 )
2021-12-07 01:15:51 +02:00
guanqun
8d07610e4a
fix(provider::ws): ignore the websocket response when the request has been cancelled. ( #641 )
2021-12-03 20:14:13 +02:00
Daniil Naumetc
9fc75ef245
Fix handling of `nonce too low` error ( #643 )
...
* fix: nonce too low from error as debug
* chore: cargo fmt
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-12-03 20:08:53 +02:00
wolflo
bccc7b9b5e
Add dev-rpc middleware ( #640 )
...
* Add dev-rpc middleware
* Dont run dev-rpc tests with celo
* providers: clean up match statement
* providers: fix clippy lint
* doc(providers) doctest and changelog for DevRpcMiddleware
2021-12-03 19:11:09 +02:00
dependabot[bot]
9214bacc03
chore(deps): bump reqwest from 0.11.6 to 0.11.7 ( #636 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.6 to 0.11.7.
- [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.6...v0.11.7 )
---
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>
2021-12-01 04:28:56 -06:00
Georgios Konstantopoulos
bb3a2fd27c
release: 0.6.0 ( #611 )
...
* release(core): 0.6.0
* release(providers): 0.6.0
* release(contract-abigen): 0.6.0
* release(contract-derive): 0.6.0
* release(derive-eip712): 0.2.0
* release(ethers-solc): 0.1.0
* release(contract): 0.6.0
* release(etherscan): 0.2.0
* release(signers): 0.6.0
* release(middleware): 0.6.0
* chore: update dev deps
* refactor(core): move docs to readme
* refactor(contract): move docs to readme
* refactor(providers): move docs to readme
* chore: bump ethers cargo toml
* refactor(signers): move docs to readme
* refactor(middleware): move docs to readme
* fix(ethers): adjust re-exports to allow searching internal packages
* docs: fix broken links
we cannot use relative crate imports because the readmes
are also imported by the parent crate
* alias readmes to be accessible to ethers crate
2021-11-23 21:23:12 +02:00
dependabot[bot]
fb42f043a2
chore(deps): bump futures-util from 0.3.17 to 0.3.18 ( #609 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18 )
---
updated-dependencies:
- dependency-name: futures-util
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>
2021-11-23 13:23:53 +02:00
univerz
ec00325aa2
revert: unify get_block_receipts for eth/parity RPCs ( #601 )
2021-11-21 18:14:35 +02:00
Georgios Konstantopoulos
a28476dccc
fix: lowercase node client type ( #600 )
2021-11-21 18:12:40 +02:00
Rohit Narurkar
ab60a5e738
add net_version call ( #595 )
...
* add net_version call
* add change log
2021-11-18 20:56:31 +02:00
Eduard S
8493451917
Fix/providers ( #590 )
...
* ethers-providers: Fix http Provider request id data race
* ethers-providers: Remove Serialize from JsonRpcClient Response
* Update changelog
2021-11-18 11:59:29 +02:00
James Prestwich
0f22afeb49
Prestwich/escalator fixes ( #581 )
...
* refactor: handle nonce-too-low cases indicating previous conf.
* feature: add sign_transaction to Middleware trait and fix escalation signing
2021-11-14 14:26:02 +02:00
James Prestwich
203b2e8ea3
Prestwich/super pending ( #566 )
...
* feature: pending_escalator
* feature: send_escalating in Middleware
* bug: don't drop unready futures in escalator.poll
* chore: docs and must_use
* chores: lints, clippies, wasm fixes, dedup pinboxfut
* chore: more lints
* refactor: use Delay in polling interval to ensure re-waking
* refactor: simplify Sleeping state transition as last will never be None again
* bug: properly set last when broadcasts resolve
* feature: debug implementation for EscalatingPending
* refactor: with_ setters and escalations argument
* refactor: use FuturesUnOrdered instead of a vec of futures
* chore: update CHANGELOG with recent PR info
* chore: update all comments on pending escalator
* chore: run rustfmt
2021-11-12 03:23:46 +02:00
James Prestwich
e9d40120a7
chore: re-export http client error in providers transports ( #570 )
...
* chore: re-export http client error in providers transports
* chore: re-export we client error in providers transports
2021-11-10 18:53:07 +02:00
dependabot[bot]
7ad4d28ae3
chore(deps): bump auto_impl from 0.4.1 to 0.5.0 ( #564 )
...
Bumps [auto_impl](https://github.com/auto-impl-rs/auto_impl ) from 0.4.1 to 0.5.0.
- [Release notes](https://github.com/auto-impl-rs/auto_impl/releases )
- [Commits](https://github.com/auto-impl-rs/auto_impl/compare/v0.4.1...v0.5.0 )
---
updated-dependencies:
- dependency-name: auto_impl
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>
2021-11-08 09:43:55 +00:00
Matthias Seitz
c08f8ba876
fix: failing test and check --all-targets in ci ( #560 )
...
* fix: update failing example
* ci: check all targets
2021-11-05 19:58:03 +02:00
Matthias Seitz
6bf45a0b5d
fix: send error back ( #556 )
2021-11-05 03:21:23 +02:00
dependabot[bot]
2c8a425898
chore(deps): bump tokio-util from 0.6.8 to 0.6.9 ( #549 )
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.6.8 to 0.6.9.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.6.8...tokio-util-0.6.9 )
---
updated-dependencies:
- dependency-name: tokio-util
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>
2021-11-01 13:00:48 +02:00
Alexey Shekhirin
dc3ac427f4
feat(providers): unify get_block_receipts for eth/parity RPCs ( #541 )
...
* feat(providers): unify get_block_receipts for eth/parity RPCs
* add besu
* impl tryfrom for nodeclient
* better node client storage
* fix lint
* tryfrom<&str> -> fromstr
* fix: remove nested Option
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-10-30 16:50:46 +03:00
Matthias Seitz
dcf20022c6
chore: add rustfmt.toml ( #537 )
...
* chore: add rustfmt.toml
* rustfmt
* chore: Update readme with fmt info
* ci: update ci
* chore: rustfmt
* rustfmt
* rustfmt
* ci: install libudev
* chore(clippy): make clippy happy
* chore(clippy): make clippy happy
* revert ci
* ci: install libudev
2021-10-29 14:29:35 +02:00
Georgios Konstantopoulos
ef9b3988ce
fix: ensure gas estimation includes the access list in 1559/2930 txs ( #523 )
...
* fix: ensure gas estimation includes the access list in 1559/2930 txs
* feat: add gas_price to typed tx
* feat: add access list to typed tx
* chore(providers): cleanup fill_transaction
* chore: fmt
* chore: enable 712 on ethers-contract at top level crate
* fix: do not error if eth_createAccessList is not available
* feat: only use access list if needed
2021-10-20 23:18:58 +03:00
dependabot[bot]
1d2ed0d964
chore(deps): bump reqwest from 0.11.5 to 0.11.6 ( #521 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.5 to 0.11.6.
- [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.5...v0.11.6 )
---
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>
2021-10-19 08:23:48 +03:00
dependabot[bot]
6d9b300b86
chore(deps): bump thiserror from 1.0.29 to 1.0.30 ( #500 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.29 to 1.0.30.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.29...1.0.30 )
---
updated-dependencies:
- dependency-name: thiserror
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>
2021-10-11 15:42:55 +03:00
dependabot[bot]
06eb8f223c
chore(deps): bump reqwest from 0.11.4 to 0.11.5 ( #490 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.4 to 0.11.5.
- [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.4...v0.11.5 )
---
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>
2021-10-08 15:15:41 +01:00
dependabot[bot]
b93cc4af75
chore(deps): bump tracing from 0.1.28 to 0.1.29 ( #488 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.28 to 0.1.29.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.28...tracing-0.1.29 )
---
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>
2021-10-06 16:58:23 +01:00
Georgios Konstantopoulos
8574e6a376
release: 0.5.3 ( #471 )
...
* release: version 0.5.3
* chore: update changelog
2021-09-27 13:20:10 +03:00
dependabot[bot]
a737f56fac
chore(deps): bump tracing from 0.1.27 to 0.1.28 ( #461 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.27 to 0.1.28.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.27...tracing-0.1.28 )
---
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>
2021-09-20 09:56:10 -05:00
Georgios Konstantopoulos
10843a774e
chore: cargo fmt
2021-09-18 01:01:40 -05:00
drewstone
83e953bc2f
Add getProof to provider ( #459 )
...
* Add getProof to provider
* Format updates
* Add docs
* Remove fill_tx method, not sure how it got there
* Fix removed Trace type
* Remove test, eth_getProof not supported by ganache
2021-09-18 01:01:02 -05:00
Georgios Konstantopoulos
79bf896a2c
test: fix duplicate tx flakes by rotating through a list of wallets ( #451 )
...
* test: fix duplicate tx flakes by rotating through a list of wallets
* fix: make typed_txs test more robust
* fix: ensure wallets are loaded in a thread-safe way
without fetch_add, it's possible that 2 loads happen for the same id before the `store` mutex is acquired'
2021-09-14 16:40:15 +03:00
dependabot[bot]
86cfd9e472
chore(deps): bump tracing from 0.1.26 to 0.1.27 ( #449 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.26 to 0.1.27.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.26...tracing-0.1.27 )
---
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>
2021-09-14 14:21:48 +03:00
Alexis Sellier
2e195d91e1
Make 'ens' module public ( #435 )
2021-09-06 11:52:44 +03:00
dependabot[bot]
6a938158b6
chore(deps): bump thiserror from 1.0.28 to 1.0.29 ( #433 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.28 to 1.0.29.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.28...1.0.29 )
---
updated-dependencies:
- dependency-name: thiserror
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>
2021-09-06 11:33:01 +03:00
dependabot[bot]
c568aa62ae
chore(deps): bump tokio-util from 0.6.7 to 0.6.8 ( #434 )
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.6.7 to 0.6.8.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/commits )
---
updated-dependencies:
- dependency-name: tokio-util
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>
2021-09-06 11:32:53 +03:00
dependabot[bot]
4128363f3c
chore(deps): bump thiserror from 1.0.26 to 1.0.28 ( #419 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.26 to 1.0.28.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.26...1.0.28 )
---
updated-dependencies:
- dependency-name: thiserror
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>
2021-08-31 13:55:22 +03:00
Georgios Konstantopoulos
9aea456609
(cargo-release) version 0.5.2
2021-08-31 13:41:51 +03:00
dependabot[bot]
404e9c2416
chore(deps): bump futures-util from 0.3.16 to 0.3.17 ( #423 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.16 to 0.3.17.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.16...0.3.17 )
---
updated-dependencies:
- dependency-name: futures-util
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>
2021-08-31 08:48:24 +03:00
Georgios Konstantopoulos
b5909d05b0
ci: run examples in CI ( #421 )
...
* ci: run examples in CI
* fix(ens): set the resolved ens addr for gas estimation
* fix(contract-examples): use legacy sends with ganache
* fix(ens-example): ensure test runs when forking from mainnet
* fix(watch-blocks-example): run our own provider with preset blocktime
2021-08-30 14:00:30 +03:00
Matthias Seitz
824bedbd42
feat: add quorum provider ( #409 )
...
* feat: add quorum provider
* feat: add quorum provider example
* fix: make compile with wasm32
* feat: normalize requests with block height
* fix: lowercase eth_call
* chore: fix doctest
* chore: remove Sync/Send requirement
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-08-29 14:03:53 +03:00
Georgios Konstantopoulos
9df4d21d3b
(cargo-release) version 0.5.1 ( #414 )
2021-08-29 02:53:10 +03:00
Georgios Konstantopoulos
38c7f5030f
chore: remove cyclical dependencies ( #410 )
...
* chore(core): remove ethers dep
* chore(providers): remove ethers dep
tests using higher-rank crates are temporarily disabled
* chore(middleware): remove ethers dep and move tests over from providers
* chore(signers): remove ethers dep
* fix(contracts): correctly determine ethers sub-crates & remove ethers
* fix: re-enable tests for all members
* fix: make contract compile without middleware dep
move over the test using middleware to ethers-middleware
* chore: cargo fmt
* chore(contract): add missing import
* WIP
* WIP
* fix(middleware): use rustls as dev dep
* chore: cargo fmt
* fix: use different key for nonce manager to avoid nonce conflicts
* chore: fix celo test ported over to middlewares
the test had the same private key with an existing middleware test,
causing potential nonce reuses
it now also uses a different storage contract, so we had to change
it to use u256 instead of string
* fix(middleware): enable contracts/celo feature
* chore: ignore non-eip2718 txs to rinkeby
2021-08-29 00:06:29 +03:00
dependabot[bot]
38175c4b1a
chore(deps): bump bytes from 1.0.1 to 1.1.0 ( #407 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.0.1 to 1.1.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.0.1...v1.1.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>
2021-08-26 11:29:52 +03:00
Matthias Seitz
d35444cc49
feat: add wasm http provider support ( #403 )
...
* fix: use on wasm only
* feat: enable http provider in wasm
* add http example
* chore: add more verbosity to example
* fix: double webpack issue
* use mnemonic builder
2021-08-24 01:28:05 +03:00
Matthias Seitz
e6cd74cf1f
fix: add send + unpin to stream type ( #402 )
2021-08-23 17:55:36 +03:00
Matthias Seitz
ea566663d4
feat: wasm support ( #390 )
...
* feat: partial wasm32 support
* make compile for wasm32
* feat: att async-trait attr
* make compatible with wasm
* add type alias for archs
* rustfmt
* add wasm ci
* make compile with wasm-pack test
* make compile with wasm-pack test
* make compile with wasm-pack test
* make compile with wasm-pack test
* ci: disable wasmpack
* feat: use wasm timer delay
* feat: add wasm provider
* rustfmt
* misc refactor
* add wasm example
* make example a directory
* untrack error log
* move profile to root
* fix unused imports
* ci: enable wasm-pack test
* style: unify websocket implementations
* fix: typos
* fix: make policy compatible with wasm target
* chore: do not include ethers-wasm example as top level workspace member
* chore: modify wasm32 dependencies
* chore: make note about getrandom
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-08-23 12:56:44 +03:00
Matthias Seitz
bfbbee50cf
fix: drop WS server if work complete ( #399 )
...
* fix: drop WS server if work complete
* fix: remove closed subscriptions
* fix: handle error correctly
* style: better notification handling
2021-08-22 18:47:44 +03:00
Georgios Konstantopoulos
8891ed38b4
chore: pull ethers to top level directory ( #398 )
...
* chore: pull up ethers to top level directory
* chore: enable ws feature when running examples
* chore: fix paths
* chore: enable ipc feature when running examples
2021-08-21 15:34:21 +03:00
James Prestwich
e790429355
Refactor WS handling code ( #397 )
...
* refactor: simplify handle_text message
* refactor: rename 'TransportMessage' to 'Instruction'
* nit: update docstring on tick method
* refactor: rename dispatch to service
* nit: rename WsServer.requests to WsServer.instructions for consistency
* refactor: simplify handle_text, remove unwrap
* nit: fix misspelled comment
2021-08-20 20:23:39 +03:00
James Prestwich
0eee674ba0
feature: drop WS server on when WS connection closes ( #396 )
...
* feature: drop WS server on when WS connection closes
* feature: ready function on WS
* feature: ws now handles all message types
* bug: SubscriptionStream ends if its sender drops
2021-08-20 19:58:13 +03:00
Rohit Narurkar
ab0e3ca0d6
fix: backwards compatibility for eth_feeHistory ( #395 )
...
* fix: backwards compatibility for eth_feeHistor
* fix: convenience for calling the fee_history method
2021-08-19 19:44:15 +03:00
Alex Lee
f6412f87d7
add uncle related missing api ( #385 )
...
Co-authored-by: Alex <flashlee2@qq.com>
2021-08-19 17:04:11 +03:00
Rohit Narurkar
ad779c867f
feat: fee estimation with custom/default fn ( #369 )
...
* feat: fee estimation with custom/default fn
* fix: clippy and percentage calc fix
* calculate priority fee only if base fee above threshold
* chore: some comments
* fix: use legacy tx for ganache
* test: test a few cases for fee estimation using utils
2021-08-19 17:01:40 +03:00
Georgios Konstantopoulos
6cb7cac675
Release: 0.4 ( #382 )
...
* fix(abigen): use `no_deps` to avoid touching a Cargo.lock
* fix: use once_cell default features
* release: publish versions
core/providers/signers: 0.4.6
contract: 0.4.7
middleware: 0.4.8
ethers: 0.4.0
2021-08-16 11:54:12 +03:00
Georgios Konstantopoulos
453504cb78
chore: remove default feature on futures-util from all crates
2021-08-15 20:25:11 +03:00
Georgios Konstantopoulos
99e9a687ca
fix: make gasPrice optional (since Type 2 transactions) ( #374 )
...
* fix: make gasPrice optional (since Type 2 transactions)
* chore: use new pkey for testnet txs to avoid nonce conflicts
2021-08-12 19:01:52 +03:00
Georgios Konstantopoulos
25c2e0e199
feat(ethers-contract): typed txs (part 4) ( #362 )
...
* feat(contract): use eip-1559 txs by default
This may break any tests which use Ganache, since it only supports legacy transactions.
We should replace Ganache with hardhat where possible
* fix(providers): always try setting default_sender
* chore: make all test transactions legacy
* feat(multicall): allow submitting legacy txs
* chore: default to legacy txs via feature flag
This is useful for chains like Celo that do not support the Typed Envelope
* fix: use legacy txs in ds proxy deployment / tests
* chore: fix review comments
2021-08-09 03:50:38 +03:00
Georgios Konstantopoulos
dcbfacf5bc
feat: typed txs provider / middleware changes (part 3) ( #357 )
...
* feat(providers): add eth_feeHistory api
* add access list
* feat: fill transactions with access list / default sender info
* feat: add helpers for operating on the txs enum
* feat: send_transaction takes TypedTransaction now
* fix(contract): temp wrap all contract txs as Legacy txs
* feat(middleware): use TypedTransaction in Transformer
* feat(signers): use TypedTransaction in Wallet/Ledger
* feat(core): add helpers for setting typed tx fields
* feat(signer): use typed transactions
* fix(middleware): adjust nonce/gas/escalators for TypedTxs
The GPO and the Escalators will throw an error if they are provided an EIP1559 transaction
* fix(providers): ensure the correct account's nonce is filled
* fix: add .into() to txs until we make the fn call more generic
* Revert "fix: add .into() to txs until we make the fn call more generic"
This reverts commit 04dc34b26d0e3f418ed3fc69ea35ad538b83dd50.
* feat: generalize send_transaction interface
* fix: only set the nonce manually in the Signer middleware
* fix(transformer): fill the transaction after transformation
* chore: fix compilation errors & lints
* fix(signer): set the correct account's nonce
* feat: make trace_call / call take TypedTransaction
* fix: set sender to transaction in signer
* chore: ethgasstation broke
* chore: cargo fmt / lints
* Fix(signer): pass the chain id
* fix: final tx encoding fixes
1. Normalize v values for eip1559/2730
2. Make access lists mandatory for 1559
3. do not double-rlp on rlp_signed
* fix: set access list only if available
* test: check 1559 / 2930 txs
* fix: do not prepend a 0 for Legacy txs & test
* chore: code review comments
* chore: fix aws signer signature
2021-08-09 03:31:11 +03:00
Georgios Konstantopoulos
09ff480f19
feat: eip2930/1559 response type adjustments (part 1) ( #353 )
...
* refactor: move tx types to subdirectory
* feat(receipt): add tx-type and effective gas price for eip1559
* feat: add base_fee_per_gas to Block
* feat(tx): add eip1559/2930/2718 ret values
* fix(middleware): return signed raw rlp from tx signer / adjust tests
* chore: remove unused vars
* chore(core): remove funty lock from Cargo.toml
* chore: rename json var / cargo fmt
* add more context on eip1559 fees
2021-08-09 01:49:23 +03:00
Eric Zhang
f165c13009
feat: add support for `eth_getBlockReceipts` ( #365 )
...
* feat: add support for `eth_getBlockReceipts`
* Add comment to the `get_block_receipts` function
* Add `client_version()` function
* Refactor `Provider` into a proper struct
2021-08-09 00:10:40 +03:00
Georgios Konstantopoulos
9dca606eaf
fix: make chain_id mandatory ( #286 )
...
* chore: update deps (#352 )
* chore(deps): bump elliptic-curve from 0.10.4 to 0.10.5
Bumps [elliptic-curve](https://github.com/RustCrypto/traits ) from 0.10.4 to 0.10.5.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/elliptic-curve-v0.10.4...elliptic-curve-v0.10.5 )
---
updated-dependencies:
- dependency-name: elliptic-curve
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: bump deps
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(core): make chain id mandatory
* fix(signers): make chain id mandatory
* test: make chain id mandatory
* test: add missing chain id
* fix: add missing chain id
* chore(wallet): set chain_id by default to 1
* ci: run CI on master
* fix(yubi): add missing chain id
* chore: skip ganache test with celo features
* ci: run only on push to master
* fix: add missing chain id
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-29 23:22:25 +03:00
dependabot[bot]
cf1a4136e4
chore(deps): bump tokio-tungstenite from 0.14.0 to 0.15.0 ( #338 )
...
Bumps [tokio-tungstenite](https://github.com/snapview/tokio-tungstenite ) from 0.14.0 to 0.15.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.14.0...v0.15.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-26 11:25:45 +03:00
dependabot[bot]
faeec7d316
chore(deps): bump futures-util from 0.3.15 to 0.3.16 ( #348 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.15 to 0.3.16.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.15...0.3.16 )
---
updated-dependencies:
- dependency-name: futures-util
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>
2021-07-26 11:23:34 +03:00
Matthias Seitz
ed83223b93
cargo clippy --fix ( #346 )
2021-07-24 21:53:40 +03:00
James Prestwich
d31d19c3b7
feature: initial delay in PendingTransaction ( #339 )
...
* feature: initial delay in PendingTransaction
* bug: missing wake and add tracing::debug
* chore: fmt
* feature: set initial delay from PendingTransaction interval
2021-07-13 22:34:11 +03:00
Zaki Manian
371b7d1576
Update crypto deps for ethers ( #333 )
...
* Update crypto deps for ethers
* Update version 0.4.0
* Missed a version
* Fix internal version dependencies
* chore: use published eth-keystore-rs
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-07-07 20:18:14 +03:00
James Prestwich
d722c1a6af
feature: PendingTransaction returns Option ( #327 )
...
* feature: PendingTransaction returns Option
* chore: expand safety reasoning in pending tx expect
* chore: clippy lints
* bug: check readiness of future before taking receipt option
2021-07-06 11:06:18 +03:00
Georgios Konstantopoulos
dd98a593e2
feat: allow using native-tls or rustls ( #330 )
2021-07-05 14:32:17 +03:00
dependabot[bot]
3234942d87
chore(deps): bump futures-util from 0.3.14 to 0.3.15 ( #290 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.14 to 0.3.15.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.14...0.3.15 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-05 14:20:58 +03:00
dependabot[bot]
60647fd527
chore(deps): bump url from 2.2.1 to 2.2.2 ( #289 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.2.1...v2.2.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-05 14:20:51 +03:00
dependabot[bot]
3bed0a57c6
chore(deps): bump tracing from 0.1.25 to 0.1.26 ( #284 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.25 to 0.1.26.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.25...tracing-0.1.26 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-05 14:15:57 +03:00
dependabot[bot]
5f5893c9a9
chore(deps): bump tokio-util from 0.6.6 to 0.6.7 ( #295 )
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.6.6 to 0.6.7.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.6.6...tokio-util-0.6.7 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-05 14:15:26 +03:00
dependabot[bot]
52b9949d6f
chore(deps): bump reqwest from 0.11.3 to 0.11.4 ( #322 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.3 to 0.11.4.
- [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.3...v0.11.4 )
---
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>
2021-07-05 14:15:06 +03:00
dependabot[bot]
ffcef0afa8
chore(deps): bump thiserror from 1.0.24 to 1.0.26 ( #328 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.24 to 1.0.26.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.24...1.0.26 )
---
updated-dependencies:
- dependency-name: thiserror
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>
2021-07-05 14:14:51 +03:00
Georgios Konstantopoulos
0453ea84df
chore: fix lints ( #329 )
2021-07-05 14:03:38 +03:00
Hanyun Xu
2a513f88d3
change types of block number and returned keys ( #320 )
2021-06-22 14:56:10 +03:00
Hanyun Xu
5715bcd312
feat: extend Middleware trait customized for celo ( #314 )
...
* Add CeloMiddleware trait
* change types of block number and returned keys
2021-06-15 15:22:53 +03:00
guanqun
34d38ca40f
make request error to be confined per request, not a global websocket error ( #315 )
2021-06-12 10:46:19 +03:00
Matthias Seitz
f3cddc19f8
fix: remove ethers celo feature and ignore celo test ( #313 )
2021-06-10 21:27:17 +03:00
Matthias Seitz
73020af0a7
test: enable ignored tests with geth ( #306 )
...
* test: enable ignored tests with geth
* chore: enable celo
* test: ignore for celo
2021-06-05 20:09:12 +03:00
Matthias Seitz
57163a4d06
feat: introduce tx stream ( #303 )
...
* feat: introduce tx stream
* poll improvements
* refactor: move transaction stream
* feat: fully implement TransactionStream
* test: test transactionstream against transactions
* feat: add adapters for transaction hash streams
* chore(clippy): make clippy happy
* style: simplify error msg
* chore: remove test artifact
* test: add tx stream test
2021-06-05 20:08:33 +03:00
Matthias Seitz
4036cfb8ef
test: account for offset for first subscription ( #302 )
2021-05-28 10:45:16 +03:00
dependabot-preview[bot]
4300413e3a
chore(deps): bump async-trait from 0.1.48 to 0.1.50 ( #278 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.48 to 0.1.50.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.48...0.1.50 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-27 23:18:06 +03:00
dependabot-preview[bot]
180679545e
chore(deps): bump pin-project from 1.0.6 to 1.0.7 ( #279 )
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.0.6...v1.0.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-27 22:35:50 +03:00
dependabot-preview[bot]
2b94066cd5
chore(deps): bump tokio from 1.4.0 to 1.5.0 ( #275 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.4.0...tokio-1.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-16 10:09:43 +03:00
dependabot-preview[bot]
84c811978d
chore(deps): bump tokio-util from 0.6.5 to 0.6.6 ( #272 )
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.6.5 to 0.6.6.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.6.5...tokio-util-0.6.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-15 19:48:09 +03:00
dependabot-preview[bot]
332fe4887b
chore(deps): bump futures-util from 0.3.13 to 0.3.14 ( #268 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.13 to 0.3.14.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.13...0.3.14 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-15 19:46:45 +03:00
dependabot-preview[bot]
23489252a8
chore(deps): bump reqwest from 0.11.2 to 0.11.3 ( #271 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.2 to 0.11.3.
- [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.2...v0.11.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-15 19:46:32 +03:00
Georgios Konstantopoulos
66a503d294
refactor: make IPC generic over AsyncRead/Write ( #264 )
...
* refactor: make IPC generic over AsyncRead/Write
* chore(ipc): fix typo
2021-04-08 11:44:48 +03:00
Austin Abell
42b10cca9a
feat: implement IPC transport support ( #260 )
...
* Initial IPC setup
* Cleanup
* Oops
* change futures dependency reference
* Document, add prints, cleanup
* Fix logic
* Make result type consistent with crate
* Setup geth ipc config and tests
* Cleanup subscription test
* Switch hash function to siphash
* Update dep usage for ordering
* Use tempfile for better cleanup (and OS support)
* Replace prints with tracing logs
* Ignore test with Celo feat
* chore: remove debug logs and use default geth ipc path
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-04-08 09:52:31 +03:00
Austin Abell
ba41d19089
Replace println usage in ws provider ( #263 )
...
* Replace println usage in ws provider
* fmt
2021-04-07 21:42:10 +03:00
Rohit Narurkar
79862ffda5
feat: mnemonic phrase support for wallet ( #256 )
...
* feat: mnemonic phrase support for wallet
* refactor: better error handling and clippy linting
* fix: derive from path and tests
* chore: renamed package coins-bip39
* refactor: convenient builder API to setup mnemonic wallet
* refactor: re-export coins-bip39 for convenience
* clippy: fix warnings for multiple complex types in provider
* feat: randomly generated mnemonic phrase can be written to storage
2021-04-05 10:44:58 +03:00
guanqun
bc80b7d327
chore(typo): fix two small typos ( #249 )
2021-03-31 11:21:20 +03:00
dependabot-preview[bot]
f3cb4f4f88
chore(deps): bump tokio from 1.2.0 to 1.4.0 ( #242 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.2.0 to 1.4.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.2.0...tokio-1.4.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-22 20:37:58 +02:00
Gabriel Coutinho de Paula
530bfe2b71
feat: add support for EIP-234 and EIP-1898 ( #231 )
...
* Add support for EIP-234
* Add support for EIP-1898
* Remove redundant field names
* Remove useless conversion
* Change `unwrap_or` to `unwrap_or_else`
2021-03-16 21:46:07 +02:00
dependabot-preview[bot]
e9e26f5e0c
chore(deps): bump reqwest from 0.11.1 to 0.11.2 ( #223 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.1 to 0.11.2.
- [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.1...v0.11.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-12 17:20:08 +02:00
dependabot-preview[bot]
08cacfeee8
chore(deps): bump serde from 1.0.123 to 1.0.124 ( #222 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.123 to 1.0.124.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-08 09:48:24 +02:00
dependabot-preview[bot]
b425e2bd9a
chore(deps): bump hex from 0.4.2 to 0.4.3 ( #220 )
...
Bumps [hex](https://github.com/KokaKiwi/rust-hex ) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases )
- [Commits](https://github.com/KokaKiwi/rust-hex/compare/v0.4.2...v0.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-04 09:30:36 +02:00
Georgios Konstantopoulos
61767c8dd2
release: 0.2.2 ( #219 )
2021-03-04 09:30:27 +02:00
James Prestwich
79e806f6e9
bug: prevent interleaving websocket ID load/store operations ( #217 )
2021-03-03 00:19:20 +02:00
dependabot-preview[bot]
5081ca2ad1
chore(deps): bump serde_json from 1.0.62 to 1.0.64 ( #215 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.62 to 1.0.64.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.62...v1.0.64 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-02 14:53:33 +02:00
dependabot-preview[bot]
c18dad6122
chore(deps): bump futures-channel from 0.3.12 to 0.3.13 ( #208 )
...
Bumps [futures-channel](https://github.com/rust-lang/futures-rs ) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.12...0.3.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-25 09:17:17 +02:00
dependabot-preview[bot]
ff07be3c77
chore(deps): bump futures-util from 0.3.12 to 0.3.13 ( #207 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.12 to 0.3.13.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.12...0.3.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-25 09:17:09 +02:00
dependabot-preview[bot]
5af9a28d8c
chore(deps): bump tracing from 0.1.24 to 0.1.25 ( #210 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.24 to 0.1.25.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.24...tracing-0.1.25 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-24 10:05:19 +02:00
dependabot-preview[bot]
7b0af7e73e
chore(deps): bump url from 2.2.0 to 2.2.1 ( #201 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.2.0...v2.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-22 10:16:13 +02:00
dependabot-preview[bot]
b0224927ee
chore(deps): bump tracing from 0.1.23 to 0.1.24 ( #199 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.23 to 0.1.24.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.23...tracing-0.1.24 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-22 10:04:40 +02:00
dependabot-preview[bot]
eb318a2689
chore(deps): bump thiserror from 1.0.23 to 1.0.24 ( #204 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.23 to 1.0.24.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.23...1.0.24 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-22 10:04:18 +02:00
dependabot-preview[bot]
b33f280fb5
chore(deps): bump reqwest from 0.11.0 to 0.11.1 ( #202 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.0 to 0.11.1.
- [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.0...v0.11.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-19 08:36:39 +02:00
dependabot-preview[bot]
e2ef22d0af
chore(deps): bump tracing-futures from 0.2.4 to 0.2.5 ( #197 )
...
Bumps [tracing-futures](https://github.com/tokio-rs/tracing ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-futures-0.2.4...tracing-futures-0.2.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-17 11:49:54 +02:00
Georgios Konstantopoulos
a43299c838
fix(abigen): correctly parse params in human readable abi ( #194 )
...
* fix(abigen): correctly parse params in human readable abi
* chore: make clippy happy
* test: remove unwrap
* chore: make clippy happy again
* chore: fix contract.rs example
* chore: rename to contract using human readable format
* examples: add abigen example with path to abi
* fix: pin funty version to fix bitvec error
* chore: remove unused import
* chore: fix deps
2021-02-16 19:10:26 +02:00
dependabot-preview[bot]
6e5fd198cb
chore(deps): bump serde_json from 1.0.61 to 1.0.62 ( #190 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.61...v1.0.62 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-10 11:55:48 +02:00
dependabot-preview[bot]
5109ff654e
chore(deps): bump pin-project from 1.0.4 to 1.0.5 ( #187 )
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/master/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.0.4...v1.0.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-08 11:56:43 +02:00
dependabot-preview[bot]
625cbbcf81
chore(deps): bump tokio from 1.1.1 to 1.2.0 ( #189 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.1.1...tokio-1.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-08 11:56:27 +02:00
dependabot-preview[bot]
fd1e3be2f3
chore(deps): bump tracing from 0.1.22 to 0.1.23 ( #188 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.22 to 0.1.23.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.22...tracing-0.1.23 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-06 05:43:54 +02:00
Rohit Narurkar
4c8d3c81e7
Feat/is middleware signer ( #182 )
...
* feat: signature from_str can handle 0x-prefixed strings
* feat: add is_signer method to the middleware trait
* fix: eth_sign Signature deserialisation
* chore: refactor for cleaner decoding of Signature
2021-01-28 08:51:53 +02:00
dependabot-preview[bot]
b69f68f089
chore(deps): bump serde from 1.0.120 to 1.0.123 ( #181 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.120 to 1.0.123.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.120...v1.0.123 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-26 17:41:58 +02:00
dependabot-preview[bot]
09094360d2
chore(deps): bump tokio from 1.0.2 to 1.1.0 ( #179 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.0.2...tokio-1.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-26 17:41:53 +02:00
dependabot-preview[bot]
11e3284f22
chore(deps): bump serde from 1.0.119 to 1.0.120 ( #176 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.119 to 1.0.120.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.119...v1.0.120 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-23 12:31:24 +02:00
Rohit Narurkar
3105431007
feat: Transformer middleware with DsProxy impl ( #165 )
...
* feat: basic structure of proxy wallet middleware with DsProxy
* feat: build DsProxy contract, minor fixes, naming convention changes
* fix: add provider error in contract error
* fix: left pad storage value
* fix: delete gnosis safe for now
* feat(ds_proxy): execute code or target
* test(ds_proxy): transformer middleware tests
* fix: clippy should be happy
* fix(tests): ds proxy execute code
* chore: add documentation
* chore: formatting
2021-01-22 11:25:22 +02:00
dependabot-preview[bot]
2769c97018
chore(deps): bump futures-util from 0.3.11 to 0.3.12 ( #171 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.11...0.3.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-18 07:38:07 +02:00
dependabot-preview[bot]
b19f8f3c14
chore(deps): bump futures-channel from 0.3.11 to 0.3.12 ( #167 )
...
Bumps [futures-channel](https://github.com/rust-lang/futures-rs ) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.11...0.3.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-17 13:56:25 +02:00
dependabot-preview[bot]
bc700295fb
chore(deps): bump futures-core from 0.3.11 to 0.3.12 ( #166 )
...
Bumps [futures-core](https://github.com/rust-lang/futures-rs ) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.11...0.3.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-17 13:55:48 +02:00
dependabot-preview[bot]
810bb142f3
chore(deps): bump futures-util from 0.3.9 to 0.3.11 ( #159 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.9 to 0.3.11.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.9...0.3.11 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-16 10:59:59 +02:00
Sam Wilson
8eafe81aa9
Handle ping/pong messages for Ws provider ( #163 )
2021-01-15 11:33:38 +02:00
Georgios Konstantopoulos
fc4b3e4ce4
release: bump to 0.2.0 ( #151 )
2021-01-13 20:10:50 +02:00
dependabot-preview[bot]
177f0c3eb9
chore(deps): bump serde from 1.0.118 to 1.0.119 ( #146 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.118 to 1.0.119.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.118...v1.0.119 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-12 10:02:30 +02:00
Georgios Konstantopoulos
25f6bdff22
fix: bump to tokio-tungstenite 13.0
2021-01-10 12:05:12 +02:00
Curtis Spencer
9a9f4523e0
Upgrade reqwest to 0.11.0 to ensure only 1 version of tokio used ( #136 )
...
This commit also removes the patch stanza in the top level Cargo.toml as the
older tokio tungstenite (0.12.0) is pulled in when ethers is used as a
dependency on another project.
2021-01-07 15:24:07 +02:00
dependabot-preview[bot]
b63c272abe
chore(deps): bump pin-project from 1.0.2 to 1.0.3 ( #135 )
...
Bumps [pin-project](https://github.com/taiki-e/pin-project ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/taiki-e/pin-project/releases )
- [Changelog](https://github.com/taiki-e/pin-project/blob/master/CHANGELOG.md )
- [Commits](https://github.com/taiki-e/pin-project/compare/v1.0.2...v1.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-06 14:39:56 +02:00
Georgios Konstantopoulos
5f292670fc
docs: add more docs ( #130 )
2020-12-31 21:08:12 +02:00
Georgios Konstantopoulos
5c1f8f532a
Upgrade to Tokio 1.0 and remove async-std ( #120 )
...
* feat(providers): tokio 1.0
BREAKING: This removes async-std as a compatibility option
* feat: tokio 1.0 in rest of crates
* fix: patch Cargo.toml until deps are released
* fix(contract): load ws deps
* feat: bytes 1.0 (#121 )
* feat(core): move to bytes::Bytes
* feat: adjust rest of crates to Bytes
* chore: bump deps
CI fails due to:
https://github.com/snapview/tokio-tungstenite/pull/142#discussion_r550445144
* chore: use latest tokio-tungstenite
* ci: split tests into jobs (#129 )
* Switch to `hex` (#128 )
* fix(core): replace rustc_hex with hex
* fix(providers): replace rustc_hex with hex
* chore: replace rustc-hex with hex
* chore: cargo fmt
* fix(ledger): copy address from string correctly
* chore: fix flaky tests
Fixes #105
2020-12-31 19:19:14 +02:00
Georgios Konstantopoulos
5860a1df6c
Trim some dependencies ( #116 )
...
* core: trim deps
* providers: trim deps
* contract: trim deps
* middleware: trim deps
* signers: trim deps
2020-12-25 02:17:21 +02:00
Georgios Konstantopoulos
dc4c2a807e
feat(providers): add tracing ( #113 )
...
* feat(provider): add async tracing
* feat(middleware): add tracing to gas escalator
* chore: make clippy happy
2020-12-24 22:23:05 +02:00
Georgios Konstantopoulos
65b50a7668
fix: reschedule waker for >1 confs ( #112 )
2020-12-24 18:33:22 +02:00
Georgios Konstantopoulos
d9db40402b
feat: derives &, Arc and Box for Middleware ( #109 )
...
* test: can stack Middlewares with Arcs
* feat: derive &, Box and Arc impls for Middleware
* chore: fix spacing
2020-12-18 13:15:19 +02:00
Georgios Konstantopoulos
3a2fd3e814
Returning a `PendingTransaction` after sending a tx ( #107 )
...
* feat(providers): return a PendingTransaction from send_tx calls
* feat(providers): expose the internal provider to all middlewares
* fix(middleware): use the returned PendingTx instead of using a hash
* fix(contract): use the pending tx returned value
Note1: To support that, we need to clone the tx when sending in order to make lifetimes work out
Note2: Multicall does not support that feature
* fix(ethers): adjust examples
* chore: fix provider test
* chore: fix celo test
BREAKING CHANGE
2020-12-17 13:26:01 +02:00
Georgios Konstantopoulos
5b7578296b
fix: reschedule waker even if receipt is not available ( #104 )
...
PR #103 did not address the Future hanging when the receipt was not
immediately available, e.g. in non dev environments
2020-12-17 11:23:10 +02:00
Georgios Konstantopoulos
b0bfd550fb
fix: reschedule waker if receipt is immediately available ( #103 )
...
* fix: reschedule waker if receipt is immediately available
* chore: update minor deps
`cargo update`
* chore: make clippy happy
2020-12-16 14:05:16 +02:00
Georgios Konstantopoulos
1ece5d2020
Contract & Provider eth_subscribe support ( #100 )
...
* fix(block): fix block decoding from ws
* feat(pubsub): add pubsub traits and sub stream
Also use DeserializeOwned alias
* feat(transports): add notification type
* feat(ws): rewrite Ws for subscription support
* feat(provider): add eth_subscribe
* fix(celo): disable some celo tests due to ganache incompatibilities
* test(rinkeby): fix flaky test
* feat(contract): WS subscription bindings (#101 )
* feat(middleware): add subscriptions to middleware methods
* feat(contract): add subscribe method to contracts
2020-11-30 11:33:06 +02:00
Georgios Konstantopoulos
09413dca6f
feat: add a mock transport ( #99 )
...
* feat: add a mock transport
* ci: fix libusb issue
2020-11-27 14:57:44 +02:00
Georgios Konstantopoulos
d2d7a82a80
feat: add method for parity_getBlockReceipts
2020-11-19 19:51:15 +02:00
Georgios Konstantopoulos
84aafbbd1f
Misc Fixes ( #97 )
...
* fix: use generic instead of impl Trait
* fix: do not skip first 4 bytes when decoding outputs
2020-11-12 12:08:20 +02:00
Georgios Konstantopoulos
c30f45fc72
feat: port over tracing from rust-web3 ( #93 )
2020-10-31 12:44:08 +02:00
Rohit Narurkar
98c63f9a3d
add Sync trait to middleware error ( #94 )
2020-10-31 12:39:03 +02:00
Pawan Dhananjay
35e24ed412
refactor: extract minimal features of Contract into BaseContract ( #88 )
...
* refactor: extract minimal features of Contract into BaseContract
* refactor: move BaseContract to own file
* chore: ensure celo test passes
* chore: fix clippy
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2020-10-27 12:57:01 +02:00
Georgios Konstantopoulos
a22f1f9aa0
Geth TxPool API Support ( #86 )
...
* feat: support for txpool API
* feat: add a geth spawner test helper
* fix(txpool): use TxRequest instead of new data struct
The `raw` field is no longer present in latest geth's response.
* fix(txpool): use proper api response format
ref: https://github.com/ethereum/go-ethereum/pull/21720
Also add a Geth test
* ci: install geth 1.9.23
Co-authored-by: Rohit Narurkar <rohit.narurkar@protonmail.com>
2020-10-24 11:13:13 +03:00
Georgios Konstantopoulos
62b7ce4366
feat: Transaction Gas Price Escalator middleware ( #81 )
...
* fix(signers): make Signer send by blocking on Ledger calls
* fix(providers): use Arc in WS impl to allow cloning
* feat(middleware): add geometric gas price escalator
* test(middleware): ensure that we can still stack everything up
* fix(middleware): default to tokio/async-std
* chore: fix clippy
* docs(middleware): add docs and rename middlewares
* chore: fix doctests
* feat: add linear gas escalator
https://github.com/makerdao/pymaker/blob/master/tests/test_gas.py\#L107
https://github.com/makerdao/pymaker/blob/master/pymaker/gas.py\#L129
* feat: add constructors to gas escalators
2020-10-08 18:56:36 +03:00
Georgios Konstantopoulos
2d51c523ba
feature: Middleware Architecture ( #65 )
...
* feat: convert Provider to Middleware trait
* feat: move gas oracle to middleware crate
* feat: move signer to middleware crate
* feat: add nonce manager middleware and test stacking
* refactor: convert generic middleware jsonrpc type to associated type
* feat: move ethers-contract to middleware arch
* test(provider): make tests pass
* test(middleware): move middleware tests from signer
* test: fix ethers examples
* fix(contract): make tests compile
* chore: fix clippy
* feat: deduplicate trait delegation
* refactor(signer): deduplicate tx signing logic across signers
* fix doctests
* fix: examples, celo tests and ci
2020-09-25 00:33:09 +03:00
Georgios Konstantopoulos
bf1d1e098f
fix: replace FilterStream with concrete type ( #69 )
...
* fix: replace FilterStream with concrete type
* fix: use PinBoxFut type alias
* ci: fix CI error with ledger
2020-09-23 11:04:54 +03:00
Georgios Konstantopoulos
a3fa77744e
fix(BREAKING): return Option for txs/receipts/blocks ( #64 )
...
* fix(BREAKING): return Option for txs/receipts/blocks
Otherwise if a user asks for a transaction hash or block that does not exist yet they'll get an Error
* test: ensure that unmined txs return None receipts
* test: fix remaining tests
* chore: re-enable sparkpool gas oracle
* chore: fix celo tests
* fix: run the non-existing data against infura
* fix: fix etherscan gas oracle tests
2020-09-17 14:06:56 +03:00
Georgios Konstantopoulos
fb8f5a8ec9
Nonce manager ( #59 )
...
* feat: first stab at a NonceManager
* test: adjust the test
* fix: reset nonce if nonce manager errors
* feat: make nonce manager opt in
* fix: add read-only nonce call
* feat: improve http provider errors
* feat: convert to Atomic datatypes
* refactor: move to own file
* chore: remove tokio dep
* fix: improve nonce retry logic readability
* fix: use other privkey to avoid nonce races with other tests
2020-09-07 13:26:42 +03:00
Georgios Konstantopoulos
6197d8bb12
fix(core): serialize filters properly and always rewake ( #61 )
...
* fix: serialize filters properly
* test: add filter log tests
* fix(stream): always re-wake
2020-08-31 23:40:49 +03:00
Georgios Konstantopoulos
cff6eb45a5
fix: make multicall work by reference ( #58 )
...
* fix: make multicall work by reference
* chore: update readme with solc / ganache requirements
* chore: cargo fmt
* chore: fix doctests
* fix: disable sparkpool gasnow test
2020-08-21 15:54:23 +03:00
Rohit Narurkar
237f011259
(feat) gas oracle support ( #56 )
...
* (feat) gas oracle support
* (refactor) make a separate module | fix clippy warning
* add gas oracle to client using dynamic dispatch
* fix doc build in multicall module
* gas oracle returns U256
* support gas price fetching from client
* avoid querying for unsupported gas categories
* changes based on PR review
* add support for gasnow API, refactor gwei to wei
2020-08-18 21:47:56 +03:00
James Prestwich
ca2ec0aadd
bug #55 : prevent request from serializing ZSTs as null ( #57 )
...
* bug #55 : prevent request from serializing ZSTs as null
* chore: cargo fmt
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2020-08-18 17:12:47 +03:00
Rohit Narurkar
516b431a48
add support for gas estimate and calldata from ContractCall ( #53 )
...
* add support for gas estimate and calldata from ContractCall
* fix celo tests for get_block and get_tx
2020-08-12 11:35:33 +03:00
Brock Elmore
34550d9211
Add get_storage_at
2020-07-30 22:56:28 -04:00
James Prestwich
6f02bb5436
bug: reschedule rewaking when unpausing pending tx future ( #50 )
2020-07-13 20:52:33 +03:00
James Prestwich
320ab276de
refactor: pending txns don't wait to poll futures until interval elapses ( #49 )
2020-07-10 09:59:29 +03:00