mock

package
v0.12.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDA added in v0.13.0

type MockDA struct {
	mock.Mock
}

MockDA is a mock for the DA interface

func (*MockDA) Commit added in v0.13.0

func (m *MockDA) Commit(ctx context.Context, blobs []da.Blob, ns da.Namespace) ([]da.Commitment, error)

Commit returns the commitments for the given blobs.

func (*MockDA) Get added in v0.13.0

func (m *MockDA) Get(ctx context.Context, ids []da.ID, ns da.Namespace) ([]da.Blob, error)

Get returns the blob by its ID.

func (*MockDA) GetIDs added in v0.13.0

func (m *MockDA) GetIDs(ctx context.Context, height uint64, ns da.Namespace) ([]da.ID, error)

GetIDs returns the IDs in a specific DA height.

func (*MockDA) GetProofs added in v0.13.0

func (m *MockDA) GetProofs(ctx context.Context, ids []da.ID, ns da.Namespace) ([]da.Proof, error)

GetProofs returns the proofs for the given ids.

func (*MockDA) MaxBlobSize added in v0.13.0

func (m *MockDA) MaxBlobSize(ctx context.Context) (uint64, error)

MaxBlobSize returns the max blob size.

func (*MockDA) Submit added in v0.13.0

func (m *MockDA) Submit(ctx context.Context, blobs []da.Blob, gasPrice float64, ns da.Namespace) ([]da.ID, error)

Submit submits and returns the IDs for the given blobs.

func (*MockDA) Validate added in v0.13.0

func (m *MockDA) Validate(ctx context.Context, ids []da.ID, proofs []da.Proof, ns da.Namespace) ([]bool, error)

Validate validates the given ids and proofs and returns validation results.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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