Matthias Seitz
ab8b5233d2
fix: exclude asm for msvc ( #679 )
2021-12-12 15:09:15 +02:00
Matthias Seitz
275f7179bf
feat(solc): add hardhat artifact support ( #677 )
...
* feat: add hardhat artifact support
* test: add hh test
* feat: add hh fallback artifact handler
* add format detection
* chore: update changelog
* chore: typos
2021-12-11 19:39:39 +02:00
Matthias Seitz
0769174b40
chore: allow unused http_get ( #674 )
...
* chore: allow unused http_get
* Update ethers-contract/ethers-contract-abigen/src/util.rs
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
* chore: update cfgs
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-12-11 02:37:18 -07:00
x3ccd4828
0e133e4a87
fix: format_units return was truncating the decimal places if there were leading zeros ( #675 )
2021-12-11 00:17:21 -07:00
Matthias Seitz
38e18463dc
feat(solc): extend Artifact trait ( #673 )
...
* feat(solc): extend Artifact trait
* chore: update changelog
* chore: rustfmt
2021-12-10 12:38:44 -07:00
Matthias Seitz
ba53fd1466
ci: bump solc everywhere ( #672 )
2021-12-10 11:30:19 -07:00
Matthias Seitz
f48fd88a97
fix(solc): skip 0x prefix for deserialize bytes decoding ( #671 )
2021-12-10 11:20:30 -07:00
Rohit Narurkar
991cda3f33
fix: naming and default impl ( #665 )
2021-12-10 10:22:25 -07:00
Matthias Seitz
adc3d858d2
ci: bump solc 0.8.10 ( #670 )
2021-12-10 10:21:07 -07: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
Ivan Porto Carrero
a8b0885c25
add support for polygonscan and snowtrace for abigen ( #666 )
2021-12-10 09:05:45 -07:00
Matthias Seitz
ab949f7858
fix: add allow paths ( #667 )
2021-12-10 08:50:15 -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
Matthias Seitz
59cf991828
feat(abigen): use structs for outputs ( #664 )
...
* feat(abigen): use structs for outputs
* update CHANGELOG
* make clippy happy
* fix lints
2021-12-09 16:00:59 -07:00
dependabot[bot]
f0a8f01465
chore(deps): bump md-5 from 0.9.1 to 0.10.0 ( #660 )
...
Bumps [md-5](https://github.com/RustCrypto/hashes ) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/md5-v0.9.1...md2-v0.10.0 )
---
updated-dependencies:
- dependency-name: md-5
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-12-09 10:45:34 -07:00
laizy
eeaab21049
add buffer for file reading ( #662 )
2021-12-09 10:45:13 -07:00
Matthias Seitz
0b1f3b1dcf
feat(solc): add support for library linking ( #656 )
...
* feat(solc): add support for library linking
* chore: update changelog
* fixbreaking compactref api
* rm check
* return Bytes instead
* revert changes
* simplify resolve
* test: add lost tests
2021-12-08 02:38:29 +02:00
Daniil Naumetc
fffb965f2f
fix: nonce too low for different providers ( #655 )
2021-12-07 01:15:51 +02:00
Matthias Seitz
a9a47a4cd6
feat(solc): add support for compiling solc in parallel ( #652 )
...
* docs: more docs and tracing
* feat: add compile many
* feat: add compile many
* fix: make fields optional
* chore: add num_cpus and criterion
* add compile benchmark
* feat: add job option
* feat: add parallel compilation support
* use ful utilization
* chore: move pathmap to cache
* fix: async write all
* chore: clean up
2021-12-07 01:02:13 +02:00
dependabot[bot]
788f59623d
chore(deps): bump elliptic-curve from 0.11.1 to 0.11.5 ( #653 )
...
Bumps [elliptic-curve](https://github.com/RustCrypto/traits ) from 0.11.1 to 0.11.5.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/elliptic-curve-v0.11.1...elliptic-curve-v0.11.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 14:47:27 +02:00
dependabot[bot]
1a6aaf3362
chore(deps): bump proc-macro2 from 1.0.32 to 1.0.33 ( #654 )
...
Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2 ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/proc-macro2/releases )
- [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.32...1.0.33 )
---
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>
2021-12-06 14:47:20 +02:00
Matthias Seitz
279a2c316c
feat(abigen): support overloaded functions with different casing ( #650 )
...
* fix: support overloaded functions with different casing
* chore: fmt
* chore: typos
* feat: better method alias handling
2021-12-05 12:36:49 -08:00
Matthias Seitz
f10b47e600
docs: more docs and tracing ( #651 )
2021-12-05 15:27:37 +02:00
Matthias Seitz
23c356ce38
feat(solc): add clean up function ( #649 )
2021-12-04 19:27:30 +02:00
Matthias Seitz
0464ac9d46
feat(solc): improve solc detection and reduce install effort ( #648 )
2021-12-04 09:13:58 -08:00
Matthias Seitz
2a3fcbbb40
feat(abigen): use AbiType when parsing Function abi signature fails at compile time ( #647 )
...
* refactor: improved from token impl
* feat: add AbiType support
* feat: no need for expect
* feat: add missing abiarraytype impl
* test: add struct derive test
* chore: rustfmt
* chore: update changelog
* chore: rustfmt
2021-12-04 06:19:00 +02:00
James Prestwich
0f6d3688c2
feature: impl Default for eip2718::TypedTransaction ( #646 )
2021-12-03 22:03:49 +02:00
James Prestwich
437f9de92f
fix: specify home-dep as non-wasm instead of x86-only ( #645 )
2021-12-03 22:03:26 +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
Matthias Seitz
7da5b64cfd
feat: add moonbeam support ( #644 )
...
* feat: add moonbeam support
* typos
2021-12-03 10:05:38 -08:00
Matthias Seitz
ad68337113
fix: make ethers-wasm workspace member ( #642 )
...
* fix: make ethers-wasm workspace member
* rustfmt
* chore: allow clippy all
* chore: make ethers-wasm non default member
* ci: only clippy default members
2021-12-03 19:27:55 +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
Georgios Konstantopoulos
24f9bd0f4f
chore: makes etherscan::Result pub(crate) ( #638 )
2021-12-02 02:54:16 +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
dependabot[bot]
28094e8a83
chore(deps): bump tracing-subscriber from 0.3.2 to 0.3.3 ( #635 )
...
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing ) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.2...tracing-subscriber-0.3.3 )
---
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-30 09:59:17 +02:00
Matthias Seitz
133382d034
fix: check all import styles ( #634 )
2021-11-29 23:45:07 +02:00
Matthias Seitz
5dfc1bd171
fix: source parsing for local paths ( #633 )
2021-11-29 19:02:11 +02:00
Matthias Seitz
e15252dd8f
fix: conditional http support ( #632 )
...
* fix: conditional http support
* chore: update changelog
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-11-29 16:31:39 +02:00
Matthias Seitz
f6e803b4eb
fix: use CARGO_MANIFEST_DIR as root for relative paths in abigen! ( #631 )
...
* feat: resolve env vars in abigen paths
* docs: add env interpolation note
* chore: docs
2021-11-29 15:37:11 +02:00
Georgios Konstantopoulos
d06bfdc15c
solc: add tracing ( #628 )
...
* feat(solc): add tracing
* chore: apply suggestions from code review
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
* chore: fix compilation error
* chore: adjust log
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2021-11-28 19:14:34 +02:00
korboismoe
41f8e295a0
fix: remove changed artifacts from the cache ( #630 )
...
Duplicate artifacts will be returned if there is a
changed artifact that was already present in the
cache
2021-11-28 14:33:24 +02:00
Matthias Seitz
9b6cc37ca0
fix: method deduplication ( #619 )
...
* fix: method deduplication
* fix: handle name conflicts in parameters
* fix: order of numerated aliases
2021-11-27 14:31:36 +02:00
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