Documentation ¶
Overview ¶
Package txsets contains Til sets of transactions & Transactions generation that are used at tests of other packages of hermez-node
Index ¶
- Variables
- func GenerateJsUsers(t *testing.T) []til.User
- func GenerateTxsZKInputs0(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, ...)
- func GenerateTxsZKInputs1(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, ...)
- func GenerateTxsZKInputs2(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, ...)
- func GenerateTxsZKInputs3(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, ...)
- func GenerateTxsZKInputs4(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, ...)
- func GenerateTxsZKInputs5(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, ...)
- func GenerateTxsZKInputsHash0(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, ...)
- func GenerateTxsZKInputsHash1(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, ...)
Constants ¶
This section is empty.
Variables ¶
var SetBlockchain0 = `` /* 4152-byte string literal not displayed */
SetBlockchain0 contains a set of transactions simulated to be from the smart contract
var SetBlockchainMinimumFlow0 = `` /* 2458-byte string literal not displayed */
SetBlockchainMinimumFlow0 contains a set of transactions with a minimal flow
var SetPool0 = `` /* 347-byte string literal not displayed */
SetPool0 contains a set of transactions from the PoolL2
var SetPoolL2MinimumFlow0 = `` /* 327-byte string literal not displayed */
SetPoolL2MinimumFlow0 contains a set of transactions with a minimal flow
var SetPoolL2MinimumFlow1 = `` /* 309-byte string literal not displayed */
SetPoolL2MinimumFlow1 contains the same transactions than the SetPoolL2MinimumFlow0, but simulating coming from the smart contract (always with the parameter ToIdx filled)
Functions ¶
func GenerateJsUsers ¶
GenerateJsUsers generates the same values than in the js test
func GenerateTxsZKInputs0 ¶
func GenerateTxsZKInputs0(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, l1CoordTxs []common.L1Tx, l2Txs []common.PoolL2Tx)
GenerateTxsZKInputs0 generates the transactions for the TestZKInputs0
func GenerateTxsZKInputs1 ¶
func GenerateTxsZKInputs1(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, l1CoordTxs []common.L1Tx, l2Txs []common.PoolL2Tx)
GenerateTxsZKInputs1 generates the transactions for the TestZKInputs1
func GenerateTxsZKInputs2 ¶
func GenerateTxsZKInputs2(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, l1CoordTxs []common.L1Tx, l2Txs []common.PoolL2Tx)
GenerateTxsZKInputs2 generates the transactions for the TestZKInputs2
func GenerateTxsZKInputs3 ¶
func GenerateTxsZKInputs3(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, l1CoordTxs []common.L1Tx, l2Txs []common.PoolL2Tx)
GenerateTxsZKInputs3 generates the transactions for the TestZKInputs3
func GenerateTxsZKInputs4 ¶
func GenerateTxsZKInputs4(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, l1CoordTxs []common.L1Tx, l2Txs []common.PoolL2Tx)
GenerateTxsZKInputs4 generates the transactions for the TestZKInputs4
func GenerateTxsZKInputs5 ¶
func GenerateTxsZKInputs5(t *testing.T, chainID uint16) (users []til.User, coordIdxs []common.Idx, l1UserTxs []common.L1Tx, l1CoordTxs []common.L1Tx, l2Txs []common.PoolL2Tx)
GenerateTxsZKInputs5 generates the transactions for the TestZKInputs5
Types ¶
This section is empty.