github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/aggregator/mocks/mock_etherman.go (about)

     1  // Code generated by mockery v2.22.1. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	common "github.com/ethereum/go-ethereum/common"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	types "github.com/0xPolygon/supernets2-node/etherman/types"
    10  )
    11  
    12  // Etherman is an autogenerated mock type for the etherman type
    13  type Etherman struct {
    14  	mock.Mock
    15  }
    16  
    17  // BuildTrustedVerifyBatchesTxData provides a mock function with given fields: lastVerifiedBatch, newVerifiedBatch, inputs
    18  func (_m *Etherman) BuildTrustedVerifyBatchesTxData(lastVerifiedBatch uint64, newVerifiedBatch uint64, inputs *types.FinalProofInputs) (*common.Address, []byte, error) {
    19  	ret := _m.Called(lastVerifiedBatch, newVerifiedBatch, inputs)
    20  
    21  	var r0 *common.Address
    22  	var r1 []byte
    23  	var r2 error
    24  	if rf, ok := ret.Get(0).(func(uint64, uint64, *types.FinalProofInputs) (*common.Address, []byte, error)); ok {
    25  		return rf(lastVerifiedBatch, newVerifiedBatch, inputs)
    26  	}
    27  	if rf, ok := ret.Get(0).(func(uint64, uint64, *types.FinalProofInputs) *common.Address); ok {
    28  		r0 = rf(lastVerifiedBatch, newVerifiedBatch, inputs)
    29  	} else {
    30  		if ret.Get(0) != nil {
    31  			r0 = ret.Get(0).(*common.Address)
    32  		}
    33  	}
    34  
    35  	if rf, ok := ret.Get(1).(func(uint64, uint64, *types.FinalProofInputs) []byte); ok {
    36  		r1 = rf(lastVerifiedBatch, newVerifiedBatch, inputs)
    37  	} else {
    38  		if ret.Get(1) != nil {
    39  			r1 = ret.Get(1).([]byte)
    40  		}
    41  	}
    42  
    43  	if rf, ok := ret.Get(2).(func(uint64, uint64, *types.FinalProofInputs) error); ok {
    44  		r2 = rf(lastVerifiedBatch, newVerifiedBatch, inputs)
    45  	} else {
    46  		r2 = ret.Error(2)
    47  	}
    48  
    49  	return r0, r1, r2
    50  }
    51  
    52  // GetLatestVerifiedBatchNum provides a mock function with given fields:
    53  func (_m *Etherman) GetLatestVerifiedBatchNum() (uint64, error) {
    54  	ret := _m.Called()
    55  
    56  	var r0 uint64
    57  	var r1 error
    58  	if rf, ok := ret.Get(0).(func() (uint64, error)); ok {
    59  		return rf()
    60  	}
    61  	if rf, ok := ret.Get(0).(func() uint64); ok {
    62  		r0 = rf()
    63  	} else {
    64  		r0 = ret.Get(0).(uint64)
    65  	}
    66  
    67  	if rf, ok := ret.Get(1).(func() error); ok {
    68  		r1 = rf()
    69  	} else {
    70  		r1 = ret.Error(1)
    71  	}
    72  
    73  	return r0, r1
    74  }
    75  
    76  type mockConstructorTestingTNewEtherman interface {
    77  	mock.TestingT
    78  	Cleanup(func())
    79  }
    80  
    81  // NewEtherman creates a new instance of Etherman. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    82  func NewEtherman(t mockConstructorTestingTNewEtherman) *Etherman {
    83  	mock := &Etherman{}
    84  	mock.Mock.Test(t)
    85  
    86  	t.Cleanup(func() { mock.AssertExpectations(t) })
    87  
    88  	return mock
    89  }