mocks

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CelestiaRPCClient

type CelestiaRPCClient struct {
	mock.Mock
}

CelestiaRPCClient is an autogenerated mock type for the CelestiaRPCClient type

func NewCelestiaRPCClient

func NewCelestiaRPCClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *CelestiaRPCClient

NewCelestiaRPCClient creates a new instance of CelestiaRPCClient. 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 (*CelestiaRPCClient) Get

func (_m *CelestiaRPCClient) Get(ctx context.Context, height uint64, namespace share.Namespace, commitment blob.Commitment) (*blob.Blob, error)

Get provides a mock function with given fields: ctx, height, namespace, commitment

func (*CelestiaRPCClient) GetAll

func (_m *CelestiaRPCClient) GetAll(_a0 context.Context, _a1 uint64, _a2 []share.Namespace) ([]*blob.Blob, error)

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

func (*CelestiaRPCClient) GetHeaders

func (_m *CelestiaRPCClient) GetHeaders(ctx context.Context, height uint64) (*header.ExtendedHeader, error)

GetHeaders provides a mock function with given fields: ctx, height

func (*CelestiaRPCClient) GetProof

func (_m *CelestiaRPCClient) GetProof(ctx context.Context, height uint64, namespace share.Namespace, commitment blob.Commitment) (*blob.Proof, error)

GetProof provides a mock function with given fields: ctx, height, namespace, commitment

func (*CelestiaRPCClient) Included

func (_m *CelestiaRPCClient) Included(ctx context.Context, height uint64, namespace share.Namespace, proof *blob.Proof, commitment blob.Commitment) (bool, error)

Included provides a mock function with given fields: ctx, height, namespace, proof, commitment

func (*CelestiaRPCClient) Submit

func (_m *CelestiaRPCClient) Submit(ctx context.Context, blobs []*blob.Blob, options *client.SubmitOptions) (uint64, error)

Submit provides a mock function with given fields: ctx, blobs, options

func (*CelestiaRPCClient) SubmitPayForBlob

func (_m *CelestiaRPCClient) SubmitPayForBlob(ctx context.Context, fee math.Int, gasLim uint64, blobs []*blob.Blob) (*sdk.TxResponse, error)

SubmitPayForBlob provides a mock function with given fields: ctx, fee, gasLim, blobs

Jump to

Keyboard shortcuts

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