Commit Graph

1641 Commits

Author SHA1 Message Date
Matthias Seitz 61821cc665
fix: make compatible with edition2018 (#1522) 2022-07-27 14:36:21 -07:00
Matthias Seitz 3d76ce816a
feat: add support for EIP-712 typed data (#1510)
* feat: add support for typeddata

* change eip712 trait

* feat: impl eip712 trait

* chore(clippy): make clippy  happy

* better numeric parsing

* fix: fix a bunch of encoding bugs

* Update ethers-core/Cargo.toml

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-07-27 13:56:02 -07:00
dependabot[bot] 9cc0fb0036
chore(deps): bump wasm-bindgen-test from 0.3.31 to 0.3.32 (#1518)
Bumps [wasm-bindgen-test](https://github.com/rustwasm/wasm-bindgen) from 0.3.31 to 0.3.32.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-test
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 13:38:53 -07:00
Matthias Seitz 77033a9acd
fix: deserialize sealfields with default (#1520)
* test: add block deserialize test null sealfields

* fix: use default or non helper
2022-07-27 13:38:42 -07:00
Matthias Seitz 691f6a634c
chore(deps): bump svm-builds (#1521) 2022-07-27 13:34:33 -07:00
dependabot[bot] 7a71173ca3
chore(deps): bump fastrlp from 0.1.2 to 0.1.3 (#1505)
Bumps [fastrlp](https://github.com/vorot93/fastrlp) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/vorot93/fastrlp/releases)
- [Commits](https://github.com/vorot93/fastrlp/commits)

---
updated-dependencies:
- dependency-name: fastrlp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-26 08:31:45 -07:00
dependabot[bot] c334332952
chore(deps): bump proc-macro2 from 1.0.40 to 1.0.42 (#1513)
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.40 to 1.0.42.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases)
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.40...1.0.42)

---
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-07-26 08:29:49 -07:00
dependabot[bot] da12182f65
chore(deps): bump wasm-bindgen-futures from 0.4.31 to 0.4.32 (#1512)
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen) from 0.4.31 to 0.4.32.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-26 08:29:25 -07:00
dependabot[bot] 1ea5b4ec08
chore(deps): bump web-sys from 0.3.58 to 0.3.59 (#1511)
Bumps [web-sys](https://github.com/rustwasm/wasm-bindgen) from 0.3.58 to 0.3.59.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits)

---
updated-dependencies:
- dependency-name: web-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-26 08:29:14 -07:00
dependabot[bot] 0e2865475d
chore(deps): bump tracing-subscriber from 0.3.14 to 0.3.15 (#1504)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.14 to 0.3.15.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.14...tracing-subscriber-0.3.15)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-26 08:28:54 -07:00
Clifton King c418f4ef34
fix(abigen): abigen feature required for bindings (#1508)
* fix(abigen): abigen feature required for bindings

traits such as ethers::contract::EthDisplay require abigen

* update changelog

* abigen now uses re-exported version of serde_json
2022-07-26 08:28:39 -07:00
Hari 3766c2b47c
feat(etherscan): erc1155 token transfer events endpoint (#1503)
Added the function `get_erc1155_transfer_events` and the corresponding struct `ERC1155TokenTransferEvent`.
2022-07-26 08:28:09 -07:00
Matthias Seitz 6b713958d1
feat: bump abi/token tuple limit (#1506) 2022-07-26 08:27:19 -07:00
Matthias Seitz 1d40d4e049
fix(solc): make StorageLayout json parsing lossless (#1515) 2022-07-26 08:26:19 -07:00
Matthias Seitz c12033f436
fix: only run tracing example if env var is set (#1517) 2022-07-26 08:25:43 -07:00
wren cb7e586645
feat(debug_traceTransaction): initial commit (#1469)
* feat(debug_traceTransaction): initial commit

* chore(changelog): updated changelog

* feat(debug_traceTransaction): type adjusments

* feat(debug_traceTransaction): type adjusments

* Update ethers-providers/src/provider.rs

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* Update ethers-providers/src/provider.rs

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* chore(format): cargo +nightly fmt

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-07-24 14:46:38 -07:00
Matthias Seitz d22fb2bd0b
test: update broken test and use it module for ethers-contract (#1502)
* refactor: make ethers-contract tests it module

* update failing test

* assert console is generated

* chore(clippy): make clippy happy

* update broken test

* move sol files back

* chore: rustfmt

* chore(clippy): make clippy happy
2022-07-24 14:41:06 -07:00
Matthias Seitz fb8ebd8231
feat(solc): handle conflicting artifacts properly (#1491)
* feat(solc): handle conflicting artifacts properly

* refactor(solc): update write extras function

* chore: update CHANGELOG
2022-07-24 14:39:37 -07:00
dependabot[bot] 9a074bca02
chore(deps): bump tracing-subscriber from 0.3.11 to 0.3.14 (#1448)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.3.11 to 0.3.14.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.11...tracing-subscriber-0.3.14)

---
updated-dependencies:
- dependency-name: tracing-subscriber
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-24 03:23:30 +02:00
dependabot[bot] 80807b4bc5
chore(deps): bump terser from 4.8.0 to 4.8.1 in /examples/ethers-wasm (#1489)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-24 03:22:31 +02:00
Matthias Seitz a5c326162a
fix: use correct model for txpool_content endpoint (#1501)
* fix: use correct model for txpool_content endpoint

* chore: update CHANGELOG

* update failing tests

* Update ethers-providers/tests/txpool.rs

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-07-24 03:21:09 +02:00
Dave Belvedere cf2aa07eb5
Update README to document common feature flags for providers (websock… (#1493)
* Update README to document common feature flags for providers (websockets, ipc and https)

* Update README as per review comment suggestion

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* Separate openssl and rustls toml examples as per review comment

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2022-07-24 03:20:06 +02:00
Matthias Seitz 12292dd920
test: add avalanche test (#1494) 2022-07-24 03:19:19 +02:00
Clifton King aa008727ee
fix(abigen): contract names can be reserve words (#1498)
* fix(abigen): contract names can be reserve words

* update changelog

* clippy warning

* module names consistent with other safe_*

* update refs to generated abis

* move reserved words tests to their own fn

* added note to changelog re: module name changes
2022-07-24 03:18:24 +02:00
Matthias Seitz a600acb4f5
docs: fix broken doc links (#1497) 2022-07-24 03:16:55 +02:00
Matthias Seitz 83e2684824
refactor: use expanded EthEvent impl (#1499) 2022-07-24 03:16:23 +02:00
Paul Razvan Berg d7f656c73a
nit(ethers-solc): set URL to binaries.soliditylang.org (#1490)
* nit(ethers-solc): set URL to binaries.soliditylang.org

* Use hyperlink in ethers-solc/src/compile/mod.rs

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2022-07-22 22:26:39 +02:00
Matthias Seitz a958b4fd28
fix(eip712): improve argument parsing (#1485)
* fix(eip712): improve argument parsing

* use reexported serde_json

* chore: rustfmt

* fix: add missing salt
2022-07-20 00:09:11 -07:00
Matthias Seitz 1d4f3efe8a
chore: add Anvil::at and anvil example (#1486) 2022-07-20 00:08:25 -07:00
dependabot[bot] 9e586cd9f6
chore(deps): bump bytes from 1.1.0 to 1.2.0 (#1488)
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.1.0 to 1.2.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.1.0...v1.2.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>
2022-07-20 00:08:00 -07:00
James Prestwich 13ce18fd3b
feature: allow event builder to stream with meta (#1483)
* feature: allow event builder to stream with meta

* doc: improve rustdoc

* feature: subscribe_with_meta

* chore: fmt
2022-07-17 11:26:16 -07:00
Matthias Seitz ba00f549dd
fix: parse constructor as function (#1479)
* fix: parse constructor as function

* parse constructor separatly
2022-07-14 12:15:15 -07:00
Matthias Seitz cca3fcec93
perf(solc): add iterator function for finding sol files (#1480) 2022-07-14 10:57:10 -07:00
Matthias Seitz d509f7a7c6
fix(providers): handle zst params in retry provider correctly (#1481) 2022-07-14 10:56:35 -07:00
dependabot[bot] 5b981d84c7
chore(deps): bump tokio-tungstenite from 0.17.1 to 0.17.2 (#1478)
Bumps [tokio-tungstenite](https://github.com/snapview/tokio-tungstenite) from 0.17.1 to 0.17.2.
- [Release notes](https://github.com/snapview/tokio-tungstenite/releases)
- [Changelog](https://github.com/snapview/tokio-tungstenite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/snapview/tokio-tungstenite/compare/v0.17.1...v0.17.2)

---
updated-dependencies:
- dependency-name: tokio-tungstenite
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-13 23:40:19 -07:00
Rohit Narurkar f68a9995db
chore: bump svm-rs-builds (#1476) 2022-07-13 17:47:45 -07:00
jole cfc5a004e6
fix unused warning (#1477)
* fix unused warning

* fmt
2022-07-13 17:46:47 -07:00
Matthias Seitz ef8d97e05e
fix(solc): serialize metadata as raw string (#1474) 2022-07-12 11:28:29 -07:00
Matthias Seitz 98e6288036
chore(clippy): make clippy happy (#1475) 2022-07-12 11:27:55 -07:00
sea-edge 7566c3d71e
For fix test code, Added morden to chainid as a Mock-like value. (#1472) 2022-07-10 14:28:39 -07:00
sea-edge d12c98d0cc
feat: add Sepolia endpoint (#1467)
- https://docs.etherscan.io/getting-started/endpoint-urls
2022-07-09 15:20:14 -07:00
Matthias Seitz 1ff4be74f9
feat: add --fork-block-number setter for anvil bindings (#1468) 2022-07-09 15:19:57 -07:00
dependabot[bot] 8db1899820
chore(deps): bump criterion from 0.3.5 to 0.3.6 (#1466)
Bumps [criterion](https://github.com/bheisler/criterion.rs) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/bheisler/criterion.rs/releases)
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.5...0.3.6)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 11:19:15 -07:00
Matthias Seitz fb3fb161c0
chore: make ethers-solc optional (#1463)
* chore: make ethers-solc optional

* chore: update CHANGELOG

* add missing requirement

* add abigen req
2022-07-06 14:11:56 -07:00
Matthias Seitz 0b88e4246d
deps: bump crypto deps (#1465) 2022-07-06 14:11:23 -07:00
Matthias Seitz 958e0902a0
chore(deps): bump paths-slash (#1462) 2022-07-06 13:23:33 -07:00
Matthias Seitz 841b75430e
chore(deps): bump pin-project to silence new clippy lints (#1464) 2022-07-06 13:22:55 -07:00
dependabot[bot] 57f6d59b39
chore(deps): bump regex from 1.5.6 to 1.6.0 (#1461)
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.6 to 1.6.0.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.5.6...1.6.0)

---
updated-dependencies:
- dependency-name: regex
  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-07-06 11:45:14 -07:00
Mark Tyneway 1efdadefc0
ethers-solc: fix build info default directory (#1458)
* ethers-solc: fix build info default directory

This commit fixes the default behavior for the `build-info`
directory when it is unconfigured. It should end up in
the configured artifacts directory, taking into account
whatever the config for the artifacts directory is.
If the build info is specifically configured, then that
will take precendence over the default.

* chore: add changelog entry
2022-07-06 11:44:47 -07:00
Dan Cline bc9d4b48b6
impl fastrlp traits for AccessList (#1456)
* impl fastrlp traits for AccessListItem
 * impl Hash for AccessListItem
 * impl Hash for AccessList
2022-07-06 11:44:07 -07:00