Documentation ¶
Index ¶
- func DepositEtherToL2(s *ClientTestSuite, depositerPrivKey *ecdsa.PrivateKey)
- func ProposeAndInsertEmptyBlocks(s *ClientTestSuite, proposer Proposer, calldataSyncer CalldataSyncer) []*bindings.MxcL1ClientBlockProposed
- func ProposeAndInsertValidBlock(s *ClientTestSuite, proposer Proposer, calldataSyncer CalldataSyncer) *bindings.MxcL1ClientBlockProposed
- func ProposeInvalidTxListBytes(s *ClientTestSuite, proposer Proposer)
- func RandomBytes(size int) (b []byte)
- func RandomHash() common.Hash
- func SignatureFromRSV(r, s string, v byte) []byte
- type CalldataSyncer
- type ClientTestSuite
- type Proposer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DepositEtherToL2 ¶
func DepositEtherToL2(s *ClientTestSuite, depositerPrivKey *ecdsa.PrivateKey)
func ProposeAndInsertEmptyBlocks ¶
func ProposeAndInsertEmptyBlocks( s *ClientTestSuite, proposer Proposer, calldataSyncer CalldataSyncer, ) []*bindings.MxcL1ClientBlockProposed
func ProposeAndInsertValidBlock ¶
func ProposeAndInsertValidBlock( s *ClientTestSuite, proposer Proposer, calldataSyncer CalldataSyncer, ) *bindings.MxcL1ClientBlockProposed
ProposeAndInsertValidBlock proposes an valid tx list and then insert it into L2 execution engine's local chain.
func ProposeInvalidTxListBytes ¶
func ProposeInvalidTxListBytes(s *ClientTestSuite, proposer Proposer)
func RandomHash ¶
RandomHash generates a random blob of data and returns it as a hash.
func SignatureFromRSV ¶
SignatureFromRSV creates the signature bytes from r,s,v.
Types ¶
type CalldataSyncer ¶
type ClientTestSuite ¶
type ClientTestSuite struct { suite.Suite RpcClient *rpc.Client TestAddrPrivKey *ecdsa.PrivateKey TestAddr common.Address // contains filtered or unexported fields }
func (*ClientTestSuite) SetupTest ¶
func (s *ClientTestSuite) SetupTest()
func (*ClientTestSuite) TearDownTest ¶
func (s *ClientTestSuite) TearDownTest()
type Proposer ¶
type Proposer interface { utils.SubcommandApplication ProposeOp(ctx context.Context) error ProposeEmptyBlockOp(ctx context.Context) error L2SuggestedFeeRecipient() common.Address ProposeTxList( ctx context.Context, meta *encoding.MxcL1BlockMetadataInput, txListBytes []byte, txNum uint, nonce *uint64, ) error }
Click to show internal directories.
Click to hide internal directories.