spl_memo/lib.rs
1#![deprecated(
2 since = "6.1.0",
3 note = "Please use `spl-memo-interface` for instruction types, and `pinocchio-memo-program` for the program implementation"
4)]
5#![deny(missing_docs)]
6
7//! A program that accepts a string of encoded characters and verifies that it
8//! parses, while verifying and logging signers. Currently handles UTF-8
9//! characters.
10//!
11//! `⚠️ DEPRECATED`
12//!
13//! This crate has been deprecated and is no longer actively maintained.
14//!
15//! Please use [spl-memo-interface](https://crates.io/crates/spl-memo-interface) for
16//! instruction types, and [pinocchio-memo-program](https://crates.io/crates/pinocchio-memo-program)
17//! for the program implementation.
18
19mod entrypoint;
20pub mod processor;
21
22// Export current sdk types for downstream users building with a different sdk
23// version
24pub use {
25 solana_account_info, solana_instruction, solana_msg, solana_program_entrypoint,
26 solana_program_error, solana_pubkey,
27 spl_memo_interface::{
28 v1,
29 v3::{check_id, id, ID},
30 },
31};
32use {solana_instruction::Instruction, solana_pubkey::Pubkey};
33
34/// Build a memo instruction, possibly signed
35///
36/// Accounts expected by this instruction:
37///
38/// 0. `..0+N` `[signer]` Expected signers; if zero provided, instruction will
39/// be processed as a normal, unsigned spl-memo
40pub fn build_memo(memo: &[u8], signer_pubkeys: &[&Pubkey]) -> Instruction {
41 spl_memo_interface::instruction::build_memo(&id(), memo, signer_pubkeys)
42}