Georgios Konstantopoulos
72dfc52ec0
fix(ci): clippy before nightly ring regression
...
fixes #1078
2022-03-27 11:27:26 -07:00
Matthias Seitz
2689981782
feat(solc): include source file ast in artifact ( #1081 )
...
* refactor: extend artifactsoutput interface
* add source file to trait
* fix: make it compile again
2022-03-27 09:56:33 -07:00
Bjerg
919a570237
feat: ability to get artifacts + sources ( #1080 )
2022-03-27 07:44:23 -07:00
Matthias Seitz
a43a9b8806
fix(abi): change abiarraytype trait bounds for tuple ( #1079 )
2022-03-24 17:40:34 -07:00
Curtis Spencer
3c0d8c36dd
chore(source_tree): add .sol extension when missing ( #1077 )
...
Just ensure that any paths with no extension default to a .sol
Tests: cargo test --lib ethers-etherscan -- source_tree
2022-03-24 10:04:46 -07:00
Meet Mangukiya
fa04247808
Tx optional from ( #1075 )
...
* doc(core/Signature): methods are all using normalized v, dont need to be 0 or 1 only
* feat(core/Transaction): make from optional, add method to recover from
* fix recovery
* add recover_from_mut
* update changelog
2022-03-23 22:06:55 -07:00
Rohit Narurkar
4ce373b856
chore: update svm ( #1074 )
2022-03-21 11:12:02 -07:00
Meet Mangukiya
d4fca905f5
feat(core/TypedTransaction): add helper for calculating max cost of tx ( #1070 )
2022-03-21 08:04:02 -07:00
Matthias Seitz
95a384b121
fix(solc): bundle new svm-solc feature ( #1071 )
...
* fix(solc): bundle new svm-solc feature
* chore: update CHANGELOG
* fix: enabled new feature in full
2022-03-21 01:58:56 -07:00
Rohit Narurkar
679ba09b92
chore(ethers-solc): update svm-rs and svm-rs-builds ( #1069 )
2022-03-20 06:03:57 -07:00
Jeffrey Quesnelle
35748d0189
fix(core/Transaction): remove debug print ( #1067 )
2022-03-19 23:58:08 -07:00
Curtis Spencer
a0d7995f94
chore(etherscan): Return error for unverified contracts ( #1065 )
...
Given contract source code is not useful in the case of unverified contracts
have the contract_source_code method return an error in the case if the item.abi
has the "Contract source code not verified" string.
Uncomment unit test ignore and run test:
> cargo test --lib ethers-etherscan -- get_error
2022-03-19 11:32:19 -07:00
Matthias Seitz
916e9a7334
chore(clippy): add some deny lints ( #1064 )
...
* feat: add deny lints
* trim ethers core
* trim ethers eip712
* deny ethers contract derive
* deny ethers contract abigen
* deny ethers contract
* deny ethers providers
* chore: add denies and fix unused deps
* doc: fix links
* fix: wasm build
* doc: fix links
* doc: fix links
* doc: fix inline doc links
* docs: fix intra doc links
2022-03-19 10:05:39 -07:00
Meet Mangukiya
cde52c7c20
fix(core/TypedTransaction): eip1559 gas price should be max_fee_per_gas ( #1062 )
...
* fix(core/TypedTransaction): eip1559 gas price should be max_fee_per_gas
* fix tests
* tests(nonce_manager): reduce flakiness
2022-03-19 09:41:03 -07:00
Matthias Seitz
1788f05ab0
feat(solc): use svm-builds instead of fetching http releases list ( #1063 )
...
* feat(solc): use svm-builds instead of fetching http releases list
* use correct features
2022-03-19 07:52:09 -07:00
Matthias Seitz
b6b5b09f4a
feat(abigen): add abi object deserializer and generate deploy function ( #1030 )
...
* feat(abigen): add abi object deserializer
* chore: rustfmt
* refactor: use enum type for deser abi
* refactor: use enum types for deser
* chore: rustfmt
* feat: add bytecode field
* feat: generate bytecode static
* feat: generate deployment function
* refactor: deploy function
* feat: add contract deployer type
* feat: make 0x prefix optional
* feat: add deploy function
* feat: add deploy example
* chore: update CHANGELOG
* chore(clippy): make clippy happy
2022-03-18 21:23:33 -07:00
dependabot[bot]
262149945a
chore(deps): bump quote from 1.0.15 to 1.0.16 ( #1061 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.15 to 1.0.16.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.15...1.0.16 )
---
updated-dependencies:
- dependency-name: quote
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>
2022-03-17 22:18:59 -07:00
Georgios Konstantopoulos
381179fb85
chore: fmt
2022-03-18 07:09:21 +02:00
Matthias Seitz
dd4893a752
feat(codec): add hex encode and decode functions ( #1059 )
2022-03-17 22:08:50 -07:00
Nicolas Gailly
c9ef5769e2
Examples/watch_block: show how to retrieve block metadata ( #1058 )
...
* better watch example
* put back normal interval
2022-03-17 22:08:15 -07:00
Matthias Seitz
3d4feccabf
fix(core): check against ethers internal crate names ( #1060 )
...
* fix(core): check against ethers internal crate names
* fix: add import back
2022-03-17 15:14:53 -07:00
Matthias Seitz
2af28be283
fix(core): more sophisticated crate detection ( #1056 )
...
* fix(core): more sophisticated crate detection
* fix: remove RA hack
2022-03-17 12:49:38 -07:00
Matthias Seitz
d1f46f4c2c
feat(solc): more artifact trait functions ( #1057 )
...
* style: split artifacts mod and create contract and bytecode mods
* chore: rustfmt
* feat(solc): more artifact trait functions
* feat: add missing impl
2022-03-17 12:48:55 -07:00
Matthias Seitz
65b1751cf8
style: split artifacts mod and create contract and bytecode mods ( #1052 )
...
* style: split artifacts mod and create contract and bytecode mods
* chore: rustfmt
2022-03-17 07:51:43 -07:00
Matthias Seitz
b53aa500fe
chore: decrease tx count in nonce manager test ( #1053 )
2022-03-17 06:47:30 -07:00
Yaser Martinez Palenzuela
59e2a305f9
Create decode_tx_input.rs ( #1054 )
...
* Create decode_tx_input.rs
* simplify calldata parsing
* chore: fmt
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-03-17 06:44:38 -07:00
Georgios Konstantopoulos
2933bb2609
ci: temporarily disable examples
...
ref: https://github.com/gakonst/ethers-rs/issues/1036
2022-03-17 15:41:44 +02:00
Georgios Konstantopoulos
3244364060
chore: do not pin eyre patch version
2022-03-17 14:10:31 +02:00
Matthias Seitz
01d4fceaee
feat(solc): support for solc io json output ( #1043 )
...
* feat(solc): support for solc io json output
* chore: wording
2022-03-17 04:37:00 -07:00
Matthias Seitz
b579dc183a
feat(solc): add viaIR option ( #1049 )
2022-03-17 04:24:50 -07:00
Matthias Seitz
1e1aba19b1
fix(solc): only modify files that are required to compile the project ( #1050 )
2022-03-17 03:48:01 -07:00
Meet Mangukiya
42ead6252d
feat(ethers-core/block): add gas_target and next_block_base_fee fns a… ( #1047 )
...
* feat(ethers-core/block): add gas_target and next_block_base_fee fns according to EIP-1559
* fix: feature flag gas_target, and next_block_base_fee to !celo, address review comments
* fix: in decreasing base fee case max(delta, 1) is not used
Refer 599ea45b9e/EIPS/eip-1559.md
?plain=1#L193
2022-03-17 03:44:28 -07:00
dependabot[bot]
745d14ea7b
chore(deps): bump k256 from 0.10.3 to 0.10.4 ( #1037 )
...
Bumps [k256](https://github.com/RustCrypto/elliptic-curves ) from 0.10.3 to 0.10.4.
- [Release notes](https://github.com/RustCrypto/elliptic-curves/releases )
- [Commits](https://github.com/RustCrypto/elliptic-curves/compare/k256/v0.10.3...k256/v0.10.4 )
---
updated-dependencies:
- dependency-name: k256
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>
2022-03-17 02:02:57 -07:00
dependabot[bot]
62cede9806
chore(deps): bump syn from 1.0.88 to 1.0.89 ( #1046 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.88 to 1.0.89.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.88...1.0.89 )
---
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>
2022-03-17 02:01:47 -07:00
Matthias Seitz
5314c4e618
fix(solc): use lowercase when comparing paths ( #1041 )
...
* fix(solc): use lowercase when comparing paths
* trace keys
* test: add lowercase contract test
2022-03-17 01:27:03 -07:00
Matthias Seitz
a2960a847d
chore(solc): new 0.8.13 release ( #1045 )
2022-03-17 01:26:44 -07:00
Matthias Seitz
2d75f9f1e7
feat(solc): support customized output selection pruning ( #1039 )
...
* feat(solc): support customized output selection pruning
* chore(clippy): make clippy happy
2022-03-16 07:36:35 -07:00
Matthias Seitz
5d14198fbe
fix(examples): adjust breaking changes and detect failures in ci ( #1040 )
...
* dbg message
* update ci
* fix: examples
* ci: add examples build step and set chmod +x examples.sh
* echo filename
* fix: path to examples
2022-03-16 06:26:48 -07:00
c r
db331eeeb3
utterly nitpicking but i was annoyed ( #1038 )
2022-03-16 11:15:49 +02:00
Matthias Seitz
ff29e96380
feat(solc): optimize output selection in cache mode ( #1029 )
...
* feat(solc): add mock project generator
* feat: mock project
* refactor: rename to mock
* feat(solc): mock project support
* refactor: move output selection to new type
* refactor: revert filter implementation
* feat: filter sources
* feat: support filtering
* refactor: update function signatures
* feat: optimize output
* chore: export helper macros
* fix(deps): add required features
* style: allow unused
* feat: also generate artifactless files
* feat: add create function
* chore(clippy): make clippy happy
* feat: add helper function
* test: add state machine test
* test: add more mock tests
2022-03-15 08:58:33 -07:00
Matthias Seitz
49ed78d685
feat(solc): add mock project generator ( #1011 )
...
* feat(solc): add mock project generator
* feat: mock project
* refactor: rename to mock
* feat(solc): mock project support
* chore: export helper macros
* fix(deps): add required features
* style: allow unused
2022-03-15 05:27:49 -07:00
Matthias Seitz
fac944be00
fix: don't evict cache entries with no artifacts ( #1035 )
2022-03-15 03:32:03 -07:00
dependabot[bot]
72e280d2cc
chore(deps): bump reqwest from 0.11.9 to 0.11.10 ( #1031 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.9 to 0.11.10.
- [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.9...v0.11.10 )
---
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>
2022-03-15 02:16:53 -07:00
dependabot[bot]
129006b402
chore(deps): bump k256 from 0.10.2 to 0.10.3 ( #1032 )
...
Bumps [k256](https://github.com/RustCrypto/elliptic-curves ) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/RustCrypto/elliptic-curves/releases )
- [Commits](https://github.com/RustCrypto/elliptic-curves/compare/k256/v0.10.2...k256/v0.10.3 )
---
updated-dependencies:
- dependency-name: k256
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>
2022-03-15 02:16:38 -07:00
dependabot[bot]
1e3ec048c9
chore(deps): bump syn from 1.0.86 to 1.0.88 ( #1033 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.86 to 1.0.88.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.86...1.0.88 )
---
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>
2022-03-15 02:16:31 -07:00
Matthias Seitz
24236997a9
refactor(solc): bump svm-rs and use returned install path ( #1034 )
...
* chore(deps): bump svm-rs
* refactor: use solc install path directly
* style: use if elese over option
2022-03-15 02:16:22 -07:00
Matthias Seitz
f6d123241e
feat: add solc install error report ( #1027 )
2022-03-14 04:47:11 -07:00
Matthias Seitz
22bc981fd5
chore(abigen): improve error message when bindings out of sync ( #1025 )
2022-03-14 13:29:23 +02:00
Matthias Seitz
26de793698
chore(solc): provide remappings on unresolved import message ( #1026 )
2022-03-14 13:29:00 +02:00
Matthias Seitz
20a01a260d
fix(solc/etherscan): trim constructor args ( #1024 )
2022-03-14 13:28:19 +02:00