Skip to content

Commit

Permalink
Merge pull request #417 from anoma/brent/update-sdk
Browse files Browse the repository at this point in the history
Update SDK
  • Loading branch information
brentstone authored Jan 1, 2025
2 parents 5c2918b + 444b869 commit 0e9451d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/docs/pages/integrating-with-namada/sdk/query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This code will attempt to query the chain's current epoch:
```rust
use namada_sdk::{rpc, Namada};

match rpc::query_epoch(sdk.client()).await {
match rpc::query_epoch(&sdk.client).await {
Ok(current_epoch) => println!("Current epoch: {:?}", current_epoch),
Err(e) => println!("Query error: {:?}", e),
}
Expand Down
24 changes: 12 additions & 12 deletions packages/docs/pages/integrating-with-namada/sdk/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
To begin working with the Namada SDK, add the following to your `Cargo.toml`:

```rust
namada_core = { git = "https://github.com/anoma/namada", tag = "v0.43.0" }
namada_sdk = { git = "https://github.com/anoma/namada", tag = "v0.43.0", default-features = false, features = ["std", "async-send", "download-params"] }
namada_tx = { git = "https://github.com/anoma/namada", tag = "v0.43.0" }
namada_governance = { git = "https://github.com/anoma/namada", tag = "v0.43.0" }
namada_ibc = { git = "https://github.com/anoma/namada", tag = "v0.43.0" }
namada_token = { git = "https://github.com/anoma/namada", tag = "v0.43.0" }
namada_parameters = { git = "https://github.com/anoma/namada", tag = "v0.43.0" }
namada_proof_of_stake = { git = "https://github.com/anoma/namada", tag = "v0.43.0" }
tendermint = "0.37.0"
tendermint-config = "0.37.0"
tendermint-rpc = { version = "0.37.0", features = ["http-client"] }
tendermint-proto = "0.37.0"
namada_core = { git = "https://github.com/anoma/namada", tag = "v0.46.1" }
namada_sdk = { git = "https://github.com/anoma/namada", tag = "v0.46.1", default-features = false, features = ["std", "async-send", "download-params"] }
namada_tx = { git = "https://github.com/anoma/namada", tag = "v0.46.1" }
namada_governance = { git = "https://github.com/anoma/namada", tag = "v0.46.1" }
namada_ibc = { git = "https://github.com/anoma/namada", tag = "v0.46.1" }
namada_token = { git = "https://github.com/anoma/namada", tag = "v0.46.1" }
namada_parameters = { git = "https://github.com/anoma/namada", tag = "v0.46.1" }
namada_proof_of_stake = { git = "https://github.com/anoma/namada", tag = "v0.46.1" }
tendermint = "0.38.0"
tendermint-config = "0.38.0"
tendermint-rpc = { version = "0.38.0", features = ["http-client"] }
tendermint-proto = "0.38.0"
tokio = { version = "1.0", features = ["full"] }
```

0 comments on commit 0e9451d

Please sign in to comment.