| Crates.io | mpl-barista-interface |
| lib.rs | mpl-barista-interface |
| version | 0.1.0-alpha.0 |
| created_at | 2023-12-24 23:41:29.29668+00 |
| updated_at | 2023-12-24 23:41:29.29668+00 |
| description | Metaplex Barista Interface |
| homepage | |
| repository | https://github.com/metaplex-foundation/mpl-barista |
| max_upload_size | |
| id | 1079933 |
| size | 17,440 |
This crates defines the Service instruction required for integrating programs with Barista.
From your project folder:
cargo add mpl-barista-interface
The interface between Barista and a program is defined by the Service instruction.
#[derive(SplDiscriminate, Default)]
#[discriminator_hash_input("mpl_barista_interface:service")]
pub struct ServiceInstruction;
This instruction takes the following required account:
[signer] - the Barista account.[] - the owner of the Request account.[writable] - destination account.The destination is the account owned by the target program. In addition to these accounts, any required account by the target program must be specified as remaining accounts.