Matthias Seitz
295f86ef89
chore: reexport ethabi module ( #1362 )
2022-06-08 13:15:55 -07:00
Matthias Seitz
c7a8a1ea5a
test: add tx receipt roundtrip test ( #1360 )
2022-06-08 05:13:36 -07:00
Matthias Seitz
0abc3ca39a
feat: add anvil hardhat chain id ( #1356 )
...
* feat: add anvil hardhat chain id
* chore: cover anvil hh
2022-06-08 03:29:00 -07:00
DeGatchi
d6d76c6024
fix: `Transfered` -> `Transferred* ( #1357 )
2022-06-08 03:28:32 -07:00
dependabot[bot]
3b54f18e4e
chore(deps): bump syn from 1.0.95 to 1.0.96 ( #1342 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.95...1.0.96 )
---
updated-dependencies:
- dependency-name: syn
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-06-04 13:44:47 -07:00
Matthias Seitz
1dfe6d0cd2
feat: add display impl for BlockNumber ( #1346 )
2022-06-04 11:37:37 -07:00
Roman Krasiuk
f4712fa47c
feat(etherscan): additional chain apis ( #1343 )
...
* xdai
* sokol
* poa & rsk
* oasis chains
* fix test
* test
2022-06-03 09:16:35 -07:00
Matthias Seitz
89bc6420bb
test: replace ganache with anvil ( #1286 )
...
* ci: install anvil
* test: use anvil instead of ganache
* ci: fix anvil ver
* ci: re-enable example tests
* test: remove unnecessary assertions
* test: enable anvil launch test
* docs: typo
* test: fix anvil chain id
* ci: install ganache
Ganache is needed for the Ganache tests
* chore: remove legacy feature from some examples
* ci: correctly build examples
* test: use correct account balance for anvil
* chore: remove sub_id == 1 check
this was only possible in ganache because it gives serial
sub ids, but in every other reasonable client the ids are generated
randomly, so we cannot test for its value
* test: ensure txs are different
There is a bug in Ganache's mempool which accepts duplicate transactions (here with the same nonce), whereas here we pre-set all the nonces so that they end up having a different transaction hash.
* test: ignore ganache tests
* fix: terzor api changes
* ci(examples): install Anvil, remove geth/ganache
* test(provider): Anvil instead of Geth
some tests start to fail now
* fix: revert usage of Anvil in ipc tests
Anvil does not support IPC yet
* fix: update examples script
* ci: use anvil for wasm example
* replace last ganache usage
Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-06-01 08:22:39 -07:00
Matthias Seitz
6a45a93685
fix: use decimal crate for parsing units ( #1330 )
2022-05-31 09:43:44 -07:00
Dave Belvedere
6b6c511583
Add Arithmetic Shift Right operation for I256 ( #1324 )
...
Update the changelog for https://github.com/gakonst/ethers-rs/issues/1323
Format the file correctly
2022-05-29 19:03:03 -04:00
Meet Mangukiya
e3e810cef9
feat(abi): impl AbiEncode, AbiDecode for I256 ( #1311 )
2022-05-27 10:12:24 -04:00
oblique
526f40e88f
feat(core): Add `as_*_mut` methods on `TypedTransaction` ( #1310 )
2022-05-27 10:11:18 -04:00
dependabot[bot]
37f3df5234
chore(deps): bump once_cell from 1.11.0 to 1.12.0 ( #1306 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.11.0 to 1.12.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.11.0...v1.12.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-24 00:31:40 -07:00
Meet Mangukiya
a150666d54
feat: add paginated logs ( #1285 )
...
* feat: add paginated logs
* docs: add paginated_logs example
* remove unpin
2022-05-23 14:23:35 -07:00
Georgios Konstantopoulos
dc107ce892
fix: correctly serialize TxPoolInspectSummary ( #1305 )
...
* fix: correctly serialize TxPoolInspectSummary
previously we'd use the default serde derive, now we serialize
it like geth does
* chore: add back removed Eq derive
2022-05-23 14:15:29 -07:00
rakita
4301447155
relax thiserror minor version constraint ( #1294 )
2022-05-23 11:41:30 -07:00
Matthias Seitz
cffcc7bbec
chore(clippy): fix newest nightly lints ( #1298 )
2022-05-22 15:18:57 -07:00
dependabot[bot]
2883ed7e2d
chore(deps): bump once_cell from 1.10.0 to 1.11.0 ( #1288 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.10.0 to 1.11.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.10.0...v1.11.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-21 17:50:00 -07:00
dependabot[bot]
96391a05fa
chore(deps): bump syn from 1.0.94 to 1.0.95 ( #1280 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.94 to 1.0.95.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.94...1.0.95 )
---
updated-dependencies:
- dependency-name: syn
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-05-18 07:49:40 -07:00
joshieDo
f5ea2bd6e3
feat(core): add helpers to unwrap `TypedTransaction` ( #1278 )
...
* add different helpers for type transactions
* remove as_() on TypedTransaction
* specify into_eip2930 when it matches a legacy tx
* remove unused error type
* specify into_legacy when it matches an eip2930 tx
2022-05-17 15:50:14 -07:00
dependabot[bot]
082f2c8bcc
chore(deps): bump proc-macro2 from 1.0.38 to 1.0.39 ( #1275 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.38 to 1.0.39.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.38...1.0.39 )
---
updated-dependencies:
- dependency-name: proc-macro2
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-05-17 10:57:30 -07:00
oblique
75ba3f4a9a
fix(core): On pending block `miner` field is always `null` ( #1272 )
...
* fix(core): On pending block `miner` field is always `null`
* Fix formatting
2022-05-16 14:10:02 -07:00
Georgios Konstantopoulos
83dc3e226c
chore: fmt
2022-05-16 12:33:38 -07:00
Shawn Harmsen
ceafcb250b
fix: unify name of supported chains with strum ( #1249 )
...
* add strum
* update strum version
* whitespace
* revert strum
* using strum EnumVariantNames
* fix strum serialize kebab case and edge cases
2022-05-16 12:28:35 -07:00
dependabot[bot]
7afae38623
chore(deps): bump syn from 1.0.93 to 1.0.94 ( #1271 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.93 to 1.0.94.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.93...1.0.94 )
---
updated-dependencies:
- dependency-name: syn
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-05-16 10:11:10 -07:00
Meet Mangukiya
6d5bebd860
Release process and CI ( #1240 )
...
* Fix the crate versions
* release.toml: add cargo-release config
* CONTRIBUTING.md: Update Releasing section
* feat: add release github workflow
* feat: generate CHANGELOGs and create github releases in CI
2022-05-13 13:10:05 -07:00
Matthias Seitz
94cf8a8f77
feat: add eip-1898 deserialize for BlockId ( #1257 )
2022-05-13 12:56:14 -07:00
Remco Bloemen
4ba8adf87c
Add Block::time ( #1250 )
...
* Add Block::time
* Doc fixes
2022-05-11 10:19:02 -07:00
Remco Bloemen
98fc8c88e4
impl TryFrom<U256> for Chain ( #1247 )
2022-05-11 07:35:30 -07:00
dependabot[bot]
ab8ec1f75b
chore(deps): bump syn from 1.0.92 to 1.0.93 ( #1244 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.92 to 1.0.93.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.92...1.0.93 )
---
updated-dependencies:
- dependency-name: syn
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-05-10 08:31:55 -07:00
dependabot[bot]
7a6919ad58
chore(deps): bump unicode-xid from 0.2.2 to 0.2.3 ( #1243 )
...
Bumps [unicode-xid](https://github.com/unicode-rs/unicode-xid ) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/unicode-rs/unicode-xid/releases )
- [Commits](https://github.com/unicode-rs/unicode-xid/commits )
---
updated-dependencies:
- dependency-name: unicode-xid
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-05-10 08:31:49 -07:00
Tomas Tauber
0926ead2bc
fix(core): removed Cronos mainnet beta from `is_legacy` ( #1246 )
...
it now supports EIP1559 after the network upgrade at the height 2693800
2022-05-10 08:31:28 -07:00
Matthias Seitz
790550c1e5
feat(abi): add human readable tokenizer and parser ( #1234 )
...
* feat(abi): add human readable tokenizer and parser
* feat(abi): support nested tuples
2022-05-09 10:46:43 -07:00
dependabot[bot]
c3c08e20c5
chore(deps): bump proc-macro2 from 1.0.37 to 1.0.38 ( #1237 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.37 to 1.0.38.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.37...1.0.38 )
---
updated-dependencies:
- dependency-name: proc-macro2
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-05-09 09:29:02 -07:00
Remco Bloemen
18b4ef4e47
Robust gas oracles ( #1222 )
...
* Pass reqwest Client to constructors
* Add Median oracle aggregator
* DRY
* Weighted median
* Add cache layer
* Simplify lifetimes
* Add with_client constructors
* Update GasNow urls
* Add u256_from_f64_saturating
* Add polygon oracle
* Fixes
* Fix lints
* Remove dbg statements
2022-05-06 08:16:43 -07:00
Matthias Seitz
ce3ebaefa0
chore(clippy): make clippy happy ( #1230 )
2022-05-06 08:15:49 -07:00
inconspicuous99
f5c5468420
Add: Make Ganache Startup Timeout *Configurable*. ( #1224 )
...
* Add: Configurable Ganache Startup TImeout
* fix lint, add docs.
2022-05-05 07:40:48 -07:00
Matthias Seitz
67e3480bdc
chore(core): update moonbeam url ( #1228 )
2022-05-05 07:31:26 -07:00
CyMule
4d24acdd84
Adds From<H160> trait to ValueOrArray<H160> ( #1200 )
...
* Adds From<H160> trait to ValueOrArray<H160>
The trait From<H160> for ValueOrArray<H160> was not implemented which
prevented compilation when using
pub fn address<T: Into<ValueOrArray<Address>>>(self, address: T)
for ethers_core::types::Filter.
Fixes : #1199
* update CHANGELOG.md
* Adds From<Vec<H160>> trait to ValueOrArray<H160> and documentation
The trait From<Vec<H160>> for ValueOrArray<H160> was not implemented which
prevented compilation when passing a Vec<H160> into
pub fn address<T: Into<ValueOrArray<Address>>>(self, address: T)
for ethers_core::types::Filter.
This commit also includes documentation on how to use fn address for
ethers_core::types::Filter.
Fixes : #1199
2022-05-02 12:33:33 -07:00
dependabot[bot]
c44872f62e
chore(deps): bump thiserror from 1.0.30 to 1.0.31 ( #1206 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.30 to 1.0.31.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.30...1.0.31 )
---
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>
2022-05-02 11:54:22 -07:00
dependabot[bot]
81e7fea14b
chore(deps): bump syn from 1.0.91 to 1.0.92 ( #1194 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.91 to 1.0.92.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.91...1.0.92 )
---
updated-dependencies:
- dependency-name: syn
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-04-29 04:26:24 -07:00
Matthias Seitz
19f7a93243
feat(core): add block conversion helpers ( #1186 )
...
* feat: add full to sparse block conversion
* feat: add sparse to full block conversion
2022-04-27 11:46:06 -07:00
Josh Stevens
82d5741bcc
fix: add to and from into the transaction receipt to follow spec ( #1184 )
...
* fix: add to and from into the transaction receipt to follow spec
* update changelog
2022-04-27 15:40:59 +03:00
Dan Cline
3d9fc21ba9
fix(core): decode `from` field for typed transactions ( #1180 )
...
* fix(core): add eip1559 prefix for sighash
- add a test which properly tests the `from` address decoding, which
was incorrect due to the tx type not being hashed before recovery
* fix(core): decode from for EIP2930 transactions
- add test which checks signed decoding for an EIP2930 transaction
* ignore decoding tests for celo
* remove type constant and use typed sighash
* update CHANGELOG
2022-04-27 15:39:59 +03:00
Rohit Narurkar
1b044652f0
chore(core): derive default for log ( #1168 )
2022-04-23 01:40:01 -07:00
Matthias Seitz
48e292021d
feat: add anvil bindings ( #1164 )
2022-04-21 19:22:52 +02:00
Matthias Seitz
7a098b183f
test: add type check test for abi array tuples ( #1143 )
2022-04-18 10:02:56 -07:00
Rohit Narurkar
45cce0f4b4
feat: impl rlp encodable for log and receipt ( #1153 )
2022-04-18 09:55:45 -07:00
Michael Sproul
286f842a2a
fix(core): encode absent tx access_list correctly ( #1137 )
...
The optional access list on `Transaction` was being incorrectly encoded
as an empty string (0x80) when omitted, when it should be encoded as an
empty list (0xc0).
Fixes #1134 .
2022-04-13 08:26:14 -07:00
Matthias Seitz
7799634479
feat(types): add deserialize support for ValueorArray ( #1138 )
...
* feat(types): add deserialize support for ValueorArray
* chore: add hash derive
* chore: add Eq derive
2022-04-13 08:23:12 -07:00