Query editor
--https://docs.rs/spl-token-2022/latest/spl_token_2022/instruction/enum.AuthorityType.htmlwithauthority_base as (SELECTcall_account_arguments[1] as account_mint, case when bytearray_to_bigint(bytearray_reverse(bytearray_substring(call_data,1+2,1))) = 1then to_base58(bytearray_substring(call_data,1+2+1,32))else call_account_arguments[2]end as authority, bytearray_to_bigint(bytearray_reverse(bytearray_substring(call_data,1+1,1))) as authority_type, call_tx_id, call_block_time, call_block_slot, call_outer_instruction_index, call_inner_instruction_indexFROM spl_token_2022_solana.spl_token_2022_call_setAuthority-- --QA-- WHERE call_tx_id = '61sNNLohe1M2peSfyyF2Wb7joDWDh4cCa5F7ZEW6FSyky7pZqjDJz49Qqob9Q2N3ucnDjvtAq5LTUeCDQB9M28tW'-- and call_block_slot = 246945504-- we need to get the initial authorities on all the extensionsUNION ALLSELECTcall_account_arguments[1] as account_mint, to_base58(bytearray_substring(call_data,1+1+1,32)) as authority, 0 as authority_type, call_tx_id, call_block_time, call_block_slot, call_outer_instruction_index, call_inner_instruction_indexFROM spl_token_2022_solana.spl_token_2022_call_initializeMintUNION ALLSELECTcall_account_arguments[1] as account_mint, to_base58(bytearray_substring(call_data,1+1+1,32)) as authority, 0 as authority_type, call_tx_id, call_block_time, call_block_slot, call_outer_instruction_index, call_inner_instruction_indexFROM spl_token_2022_solana.spl_token_2022_call_initializeMint2UNION ALLSELECTcall_account_arguments[1] as account_mint, to_base58(bytearray_substring(call_data,1+1+1+32+1,32)) as authority, 1 as authority_type, call_tx_id, call_block_time, call_block_slot, call_outer_instruction_index, call_inner_instruction_indexFROM spl_token_2022_solana.spl_token_2022_call_initializeMintUNION ALLSELECTcall_account_arguments[1] as account_mint, to_base58(bytearray_substring(call_data,1+1+1+32+1,32)) as authority, 1 as authority_type