mocks

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aptos added in v2.14.0

type Aptos struct {
	mock.Mock
}

Aptos is an autogenerated mock type for the Aptos type

func NewAptos added in v2.14.0

func NewAptos(t interface {
	mock.TestingT
	Cleanup(func())
}) *Aptos

NewAptos creates a new instance of Aptos. 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 (*Aptos) Add added in v2.14.0

func (_m *Aptos) Add(ctx context.Context, key aptoskey.Key) error

Add provides a mock function with given fields: ctx, key

func (*Aptos) Create added in v2.14.0

func (_m *Aptos) Create(ctx context.Context) (aptoskey.Key, error)

Create provides a mock function with given fields: ctx

func (*Aptos) Delete added in v2.14.0

func (_m *Aptos) Delete(ctx context.Context, id string) (aptoskey.Key, error)

Delete provides a mock function with given fields: ctx, id

func (*Aptos) EXPECT added in v2.15.0

func (_m *Aptos) EXPECT() *Aptos_Expecter

func (*Aptos) EnsureKey added in v2.14.0

func (_m *Aptos) EnsureKey(ctx context.Context) error

EnsureKey provides a mock function with given fields: ctx

func (*Aptos) Export added in v2.14.0

func (_m *Aptos) Export(id string, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*Aptos) Get added in v2.14.0

func (_m *Aptos) Get(id string) (aptoskey.Key, error)

Get provides a mock function with given fields: id

func (*Aptos) GetAll added in v2.14.0

func (_m *Aptos) GetAll() ([]aptoskey.Key, error)

GetAll provides a mock function with given fields:

func (*Aptos) Import added in v2.14.0

func (_m *Aptos) Import(ctx context.Context, keyJSON []byte, password string) (aptoskey.Key, error)

Import provides a mock function with given fields: ctx, keyJSON, password

func (*Aptos) Sign added in v2.14.0

func (_m *Aptos) Sign(ctx context.Context, id string, msg []byte) ([]byte, error)

Sign provides a mock function with given fields: ctx, id, msg

type Aptos_Add_Call added in v2.15.0

type Aptos_Add_Call struct {
	*mock.Call
}

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

func (*Aptos_Add_Call) Return added in v2.15.0

func (_c *Aptos_Add_Call) Return(_a0 error) *Aptos_Add_Call

func (*Aptos_Add_Call) Run added in v2.15.0

func (_c *Aptos_Add_Call) Run(run func(ctx context.Context, key aptoskey.Key)) *Aptos_Add_Call

func (*Aptos_Add_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_Add_Call) RunAndReturn(run func(context.Context, aptoskey.Key) error) *Aptos_Add_Call

type Aptos_Create_Call added in v2.15.0

type Aptos_Create_Call struct {
	*mock.Call
}

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

func (*Aptos_Create_Call) Return added in v2.15.0

func (_c *Aptos_Create_Call) Return(_a0 aptoskey.Key, _a1 error) *Aptos_Create_Call

func (*Aptos_Create_Call) Run added in v2.15.0

func (_c *Aptos_Create_Call) Run(run func(ctx context.Context)) *Aptos_Create_Call

func (*Aptos_Create_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_Create_Call) RunAndReturn(run func(context.Context) (aptoskey.Key, error)) *Aptos_Create_Call

type Aptos_Delete_Call added in v2.15.0

type Aptos_Delete_Call struct {
	*mock.Call
}

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

func (*Aptos_Delete_Call) Return added in v2.15.0

func (_c *Aptos_Delete_Call) Return(_a0 aptoskey.Key, _a1 error) *Aptos_Delete_Call

func (*Aptos_Delete_Call) Run added in v2.15.0

func (_c *Aptos_Delete_Call) Run(run func(ctx context.Context, id string)) *Aptos_Delete_Call

func (*Aptos_Delete_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_Delete_Call) RunAndReturn(run func(context.Context, string) (aptoskey.Key, error)) *Aptos_Delete_Call

type Aptos_EnsureKey_Call added in v2.15.0

type Aptos_EnsureKey_Call struct {
	*mock.Call
}

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

func (*Aptos_EnsureKey_Call) Return added in v2.15.0

func (*Aptos_EnsureKey_Call) Run added in v2.15.0

func (_c *Aptos_EnsureKey_Call) Run(run func(ctx context.Context)) *Aptos_EnsureKey_Call

func (*Aptos_EnsureKey_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_EnsureKey_Call) RunAndReturn(run func(context.Context) error) *Aptos_EnsureKey_Call

type Aptos_Expecter added in v2.15.0

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

func (*Aptos_Expecter) Add added in v2.15.0

func (_e *Aptos_Expecter) Add(ctx interface{}, key interface{}) *Aptos_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key aptoskey.Key

func (*Aptos_Expecter) Create added in v2.15.0

func (_e *Aptos_Expecter) Create(ctx interface{}) *Aptos_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context

func (*Aptos_Expecter) Delete added in v2.15.0

func (_e *Aptos_Expecter) Delete(ctx interface{}, id interface{}) *Aptos_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Aptos_Expecter) EnsureKey added in v2.15.0

func (_e *Aptos_Expecter) EnsureKey(ctx interface{}) *Aptos_EnsureKey_Call

EnsureKey is a helper method to define mock.On call

  • ctx context.Context

func (*Aptos_Expecter) Export added in v2.15.0

func (_e *Aptos_Expecter) Export(id interface{}, password interface{}) *Aptos_Export_Call

Export is a helper method to define mock.On call

  • id string
  • password string

func (*Aptos_Expecter) Get added in v2.15.0

func (_e *Aptos_Expecter) Get(id interface{}) *Aptos_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*Aptos_Expecter) GetAll added in v2.15.0

func (_e *Aptos_Expecter) GetAll() *Aptos_GetAll_Call

GetAll is a helper method to define mock.On call

func (*Aptos_Expecter) Import added in v2.15.0

func (_e *Aptos_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *Aptos_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

func (*Aptos_Expecter) Sign added in v2.15.0

func (_e *Aptos_Expecter) Sign(ctx interface{}, id interface{}, msg interface{}) *Aptos_Sign_Call

Sign is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • msg []byte

type Aptos_Export_Call added in v2.15.0

type Aptos_Export_Call struct {
	*mock.Call
}

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

func (*Aptos_Export_Call) Return added in v2.15.0

func (_c *Aptos_Export_Call) Return(_a0 []byte, _a1 error) *Aptos_Export_Call

func (*Aptos_Export_Call) Run added in v2.15.0

func (_c *Aptos_Export_Call) Run(run func(id string, password string)) *Aptos_Export_Call

func (*Aptos_Export_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_Export_Call) RunAndReturn(run func(string, string) ([]byte, error)) *Aptos_Export_Call

type Aptos_GetAll_Call added in v2.15.0

type Aptos_GetAll_Call struct {
	*mock.Call
}

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

func (*Aptos_GetAll_Call) Return added in v2.15.0

func (_c *Aptos_GetAll_Call) Return(_a0 []aptoskey.Key, _a1 error) *Aptos_GetAll_Call

func (*Aptos_GetAll_Call) Run added in v2.15.0

func (_c *Aptos_GetAll_Call) Run(run func()) *Aptos_GetAll_Call

func (*Aptos_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_GetAll_Call) RunAndReturn(run func() ([]aptoskey.Key, error)) *Aptos_GetAll_Call

type Aptos_Get_Call added in v2.15.0

type Aptos_Get_Call struct {
	*mock.Call
}

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

func (*Aptos_Get_Call) Return added in v2.15.0

func (_c *Aptos_Get_Call) Return(_a0 aptoskey.Key, _a1 error) *Aptos_Get_Call

func (*Aptos_Get_Call) Run added in v2.15.0

func (_c *Aptos_Get_Call) Run(run func(id string)) *Aptos_Get_Call

func (*Aptos_Get_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_Get_Call) RunAndReturn(run func(string) (aptoskey.Key, error)) *Aptos_Get_Call

type Aptos_Import_Call added in v2.15.0

type Aptos_Import_Call struct {
	*mock.Call
}

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

func (*Aptos_Import_Call) Return added in v2.15.0

func (_c *Aptos_Import_Call) Return(_a0 aptoskey.Key, _a1 error) *Aptos_Import_Call

func (*Aptos_Import_Call) Run added in v2.15.0

func (_c *Aptos_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *Aptos_Import_Call

func (*Aptos_Import_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_Import_Call) RunAndReturn(run func(context.Context, []byte, string) (aptoskey.Key, error)) *Aptos_Import_Call

type Aptos_Sign_Call added in v2.15.0

type Aptos_Sign_Call struct {
	*mock.Call
}

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

func (*Aptos_Sign_Call) Return added in v2.15.0

func (_c *Aptos_Sign_Call) Return(signature []byte, err error) *Aptos_Sign_Call

func (*Aptos_Sign_Call) Run added in v2.15.0

func (_c *Aptos_Sign_Call) Run(run func(ctx context.Context, id string, msg []byte)) *Aptos_Sign_Call

func (*Aptos_Sign_Call) RunAndReturn added in v2.15.0

func (_c *Aptos_Sign_Call) RunAndReturn(run func(context.Context, string, []byte) ([]byte, error)) *Aptos_Sign_Call

type CSA

type CSA struct {
	mock.Mock
}

CSA is an autogenerated mock type for the CSA type

func NewCSA

func NewCSA(t interface {
	mock.TestingT
	Cleanup(func())
}) *CSA

NewCSA creates a new instance of CSA. 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 (*CSA) Add

func (_m *CSA) Add(ctx context.Context, key csakey.KeyV2) error

Add provides a mock function with given fields: ctx, key

func (*CSA) Create

func (_m *CSA) Create(ctx context.Context) (csakey.KeyV2, error)

Create provides a mock function with given fields: ctx

func (*CSA) Delete

func (_m *CSA) Delete(ctx context.Context, id string) (csakey.KeyV2, error)

Delete provides a mock function with given fields: ctx, id

func (*CSA) EXPECT added in v2.15.0

func (_m *CSA) EXPECT() *CSA_Expecter

func (*CSA) EnsureKey

func (_m *CSA) EnsureKey(ctx context.Context) error

EnsureKey provides a mock function with given fields: ctx

func (*CSA) Export

func (_m *CSA) Export(id string, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*CSA) Get

func (_m *CSA) Get(id string) (csakey.KeyV2, error)

Get provides a mock function with given fields: id

func (*CSA) GetAll

func (_m *CSA) GetAll() ([]csakey.KeyV2, error)

GetAll provides a mock function with given fields:

func (*CSA) Import

func (_m *CSA) Import(ctx context.Context, keyJSON []byte, password string) (csakey.KeyV2, error)

Import provides a mock function with given fields: ctx, keyJSON, password

type CSA_Add_Call added in v2.15.0

type CSA_Add_Call struct {
	*mock.Call
}

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

func (*CSA_Add_Call) Return added in v2.15.0

func (_c *CSA_Add_Call) Return(_a0 error) *CSA_Add_Call

func (*CSA_Add_Call) Run added in v2.15.0

func (_c *CSA_Add_Call) Run(run func(ctx context.Context, key csakey.KeyV2)) *CSA_Add_Call

func (*CSA_Add_Call) RunAndReturn added in v2.15.0

func (_c *CSA_Add_Call) RunAndReturn(run func(context.Context, csakey.KeyV2) error) *CSA_Add_Call

type CSA_Create_Call added in v2.15.0

type CSA_Create_Call struct {
	*mock.Call
}

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

func (*CSA_Create_Call) Return added in v2.15.0

func (_c *CSA_Create_Call) Return(_a0 csakey.KeyV2, _a1 error) *CSA_Create_Call

func (*CSA_Create_Call) Run added in v2.15.0

func (_c *CSA_Create_Call) Run(run func(ctx context.Context)) *CSA_Create_Call

func (*CSA_Create_Call) RunAndReturn added in v2.15.0

func (_c *CSA_Create_Call) RunAndReturn(run func(context.Context) (csakey.KeyV2, error)) *CSA_Create_Call

type CSA_Delete_Call added in v2.15.0

type CSA_Delete_Call struct {
	*mock.Call
}

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

func (*CSA_Delete_Call) Return added in v2.15.0

func (_c *CSA_Delete_Call) Return(_a0 csakey.KeyV2, _a1 error) *CSA_Delete_Call

func (*CSA_Delete_Call) Run added in v2.15.0

func (_c *CSA_Delete_Call) Run(run func(ctx context.Context, id string)) *CSA_Delete_Call

func (*CSA_Delete_Call) RunAndReturn added in v2.15.0

func (_c *CSA_Delete_Call) RunAndReturn(run func(context.Context, string) (csakey.KeyV2, error)) *CSA_Delete_Call

type CSA_EnsureKey_Call added in v2.15.0

type CSA_EnsureKey_Call struct {
	*mock.Call
}

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

func (*CSA_EnsureKey_Call) Return added in v2.15.0

func (_c *CSA_EnsureKey_Call) Return(_a0 error) *CSA_EnsureKey_Call

func (*CSA_EnsureKey_Call) Run added in v2.15.0

func (_c *CSA_EnsureKey_Call) Run(run func(ctx context.Context)) *CSA_EnsureKey_Call

func (*CSA_EnsureKey_Call) RunAndReturn added in v2.15.0

func (_c *CSA_EnsureKey_Call) RunAndReturn(run func(context.Context) error) *CSA_EnsureKey_Call

type CSA_Expecter added in v2.15.0

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

func (*CSA_Expecter) Add added in v2.15.0

func (_e *CSA_Expecter) Add(ctx interface{}, key interface{}) *CSA_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key csakey.KeyV2

func (*CSA_Expecter) Create added in v2.15.0

func (_e *CSA_Expecter) Create(ctx interface{}) *CSA_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context

func (*CSA_Expecter) Delete added in v2.15.0

func (_e *CSA_Expecter) Delete(ctx interface{}, id interface{}) *CSA_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*CSA_Expecter) EnsureKey added in v2.15.0

func (_e *CSA_Expecter) EnsureKey(ctx interface{}) *CSA_EnsureKey_Call

EnsureKey is a helper method to define mock.On call

  • ctx context.Context

func (*CSA_Expecter) Export added in v2.15.0

func (_e *CSA_Expecter) Export(id interface{}, password interface{}) *CSA_Export_Call

Export is a helper method to define mock.On call

  • id string
  • password string

func (*CSA_Expecter) Get added in v2.15.0

func (_e *CSA_Expecter) Get(id interface{}) *CSA_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*CSA_Expecter) GetAll added in v2.15.0

func (_e *CSA_Expecter) GetAll() *CSA_GetAll_Call

GetAll is a helper method to define mock.On call

func (*CSA_Expecter) Import added in v2.15.0

func (_e *CSA_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *CSA_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

type CSA_Export_Call added in v2.15.0

type CSA_Export_Call struct {
	*mock.Call
}

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

func (*CSA_Export_Call) Return added in v2.15.0

func (_c *CSA_Export_Call) Return(_a0 []byte, _a1 error) *CSA_Export_Call

func (*CSA_Export_Call) Run added in v2.15.0

func (_c *CSA_Export_Call) Run(run func(id string, password string)) *CSA_Export_Call

func (*CSA_Export_Call) RunAndReturn added in v2.15.0

func (_c *CSA_Export_Call) RunAndReturn(run func(string, string) ([]byte, error)) *CSA_Export_Call

type CSA_GetAll_Call added in v2.15.0

type CSA_GetAll_Call struct {
	*mock.Call
}

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

func (*CSA_GetAll_Call) Return added in v2.15.0

func (_c *CSA_GetAll_Call) Return(_a0 []csakey.KeyV2, _a1 error) *CSA_GetAll_Call

func (*CSA_GetAll_Call) Run added in v2.15.0

func (_c *CSA_GetAll_Call) Run(run func()) *CSA_GetAll_Call

func (*CSA_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *CSA_GetAll_Call) RunAndReturn(run func() ([]csakey.KeyV2, error)) *CSA_GetAll_Call

type CSA_Get_Call added in v2.15.0

type CSA_Get_Call struct {
	*mock.Call
}

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

func (*CSA_Get_Call) Return added in v2.15.0

func (_c *CSA_Get_Call) Return(_a0 csakey.KeyV2, _a1 error) *CSA_Get_Call

func (*CSA_Get_Call) Run added in v2.15.0

func (_c *CSA_Get_Call) Run(run func(id string)) *CSA_Get_Call

func (*CSA_Get_Call) RunAndReturn added in v2.15.0

func (_c *CSA_Get_Call) RunAndReturn(run func(string) (csakey.KeyV2, error)) *CSA_Get_Call

type CSA_Import_Call added in v2.15.0

type CSA_Import_Call struct {
	*mock.Call
}

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

func (*CSA_Import_Call) Return added in v2.15.0

func (_c *CSA_Import_Call) Return(_a0 csakey.KeyV2, _a1 error) *CSA_Import_Call

func (*CSA_Import_Call) Run added in v2.15.0

func (_c *CSA_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *CSA_Import_Call

func (*CSA_Import_Call) RunAndReturn added in v2.15.0

func (_c *CSA_Import_Call) RunAndReturn(run func(context.Context, []byte, string) (csakey.KeyV2, error)) *CSA_Import_Call

type Cosmos

type Cosmos struct {
	mock.Mock
}

Cosmos is an autogenerated mock type for the Cosmos type

func NewCosmos

func NewCosmos(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cosmos

NewCosmos creates a new instance of Cosmos. 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 (*Cosmos) Add

func (_m *Cosmos) Add(ctx context.Context, key cosmoskey.Key) error

Add provides a mock function with given fields: ctx, key

func (*Cosmos) Create

func (_m *Cosmos) Create(ctx context.Context) (cosmoskey.Key, error)

Create provides a mock function with given fields: ctx

func (*Cosmos) Delete

func (_m *Cosmos) Delete(ctx context.Context, id string) (cosmoskey.Key, error)

Delete provides a mock function with given fields: ctx, id

func (*Cosmos) EXPECT added in v2.15.0

func (_m *Cosmos) EXPECT() *Cosmos_Expecter

func (*Cosmos) EnsureKey

func (_m *Cosmos) EnsureKey(ctx context.Context) error

EnsureKey provides a mock function with given fields: ctx

func (*Cosmos) Export

func (_m *Cosmos) Export(id string, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*Cosmos) Get

func (_m *Cosmos) Get(id string) (cosmoskey.Key, error)

Get provides a mock function with given fields: id

func (*Cosmos) GetAll

func (_m *Cosmos) GetAll() ([]cosmoskey.Key, error)

GetAll provides a mock function with given fields:

func (*Cosmos) Import

func (_m *Cosmos) Import(ctx context.Context, keyJSON []byte, password string) (cosmoskey.Key, error)

Import provides a mock function with given fields: ctx, keyJSON, password

type Cosmos_Add_Call added in v2.15.0

type Cosmos_Add_Call struct {
	*mock.Call
}

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

func (*Cosmos_Add_Call) Return added in v2.15.0

func (_c *Cosmos_Add_Call) Return(_a0 error) *Cosmos_Add_Call

func (*Cosmos_Add_Call) Run added in v2.15.0

func (_c *Cosmos_Add_Call) Run(run func(ctx context.Context, key cosmoskey.Key)) *Cosmos_Add_Call

func (*Cosmos_Add_Call) RunAndReturn added in v2.15.0

func (_c *Cosmos_Add_Call) RunAndReturn(run func(context.Context, cosmoskey.Key) error) *Cosmos_Add_Call

type Cosmos_Create_Call added in v2.15.0

type Cosmos_Create_Call struct {
	*mock.Call
}

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

func (*Cosmos_Create_Call) Return added in v2.15.0

func (*Cosmos_Create_Call) Run added in v2.15.0

func (_c *Cosmos_Create_Call) Run(run func(ctx context.Context)) *Cosmos_Create_Call

func (*Cosmos_Create_Call) RunAndReturn added in v2.15.0

func (_c *Cosmos_Create_Call) RunAndReturn(run func(context.Context) (cosmoskey.Key, error)) *Cosmos_Create_Call

type Cosmos_Delete_Call added in v2.15.0

type Cosmos_Delete_Call struct {
	*mock.Call
}

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

func (*Cosmos_Delete_Call) Return added in v2.15.0

func (*Cosmos_Delete_Call) Run added in v2.15.0

func (_c *Cosmos_Delete_Call) Run(run func(ctx context.Context, id string)) *Cosmos_Delete_Call

func (*Cosmos_Delete_Call) RunAndReturn added in v2.15.0

func (_c *Cosmos_Delete_Call) RunAndReturn(run func(context.Context, string) (cosmoskey.Key, error)) *Cosmos_Delete_Call

type Cosmos_EnsureKey_Call added in v2.15.0

type Cosmos_EnsureKey_Call struct {
	*mock.Call
}

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

func (*Cosmos_EnsureKey_Call) Return added in v2.15.0

func (*Cosmos_EnsureKey_Call) Run added in v2.15.0

func (*Cosmos_EnsureKey_Call) RunAndReturn added in v2.15.0

func (_c *Cosmos_EnsureKey_Call) RunAndReturn(run func(context.Context) error) *Cosmos_EnsureKey_Call

type Cosmos_Expecter added in v2.15.0

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

func (*Cosmos_Expecter) Add added in v2.15.0

func (_e *Cosmos_Expecter) Add(ctx interface{}, key interface{}) *Cosmos_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key cosmoskey.Key

func (*Cosmos_Expecter) Create added in v2.15.0

func (_e *Cosmos_Expecter) Create(ctx interface{}) *Cosmos_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context

func (*Cosmos_Expecter) Delete added in v2.15.0

func (_e *Cosmos_Expecter) Delete(ctx interface{}, id interface{}) *Cosmos_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Cosmos_Expecter) EnsureKey added in v2.15.0

func (_e *Cosmos_Expecter) EnsureKey(ctx interface{}) *Cosmos_EnsureKey_Call

EnsureKey is a helper method to define mock.On call

  • ctx context.Context

func (*Cosmos_Expecter) Export added in v2.15.0

func (_e *Cosmos_Expecter) Export(id interface{}, password interface{}) *Cosmos_Export_Call

Export is a helper method to define mock.On call

  • id string
  • password string

func (*Cosmos_Expecter) Get added in v2.15.0

func (_e *Cosmos_Expecter) Get(id interface{}) *Cosmos_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*Cosmos_Expecter) GetAll added in v2.15.0

func (_e *Cosmos_Expecter) GetAll() *Cosmos_GetAll_Call

GetAll is a helper method to define mock.On call

func (*Cosmos_Expecter) Import added in v2.15.0

func (_e *Cosmos_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *Cosmos_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

type Cosmos_Export_Call added in v2.15.0

type Cosmos_Export_Call struct {
	*mock.Call
}

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

func (*Cosmos_Export_Call) Return added in v2.15.0

func (_c *Cosmos_Export_Call) Return(_a0 []byte, _a1 error) *Cosmos_Export_Call

func (*Cosmos_Export_Call) Run added in v2.15.0

func (_c *Cosmos_Export_Call) Run(run func(id string, password string)) *Cosmos_Export_Call

func (*Cosmos_Export_Call) RunAndReturn added in v2.15.0

func (_c *Cosmos_Export_Call) RunAndReturn(run func(string, string) ([]byte, error)) *Cosmos_Export_Call

type Cosmos_GetAll_Call added in v2.15.0

type Cosmos_GetAll_Call struct {
	*mock.Call
}

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

func (*Cosmos_GetAll_Call) Return added in v2.15.0

func (_c *Cosmos_GetAll_Call) Return(_a0 []cosmoskey.Key, _a1 error) *Cosmos_GetAll_Call

func (*Cosmos_GetAll_Call) Run added in v2.15.0

func (_c *Cosmos_GetAll_Call) Run(run func()) *Cosmos_GetAll_Call

func (*Cosmos_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *Cosmos_GetAll_Call) RunAndReturn(run func() ([]cosmoskey.Key, error)) *Cosmos_GetAll_Call

type Cosmos_Get_Call added in v2.15.0

type Cosmos_Get_Call struct {
	*mock.Call
}

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

func (*Cosmos_Get_Call) Return added in v2.15.0

func (_c *Cosmos_Get_Call) Return(_a0 cosmoskey.Key, _a1 error) *Cosmos_Get_Call

func (*Cosmos_Get_Call) Run added in v2.15.0

func (_c *Cosmos_Get_Call) Run(run func(id string)) *Cosmos_Get_Call

func (*Cosmos_Get_Call) RunAndReturn added in v2.15.0

func (_c *Cosmos_Get_Call) RunAndReturn(run func(string) (cosmoskey.Key, error)) *Cosmos_Get_Call

type Cosmos_Import_Call added in v2.15.0

type Cosmos_Import_Call struct {
	*mock.Call
}

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

func (*Cosmos_Import_Call) Return added in v2.15.0

func (*Cosmos_Import_Call) Run added in v2.15.0

func (_c *Cosmos_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *Cosmos_Import_Call

func (*Cosmos_Import_Call) RunAndReturn added in v2.15.0

func (_c *Cosmos_Import_Call) RunAndReturn(run func(context.Context, []byte, string) (cosmoskey.Key, error)) *Cosmos_Import_Call

type Eth

type Eth struct {
	mock.Mock
}

Eth is an autogenerated mock type for the Eth type

func NewEth

func NewEth(t interface {
	mock.TestingT
	Cleanup(func())
}) *Eth

NewEth creates a new instance of Eth. 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 (*Eth) Add added in v2.3.0

func (_m *Eth) Add(ctx context.Context, address common.Address, chainID *big.Int) error

Add provides a mock function with given fields: ctx, address, chainID

func (*Eth) CheckEnabled

func (_m *Eth) CheckEnabled(ctx context.Context, address common.Address, chainID *big.Int) error

CheckEnabled provides a mock function with given fields: ctx, address, chainID

func (*Eth) Create

func (_m *Eth) Create(ctx context.Context, chainIDs ...*big.Int) (ethkey.KeyV2, error)

Create provides a mock function with given fields: ctx, chainIDs

func (*Eth) Delete

func (_m *Eth) Delete(ctx context.Context, id string) (ethkey.KeyV2, error)

Delete provides a mock function with given fields: ctx, id

func (*Eth) Disable

func (_m *Eth) Disable(ctx context.Context, address common.Address, chainID *big.Int) error

Disable provides a mock function with given fields: ctx, address, chainID

func (*Eth) EXPECT added in v2.15.0

func (_m *Eth) EXPECT() *Eth_Expecter

func (*Eth) Enable

func (_m *Eth) Enable(ctx context.Context, address common.Address, chainID *big.Int) error

Enable provides a mock function with given fields: ctx, address, chainID

func (*Eth) EnabledAddressesForChain added in v2.1.0

func (_m *Eth) EnabledAddressesForChain(ctx context.Context, chainID *big.Int) ([]common.Address, error)

EnabledAddressesForChain provides a mock function with given fields: ctx, chainID

func (*Eth) EnabledKeysForChain

func (_m *Eth) EnabledKeysForChain(ctx context.Context, chainID *big.Int) ([]ethkey.KeyV2, error)

EnabledKeysForChain provides a mock function with given fields: ctx, chainID

func (*Eth) EnsureKeys

func (_m *Eth) EnsureKeys(ctx context.Context, chainIDs ...*big.Int) error

EnsureKeys provides a mock function with given fields: ctx, chainIDs

func (*Eth) Export

func (_m *Eth) Export(ctx context.Context, id string, password string) ([]byte, error)

Export provides a mock function with given fields: ctx, id, password

func (*Eth) Get

func (_m *Eth) Get(ctx context.Context, id string) (ethkey.KeyV2, error)

Get provides a mock function with given fields: ctx, id

func (*Eth) GetAll

func (_m *Eth) GetAll(ctx context.Context) ([]ethkey.KeyV2, error)

GetAll provides a mock function with given fields: ctx

func (*Eth) GetRoundRobinAddress

func (_m *Eth) GetRoundRobinAddress(ctx context.Context, chainID *big.Int, addresses ...common.Address) (common.Address, error)

GetRoundRobinAddress provides a mock function with given fields: ctx, chainID, addresses

func (*Eth) GetState

func (_m *Eth) GetState(ctx context.Context, id string, chainID *big.Int) (ethkey.State, error)

GetState provides a mock function with given fields: ctx, id, chainID

func (*Eth) GetStateForKey added in v2.3.0

func (_m *Eth) GetStateForKey(ctx context.Context, key ethkey.KeyV2) (ethkey.State, error)

GetStateForKey provides a mock function with given fields: ctx, key

func (*Eth) GetStatesForChain

func (_m *Eth) GetStatesForChain(ctx context.Context, chainID *big.Int) ([]ethkey.State, error)

GetStatesForChain provides a mock function with given fields: ctx, chainID

func (*Eth) GetStatesForKeys

func (_m *Eth) GetStatesForKeys(ctx context.Context, keys []ethkey.KeyV2) ([]ethkey.State, error)

GetStatesForKeys provides a mock function with given fields: ctx, keys

func (*Eth) Import

func (_m *Eth) Import(ctx context.Context, keyJSON []byte, password string, chainIDs ...*big.Int) (ethkey.KeyV2, error)

Import provides a mock function with given fields: ctx, keyJSON, password, chainIDs

func (*Eth) SignTx

func (_m *Eth) SignTx(ctx context.Context, fromAddress common.Address, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)

SignTx provides a mock function with given fields: ctx, fromAddress, tx, chainID

func (*Eth) SubscribeToKeyChanges

func (_m *Eth) SubscribeToKeyChanges(ctx context.Context) (chan struct{}, func())

SubscribeToKeyChanges provides a mock function with given fields: ctx

func (*Eth) XXXTestingOnlyAdd

func (_m *Eth) XXXTestingOnlyAdd(ctx context.Context, key ethkey.KeyV2)

XXXTestingOnlyAdd provides a mock function with given fields: ctx, key

func (*Eth) XXXTestingOnlySetState

func (_m *Eth) XXXTestingOnlySetState(ctx context.Context, keyState ethkey.State)

XXXTestingOnlySetState provides a mock function with given fields: ctx, keyState

type Eth_Add_Call added in v2.15.0

type Eth_Add_Call struct {
	*mock.Call
}

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

func (*Eth_Add_Call) Return added in v2.15.0

func (_c *Eth_Add_Call) Return(_a0 error) *Eth_Add_Call

func (*Eth_Add_Call) Run added in v2.15.0

func (_c *Eth_Add_Call) Run(run func(ctx context.Context, address common.Address, chainID *big.Int)) *Eth_Add_Call

func (*Eth_Add_Call) RunAndReturn added in v2.15.0

func (_c *Eth_Add_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) error) *Eth_Add_Call

type Eth_CheckEnabled_Call added in v2.15.0

type Eth_CheckEnabled_Call struct {
	*mock.Call
}

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

func (*Eth_CheckEnabled_Call) Return added in v2.15.0

func (*Eth_CheckEnabled_Call) Run added in v2.15.0

func (_c *Eth_CheckEnabled_Call) Run(run func(ctx context.Context, address common.Address, chainID *big.Int)) *Eth_CheckEnabled_Call

func (*Eth_CheckEnabled_Call) RunAndReturn added in v2.15.0

type Eth_Create_Call added in v2.15.0

type Eth_Create_Call struct {
	*mock.Call
}

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

func (*Eth_Create_Call) Return added in v2.15.0

func (_c *Eth_Create_Call) Return(_a0 ethkey.KeyV2, _a1 error) *Eth_Create_Call

func (*Eth_Create_Call) Run added in v2.15.0

func (_c *Eth_Create_Call) Run(run func(ctx context.Context, chainIDs ...*big.Int)) *Eth_Create_Call

func (*Eth_Create_Call) RunAndReturn added in v2.15.0

func (_c *Eth_Create_Call) RunAndReturn(run func(context.Context, ...*big.Int) (ethkey.KeyV2, error)) *Eth_Create_Call

type Eth_Delete_Call added in v2.15.0

type Eth_Delete_Call struct {
	*mock.Call
}

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

func (*Eth_Delete_Call) Return added in v2.15.0

func (_c *Eth_Delete_Call) Return(_a0 ethkey.KeyV2, _a1 error) *Eth_Delete_Call

func (*Eth_Delete_Call) Run added in v2.15.0

func (_c *Eth_Delete_Call) Run(run func(ctx context.Context, id string)) *Eth_Delete_Call

func (*Eth_Delete_Call) RunAndReturn added in v2.15.0

func (_c *Eth_Delete_Call) RunAndReturn(run func(context.Context, string) (ethkey.KeyV2, error)) *Eth_Delete_Call

type Eth_Disable_Call added in v2.15.0

type Eth_Disable_Call struct {
	*mock.Call
}

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

func (*Eth_Disable_Call) Return added in v2.15.0

func (_c *Eth_Disable_Call) Return(_a0 error) *Eth_Disable_Call

func (*Eth_Disable_Call) Run added in v2.15.0

func (_c *Eth_Disable_Call) Run(run func(ctx context.Context, address common.Address, chainID *big.Int)) *Eth_Disable_Call

func (*Eth_Disable_Call) RunAndReturn added in v2.15.0

func (_c *Eth_Disable_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) error) *Eth_Disable_Call

type Eth_Enable_Call added in v2.15.0

type Eth_Enable_Call struct {
	*mock.Call
}

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

func (*Eth_Enable_Call) Return added in v2.15.0

func (_c *Eth_Enable_Call) Return(_a0 error) *Eth_Enable_Call

func (*Eth_Enable_Call) Run added in v2.15.0

func (_c *Eth_Enable_Call) Run(run func(ctx context.Context, address common.Address, chainID *big.Int)) *Eth_Enable_Call

func (*Eth_Enable_Call) RunAndReturn added in v2.15.0

func (_c *Eth_Enable_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) error) *Eth_Enable_Call

type Eth_EnabledAddressesForChain_Call added in v2.15.0

type Eth_EnabledAddressesForChain_Call struct {
	*mock.Call
}

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

func (*Eth_EnabledAddressesForChain_Call) Return added in v2.15.0

func (*Eth_EnabledAddressesForChain_Call) Run added in v2.15.0

func (*Eth_EnabledAddressesForChain_Call) RunAndReturn added in v2.15.0

type Eth_EnabledKeysForChain_Call added in v2.15.0

type Eth_EnabledKeysForChain_Call struct {
	*mock.Call
}

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

func (*Eth_EnabledKeysForChain_Call) Return added in v2.15.0

func (*Eth_EnabledKeysForChain_Call) Run added in v2.15.0

func (*Eth_EnabledKeysForChain_Call) RunAndReturn added in v2.15.0

type Eth_EnsureKeys_Call added in v2.15.0

type Eth_EnsureKeys_Call struct {
	*mock.Call
}

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

func (*Eth_EnsureKeys_Call) Return added in v2.15.0

func (*Eth_EnsureKeys_Call) Run added in v2.15.0

func (_c *Eth_EnsureKeys_Call) Run(run func(ctx context.Context, chainIDs ...*big.Int)) *Eth_EnsureKeys_Call

func (*Eth_EnsureKeys_Call) RunAndReturn added in v2.15.0

func (_c *Eth_EnsureKeys_Call) RunAndReturn(run func(context.Context, ...*big.Int) error) *Eth_EnsureKeys_Call

type Eth_Expecter added in v2.15.0

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

func (*Eth_Expecter) Add added in v2.15.0

func (_e *Eth_Expecter) Add(ctx interface{}, address interface{}, chainID interface{}) *Eth_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address
  • chainID *big.Int

func (*Eth_Expecter) CheckEnabled added in v2.15.0

func (_e *Eth_Expecter) CheckEnabled(ctx interface{}, address interface{}, chainID interface{}) *Eth_CheckEnabled_Call

CheckEnabled is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address
  • chainID *big.Int

func (*Eth_Expecter) Create added in v2.15.0

func (_e *Eth_Expecter) Create(ctx interface{}, chainIDs ...interface{}) *Eth_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • chainIDs ...*big.Int

func (*Eth_Expecter) Delete added in v2.15.0

func (_e *Eth_Expecter) Delete(ctx interface{}, id interface{}) *Eth_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Eth_Expecter) Disable added in v2.15.0

func (_e *Eth_Expecter) Disable(ctx interface{}, address interface{}, chainID interface{}) *Eth_Disable_Call

Disable is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address
  • chainID *big.Int

func (*Eth_Expecter) Enable added in v2.15.0

func (_e *Eth_Expecter) Enable(ctx interface{}, address interface{}, chainID interface{}) *Eth_Enable_Call

Enable is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address
  • chainID *big.Int

func (*Eth_Expecter) EnabledAddressesForChain added in v2.15.0

func (_e *Eth_Expecter) EnabledAddressesForChain(ctx interface{}, chainID interface{}) *Eth_EnabledAddressesForChain_Call

EnabledAddressesForChain is a helper method to define mock.On call

  • ctx context.Context
  • chainID *big.Int

func (*Eth_Expecter) EnabledKeysForChain added in v2.15.0

func (_e *Eth_Expecter) EnabledKeysForChain(ctx interface{}, chainID interface{}) *Eth_EnabledKeysForChain_Call

EnabledKeysForChain is a helper method to define mock.On call

  • ctx context.Context
  • chainID *big.Int

func (*Eth_Expecter) EnsureKeys added in v2.15.0

func (_e *Eth_Expecter) EnsureKeys(ctx interface{}, chainIDs ...interface{}) *Eth_EnsureKeys_Call

EnsureKeys is a helper method to define mock.On call

  • ctx context.Context
  • chainIDs ...*big.Int

func (*Eth_Expecter) Export added in v2.15.0

func (_e *Eth_Expecter) Export(ctx interface{}, id interface{}, password interface{}) *Eth_Export_Call

Export is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • password string

func (*Eth_Expecter) Get added in v2.15.0

func (_e *Eth_Expecter) Get(ctx interface{}, id interface{}) *Eth_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Eth_Expecter) GetAll added in v2.15.0

func (_e *Eth_Expecter) GetAll(ctx interface{}) *Eth_GetAll_Call

GetAll is a helper method to define mock.On call

  • ctx context.Context

func (*Eth_Expecter) GetRoundRobinAddress added in v2.15.0

func (_e *Eth_Expecter) GetRoundRobinAddress(ctx interface{}, chainID interface{}, addresses ...interface{}) *Eth_GetRoundRobinAddress_Call

GetRoundRobinAddress is a helper method to define mock.On call

  • ctx context.Context
  • chainID *big.Int
  • addresses ...common.Address

func (*Eth_Expecter) GetState added in v2.15.0

func (_e *Eth_Expecter) GetState(ctx interface{}, id interface{}, chainID interface{}) *Eth_GetState_Call

GetState is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • chainID *big.Int

func (*Eth_Expecter) GetStateForKey added in v2.15.0

func (_e *Eth_Expecter) GetStateForKey(ctx interface{}, key interface{}) *Eth_GetStateForKey_Call

GetStateForKey is a helper method to define mock.On call

  • ctx context.Context
  • key ethkey.KeyV2

func (*Eth_Expecter) GetStatesForChain added in v2.15.0

func (_e *Eth_Expecter) GetStatesForChain(ctx interface{}, chainID interface{}) *Eth_GetStatesForChain_Call

GetStatesForChain is a helper method to define mock.On call

  • ctx context.Context
  • chainID *big.Int

func (*Eth_Expecter) GetStatesForKeys added in v2.15.0

func (_e *Eth_Expecter) GetStatesForKeys(ctx interface{}, keys interface{}) *Eth_GetStatesForKeys_Call

GetStatesForKeys is a helper method to define mock.On call

  • ctx context.Context
  • keys []ethkey.KeyV2

func (*Eth_Expecter) Import added in v2.15.0

func (_e *Eth_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}, chainIDs ...interface{}) *Eth_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string
  • chainIDs ...*big.Int

func (*Eth_Expecter) SignTx added in v2.15.0

func (_e *Eth_Expecter) SignTx(ctx interface{}, fromAddress interface{}, tx interface{}, chainID interface{}) *Eth_SignTx_Call

SignTx is a helper method to define mock.On call

  • ctx context.Context
  • fromAddress common.Address
  • tx *types.Transaction
  • chainID *big.Int

func (*Eth_Expecter) SubscribeToKeyChanges added in v2.15.0

func (_e *Eth_Expecter) SubscribeToKeyChanges(ctx interface{}) *Eth_SubscribeToKeyChanges_Call

SubscribeToKeyChanges is a helper method to define mock.On call

  • ctx context.Context

func (*Eth_Expecter) XXXTestingOnlyAdd added in v2.15.0

func (_e *Eth_Expecter) XXXTestingOnlyAdd(ctx interface{}, key interface{}) *Eth_XXXTestingOnlyAdd_Call

XXXTestingOnlyAdd is a helper method to define mock.On call

  • ctx context.Context
  • key ethkey.KeyV2

func (*Eth_Expecter) XXXTestingOnlySetState added in v2.15.0

func (_e *Eth_Expecter) XXXTestingOnlySetState(ctx interface{}, keyState interface{}) *Eth_XXXTestingOnlySetState_Call

XXXTestingOnlySetState is a helper method to define mock.On call

  • ctx context.Context
  • keyState ethkey.State

type Eth_Export_Call added in v2.15.0

type Eth_Export_Call struct {
	*mock.Call
}

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

func (*Eth_Export_Call) Return added in v2.15.0

func (_c *Eth_Export_Call) Return(_a0 []byte, _a1 error) *Eth_Export_Call

func (*Eth_Export_Call) Run added in v2.15.0

func (_c *Eth_Export_Call) Run(run func(ctx context.Context, id string, password string)) *Eth_Export_Call

func (*Eth_Export_Call) RunAndReturn added in v2.15.0

func (_c *Eth_Export_Call) RunAndReturn(run func(context.Context, string, string) ([]byte, error)) *Eth_Export_Call

type Eth_GetAll_Call added in v2.15.0

type Eth_GetAll_Call struct {
	*mock.Call
}

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

func (*Eth_GetAll_Call) Return added in v2.15.0

func (_c *Eth_GetAll_Call) Return(_a0 []ethkey.KeyV2, _a1 error) *Eth_GetAll_Call

func (*Eth_GetAll_Call) Run added in v2.15.0

func (_c *Eth_GetAll_Call) Run(run func(ctx context.Context)) *Eth_GetAll_Call

func (*Eth_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *Eth_GetAll_Call) RunAndReturn(run func(context.Context) ([]ethkey.KeyV2, error)) *Eth_GetAll_Call

type Eth_GetRoundRobinAddress_Call added in v2.15.0

type Eth_GetRoundRobinAddress_Call struct {
	*mock.Call
}

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

func (*Eth_GetRoundRobinAddress_Call) Return added in v2.15.0

func (*Eth_GetRoundRobinAddress_Call) Run added in v2.15.0

func (_c *Eth_GetRoundRobinAddress_Call) Run(run func(ctx context.Context, chainID *big.Int, addresses ...common.Address)) *Eth_GetRoundRobinAddress_Call

func (*Eth_GetRoundRobinAddress_Call) RunAndReturn added in v2.15.0

type Eth_GetStateForKey_Call added in v2.15.0

type Eth_GetStateForKey_Call struct {
	*mock.Call
}

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

func (*Eth_GetStateForKey_Call) Return added in v2.15.0

func (*Eth_GetStateForKey_Call) Run added in v2.15.0

func (*Eth_GetStateForKey_Call) RunAndReturn added in v2.15.0

type Eth_GetState_Call added in v2.15.0

type Eth_GetState_Call struct {
	*mock.Call
}

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

func (*Eth_GetState_Call) Return added in v2.15.0

func (_c *Eth_GetState_Call) Return(_a0 ethkey.State, _a1 error) *Eth_GetState_Call

func (*Eth_GetState_Call) Run added in v2.15.0

func (_c *Eth_GetState_Call) Run(run func(ctx context.Context, id string, chainID *big.Int)) *Eth_GetState_Call

func (*Eth_GetState_Call) RunAndReturn added in v2.15.0

func (_c *Eth_GetState_Call) RunAndReturn(run func(context.Context, string, *big.Int) (ethkey.State, error)) *Eth_GetState_Call

type Eth_GetStatesForChain_Call added in v2.15.0

type Eth_GetStatesForChain_Call struct {
	*mock.Call
}

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

func (*Eth_GetStatesForChain_Call) Return added in v2.15.0

func (*Eth_GetStatesForChain_Call) Run added in v2.15.0

func (_c *Eth_GetStatesForChain_Call) Run(run func(ctx context.Context, chainID *big.Int)) *Eth_GetStatesForChain_Call

func (*Eth_GetStatesForChain_Call) RunAndReturn added in v2.15.0

type Eth_GetStatesForKeys_Call added in v2.15.0

type Eth_GetStatesForKeys_Call struct {
	*mock.Call
}

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

func (*Eth_GetStatesForKeys_Call) Return added in v2.15.0

func (*Eth_GetStatesForKeys_Call) Run added in v2.15.0

func (*Eth_GetStatesForKeys_Call) RunAndReturn added in v2.15.0

type Eth_Get_Call added in v2.15.0

type Eth_Get_Call struct {
	*mock.Call
}

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

func (*Eth_Get_Call) Return added in v2.15.0

func (_c *Eth_Get_Call) Return(_a0 ethkey.KeyV2, _a1 error) *Eth_Get_Call

func (*Eth_Get_Call) Run added in v2.15.0

func (_c *Eth_Get_Call) Run(run func(ctx context.Context, id string)) *Eth_Get_Call

func (*Eth_Get_Call) RunAndReturn added in v2.15.0

func (_c *Eth_Get_Call) RunAndReturn(run func(context.Context, string) (ethkey.KeyV2, error)) *Eth_Get_Call

type Eth_Import_Call added in v2.15.0

type Eth_Import_Call struct {
	*mock.Call
}

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

func (*Eth_Import_Call) Return added in v2.15.0

func (_c *Eth_Import_Call) Return(_a0 ethkey.KeyV2, _a1 error) *Eth_Import_Call

func (*Eth_Import_Call) Run added in v2.15.0

func (_c *Eth_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string, chainIDs ...*big.Int)) *Eth_Import_Call

func (*Eth_Import_Call) RunAndReturn added in v2.15.0

func (_c *Eth_Import_Call) RunAndReturn(run func(context.Context, []byte, string, ...*big.Int) (ethkey.KeyV2, error)) *Eth_Import_Call

type Eth_SignTx_Call added in v2.15.0

type Eth_SignTx_Call struct {
	*mock.Call
}

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

func (*Eth_SignTx_Call) Return added in v2.15.0

func (_c *Eth_SignTx_Call) Return(_a0 *types.Transaction, _a1 error) *Eth_SignTx_Call

func (*Eth_SignTx_Call) Run added in v2.15.0

func (_c *Eth_SignTx_Call) Run(run func(ctx context.Context, fromAddress common.Address, tx *types.Transaction, chainID *big.Int)) *Eth_SignTx_Call

func (*Eth_SignTx_Call) RunAndReturn added in v2.15.0

type Eth_SubscribeToKeyChanges_Call added in v2.15.0

type Eth_SubscribeToKeyChanges_Call struct {
	*mock.Call
}

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

func (*Eth_SubscribeToKeyChanges_Call) Return added in v2.15.0

func (_c *Eth_SubscribeToKeyChanges_Call) Return(ch chan struct{}, unsub func()) *Eth_SubscribeToKeyChanges_Call

func (*Eth_SubscribeToKeyChanges_Call) Run added in v2.15.0

func (*Eth_SubscribeToKeyChanges_Call) RunAndReturn added in v2.15.0

func (_c *Eth_SubscribeToKeyChanges_Call) RunAndReturn(run func(context.Context) (chan struct{}, func())) *Eth_SubscribeToKeyChanges_Call

type Eth_XXXTestingOnlyAdd_Call added in v2.15.0

type Eth_XXXTestingOnlyAdd_Call struct {
	*mock.Call
}

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

func (*Eth_XXXTestingOnlyAdd_Call) Return added in v2.15.0

func (*Eth_XXXTestingOnlyAdd_Call) Run added in v2.15.0

func (*Eth_XXXTestingOnlyAdd_Call) RunAndReturn added in v2.15.0

type Eth_XXXTestingOnlySetState_Call added in v2.15.0

type Eth_XXXTestingOnlySetState_Call struct {
	*mock.Call
}

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

func (*Eth_XXXTestingOnlySetState_Call) Return added in v2.15.0

func (*Eth_XXXTestingOnlySetState_Call) Run added in v2.15.0

func (*Eth_XXXTestingOnlySetState_Call) RunAndReturn added in v2.15.0

type Master

type Master struct {
	mock.Mock
}

Master is an autogenerated mock type for the Master type

func NewMaster

func NewMaster(t interface {
	mock.TestingT
	Cleanup(func())
}) *Master

NewMaster creates a new instance of Master. 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 (*Master) Aptos added in v2.14.0

func (_m *Master) Aptos() keystore.Aptos

Aptos provides a mock function with given fields:

func (*Master) CSA

func (_m *Master) CSA() keystore.CSA

CSA provides a mock function with given fields:

func (*Master) Cosmos

func (_m *Master) Cosmos() keystore.Cosmos

Cosmos provides a mock function with given fields:

func (*Master) EXPECT added in v2.15.0

func (_m *Master) EXPECT() *Master_Expecter

func (*Master) Eth

func (_m *Master) Eth() keystore.Eth

Eth provides a mock function with given fields:

func (*Master) IsEmpty

func (_m *Master) IsEmpty(ctx context.Context) (bool, error)

IsEmpty provides a mock function with given fields: ctx

func (*Master) OCR

func (_m *Master) OCR() keystore.OCR

OCR provides a mock function with given fields:

func (*Master) OCR2

func (_m *Master) OCR2() keystore.OCR2

OCR2 provides a mock function with given fields:

func (*Master) P2P

func (_m *Master) P2P() keystore.P2P

P2P provides a mock function with given fields:

func (*Master) Solana

func (_m *Master) Solana() keystore.Solana

Solana provides a mock function with given fields:

func (*Master) StarkNet

func (_m *Master) StarkNet() keystore.StarkNet

StarkNet provides a mock function with given fields:

func (*Master) Unlock

func (_m *Master) Unlock(ctx context.Context, password string) error

Unlock provides a mock function with given fields: ctx, password

func (*Master) VRF

func (_m *Master) VRF() keystore.VRF

VRF provides a mock function with given fields:

type Master_Aptos_Call added in v2.15.0

type Master_Aptos_Call struct {
	*mock.Call
}

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

func (*Master_Aptos_Call) Return added in v2.15.0

func (*Master_Aptos_Call) Run added in v2.15.0

func (_c *Master_Aptos_Call) Run(run func()) *Master_Aptos_Call

func (*Master_Aptos_Call) RunAndReturn added in v2.15.0

func (_c *Master_Aptos_Call) RunAndReturn(run func() keystore.Aptos) *Master_Aptos_Call

type Master_CSA_Call added in v2.15.0

type Master_CSA_Call struct {
	*mock.Call
}

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

func (*Master_CSA_Call) Return added in v2.15.0

func (_c *Master_CSA_Call) Return(_a0 keystore.CSA) *Master_CSA_Call

func (*Master_CSA_Call) Run added in v2.15.0

func (_c *Master_CSA_Call) Run(run func()) *Master_CSA_Call

func (*Master_CSA_Call) RunAndReturn added in v2.15.0

func (_c *Master_CSA_Call) RunAndReturn(run func() keystore.CSA) *Master_CSA_Call

type Master_Cosmos_Call added in v2.15.0

type Master_Cosmos_Call struct {
	*mock.Call
}

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

func (*Master_Cosmos_Call) Return added in v2.15.0

func (*Master_Cosmos_Call) Run added in v2.15.0

func (_c *Master_Cosmos_Call) Run(run func()) *Master_Cosmos_Call

func (*Master_Cosmos_Call) RunAndReturn added in v2.15.0

func (_c *Master_Cosmos_Call) RunAndReturn(run func() keystore.Cosmos) *Master_Cosmos_Call

type Master_Eth_Call added in v2.15.0

type Master_Eth_Call struct {
	*mock.Call
}

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

func (*Master_Eth_Call) Return added in v2.15.0

func (_c *Master_Eth_Call) Return(_a0 keystore.Eth) *Master_Eth_Call

func (*Master_Eth_Call) Run added in v2.15.0

func (_c *Master_Eth_Call) Run(run func()) *Master_Eth_Call

func (*Master_Eth_Call) RunAndReturn added in v2.15.0

func (_c *Master_Eth_Call) RunAndReturn(run func() keystore.Eth) *Master_Eth_Call

type Master_Expecter added in v2.15.0

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

func (*Master_Expecter) Aptos added in v2.15.0

func (_e *Master_Expecter) Aptos() *Master_Aptos_Call

Aptos is a helper method to define mock.On call

func (*Master_Expecter) CSA added in v2.15.0

func (_e *Master_Expecter) CSA() *Master_CSA_Call

CSA is a helper method to define mock.On call

func (*Master_Expecter) Cosmos added in v2.15.0

func (_e *Master_Expecter) Cosmos() *Master_Cosmos_Call

Cosmos is a helper method to define mock.On call

func (*Master_Expecter) Eth added in v2.15.0

func (_e *Master_Expecter) Eth() *Master_Eth_Call

Eth is a helper method to define mock.On call

func (*Master_Expecter) IsEmpty added in v2.15.0

func (_e *Master_Expecter) IsEmpty(ctx interface{}) *Master_IsEmpty_Call

IsEmpty is a helper method to define mock.On call

  • ctx context.Context

func (*Master_Expecter) OCR added in v2.15.0

func (_e *Master_Expecter) OCR() *Master_OCR_Call

OCR is a helper method to define mock.On call

func (*Master_Expecter) OCR2 added in v2.15.0

func (_e *Master_Expecter) OCR2() *Master_OCR2_Call

OCR2 is a helper method to define mock.On call

func (*Master_Expecter) P2P added in v2.15.0

func (_e *Master_Expecter) P2P() *Master_P2P_Call

P2P is a helper method to define mock.On call

func (*Master_Expecter) Solana added in v2.15.0

func (_e *Master_Expecter) Solana() *Master_Solana_Call

Solana is a helper method to define mock.On call

func (*Master_Expecter) StarkNet added in v2.15.0

func (_e *Master_Expecter) StarkNet() *Master_StarkNet_Call

StarkNet is a helper method to define mock.On call

func (*Master_Expecter) Unlock added in v2.15.0

func (_e *Master_Expecter) Unlock(ctx interface{}, password interface{}) *Master_Unlock_Call

Unlock is a helper method to define mock.On call

  • ctx context.Context
  • password string

func (*Master_Expecter) VRF added in v2.15.0

func (_e *Master_Expecter) VRF() *Master_VRF_Call

VRF is a helper method to define mock.On call

type Master_IsEmpty_Call added in v2.15.0

type Master_IsEmpty_Call struct {
	*mock.Call
}

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

func (*Master_IsEmpty_Call) Return added in v2.15.0

func (_c *Master_IsEmpty_Call) Return(_a0 bool, _a1 error) *Master_IsEmpty_Call

func (*Master_IsEmpty_Call) Run added in v2.15.0

func (_c *Master_IsEmpty_Call) Run(run func(ctx context.Context)) *Master_IsEmpty_Call

func (*Master_IsEmpty_Call) RunAndReturn added in v2.15.0

func (_c *Master_IsEmpty_Call) RunAndReturn(run func(context.Context) (bool, error)) *Master_IsEmpty_Call

type Master_OCR2_Call added in v2.15.0

type Master_OCR2_Call struct {
	*mock.Call
}

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

func (*Master_OCR2_Call) Return added in v2.15.0

func (*Master_OCR2_Call) Run added in v2.15.0

func (_c *Master_OCR2_Call) Run(run func()) *Master_OCR2_Call

func (*Master_OCR2_Call) RunAndReturn added in v2.15.0

func (_c *Master_OCR2_Call) RunAndReturn(run func() keystore.OCR2) *Master_OCR2_Call

type Master_OCR_Call added in v2.15.0

type Master_OCR_Call struct {
	*mock.Call
}

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

func (*Master_OCR_Call) Return added in v2.15.0

func (_c *Master_OCR_Call) Return(_a0 keystore.OCR) *Master_OCR_Call

func (*Master_OCR_Call) Run added in v2.15.0

func (_c *Master_OCR_Call) Run(run func()) *Master_OCR_Call

func (*Master_OCR_Call) RunAndReturn added in v2.15.0

func (_c *Master_OCR_Call) RunAndReturn(run func() keystore.OCR) *Master_OCR_Call

type Master_P2P_Call added in v2.15.0

type Master_P2P_Call struct {
	*mock.Call
}

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

func (*Master_P2P_Call) Return added in v2.15.0

func (_c *Master_P2P_Call) Return(_a0 keystore.P2P) *Master_P2P_Call

func (*Master_P2P_Call) Run added in v2.15.0

func (_c *Master_P2P_Call) Run(run func()) *Master_P2P_Call

func (*Master_P2P_Call) RunAndReturn added in v2.15.0

func (_c *Master_P2P_Call) RunAndReturn(run func() keystore.P2P) *Master_P2P_Call

type Master_Solana_Call added in v2.15.0

type Master_Solana_Call struct {
	*mock.Call
}

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

func (*Master_Solana_Call) Return added in v2.15.0

func (*Master_Solana_Call) Run added in v2.15.0

func (_c *Master_Solana_Call) Run(run func()) *Master_Solana_Call

func (*Master_Solana_Call) RunAndReturn added in v2.15.0

func (_c *Master_Solana_Call) RunAndReturn(run func() keystore.Solana) *Master_Solana_Call

type Master_StarkNet_Call added in v2.15.0

type Master_StarkNet_Call struct {
	*mock.Call
}

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

func (*Master_StarkNet_Call) Return added in v2.15.0

func (*Master_StarkNet_Call) Run added in v2.15.0

func (_c *Master_StarkNet_Call) Run(run func()) *Master_StarkNet_Call

func (*Master_StarkNet_Call) RunAndReturn added in v2.15.0

func (_c *Master_StarkNet_Call) RunAndReturn(run func() keystore.StarkNet) *Master_StarkNet_Call

type Master_Unlock_Call added in v2.15.0

type Master_Unlock_Call struct {
	*mock.Call
}

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

func (*Master_Unlock_Call) Return added in v2.15.0

func (_c *Master_Unlock_Call) Return(_a0 error) *Master_Unlock_Call

func (*Master_Unlock_Call) Run added in v2.15.0

func (_c *Master_Unlock_Call) Run(run func(ctx context.Context, password string)) *Master_Unlock_Call

func (*Master_Unlock_Call) RunAndReturn added in v2.15.0

func (_c *Master_Unlock_Call) RunAndReturn(run func(context.Context, string) error) *Master_Unlock_Call

type Master_VRF_Call added in v2.15.0

type Master_VRF_Call struct {
	*mock.Call
}

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

func (*Master_VRF_Call) Return added in v2.15.0

func (_c *Master_VRF_Call) Return(_a0 keystore.VRF) *Master_VRF_Call

func (*Master_VRF_Call) Run added in v2.15.0

func (_c *Master_VRF_Call) Run(run func()) *Master_VRF_Call

func (*Master_VRF_Call) RunAndReturn added in v2.15.0

func (_c *Master_VRF_Call) RunAndReturn(run func() keystore.VRF) *Master_VRF_Call

type OCR

type OCR struct {
	mock.Mock
}

OCR is an autogenerated mock type for the OCR type

func NewOCR

func NewOCR(t interface {
	mock.TestingT
	Cleanup(func())
}) *OCR

NewOCR creates a new instance of OCR. 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 (*OCR) Add

func (_m *OCR) Add(ctx context.Context, key ocrkey.KeyV2) error

Add provides a mock function with given fields: ctx, key

func (*OCR) Create

func (_m *OCR) Create(ctx context.Context) (ocrkey.KeyV2, error)

Create provides a mock function with given fields: ctx

func (*OCR) Delete

func (_m *OCR) Delete(ctx context.Context, id string) (ocrkey.KeyV2, error)

Delete provides a mock function with given fields: ctx, id

func (*OCR) EXPECT added in v2.15.0

func (_m *OCR) EXPECT() *OCR_Expecter

func (*OCR) EnsureKey

func (_m *OCR) EnsureKey(ctx context.Context) error

EnsureKey provides a mock function with given fields: ctx

func (*OCR) Export

func (_m *OCR) Export(id string, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*OCR) Get

func (_m *OCR) Get(id string) (ocrkey.KeyV2, error)

Get provides a mock function with given fields: id

func (*OCR) GetAll

func (_m *OCR) GetAll() ([]ocrkey.KeyV2, error)

GetAll provides a mock function with given fields:

func (*OCR) Import

func (_m *OCR) Import(ctx context.Context, keyJSON []byte, password string) (ocrkey.KeyV2, error)

Import provides a mock function with given fields: ctx, keyJSON, password

type OCR2

type OCR2 struct {
	mock.Mock
}

OCR2 is an autogenerated mock type for the OCR2 type

func NewOCR2

func NewOCR2(t interface {
	mock.TestingT
	Cleanup(func())
}) *OCR2

NewOCR2 creates a new instance of OCR2. 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 (*OCR2) Add

func (_m *OCR2) Add(ctx context.Context, key ocr2key.KeyBundle) error

Add provides a mock function with given fields: ctx, key

func (*OCR2) Create

func (_m *OCR2) Create(_a0 context.Context, _a1 chaintype.ChainType) (ocr2key.KeyBundle, error)

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

func (*OCR2) Delete

func (_m *OCR2) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*OCR2) EXPECT added in v2.15.0

func (_m *OCR2) EXPECT() *OCR2_Expecter

func (*OCR2) EnsureKeys

func (_m *OCR2) EnsureKeys(ctx context.Context, enabledChains ...chaintype.ChainType) error

EnsureKeys provides a mock function with given fields: ctx, enabledChains

func (*OCR2) Export

func (_m *OCR2) Export(id string, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*OCR2) Get

func (_m *OCR2) Get(id string) (ocr2key.KeyBundle, error)

Get provides a mock function with given fields: id

func (*OCR2) GetAll

func (_m *OCR2) GetAll() ([]ocr2key.KeyBundle, error)

GetAll provides a mock function with given fields:

func (*OCR2) GetAllOfType

func (_m *OCR2) GetAllOfType(_a0 chaintype.ChainType) ([]ocr2key.KeyBundle, error)

GetAllOfType provides a mock function with given fields: _a0

func (*OCR2) Import

func (_m *OCR2) Import(ctx context.Context, keyJSON []byte, password string) (ocr2key.KeyBundle, error)

Import provides a mock function with given fields: ctx, keyJSON, password

type OCR2_Add_Call added in v2.15.0

type OCR2_Add_Call struct {
	*mock.Call
}

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

func (*OCR2_Add_Call) Return added in v2.15.0

func (_c *OCR2_Add_Call) Return(_a0 error) *OCR2_Add_Call

func (*OCR2_Add_Call) Run added in v2.15.0

func (_c *OCR2_Add_Call) Run(run func(ctx context.Context, key ocr2key.KeyBundle)) *OCR2_Add_Call

func (*OCR2_Add_Call) RunAndReturn added in v2.15.0

func (_c *OCR2_Add_Call) RunAndReturn(run func(context.Context, ocr2key.KeyBundle) error) *OCR2_Add_Call

type OCR2_Create_Call added in v2.15.0

type OCR2_Create_Call struct {
	*mock.Call
}

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

func (*OCR2_Create_Call) Return added in v2.15.0

func (*OCR2_Create_Call) Run added in v2.15.0

func (_c *OCR2_Create_Call) Run(run func(_a0 context.Context, _a1 chaintype.ChainType)) *OCR2_Create_Call

func (*OCR2_Create_Call) RunAndReturn added in v2.15.0

type OCR2_Delete_Call added in v2.15.0

type OCR2_Delete_Call struct {
	*mock.Call
}

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

func (*OCR2_Delete_Call) Return added in v2.15.0

func (_c *OCR2_Delete_Call) Return(_a0 error) *OCR2_Delete_Call

func (*OCR2_Delete_Call) Run added in v2.15.0

func (_c *OCR2_Delete_Call) Run(run func(ctx context.Context, id string)) *OCR2_Delete_Call

func (*OCR2_Delete_Call) RunAndReturn added in v2.15.0

func (_c *OCR2_Delete_Call) RunAndReturn(run func(context.Context, string) error) *OCR2_Delete_Call

type OCR2_EnsureKeys_Call added in v2.15.0

type OCR2_EnsureKeys_Call struct {
	*mock.Call
}

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

func (*OCR2_EnsureKeys_Call) Return added in v2.15.0

func (*OCR2_EnsureKeys_Call) Run added in v2.15.0

func (_c *OCR2_EnsureKeys_Call) Run(run func(ctx context.Context, enabledChains ...chaintype.ChainType)) *OCR2_EnsureKeys_Call

func (*OCR2_EnsureKeys_Call) RunAndReturn added in v2.15.0

type OCR2_Expecter added in v2.15.0

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

func (*OCR2_Expecter) Add added in v2.15.0

func (_e *OCR2_Expecter) Add(ctx interface{}, key interface{}) *OCR2_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key ocr2key.KeyBundle

func (*OCR2_Expecter) Create added in v2.15.0

func (_e *OCR2_Expecter) Create(_a0 interface{}, _a1 interface{}) *OCR2_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 chaintype.ChainType

func (*OCR2_Expecter) Delete added in v2.15.0

func (_e *OCR2_Expecter) Delete(ctx interface{}, id interface{}) *OCR2_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*OCR2_Expecter) EnsureKeys added in v2.15.0

func (_e *OCR2_Expecter) EnsureKeys(ctx interface{}, enabledChains ...interface{}) *OCR2_EnsureKeys_Call

EnsureKeys is a helper method to define mock.On call

  • ctx context.Context
  • enabledChains ...chaintype.ChainType

func (*OCR2_Expecter) Export added in v2.15.0

func (_e *OCR2_Expecter) Export(id interface{}, password interface{}) *OCR2_Export_Call

Export is a helper method to define mock.On call

  • id string
  • password string

func (*OCR2_Expecter) Get added in v2.15.0

func (_e *OCR2_Expecter) Get(id interface{}) *OCR2_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*OCR2_Expecter) GetAll added in v2.15.0

func (_e *OCR2_Expecter) GetAll() *OCR2_GetAll_Call

GetAll is a helper method to define mock.On call

func (*OCR2_Expecter) GetAllOfType added in v2.15.0

func (_e *OCR2_Expecter) GetAllOfType(_a0 interface{}) *OCR2_GetAllOfType_Call

GetAllOfType is a helper method to define mock.On call

  • _a0 chaintype.ChainType

func (*OCR2_Expecter) Import added in v2.15.0

func (_e *OCR2_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *OCR2_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

type OCR2_Export_Call added in v2.15.0

type OCR2_Export_Call struct {
	*mock.Call
}

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

func (*OCR2_Export_Call) Return added in v2.15.0

func (_c *OCR2_Export_Call) Return(_a0 []byte, _a1 error) *OCR2_Export_Call

func (*OCR2_Export_Call) Run added in v2.15.0

func (_c *OCR2_Export_Call) Run(run func(id string, password string)) *OCR2_Export_Call

func (*OCR2_Export_Call) RunAndReturn added in v2.15.0

func (_c *OCR2_Export_Call) RunAndReturn(run func(string, string) ([]byte, error)) *OCR2_Export_Call

type OCR2_GetAllOfType_Call added in v2.15.0

type OCR2_GetAllOfType_Call struct {
	*mock.Call
}

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

func (*OCR2_GetAllOfType_Call) Return added in v2.15.0

func (*OCR2_GetAllOfType_Call) Run added in v2.15.0

func (*OCR2_GetAllOfType_Call) RunAndReturn added in v2.15.0

type OCR2_GetAll_Call added in v2.15.0

type OCR2_GetAll_Call struct {
	*mock.Call
}

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

func (*OCR2_GetAll_Call) Return added in v2.15.0

func (_c *OCR2_GetAll_Call) Return(_a0 []ocr2key.KeyBundle, _a1 error) *OCR2_GetAll_Call

func (*OCR2_GetAll_Call) Run added in v2.15.0

func (_c *OCR2_GetAll_Call) Run(run func()) *OCR2_GetAll_Call

func (*OCR2_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *OCR2_GetAll_Call) RunAndReturn(run func() ([]ocr2key.KeyBundle, error)) *OCR2_GetAll_Call

type OCR2_Get_Call added in v2.15.0

type OCR2_Get_Call struct {
	*mock.Call
}

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

func (*OCR2_Get_Call) Return added in v2.15.0

func (_c *OCR2_Get_Call) Return(_a0 ocr2key.KeyBundle, _a1 error) *OCR2_Get_Call

func (*OCR2_Get_Call) Run added in v2.15.0

func (_c *OCR2_Get_Call) Run(run func(id string)) *OCR2_Get_Call

func (*OCR2_Get_Call) RunAndReturn added in v2.15.0

func (_c *OCR2_Get_Call) RunAndReturn(run func(string) (ocr2key.KeyBundle, error)) *OCR2_Get_Call

type OCR2_Import_Call added in v2.15.0

type OCR2_Import_Call struct {
	*mock.Call
}

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

func (*OCR2_Import_Call) Return added in v2.15.0

func (*OCR2_Import_Call) Run added in v2.15.0

func (_c *OCR2_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *OCR2_Import_Call

func (*OCR2_Import_Call) RunAndReturn added in v2.15.0

func (_c *OCR2_Import_Call) RunAndReturn(run func(context.Context, []byte, string) (ocr2key.KeyBundle, error)) *OCR2_Import_Call

type OCR_Add_Call added in v2.15.0

type OCR_Add_Call struct {
	*mock.Call
}

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

func (*OCR_Add_Call) Return added in v2.15.0

func (_c *OCR_Add_Call) Return(_a0 error) *OCR_Add_Call

func (*OCR_Add_Call) Run added in v2.15.0

func (_c *OCR_Add_Call) Run(run func(ctx context.Context, key ocrkey.KeyV2)) *OCR_Add_Call

func (*OCR_Add_Call) RunAndReturn added in v2.15.0

func (_c *OCR_Add_Call) RunAndReturn(run func(context.Context, ocrkey.KeyV2) error) *OCR_Add_Call

type OCR_Create_Call added in v2.15.0

type OCR_Create_Call struct {
	*mock.Call
}

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

func (*OCR_Create_Call) Return added in v2.15.0

func (_c *OCR_Create_Call) Return(_a0 ocrkey.KeyV2, _a1 error) *OCR_Create_Call

func (*OCR_Create_Call) Run added in v2.15.0

func (_c *OCR_Create_Call) Run(run func(ctx context.Context)) *OCR_Create_Call

func (*OCR_Create_Call) RunAndReturn added in v2.15.0

func (_c *OCR_Create_Call) RunAndReturn(run func(context.Context) (ocrkey.KeyV2, error)) *OCR_Create_Call

type OCR_Delete_Call added in v2.15.0

type OCR_Delete_Call struct {
	*mock.Call
}

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

func (*OCR_Delete_Call) Return added in v2.15.0

func (_c *OCR_Delete_Call) Return(_a0 ocrkey.KeyV2, _a1 error) *OCR_Delete_Call

func (*OCR_Delete_Call) Run added in v2.15.0

func (_c *OCR_Delete_Call) Run(run func(ctx context.Context, id string)) *OCR_Delete_Call

func (*OCR_Delete_Call) RunAndReturn added in v2.15.0

func (_c *OCR_Delete_Call) RunAndReturn(run func(context.Context, string) (ocrkey.KeyV2, error)) *OCR_Delete_Call

type OCR_EnsureKey_Call added in v2.15.0

type OCR_EnsureKey_Call struct {
	*mock.Call
}

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

func (*OCR_EnsureKey_Call) Return added in v2.15.0

func (_c *OCR_EnsureKey_Call) Return(_a0 error) *OCR_EnsureKey_Call

func (*OCR_EnsureKey_Call) Run added in v2.15.0

func (_c *OCR_EnsureKey_Call) Run(run func(ctx context.Context)) *OCR_EnsureKey_Call

func (*OCR_EnsureKey_Call) RunAndReturn added in v2.15.0

func (_c *OCR_EnsureKey_Call) RunAndReturn(run func(context.Context) error) *OCR_EnsureKey_Call

type OCR_Expecter added in v2.15.0

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

func (*OCR_Expecter) Add added in v2.15.0

func (_e *OCR_Expecter) Add(ctx interface{}, key interface{}) *OCR_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key ocrkey.KeyV2

func (*OCR_Expecter) Create added in v2.15.0

func (_e *OCR_Expecter) Create(ctx interface{}) *OCR_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context

func (*OCR_Expecter) Delete added in v2.15.0

func (_e *OCR_Expecter) Delete(ctx interface{}, id interface{}) *OCR_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*OCR_Expecter) EnsureKey added in v2.15.0

func (_e *OCR_Expecter) EnsureKey(ctx interface{}) *OCR_EnsureKey_Call

EnsureKey is a helper method to define mock.On call

  • ctx context.Context

func (*OCR_Expecter) Export added in v2.15.0

func (_e *OCR_Expecter) Export(id interface{}, password interface{}) *OCR_Export_Call

Export is a helper method to define mock.On call

  • id string
  • password string

func (*OCR_Expecter) Get added in v2.15.0

func (_e *OCR_Expecter) Get(id interface{}) *OCR_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*OCR_Expecter) GetAll added in v2.15.0

func (_e *OCR_Expecter) GetAll() *OCR_GetAll_Call

GetAll is a helper method to define mock.On call

func (*OCR_Expecter) Import added in v2.15.0

func (_e *OCR_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *OCR_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

type OCR_Export_Call added in v2.15.0

type OCR_Export_Call struct {
	*mock.Call
}

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

func (*OCR_Export_Call) Return added in v2.15.0

func (_c *OCR_Export_Call) Return(_a0 []byte, _a1 error) *OCR_Export_Call

func (*OCR_Export_Call) Run added in v2.15.0

func (_c *OCR_Export_Call) Run(run func(id string, password string)) *OCR_Export_Call

func (*OCR_Export_Call) RunAndReturn added in v2.15.0

func (_c *OCR_Export_Call) RunAndReturn(run func(string, string) ([]byte, error)) *OCR_Export_Call

type OCR_GetAll_Call added in v2.15.0

type OCR_GetAll_Call struct {
	*mock.Call
}

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

func (*OCR_GetAll_Call) Return added in v2.15.0

func (_c *OCR_GetAll_Call) Return(_a0 []ocrkey.KeyV2, _a1 error) *OCR_GetAll_Call

func (*OCR_GetAll_Call) Run added in v2.15.0

func (_c *OCR_GetAll_Call) Run(run func()) *OCR_GetAll_Call

func (*OCR_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *OCR_GetAll_Call) RunAndReturn(run func() ([]ocrkey.KeyV2, error)) *OCR_GetAll_Call

type OCR_Get_Call added in v2.15.0

type OCR_Get_Call struct {
	*mock.Call
}

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

func (*OCR_Get_Call) Return added in v2.15.0

func (_c *OCR_Get_Call) Return(_a0 ocrkey.KeyV2, _a1 error) *OCR_Get_Call

func (*OCR_Get_Call) Run added in v2.15.0

func (_c *OCR_Get_Call) Run(run func(id string)) *OCR_Get_Call

func (*OCR_Get_Call) RunAndReturn added in v2.15.0

func (_c *OCR_Get_Call) RunAndReturn(run func(string) (ocrkey.KeyV2, error)) *OCR_Get_Call

type OCR_Import_Call added in v2.15.0

type OCR_Import_Call struct {
	*mock.Call
}

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

func (*OCR_Import_Call) Return added in v2.15.0

func (_c *OCR_Import_Call) Return(_a0 ocrkey.KeyV2, _a1 error) *OCR_Import_Call

func (*OCR_Import_Call) Run added in v2.15.0

func (_c *OCR_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *OCR_Import_Call

func (*OCR_Import_Call) RunAndReturn added in v2.15.0

func (_c *OCR_Import_Call) RunAndReturn(run func(context.Context, []byte, string) (ocrkey.KeyV2, error)) *OCR_Import_Call

type P2P

type P2P struct {
	mock.Mock
}

P2P is an autogenerated mock type for the P2P type

func NewP2P

func NewP2P(t interface {
	mock.TestingT
	Cleanup(func())
}) *P2P

NewP2P creates a new instance of P2P. 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 (*P2P) Add

func (_m *P2P) Add(ctx context.Context, key p2pkey.KeyV2) error

Add provides a mock function with given fields: ctx, key

func (*P2P) Create

func (_m *P2P) Create(ctx context.Context) (p2pkey.KeyV2, error)

Create provides a mock function with given fields: ctx

func (*P2P) Delete

func (_m *P2P) Delete(ctx context.Context, id p2pkey.PeerID) (p2pkey.KeyV2, error)

Delete provides a mock function with given fields: ctx, id

func (*P2P) EXPECT added in v2.15.0

func (_m *P2P) EXPECT() *P2P_Expecter

func (*P2P) EnsureKey

func (_m *P2P) EnsureKey(ctx context.Context) error

EnsureKey provides a mock function with given fields: ctx

func (*P2P) Export

func (_m *P2P) Export(id p2pkey.PeerID, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*P2P) Get

func (_m *P2P) Get(id p2pkey.PeerID) (p2pkey.KeyV2, error)

Get provides a mock function with given fields: id

func (*P2P) GetAll

func (_m *P2P) GetAll() ([]p2pkey.KeyV2, error)

GetAll provides a mock function with given fields:

func (*P2P) GetOrFirst

func (_m *P2P) GetOrFirst(id p2pkey.PeerID) (p2pkey.KeyV2, error)

GetOrFirst provides a mock function with given fields: id

func (*P2P) Import

func (_m *P2P) Import(ctx context.Context, keyJSON []byte, password string) (p2pkey.KeyV2, error)

Import provides a mock function with given fields: ctx, keyJSON, password

type P2P_Add_Call added in v2.15.0

type P2P_Add_Call struct {
	*mock.Call
}

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

func (*P2P_Add_Call) Return added in v2.15.0

func (_c *P2P_Add_Call) Return(_a0 error) *P2P_Add_Call

func (*P2P_Add_Call) Run added in v2.15.0

func (_c *P2P_Add_Call) Run(run func(ctx context.Context, key p2pkey.KeyV2)) *P2P_Add_Call

func (*P2P_Add_Call) RunAndReturn added in v2.15.0

func (_c *P2P_Add_Call) RunAndReturn(run func(context.Context, p2pkey.KeyV2) error) *P2P_Add_Call

type P2P_Create_Call added in v2.15.0

type P2P_Create_Call struct {
	*mock.Call
}

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

func (*P2P_Create_Call) Return added in v2.15.0

func (_c *P2P_Create_Call) Return(_a0 p2pkey.KeyV2, _a1 error) *P2P_Create_Call

func (*P2P_Create_Call) Run added in v2.15.0

func (_c *P2P_Create_Call) Run(run func(ctx context.Context)) *P2P_Create_Call

func (*P2P_Create_Call) RunAndReturn added in v2.15.0

func (_c *P2P_Create_Call) RunAndReturn(run func(context.Context) (p2pkey.KeyV2, error)) *P2P_Create_Call

type P2P_Delete_Call added in v2.15.0

type P2P_Delete_Call struct {
	*mock.Call
}

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

func (*P2P_Delete_Call) Return added in v2.15.0

func (_c *P2P_Delete_Call) Return(_a0 p2pkey.KeyV2, _a1 error) *P2P_Delete_Call

func (*P2P_Delete_Call) Run added in v2.15.0

func (_c *P2P_Delete_Call) Run(run func(ctx context.Context, id p2pkey.PeerID)) *P2P_Delete_Call

func (*P2P_Delete_Call) RunAndReturn added in v2.15.0

func (_c *P2P_Delete_Call) RunAndReturn(run func(context.Context, p2pkey.PeerID) (p2pkey.KeyV2, error)) *P2P_Delete_Call

type P2P_EnsureKey_Call added in v2.15.0

type P2P_EnsureKey_Call struct {
	*mock.Call
}

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

func (*P2P_EnsureKey_Call) Return added in v2.15.0

func (_c *P2P_EnsureKey_Call) Return(_a0 error) *P2P_EnsureKey_Call

func (*P2P_EnsureKey_Call) Run added in v2.15.0

func (_c *P2P_EnsureKey_Call) Run(run func(ctx context.Context)) *P2P_EnsureKey_Call

func (*P2P_EnsureKey_Call) RunAndReturn added in v2.15.0

func (_c *P2P_EnsureKey_Call) RunAndReturn(run func(context.Context) error) *P2P_EnsureKey_Call

type P2P_Expecter added in v2.15.0

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

func (*P2P_Expecter) Add added in v2.15.0

func (_e *P2P_Expecter) Add(ctx interface{}, key interface{}) *P2P_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key p2pkey.KeyV2

func (*P2P_Expecter) Create added in v2.15.0

func (_e *P2P_Expecter) Create(ctx interface{}) *P2P_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context

func (*P2P_Expecter) Delete added in v2.15.0

func (_e *P2P_Expecter) Delete(ctx interface{}, id interface{}) *P2P_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id p2pkey.PeerID

func (*P2P_Expecter) EnsureKey added in v2.15.0

func (_e *P2P_Expecter) EnsureKey(ctx interface{}) *P2P_EnsureKey_Call

EnsureKey is a helper method to define mock.On call

  • ctx context.Context

func (*P2P_Expecter) Export added in v2.15.0

func (_e *P2P_Expecter) Export(id interface{}, password interface{}) *P2P_Export_Call

Export is a helper method to define mock.On call

  • id p2pkey.PeerID
  • password string

func (*P2P_Expecter) Get added in v2.15.0

func (_e *P2P_Expecter) Get(id interface{}) *P2P_Get_Call

Get is a helper method to define mock.On call

  • id p2pkey.PeerID

func (*P2P_Expecter) GetAll added in v2.15.0

func (_e *P2P_Expecter) GetAll() *P2P_GetAll_Call

GetAll is a helper method to define mock.On call

func (*P2P_Expecter) GetOrFirst added in v2.15.0

func (_e *P2P_Expecter) GetOrFirst(id interface{}) *P2P_GetOrFirst_Call

GetOrFirst is a helper method to define mock.On call

  • id p2pkey.PeerID

func (*P2P_Expecter) Import added in v2.15.0

func (_e *P2P_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *P2P_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

type P2P_Export_Call added in v2.15.0

type P2P_Export_Call struct {
	*mock.Call
}

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

func (*P2P_Export_Call) Return added in v2.15.0

func (_c *P2P_Export_Call) Return(_a0 []byte, _a1 error) *P2P_Export_Call

func (*P2P_Export_Call) Run added in v2.15.0

func (_c *P2P_Export_Call) Run(run func(id p2pkey.PeerID, password string)) *P2P_Export_Call

func (*P2P_Export_Call) RunAndReturn added in v2.15.0

func (_c *P2P_Export_Call) RunAndReturn(run func(p2pkey.PeerID, string) ([]byte, error)) *P2P_Export_Call

type P2P_GetAll_Call added in v2.15.0

type P2P_GetAll_Call struct {
	*mock.Call
}

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

func (*P2P_GetAll_Call) Return added in v2.15.0

func (_c *P2P_GetAll_Call) Return(_a0 []p2pkey.KeyV2, _a1 error) *P2P_GetAll_Call

func (*P2P_GetAll_Call) Run added in v2.15.0

func (_c *P2P_GetAll_Call) Run(run func()) *P2P_GetAll_Call

func (*P2P_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *P2P_GetAll_Call) RunAndReturn(run func() ([]p2pkey.KeyV2, error)) *P2P_GetAll_Call

type P2P_GetOrFirst_Call added in v2.15.0

type P2P_GetOrFirst_Call struct {
	*mock.Call
}

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

func (*P2P_GetOrFirst_Call) Return added in v2.15.0

func (*P2P_GetOrFirst_Call) Run added in v2.15.0

func (_c *P2P_GetOrFirst_Call) Run(run func(id p2pkey.PeerID)) *P2P_GetOrFirst_Call

func (*P2P_GetOrFirst_Call) RunAndReturn added in v2.15.0

func (_c *P2P_GetOrFirst_Call) RunAndReturn(run func(p2pkey.PeerID) (p2pkey.KeyV2, error)) *P2P_GetOrFirst_Call

type P2P_Get_Call added in v2.15.0

type P2P_Get_Call struct {
	*mock.Call
}

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

func (*P2P_Get_Call) Return added in v2.15.0

func (_c *P2P_Get_Call) Return(_a0 p2pkey.KeyV2, _a1 error) *P2P_Get_Call

func (*P2P_Get_Call) Run added in v2.15.0

func (_c *P2P_Get_Call) Run(run func(id p2pkey.PeerID)) *P2P_Get_Call

func (*P2P_Get_Call) RunAndReturn added in v2.15.0

func (_c *P2P_Get_Call) RunAndReturn(run func(p2pkey.PeerID) (p2pkey.KeyV2, error)) *P2P_Get_Call

type P2P_Import_Call added in v2.15.0

type P2P_Import_Call struct {
	*mock.Call
}

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

func (*P2P_Import_Call) Return added in v2.15.0

func (_c *P2P_Import_Call) Return(_a0 p2pkey.KeyV2, _a1 error) *P2P_Import_Call

func (*P2P_Import_Call) Run added in v2.15.0

func (_c *P2P_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *P2P_Import_Call

func (*P2P_Import_Call) RunAndReturn added in v2.15.0

func (_c *P2P_Import_Call) RunAndReturn(run func(context.Context, []byte, string) (p2pkey.KeyV2, error)) *P2P_Import_Call

type Solana

type Solana struct {
	mock.Mock
}

Solana is an autogenerated mock type for the Solana type

func NewSolana

func NewSolana(t interface {
	mock.TestingT
	Cleanup(func())
}) *Solana

NewSolana creates a new instance of Solana. 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 (*Solana) Add

func (_m *Solana) Add(ctx context.Context, key solkey.Key) error

Add provides a mock function with given fields: ctx, key

func (*Solana) Create

func (_m *Solana) Create(ctx context.Context) (solkey.Key, error)

Create provides a mock function with given fields: ctx

func (*Solana) Delete

func (_m *Solana) Delete(ctx context.Context, id string) (solkey.Key, error)

Delete provides a mock function with given fields: ctx, id

func (*Solana) EXPECT added in v2.15.0

func (_m *Solana) EXPECT() *Solana_Expecter

func (*Solana) EnsureKey

func (_m *Solana) EnsureKey(ctx context.Context) error

EnsureKey provides a mock function with given fields: ctx

func (*Solana) Export

func (_m *Solana) Export(id string, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*Solana) Get

func (_m *Solana) Get(id string) (solkey.Key, error)

Get provides a mock function with given fields: id

func (*Solana) GetAll

func (_m *Solana) GetAll() ([]solkey.Key, error)

GetAll provides a mock function with given fields:

func (*Solana) Import

func (_m *Solana) Import(ctx context.Context, keyJSON []byte, password string) (solkey.Key, error)

Import provides a mock function with given fields: ctx, keyJSON, password

func (*Solana) Sign

func (_m *Solana) Sign(ctx context.Context, id string, msg []byte) ([]byte, error)

Sign provides a mock function with given fields: ctx, id, msg

type Solana_Add_Call added in v2.15.0

type Solana_Add_Call struct {
	*mock.Call
}

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

func (*Solana_Add_Call) Return added in v2.15.0

func (_c *Solana_Add_Call) Return(_a0 error) *Solana_Add_Call

func (*Solana_Add_Call) Run added in v2.15.0

func (_c *Solana_Add_Call) Run(run func(ctx context.Context, key solkey.Key)) *Solana_Add_Call

func (*Solana_Add_Call) RunAndReturn added in v2.15.0

func (_c *Solana_Add_Call) RunAndReturn(run func(context.Context, solkey.Key) error) *Solana_Add_Call

type Solana_Create_Call added in v2.15.0

type Solana_Create_Call struct {
	*mock.Call
}

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

func (*Solana_Create_Call) Return added in v2.15.0

func (_c *Solana_Create_Call) Return(_a0 solkey.Key, _a1 error) *Solana_Create_Call

func (*Solana_Create_Call) Run added in v2.15.0

func (_c *Solana_Create_Call) Run(run func(ctx context.Context)) *Solana_Create_Call

func (*Solana_Create_Call) RunAndReturn added in v2.15.0

func (_c *Solana_Create_Call) RunAndReturn(run func(context.Context) (solkey.Key, error)) *Solana_Create_Call

type Solana_Delete_Call added in v2.15.0

type Solana_Delete_Call struct {
	*mock.Call
}

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

func (*Solana_Delete_Call) Return added in v2.15.0

func (_c *Solana_Delete_Call) Return(_a0 solkey.Key, _a1 error) *Solana_Delete_Call

func (*Solana_Delete_Call) Run added in v2.15.0

func (_c *Solana_Delete_Call) Run(run func(ctx context.Context, id string)) *Solana_Delete_Call

func (*Solana_Delete_Call) RunAndReturn added in v2.15.0

func (_c *Solana_Delete_Call) RunAndReturn(run func(context.Context, string) (solkey.Key, error)) *Solana_Delete_Call

type Solana_EnsureKey_Call added in v2.15.0

type Solana_EnsureKey_Call struct {
	*mock.Call
}

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

func (*Solana_EnsureKey_Call) Return added in v2.15.0

func (*Solana_EnsureKey_Call) Run added in v2.15.0

func (*Solana_EnsureKey_Call) RunAndReturn added in v2.15.0

func (_c *Solana_EnsureKey_Call) RunAndReturn(run func(context.Context) error) *Solana_EnsureKey_Call

type Solana_Expecter added in v2.15.0

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

func (*Solana_Expecter) Add added in v2.15.0

func (_e *Solana_Expecter) Add(ctx interface{}, key interface{}) *Solana_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key solkey.Key

func (*Solana_Expecter) Create added in v2.15.0

func (_e *Solana_Expecter) Create(ctx interface{}) *Solana_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context

func (*Solana_Expecter) Delete added in v2.15.0

func (_e *Solana_Expecter) Delete(ctx interface{}, id interface{}) *Solana_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Solana_Expecter) EnsureKey added in v2.15.0

func (_e *Solana_Expecter) EnsureKey(ctx interface{}) *Solana_EnsureKey_Call

EnsureKey is a helper method to define mock.On call

  • ctx context.Context

func (*Solana_Expecter) Export added in v2.15.0

func (_e *Solana_Expecter) Export(id interface{}, password interface{}) *Solana_Export_Call

Export is a helper method to define mock.On call

  • id string
  • password string

func (*Solana_Expecter) Get added in v2.15.0

func (_e *Solana_Expecter) Get(id interface{}) *Solana_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*Solana_Expecter) GetAll added in v2.15.0

func (_e *Solana_Expecter) GetAll() *Solana_GetAll_Call

GetAll is a helper method to define mock.On call

func (*Solana_Expecter) Import added in v2.15.0

func (_e *Solana_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *Solana_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

func (*Solana_Expecter) Sign added in v2.15.0

func (_e *Solana_Expecter) Sign(ctx interface{}, id interface{}, msg interface{}) *Solana_Sign_Call

Sign is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • msg []byte

type Solana_Export_Call added in v2.15.0

type Solana_Export_Call struct {
	*mock.Call
}

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

func (*Solana_Export_Call) Return added in v2.15.0

func (_c *Solana_Export_Call) Return(_a0 []byte, _a1 error) *Solana_Export_Call

func (*Solana_Export_Call) Run added in v2.15.0

func (_c *Solana_Export_Call) Run(run func(id string, password string)) *Solana_Export_Call

func (*Solana_Export_Call) RunAndReturn added in v2.15.0

func (_c *Solana_Export_Call) RunAndReturn(run func(string, string) ([]byte, error)) *Solana_Export_Call

type Solana_GetAll_Call added in v2.15.0

type Solana_GetAll_Call struct {
	*mock.Call
}

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

func (*Solana_GetAll_Call) Return added in v2.15.0

func (_c *Solana_GetAll_Call) Return(_a0 []solkey.Key, _a1 error) *Solana_GetAll_Call

func (*Solana_GetAll_Call) Run added in v2.15.0

func (_c *Solana_GetAll_Call) Run(run func()) *Solana_GetAll_Call

func (*Solana_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *Solana_GetAll_Call) RunAndReturn(run func() ([]solkey.Key, error)) *Solana_GetAll_Call

type Solana_Get_Call added in v2.15.0

type Solana_Get_Call struct {
	*mock.Call
}

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

func (*Solana_Get_Call) Return added in v2.15.0

func (_c *Solana_Get_Call) Return(_a0 solkey.Key, _a1 error) *Solana_Get_Call

func (*Solana_Get_Call) Run added in v2.15.0

func (_c *Solana_Get_Call) Run(run func(id string)) *Solana_Get_Call

func (*Solana_Get_Call) RunAndReturn added in v2.15.0

func (_c *Solana_Get_Call) RunAndReturn(run func(string) (solkey.Key, error)) *Solana_Get_Call

type Solana_Import_Call added in v2.15.0

type Solana_Import_Call struct {
	*mock.Call
}

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

func (*Solana_Import_Call) Return added in v2.15.0

func (_c *Solana_Import_Call) Return(_a0 solkey.Key, _a1 error) *Solana_Import_Call

func (*Solana_Import_Call) Run added in v2.15.0

func (_c *Solana_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *Solana_Import_Call

func (*Solana_Import_Call) RunAndReturn added in v2.15.0

func (_c *Solana_Import_Call) RunAndReturn(run func(context.Context, []byte, string) (solkey.Key, error)) *Solana_Import_Call

type Solana_Sign_Call added in v2.15.0

type Solana_Sign_Call struct {
	*mock.Call
}

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

func (*Solana_Sign_Call) Return added in v2.15.0

func (_c *Solana_Sign_Call) Return(signature []byte, err error) *Solana_Sign_Call

func (*Solana_Sign_Call) Run added in v2.15.0

func (_c *Solana_Sign_Call) Run(run func(ctx context.Context, id string, msg []byte)) *Solana_Sign_Call

func (*Solana_Sign_Call) RunAndReturn added in v2.15.0

func (_c *Solana_Sign_Call) RunAndReturn(run func(context.Context, string, []byte) ([]byte, error)) *Solana_Sign_Call

type StarkNet

type StarkNet struct {
	mock.Mock
}

StarkNet is an autogenerated mock type for the StarkNet type

func NewStarkNet

func NewStarkNet(t interface {
	mock.TestingT
	Cleanup(func())
}) *StarkNet

NewStarkNet creates a new instance of StarkNet. 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 (*StarkNet) Add

func (_m *StarkNet) Add(ctx context.Context, key starkkey.Key) error

Add provides a mock function with given fields: ctx, key

func (*StarkNet) Create

func (_m *StarkNet) Create(ctx context.Context) (starkkey.Key, error)

Create provides a mock function with given fields: ctx

func (*StarkNet) Delete

func (_m *StarkNet) Delete(ctx context.Context, id string) (starkkey.Key, error)

Delete provides a mock function with given fields: ctx, id

func (*StarkNet) EXPECT added in v2.15.0

func (_m *StarkNet) EXPECT() *StarkNet_Expecter

func (*StarkNet) EnsureKey

func (_m *StarkNet) EnsureKey(ctx context.Context) error

EnsureKey provides a mock function with given fields: ctx

func (*StarkNet) Export

func (_m *StarkNet) Export(id string, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*StarkNet) Get

func (_m *StarkNet) Get(id string) (starkkey.Key, error)

Get provides a mock function with given fields: id

func (*StarkNet) GetAll

func (_m *StarkNet) GetAll() ([]starkkey.Key, error)

GetAll provides a mock function with given fields:

func (*StarkNet) Import

func (_m *StarkNet) Import(ctx context.Context, keyJSON []byte, password string) (starkkey.Key, error)

Import provides a mock function with given fields: ctx, keyJSON, password

type StarkNet_Add_Call added in v2.15.0

type StarkNet_Add_Call struct {
	*mock.Call
}

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

func (*StarkNet_Add_Call) Return added in v2.15.0

func (_c *StarkNet_Add_Call) Return(_a0 error) *StarkNet_Add_Call

func (*StarkNet_Add_Call) Run added in v2.15.0

func (_c *StarkNet_Add_Call) Run(run func(ctx context.Context, key starkkey.Key)) *StarkNet_Add_Call

func (*StarkNet_Add_Call) RunAndReturn added in v2.15.0

func (_c *StarkNet_Add_Call) RunAndReturn(run func(context.Context, starkkey.Key) error) *StarkNet_Add_Call

type StarkNet_Create_Call added in v2.15.0

type StarkNet_Create_Call struct {
	*mock.Call
}

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

func (*StarkNet_Create_Call) Return added in v2.15.0

func (*StarkNet_Create_Call) Run added in v2.15.0

func (_c *StarkNet_Create_Call) Run(run func(ctx context.Context)) *StarkNet_Create_Call

func (*StarkNet_Create_Call) RunAndReturn added in v2.15.0

func (_c *StarkNet_Create_Call) RunAndReturn(run func(context.Context) (starkkey.Key, error)) *StarkNet_Create_Call

type StarkNet_Delete_Call added in v2.15.0

type StarkNet_Delete_Call struct {
	*mock.Call
}

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

func (*StarkNet_Delete_Call) Return added in v2.15.0

func (*StarkNet_Delete_Call) Run added in v2.15.0

func (_c *StarkNet_Delete_Call) Run(run func(ctx context.Context, id string)) *StarkNet_Delete_Call

func (*StarkNet_Delete_Call) RunAndReturn added in v2.15.0

type StarkNet_EnsureKey_Call added in v2.15.0

type StarkNet_EnsureKey_Call struct {
	*mock.Call
}

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

func (*StarkNet_EnsureKey_Call) Return added in v2.15.0

func (*StarkNet_EnsureKey_Call) Run added in v2.15.0

func (*StarkNet_EnsureKey_Call) RunAndReturn added in v2.15.0

type StarkNet_Expecter added in v2.15.0

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

func (*StarkNet_Expecter) Add added in v2.15.0

func (_e *StarkNet_Expecter) Add(ctx interface{}, key interface{}) *StarkNet_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key starkkey.Key

func (*StarkNet_Expecter) Create added in v2.15.0

func (_e *StarkNet_Expecter) Create(ctx interface{}) *StarkNet_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context

func (*StarkNet_Expecter) Delete added in v2.15.0

func (_e *StarkNet_Expecter) Delete(ctx interface{}, id interface{}) *StarkNet_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*StarkNet_Expecter) EnsureKey added in v2.15.0

func (_e *StarkNet_Expecter) EnsureKey(ctx interface{}) *StarkNet_EnsureKey_Call

EnsureKey is a helper method to define mock.On call

  • ctx context.Context

func (*StarkNet_Expecter) Export added in v2.15.0

func (_e *StarkNet_Expecter) Export(id interface{}, password interface{}) *StarkNet_Export_Call

Export is a helper method to define mock.On call

  • id string
  • password string

func (*StarkNet_Expecter) Get added in v2.15.0

func (_e *StarkNet_Expecter) Get(id interface{}) *StarkNet_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*StarkNet_Expecter) GetAll added in v2.15.0

GetAll is a helper method to define mock.On call

func (*StarkNet_Expecter) Import added in v2.15.0

func (_e *StarkNet_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *StarkNet_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

type StarkNet_Export_Call added in v2.15.0

type StarkNet_Export_Call struct {
	*mock.Call
}

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

func (*StarkNet_Export_Call) Return added in v2.15.0

func (_c *StarkNet_Export_Call) Return(_a0 []byte, _a1 error) *StarkNet_Export_Call

func (*StarkNet_Export_Call) Run added in v2.15.0

func (_c *StarkNet_Export_Call) Run(run func(id string, password string)) *StarkNet_Export_Call

func (*StarkNet_Export_Call) RunAndReturn added in v2.15.0

func (_c *StarkNet_Export_Call) RunAndReturn(run func(string, string) ([]byte, error)) *StarkNet_Export_Call

type StarkNet_GetAll_Call added in v2.15.0

type StarkNet_GetAll_Call struct {
	*mock.Call
}

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

func (*StarkNet_GetAll_Call) Return added in v2.15.0

func (*StarkNet_GetAll_Call) Run added in v2.15.0

func (_c *StarkNet_GetAll_Call) Run(run func()) *StarkNet_GetAll_Call

func (*StarkNet_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *StarkNet_GetAll_Call) RunAndReturn(run func() ([]starkkey.Key, error)) *StarkNet_GetAll_Call

type StarkNet_Get_Call added in v2.15.0

type StarkNet_Get_Call struct {
	*mock.Call
}

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

func (*StarkNet_Get_Call) Return added in v2.15.0

func (_c *StarkNet_Get_Call) Return(_a0 starkkey.Key, _a1 error) *StarkNet_Get_Call

func (*StarkNet_Get_Call) Run added in v2.15.0

func (_c *StarkNet_Get_Call) Run(run func(id string)) *StarkNet_Get_Call

func (*StarkNet_Get_Call) RunAndReturn added in v2.15.0

func (_c *StarkNet_Get_Call) RunAndReturn(run func(string) (starkkey.Key, error)) *StarkNet_Get_Call

type StarkNet_Import_Call added in v2.15.0

type StarkNet_Import_Call struct {
	*mock.Call
}

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

func (*StarkNet_Import_Call) Return added in v2.15.0

func (*StarkNet_Import_Call) Run added in v2.15.0

func (_c *StarkNet_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *StarkNet_Import_Call

func (*StarkNet_Import_Call) RunAndReturn added in v2.15.0

type VRF

type VRF struct {
	mock.Mock
}

VRF is an autogenerated mock type for the VRF type

func NewVRF

func NewVRF(t interface {
	mock.TestingT
	Cleanup(func())
}) *VRF

NewVRF creates a new instance of VRF. 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 (*VRF) Add

func (_m *VRF) Add(ctx context.Context, key vrfkey.KeyV2) error

Add provides a mock function with given fields: ctx, key

func (*VRF) Create

func (_m *VRF) Create(ctx context.Context) (vrfkey.KeyV2, error)

Create provides a mock function with given fields: ctx

func (*VRF) Delete

func (_m *VRF) Delete(ctx context.Context, id string) (vrfkey.KeyV2, error)

Delete provides a mock function with given fields: ctx, id

func (*VRF) EXPECT added in v2.15.0

func (_m *VRF) EXPECT() *VRF_Expecter

func (*VRF) Export

func (_m *VRF) Export(id string, password string) ([]byte, error)

Export provides a mock function with given fields: id, password

func (*VRF) GenerateProof

func (_m *VRF) GenerateProof(id string, seed *big.Int) (vrfkey.Proof, error)

GenerateProof provides a mock function with given fields: id, seed

func (*VRF) Get

func (_m *VRF) Get(id string) (vrfkey.KeyV2, error)

Get provides a mock function with given fields: id

func (*VRF) GetAll

func (_m *VRF) GetAll() ([]vrfkey.KeyV2, error)

GetAll provides a mock function with given fields:

func (*VRF) Import

func (_m *VRF) Import(ctx context.Context, keyJSON []byte, password string) (vrfkey.KeyV2, error)

Import provides a mock function with given fields: ctx, keyJSON, password

type VRF_Add_Call added in v2.15.0

type VRF_Add_Call struct {
	*mock.Call
}

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

func (*VRF_Add_Call) Return added in v2.15.0

func (_c *VRF_Add_Call) Return(_a0 error) *VRF_Add_Call

func (*VRF_Add_Call) Run added in v2.15.0

func (_c *VRF_Add_Call) Run(run func(ctx context.Context, key vrfkey.KeyV2)) *VRF_Add_Call

func (*VRF_Add_Call) RunAndReturn added in v2.15.0

func (_c *VRF_Add_Call) RunAndReturn(run func(context.Context, vrfkey.KeyV2) error) *VRF_Add_Call

type VRF_Create_Call added in v2.15.0

type VRF_Create_Call struct {
	*mock.Call
}

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

func (*VRF_Create_Call) Return added in v2.15.0

func (_c *VRF_Create_Call) Return(_a0 vrfkey.KeyV2, _a1 error) *VRF_Create_Call

func (*VRF_Create_Call) Run added in v2.15.0

func (_c *VRF_Create_Call) Run(run func(ctx context.Context)) *VRF_Create_Call

func (*VRF_Create_Call) RunAndReturn added in v2.15.0

func (_c *VRF_Create_Call) RunAndReturn(run func(context.Context) (vrfkey.KeyV2, error)) *VRF_Create_Call

type VRF_Delete_Call added in v2.15.0

type VRF_Delete_Call struct {
	*mock.Call
}

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

func (*VRF_Delete_Call) Return added in v2.15.0

func (_c *VRF_Delete_Call) Return(_a0 vrfkey.KeyV2, _a1 error) *VRF_Delete_Call

func (*VRF_Delete_Call) Run added in v2.15.0

func (_c *VRF_Delete_Call) Run(run func(ctx context.Context, id string)) *VRF_Delete_Call

func (*VRF_Delete_Call) RunAndReturn added in v2.15.0

func (_c *VRF_Delete_Call) RunAndReturn(run func(context.Context, string) (vrfkey.KeyV2, error)) *VRF_Delete_Call

type VRF_Expecter added in v2.15.0

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

func (*VRF_Expecter) Add added in v2.15.0

func (_e *VRF_Expecter) Add(ctx interface{}, key interface{}) *VRF_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • key vrfkey.KeyV2

func (*VRF_Expecter) Create added in v2.15.0

func (_e *VRF_Expecter) Create(ctx interface{}) *VRF_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context

func (*VRF_Expecter) Delete added in v2.15.0

func (_e *VRF_Expecter) Delete(ctx interface{}, id interface{}) *VRF_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*VRF_Expecter) Export added in v2.15.0

func (_e *VRF_Expecter) Export(id interface{}, password interface{}) *VRF_Export_Call

Export is a helper method to define mock.On call

  • id string
  • password string

func (*VRF_Expecter) GenerateProof added in v2.15.0

func (_e *VRF_Expecter) GenerateProof(id interface{}, seed interface{}) *VRF_GenerateProof_Call

GenerateProof is a helper method to define mock.On call

  • id string
  • seed *big.Int

func (*VRF_Expecter) Get added in v2.15.0

func (_e *VRF_Expecter) Get(id interface{}) *VRF_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*VRF_Expecter) GetAll added in v2.15.0

func (_e *VRF_Expecter) GetAll() *VRF_GetAll_Call

GetAll is a helper method to define mock.On call

func (*VRF_Expecter) Import added in v2.15.0

func (_e *VRF_Expecter) Import(ctx interface{}, keyJSON interface{}, password interface{}) *VRF_Import_Call

Import is a helper method to define mock.On call

  • ctx context.Context
  • keyJSON []byte
  • password string

type VRF_Export_Call added in v2.15.0

type VRF_Export_Call struct {
	*mock.Call
}

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

func (*VRF_Export_Call) Return added in v2.15.0

func (_c *VRF_Export_Call) Return(_a0 []byte, _a1 error) *VRF_Export_Call

func (*VRF_Export_Call) Run added in v2.15.0

func (_c *VRF_Export_Call) Run(run func(id string, password string)) *VRF_Export_Call

func (*VRF_Export_Call) RunAndReturn added in v2.15.0

func (_c *VRF_Export_Call) RunAndReturn(run func(string, string) ([]byte, error)) *VRF_Export_Call

type VRF_GenerateProof_Call added in v2.15.0

type VRF_GenerateProof_Call struct {
	*mock.Call
}

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

func (*VRF_GenerateProof_Call) Return added in v2.15.0

func (*VRF_GenerateProof_Call) Run added in v2.15.0

func (_c *VRF_GenerateProof_Call) Run(run func(id string, seed *big.Int)) *VRF_GenerateProof_Call

func (*VRF_GenerateProof_Call) RunAndReturn added in v2.15.0

func (_c *VRF_GenerateProof_Call) RunAndReturn(run func(string, *big.Int) (vrfkey.Proof, error)) *VRF_GenerateProof_Call

type VRF_GetAll_Call added in v2.15.0

type VRF_GetAll_Call struct {
	*mock.Call
}

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

func (*VRF_GetAll_Call) Return added in v2.15.0

func (_c *VRF_GetAll_Call) Return(_a0 []vrfkey.KeyV2, _a1 error) *VRF_GetAll_Call

func (*VRF_GetAll_Call) Run added in v2.15.0

func (_c *VRF_GetAll_Call) Run(run func()) *VRF_GetAll_Call

func (*VRF_GetAll_Call) RunAndReturn added in v2.15.0

func (_c *VRF_GetAll_Call) RunAndReturn(run func() ([]vrfkey.KeyV2, error)) *VRF_GetAll_Call

type VRF_Get_Call added in v2.15.0

type VRF_Get_Call struct {
	*mock.Call
}

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

func (*VRF_Get_Call) Return added in v2.15.0

func (_c *VRF_Get_Call) Return(_a0 vrfkey.KeyV2, _a1 error) *VRF_Get_Call

func (*VRF_Get_Call) Run added in v2.15.0

func (_c *VRF_Get_Call) Run(run func(id string)) *VRF_Get_Call

func (*VRF_Get_Call) RunAndReturn added in v2.15.0

func (_c *VRF_Get_Call) RunAndReturn(run func(string) (vrfkey.KeyV2, error)) *VRF_Get_Call

type VRF_Import_Call added in v2.15.0

type VRF_Import_Call struct {
	*mock.Call
}

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

func (*VRF_Import_Call) Return added in v2.15.0

func (_c *VRF_Import_Call) Return(_a0 vrfkey.KeyV2, _a1 error) *VRF_Import_Call

func (*VRF_Import_Call) Run added in v2.15.0

func (_c *VRF_Import_Call) Run(run func(ctx context.Context, keyJSON []byte, password string)) *VRF_Import_Call

func (*VRF_Import_Call) RunAndReturn added in v2.15.0

func (_c *VRF_Import_Call) RunAndReturn(run func(context.Context, []byte, string) (vrfkey.KeyV2, error)) *VRF_Import_Call

Jump to

Keyboard shortcuts

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