DaniPopes
404422e883
feat(core): roundtrip serde + to/from strings ( #2270 )
...
* feat(core): roundtrip serde + to/from strings
* docs: update CHANGELOG.md
2023-03-16 13:28:40 -07:00
DaniPopes
439a0c7de0
chore(deps): bump and use workspace dependencies ( #2222 )
...
* chore: update all deps
* chore: update dependabot
* chore: separate ethers package from workspace
* chore: package metadata
* chore: use package.*.workspace = true
* fix: docs.rs build
* chore: update examples manifests
* chore: use workspace dependencies for ethers-* crates
* fix: test
* chore: use workspace dependencies for all dependencies
* chore: pin rust-crypto
* chore: add license field to example crates
* fixes
* more fixes
* fix: test
* last fixes
* fix: wasm
* fix: docs.rs build
* fix
* fix: wasm-pack error
see also https://github.com/rustwasm/wasm-pack/issues/1238
* fix: wasm deps and example
* ci: update
* fix: wasm tests
* fix: eip712 tests
* fix: windows ci
* fix
* chore: update docsrs metadata
* chore: bump version to match crates.io
* chore: rm bad release.toml config
* chore: rm release.toml
bad configuration
* chore: add exclude to workspace
* fix: middleware
* fix: solc feature flags
* chore: run cargo upgrade
* chore: update deps
* chore: update remaining deps
* undo fix
* update lock
* bump yubi
* fix: update coins-* and fix spki breaking changes
2023-03-16 12:28:35 -07:00
Georgios Konstantopoulos
18a049b4c4
chore: bump crypto deps ( #2260 )
...
* chore(core): bump k256
* fix: use correct recovery api
* fix(signers): use correct apis
* chore(signers): bump elliptic curve
* feat: use PreHashSigner
* feat: bump yubihsm and adjust for breakages
* chore: clippy
2023-03-14 23:13:46 -07:00
dependabot[bot]
6c7e7ff516
chore(deps): bump proc-macro2 from 1.0.51 to 1.0.52 ( #2252 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.51...1.0.52 )
---
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>
2023-03-13 12:42:50 -07:00
Georgios Konstantopoulos
941d3908d9
(cargo-release) version 2.0.0
2023-03-13 12:38:25 -07:00
DaniPopes
4f362a7dd8
feat(core): add implementations to Opcode ( #2243 )
...
* chore: mv ..
* feat(core): add implementations to Opcode
* docs: update swapN docs
* test: disable PUSH0 testcase
* update test
2023-03-09 13:59:28 -08:00
DaniPopes
ce26dfc0d6
feat: add Boba chain ( #2236 )
...
* fix: etherscan url order
* feat: add Boba chain
2023-03-09 13:58:15 -08:00
DaniPopes
f9086e703c
fix: docsrs builds final ( #2235 )
...
* fix
* fix: middleware
* fix: update rustc flags
* docs: add comment
2023-03-08 14:58:44 -08:00
harpocryptes
72428503cf
i256: Fix logical errors in doc comments for is_negative and is_zero ( #2218 )
2023-03-05 12:19:12 -08:00
Matthias Seitz
a4f1a7bb3d
test: simplify test cleanup ( #2220 )
2023-03-05 12:17:25 -08:00
DaniPopes
86a9e7c3af
fix: docs.rs build ( #2221 )
...
* fix: docs.rs build
* fix: test
2023-03-05 12:16:40 -08:00
DaniPopes
da743fc8b2
ci/test: improve CI jobs and tests ( #2189 )
...
* ci: move to scripts directory
* nits
* ci: improve main CI jobs
* fix: install script
* fix
* fix: use curl for windows installation
* fix: wasm typo
* tests: move to single binary
* chore: clippy
* chore: clippy
* chore: clippy
* fix: test command
* fix: quote tests
* update script
* fix: action exclude
* fix: dev deps
* fix: only run wasm in own job
* ci: add aarch64 targets
* test: rm useless test
* ci: update security audit
* ci: add deny CI
* chore: rm unused audit.toml
* chore: update geth.rs
* ci: remove unusable targets
* fix: install script path
* fix: wasm
* improve script
* fix: failing ci
* fix: contract tests
* ci: improve install script
* update middleware tests
* move integration etherscan tests to tests/ dir
* fix: eip2930 access_list field name
* add pendingtransaction must_use
* add random anvil comment
* ci: add miri job
* ci: simplify
* fixci
* Revert "add pendingtransaction must_use"
This reverts commit 770b21b4a3
.
* fix: macos script
* fix: use curl in script
* unused ci
* update script
* fix wasm
* rm_miri
* fix: signer test
* fix: wasm ci
* fix: ipc test
* fix: live celo tests
* fix: abi online source test
* fix: windows paths in test
* chore: update serial_test
* ci: run live tests separately
* fix: provider tests
* fix: unused var
* fix: feature
* fix merge
* fix: etherscan key tests
* ci: rm duplicate audit
* fix: split etherscan test ci
* fix: etherscan test
* fix: generate multiple unused ports
* fix: source test
* fix: udeps
* rm unused
2023-02-28 17:26:27 -07:00
OliverNChalk
34775178f9
feat: deseralize other fields on tx receipts ( #2209 )
2023-02-28 17:22:39 -07:00
Dan Cline
9c09c2d98b
fix(core): set miner.etherbase in clique mode ( #2210 )
...
* fix(core): set miner.etherbase in clique mode
* https://github.com/ethereum/go-ethereum/pull/26413 caused the default
clique configuration for the GethInstance to fail to start, because
we did not pass a `miner.etherbase` flag on startup
* adds a `miner.etherbase` flag with the clique signer address as the
argument
* use format str instead of to_string
* add comment on Debug
* update is_clique comment for miner.etherbase
* fix first etherbase flag
* cargo fmt
2023-02-28 17:21:44 -07:00
James Prestwich
ded611e714
feature: contract revert trait ( #2182 )
...
* feature: contract revert trait
* fix: proper link to abigen in docs
* fix: don't borrow Bytes, better valid_slector
* fix: mattsse's nits
* opt: hardcode selector for Error(string)
* fix: add docstring to RevertString
* docs: enhance docs on ContractRevert
* chore: add doc on decoding error reverts as strings
* docs: more docstring on ContractRevert
* fix: fix try_into invocation
---------
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-02-28 00:59:32 -07:00
Amean Asad
47b56a65b1
feat: add filecoin chains ( #2177 )
...
* feat: add filecoin chains
* formatting
* fix: add missing match
---------
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-02-27 16:00:04 -07:00
Dan Cline
537d0a9deb
fix(core): properly parse genesis alloc storage ( #2205 )
...
* fix(core): properly parse genesis alloc storage
* Previously we were not properly parsing the storage field of
GenesisAlloc. The first issue was in using serde(flatten), which is
just incorrect because storage is not encoded flattened. The second
issue was in the parsing of H256 keys and values. Some of the storage
values in hive genesis examples were encoded in less than 64 hex
characters, such as the string `0x12`. This would not succeed normal
H256 parsing.
* Introduce from_unformatted_hex_map to properly deserialize the
storage map.
* Modify existing genesis parsing tests to check parsed storage and
code values against expected values.
* Introduce new genesis parsing test from the hive smoke tests,
checking full struct equality.
* remove unused from_unformatted hex
* make clippy happy
2023-02-27 15:22:01 -07:00
DaniPopes
1861b98896
chore: move etherscan api key env var matching to Chain enum ( #2204 )
...
* fix: mainnet, optimism blocktimes
* chore: move etherscan api key env var matching to Chain enum
* docs: missing exhaustiveness comment
2023-02-27 13:14:36 -07:00
dependabot[bot]
59781a4e62
chore(deps): bump tempfile from 3.3.0 to 3.4.0 ( #2200 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases )
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS )
- [Commits](https://github.com/Stebalien/tempfile/commits )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 13:03:47 -07:00
dependabot[bot]
f577751615
chore(deps): bump syn from 1.0.108 to 1.0.109 ( #2202 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.108 to 1.0.109.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.108...1.0.109 )
---
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>
2023-02-27 13:03:34 -07:00
DaniPopes
203e350940
docs: fix broken links, update documentation ( #2203 )
...
* docs: fix broken links
* docs: update READMEs and module-level documentation
2023-02-27 13:03:17 -07:00
dependabot[bot]
7d54e3099c
chore(deps): bump num_enum from 0.5.10 to 0.5.11 ( #2184 )
...
Bumps [num_enum](https://github.com/illicitonion/num_enum ) from 0.5.10 to 0.5.11.
- [Release notes](https://github.com/illicitonion/num_enum/releases )
- [Commits](https://github.com/illicitonion/num_enum/compare/0.5.10...0.5.11 )
---
updated-dependencies:
- dependency-name: num_enum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-24 16:45:22 -08:00
DaniPopes
f59153ba66
fix(core): i256 docs ( #2187 )
...
* fix(core): i256 docs
* add doc
2023-02-24 16:44:47 -08:00
DaniPopes
7e12f3ba36
feat(core): improve I256 implementation ( #2180 )
...
* feat(core): improve I256 implementation
* chore: reorganize impls
* chore: update docs, add attributes, use Self
* fix: signum
* chore: use inline(always), update implementations
* fix: use usize for shifting, add more shift ops
* feat: make arithmetic ops generic to match U256
* chore: clippy
* chore: return
2023-02-23 16:21:41 -08:00
dependabot[bot]
48dc4b1ee2
chore(deps): bump syn from 1.0.107 to 1.0.108 ( #2178 )
2023-02-23 13:15:40 -08:00
James Prestwich
2090bf560e
Expose contract revert errors in the ContractError struct ( #2172 )
...
* feature: spelunk for revert errors
* feature: bubble up revert to contract error
* feature: bubble up reverts to multicall
* fix: correctly remove signature when deserializing EthErrors
* chore: remove redundant test
* chore: clippy
* fix: allow empty revert string
* docs: add all missing rustdoc for ethers-contract
* chore: rustfmt
* chore: Changelog
* fix: danipope test comment
2023-02-22 14:52:25 -08:00
James Prestwich
ee5e3e52c0
fmt: run rustfmt ( #2176 )
2023-02-21 16:52:20 -08:00
DaniPopes
e55b8116f3
feat(contract): improve Multicall result handling ( #2164 )
...
* nits
* clippy
* ordering
* move
* chore: edition 2021
* chore: detokenize nit
* feat(contract): improve Multicall result handling
* docs: update CHANGELOG.md
* feat: make fields public
* chore: clippy
2023-02-20 18:50:28 -08:00
DaniPopes
3732de844c
fix(abigen): builtin trait derives ( #2170 )
...
* fix(abigen): builtin trait derives
* refactor: EthDisplay
* feat(derive): improve type detection
* chore: cleanup
* chore: edition 2021
* chore: clippy
* chore: use unreachable
2023-02-20 16:27:43 -08:00
dependabot[bot]
2f85e73049
chore(deps): bump num_enum from 0.5.9 to 0.5.10 ( #2168 )
...
Bumps [num_enum](https://github.com/illicitonion/num_enum ) from 0.5.9 to 0.5.10.
- [Release notes](https://github.com/illicitonion/num_enum/releases )
- [Commits](https://github.com/illicitonion/num_enum/compare/0.5.9...0.5.10 )
---
updated-dependencies:
- dependency-name: num_enum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 16:17:32 -08:00
Muhammad Syahrul Nizam
33ed94851c
chore: added canto network ( #2171 )
2023-02-20 13:51:06 -08:00
Dan Cline
228f944726
use Option for CliqueConfig fields ( #2162 )
2023-02-17 12:01:12 -08:00
dependabot[bot]
69edf3b49e
chore(deps): bump once_cell from 1.17.0 to 1.17.1 ( #2156 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.0 to 1.17.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.0...v1.17.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-15 10:55:04 -08:00
WillQ
fd83e203b4
feat: add debug for geth default api ( #2140 )
2023-02-15 10:54:58 -08:00
DaniPopes
a69036f07b
fix(core): block FromStr implementation ( #2155 )
2023-02-14 13:15:58 -08:00
Dan Cline
a064657234
fix(core): test hive genesis parsing ( #2145 )
...
* add genesis tests from hive
* add another genesis from hive
* add execution-apis genesis
* add correct u64 hex decoding in GenesisAccount
* use default chainid of 1 without config
* add genesis test field asserts
* use better serde(default) settings
2023-02-13 17:06:57 -08:00
Matthias Seitz
a474a95cc5
chore: use arbiscan urls for arbitrum goerli ( #2127 )
2023-02-10 11:51:32 -08:00
dependabot[bot]
2c2ecd917c
chore(deps): bump proc-macro2 from 1.0.50 to 1.0.51 ( #2117 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.50 to 1.0.51.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.50...1.0.51 )
---
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>
2023-02-07 11:03:54 -08:00
YuFei Wang
14be402f40
feat: add support for Geth built-in tracer and config ( #2121 )
...
* feat: add 4byteTracer
* feat: add prestateTracer
* feat: add noopTracer
* refactor: geth tracer layout
* feat: call tracer config
* fix: compatible with legacy call trace
* feat: pre state tracer config
* test: serialize/deserialize tracer
* refactor: deserialize type
* style: update refs
* chore: update CHANGELOG.md
* style: json string to object
2023-02-07 10:50:44 -08:00
James Prestwich
e5e4da07c5
feature: allow signature to recover typed_data payloads ( #2120 )
...
* feature: allow signature to recover typed_data payloads
* fix: under feature flag and Changelog
* fix: undo accidental doc mangling
2023-02-06 13:27:35 -08:00
Matthias Seitz
0bb6f51082
chore: add convenient from impls ( #2112 )
2023-02-05 17:33:25 -08:00
DaniPopes
cabb15e346
feat(abi): packed encoding ( #2104 )
...
* feat(abi): packed encoding
* clippy
* fix: use least number of bits for int/uint
* docs: update CHANGELOG.md
* fix: doctest
2023-02-04 19:23:27 -08:00
Matthias Seitz
a544d4076c
feat: add DerefMut for OtherFields ( #2109 )
2023-02-02 11:12:52 -08:00
dependabot[bot]
1b4b35d44d
chore(deps): bump cargo_metadata from 0.15.2 to 0.15.3 ( #2101 )
...
Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata ) from 0.15.2 to 0.15.3.
- [Release notes](https://github.com/oli-obk/cargo_metadata/releases )
- [Changelog](https://github.com/oli-obk/cargo_metadata/blob/main/CHANGELOG.md )
- [Commits](https://github.com/oli-obk/cargo_metadata/compare/v0.15.2...0.15.3 )
---
updated-dependencies:
- dependency-name: cargo_metadata
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:32:41 -08:00
dependabot[bot]
7e11f54ab0
chore(deps): bump bytes from 1.3.0 to 1.4.0 ( #2100 )
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0 )
---
updated-dependencies:
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 15:32:32 -08:00
Vid Kersic
7e7f9041b3
feat: add support for js tracer to geth trace, fix different return types ( #2064 )
...
* feat: add support for js tracer to geth trace, fix different return types
* chore: fix clippy
* chore: update geth structs
2023-01-31 09:58:06 -08:00
DaniPopes
9b7d184fd6
feat(core): more type parsing ( #2095 )
...
* feat(core): more type parsing
* c
* doc
2023-01-31 09:37:33 -08:00
DaniPopes
93e1850646
refactor/feat(abigen,types): add bytes::Bytes static methods, refactor struct declaration ( #2089 )
...
* refactor: final struct expansion
* feat(types): implement bytes::Bytes static methods
* feat: use static Bytes for bytecode
* chore: add rustfmt skip directive
* clippy
2023-01-30 12:12:35 -08:00
Matthias Seitz
71c6fd4928
feat: add convenience impl From Log ( #2087 )
2023-01-30 12:06:46 -08:00
Dan Cline
9ebc5b378c
feat(core): expose genesis and private key in Geth ( #2091 )
...
* feat(core): expose genesis and private key in Geth
* expose the genesis and clique_private_key fields in GethInstance
* add tests which initialize geth with clique_private_key, making sure
the genesis and clique_private_key fields are exposed on the
GethInstance
* add clique p2p port test
* refactor tests to clean up properly
2023-01-30 11:57:34 -08:00