roshi-interface 0.10.1

On-chain instruction interface and types for the Roshi Solana program.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Account wire types shared with off-chain readers.

pub mod asset;
pub mod vault;

pub use asset::Asset;
pub use vault::{Role, Vault, VaultControls};

/// Tag byte that prefixes a `Vault` payload in the program's tagged `Account`.
pub const VAULT_ACCOUNT_TAG: u8 = 1;

/// Tag byte that prefixes an `Asset` payload in the program's tagged `Account`.
pub const ASSET_ACCOUNT_TAG: u8 = 4;