tensor_eigen/commands/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
mod decode;
mod download;
mod eigen;
mod error;
mod fees;
mod pool;
mod whitelist;

pub use decode::*;
pub use download::*;
pub use eigen::*;
pub use error::*;
pub use fees::*;
pub use pool::*;
pub use whitelist::*;

pub use crate::{discriminators::Discriminator, setup::CliConfig, transaction};

use anyhow::{anyhow, Result};
use solana_sdk::{account::Account, pubkey::Pubkey, signer::Signer, transaction::Transaction};
use std::path::PathBuf;

#[macro_export]
macro_rules! transaction {
    ($signers:expr, $instructions:expr, $client:expr) => {
        Transaction::new_signed_with_payer(
            $instructions,
            Some(&$signers[0].pubkey()),
            $signers,
            $client.get_latest_blockhash()?,
        )
    };
}