mocks

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetOffChainData

func (_m *Client) GetOffChainData(ctx context.Context, hash common.Hash) ([]byte, error)

GetOffChainData provides a mock function with given fields: ctx, hash

func (*Client) ListOffChainData added in v0.0.7

func (_m *Client) ListOffChainData(ctx context.Context, hashes []common.Hash) (map[common.Hash][]byte, error)

ListOffChainData provides a mock function with given fields: ctx, hashes

func (*Client) SignSequence

func (_m *Client) SignSequence(signedSequence types.SignedSequence) ([]byte, error)

SignSequence provides a mock function with given fields: signedSequence

type ClientFactory

type ClientFactory struct {
	mock.Mock
}

ClientFactory is an autogenerated mock type for the Factory type

func NewClientFactory

func NewClientFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientFactory

NewClientFactory creates a new instance of ClientFactory. 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 (*ClientFactory) EXPECT

func (_m *ClientFactory) EXPECT() *ClientFactory_Expecter

func (*ClientFactory) New

func (_m *ClientFactory) New(url string) client.Client

New provides a mock function with given fields: url

type ClientFactory_Expecter

type ClientFactory_Expecter struct {
	// contains filtered or unexported fields
}

func (*ClientFactory_Expecter) New

func (_e *ClientFactory_Expecter) New(url interface{}) *ClientFactory_New_Call

New is a helper method to define mock.On call

  • url string

type ClientFactory_New_Call

type ClientFactory_New_Call struct {
	*mock.Call
}

ClientFactory_New_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'New'

func (*ClientFactory_New_Call) Return

func (*ClientFactory_New_Call) Run

func (_c *ClientFactory_New_Call) Run(run func(url string)) *ClientFactory_New_Call

func (*ClientFactory_New_Call) RunAndReturn

func (_c *ClientFactory_New_Call) RunAndReturn(run func(string) client.Client) *ClientFactory_New_Call

type Client_Expecter

type Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*Client_Expecter) GetOffChainData

func (_e *Client_Expecter) GetOffChainData(ctx interface{}, hash interface{}) *Client_GetOffChainData_Call

GetOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*Client_Expecter) ListOffChainData added in v0.0.7

func (_e *Client_Expecter) ListOffChainData(ctx interface{}, hashes interface{}) *Client_ListOffChainData_Call

ListOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • hashes []common.Hash

func (*Client_Expecter) SignSequence

func (_e *Client_Expecter) SignSequence(signedSequence interface{}) *Client_SignSequence_Call

SignSequence is a helper method to define mock.On call

  • signedSequence types.SignedSequence

type Client_GetOffChainData_Call

type Client_GetOffChainData_Call struct {
	*mock.Call
}

Client_GetOffChainData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOffChainData'

func (*Client_GetOffChainData_Call) Return

func (*Client_GetOffChainData_Call) Run

func (*Client_GetOffChainData_Call) RunAndReturn

type Client_ListOffChainData_Call added in v0.0.7

type Client_ListOffChainData_Call struct {
	*mock.Call
}

Client_ListOffChainData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOffChainData'

func (*Client_ListOffChainData_Call) Return added in v0.0.7

func (*Client_ListOffChainData_Call) Run added in v0.0.7

func (*Client_ListOffChainData_Call) RunAndReturn added in v0.0.7

type Client_SignSequence_Call

type Client_SignSequence_Call struct {
	*mock.Call
}

Client_SignSequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignSequence'

func (*Client_SignSequence_Call) Return

func (*Client_SignSequence_Call) Run

func (_c *Client_SignSequence_Call) Run(run func(signedSequence types.SignedSequence)) *Client_SignSequence_Call

func (*Client_SignSequence_Call) RunAndReturn

type DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB

func NewDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *DB

NewDB creates a new instance of DB. 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 (*DB) BeginStateTransaction

func (_m *DB) BeginStateTransaction(ctx context.Context) (db.Tx, error)

BeginStateTransaction provides a mock function with given fields: ctx

func (*DB) DeleteUnresolvedBatchKeys added in v0.0.6

func (_m *DB) DeleteUnresolvedBatchKeys(ctx context.Context, bks []types.BatchKey, dbTx sqlx.ExecerContext) error

DeleteUnresolvedBatchKeys provides a mock function with given fields: ctx, bks, dbTx

func (*DB) EXPECT

func (_m *DB) EXPECT() *DB_Expecter

func (*DB) Exists

func (_m *DB) Exists(ctx context.Context, key common.Hash) bool

Exists provides a mock function with given fields: ctx, key

func (*DB) GetLastProcessedBlock

func (_m *DB) GetLastProcessedBlock(ctx context.Context, task string) (uint64, error)

GetLastProcessedBlock provides a mock function with given fields: ctx, task

func (*DB) GetOffChainData

func (_m *DB) GetOffChainData(ctx context.Context, key common.Hash, dbTx sqlx.QueryerContext) (types.ArgBytes, error)

GetOffChainData provides a mock function with given fields: ctx, key, dbTx

func (*DB) GetUnresolvedBatchKeys added in v0.0.6

func (_m *DB) GetUnresolvedBatchKeys(ctx context.Context) ([]types.BatchKey, error)

GetUnresolvedBatchKeys provides a mock function with given fields: ctx

func (*DB) ListOffChainData added in v0.0.7

func (_m *DB) ListOffChainData(ctx context.Context, keys []common.Hash, dbTx sqlx.QueryerContext) (map[common.Hash]types.ArgBytes, error)

ListOffChainData provides a mock function with given fields: ctx, keys, dbTx

func (*DB) StoreLastProcessedBlock

func (_m *DB) StoreLastProcessedBlock(ctx context.Context, task string, block uint64, dbTx sqlx.ExecerContext) error

StoreLastProcessedBlock provides a mock function with given fields: ctx, task, block, dbTx

func (*DB) StoreOffChainData

func (_m *DB) StoreOffChainData(ctx context.Context, od []types.OffChainData, dbTx sqlx.ExecerContext) error

StoreOffChainData provides a mock function with given fields: ctx, od, dbTx

func (*DB) StoreUnresolvedBatchKeys added in v0.0.6

func (_m *DB) StoreUnresolvedBatchKeys(ctx context.Context, bks []types.BatchKey, dbTx sqlx.ExecerContext) error

StoreUnresolvedBatchKeys provides a mock function with given fields: ctx, bks, dbTx

type DB_BeginStateTransaction_Call

type DB_BeginStateTransaction_Call struct {
	*mock.Call
}

DB_BeginStateTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginStateTransaction'

func (*DB_BeginStateTransaction_Call) Return

func (*DB_BeginStateTransaction_Call) Run

func (*DB_BeginStateTransaction_Call) RunAndReturn

type DB_DeleteUnresolvedBatchKeys_Call added in v0.0.6

type DB_DeleteUnresolvedBatchKeys_Call struct {
	*mock.Call
}

DB_DeleteUnresolvedBatchKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUnresolvedBatchKeys'

func (*DB_DeleteUnresolvedBatchKeys_Call) Return added in v0.0.6

func (*DB_DeleteUnresolvedBatchKeys_Call) Run added in v0.0.6

func (*DB_DeleteUnresolvedBatchKeys_Call) RunAndReturn added in v0.0.6

type DB_Exists_Call

type DB_Exists_Call struct {
	*mock.Call
}

DB_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'

func (*DB_Exists_Call) Return

func (_c *DB_Exists_Call) Return(_a0 bool) *DB_Exists_Call

func (*DB_Exists_Call) Run

func (_c *DB_Exists_Call) Run(run func(ctx context.Context, key common.Hash)) *DB_Exists_Call

func (*DB_Exists_Call) RunAndReturn

func (_c *DB_Exists_Call) RunAndReturn(run func(context.Context, common.Hash) bool) *DB_Exists_Call

type DB_Expecter

type DB_Expecter struct {
	// contains filtered or unexported fields
}

func (*DB_Expecter) BeginStateTransaction

func (_e *DB_Expecter) BeginStateTransaction(ctx interface{}) *DB_BeginStateTransaction_Call

BeginStateTransaction is a helper method to define mock.On call

  • ctx context.Context

func (*DB_Expecter) DeleteUnresolvedBatchKeys added in v0.0.6

func (_e *DB_Expecter) DeleteUnresolvedBatchKeys(ctx interface{}, bks interface{}, dbTx interface{}) *DB_DeleteUnresolvedBatchKeys_Call

DeleteUnresolvedBatchKeys is a helper method to define mock.On call

  • ctx context.Context
  • bks []types.BatchKey
  • dbTx sqlx.ExecerContext

func (*DB_Expecter) Exists

func (_e *DB_Expecter) Exists(ctx interface{}, key interface{}) *DB_Exists_Call

Exists is a helper method to define mock.On call

  • ctx context.Context
  • key common.Hash

func (*DB_Expecter) GetLastProcessedBlock

func (_e *DB_Expecter) GetLastProcessedBlock(ctx interface{}, task interface{}) *DB_GetLastProcessedBlock_Call

GetLastProcessedBlock is a helper method to define mock.On call

  • ctx context.Context
  • task string

func (*DB_Expecter) GetOffChainData

func (_e *DB_Expecter) GetOffChainData(ctx interface{}, key interface{}, dbTx interface{}) *DB_GetOffChainData_Call

GetOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • key common.Hash
  • dbTx sqlx.QueryerContext

func (*DB_Expecter) GetUnresolvedBatchKeys added in v0.0.6

func (_e *DB_Expecter) GetUnresolvedBatchKeys(ctx interface{}) *DB_GetUnresolvedBatchKeys_Call

GetUnresolvedBatchKeys is a helper method to define mock.On call

  • ctx context.Context

func (*DB_Expecter) ListOffChainData added in v0.0.7

func (_e *DB_Expecter) ListOffChainData(ctx interface{}, keys interface{}, dbTx interface{}) *DB_ListOffChainData_Call

ListOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • keys []common.Hash
  • dbTx sqlx.QueryerContext

func (*DB_Expecter) StoreLastProcessedBlock

func (_e *DB_Expecter) StoreLastProcessedBlock(ctx interface{}, task interface{}, block interface{}, dbTx interface{}) *DB_StoreLastProcessedBlock_Call

StoreLastProcessedBlock is a helper method to define mock.On call

  • ctx context.Context
  • task string
  • block uint64
  • dbTx sqlx.ExecerContext

func (*DB_Expecter) StoreOffChainData

func (_e *DB_Expecter) StoreOffChainData(ctx interface{}, od interface{}, dbTx interface{}) *DB_StoreOffChainData_Call

StoreOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • od []types.OffChainData
  • dbTx sqlx.ExecerContext

func (*DB_Expecter) StoreUnresolvedBatchKeys added in v0.0.6

func (_e *DB_Expecter) StoreUnresolvedBatchKeys(ctx interface{}, bks interface{}, dbTx interface{}) *DB_StoreUnresolvedBatchKeys_Call

StoreUnresolvedBatchKeys is a helper method to define mock.On call

  • ctx context.Context
  • bks []types.BatchKey
  • dbTx sqlx.ExecerContext

type DB_GetLastProcessedBlock_Call

type DB_GetLastProcessedBlock_Call struct {
	*mock.Call
}

DB_GetLastProcessedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastProcessedBlock'

func (*DB_GetLastProcessedBlock_Call) Return

func (*DB_GetLastProcessedBlock_Call) Run

func (*DB_GetLastProcessedBlock_Call) RunAndReturn

type DB_GetOffChainData_Call

type DB_GetOffChainData_Call struct {
	*mock.Call
}

DB_GetOffChainData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOffChainData'

func (*DB_GetOffChainData_Call) Return

func (*DB_GetOffChainData_Call) Run

func (*DB_GetOffChainData_Call) RunAndReturn

type DB_GetUnresolvedBatchKeys_Call added in v0.0.6

type DB_GetUnresolvedBatchKeys_Call struct {
	*mock.Call
}

DB_GetUnresolvedBatchKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUnresolvedBatchKeys'

func (*DB_GetUnresolvedBatchKeys_Call) Return added in v0.0.6

func (*DB_GetUnresolvedBatchKeys_Call) Run added in v0.0.6

func (*DB_GetUnresolvedBatchKeys_Call) RunAndReturn added in v0.0.6

type DB_ListOffChainData_Call added in v0.0.7

type DB_ListOffChainData_Call struct {
	*mock.Call
}

DB_ListOffChainData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOffChainData'

func (*DB_ListOffChainData_Call) Return added in v0.0.7

func (*DB_ListOffChainData_Call) Run added in v0.0.7

func (*DB_ListOffChainData_Call) RunAndReturn added in v0.0.7

type DB_StoreLastProcessedBlock_Call

type DB_StoreLastProcessedBlock_Call struct {
	*mock.Call
}

DB_StoreLastProcessedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreLastProcessedBlock'

func (*DB_StoreLastProcessedBlock_Call) Return

func (*DB_StoreLastProcessedBlock_Call) Run

func (*DB_StoreLastProcessedBlock_Call) RunAndReturn

type DB_StoreOffChainData_Call

type DB_StoreOffChainData_Call struct {
	*mock.Call
}

DB_StoreOffChainData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreOffChainData'

func (*DB_StoreOffChainData_Call) Return

func (*DB_StoreOffChainData_Call) Run

func (*DB_StoreOffChainData_Call) RunAndReturn

type DB_StoreUnresolvedBatchKeys_Call added in v0.0.6

type DB_StoreUnresolvedBatchKeys_Call struct {
	*mock.Call
}

DB_StoreUnresolvedBatchKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreUnresolvedBatchKeys'

func (*DB_StoreUnresolvedBatchKeys_Call) Return added in v0.0.6

func (*DB_StoreUnresolvedBatchKeys_Call) Run added in v0.0.6

func (*DB_StoreUnresolvedBatchKeys_Call) RunAndReturn added in v0.0.6

type EthClient

type EthClient struct {
	mock.Mock
}

EthClient is an autogenerated mock type for the EthClient type

func NewEthClient

func NewEthClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthClient

NewEthClient creates a new instance of EthClient. 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 (*EthClient) BlockByNumber

func (_m *EthClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)

BlockByNumber provides a mock function with given fields: ctx, number

func (*EthClient) CodeAt

func (_m *EthClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, account, blockNumber

func (*EthClient) EXPECT

func (_m *EthClient) EXPECT() *EthClient_Expecter

type EthClientFactory

type EthClientFactory struct {
	mock.Mock
}

EthClientFactory is an autogenerated mock type for the EthClientFactory type

func NewEthClientFactory

func NewEthClientFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthClientFactory

NewEthClientFactory creates a new instance of EthClientFactory. 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 (*EthClientFactory) CreateEthClient

func (_m *EthClientFactory) CreateEthClient(ctx context.Context, url string) (types.EthClient, error)

CreateEthClient provides a mock function with given fields: ctx, url

func (*EthClientFactory) EXPECT

type EthClientFactory_CreateEthClient_Call

type EthClientFactory_CreateEthClient_Call struct {
	*mock.Call
}

EthClientFactory_CreateEthClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEthClient'

func (*EthClientFactory_CreateEthClient_Call) Return

func (*EthClientFactory_CreateEthClient_Call) Run

func (*EthClientFactory_CreateEthClient_Call) RunAndReturn

type EthClientFactory_Expecter

type EthClientFactory_Expecter struct {
	// contains filtered or unexported fields
}

func (*EthClientFactory_Expecter) CreateEthClient

func (_e *EthClientFactory_Expecter) CreateEthClient(ctx interface{}, url interface{}) *EthClientFactory_CreateEthClient_Call

CreateEthClient is a helper method to define mock.On call

  • ctx context.Context
  • url string

type EthClient_BlockByNumber_Call

type EthClient_BlockByNumber_Call struct {
	*mock.Call
}

EthClient_BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByNumber'

func (*EthClient_BlockByNumber_Call) Return

func (*EthClient_BlockByNumber_Call) Run

func (*EthClient_BlockByNumber_Call) RunAndReturn

type EthClient_CodeAt_Call

type EthClient_CodeAt_Call struct {
	*mock.Call
}

EthClient_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'

func (*EthClient_CodeAt_Call) Return

func (_c *EthClient_CodeAt_Call) Return(_a0 []byte, _a1 error) *EthClient_CodeAt_Call

func (*EthClient_CodeAt_Call) Run

func (_c *EthClient_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthClient_CodeAt_Call

func (*EthClient_CodeAt_Call) RunAndReturn

type EthClient_Expecter

type EthClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*EthClient_Expecter) BlockByNumber

func (_e *EthClient_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthClient_BlockByNumber_Call

BlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthClient_Expecter) CodeAt

func (_e *EthClient_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthClient_CodeAt_Call

CodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

type Etherman

type Etherman struct {
	mock.Mock
}

Etherman is an autogenerated mock type for the Etherman type

func NewEtherman

func NewEtherman(t interface {
	mock.TestingT
	Cleanup(func())
}) *Etherman

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. The first argument is typically a *testing.T value.

func (*Etherman) EXPECT

func (_m *Etherman) EXPECT() *Etherman_Expecter

func (*Etherman) FilterSequenceBatches

func (_m *Etherman) FilterSequenceBatches(opts *bind.FilterOpts, numBatch []uint64) (*polygonvalidium.PolygonvalidiumSequenceBatchesIterator, error)

FilterSequenceBatches provides a mock function with given fields: opts, numBatch

func (*Etherman) GetCurrentDataCommittee

func (_m *Etherman) GetCurrentDataCommittee() (*etherman.DataCommittee, error)

GetCurrentDataCommittee provides a mock function with given fields:

func (*Etherman) GetCurrentDataCommitteeMembers

func (_m *Etherman) GetCurrentDataCommitteeMembers() ([]etherman.DataCommitteeMember, error)

GetCurrentDataCommitteeMembers provides a mock function with given fields:

func (*Etherman) GetTx

func (_m *Etherman) GetTx(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)

GetTx provides a mock function with given fields: ctx, txHash

func (*Etherman) HeaderByNumber

func (_m *Etherman) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

func (*Etherman) TrustedSequencer

func (_m *Etherman) TrustedSequencer() (common.Address, error)

TrustedSequencer provides a mock function with given fields:

func (*Etherman) TrustedSequencerURL

func (_m *Etherman) TrustedSequencerURL() (string, error)

TrustedSequencerURL provides a mock function with given fields:

func (*Etherman) WatchSetTrustedSequencer

func (_m *Etherman) WatchSetTrustedSequencer(ctx context.Context, events chan *polygonvalidium.PolygonvalidiumSetTrustedSequencer) (event.Subscription, error)

WatchSetTrustedSequencer provides a mock function with given fields: ctx, events

func (*Etherman) WatchSetTrustedSequencerURL

func (_m *Etherman) WatchSetTrustedSequencerURL(ctx context.Context, events chan *polygonvalidium.PolygonvalidiumSetTrustedSequencerURL) (event.Subscription, error)

WatchSetTrustedSequencerURL provides a mock function with given fields: ctx, events

type Etherman_Expecter

type Etherman_Expecter struct {
	// contains filtered or unexported fields
}

func (*Etherman_Expecter) FilterSequenceBatches

func (_e *Etherman_Expecter) FilterSequenceBatches(opts interface{}, numBatch interface{}) *Etherman_FilterSequenceBatches_Call

FilterSequenceBatches is a helper method to define mock.On call

  • opts *bind.FilterOpts
  • numBatch []uint64

func (*Etherman_Expecter) GetCurrentDataCommittee

func (_e *Etherman_Expecter) GetCurrentDataCommittee() *Etherman_GetCurrentDataCommittee_Call

GetCurrentDataCommittee is a helper method to define mock.On call

func (*Etherman_Expecter) GetCurrentDataCommitteeMembers

func (_e *Etherman_Expecter) GetCurrentDataCommitteeMembers() *Etherman_GetCurrentDataCommitteeMembers_Call

GetCurrentDataCommitteeMembers is a helper method to define mock.On call

func (*Etherman_Expecter) GetTx

func (_e *Etherman_Expecter) GetTx(ctx interface{}, txHash interface{}) *Etherman_GetTx_Call

GetTx is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*Etherman_Expecter) HeaderByNumber

func (_e *Etherman_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *Etherman_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*Etherman_Expecter) TrustedSequencer

func (_e *Etherman_Expecter) TrustedSequencer() *Etherman_TrustedSequencer_Call

TrustedSequencer is a helper method to define mock.On call

func (*Etherman_Expecter) TrustedSequencerURL

func (_e *Etherman_Expecter) TrustedSequencerURL() *Etherman_TrustedSequencerURL_Call

TrustedSequencerURL is a helper method to define mock.On call

func (*Etherman_Expecter) WatchSetTrustedSequencer

func (_e *Etherman_Expecter) WatchSetTrustedSequencer(ctx interface{}, events interface{}) *Etherman_WatchSetTrustedSequencer_Call

WatchSetTrustedSequencer is a helper method to define mock.On call

  • ctx context.Context
  • events chan *polygonvalidium.PolygonvalidiumSetTrustedSequencer

func (*Etherman_Expecter) WatchSetTrustedSequencerURL

func (_e *Etherman_Expecter) WatchSetTrustedSequencerURL(ctx interface{}, events interface{}) *Etherman_WatchSetTrustedSequencerURL_Call

WatchSetTrustedSequencerURL is a helper method to define mock.On call

  • ctx context.Context
  • events chan *polygonvalidium.PolygonvalidiumSetTrustedSequencerURL

type Etherman_FilterSequenceBatches_Call

type Etherman_FilterSequenceBatches_Call struct {
	*mock.Call
}

Etherman_FilterSequenceBatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilterSequenceBatches'

func (*Etherman_FilterSequenceBatches_Call) Run

type Etherman_GetCurrentDataCommitteeMembers_Call

type Etherman_GetCurrentDataCommitteeMembers_Call struct {
	*mock.Call
}

Etherman_GetCurrentDataCommitteeMembers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentDataCommitteeMembers'

func (*Etherman_GetCurrentDataCommitteeMembers_Call) Return

func (*Etherman_GetCurrentDataCommitteeMembers_Call) Run

func (*Etherman_GetCurrentDataCommitteeMembers_Call) RunAndReturn

type Etherman_GetCurrentDataCommittee_Call

type Etherman_GetCurrentDataCommittee_Call struct {
	*mock.Call
}

Etherman_GetCurrentDataCommittee_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentDataCommittee'

func (*Etherman_GetCurrentDataCommittee_Call) Return

func (*Etherman_GetCurrentDataCommittee_Call) Run

func (*Etherman_GetCurrentDataCommittee_Call) RunAndReturn

type Etherman_GetTx_Call

type Etherman_GetTx_Call struct {
	*mock.Call
}

Etherman_GetTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTx'

func (*Etherman_GetTx_Call) Return

func (_c *Etherman_GetTx_Call) Return(_a0 *types.Transaction, _a1 bool, _a2 error) *Etherman_GetTx_Call

func (*Etherman_GetTx_Call) Run

func (_c *Etherman_GetTx_Call) Run(run func(ctx context.Context, txHash common.Hash)) *Etherman_GetTx_Call

func (*Etherman_GetTx_Call) RunAndReturn

type Etherman_HeaderByNumber_Call

type Etherman_HeaderByNumber_Call struct {
	*mock.Call
}

Etherman_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*Etherman_HeaderByNumber_Call) Return

func (*Etherman_HeaderByNumber_Call) Run

func (*Etherman_HeaderByNumber_Call) RunAndReturn

type Etherman_TrustedSequencerURL_Call

type Etherman_TrustedSequencerURL_Call struct {
	*mock.Call
}

Etherman_TrustedSequencerURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrustedSequencerURL'

func (*Etherman_TrustedSequencerURL_Call) Return

func (*Etherman_TrustedSequencerURL_Call) Run

func (*Etherman_TrustedSequencerURL_Call) RunAndReturn

type Etherman_TrustedSequencer_Call

type Etherman_TrustedSequencer_Call struct {
	*mock.Call
}

Etherman_TrustedSequencer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrustedSequencer'

func (*Etherman_TrustedSequencer_Call) Return

func (*Etherman_TrustedSequencer_Call) Run

func (*Etherman_TrustedSequencer_Call) RunAndReturn

type Etherman_WatchSetTrustedSequencerURL_Call

type Etherman_WatchSetTrustedSequencerURL_Call struct {
	*mock.Call
}

Etherman_WatchSetTrustedSequencerURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchSetTrustedSequencerURL'

func (*Etherman_WatchSetTrustedSequencerURL_Call) Return

func (*Etherman_WatchSetTrustedSequencerURL_Call) Run

type Etherman_WatchSetTrustedSequencer_Call

type Etherman_WatchSetTrustedSequencer_Call struct {
	*mock.Call
}

Etherman_WatchSetTrustedSequencer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchSetTrustedSequencer'

func (*Etherman_WatchSetTrustedSequencer_Call) Return

func (*Etherman_WatchSetTrustedSequencer_Call) Run

type SequencerTracker

type SequencerTracker struct {
	mock.Mock
}

SequencerTracker is an autogenerated mock type for the SequencerTracker type

func NewSequencerTracker

func NewSequencerTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *SequencerTracker

NewSequencerTracker creates a new instance of SequencerTracker. 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 (*SequencerTracker) EXPECT

func (*SequencerTracker) GetSequenceBatch

func (_m *SequencerTracker) GetSequenceBatch(batchNum uint64) (*sequencer.SeqBatch, error)

GetSequenceBatch provides a mock function with given fields: batchNum

type SequencerTracker_Expecter

type SequencerTracker_Expecter struct {
	// contains filtered or unexported fields
}

func (*SequencerTracker_Expecter) GetSequenceBatch

func (_e *SequencerTracker_Expecter) GetSequenceBatch(batchNum interface{}) *SequencerTracker_GetSequenceBatch_Call

GetSequenceBatch is a helper method to define mock.On call

  • batchNum uint64

type SequencerTracker_GetSequenceBatch_Call

type SequencerTracker_GetSequenceBatch_Call struct {
	*mock.Call
}

SequencerTracker_GetSequenceBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSequenceBatch'

func (*SequencerTracker_GetSequenceBatch_Call) Return

func (*SequencerTracker_GetSequenceBatch_Call) Run

func (*SequencerTracker_GetSequenceBatch_Call) RunAndReturn

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func NewSubscription

func NewSubscription(t interface {
	mock.TestingT
	Cleanup(func())
}) *Subscription

NewSubscription creates a new instance of Subscription. 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 (*Subscription) EXPECT

func (_m *Subscription) EXPECT() *Subscription_Expecter

func (*Subscription) Err

func (_m *Subscription) Err() <-chan error

Err provides a mock function with given fields:

func (*Subscription) Unsubscribe

func (_m *Subscription) Unsubscribe()

Unsubscribe provides a mock function with given fields:

type Subscription_Err_Call

type Subscription_Err_Call struct {
	*mock.Call
}

Subscription_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'

func (*Subscription_Err_Call) Return

func (_c *Subscription_Err_Call) Return(_a0 <-chan error) *Subscription_Err_Call

func (*Subscription_Err_Call) Run

func (_c *Subscription_Err_Call) Run(run func()) *Subscription_Err_Call

func (*Subscription_Err_Call) RunAndReturn

func (_c *Subscription_Err_Call) RunAndReturn(run func() <-chan error) *Subscription_Err_Call

type Subscription_Expecter

type Subscription_Expecter struct {
	// contains filtered or unexported fields
}

func (*Subscription_Expecter) Err

Err is a helper method to define mock.On call

func (*Subscription_Expecter) Unsubscribe

Unsubscribe is a helper method to define mock.On call

type Subscription_Unsubscribe_Call

type Subscription_Unsubscribe_Call struct {
	*mock.Call
}

Subscription_Unsubscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unsubscribe'

func (*Subscription_Unsubscribe_Call) Return

func (*Subscription_Unsubscribe_Call) Run

func (*Subscription_Unsubscribe_Call) RunAndReturn

func (_c *Subscription_Unsubscribe_Call) RunAndReturn(run func()) *Subscription_Unsubscribe_Call

type Tx

type Tx struct {
	mock.Mock
}

Tx is an autogenerated mock type for the Tx type

func NewTx

func NewTx(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tx

NewTx creates a new instance of Tx. 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 (*Tx) Commit

func (_m *Tx) Commit() error

Commit provides a mock function with given fields:

func (*Tx) EXPECT

func (_m *Tx) EXPECT() *Tx_Expecter

func (*Tx) ExecContext

func (_m *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext provides a mock function with given fields: ctx, query, args

func (*Tx) QueryContext

func (_m *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

QueryContext provides a mock function with given fields: ctx, query, args

func (*Tx) QueryRowxContext

func (_m *Tx) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row

QueryRowxContext provides a mock function with given fields: ctx, query, args

func (*Tx) QueryxContext

func (_m *Tx) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)

QueryxContext provides a mock function with given fields: ctx, query, args

func (*Tx) Rollback

func (_m *Tx) Rollback() error

Rollback provides a mock function with given fields:

type Tx_Commit_Call

type Tx_Commit_Call struct {
	*mock.Call
}

Tx_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*Tx_Commit_Call) Return

func (_c *Tx_Commit_Call) Return(_a0 error) *Tx_Commit_Call

func (*Tx_Commit_Call) Run

func (_c *Tx_Commit_Call) Run(run func()) *Tx_Commit_Call

func (*Tx_Commit_Call) RunAndReturn

func (_c *Tx_Commit_Call) RunAndReturn(run func() error) *Tx_Commit_Call

type Tx_ExecContext_Call

type Tx_ExecContext_Call struct {
	*mock.Call
}

Tx_ExecContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecContext'

func (*Tx_ExecContext_Call) Return

func (_c *Tx_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Tx_ExecContext_Call

func (*Tx_ExecContext_Call) Run

func (_c *Tx_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_ExecContext_Call

func (*Tx_ExecContext_Call) RunAndReturn

func (_c *Tx_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Tx_ExecContext_Call

type Tx_Expecter

type Tx_Expecter struct {
	// contains filtered or unexported fields
}

func (*Tx_Expecter) Commit

func (_e *Tx_Expecter) Commit() *Tx_Commit_Call

Commit is a helper method to define mock.On call

func (*Tx_Expecter) ExecContext

func (_e *Tx_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_ExecContext_Call

ExecContext is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Tx_Expecter) QueryContext

func (_e *Tx_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryContext_Call

QueryContext is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Tx_Expecter) QueryRowxContext

func (_e *Tx_Expecter) QueryRowxContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryRowxContext_Call

QueryRowxContext is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Tx_Expecter) QueryxContext

func (_e *Tx_Expecter) QueryxContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryxContext_Call

QueryxContext is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Tx_Expecter) Rollback

func (_e *Tx_Expecter) Rollback() *Tx_Rollback_Call

Rollback is a helper method to define mock.On call

type Tx_QueryContext_Call

type Tx_QueryContext_Call struct {
	*mock.Call
}

Tx_QueryContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryContext'

func (*Tx_QueryContext_Call) Return

func (_c *Tx_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Tx_QueryContext_Call

func (*Tx_QueryContext_Call) Run

func (_c *Tx_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryContext_Call

func (*Tx_QueryContext_Call) RunAndReturn

func (_c *Tx_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Tx_QueryContext_Call

type Tx_QueryRowxContext_Call

type Tx_QueryRowxContext_Call struct {
	*mock.Call
}

Tx_QueryRowxContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRowxContext'

func (*Tx_QueryRowxContext_Call) Return

func (*Tx_QueryRowxContext_Call) Run

func (_c *Tx_QueryRowxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryRowxContext_Call

func (*Tx_QueryRowxContext_Call) RunAndReturn

func (_c *Tx_QueryRowxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sqlx.Row) *Tx_QueryRowxContext_Call

type Tx_QueryxContext_Call

type Tx_QueryxContext_Call struct {
	*mock.Call
}

Tx_QueryxContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryxContext'

func (*Tx_QueryxContext_Call) Return

func (*Tx_QueryxContext_Call) Run

func (_c *Tx_QueryxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryxContext_Call

func (*Tx_QueryxContext_Call) RunAndReturn

func (_c *Tx_QueryxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *Tx_QueryxContext_Call

type Tx_Rollback_Call

type Tx_Rollback_Call struct {
	*mock.Call
}

Tx_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'

func (*Tx_Rollback_Call) Return

func (_c *Tx_Rollback_Call) Return(_a0 error) *Tx_Rollback_Call

func (*Tx_Rollback_Call) Run

func (_c *Tx_Rollback_Call) Run(run func()) *Tx_Rollback_Call

func (*Tx_Rollback_Call) RunAndReturn

func (_c *Tx_Rollback_Call) RunAndReturn(run func() error) *Tx_Rollback_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL