Skip to content

Commit

Permalink
TrezorHDPath -> HDPath
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks committed Mar 21, 2024
1 parent 35b3a2f commit 5117de4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
48 changes: 24 additions & 24 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@ repository = "https://github.com/alloy-rs/examples"
publish = false

[workspace.dependencies]
alloy-consensus = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-contract = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-eips = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-genesis = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-network = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-pubsub = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-rpc-engine-types = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-rpc-trace-types = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-serde = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-signer = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-signer-aws = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-signer-gcp = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-signer-ledger = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-signer-trezor = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-signer-wallet = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-transport = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-transport-http = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-transport-ipc = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-transport-ws = { git = "https://github.com/alloy-rs/alloy", rev = "218ece4", default-features = false }
alloy-consensus = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-contract = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-eips = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-genesis = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-network = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-pubsub = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-rpc-engine-types = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-rpc-trace-types = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-serde = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-signer = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-signer-aws = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-signer-gcp = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-signer-ledger = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-signer-trezor = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-signer-wallet = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-transport = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-transport-http = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-transport-ipc = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }
alloy-transport-ws = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", default-features = false }

alloy-core = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-dyn-abi = { version = "0.6.4", default-features = false, features = [
Expand Down
4 changes: 2 additions & 2 deletions examples/wallets/examples/trezor_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use alloy_primitives::{address, U256};
use alloy_provider::{Provider, ProviderBuilder};
use alloy_rpc_client::RpcClient;
use alloy_rpc_types::request::TransactionRequest;
use alloy_signer_trezor::{TrezorHDPath, TrezorSigner};
use alloy_signer_trezor::{HDPath, TrezorSigner};
use eyre::Result;

#[tokio::main]
async fn main() -> Result<()> {
// Instantiate the application by acquiring a lock on the Trezor device.
let signer = TrezorSigner::new(TrezorHDPath::TrezorLive(0), Some(1)).await?;
let signer = TrezorSigner::new(HDPath::TrezorLive(0), Some(1)).await?;

// Create a provider with the signer.
let http = "http://localhost:8545".parse()?;
Expand Down

0 comments on commit 5117de4

Please sign in to comment.