Documentation ¶
Index ¶
- func RandomBytes(size int) (b []byte)
- func RandomHash() common.Hash
- func RandomPort() int
- func SendDynamicFeeTx(client *rpc.EthClient, priv *ecdsa.PrivateKey, to *common.Address, ...) (*types.Transaction, error)
- func SignatureFromRSV(r, s string, v byte) []byte
- type BlobSyncer
- type ClientTestSuite
- func (s *ClientTestSuite) IncreaseTime(time uint64)
- func (s *ClientTestSuite) ProposeAndInsertEmptyBlocks(proposer Proposer, blobSyncer BlobSyncer) []metadata.TaikoBlockMetaData
- func (s *ClientTestSuite) ProposeAndInsertValidBlock(proposer Proposer, blobSyncer BlobSyncer) metadata.TaikoBlockMetaData
- func (s *ClientTestSuite) ProposeValidBlock(proposer Proposer)
- func (s *ClientTestSuite) RevertL1Snapshot(snapshotID string)
- func (s *ClientTestSuite) SetL1Automine(automine bool)
- func (s *ClientTestSuite) SetL1Snapshot() string
- func (s *ClientTestSuite) SetupTest()
- func (s *ClientTestSuite) TearDownTest()
- type Proposer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomHash ¶
RandomHash generates a random blob of data and returns it as a hash.
func SendDynamicFeeTx ¶
func SendDynamicFeeTx( client *rpc.EthClient, priv *ecdsa.PrivateKey, to *common.Address, value *big.Int, data []byte, ) (*types.Transaction, error)
SendDynamicFeeTx sends a dynamic transaction, used for tests.
func SignatureFromRSV ¶
SignatureFromRSV creates the signature bytes from r,s,v.
Types ¶
type BlobSyncer ¶
type ClientTestSuite ¶
type ClientTestSuite struct { suite.Suite RPCClient *rpc.Client TestAddrPrivKey *ecdsa.PrivateKey TestAddr common.Address AddressManager *bindings.AddressManager // contains filtered or unexported fields }
func (*ClientTestSuite) IncreaseTime ¶
func (s *ClientTestSuite) IncreaseTime(time uint64)
func (*ClientTestSuite) ProposeAndInsertEmptyBlocks ¶
func (s *ClientTestSuite) ProposeAndInsertEmptyBlocks( proposer Proposer, blobSyncer BlobSyncer, ) []metadata.TaikoBlockMetaData
func (*ClientTestSuite) ProposeAndInsertValidBlock ¶
func (s *ClientTestSuite) ProposeAndInsertValidBlock( proposer Proposer, blobSyncer BlobSyncer, ) metadata.TaikoBlockMetaData
ProposeAndInsertValidBlock proposes an valid tx list and then insert it into L2 execution engine's local chain.
func (*ClientTestSuite) ProposeValidBlock ¶
func (s *ClientTestSuite) ProposeValidBlock( proposer Proposer, )
func (*ClientTestSuite) RevertL1Snapshot ¶
func (s *ClientTestSuite) RevertL1Snapshot(snapshotID string)
func (*ClientTestSuite) SetL1Automine ¶
func (s *ClientTestSuite) SetL1Automine(automine bool)
func (*ClientTestSuite) SetL1Snapshot ¶
func (s *ClientTestSuite) SetL1Snapshot() string
func (*ClientTestSuite) SetupTest ¶
func (s *ClientTestSuite) SetupTest()
func (*ClientTestSuite) TearDownTest ¶
func (s *ClientTestSuite) TearDownTest()
Click to show internal directories.
Click to hide internal directories.