Closed krlosMata closed 3 years ago
According to Hermez contract documentation:
fromIdx | toIdx | loadAmountF | amountF | tokenID(SC) | babyPubKey | l1-user-TX |
---|---|---|---|---|---|---|
0 | 0 | 0 | 0(SC) | X | !=0(SC) | createAccount |
0 | 0 | !=0 | 0(SC) | X | !=0(SC) | createAccountDeposit |
0 | 1 | X | X | X | !=0(SC) | createAccountDepositAndExit |
0 | 255+ | X | X | X | !=0(SC) | createAccountDepositAndTransfer |
255+ | 0 | X | 0(SC) | X | 0(SC) | Deposit |
255+ | 1 | 0 | X | X | 0(SC) | Exit |
255+ | 1 | !=0 | X | X | 0(SC) | DepositAndExit |
255+ | 255+ | 0 | X | X | 0(SC) | Transfer |
255+ | 255+ | !=0 | X | X | 0(SC) | DepositAndTransfer |
fromIdx
and toIdx
toIdx
is 0, amountF
must be 0, because there is no L2 transferNOTE:
createAccountDepositAndExit
& DepositAndExit
will not be valid transactions since the smart contract will not allow them
L1 transaction parameters has been modified and some assumptions are not longer valid on some parameters in this table
Therefore: