pinocchio-memo

Crates.iopinocchio-memo
lib.rspinocchio-memo
version
sourcesrc
created_at2025-03-28 18:23:23.566554+00
updated_at2025-03-29 00:22:27.272434+00
descriptionPinocchio helpers to invoke Memo program instructions
homepage
repositoryhttps://github.com/anza-xyz/pinocchio
max_upload_size
id1609962
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(anza-team)

documentation

README

pinocchio-memo

pinocchio-memo

Overview

This crate contains pinocchio helpers to perform cross-program invocations (CPIs) for SPL Memo program instructions.

Each instruction defines a struct with the accounts and parameters required. Once all values are set, you can call directly invoke or invoke_signed to perform the CPI.

This is a no_std crate.

Note: The API defined in this crate is subject to change.

Getting Started

From your project folder:

cargo add pinocchio-memo

This will add the pinocchio-memo dependency to your Cargo.toml file.

Examples

Creating a memo:

// Both accounts should be signers
Memo {
    signers: &[&account_infos[0], &account_infos[1]],
    memo: "hello",
}
.invoke()?;

License

The code is licensed under the Apache License Version 2.0

Commit count: 0

cargo fmt