Agost Biro
ac8d021f7e
docs: add erc20 token transfer example
2023-03-22 12:40:27 +01:00
Georgios Konstantopoulos
73c7f6cacc
fix: ethers-contract circular dep on ethers-signers ( #2291 )
...
* fix: remove dep of contract on signers
* refactor: move ethers/live up a dir
* test: move over eip712 test from ethers-contract
* chore: rm unused vars
* ethers: enable ethers-solc by default
* ci: remove --live from ci tests
* chore: make ethers-solc always part of ethers
* test: ensure rustls is enabled for https
* chore: ignore clippy fp
2023-03-21 11:44:12 -07:00
DaniPopes
f7a066e700
chore: update release process ( #2278 )
...
* chore: strip ethers prefix for the ethers-wasm example
* chore: set publish to false and version to 0.0.0 for all example crates
* chore: remove unused release helpers
* chore: move CHANGELOG.md to CHANGELOG-OLD.md
* chore: update lockfile and wasm renames
* chore: renames
* chore: use git-cliff for generating CHANGELOG.md
* chore: renames
* chore: update release.toml
* chore: move examples script
mv \
scripts/examples.sh \
bin/run_all_examples
* chore: add release script
* fix: update release script and document
* fix: mv
* docs: remove 'update changelog' in PR template
2023-03-20 21:21:04 -07:00
DaniPopes
439a0c7de0
chore(deps): bump and use workspace dependencies ( #2222 )
...
* chore: update all deps
* chore: update dependabot
* chore: separate ethers package from workspace
* chore: package metadata
* chore: use package.*.workspace = true
* fix: docs.rs build
* chore: update examples manifests
* chore: use workspace dependencies for ethers-* crates
* fix: test
* chore: use workspace dependencies for all dependencies
* chore: pin rust-crypto
* chore: add license field to example crates
* fixes
* more fixes
* fix: test
* last fixes
* fix: wasm
* fix: docs.rs build
* fix
* fix: wasm-pack error
see also https://github.com/rustwasm/wasm-pack/issues/1238
* fix: wasm deps and example
* ci: update
* fix: wasm tests
* fix: eip712 tests
* fix: windows ci
* fix
* chore: update docsrs metadata
* chore: bump version to match crates.io
* chore: rm bad release.toml config
* chore: rm release.toml
bad configuration
* chore: add exclude to workspace
* fix: middleware
* fix: solc feature flags
* chore: run cargo upgrade
* chore: update deps
* chore: update remaining deps
* undo fix
* update lock
* bump yubi
* fix: update coins-* and fix spki breaking changes
2023-03-16 12:28:35 -07:00
Georgios Konstantopoulos
941d3908d9
(cargo-release) version 2.0.0
2023-03-13 12:38:25 -07:00
DaniPopes
da743fc8b2
ci/test: improve CI jobs and tests ( #2189 )
...
* ci: move to scripts directory
* nits
* ci: improve main CI jobs
* fix: install script
* fix
* fix: use curl for windows installation
* fix: wasm typo
* tests: move to single binary
* chore: clippy
* chore: clippy
* chore: clippy
* fix: test command
* fix: quote tests
* update script
* fix: action exclude
* fix: dev deps
* fix: only run wasm in own job
* ci: add aarch64 targets
* test: rm useless test
* ci: update security audit
* ci: add deny CI
* chore: rm unused audit.toml
* chore: update geth.rs
* ci: remove unusable targets
* fix: install script path
* fix: wasm
* improve script
* fix: failing ci
* fix: contract tests
* ci: improve install script
* update middleware tests
* move integration etherscan tests to tests/ dir
* fix: eip2930 access_list field name
* add pendingtransaction must_use
* add random anvil comment
* ci: add miri job
* ci: simplify
* fixci
* Revert "add pendingtransaction must_use"
This reverts commit 770b21b4a3
.
* fix: macos script
* fix: use curl in script
* unused ci
* update script
* fix wasm
* rm_miri
* fix: signer test
* fix: wasm ci
* fix: ipc test
* fix: live celo tests
* fix: abi online source test
* fix: windows paths in test
* chore: update serial_test
* ci: run live tests separately
* fix: provider tests
* fix: unused var
* fix: feature
* fix merge
* fix: etherscan key tests
* ci: rm duplicate audit
* fix: split etherscan test ci
* fix: etherscan test
* fix: generate multiple unused ports
* fix: source test
* fix: udeps
* rm unused
2023-02-28 17:26:27 -07:00
DaniPopes
9e443fc216
fix: examples ( #2207 )
...
* fix: examples
* fix: subscribe instead of watch
2023-02-27 18:59:05 -07:00
DaniPopes
319b86a643
chore: replace rpc urls with generic ones ( #2199 )
2023-02-27 15:16:33 -07:00
James Prestwich
2090bf560e
Expose contract revert errors in the ContractError struct ( #2172 )
...
* feature: spelunk for revert errors
* feature: bubble up revert to contract error
* feature: bubble up reverts to multicall
* fix: correctly remove signature when deserializing EthErrors
* chore: remove redundant test
* chore: clippy
* fix: allow empty revert string
* docs: add all missing rustdoc for ethers-contract
* chore: rustfmt
* chore: Changelog
* fix: danipope test comment
2023-02-22 14:52:25 -08:00
James Prestwich
ef6e7f41a1
Refactor: organize ethers-providers ( #2159 )
...
* feature: bubble up jsonrpc error response via trait
* refactor: ClientError to TransportError
* refactor: FromErr to MiddlewareError
* tests: fix test with middlewareerror
* fix: doctest
* fix: fix custom middleware example
* feature: as_serde_error
* docs: for error traits
* fix: custom example and unnecessary ref
* refactor: in progress organization
* refactor: continue cleaning up
* refactor: finish changing crate layout
* refactor: fix test imports
* refactor: move convenience impl into toolbox
* chore: changelog
* docs: make them suck less
* fix: remove deprecation
* fix: DaniPopes's nits
2023-02-20 15:55:36 -08:00
James Prestwich
0c16eb971d
Prestwich/event no lifetime ( #2105 )
...
* refactor(breaking): remove lifetime from Event
* fix: example updated to use new event
2023-02-13 17:14:38 -08:00
DaniPopes
adefb6c2f6
fix: examples ( #2153 )
...
* fix: abigen example
* fix: gas oracle example
* fix: call override example
2023-02-13 17:08:08 -08:00
bsh98
1b08a94a85
feat(examples): add basic event filtering example ( #2137 )
2023-02-10 16:29:10 -08:00
dependabot[bot]
3323641311
chore(deps): bump wasm-bindgen-test from 0.3.33 to 0.3.34 ( #2111 )
...
Bumps [wasm-bindgen-test](https://github.com/rustwasm/wasm-bindgen ) from 0.3.33 to 0.3.34.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: wasm-bindgen-test
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>
2023-02-05 17:33:31 -08:00
Georgios Konstantopoulos
806af08f99
chore: fix custom provider example
2023-02-02 11:38:45 -08:00
dependabot[bot]
8cefcebde2
chore(deps): bump wasm-bindgen-futures from 0.4.33 to 0.4.34 ( #2108 )
...
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen ) from 0.4.33 to 0.4.34.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/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>
2023-02-02 11:08:31 -08:00
dependabot[bot]
edb8b27d63
chore(deps): bump web-sys from 0.3.60 to 0.3.61 ( #2106 )
...
Bumps [web-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.60 to 0.3.61.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/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>
2023-02-02 11:04:57 -08:00
Vid Kersic
7e7f9041b3
feat: add support for js tracer to geth trace, fix different return types ( #2064 )
...
* feat: add support for js tracer to geth trace, fix different return types
* chore: fix clippy
* chore: update geth structs
2023-01-31 09:58:06 -08:00
DaniPopes
b0ef6ee9a2
docs: update providers book and examples ( #2098 )
...
* fmt
* add README.md
* fix advanced_usage
* add custom transport example and chapter
* update Http
* update providers examples Cargo.toml
* update websockets
* update ipc
* update other providers
* update providers index
2023-01-31 09:36:12 -08:00
dependabot[bot]
8ed95f1363
chore(deps): bump reqwest from 0.11.13 to 0.11.14 ( #2065 )
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.13 to 0.11.14.
- [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.13...v0.11.14 )
---
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>
2023-01-27 13:13:10 -05:00
Georgios Konstantopoulos
b8fa524e8e
feat(core/geth): enable Clique mode ( #2063 )
...
* feat(core/geth): add method for initing Clique genesis
* feat(core/geth): add Clique mode
this is ported from https://github.com/paradigmxyz/reth/pull/623/files\#diff-99e7bcdfb85c75ffe5fb2ccfbc5fd8234fced6704c34b622fbf24289b8522515R228-R245
* feat(core/geth): disable discovery in clique mode
* examples: add Geth Clique example
2023-01-19 10:49:47 -08:00
DaniPopes
d1e934791d
refactor(abigen): Abigen, ContractBindings ( #2019 )
...
* use format_ident
* lib.rs
* refactor: ContractBindings
* refactor: from_file
* add write_fmt
* mv
* error msg
* revert mod docs
2023-01-13 10:23:59 -08:00
joshieDo
3c65997eae
feat(core): add `strum::EnumIter` and `strum::EnumCount` to `Chain` ( #2043 )
...
* add strum EnumIter and EnumCount to Chain
* clippy
2023-01-11 19:17:46 -08:00
Andrea Simeoni
7e6c3ba983
docs: mock-provider ( #2011 )
...
* MockProvider example + mdbook reference
* review: use eyre::Result
Co-authored-by: Andrea Simeoni <>
2023-01-05 17:55:23 +02:00
WillQ
4a8a6ad259
abigen adopt hardhat generated bytecode ( #2012 )
...
* abigen adopt hardhat generated bytecode
* update changelog
2023-01-05 11:46:32 +02:00
Andrea Simeoni
da0363918b
ci: mdbook ( #2003 )
...
* Applied same book structure as Reth
* ci: [WIP] added book workflow
* fix warning mdbook version different from template plugin version
* ci: added deploy step
* Http provider docs
* IPC provider docs
* RetryClient docs
* WebSocket provider docs
Co-authored-by: Andrea Simeoni <>
2023-01-04 12:36:31 +02:00
Andrea Simeoni
04ed534b72
docs: mdbook ( #1994 )
...
* mdbook init + summary
* Getting started section
* intro typos
* intro typos and wording
* intro typos and wording
* Big numbers section
* Big numbers: added section titles + docs refinement
* Removed index prefix from file names
* Update docs/mdbook/book.toml
Co-authored-by: Andrea Simeoni <>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2023-01-03 15:18:38 +02:00
DaniPopes
d272318483
chore: update all rust editions to 2021 ( #1979 )
2022-12-30 14:48:29 +02:00
DaniPopes
4274a27531
fix(examples): deprecated gas oracle ( #1986 )
2022-12-30 14:43:49 +02:00
DaniPopes
c5ff733702
chore: clippy ( #1990 )
...
* chore: clippy
* chore: clippy
2022-12-30 14:19:41 +02:00
Andrea Simeoni
10310ce3ad
refactor: examples ( #1940 )
...
* ToC
* Big numbers section
* Middleware examples: builder
* Middleware examples: gas_escalator
* Middleware examples: gas_oracle
* Middleware examples: signer
* Middleware examples: missing stubs
* review: applied DaniPopes suggestions to big numbers
* typo
* Middleware examples: nonce_manager
* cargo +nightly fmt
* update roadmap
* Middleware examples: policy
* Middleware examples: added docs
* Contracts examples: created folder; included abigen example
* Contracts examples: refactor abigen docs. Fixed cargo example reference
* Contracts examples: contract_events; minor docs changes
* Moved each example under its own crate.
Cargo builds locally
TODO: Fix broken examples CI
* Big numbers examples: used regular operators for math
* Single examples run correctly (missing overall CI execution)
Example crates dependencies
Removed duplicates
* review: Applied gakonst note to remove commented items in workspace manifest
* review: Applied gakonst note to restore visibility on contract constructor
* ci:
- Run/Build examples in a single step to avoid duplicated scripts
- Removed ci.yaml step "Build all examples"
* cargo +nightly fmt
* ci: fix WASM step error
* Removed deprecated EthGasStation example
* WASM example uses local copy of `contract_abi.json`. In this way we keep the WASM example auto-consistent, at the cost of a small duplication
* Cargo.lock aligned to master branch
* Removed useless comments in examples
* review: Applied gakonst note to add panic!() on the policy middleware example
* review: Applied gakonst suggestion to add a custom middleware example
* typos in docs
* Update examples/big-numbers/examples/bn_math_operations.rs
review: Accepted commit suggested by DaniPopes
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* review: Applied DaniPopes suggestion on assert_eq!
* Update examples/big-numbers/README.md
review: Accepted DaniPopes suggestion on big-numbers docs
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
* review: All imports now reference the "ethers" crate
* ci: added features ["ws", "rustls"] where needed
cargo +nigthly fmt
* Examples with special features (e.g. ipc, trezor etc.) are built alongside them. This is expressed as a "default" requirement in their respective Cargo.toml
* cargo +nightly fmt
* Examples: Gas oracle API keys from env
Added missing features in middleware Cargo.toml
* typo: use expect() instead of unwrap()
* Updated ToC
Moved 2 examples under more relevant folders
* Gas oracle examples raise panic on middleware errors
* review: removed useless [[example]] in Cargo.toml
* review: removed #[allow(unused_must_use)] from gas_escalator example
* review: Removed prefixes from file names
* review: removed useless [[example]] in Cargo.toml
* docs: Updated description to run examples in the workspace README.md
Co-authored-by: Andrea Simeoni <>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
2022-12-29 14:53:11 +02:00
Vid Kersic
b27c7b0773
feat: debug_traceCall ( #1949 )
...
* feat: debug_traceCall
* chore: update changelog
* fix: rebase to master and change tracer from string to enum
2022-12-25 13:33:05 +02:00
joshieDo
92e726921a
chore: add celo chain ( #1932 )
...
* add celo chain
* add missing chain case
* clippy & fmt
2022-12-07 21:37:11 -08:00
Dan Cline
80d887b67e
docs: update MRSV to 1.64 ( #1926 )
...
* IntoFuture was implemented in #1826 , which means the MSRV should now
be 1.64
2022-12-05 22:04:48 -08:00
Andrea Simeoni
b0ef1343dd
fix: close example subscriptions after 2 emitted items ( #1892 )
...
cargo +nightly fmt
Co-authored-by: Andrea Simeoni <>
2022-11-26 08:42:41 -08:00
Andrea Simeoni
845aa4920f
feat: Instantiate an event builder without a contract instance ( #1882 )
...
* Build an `Event` without requiring a contract instance
* Contract unit test
* Function to set Event address
* Example
* Typo to improve readability
* CHANGELOG
* cargo +nightly fmt
* FIX conflict
* review: applied Address alias
Co-authored-by: Andrea Simeoni <>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-11-22 13:15:36 -08:00
Andrea Simeoni
f3eee4cf3f
Get gas price in USD using a Chainlink oracle ( #1872 )
...
Co-authored-by: Andrea Simeoni <>
2022-11-20 12:39:14 -08:00
Georgios Konstantopoulos
74bf6fbb04
chore: fmt / clippy
2022-11-15 13:36:25 -08:00
Ivan Rozhnovskiy
caa6f0aa19
fix: updated logs event filtering for examples with new syntax ( #1861 )
2022-11-15 11:34:07 -08:00
DaniPopes
debd6fec3d
chore: clippy ( #1812 )
...
* chore: clippy
* fmt
2022-11-07 15:43:11 -08:00
Andrea Simeoni
f62fffb4eb
Examples event streams ( #1839 )
...
* Example to subscribe events from an abigen compiled contract
* Example to subscribe events from an abigen compiled contract including `LogMeta`
* Added typo to help users run Ws examples
* cargo +nightly fmt
* Fix examples docs
Co-authored-by: Andrea Simeoni <>
2022-11-07 12:21:24 -08:00
Georgios Konstantopoulos
87b10bdf24
Revert "chore: disable dev deps for release"
...
This reverts commit d8a1be6fb1
.
2022-10-25 11:12:50 -07:00
Georgios Konstantopoulos
d8a1be6fb1
chore: disable dev deps for release
2022-10-25 11:04:28 -07:00
Georgios Konstantopoulos
1e4e4353f8
(cargo-release) version 1.0.0
2022-10-25 11:03:01 -07:00
Dan Cline
a07581489a
feat(core): re-export H128 ( #1786 )
...
* feat(core): re-export H128
* chore: cargo fmt
2022-10-14 19:53:38 -07:00
Georgios Konstantopoulos
96e195d2d7
chore: disable remove_liq example
2022-10-13 14:56:46 -07:00
Georgios Konstantopoulos
944cd711d8
examples: disable remove_liq and revert to always use rinkeby
...
rinkeby was deprecated but couldnt bother to find univ2 on goerli
so we just disable the test. this should still work for eg mainnet
2022-10-11 13:22:21 -07:00
Matthias Seitz
676f039230
chore(clippy): make clippy happy ( #1778 )
2022-10-11 10:49:05 -07:00
Georgios Konstantopoulos
441b983ec6
examples: re-enable remove_liq example and replace key w goerli key
2022-10-07 10:22:46 -07:00
dependabot[bot]
6998918748
chore(deps): bump ansi-regex in /examples/ethers-wasm ( #1771 )
...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex ) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases )
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1 )
---
updated-dependencies:
- dependency-name: ansi-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-07 10:05:04 -07:00