use ir_to_bytecode::parser::{ast::Program, parse_program};
use lazy_static::lazy_static;
pub fn peer_to_peer() -> &'static str {
include_str!("../transaction_scripts/peer_to_peer_transfer.mvir")
}
pub fn create_account() -> &'static str {
include_str!("../transaction_scripts/create_account.mvir")
}
pub fn rotate_key() -> &'static str {
include_str!("../transaction_scripts/rotate_authentication_key.mvir")
}
pub fn mint() -> &'static str {
include_str!("../transaction_scripts/mint.mvir")
}
lazy_static! {
pub static ref PEER_TO_PEER_TRANSFER_TXN_BODY: Program =
{ parse_program(peer_to_peer()).unwrap() };
}
lazy_static! {
pub static ref CREATE_ACCOUNT_TXN_BODY: Program = parse_program(create_account()).unwrap();
}
lazy_static! {
pub static ref ROTATE_AUTHENTICATION_KEY_TXN_BODY: Program =
{ parse_program(rotate_key()).unwrap() };
}
lazy_static! {
pub static ref MINT_TXN_BODY: Program = parse_program(mint()).unwrap();
}