guide overview· design
bridge flow xtz deposits· fa deposits· xtz withdrawals· xtz fast withdrawals· fa withdrawals
data model l2 operations
data model · L2 operations

L2 operations

fieldtypedepwdUI ★ EVM holdsMichelson holdswritten by
shared — AbstractBlockchainOperation + AbstractEtherlinkOperation
iduuid PKrow idrow idall handlers
timestampdatetimeop timeop timechain
levelintL2 (EVM) blockL2 (Tezlink) blockchain
runtimeenum evm|michelsonexplicit discriminator◔ proposed
alias_ofchar nulltz origin when l2_account is an alias◔ proposed
transaction_hashchar(64)★tx hash · 64-hexop-hash · o… base58 ⚠ nameevent / op
transaction_indexint nullblock tx indexop.counter filler ⚠ wrong uniton_michelson_deposit
log_indexint nullevent log index— (null)event
addresschar(40)emitter · 0x 40-hexdepositor · tz 36on_deposit / on_michelson
l2_accountchar(40)receiver · 0xreceiver · tz1handler
l2_token (token_id)fk FK null★→ etherlink_token · xtz_evm 18dp / xtz_michelson 6dpregister_etherlink_token
ticket (ticket_hash)fk FK dep null→ tezos_ticket  ⚠ nullable dep · required wdTezosTicket lookup
amounttext★wei · 18 dp · xtz_evmmutez · 6 dp · xtz_michelsonevent / on_michelson
deposit-only — EtherlinkDepositOperation
ticket_ownerchar(40)proxy · 0x ⚠ l2_ticket_ownersameevent
inbox_message_levelint null uq ↓from event coordsbackfilled at matchhandler / michelson_matcher
inbox_message_indexint null uq ↑from event coordsbackfilled at matchhandler / michelson_matcher
withdrawal-only — EtherlinkWithdrawOperation · always EVM, no Michelson path
l1_accountchar(36)L1 receiver · tz—event
l2_ticket_ownerchar(40)proxy · 0x—event
l1_ticket_ownerchar(36)ticketer · tz—event
parameters_hashchar(32) nullmatch key vs L1 sr_execute—WithdrawalEventParametersHash
kernel_withdrawal_idint null uqfast-withdrawal link id—event
fast_payloadbinary nullfast-withdrawal payload—event
Legend
Runtime EVM L2 Michelson L2 runtime-agnostic
Key PK FK unique nullable
Status ⚠ contradiction / smell ◔ proposed ★ read by bridge UI