Skip to content

Commit

Permalink
Update readme based on latest changes for v0.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Apr 16, 2024
1 parent 6d7312b commit 6cfe82f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ machine = AutomaticTxMachine(w3=w3)
future_tx = machine.queue_transaction(
signer=account,
params=transaction,
on_broadcast_failure=...,
on_fault=...,
on_finalized=...,
on_insufficient_funds=...,
)

reactor.start()
reactor.run()
```

### Features
Expand All @@ -67,9 +71,11 @@ They can be configured to use any kind of custom context, like gas oracles.

Hooks are fired in a dedicated thread for lifecycle events.

- `on_broadcast`: When a transaction is broadcasted.
- `on_finalized`: When a transaction is finalized.
- `on_fault`: When a transaction reverted or another error occurred.
- `on_broadcast` _(Optional)_: When a transaction is broadcasted.
- `on_broadcast_failure`: When a transaction fails to broadcast.
- `on_finalized`: When a transaction is finalized (successful or reverted).
- `on_fault`: When a transaction error occurred.
- `on_insufficient_funds`: When the account associated with the transaction does not have enough funds for the transaction.


##### Crash-Tolerance
Expand Down

0 comments on commit 6cfe82f

Please sign in to comment.