mpl-barista-interface

Crates.iompl-barista-interface
lib.rsmpl-barista-interface
version0.1.0-alpha.0
sourcesrc
created_at2023-12-24 23:41:29.29668
updated_at2023-12-24 23:41:29.29668
descriptionMetaplex Barista Interface
homepage
repositoryhttps://github.com/metaplex-foundation/mpl-barista
max_upload_size
id1079933
size17,440
Fernando Otero (febo)

documentation

README

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:

  1. [signer] - the Barista account.
  2. [] - the owner of the Request account.
  3. [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.

Commit count: 0

cargo fmt