Skip to main content

roshi_interface/state/
mod.rs

1//! Account wire types shared with off-chain readers.
2
3pub mod asset;
4pub mod vault;
5
6pub use asset::Asset;
7pub use vault::{Role, Vault, VaultControls};
8
9/// Tag byte that prefixes a `Vault` payload in the program's tagged `Account`.
10pub const VAULT_ACCOUNT_TAG: u8 = 1;
11
12/// Tag byte that prefixes an `Asset` payload in the program's tagged `Account`.
13pub const ASSET_ACCOUNT_TAG: u8 = 4;