Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(providers): event, polling and streaming methods #274

Merged
merged 46 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
7d6f5f8
feat(providers): event, polling and streaming methods
DaniPopes Mar 8, 2024
f2dac32
update
DaniPopes Mar 11, 2024
bc5fa21
feat: better pending transaction
DaniPopes Mar 11, 2024
4d3046b
feat: test event polling
DaniPopes Mar 11, 2024
b63d5f3
rm subscribe
DaniPopes Mar 11, 2024
7111f00
chore: bump MSRV to 1.76
DaniPopes Mar 11, 2024
14a797b
feat: implement sol! event filters
DaniPopes Mar 11, 2024
2ac273f
comment
DaniPopes Mar 12, 2024
b8912bd
chore: rename, better docs
DaniPopes Mar 12, 2024
6edd8fe
stuff
DaniPopes Mar 12, 2024
188669f
typos
DaniPopes Mar 12, 2024
1218bb2
reorder
DaniPopes Mar 12, 2024
7f9454e
docs: add an example to PollerBuilder
DaniPopes Mar 12, 2024
025415d
docs: add examples to watch functions
DaniPopes Mar 12, 2024
6159a67
feat: make `RawProvider` object-safe
DaniPopes Mar 12, 2024
40b561a
fix: clippy, ci
DaniPopes Mar 12, 2024
069814d
chore: rename to config
DaniPopes Mar 12, 2024
48072de
fix: deserialize `Transaction`s in `FilterChanges`
DaniPopes Mar 12, 2024
1e1a7eb
Merge branch 'main' into dani/provider-streams
DaniPopes Mar 12, 2024
bd0d19d
lints
DaniPopes Mar 12, 2024
2c6f1d0
Merge branch 'main' into dani/provider-streams
DaniPopes Mar 12, 2024
6c6932b
morelints
DaniPopes Mar 12, 2024
acc2544
more const
DaniPopes Mar 12, 2024
87963a7
feat: return ptx builder in send_transaction
DaniPopes Mar 12, 2024
f1adb8e
some more docs
DaniPopes Mar 12, 2024
6845bd8
chore: clippy
DaniPopes Mar 12, 2024
e6a5587
wip: streams
DaniPopes Mar 12, 2024
8adaa41
Merge branch 'main' into dani/provider-streams
DaniPopes Mar 12, 2024
5d8c267
chore: update nonce manager
DaniPopes Mar 12, 2024
240d506
test: ignore box test for now
DaniPopes Mar 12, 2024
168b0c3
docs
DaniPopes Mar 12, 2024
3743e18
fix: expose box transport as any
DaniPopes Mar 12, 2024
12a421f
docs: readme
DaniPopes Mar 12, 2024
ceb8725
chore: note on pub provider field
DaniPopes Mar 12, 2024
eb0ee46
feat: return `PendingTransactionBuilder` in `CallBuilder::send`
DaniPopes Mar 12, 2024
8ddf18c
feat: flatten `Option<Receipt>` into the result
DaniPopes Mar 12, 2024
98fd3f6
chore: make `TransportErrorKind` non exhaustive
DaniPopes Mar 12, 2024
738a8ae
chore: slightly better API
DaniPopes Mar 13, 2024
1e81c8c
docs: add an example for sol! with contracts
DaniPopes Mar 13, 2024
512e15f
fix
DaniPopes Mar 13, 2024
70dd850
docs: show constructor arguments
DaniPopes Mar 13, 2024
19e43b3
word
DaniPopes Mar 13, 2024
2ed0440
feat: more docs and examples, add watch full pending txs
DaniPopes Mar 13, 2024
0dacfb0
feat: remove lag error from subscription streams
DaniPopes Mar 13, 2024
215d6e9
fix
DaniPopes Mar 13, 2024
c76fb8c
docs: mention subscription limitation
DaniPopes Mar 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comment
  • Loading branch information
DaniPopes committed Mar 12, 2024
commit 2ac273ff6b197ebaf9ecedbb95d7dd1e6e02bf98
1 change: 1 addition & 0 deletions crates/contract/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ mod tests {
let all = event.query().await.unwrap();
assert_eq!(all.len(), 0);

// Same as above, but generated by `sol!`.
let event = contract.MyContractInstance_filter();

let poller = event.watch().await.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/providers/src/heart.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Block Hearbeat and Transaction Watcher
//! Block hearbeat and pending transaction watcher.

use crate::Provider;
use alloy_network::Network;
Expand Down