use nado_sdk::eip712_structs::to_bytes32;
use nado_sdk::prelude::*;
use nado_sdk::utils::private_key::private_key;
#[tokio::main]
async fn main() {
let mut client = NadoClient::new(ClientMode::Local);
client = client.with_signer(private_key()).await.unwrap();
let address = client.address().unwrap();
let default_subaccount = to_bytes32(address.into(), "default");
let client_subaccount = client.subaccount().unwrap();
assert_eq!(client_subaccount, default_subaccount);
client = client.with_subaccount_name("bob");
client = client.with_subaccount_name_bytes([0; 12]);
client = client.with_gateway_url("https://custom_url.com".to_string());
client = client.with_archive_url("https://custom_url.com".to_string());
client = client.with_trigger_url("https://custom_url.com".to_string());
client.subaccount().unwrap();
}