Commit Graph

632 Commits

Author SHA1 Message Date
Alexey Shekhirin 4036f45f3d
feat(contract, abigen): support Hardhat ABI format (#478) 2021-09-30 11:27:24 +03:00
Georgios Konstantopoulos a9157e1543
fix(human-readable-abi): allow functions without output args (#477) 2021-09-29 17:28:30 +03:00
Alexey Shekhirin 5693b7019e
docs: fix broken ethers-js link (#475) 2021-09-28 22:40:36 +03:00
Alexey Shekhirin 7a10944507
feat(core, abi): support shorthand function declarations (#472)
* feat(core, abi): support shorthand functions

* simplify a bit but not much lol

* refactor a bit, beautify a lot

* fail on absent output parens for shorthand

* chore: fix clippy lints

* fix: parse shorthand functions in multiline parsing

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-09-28 13:24:00 +03:00
Georgios Konstantopoulos ede76a2feb
fix(solc): normalize EVM version across solc versions (#473)
* fix(solc): normalize EVM version across solc versions

* fix: return semver::Version from solc::version instead of String

* fix off-by-1 error in solc version parsing
2021-09-28 02:25:45 +03:00
Georgios Konstantopoulos 1fb3fbfef6 chore: expose solc module 2021-09-27 20:48:18 +03:00
dependabot[bot] 558227cefd
chore(deps): bump instant from 0.1.10 to 0.1.11 (#467)
Bumps [instant](https://github.com/sebcrozet/instant) from 0.1.10 to 0.1.11.
- [Release notes](https://github.com/sebcrozet/instant/releases)
- [Commits](https://github.com/sebcrozet/instant/compare/v0.1.10...v0.1.11)

---
updated-dependencies:
- dependency-name: instant
  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-09-27 13:27:49 +03:00
dependabot[bot] 1260caa4d2
chore(deps): bump coins-ledger from 0.4.0 to 0.4.2 (#470)
Bumps [coins-ledger](https://github.com/summa-tx/bitcoins-rs) from 0.4.0 to 0.4.2.
- [Release notes](https://github.com/summa-tx/bitcoins-rs/releases)
- [Changelog](https://github.com/summa-tx/bitcoins-rs/blob/main/release.toml)
- [Commits](https://github.com/summa-tx/bitcoins-rs/compare/coins-ledger-v0.4.0...coins-ledger@0.4.2)

---
updated-dependencies:
- dependency-name: coins-ledger
  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-09-27 13:27:41 +03:00
Georgios Konstantopoulos 8574e6a376
release: 0.5.3 (#471)
* release: version 0.5.3

* chore: update changelog
2021-09-27 13:20:10 +03:00
Georgios Konstantopoulos 7fdc47e8e5
chore: bump ethabi (#469) 2021-09-24 21:05:58 -04:00
dependabot[bot] 1d149d70ef
chore(deps): bump ethabi from `ef19ba9` to `1da9de9` (#464)
Bumps [ethabi](https://github.com/rust-ethereum/ethabi) from `ef19ba9` to `1da9de9`.
- [Release notes](https://github.com/rust-ethereum/ethabi/releases)
- [Commits](ef19ba91ab...1da9de9c23)

---
updated-dependencies:
- dependency-name: ethabi
  dependency-type: direct:production
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-22 22:50:28 -05:00
dependabot[bot] 3d26b84ee0
chore(deps): bump nth-check from 2.0.0 to 2.0.1 in /examples/ethers-wasm (#466)
Bumps [nth-check](https://github.com/fb55/nth-check) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](https://github.com/fb55/nth-check/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-22 22:50:21 -05:00
Georgios Konstantopoulos fc33b9f620 chore: update changelog 2021-09-20 16:08:43 -05:00
Odysseas Lamtzidis 22367988fd
Add Decimal support to ethers::utils::parse_units (#463)
* implemnet parse_units with dec support

* Add doc tests

* add decimal support to parse_ethers()

* add unit tests
2021-09-20 16:02:45 -05:00
dependabot[bot] a92fe13677
chore(deps): bump wasm-bindgen-futures from 0.4.27 to 0.4.28 (#456)
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen) from 0.4.27 to 0.4.28.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/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>
2021-09-20 09:56:28 -05:00
dependabot[bot] a737f56fac
chore(deps): bump tracing from 0.1.27 to 0.1.28 (#461)
Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.27 to 0.1.28.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.27...tracing-0.1.28)

---
updated-dependencies:
- dependency-name: tracing
  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-09-20 09:56:10 -05:00
dependabot[bot] c6048437ff
chore(deps): bump tracing-subscriber from 0.2.23 to 0.2.24 (#462)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.2.23 to 0.2.24.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.23...tracing-subscriber-0.2.24)

---
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-09-20 09:55:58 -05:00
dependabot[bot] a517dc04b0
chore(deps): bump web-sys from 0.3.54 to 0.3.55 (#455)
Bumps [web-sys](https://github.com/rustwasm/wasm-bindgen) from 0.3.54 to 0.3.55.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/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>
2021-09-20 09:55:50 -05:00
Odysseas Lamtzidis 80adc08860
Change wei from 1 to 0 (#460)
1 WEI = 10^0 WEI, not 10^1
2021-09-20 09:53:37 -05:00
dependabot[bot] 7abe23b9f3
chore(deps): bump wasm-bindgen from 0.2.77 to 0.2.78 (#454)
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) from 0.2.77 to 0.2.78.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.77...0.2.78)

---
updated-dependencies:
- dependency-name: wasm-bindgen
  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-09-18 13:24:23 -05:00
Georgios Konstantopoulos 10843a774e chore: cargo fmt 2021-09-18 01:01:40 -05:00
drewstone 83e953bc2f
Add getProof to provider (#459)
* Add getProof to provider

* Format updates

* Add docs

* Remove fill_tx method, not sure how it got there

* Fix removed Trace type

* Remove test, eth_getProof not supported by ganache
2021-09-18 01:01:02 -05:00
dependabot[bot] b915f93339
chore(deps): bump tracing-subscriber from 0.2.22 to 0.2.23 (#458)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.2.22 to 0.2.23.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.22...tracing-subscriber-0.2.23)

---
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-09-17 19:16:23 -05:00
James Prestwich 57736ed232
feature: first draft timelag middleware (#457)
* feature: first draft timelag middleware

* chore: add 1 line docstrings

* fix: address PR comments

- imports to top of file
- expect with message
- fill_transaction fix

* bug: fix fill_transaction error return

* refactor: make receipt filtering less ugly

* fix: make trait impl wasm compatible

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-09-17 12:38:35 -05:00
dependabot[bot] ce641298bb
chore(deps): bump ethabi from `8bd90d1` to `ef19ba9` (#452)
Bumps [ethabi](https://github.com/rust-ethereum/ethabi) from `8bd90d1` to `ef19ba9`.
- [Release notes](https://github.com/rust-ethereum/ethabi/releases)
- [Commits](8bd90d1395...ef19ba91ab)

---
updated-dependencies:
- dependency-name: ethabi
  dependency-type: direct:production
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-15 23:34:23 +03:00
dependabot[bot] d35686c257
chore(deps): bump spki from 0.4.0 to 0.4.1 (#453)
Bumps [spki](https://github.com/RustCrypto/formats) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/RustCrypto/formats/releases)
- [Commits](https://github.com/RustCrypto/formats/commits/spki/v0.4.1)

---
updated-dependencies:
- dependency-name: spki
  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-09-15 13:55:44 +03:00
Georgios Konstantopoulos 79bf896a2c
test: fix duplicate tx flakes by rotating through a list of wallets (#451)
* test: fix duplicate tx flakes by rotating through a list of wallets

* fix: make typed_txs test more robust

* fix: ensure wallets are loaded in a thread-safe way

without fetch_add, it's possible that 2 loads happen for the same id before the `store` mutex is acquired'
2021-09-14 16:40:15 +03:00
dependabot[bot] 67b70b382f
chore(deps): bump web-sys from 0.3.53 to 0.3.54 (#438)
Bumps [web-sys](https://github.com/rustwasm/wasm-bindgen) from 0.3.53 to 0.3.54.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/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>
2021-09-14 14:22:22 +03:00
dependabot[bot] 6e1f56abf9
chore(deps): bump serde-aux from 2.2.0 to 2.3.0 (#439)
Bumps [serde-aux](https://github.com/vityafx/serde-aux) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/vityafx/serde-aux/releases)
- [Commits](https://github.com/vityafx/serde-aux/commits)

---
updated-dependencies:
- dependency-name: serde-aux
  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-09-14 14:22:01 +03:00
dependabot[bot] 86cfd9e472
chore(deps): bump tracing from 0.1.26 to 0.1.27 (#449)
Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.26 to 0.1.27.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.26...tracing-0.1.27)

---
updated-dependencies:
- dependency-name: tracing
  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-09-14 14:21:48 +03:00
dependabot[bot] 10c1503430
chore(deps): bump tracing-subscriber from 0.2.21 to 0.2.22 (#450)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.2.21 to 0.2.22.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.21...tracing-subscriber-0.2.22)

---
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-09-14 14:21:38 +03:00
Georgios Konstantopoulos 566f4c1f34 fix: remove solc path canonicalization 2021-09-13 23:58:10 +03:00
Georgios Konstantopoulos 64294d1c6a ci: add cache 2021-09-13 23:48:03 +03:00
Georgios Konstantopoulos cf3339066b fix(solc): canonicalize custom paths 2021-09-13 23:46:37 +03:00
Georgios Konstantopoulos a6918aed2b
fix(ethabi): breaking changes and force enable serialize for eth-types (#448)
* fix(ethabi): breaking changes and force enable serialize for eth-types

* chore(ethereum-types) enable rlp
2021-09-13 20:43:54 +03:00
dependabot[bot] f2e41c0500
chore(deps): bump sha2 from 0.9.6 to 0.9.8 (#443)
Bumps [sha2](https://github.com/RustCrypto/hashes) from 0.9.6 to 0.9.8.
- [Release notes](https://github.com/RustCrypto/hashes/releases)
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.9.6...sha2-v0.9.8)

---
updated-dependencies:
- dependency-name: sha2
  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-09-13 15:36:10 +03:00
dependabot[bot] 3823f025f9
chore(deps): bump tracing-subscriber from 0.2.20 to 0.2.21 (#447)
Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.2.20 to 0.2.21.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.20...tracing-subscriber-0.2.21)

---
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-09-13 15:36:00 +03:00
Georgios Konstantopoulos 77bc5aa30f
feat: expand solc capabilities / chore: update ethabi (#445)
* chore: use ethabi with bumped ethereum-types

* fix: do not use internal type in human readable abi

* fix: do not use internal type in abigen

* feat(solc): save the runtime bytecode

* feat: implement serde for CompiledContract

* feat: allow overriding solc binary path

* feat: expose providing raw file paths

* feat: do not set evm versions on old solc

* chore: use upstream ethabi
2021-09-13 15:35:50 +03:00
wolflo 90df511704
core: add utils::get_create2_address_from_hash() (#444) 2021-09-11 19:41:14 +03:00
dependabot[bot] b54f8b7d45
chore(deps): bump wasm-bindgen-futures from 0.4.26 to 0.4.27 (#441)
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen) from 0.4.26 to 0.4.27.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/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>
2021-09-09 09:20:38 +03:00
wolflo 46faf7614b
Add usage examples for hashing utilities (#436)
* core: add doctest for utils::get_create2_address()

* examples: add permit hash encoding example
2021-09-09 08:42:42 +03:00
wolflo 3754ceca48
fix cargo fmt command in Contributing.md (#437) 2021-09-09 08:36:26 +03:00
Alexis Sellier 2e195d91e1
Make 'ens' module public (#435) 2021-09-06 11:52:44 +03:00
dependabot[bot] 6a938158b6
chore(deps): bump thiserror from 1.0.28 to 1.0.29 (#433)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.28 to 1.0.29.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.28...1.0.29)

---
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>
2021-09-06 11:33:01 +03:00
dependabot[bot] c568aa62ae
chore(deps): bump tokio-util from 0.6.7 to 0.6.8 (#434)
Bumps [tokio-util](https://github.com/tokio-rs/tokio) from 0.6.7 to 0.6.8.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/commits)

---
updated-dependencies:
- dependency-name: tokio-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-09-06 11:32:53 +03:00
Matthias Seitz 32c75ab1f5
fix: cleanup lock file after exec cargo metadata (#431)
* fix: cleanup lock file after exec cargo metadata

* fix typos
2021-09-05 13:19:08 +03:00
TannrA 32ad5a6abd
Event aliasing for contract bindings (#425)
* contracts: enable event aliases for Abigen

* contract: unit tests for event aliases

* contract: cleanup expand_event function

* Address pr suggestions

* contracts: remove unnecessary clone

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

* Make clippy happy

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2021-09-03 18:57:40 +03:00
Georgios Konstantopoulos 520645c48b
chore: add changelog for #427 changes (#428) 2021-09-03 17:50:50 +03:00
Matthias Seitz bc89878e92
chore: update changelog (#429) 2021-09-03 17:50:16 +03:00
Matthias Seitz 8b5f4bfa81
fix: always treat abi type structs as tuples (#417)
* fix: always treat abi type structs as tuples

* fix: keep decoding for single field structs

* feat: unify event and struct encoding
2021-09-02 19:16:39 +03:00