1 unstable release
0.1.0-alpha.0 | Dec 24, 2023 |
---|
#38 in #metaplex
7KB
69 lines
Metaplex Barista Interface
This crates defines the Service
instruction required for integrating programs with Barista.
Getting started
From your project folder:
cargo add mpl-barista-interface
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]
- theBarista
account.[]
- the owner of theRequest
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.
Dependencies
~16–25MB
~419K SLoC