Add GetMinimumDelegation stake program instruction (#24020)

This commit is contained in:
Brooks Prumo
2022-04-02 00:11:10 -05:00
committed by GitHub
parent 792bbf75ab
commit 2af6753808
7 changed files with 178 additions and 92 deletions

View File

@@ -3,7 +3,7 @@ use {
check_num_accounts, ParsableProgram, ParseInstructionError, ParsedInstructionEnum,
},
bincode::deserialize,
serde_json::{json, Map},
serde_json::{json, Map, Value},
solana_sdk::{
instruction::CompiledInstruction, message::AccountKeys,
stake::instruction::StakeInstruction,
@@ -269,6 +269,10 @@ pub fn parse_stake(
}),
})
}
StakeInstruction::GetMinimumDelegation => Ok(ParsedInstructionEnum {
instruction_type: "getMinimumDelegation".to_string(),
info: Value::default(),
}),
}
}