Matthias Seitz
0810f043c8
chore(clippy): make clippy happy
2021-03-18 19:56:17 +01:00
Matthias Seitz
234444a567
refactor: rename event function
2021-03-18 19:34:09 +01:00
Matthias Seitz
30a85ffc76
test: update failing tests
2021-03-18 19:24:23 +01:00
Matthias Seitz
a67b30ceaf
fix: make test compile again
2021-03-18 18:40:46 +01:00
Matthias Seitz
36ac73e764
fix: switch to new Event builder
2021-03-18 18:12:21 +01:00
Matthias Seitz
cf29488aae
refactor: use fully qualified syntax during abigen
2021-03-18 16:58:13 +01:00
Matthias Seitz
855fd2deb2
feat: generate EthLogDecode implementations
2021-03-18 12:54:39 +01:00
Matthias Seitz
c4d87d11b8
feat: introduce EthLogDecode trait
2021-03-18 12:25:14 +01:00
Matthias Seitz
e071b32535
feat: add events enum generation
2021-03-18 11:24:49 +01:00
Matthias Seitz
cc96f5c0ce
refactor: use ethers as fully qualified path
2021-03-18 10:57:11 +01:00
Matthias Seitz
3e9159d834
refactor: change decode_log to take a reference
2021-03-18 10:10:36 +01:00
Matthias Seitz
2513e1f3ff
docs: document EthEvent proc macro attributes and add example
2021-03-18 09:19:31 +01:00
Matthias Seitz
e201e85486
test: check that ethevent proc macro attributes compile
2021-03-18 09:19:30 +01:00
Matthias Seitz
245c57a06e
feat: extend EthEvent with decode_log method and support indexed proc
...
macro attributes
2021-03-18 09:19:30 +01:00
dependabot-preview[bot]
021f79cb77
chore(deps): bump elliptic-curve from 0.9.4 to 0.9.5 ( #237 )
...
Bumps [elliptic-curve](https://github.com/RustCrypto/traits ) from 0.9.4 to 0.9.5.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/elliptic-curve-v0.9.4...elliptic-curve-v0.9.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-18 07:33:03 +02:00
Matthias Seitz
c525c71d96
style: remove token instead cloning them ( #236 )
2021-03-18 07:31:49 +02:00
Georgios Konstantopoulos
05d2aa8579
feat: update ethabi ( #233 )
2021-03-17 00:28:06 +02:00
Gabriel Coutinho de Paula
530bfe2b71
feat: add support for EIP-234 and EIP-1898 ( #231 )
...
* Add support for EIP-234
* Add support for EIP-1898
* Remove redundant field names
* Remove useless conversion
* Change `unwrap_or` to `unwrap_or_else`
2021-03-16 21:46:07 +02:00
Matthias Seitz
57010c1c60
feat(abigen): include ethevent proc macro in abigen code gen workflow ( #232 )
...
* fix: make EthEvent name method a trait method
* refactor: make expand methods members of Context
* fix: make AbiParser parsing non consumeable
* feat: add struct expanding
* feat: use derive(EthEvent) in abigen workflow
* test: check EthEvent in abigen macro
* test: make test compile again
* refactor: simplify and optimize abi parsing from single str
* test: add human readable abigen tests
2021-03-16 21:37:19 +02:00
Matthias Seitz
0c18f9b32c
fix: make EthEvent abi attribute work for tuple inputs ( #229 )
...
* fix: try to parse the provided abi as tuple
* test: validate ethevent abi attribute
* docs: document ethevent abi attribute
2021-03-16 10:12:32 +02:00
Matthias Seitz
7b10b76e20
feat: add EthEvent proc macro derive support ( #227 )
...
* refactor: extract error module and use error macros
* feat: add solidity struct parser
* refactor: add AbiParse and support struct parsing
* test: add more struct parsing tests
* feat: add EthAbiType proc macro derive for deriving Tokenizable trait
* test: add EthAbiType derive tests
* refactor: extract tokenizeable implementation in separate method
* chore(test): use EthAbiType derive instead implementing Detokenizeable
* feat: introduce EthEvent trait
* feat: add EthEvent proc macro derive support
* test: add proc macro derive tests
* chore: rustfmt
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-03-15 13:59:52 +02:00
Matthias Seitz
cf8e2391c8
feat: add struct parsing support for human readable ABI ( #226 )
...
* refactor: extract error module and use error macros
* feat: add solidity struct parser
* refactor: add AbiParse and support struct parsing
* test: add more struct parsing tests
2021-03-15 13:49:28 +02:00
dependabot-preview[bot]
e9e26f5e0c
chore(deps): bump reqwest from 0.11.1 to 0.11.2 ( #223 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.1 to 0.11.2.
- [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.1...v0.11.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-12 17:20:08 +02:00
Matthias Seitz
f599ae66f4
refactor: make human readable abi parsing more robust ( #225 )
...
* refactor: event parser
* refactor: function parser
* refactor: add constructor parser
* refactor: replace parsers
* style: extract event arg parsing into separate method
* fix: add missing returns statement
* chore(clippy): make clippy happy
* fix: support unnamed event argument parsing
2021-03-12 16:57:46 +02:00
dependabot-preview[bot]
08cacfeee8
chore(deps): bump serde from 1.0.123 to 1.0.124 ( #222 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.123 to 1.0.124.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-08 09:48:24 +02:00
dependabot-preview[bot]
b425e2bd9a
chore(deps): bump hex from 0.4.2 to 0.4.3 ( #220 )
...
Bumps [hex](https://github.com/KokaKiwi/rust-hex ) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases )
- [Commits](https://github.com/KokaKiwi/rust-hex/compare/v0.4.2...v0.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-04 09:30:36 +02:00
Georgios Konstantopoulos
61767c8dd2
release: 0.2.2 ( #219 )
2021-03-04 09:30:27 +02:00
dependabot-preview[bot]
0c3bb7b9c1
chore(deps): bump once_cell from 1.7.0 to 1.7.2 ( #218 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.7.0 to 1.7.2.
- [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.7.0...v1.7.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-03 10:36:06 +02:00
dependabot-preview[bot]
ba536e4c32
chore(deps): bump bincode from 1.3.1 to 1.3.2 ( #211 )
...
Bumps [bincode](https://github.com/servo/bincode ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/servo/bincode/releases )
- [Commits](https://github.com/servo/bincode/compare/v1.3.1...v1.3.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-03 00:30:00 +02:00
James Prestwich
79e806f6e9
bug: prevent interleaving websocket ID load/store operations ( #217 )
2021-03-03 00:19:20 +02:00
dependabot-preview[bot]
e7fa806f78
chore(deps): bump futures-executor from 0.3.12 to 0.3.13 ( #213 )
...
Bumps [futures-executor](https://github.com/rust-lang/futures-rs ) from 0.3.12 to 0.3.13.
- [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.12...0.3.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-02 14:53:52 +02:00
dependabot-preview[bot]
5081ca2ad1
chore(deps): bump serde_json from 1.0.62 to 1.0.64 ( #215 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.62 to 1.0.64.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.62...v1.0.64 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-02 14:53:33 +02:00
dependabot-preview[bot]
c18dad6122
chore(deps): bump futures-channel from 0.3.12 to 0.3.13 ( #208 )
...
Bumps [futures-channel](https://github.com/rust-lang/futures-rs ) from 0.3.12 to 0.3.13.
- [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.12...0.3.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-25 09:17:17 +02:00
dependabot-preview[bot]
ff07be3c77
chore(deps): bump futures-util from 0.3.12 to 0.3.13 ( #207 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.12 to 0.3.13.
- [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.12...0.3.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-25 09:17:09 +02:00
dependabot-preview[bot]
cf643e5ef1
chore(deps): bump once_cell from 1.6.0 to 1.7.0 ( #212 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.6.0 to 1.7.0.
- [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.6.0...v1.7.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-25 09:17:02 +02:00
dependabot-preview[bot]
5af9a28d8c
chore(deps): bump tracing from 0.1.24 to 0.1.25 ( #210 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.24 to 0.1.25.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.24...tracing-0.1.25 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-24 10:05:19 +02:00
dependabot-preview[bot]
e88da4501c
chore(deps): bump once_cell from 1.5.2 to 1.6.0 ( #206 )
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.5.2 to 1.6.0.
- [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.5.2...v1.6.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-23 09:31:12 +02:00
James Prestwich
3e5f7a795f
feature: report path on failed abigen load ( #205 )
2021-02-22 20:35:40 +02:00
dependabot-preview[bot]
7b0af7e73e
chore(deps): bump url from 2.2.0 to 2.2.1 ( #201 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.2.0...v2.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-22 10:16:13 +02:00
dependabot-preview[bot]
b0224927ee
chore(deps): bump tracing from 0.1.23 to 0.1.24 ( #199 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.23 to 0.1.24.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.23...tracing-0.1.24 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-22 10:04:40 +02:00
dependabot-preview[bot]
a3f7aabb7a
chore(deps): bump elliptic-curve from 0.9.3 to 0.9.4 ( #203 )
...
Bumps [elliptic-curve](https://github.com/RustCrypto/traits ) from 0.9.3 to 0.9.4.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/elliptic-curve-v0.9.3...elliptic-curve-v0.9.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-22 10:04:30 +02:00
dependabot-preview[bot]
eb318a2689
chore(deps): bump thiserror from 1.0.23 to 1.0.24 ( #204 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.23 to 1.0.24.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.23...1.0.24 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-22 10:04:18 +02:00
dependabot-preview[bot]
b33f280fb5
chore(deps): bump reqwest from 0.11.0 to 0.11.1 ( #202 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.0 to 0.11.1.
- [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.0...v0.11.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-19 08:36:39 +02:00
lerencao
732ff29d14
make abigen reproducible ( #200 )
...
* use BTreeMap to make abigen bindings deterministic
2021-02-19 08:34:56 +02:00
dependabot-preview[bot]
6f26490385
chore(deps): bump elliptic-curve from 0.9.2 to 0.9.3 ( #198 )
...
Bumps [elliptic-curve](https://github.com/RustCrypto/traits ) from 0.9.2 to 0.9.3.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/elliptic-curve-v0.9.2...elliptic-curve-v0.9.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-18 11:27:22 +02:00
dependabot-preview[bot]
e2ef22d0af
chore(deps): bump tracing-futures from 0.2.4 to 0.2.5 ( #197 )
...
Bumps [tracing-futures](https://github.com/tokio-rs/tracing ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-futures-0.2.4...tracing-futures-0.2.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-17 11:49:54 +02:00
Georgios Konstantopoulos
e82b09f521
Update deps ( #196 )
...
* chore: bump ethtypes and ethabi
* chore: bump elliptic curve
2021-02-16 20:58:45 +02:00
Georgios Konstantopoulos
a43299c838
fix(abigen): correctly parse params in human readable abi ( #194 )
...
* fix(abigen): correctly parse params in human readable abi
* chore: make clippy happy
* test: remove unwrap
* chore: make clippy happy again
* chore: fix contract.rs example
* chore: rename to contract using human readable format
* examples: add abigen example with path to abi
* fix: pin funty version to fix bitvec error
* chore: remove unused import
* chore: fix deps
2021-02-16 19:10:26 +02:00
Rohit Narurkar
457c646511
chore: use upgraded version for eth-keystore-rs ( #193 )
2021-02-16 15:32:43 +02:00
dependabot-preview[bot]
e09e84e435
chore(deps): bump sha2 from 0.9.2 to 0.9.3 ( #185 )
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.9.2 to 0.9.3.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.9.2...sha2-v0.9.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-10 11:56:00 +02:00