atlas_memo/
lib.rs

1#![deny(missing_docs)]
2
3//! A program that accepts a string of encoded characters and verifies that it
4//! parses, while verifying and logging signers. Currently handles UTF-8
5//! characters.
6
7mod entrypoint;
8pub mod processor;
9
10// Export current sdk types for downstream users building with a different sdk
11// version
12pub use {
13    atlas_account_info, atlas_instruction, atlas_msg, atlas_program_entrypoint,
14    atlas_program_error, atlas_pubkey,
15    atlas_memo_interface::{
16        v1,
17        v3::{check_id, id, ID},
18    },
19};
20use {atlas_instruction::Instruction, atlas_pubkey::Pubkey};
21
22/// Build a memo instruction, possibly signed
23///
24/// Accounts expected by this instruction:
25///
26///   0. `..0+N` `[signer]` Expected signers; if zero provided, instruction will
27///      be processed as a normal, unsigned atlas-memo
28pub fn build_memo(memo: &[u8], signer_pubkeys: &[&Pubkey]) -> Instruction {
29    atlas_memo_interface::instruction::build_memo(&id(), memo, signer_pubkeys)
30}