mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-05-16 14:49:28 +00:00
18 lines
532 B
Rust
18 lines
532 B
Rust
|
|
//! Core data structures for the Authenticated Transfer Program.
|
||
|
|
|
||
|
|
use serde::{Deserialize, Serialize};
|
||
|
|
|
||
|
|
/// Instruction type for the Authenticated Transfer program.
|
||
|
|
#[derive(Serialize, Deserialize)]
|
||
|
|
pub enum Instruction {
|
||
|
|
/// Transfer `amount` of native balance from sender to recipient.
|
||
|
|
///
|
||
|
|
/// Required accounts: `[sender, recipient]`.
|
||
|
|
Transfer { amount: u128 },
|
||
|
|
|
||
|
|
/// Initialize a new account under the ownership of this program.
|
||
|
|
///
|
||
|
|
/// Required accounts: `[account_to_initialize]`.
|
||
|
|
Initialize,
|
||
|
|
}
|