mocks

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reader

NewReader creates a new instance of Reader. 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 (*Reader) AccountNonce

func (_m *Reader) AccountNonce(_a0 context.Context, _a1 *felt.Felt) (*felt.Felt, error)

AccountNonce provides a mock function with given fields: _a0, _a1

func (*Reader) BlockWithTxHashes

func (_m *Reader) BlockWithTxHashes(ctx context.Context, blockID rpc.BlockID) (*rpc.Block, error)

BlockWithTxHashes provides a mock function with given fields: ctx, blockID

func (*Reader) Call

func (_m *Reader) Call(_a0 context.Context, _a1 rpc.FunctionCall, _a2 rpc.BlockID) ([]*felt.Felt, error)

Call provides a mock function with given fields: _a0, _a1, _a2

func (*Reader) CallContract

func (_m *Reader) CallContract(_a0 context.Context, _a1 starknet.CallOps) ([]*felt.Felt, error)

CallContract provides a mock function with given fields: _a0, _a1

func (*Reader) Events

func (_m *Reader) Events(ctx context.Context, input rpc.EventsInput) (*rpc.EventChunk, error)

Events provides a mock function with given fields: ctx, input

func (*Reader) LatestBlockHeight

func (_m *Reader) LatestBlockHeight(_a0 context.Context) (uint64, error)

LatestBlockHeight provides a mock function with given fields: _a0

func (*Reader) TransactionByHash

func (_m *Reader) TransactionByHash(_a0 context.Context, _a1 *felt.Felt) (rpc.Transaction, error)

TransactionByHash provides a mock function with given fields: _a0, _a1

func (*Reader) TransactionReceipt

func (_m *Reader) TransactionReceipt(_a0 context.Context, _a1 *felt.Felt) (rpc.TransactionReceipt, error)

TransactionReceipt provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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