Commit Graph

38 Commits

Author SHA1 Message Date
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
Marius Kjærstad 028d2196cd
http:// to https:// on Celo link (#2193)
http:// to https:// on Celo link in README.md
2023-02-27 13:20:04 -07:00
DaniPopes 203e350940
docs: fix broken links, update documentation (#2203)
* docs: fix broken links

* docs: update READMEs and module-level documentation
2023-02-27 13:03:17 -07: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
christn c35e6e2fd3
Fix Dead Link to abigen test in README (#1929) 2022-12-05 20:46:00 -08:00
omahs d9281aa1f8
Fix: minor typo (#1794)
Fix: minor typo
2022-11-07 15:18:38 -08:00
Georgios Konstantopoulos def99318bb chore: update readme 2022-10-25 11:18:49 -07:00
DaniPopes 5c762c44d7
fmt: all (#1751)
* fmt: all

* fmt: eol
2022-09-28 11:58:26 -07:00
derch28 0fd8f9c227
fix: typo on README.md (#1571) 2022-08-08 10:30:37 -07:00
Dave Belvedere cf2aa07eb5
Update README to document common feature flags for providers (websock… (#1493)
* Update README to document common feature flags for providers (websockets, ipc and https)

* Update README as per review comment suggestion

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

* Separate openssl and rustls toml examples as per review comment

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2022-07-24 03:20:06 +02:00
Matthias Seitz 89bc6420bb
test: replace ganache with anvil (#1286)
* ci: install anvil

* test: use anvil instead of ganache

* ci: fix anvil ver

* ci: re-enable example tests

* test: remove unnecessary assertions

* test: enable anvil launch test

* docs: typo

* test: fix anvil chain id

* ci: install ganache

Ganache is needed for the Ganache tests

* chore: remove legacy feature from some examples

* ci: correctly build examples

* test: use correct account balance for anvil

* chore: remove sub_id == 1 check

this was only possible in ganache because it gives serial
sub ids, but in every other reasonable client the ids are generated
randomly, so we cannot test for its value

* test: ensure txs are different

There is a bug in Ganache's mempool which accepts duplicate transactions (here with the same nonce), whereas here we pre-set all the nonces so that they end up having a different transaction hash.

* test: ignore ganache tests

* fix: terzor api changes

* ci(examples): install Anvil, remove geth/ganache

* test(provider): Anvil instead of Geth

some tests start to fail now

* fix: revert usage of Anvil in ipc tests

Anvil does not support IPC yet

* fix: update examples script

* ci: use anvil for wasm example

* replace last ganache usage

Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2022-06-01 08:22:39 -07:00
Devan Non 20f7ac289c
Cleanup of links and requirements in README (#1163)
* chore: remove broken link and old unused test

* chore: add solc version required and geth requirement for tests
2022-04-21 19:23:51 +02:00
Ivan Porto Carrero fa0c635afe
update readme for polygon and avalanche (#610) 2021-11-23 13:23:42 +02:00
James Prestwich 63475cb462
docs: add note about wasm and ffi to readme (#607)
* docs: add note about wasm and ffi to readme

* Apply suggestions from code review

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
2021-11-22 20:24:48 +02:00
Matthias Seitz dcf20022c6
chore: add rustfmt.toml (#537)
* chore: add rustfmt.toml

* rustfmt

* chore: Update readme with fmt info

* ci: update ci

* chore: rustfmt

* rustfmt

* rustfmt

* ci: install libudev

* chore(clippy): make clippy happy

* chore(clippy): make clippy happy

* revert ci

* ci: install libudev
2021-10-29 14:29:35 +02:00
Georgios Konstantopoulos 4996fa2ca4 docs: add telegram metadata (#509)
* docs: add telegram metadata

* docs: add crates meta
2021-10-15 17:45:01 +03:00
Georgios Konstantopoulos cf62364489
chore: add changelog (#424) 2021-08-31 13:52:11 +03:00
Georgios Konstantopoulos b5909d05b0
ci: run examples in CI (#421)
* ci: run examples in CI

* fix(ens): set the resolved ens addr for gas estimation

* fix(contract-examples): use legacy sends with ganache

* fix(ens-example): ensure test runs when forking from mainnet

* fix(watch-blocks-example): run our own provider with preset blocktime
2021-08-30 14:00:30 +03:00
Georgios Konstantopoulos c2c6c94524
chore: add explanation on `legacy` flag 2021-08-19 10:08:59 +03:00
Oliver Nordbjerg b38685c574
Add Flashbots middleware to projects section (#381) 2021-08-16 10:29:22 +03:00
Georgios Konstantopoulos 5f292670fc
docs: add more docs (#130) 2020-12-31 21:08:12 +02:00
Georgios Konstantopoulos 7eec705cec
docs: add solc-select to the readme 2020-12-29 00:40:47 +02:00
John Adler 43dd8edb92
Fix broken link to TG group in readme. (#110) 2020-12-23 19:18:10 +02:00
Georgios Konstantopoulos 959b7fe9ce
docs: add telegram to README 2020-12-20 11:12:52 +02:00
Georgios Konstantopoulos 873cf099b6 Update README.md 2020-11-30 18:01:17 +02:00
Georgios Konstantopoulos 0f1fa17118
Update README.md 2020-11-23 10:43:30 +02:00
Georgios Konstantopoulos cff6eb45a5
fix: make multicall work by reference (#58)
* fix: make multicall work by reference

* chore: update readme with solc / ganache requirements

* chore: cargo fmt

* chore: fix doctests

* fix: disable sparkpool gasnow test
2020-08-21 15:54:23 +03:00
Ali Atiia 04aefeb160
Update README.md (#47)
error when `cargo build` unless https prefix ("relative path without base") error
2020-07-03 13:25:28 +03:00
Georgios Konstantopoulos 3459b1d350
docs: add missing attribution to Althea for the lean JSON RPC client 2020-06-20 17:15:00 +03:00
Georgios Konstantopoulos a558a4237b
docs: add ethers.js as a reference 2020-06-17 19:18:46 +03:00
Georgios Konstantopoulos 4fd656bce1
Provider Fixes on filters and gas estimation (#23)
* fix(provider): do not pass a param to estimate_gas

* fix(provider): pass correct number of args to new_filter

* test(signer): add test to ensure that the Pending block number works

* docs: fix links
2020-06-17 16:09:41 +03:00
Georgios Konstantopoulos ba5ae5a894
Add Celo support (#8)
* feat(types): add optional Celo support

* feat: add Celo feature flags to all crates

* test(provider): add get_transaction celo test

* test(signer): add send_transaction celo test

* test(contract): add deploy and call contract function celo test
2020-06-17 12:22:01 +03:00
Georgios Konstantopoulos a52dd9a277
docs: add some templates (#14) 2020-06-15 17:43:32 +03:00
Georgios Konstantopoulos 099fa5d7ef
progress 2020-05-27 01:41:27 +03:00
Georgios Konstantopoulos c46442dd12
complete refactor 2020-05-26 14:01:46 +03:00
Georgios Konstantopoulos d3b9b378c5
feat: add tokenization and improve contract API for events 2020-05-25 21:14:13 +03:00
Georgios Konstantopoulos a9570f0ac1
update readme 2020-05-24 21:56:10 +03:00
Georgios Konstantopoulos 1a49a62a81
init 2020-05-22 23:43:30 +03:00