Skip to content

Commit

Permalink
Parse ConfidentialTransfer instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Jul 28, 2022
1 parent 45f2991 commit 0604e0f
Show file tree
Hide file tree
Showing 3 changed files with 406 additions and 4 deletions.
10 changes: 6 additions & 4 deletions transaction-status/src/parse_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use {
check_num_accounts, ParsableProgram, ParseInstructionError, ParsedInstructionEnum,
},
extension::{
default_account_state::*, interest_bearing_mint::*, memo_transfer::*,
mint_close_authority::*, reallocate::*, transfer_fee::*,
confidential_transfer::*, default_account_state::*, interest_bearing_mint::*,
memo_transfer::*, mint_close_authority::*, reallocate::*, transfer_fee::*,
},
serde_json::{json, Map, Value},
solana_account_decoder::parse_token::{
Expand Down Expand Up @@ -510,8 +510,10 @@ pub fn parse_token(
account_keys,
)
}
TokenInstruction::ConfidentialTransferExtension => Err(
ParseInstructionError::InstructionNotParsable(ParsableProgram::SplToken),
TokenInstruction::ConfidentialTransferExtension => parse_confidential_transfer_instruction(
&instruction.data[1..],
&instruction.accounts,
account_keys,
),
TokenInstruction::DefaultAccountStateExtension => {
if instruction.data.len() <= 2 {
Expand Down
Loading

0 comments on commit 0604e0f

Please sign in to comment.