txsets

package
v2.0.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package txsets contains Til sets of transactions & Transactions generation that are used at tests of other packages of hermez-node

Index

Constants

This section is empty.

Variables

View Source
var SetBlockchain0 = `` /* 4152-byte string literal not displayed */

SetBlockchain0 contains a set of transactions simulated to be from the smart contract

View Source
var SetBlockchainMinimumFlow0 = `` /* 2458-byte string literal not displayed */

SetBlockchainMinimumFlow0 contains a set of transactions with a minimal flow

View Source
var SetPool0 = `` /* 347-byte string literal not displayed */

SetPool0 contains a set of transactions from the PoolL2

View Source
var SetPoolL2MinimumFlow0 = `` /* 327-byte string literal not displayed */

SetPoolL2MinimumFlow0 contains a set of transactions with a minimal flow

View Source
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

func GenerateJsUsers(t *testing.T) []til.User

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

func GenerateTxsZKInputsHash0

func GenerateTxsZKInputsHash0(t *testing.T, chainID uint16) (users []til.User,
	coordIdxs []common.Idx, l1UserTxs []common.L1Tx, l1CoordTxs []common.L1Tx,
	l2Txs []common.PoolL2Tx)

GenerateTxsZKInputsHash0 generates the transactions for the TestZKInputsHash0

func GenerateTxsZKInputsHash1

func GenerateTxsZKInputsHash1(t *testing.T, chainID uint16) (users []til.User,
	coordIdxs []common.Idx, l1UserTxs []common.L1Tx, l1CoordTxs []common.L1Tx,
	l2Txs []common.PoolL2Tx)

GenerateTxsZKInputsHash1 generates the transactions for the TestZKInputsHash1

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL