Documentation
¶
Index ¶
- func BuildSDKTx(t *testing.T, chainID string, seqNum, accNum uint64, ...) *sdktx.Tx
- func GenerateBlock(t *testing.T) *monomer.Block
- func GenerateBlockFromEthTxs(t *testing.T, l1InfoTx *gethtypes.Transaction, ...) *monomer.Block
- func GenerateBlockWithParentAndTxs(t *testing.T, parent *monomer.Header, cosmosTxs ...bfttypes.Tx) *monomer.Block
- func GenerateERC20DepositTx(t *testing.T, tokenAddr, userAddr common.Address, amount *big.Int) *gethtypes.Transaction
- func GenerateEthBridgeDepositTx(t *testing.T, userAddr common.Address, amount *big.Int) *gethtypes.Transaction
- func GenerateEthTxs(t *testing.T) (*gethtypes.Transaction, *gethtypes.Transaction, *gethtypes.Transaction)
- func GenerateL1Block() *gethtypes.Block
- func NewCometMemDB(t *testing.T) cometdb.DB
- func NewLocalMemDB(t *testing.T) *localdb.DB
- func NewMemDB(t *testing.T) dbm.DB
- func TxToBytes(t *testing.T, tx *gethtypes.Transaction) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSDKTx ¶ added in v0.1.6
func GenerateBlock ¶
GenerateBlock generates a valid block (up to stateless validation). The block is not meant to be executed.
func GenerateBlockFromEthTxs ¶
func GenerateBlockFromEthTxs(t *testing.T, l1InfoTx *gethtypes.Transaction, depositTxs, cosmosEthTxs []*gethtypes.Transaction) *monomer.Block
func GenerateBlockWithParentAndTxs ¶
func GenerateBlockWithParentAndTxs(t *testing.T, parent *monomer.Header, cosmosTxs ...bfttypes.Tx) *monomer.Block
GenerateBlockWithParentAndTxs generates a child block of parent with the cosmosTxs appended to the end of its transaction list. The genesis block is created if parent is nil.
func GenerateERC20DepositTx ¶
func GenerateEthBridgeDepositTx ¶ added in v0.1.5
func GenerateEthTxs ¶
func GenerateEthTxs(t *testing.T) (*gethtypes.Transaction, *gethtypes.Transaction, *gethtypes.Transaction)
GenerateEthTxs generates an L1 attributes tx, deposit tx, and cosmos tx packed in an Ethereum transaction. The transactions are not meant to be executed.
func GenerateL1Block ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.