mocks

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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(key csakey.KeyV2) error

Add provides a mock function with given fields: key

func (*CSA) Create

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

Create provides a mock function with given fields:

func (*CSA) Delete

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

Delete provides a mock function with given fields: id

func (*CSA) EnsureKey

func (_m *CSA) EnsureKey() error

EnsureKey provides a mock function with given fields:

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(keyJSON []byte, password string) (csakey.KeyV2, error)

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

type DKGEncrypt

type DKGEncrypt struct {
	mock.Mock
}

DKGEncrypt is an autogenerated mock type for the DKGEncrypt type

func NewDKGEncrypt

func NewDKGEncrypt(t interface {
	mock.TestingT
	Cleanup(func())
}) *DKGEncrypt

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

func (_m *DKGEncrypt) Add(key dkgencryptkey.Key) error

Add provides a mock function with given fields: key

func (*DKGEncrypt) Create

func (_m *DKGEncrypt) Create() (dkgencryptkey.Key, error)

Create provides a mock function with given fields:

func (*DKGEncrypt) Delete

func (_m *DKGEncrypt) Delete(id string) (dkgencryptkey.Key, error)

Delete provides a mock function with given fields: id

func (*DKGEncrypt) EnsureKey

func (_m *DKGEncrypt) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*DKGEncrypt) Export

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

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

func (*DKGEncrypt) Get

func (_m *DKGEncrypt) Get(id string) (dkgencryptkey.Key, error)

Get provides a mock function with given fields: id

func (*DKGEncrypt) GetAll

func (_m *DKGEncrypt) GetAll() ([]dkgencryptkey.Key, error)

GetAll provides a mock function with given fields:

func (*DKGEncrypt) Import

func (_m *DKGEncrypt) Import(keyJSON []byte, password string) (dkgencryptkey.Key, error)

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

type DKGSign

type DKGSign struct {
	mock.Mock
}

DKGSign is an autogenerated mock type for the DKGSign type

func NewDKGSign

func NewDKGSign(t interface {
	mock.TestingT
	Cleanup(func())
}) *DKGSign

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

func (_m *DKGSign) Add(key dkgsignkey.Key) error

Add provides a mock function with given fields: key

func (*DKGSign) Create

func (_m *DKGSign) Create() (dkgsignkey.Key, error)

Create provides a mock function with given fields:

func (*DKGSign) Delete

func (_m *DKGSign) Delete(id string) (dkgsignkey.Key, error)

Delete provides a mock function with given fields: id

func (*DKGSign) EnsureKey

func (_m *DKGSign) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*DKGSign) Export

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

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

func (*DKGSign) Get

func (_m *DKGSign) Get(id string) (dkgsignkey.Key, error)

Get provides a mock function with given fields: id

func (*DKGSign) GetAll

func (_m *DKGSign) GetAll() ([]dkgsignkey.Key, error)

GetAll provides a mock function with given fields:

func (*DKGSign) Import

func (_m *DKGSign) Import(keyJSON []byte, password string) (dkgsignkey.Key, error)

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

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

func (_m *Eth) Add(address common.Address, chainID *big.Int, qopts ...pg.QOpt) error

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

func (*Eth) CheckEnabled

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

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

func (*Eth) Create

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

Create provides a mock function with given fields: chainIDs

func (*Eth) Delete

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

Delete provides a mock function with given fields: id

func (*Eth) Disable

func (_m *Eth) Disable(address common.Address, chainID *big.Int, qopts ...pg.QOpt) error

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

func (*Eth) Enable

func (_m *Eth) Enable(address common.Address, chainID *big.Int, qopts ...pg.QOpt) error

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

func (*Eth) EnabledAddressesForChain

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

EnabledAddressesForChain provides a mock function with given fields: chainID

func (*Eth) EnabledKeysForChain

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

EnabledKeysForChain provides a mock function with given fields: chainID

func (*Eth) EnsureKeys

func (_m *Eth) EnsureKeys(chainIDs ...*big.Int) error

EnsureKeys provides a mock function with given fields: chainIDs

func (*Eth) Export

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

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

func (*Eth) Get

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

Get provides a mock function with given fields: id

func (*Eth) GetAll

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

GetAll provides a mock function with given fields:

func (*Eth) GetRoundRobinAddress

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

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

func (*Eth) GetState

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

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

func (*Eth) GetStateForKey

func (_m *Eth) GetStateForKey(_a0 ethkey.KeyV2) (ethkey.State, error)

GetStateForKey provides a mock function with given fields: _a0

func (*Eth) GetStatesForChain

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

GetStatesForChain provides a mock function with given fields: chainID

func (*Eth) GetStatesForKeys

func (_m *Eth) GetStatesForKeys(_a0 []ethkey.KeyV2) ([]ethkey.State, error)

GetStatesForKeys provides a mock function with given fields: _a0

func (*Eth) Import

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

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

func (*Eth) SignTx

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

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

func (*Eth) SubscribeToKeyChanges

func (_m *Eth) SubscribeToKeyChanges() (chan struct{}, func())

SubscribeToKeyChanges provides a mock function with given fields:

func (*Eth) XXXTestingOnlyAdd

func (_m *Eth) XXXTestingOnlyAdd(key ethkey.KeyV2)

XXXTestingOnlyAdd provides a mock function with given fields: key

func (*Eth) XXXTestingOnlySetState

func (_m *Eth) XXXTestingOnlySetState(_a0 ethkey.State)

XXXTestingOnlySetState provides a mock function with given fields: _a0

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) CSA

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

CSA provides a mock function with given fields:

func (*Master) DKGEncrypt

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

DKGEncrypt provides a mock function with given fields:

func (*Master) DKGSign

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

DKGSign provides a mock function with given fields:

func (*Master) Eth

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

Eth provides a mock function with given fields:

func (*Master) IsEmpty

func (_m *Master) IsEmpty() (bool, error)

IsEmpty 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) Unlock

func (_m *Master) Unlock(password string) error

Unlock provides a mock function with given fields: password

func (*Master) VRF

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

VRF provides a mock function with given fields:

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(key vrfkey.KeyV2) error

Add provides a mock function with given fields: key

func (*VRF) Create

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

Create provides a mock function with given fields:

func (*VRF) Delete

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

Delete provides a mock function with given fields: id

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(keyJSON []byte, password string) (vrfkey.KeyV2, error)

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

Jump to

Keyboard shortcuts

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