1 unstable release
0.1.0-alpha.0 | Dec 24, 2023 |
---|
#33 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
~17–26MB
~423K SLoC