Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 39 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ qp-wormhole-circuit-builder = { version = "4.3.0" }
sha2 = "0.10"

[dev-dependencies]
jsonrpsee = { version = "0.24", features = ["server"] }
qp-poseidon-core = "3.1.0"
serial_test = "3.1"
tempfile = "3.8.1"
Expand Down
10 changes: 10 additions & 0 deletions LIBRARY_USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
}
```

`QuantusClient::new` reads the runtime version and metadata from the current best block, so a
runtime upgrade is visible as soon as it enacts. To decode an older block, ask for a client pinned
to that block. It shares the connection and only fetches metadata when the block ran a different
runtime:

```rust
let at_finalized = client.at_block(finalized_hash).await?;
let events = at_finalized.client().blocks().at(finalized_hash).await?.events().await?;
```

### 3. Loading a Wallet for Transactions

```rust
Expand Down
Loading