@@ -4,8 +4,8 @@ use crate::bindings::{
44 SolAccountInfo , SolAccountMeta , SolInstruction , SolSignerSeed , SolSignerSeeds ,
55} ;
66use crate :: common:: {
7- cpi, CreateAccountInstructionData , InitInputBuffer , InitializeInstruction , InputBufferHeader ,
8- InsertInstruction , Instruction , TreeHeader , TreeNode ,
7+ cpi, CreateAccountInstructionData , GeneralInputBufferHeader , InitInputBuffer ,
8+ InitializeInstruction , InputBufferHeader , InsertInstruction , Instruction , TreeHeader , TreeNode ,
99} ;
1010use macros:: { asm_constant_group, extend_constant_group, pubkey_chunk_group, sizes, stack_frame} ;
1111use pinocchio:: {
@@ -36,6 +36,8 @@ extend_constant_group!(data {
3636 DATA_LEN_AND_MASK = -8 ,
3737 /// Maximum possible data length padding.
3838 MAX_DATA_PAD = 7 ,
39+ /// Boolean true value.
40+ BOOL_TRUE = 1 ,
3941} ) ;
4042
4143extend_constant_group ! ( input_buffer {
@@ -67,6 +69,8 @@ extend_constant_group!(input_buffer {
6769 pubkey_value!( RENT_ID , RENT_ID ) ,
6870 /// Program ID field for initialize instruction.
6971 offset_immediate!( INIT_PROGRAM_ID , InitInputBuffer . footer. program_id) ,
72+ /// Tree top pointer field within tree data.
73+ offset!( TREE_DATA_TOP , GeneralInputBufferHeader . tree_data. top) ,
7074 /// Relative offset from user data field to tree pubkey field.
7175 relative_offset_immediate!(
7276 USER_DATA ,
0 commit comments