mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-04 21:48:17 +00:00
Compare commits
5 Commits
0f075ae447
...
57dd016a51
Author | SHA1 | Date | |
---|---|---|---|
|
57dd016a51 | ||
|
ef02c4de5d | ||
|
835f7087c6 | ||
|
331e07b1e0 | ||
|
d36055208b |
@ -3003,6 +3003,68 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 0,
|
||||
"name": "Create1",
|
||||
"is_multisig": false,
|
||||
"parameters": [],
|
||||
"references": [
|
||||
{
|
||||
"name": "funding_account",
|
||||
"is_authority": true,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"name": "associated_token_account",
|
||||
"is_authority": false,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"name": "wallet_address",
|
||||
"is_authority": false,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"name": "token_mint",
|
||||
"is_authority": false,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"name": "system_program",
|
||||
"is_authority": false,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"name": "spl_token",
|
||||
"is_authority": false,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"//": "Some dApps still include the rent sysvar although it's not officially required anymore.",
|
||||
"name": "rent_sysvar",
|
||||
"is_authority": false,
|
||||
"optional": true
|
||||
}
|
||||
],
|
||||
"ui_properties": [
|
||||
{
|
||||
"account": "associated_token_account",
|
||||
"display_name": "Create token account"
|
||||
},
|
||||
{
|
||||
"account": "token_mint",
|
||||
"display_name": "For token"
|
||||
},
|
||||
{
|
||||
"account": "wallet_address",
|
||||
"display_name": "Owned by"
|
||||
},
|
||||
{
|
||||
"account": "funding_account",
|
||||
"display_name": "Funded by"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Create Idempotent",
|
||||
|
@ -31,6 +31,7 @@ PYOPT ?= 1
|
||||
BITCOIN_ONLY ?= 0
|
||||
BOOTLOADER_QA ?= 0
|
||||
BOOTLOADER_DEVEL ?= 0
|
||||
DISABLE_OPTIGA ?= 0
|
||||
TREZOR_MODEL ?= T
|
||||
TREZOR_MEMPERF ?= 0
|
||||
ADDRESS_SANITIZER ?= 0
|
||||
@ -41,6 +42,8 @@ THP ?= 0
|
||||
BENCHMARK ?= 0
|
||||
TREZOR_EMULATOR_DEBUGGABLE ?= 0
|
||||
QUIET_MODE ?= 0
|
||||
TREZOR_DISABLE_ANIMATION ?= $(if $(filter 0,$(PYOPT)),1,0)
|
||||
STORAGE_INSECURE_TESTING_MODE ?= 0
|
||||
|
||||
# OpenOCD interface default. Alternative: ftdi/olimex-arm-usb-tiny-h
|
||||
OPENOCD_INTERFACE ?= stlink
|
||||
@ -142,7 +145,9 @@ SCONS_VARS = \
|
||||
PRODUCTION="$(PRODUCTION)" \
|
||||
PYOPT="$(PYOPT)" \
|
||||
QUIET_MODE="$(QUIET_MODE)" \
|
||||
STORAGE_INSECURE_TESTING_MODE="$(STORAGE_INSECURE_TESTING_MODE)" \
|
||||
THP="$(THP)" \
|
||||
TREZOR_DISABLE_ANIMATION="$(TREZOR_DISABLE_ANIMATION)" \
|
||||
TREZOR_EMULATOR_ASAN="$(ADDRESS_SANITIZER)" \
|
||||
TREZOR_EMULATOR_DEBUGGABLE=$(TREZOR_EMULATOR_DEBUGGABLE) \
|
||||
TREZOR_MEMPERF="$(TREZOR_MEMPERF)" \
|
||||
|
@ -18,6 +18,14 @@ HW_REVISION = ARGUMENTS.get('HW_REVISION', None)
|
||||
THP = ARGUMENTS.get('THP', '0') == '1' # Trezor-Host Protocol
|
||||
MODEL_IDENTIFIER = models.get_model_identifier(TREZOR_MODEL)
|
||||
BENCHMARK = ARGUMENTS.get('BENCHMARK', '0') == '1'
|
||||
DISABLE_ANIMATION = ARGUMENTS.get('TREZOR_DISABLE_ANIMATION', '0') == '1'
|
||||
|
||||
STORAGE_INSECURE_TESTING_MODE = ARGUMENTS.get('STORAGE_INSECURE_TESTING_MODE', '0') == '1'
|
||||
if STORAGE_INSECURE_TESTING_MODE and PRODUCTION:
|
||||
raise RuntimeError("STORAGE_INSECURE_TESTING_MODE cannot be used in production")
|
||||
if STORAGE_INSECURE_TESTING_MODE:
|
||||
DISABLE_OPTIGA = True
|
||||
PYOPT = "0"
|
||||
|
||||
if BENCHMARK and PYOPT != '0':
|
||||
print("BENCHMARK=1 works only with PYOPT=0.")
|
||||
@ -30,7 +38,9 @@ FEATURE_FLAGS = {
|
||||
}
|
||||
|
||||
FEATURES_WANTED = ["input", "sd_card", "rgb_led", "dma2d", "consumption_mask", "usb" ,"optiga", "haptic"]
|
||||
if DISABLE_OPTIGA and PYOPT == '0':
|
||||
if DISABLE_OPTIGA:
|
||||
if PYOPT != '0':
|
||||
raise RuntimeError("DISABLE_OPTIGA requires PYOPT=0")
|
||||
FEATURES_WANTED.remove("optiga")
|
||||
|
||||
CCFLAGS_MOD = ''
|
||||
@ -69,6 +79,7 @@ CPPDEFINES_MOD += [
|
||||
('USE_CARDANO', '1' if EVERYTHING else '0'),
|
||||
('USE_NEM', '1' if (EVERYTHING and TREZOR_MODEL == "T") else '0'),
|
||||
('USE_EOS', '1' if (EVERYTHING and TREZOR_MODEL == "T") else '0'),
|
||||
('DISABLE_ANIMATION', '1' if DISABLE_ANIMATION else '0'),
|
||||
]
|
||||
SOURCE_MOD += [
|
||||
'embed/upymod/trezorobj.c',
|
||||
@ -367,6 +378,9 @@ if THP:
|
||||
'vendor/trezor-crypto/elligator2.c',
|
||||
]
|
||||
|
||||
if STORAGE_INSECURE_TESTING_MODE:
|
||||
CPPDEFINES_MOD += ['STORAGE_INSECURE_TESTING_MODE']
|
||||
|
||||
ui.init_ui(TREZOR_MODEL, "firmware", CPPDEFINES_MOD, SOURCE_MOD, RUST_UI_FEATURES)
|
||||
|
||||
SOURCE_QSTR = SOURCE_MOD + SOURCE_MICROPYTHON + SOURCE_MICROPYTHON_SPEED
|
||||
@ -873,6 +887,14 @@ elif 'STM32U5G9xx' in CPPDEFINES_HAL or 'STM32U585xx' in CPPDEFINES_HAL:
|
||||
else:
|
||||
raise Exception("Unknown MCU")
|
||||
|
||||
if STORAGE_INSECURE_TESTING_MODE:
|
||||
INSECURE_TESTING_MODE_STR = """
|
||||
#########################################################
|
||||
# STORAGE_INSECURE_TESTING_MODE enabled, DO NOT USE #
|
||||
#########################################################
|
||||
"""
|
||||
action_bin.append(INSECURE_TESTING_MODE_STR)
|
||||
|
||||
program_bin = env.Command(
|
||||
target='firmware.bin',
|
||||
source=program_elf,
|
||||
|
@ -16,6 +16,13 @@ DISABLE_OPTIGA = ARGUMENTS.get('DISABLE_OPTIGA', '0') == '1'
|
||||
HW_REVISION = ARGUMENTS.get('HW_REVISION', None)
|
||||
THP = ARGUMENTS.get('THP', '0') == '1' # Trezor-Host Protocol
|
||||
|
||||
STORAGE_INSECURE_TESTING_MODE = ARGUMENTS.get('STORAGE_INSECURE_TESTING_MODE', '0') == '1'
|
||||
if STORAGE_INSECURE_TESTING_MODE and PRODUCTION:
|
||||
raise RuntimeError("STORAGE_INSECURE_TESTING_MODE cannot be used in production")
|
||||
if STORAGE_INSECURE_TESTING_MODE:
|
||||
DISABLE_OPTIGA = True
|
||||
PYOPT = "0"
|
||||
|
||||
FEATURE_FLAGS = {
|
||||
"RDI": True,
|
||||
"SECP256K1_ZKP": True, # required for trezor.crypto.curve.bip340 (BIP340/Taproot)
|
||||
@ -24,7 +31,10 @@ FEATURE_FLAGS = {
|
||||
}
|
||||
|
||||
FEATURES_WANTED = ["input", "sd_card", "rgb_led", "dma2d", "consumption_mask", "usb" ,"optiga", "haptic"]
|
||||
if DISABLE_OPTIGA and PYOPT == '0':
|
||||
if DISABLE_OPTIGA:
|
||||
# TODO use PYOPT instead of PRODUCTION, same as in firmware, blocked on #4253
|
||||
if PRODUCTION:
|
||||
raise RuntimeError("DISABLE_OPTIGA requires non-production build")
|
||||
FEATURES_WANTED.remove("optiga")
|
||||
|
||||
CCFLAGS_MOD = ''
|
||||
@ -235,6 +245,8 @@ if THP:
|
||||
'vendor/trezor-crypto/elligator2.c',
|
||||
]
|
||||
|
||||
if STORAGE_INSECURE_TESTING_MODE:
|
||||
CPPDEFINES_MOD += ['STORAGE_INSECURE_TESTING_MODE']
|
||||
|
||||
env = Environment(
|
||||
ENV=os.environ,
|
||||
@ -411,6 +423,14 @@ action_bin=[
|
||||
'$CP $TARGET ' + BINARY_NAME,
|
||||
]
|
||||
|
||||
if STORAGE_INSECURE_TESTING_MODE:
|
||||
INSECURE_TESTING_MODE_STR = """
|
||||
#########################################################
|
||||
# STORAGE_INSECURE_TESTING_MODE enabled, DO NOT USE #
|
||||
#########################################################
|
||||
"""
|
||||
action_bin.append(INSECURE_TESTING_MODE_STR)
|
||||
|
||||
program_bin = env.Command(
|
||||
target='kernel.bin',
|
||||
source=program_elf,
|
||||
|
@ -410,6 +410,9 @@ STATIC mp_obj_tuple_t mod_trezorutils_version_obj = {
|
||||
/// """UI layout identifier ("tt" for model T, "tr" for models One and R)."""
|
||||
/// USE_THP: bool
|
||||
/// """Whether the firmware supports Trezor-Host Protocol (version 2)."""
|
||||
/// if __debug__:
|
||||
/// DISABLE_ANIMATION: bool
|
||||
/// """Whether the firmware should disable animations."""
|
||||
|
||||
STATIC const mp_rom_map_elem_t mp_module_trezorutils_globals_table[] = {
|
||||
{MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorutils)},
|
||||
@ -502,6 +505,13 @@ STATIC const mp_rom_map_elem_t mp_module_trezorutils_globals_table[] = {
|
||||
#else
|
||||
#error Unknown layout
|
||||
#endif
|
||||
#if !PYOPT
|
||||
#if DISABLE_ANIMATION
|
||||
{MP_ROM_QSTR(MP_QSTR_DISABLE_ANIMATION), mp_const_true},
|
||||
#else
|
||||
{MP_ROM_QSTR(MP_QSTR_DISABLE_ANIMATION), mp_const_false},
|
||||
#endif // TREZOR_DISABLE_ANIMATION
|
||||
#endif // PYOPT
|
||||
};
|
||||
|
||||
STATIC MP_DEFINE_CONST_DICT(mp_module_trezorutils_globals,
|
||||
|
@ -152,3 +152,6 @@ UI_LAYOUT: str
|
||||
"""UI layout identifier ("tt" for model T, "tr" for models One and R)."""
|
||||
USE_THP: bool
|
||||
"""Whether the firmware supports Trezor-Host Protocol (version 2)."""
|
||||
if __debug__:
|
||||
DISABLE_ANIMATION: bool
|
||||
"""Whether the firmware should disable animations."""
|
||||
|
@ -5,6 +5,7 @@ from trezor.crypto import base58
|
||||
from .transaction import Transaction
|
||||
from .transaction.instructions import (
|
||||
AssociatedTokenAccountProgramCreateInstruction,
|
||||
AssociatedTokenAccountProgramCreate1Instruction,
|
||||
Instruction,
|
||||
Token2022ProgramTransferCheckedInstruction,
|
||||
TokenProgramTransferCheckedInstruction,
|
||||
@ -32,11 +33,14 @@ def get_token_transfer_instructions(
|
||||
|
||||
def get_create_associated_token_account_instructions(
|
||||
instructions: list[Instruction],
|
||||
) -> list[AssociatedTokenAccountProgramCreateInstruction]:
|
||||
) -> list[AssociatedTokenAccountProgramCreateInstruction | AssociatedTokenAccountProgramCreate1Instruction]:
|
||||
return [
|
||||
instruction
|
||||
for instruction in instructions
|
||||
if AssociatedTokenAccountProgramCreateInstruction.is_type_of(instruction)
|
||||
if (
|
||||
AssociatedTokenAccountProgramCreateInstruction.is_type_of(instruction)
|
||||
or AssociatedTokenAccountProgramCreate1Instruction.is_type_of(instruction)
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
|
@ -101,6 +101,7 @@ _TOKEN_2022_PROGRAM_ID_INS_SYNC_NATIVE = const(17)
|
||||
_TOKEN_2022_PROGRAM_ID_INS_INITIALIZE_ACCOUNT_3 = const(18)
|
||||
_TOKEN_2022_PROGRAM_ID_INS_INITIALIZE_IMMUTABLE_OWNER = const(22)
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE = None
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE1 = const(0)
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE_IDEMPOTENT = const(1)
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_RECOVER_NESTED = const(2)
|
||||
_MEMO_PROGRAM_ID_INS_MEMO = None
|
||||
@ -283,6 +284,11 @@ def __getattr__(name: str) -> Type[Instruction]:
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID,
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE,
|
||||
)
|
||||
if name == "AssociatedTokenAccountProgramCreate1Instruction":
|
||||
return (
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID,
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE1,
|
||||
)
|
||||
if name == "AssociatedTokenAccountProgramCreateIdempotentInstruction":
|
||||
return (
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID,
|
||||
@ -790,6 +796,16 @@ if TYPE_CHECKING:
|
||||
spl_token: Account
|
||||
rent_sysvar: Account | None
|
||||
|
||||
class AssociatedTokenAccountProgramCreate1Instruction(Instruction):
|
||||
|
||||
funding_account: Account
|
||||
associated_token_account: Account
|
||||
wallet_address: Account
|
||||
token_mint: Account
|
||||
system_program: Account
|
||||
spl_token: Account
|
||||
rent_sysvar: Account | None
|
||||
|
||||
class AssociatedTokenAccountProgramCreateIdempotentInstruction(Instruction):
|
||||
|
||||
funding_account: Account
|
||||
@ -5223,6 +5239,87 @@ def get_instruction(
|
||||
False,
|
||||
None,
|
||||
)
|
||||
if instruction_id == _ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE1:
|
||||
return Instruction(
|
||||
instruction_data,
|
||||
program_id,
|
||||
instruction_accounts,
|
||||
_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE1,
|
||||
[],
|
||||
[
|
||||
AccountTemplate(
|
||||
"funding_account",
|
||||
True,
|
||||
False,
|
||||
),
|
||||
AccountTemplate(
|
||||
"associated_token_account",
|
||||
False,
|
||||
False,
|
||||
),
|
||||
AccountTemplate(
|
||||
"wallet_address",
|
||||
False,
|
||||
False,
|
||||
),
|
||||
AccountTemplate(
|
||||
"token_mint",
|
||||
False,
|
||||
False,
|
||||
),
|
||||
AccountTemplate(
|
||||
"system_program",
|
||||
False,
|
||||
False,
|
||||
),
|
||||
AccountTemplate(
|
||||
"spl_token",
|
||||
False,
|
||||
False,
|
||||
),
|
||||
AccountTemplate(
|
||||
"rent_sysvar",
|
||||
False,
|
||||
True,
|
||||
),
|
||||
],
|
||||
[
|
||||
UIProperty(
|
||||
None,
|
||||
"associated_token_account",
|
||||
"Create token account",
|
||||
False,
|
||||
None,
|
||||
),
|
||||
UIProperty(
|
||||
None,
|
||||
"token_mint",
|
||||
"For token",
|
||||
False,
|
||||
None,
|
||||
),
|
||||
UIProperty(
|
||||
None,
|
||||
"wallet_address",
|
||||
"Owned by",
|
||||
False,
|
||||
None,
|
||||
),
|
||||
UIProperty(
|
||||
None,
|
||||
"funding_account",
|
||||
"Funded by",
|
||||
False,
|
||||
None,
|
||||
),
|
||||
],
|
||||
"Associated Token Account Program: Create1",
|
||||
True,
|
||||
True,
|
||||
False,
|
||||
False,
|
||||
None,
|
||||
)
|
||||
if instruction_id == _ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE_IDEMPOTENT:
|
||||
return Instruction(
|
||||
instruction_data,
|
||||
|
@ -24,7 +24,7 @@ else:
|
||||
|
||||
|
||||
if __debug__:
|
||||
trezorui2.disable_animation(bool(utils.DISABLE_ANIMATION))
|
||||
trezorui2.disable_animation(utils.DISABLE_ANIMATION)
|
||||
|
||||
|
||||
# all rendering is done through a singleton of `Display`
|
||||
|
@ -33,17 +33,20 @@ from trezorutils import ( # noqa: F401
|
||||
)
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
DISABLE_ANIMATION = 0
|
||||
|
||||
if __debug__:
|
||||
if EMULATOR:
|
||||
import uos
|
||||
|
||||
DISABLE_ANIMATION = int(uos.getenv("TREZOR_DISABLE_ANIMATION") or "0")
|
||||
LOG_MEMORY = int(uos.getenv("TREZOR_LOG_MEMORY") or "0")
|
||||
DISABLE_ANIMATION = uos.getenv("TREZOR_DISABLE_ANIMATION") == "1"
|
||||
LOG_MEMORY = uos.getenv("TREZOR_LOG_MEMORY") == "1"
|
||||
else:
|
||||
from trezorutils import DISABLE_ANIMATION # noqa: F401
|
||||
|
||||
LOG_MEMORY = 0
|
||||
|
||||
else:
|
||||
DISABLE_ANIMATION = False
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Any, Iterator, Protocol, Sequence, TypeVar
|
||||
|
||||
|
@ -84,6 +84,7 @@ TOKEN_2022_PROGRAM_ID_INS_SYNC_NATIVE = 17
|
||||
TOKEN_2022_PROGRAM_ID_INS_INITIALIZE_ACCOUNT_3 = 18
|
||||
TOKEN_2022_PROGRAM_ID_INS_INITIALIZE_IMMUTABLE_OWNER = 22
|
||||
ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE = None
|
||||
ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE1 = 0
|
||||
ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_CREATE_IDEMPOTENT = 1
|
||||
ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID_INS_RECOVER_NESTED = 2
|
||||
MEMO_PROGRAM_ID_INS_MEMO = None
|
||||
|
@ -284,11 +284,15 @@ void norcow_wipe(void) {
|
||||
// Erase the active sector first, because it contains sensitive data.
|
||||
erase_sector(norcow_active_sector, sectrue);
|
||||
|
||||
#if STORAGE_INSECURE_TESTING_MODE && !PRODUCTION
|
||||
// skip erasing inactive sectors
|
||||
#else
|
||||
for (uint8_t i = 0; i < NORCOW_SECTOR_COUNT; i++) {
|
||||
if (i != norcow_active_sector) {
|
||||
erase_sector(i, secfalse);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
norcow_active_version = NORCOW_VERSION;
|
||||
norcow_write_sector = norcow_active_sector;
|
||||
norcow_free_offset = NORCOW_STORAGE_START;
|
||||
|
@ -86,8 +86,12 @@ const uint32_t V0_PIN_EMPTY = 1;
|
||||
// up constant storage space.
|
||||
#define MAX_WIPE_CODE_LEN 50
|
||||
|
||||
#if STORAGE_INSECURE_TESTING_MODE && !PRODUCTION
|
||||
#define PIN_ITER_COUNT 1
|
||||
#else
|
||||
// The total number of iterations to use in PBKDF2.
|
||||
#define PIN_ITER_COUNT 20000
|
||||
#endif
|
||||
|
||||
// The minimum number of milliseconds between progress updates.
|
||||
#define MIN_PROGRESS_UPDATE_MS 100
|
||||
|
@ -2,3 +2,15 @@
|
||||
#include <stdint.h>
|
||||
|
||||
uint32_t hamming_weight(uint32_t value);
|
||||
|
||||
#ifndef STORAGE_INSECURE_TESTING_MODE
|
||||
#define STORAGE_INSECURE_TESTING_MODE 0
|
||||
#endif
|
||||
|
||||
#if STORAGE_INSECURE_TESTING_MODE
|
||||
#if PRODUCTION
|
||||
#error "STORAGE_INSECURE_TESTING_MODE can't be used in production"
|
||||
#else
|
||||
#pragma message("STORAGE IS INSECURE DO NOT USE THIS IN PRODUCTION")
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1267,6 +1267,7 @@ Token2022Program_Instruction = Select(
|
||||
|
||||
class AssociatedTokenAccountProgramInstruction(Enum):
|
||||
CREATE = None
|
||||
CREATE1 = 0
|
||||
CREATE_IDEMPOTENT = 1
|
||||
RECOVER_NESTED = 2
|
||||
|
||||
@ -1289,6 +1290,24 @@ AssociatedTokenAccountProgram_Create = Struct(
|
||||
),
|
||||
)
|
||||
|
||||
AssociatedTokenAccountProgram_Create1 = Struct(
|
||||
"program_index" / Byte,
|
||||
"accounts"
|
||||
/ CompactStruct(
|
||||
"funding_account" / Byte,
|
||||
"associated_token_account" / Byte,
|
||||
"wallet_address" / Byte,
|
||||
"token_mint" / Byte,
|
||||
"system_program" / Byte,
|
||||
"spl_token" / Byte,
|
||||
"rent_sysvar" / Optional(Byte),
|
||||
),
|
||||
"data"
|
||||
/ CompactStruct(
|
||||
"instruction_id" / Const(0, Byte),
|
||||
),
|
||||
)
|
||||
|
||||
AssociatedTokenAccountProgram_CreateIdempotent = Struct(
|
||||
"program_index" / Byte,
|
||||
"accounts"
|
||||
@ -1327,6 +1346,7 @@ AssociatedTokenAccountProgram_RecoverNested = Struct(
|
||||
|
||||
AssociatedTokenAccountProgram_Instruction = Select(
|
||||
AssociatedTokenAccountProgram_Create,
|
||||
AssociatedTokenAccountProgram_Create1,
|
||||
AssociatedTokenAccountProgram_CreateIdempotent,
|
||||
AssociatedTokenAccountProgram_RecoverNested,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user