Documentation ¶
Index ¶
- Constants
- func CommonSetup(t *testing.T) (*simulated.Backend, *l1infotreesync.L1InfoTreeSync, ...)
- type AggoracleWithEVMChainEnv
- type ClientRenamed
- type EthTxManagerMock
- func (_m *EthTxManagerMock) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, ...) (common.Hash, error)
- func (_m *EthTxManagerMock) Remove(ctx context.Context, id common.Hash) error
- func (_m *EthTxManagerMock) Result(ctx context.Context, id common.Hash) (ethtxmanager.MonitoredTxResult, error)
- func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, statuses []ethtxmanager.MonitoredTxStatus) ([]ethtxmanager.MonitoredTxResult, error)
- type TestClient
Constants ¶
View Source
const (
NetworkIDL2 = uint32(1)
)
Variables ¶
This section is empty.
Functions ¶
func CommonSetup ¶
func CommonSetup(t *testing.T) ( *simulated.Backend, *l1infotreesync.L1InfoTreeSync, *gerContractL1.Globalexitrootnopush0, common.Address, *polygonzkevmbridgev2.Polygonzkevmbridgev2, common.Address, *bind.TransactOpts, *reorgdetector.ReorgDetector, )
Types ¶
type AggoracleWithEVMChainEnv ¶
type AggoracleWithEVMChainEnv struct { L1Client *simulated.Backend L2Client *simulated.Backend L1InfoTreeSync *l1infotreesync.L1InfoTreeSync GERL1Contract *gerContractL1.Globalexitrootnopush0 GERL1Addr common.Address GERL2Contract *gerContractEVMChain.Pessimisticglobalexitrootnopush0 GERL2Addr common.Address AuthL1 *bind.TransactOpts AuthL2 *bind.TransactOpts AggOracle *aggoracle.AggOracle AggOracleSender aggoracle.ChainSender ReorgDetector *reorgdetector.ReorgDetector BridgeL1Contract *polygonzkevmbridgev2.Polygonzkevmbridgev2 BridgeL1Addr common.Address BridgeL2Contract *polygonzkevmbridgev2.Polygonzkevmbridgev2 BridgeL2Addr common.Address NetworkIDL2 uint32 EthTxManMockL2 *EthTxManagerMock }
func SetupAggoracleWithEVMChain ¶
func SetupAggoracleWithEVMChain(t *testing.T) *AggoracleWithEVMChainEnv
type ClientRenamed ¶
type EthTxManagerMock ¶
EthTxManagerMock is an autogenerated mock type for the EthTxManager type
func EVMSetup ¶
func EVMSetup(t *testing.T) ( aggoracle.ChainSender, *simulated.Backend, *gerContractEVMChain.Pessimisticglobalexitrootnopush0, common.Address, *polygonzkevmbridgev2.Polygonzkevmbridgev2, common.Address, *bind.TransactOpts, *EthTxManagerMock, )
func NewEthTxManMock ¶
func NewEthTxManMock( t *testing.T, client *simulated.Backend, auth *bind.TransactOpts, ) *EthTxManagerMock
func NewEthTxManagerMock ¶
func NewEthTxManagerMock(t interface { mock.TestingT Cleanup(func()) }) *EthTxManagerMock
NewEthTxManagerMock creates a new instance of EthTxManagerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EthTxManagerMock) Add ¶
func (_m *EthTxManagerMock) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar) (common.Hash, error)
Add provides a mock function with given fields: ctx, to, value, data, gasOffset, sidecar
func (*EthTxManagerMock) Result ¶
func (_m *EthTxManagerMock) Result(ctx context.Context, id common.Hash) (ethtxmanager.MonitoredTxResult, error)
Result provides a mock function with given fields: ctx, id
func (*EthTxManagerMock) ResultsByStatus ¶
func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, statuses []ethtxmanager.MonitoredTxStatus) ([]ethtxmanager.MonitoredTxResult, error)
ResultsByStatus provides a mock function with given fields: ctx, statuses
type TestClient ¶
type TestClient struct {
ClientRenamed
}
func (TestClient) Client ¶
func (tc TestClient) Client() *rpc.Client
Click to show internal directories.
Click to hide internal directories.