Documentation ¶
Index ¶
- type Reader
- func (_m *Reader) AccountNonce(_a0 context.Context, _a1 *felt.Felt) (*felt.Felt, error)
- func (_m *Reader) BlockWithTxHashes(ctx context.Context, blockID rpc.BlockID) (*rpc.Block, error)
- func (_m *Reader) Call(_a0 context.Context, _a1 rpc.FunctionCall, _a2 rpc.BlockID) ([]*felt.Felt, error)
- func (_m *Reader) CallContract(_a0 context.Context, _a1 starknet.CallOps) ([]*felt.Felt, error)
- func (_m *Reader) Events(ctx context.Context, input rpc.EventsInput) (*rpc.EventChunk, error)
- func (_m *Reader) LatestBlockHeight(_a0 context.Context) (uint64, error)
- func (_m *Reader) TransactionByHash(_a0 context.Context, _a1 *felt.Felt) (rpc.Transaction, error)
- func (_m *Reader) TransactionReceipt(_a0 context.Context, _a1 *felt.Felt) (rpc.TransactionReceipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
Reader is an autogenerated mock type for the Reader type
func NewReader ¶
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 ¶
AccountNonce provides a mock function with given fields: _a0, _a1
func (*Reader) BlockWithTxHashes ¶
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 ¶
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 ¶
LatestBlockHeight provides a mock function with given fields: _a0
func (*Reader) TransactionByHash ¶
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