registrant

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIRegistrant

type MockIRegistrant struct {
	mock.Mock
}

MockIRegistrant is an autogenerated mock type for the IRegistrant type

func NewMockIRegistrant

func NewMockIRegistrant(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIRegistrant

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

func (*MockIRegistrant) NodeID

func (_m *MockIRegistrant) NodeID() uint32

NodeID provides a mock function with no fields

func (*MockIRegistrant) SignClientEnvelopeToSelf

func (_m *MockIRegistrant) SignClientEnvelopeToSelf(unsignedClientEnvelope []byte) ([]byte, error)

SignClientEnvelopeToSelf provides a mock function with given fields: unsignedClientEnvelope

func (*MockIRegistrant) SignPayerReportAttestation

func (_m *MockIRegistrant) SignPayerReportAttestation(reportID payerreport.ReportID) (*payerreport.NodeSignature, error)

SignPayerReportAttestation provides a mock function with given fields: reportID

func (*MockIRegistrant) SignStagedEnvelope

func (_m *MockIRegistrant) SignStagedEnvelope(stagedEnv queries.StagedOriginatorEnvelope, baseFee currency.PicoDollar, congestionFee currency.PicoDollar, retentionDays uint32) (*envelopes.OriginatorEnvelope, error)

SignStagedEnvelope provides a mock function with given fields: stagedEnv, baseFee, congestionFee, retentionDays

func (*MockIRegistrant) TokenFactory

func (_m *MockIRegistrant) TokenFactory() authn.TokenFactory

TokenFactory provides a mock function with no fields

type MockIRegistrant_Expecter

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

func (*MockIRegistrant_Expecter) NodeID

NodeID is a helper method to define mock.On call

func (*MockIRegistrant_Expecter) SignClientEnvelopeToSelf

func (_e *MockIRegistrant_Expecter) SignClientEnvelopeToSelf(unsignedClientEnvelope interface{}) *MockIRegistrant_SignClientEnvelopeToSelf_Call

SignClientEnvelopeToSelf is a helper method to define mock.On call

  • unsignedClientEnvelope []byte

func (*MockIRegistrant_Expecter) SignPayerReportAttestation

func (_e *MockIRegistrant_Expecter) SignPayerReportAttestation(reportID interface{}) *MockIRegistrant_SignPayerReportAttestation_Call

SignPayerReportAttestation is a helper method to define mock.On call

  • reportID payerreport.ReportID

func (*MockIRegistrant_Expecter) SignStagedEnvelope

func (_e *MockIRegistrant_Expecter) SignStagedEnvelope(stagedEnv interface{}, baseFee interface{}, congestionFee interface{}, retentionDays interface{}) *MockIRegistrant_SignStagedEnvelope_Call

SignStagedEnvelope is a helper method to define mock.On call

  • stagedEnv queries.StagedOriginatorEnvelope
  • baseFee currency.PicoDollar
  • congestionFee currency.PicoDollar
  • retentionDays uint32

func (*MockIRegistrant_Expecter) TokenFactory

TokenFactory is a helper method to define mock.On call

type MockIRegistrant_NodeID_Call

type MockIRegistrant_NodeID_Call struct {
	*mock.Call
}

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

func (*MockIRegistrant_NodeID_Call) Return

func (*MockIRegistrant_NodeID_Call) Run

func (*MockIRegistrant_NodeID_Call) RunAndReturn

func (_c *MockIRegistrant_NodeID_Call) RunAndReturn(run func() uint32) *MockIRegistrant_NodeID_Call

type MockIRegistrant_SignClientEnvelopeToSelf_Call

type MockIRegistrant_SignClientEnvelopeToSelf_Call struct {
	*mock.Call
}

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

func (*MockIRegistrant_SignClientEnvelopeToSelf_Call) Return

func (*MockIRegistrant_SignClientEnvelopeToSelf_Call) Run

func (*MockIRegistrant_SignClientEnvelopeToSelf_Call) RunAndReturn

type MockIRegistrant_SignPayerReportAttestation_Call

type MockIRegistrant_SignPayerReportAttestation_Call struct {
	*mock.Call
}

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

func (*MockIRegistrant_SignPayerReportAttestation_Call) Return

func (*MockIRegistrant_SignPayerReportAttestation_Call) Run

func (*MockIRegistrant_SignPayerReportAttestation_Call) RunAndReturn

type MockIRegistrant_SignStagedEnvelope_Call

type MockIRegistrant_SignStagedEnvelope_Call struct {
	*mock.Call
}

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

func (*MockIRegistrant_SignStagedEnvelope_Call) Return

func (*MockIRegistrant_SignStagedEnvelope_Call) Run

type MockIRegistrant_TokenFactory_Call

type MockIRegistrant_TokenFactory_Call struct {
	*mock.Call
}

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

func (*MockIRegistrant_TokenFactory_Call) Return

func (*MockIRegistrant_TokenFactory_Call) Run

func (*MockIRegistrant_TokenFactory_Call) RunAndReturn

Jump to

Keyboard shortcuts

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