From 5117de43f562289773b53cdd27f009e6ab919a76 Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Thu, 21 Mar 2024 14:55:55 +0000 Subject: [PATCH] TrezorHDPath -> HDPath --- Cargo.toml | 48 +++++++++++----------- examples/wallets/examples/trezor_signer.rs | 4 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 76954199..d5543c4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [ diff --git a/examples/wallets/examples/trezor_signer.rs b/examples/wallets/examples/trezor_signer.rs index 8970c769..247f3b8d 100644 --- a/examples/wallets/examples/trezor_signer.rs +++ b/examples/wallets/examples/trezor_signer.rs @@ -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()?;