chore(faucet): add genesis prefix to instruction names

This commit is contained in:
Daniil Polyakov
2026-05-29 20:05:38 +03:00
parent 0a7cdb1971
commit d86e02139f
17 changed files with 12 additions and 8 deletions
+6 -2
View File
@@ -8,10 +8,12 @@ const FAUCET_SEED_DOMAIN_SEPARATOR: [u8; 32] = *b"/LEZ/v0.3/FaucetSeed/000000000
pub enum Instruction {
/// Transfers native tokens from system faucet to recipient's vault.
///
/// Executed only in genesis block by sequencer it-self. User transactions will be denied.
///
/// Required accounts (2):
/// - Faucet PDA account
/// - Recipient vault PDA account
TransferVault {
GenesisTransferVault {
vault_program_id: ProgramId,
recipient_id: AccountId,
amount: u128,
@@ -19,10 +21,12 @@ pub enum Instruction {
/// Transfers native tokens from system faucet directly to a recipient account.
///
/// Executed only in genesis block by sequencer it-self. User transactions will be denied.
///
/// Required accounts (2):
/// - Faucet PDA account
/// - Recipient account
TransferDirect { amount: u128 },
GenesisTransferDirect { amount: u128 },
}
#[must_use]