Alexey Shekhirin
dd2c589102
feat(etherscan, middleware): implement gas endpoints and use in oracle middleware ( #621 )
...
* feat(etherscan, middleware): implement gas-related endpoints and use them in gas oracle
* cleanup deps
* better comment
* revertme: add debug print
* Revert "revertme: add debug print"
This reverts commit 63993642c4
.
* make etherscan tests serial
* run each etherscan test at least 200ms
* 200ms -> 250ms
* Revert "200ms -> 250ms"
This reverts commit 29c7f6ed9a
.
* add separate etherscan key for celo tests
* 200ms -> 250ms
* add Chain::Sepolia to match
2021-11-27 09:54:20 +02:00
Georgios Konstantopoulos
7bb90935ed
fix(solc): do not overwrite existing cache ( #629 )
...
previously if 1 file changed, it'd overwrite the existing cache on disk with just
that 1 changed file. this change reads the cache from disk and merges it with the new checksums
2021-11-26 21:16:09 +02:00
Georgios Konstantopoulos
e1476a1156
fix: remove redundant cache read ( #627 )
2021-11-26 19:02:18 +02:00
korboismoe
d77068e26a
fix: pass partial artifact cache to project compiler output ( #623 )
...
* fix: pass partial artifact cache to project compiler output
If the cache contains some artifacts but not all, the
project compiler output now contains the cached artifacts
in addition to the newly compiled artifacts.
* chore: update changelog
* fix: remove missing cache files before getting changed files
* fix: propagate error if reading cached artifacts fails
2021-11-26 18:49:19 +02:00
Georgios Konstantopoulos
ca558b08d6
fix(solc): enable sha2 asm for checksum speed ( #626 )
2021-11-26 17:29:19 +02:00
Rohit Narurkar
0b68227c38
feat: implement hex display for Bytes ( #624 )
...
* feat: implement hex display for Bytes
* chore: add changelog
* feat: impl Display, same as LowerHex
* fix: prepend 0x for hex display
2021-11-26 14:25:41 +02:00
Rohit Narurkar
86522e2b9e
feat: verify checksum before project compilation ( #614 )
...
* feat: verify checksum before project compilation
* fix: in case of a corrupt binary, avoid calling it to check version
* fix: cache releases in the global lazy
* chore: fix linting
* fix: replace a loop with straightforward if
* chore: latest svm
* fix: changes based on review comments
* chore: use published version of svm-rs
* chore: use published version of svm-rs
2021-11-26 12:30:14 +02:00
dependabot[bot]
e7fa7bab9a
chore(deps): bump syn from 1.0.81 to 1.0.82 ( #620 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.81...1.0.82 )
---
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>
2021-11-25 10:16:38 +02:00
Matthias Seitz
2c30468b70
fix(codec)!: ambiguity unit8[] and bytes ( #613 )
...
* fix: unit8 encoding
* feat: use ethers::types::Bytes for solidity bytes type
* feat: add const generic from impls
* fix: failing tests
* fix: make compatible with bytes
* update changelog
* make compatible with encoding changes
* chore rm write to file
2021-11-24 22:15:17 +02:00
x3ccd4828
3a768b9c99
Fix parse units ( #597 )
...
* fix: changed format_units to return a String and preserve the decimal
places
* chore: fix changelog
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-11-24 11:07:18 +02:00
dependabot[bot]
d54bdc9e0c
chore(deps): bump futures-executor from 0.3.17 to 0.3.18 ( #615 )
...
Bumps [futures-executor](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-executor
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-24 08:20:24 +02:00
Georgios Konstantopoulos
57da256501
chore: update changelog
2021-11-23 21:27:46 +02: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
Ivan Porto Carrero
fa0c635afe
update readme for polygon and avalanche ( #610 )
2021-11-23 13:23:42 +02:00
James Prestwich
63475cb462
docs: add note about wasm and ffi to readme ( #607 )
...
* docs: add note about wasm and ffi to readme
* Apply suggestions from code review
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-11-22 20:24:48 +02:00
Ivan Porto Carrero
1d65c9394f
add support for polygon and avalanche ( #606 )
...
* add support for polygon and avalanche, include the block explorers
* add multicall addresses for polygon
2021-11-22 11:02:28 +02:00
dependabot[bot]
1f9cd6b6c8
chore(deps): bump tracing-subscriber from 0.3.1 to 0.3.2 ( #604 )
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.1 to 0.3.2.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.1...tracing-subscriber-0.3.2 )
---
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>
2021-11-22 10:52:42 +02:00
dependabot[bot]
983da8d6aa
chore(deps): bump elliptic-curve from 0.10.6 to 0.11.1 ( #605 )
...
Bumps [elliptic-curve](https://github.com/RustCrypto/traits ) from 0.10.6 to 0.11.1.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/elliptic-curve/v0.10.6...elliptic-curve/v0.11.1 )
---
updated-dependencies:
- dependency-name: elliptic-curve
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-22 10:52:27 +02:00
univerz
ec00325aa2
revert: unify get_block_receipts for eth/parity RPCs ( #601 )
2021-11-21 18:14:35 +02:00
univerz
a68f4ec9a7
perf(contract): remove clone ( #602 )
2021-11-21 18:12:49 +02:00
Georgios Konstantopoulos
a28476dccc
fix: lowercase node client type ( #600 )
2021-11-21 18:12:40 +02:00
Matthias Seitz
cd2c9f6dd1
feat: add cargo change detection support ( #599 )
...
* feat: add cargo change detection support
* chore: allow clippy main
* chore: remove doctest main
2021-11-20 16:47:36 +02:00
Zhang Cheng
ffb1a8bf1d
chore: enable zeroize feature for k256 ( #596 )
2021-11-19 11:22:07 +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
Georgios Konstantopoulos
8a3ee415b7
feat(solc): allow specifying solc version even if auto-detect enabled ( #594 )
2021-11-18 15:10:41 +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
Luke Tchang
8eac1997f4
fix: remove const lag so it can be passed in as runtime variable ( #587 )
2021-11-16 16:03:26 -08:00
Georgios Konstantopoulos
b3fed152a4
fix(solc): do not unnecessarily query for solc version ( #586 )
...
The parameter is not used in any useful way currently, and it prevents us from using clean installations of SVM
which do not have an instantiated /Users/gakonst/.svm directory
2021-11-17 01:25:39 +02:00
Matthias Seitz
a50ee2ed46
chore: don't look for remappings on hardhat ( #585 )
2021-11-16 20:43:38 +02:00
Georgios Konstantopoulos
26a7626915
feat: add solc-tests feature for synchronous download of solc versions
2021-11-16 15:28:50 +02:00
Matthias Seitz
1da62d65d2
refactor!: make artifactoutput a trait ( #579 )
...
* feat: add artifacts trait
* add artifactsoutput trait
* deprecated old artifactoutput
* feat: better artifacts handling
* force update
* feat: update metadata artifacts
* feat: add default to types
* feat: make useliteralcontent optional
* feat: replace ProjectCompilerOutput with struct
* docs
* add output function
* feat: add Artifact trait for reading Abi/Bytes from an artifact
* feat(solc): replace () for empty artifacts with a conditional check
As discussed with @mattsse the abstraction here might not be super clean, so we should revisit this if we do not like it
* chore: fix doctest
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-11-16 01:29:06 +02:00
Georgios Konstantopoulos
8870aff4b5
feat: add from_str for Remapping ( #583 )
2021-11-14 19:34:32 +01:00
Matthias Seitz
d53ca0ea56
feat: make reqwest optional but enabled by default ( #580 )
...
* feat: make reqwest optional but enabled by default
* update changelog
2021-11-14 14:27:05 +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
Alexey Shekhirin
2723e46044
chore: bump ethers-core to 0.5.5 ( #582 )
2021-11-14 14:24:40 +02:00
Georgios Konstantopoulos
8f9c47dbdb
feat: auto-detect solc remappings ( #574 )
...
* feat: add remappings detection
* feat: add remappings to compiler settings
* fix: check for error if no contract was compiled
* feat: configure remappings and provide them to compiler settings
* test: check remappings
* chore: clippy lints
* fix: tests (#578 )
* Update ethers-solc/src/remappings.rs
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2021-11-13 21:31:55 +02:00
dependabot[bot]
d28b5d847e
chore(deps): bump hex-literal from 0.3.3 to 0.3.4 ( #573 )
...
Bumps [hex-literal](https://github.com/RustCrypto/utils ) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/RustCrypto/utils/releases )
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.3.3...hex-literal-v0.3.4 )
---
updated-dependencies:
- dependency-name: hex-literal
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-12 15:42:11 +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
Alexey Shekhirin
16c5d33716
bump `ethereum-types`' `impl-serde` to 0.3.2 ( #569 )
...
* bump etherum-types' impl-serde to 0.3.2
* update max solc version
2021-11-10 14:42:50 +02:00
Luke Tchang
4db37cad84
fix: adds TimeLag::new() ( #568 )
2021-11-10 14:38:19 +02:00
Georgios Konstantopoulos
bfdf70cbea
feat(solc): allow providing --allow-args ( #553 )
...
* feat(solc): allow providing additional arguments
* feat(solc): allow providing --allow-args
* feat: more allow paths integration (#565 )
* feat: more allow paths integration
* Update ethers-solc/src/compile.rs
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
* chore: only enable macros if feature is enabled
* test: add tests for multiple libs
* chore: fix solc test
* chore: only pas --allow-paths if there are any paths needed
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2021-11-08 22:11:45 +02:00
Matthias Seitz
dbea856e8c
fix: lift macros feature to lib level ( #567 )
2021-11-08 22:08:03 +02:00
dependabot[bot]
3d45a842b9
chore(deps): bump cargo_metadata from 0.14.0 to 0.14.1 ( #563 )
...
Bumps [cargo_metadata](https://github.com/oli-obk/cargo_metadata ) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/oli-obk/cargo_metadata/releases )
- [Commits](https://github.com/oli-obk/cargo_metadata/compare/v0.14.0...0.14.1 )
---
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>
2021-11-08 09:44:04 +00: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
Georgios Konstantopoulos
906c504f1f
ci: remove failing workflow
2021-11-06 19:34:18 +00:00
Georgios Konstantopoulos
b61adcfd30
chore(solc): fix flaky integration test
...
When running integration tests, the `cfg(test)` is not triggered, so we
added a `tests` feature in the code. However, we did not include it
in the actual features of the crate, so it was not getting triggered
when the `--all-features` tests were running.
2021-11-05 18:23:47 +00:00
Georgios Konstantopoulos
03c109fb4d
ci: load rinkeby privkey from envvar instead of secrets
...
loading it from secrets makes it impossible to run CI tests from 3rd parties
2021-11-05 18:07:54 +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