File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
sdk-libs/compressed-token-sdk/src/cpi Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,25 @@ use borsh::BorshSerialize as AnchorSerialize;
6
6
use light_compressed_account:: instruction_data:: {
7
7
compressed_proof:: CompressedProof , cpi_context:: CompressedCpiContext ,
8
8
} ;
9
- pub use light_compressed_token:: process_transfer:: {
10
- CompressedTokenInstructionDataTransfer , InputTokenDataWithContext ,
11
- } ;
9
+ pub use light_compressed_token:: process_transfer:: CompressedTokenInstructionDataTransfer ;
12
10
use solana_program:: {
13
11
instruction:: { AccountMeta , Instruction } ,
14
12
program_error:: ProgramError ,
15
13
pubkey:: Pubkey ,
16
14
} ;
17
15
16
+ /// From light-compressed-token::process_transfer::InputTokenDataWithContext.
17
+ #[ derive( Debug , Clone , AnchorSerialize , AnchorDeserialize ) ]
18
+ pub struct InputTokenDataWithContext {
19
+ pub amount : u64 ,
20
+ pub delegate_index : Option < u8 > ,
21
+ pub merkle_context : PackedMerkleContext ,
22
+ pub root_index : u16 ,
23
+ pub lamports : Option < u64 > ,
24
+ /// Placeholder for TokenExtension tlv data (unimplemented)
25
+ pub tlv : Option < Vec < u8 > > ,
26
+ }
27
+
18
28
/// Return Instruction to decompress compressed token accounts.
19
29
/// Proof can be None if prove_by_index is used.
20
30
pub fn decompress (
You can’t perform that action at this time.
0 commit comments