use gmeta::metawasm; use gstd::{debug, prelude::*}; use test_meta_io::Wallet; #[metawasm] pub mod metafns { pub type State = Vec; pub fn all_wallets(state: State) -> Vec { state } pub fn first_wallet(state: State) -> Option { state.first().cloned() } pub fn last_wallet(state: State) -> Option { state.last().cloned() } }