Fix comment and make less pub
This commit is contained in:
@ -14,6 +14,8 @@ bs58 = "0.3.1"
|
|||||||
Inflector = "0.11.4"
|
Inflector = "0.11.4"
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
solana-sdk = { path = "../sdk", version = "1.3.0" }
|
solana-sdk = { path = "../sdk", version = "1.3.0" }
|
||||||
|
solana-stake-program = { path = "../programs/stake", version = "1.3.0" }
|
||||||
|
solana-vote-program = { path = "../programs/vote", version = "1.3.0" }
|
||||||
spl-memo = "1.0.0"
|
spl-memo = "1.0.0"
|
||||||
serde = "1.0.112"
|
serde = "1.0.112"
|
||||||
serde_derive = "1.0.103"
|
serde_derive = "1.0.103"
|
||||||
|
@ -23,7 +23,7 @@ pub enum RpcInstruction {
|
|||||||
Parsed(Value),
|
Parsed(Value),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A duplicate representation of a Message for pretty JSON serialization
|
/// A duplicate representation of a CompiledInstruction for pretty JSON serialization
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct RpcCompiledInstruction {
|
pub struct RpcCompiledInstruction {
|
||||||
|
@ -8,7 +8,7 @@ use std::{
|
|||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref MEMO_PROGRAM_ID: Pubkey = Pubkey::from_str(&spl_memo::id().to_string()).unwrap();
|
static ref MEMO_PROGRAM_ID: Pubkey = Pubkey::from_str(&spl_memo::id().to_string()).unwrap();
|
||||||
pub static ref PARSABLE_PROGRAM_IDS: HashMap<Pubkey, ParsableProgram> = {
|
static ref PARSABLE_PROGRAM_IDS: HashMap<Pubkey, ParsableProgram> = {
|
||||||
let mut m = HashMap::new();
|
let mut m = HashMap::new();
|
||||||
m.insert(*MEMO_PROGRAM_ID, ParsableProgram::SplMemo);
|
m.insert(*MEMO_PROGRAM_ID, ParsableProgram::SplMemo);
|
||||||
m
|
m
|
||||||
@ -17,7 +17,7 @@ lazy_static! {
|
|||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub enum ParsableProgram {
|
enum ParsableProgram {
|
||||||
SplMemo,
|
SplMemo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user