use multiversx_chain_core::types::ShardId;
use crate::wallet::Wallet;
fn test_wallet(pem_file_contents: &str) -> Wallet {
Wallet::from_pem_file_contents(pem_file_contents.to_string()).unwrap()
}
pub fn alice() -> Wallet {
test_wallet(include_str!("test_wallets/alice.pem"))
}
pub fn bob() -> Wallet {
test_wallet(include_str!("test_wallets/bob.pem"))
}
pub fn carol() -> Wallet {
test_wallet(include_str!("test_wallets/carol.pem"))
}
pub fn dan() -> Wallet {
test_wallet(include_str!("test_wallets/dan.pem"))
}
pub fn eve() -> Wallet {
test_wallet(include_str!("test_wallets/eve.pem"))
}
pub fn frank() -> Wallet {
test_wallet(include_str!("test_wallets/frank.pem"))
}
pub fn grace() -> Wallet {
test_wallet(include_str!("test_wallets/grace.pem"))
}
pub fn heidi() -> Wallet {
test_wallet(include_str!("test_wallets/heidi.pem"))
}
pub fn ivan() -> Wallet {
test_wallet(include_str!("test_wallets/ivan.pem"))
}
pub fn judy() -> Wallet {
test_wallet(include_str!("test_wallets/judy.pem"))
}
pub fn mallory() -> Wallet {
test_wallet(include_str!("test_wallets/mallory.pem"))
}
pub fn mike() -> Wallet {
test_wallet(include_str!("test_wallets/mike.pem"))
}
pub fn sophie() -> Wallet {
test_wallet(include_str!("test_wallets/s0phie.pem"))
}
pub fn simon() -> Wallet {
test_wallet(include_str!("test_wallets/s1mon.pem"))
}
pub fn szonja() -> Wallet {
test_wallet(include_str!("test_wallets/s2onja.pem"))
}
pub fn for_shard(shard_id: ShardId) -> Wallet {
let shard_id_num = shard_id.as_u32();
match shard_id_num {
0 => sophie(),
1 => simon(),
2 => szonja(),
_ => panic!("No test wallet for shard id {shard_id_num}"),
}
}