hvym_node_token/lib.rs
1#![no_std]
2
3use crate::event::Events;
4use crate::nodemetadata::NodeMetadata;
5use soroban_sdk::Env;
6
7pub mod event;
8pub mod nodemetadata;
9
10#[derive(Clone)]
11pub struct TokenUtils(Env);
12
13impl TokenUtils {
14 #[inline(always)]
15 pub fn new(env: &Env) -> TokenUtils {
16 TokenUtils(env.clone())
17 }
18
19 pub fn metadata(&self) -> NodeMetadata {
20 NodeMetadata::new(&self.0)
21 }
22
23 pub fn events(&self) -> Events {
24 Events::new(&self.0)
25 }
26}