ore-relayer-api 2.2.0

API for interacting with the ORE relayer program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod escrow;

pub use escrow::*;

use num_enum::{IntoPrimitive, TryFromPrimitive};
use solana_program::pubkey::Pubkey;

use crate::consts::ESCROW;

#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
pub enum AccountDiscriminator {
    Escrow = 100,
}

pub fn escrow_pda(authority: Pubkey) -> (Pubkey, u8) {
    Pubkey::find_program_address(&[ESCROW, authority.as_ref()], &crate::id())
}