mocks

package
v1.13.0-healthchecks1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSA added in v1.0.0

type CSA struct {
	mock.Mock
}

CSA is an autogenerated mock type for the CSA type

func NewCSA added in v1.5.0

func NewCSA(t mockConstructorTestingTNewCSA) *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.

func (*CSA) Add added in v1.0.0

func (_m *CSA) Add(key csakey.KeyV2) error

Add provides a mock function with given fields: key

func (*CSA) Create added in v1.0.0

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

Create provides a mock function with given fields:

func (*CSA) Delete added in v1.0.0

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

Delete provides a mock function with given fields: id

func (*CSA) EnsureKey added in v1.2.0

func (_m *CSA) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*CSA) Export added in v1.0.0

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

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

func (*CSA) Get added in v1.0.0

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

Get provides a mock function with given fields: id

func (*CSA) GetAll added in v1.0.0

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

GetAll provides a mock function with given fields:

func (*CSA) GetV1KeysAsV2 added in v1.0.0

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

GetV1KeysAsV2 provides a mock function with given fields:

func (*CSA) Import added in v1.0.0

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

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

type DKGEncrypt added in v1.7.0

type DKGEncrypt struct {
	mock.Mock
}

DKGEncrypt is an autogenerated mock type for the DKGEncrypt type

func NewDKGEncrypt added in v1.7.0

func NewDKGEncrypt(t mockConstructorTestingTNewDKGEncrypt) *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.

func (*DKGEncrypt) Add added in v1.7.0

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

Add provides a mock function with given fields: key

func (*DKGEncrypt) Create added in v1.7.0

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

Create provides a mock function with given fields:

func (*DKGEncrypt) Delete added in v1.7.0

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

Delete provides a mock function with given fields: id

func (*DKGEncrypt) EnsureKey added in v1.7.0

func (_m *DKGEncrypt) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*DKGEncrypt) Export added in v1.7.0

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

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

func (*DKGEncrypt) Get added in v1.7.0

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

Get provides a mock function with given fields: id

func (*DKGEncrypt) GetAll added in v1.7.0

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

GetAll provides a mock function with given fields:

func (*DKGEncrypt) Import added in v1.7.0

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

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

type DKGSign added in v1.6.0

type DKGSign struct {
	mock.Mock
}

DKGSign is an autogenerated mock type for the DKGSign type

func NewDKGSign added in v1.6.0

func NewDKGSign(t mockConstructorTestingTNewDKGSign) *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.

func (*DKGSign) Add added in v1.6.0

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

Add provides a mock function with given fields: key

func (*DKGSign) Create added in v1.6.0

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

Create provides a mock function with given fields:

func (*DKGSign) Delete added in v1.6.0

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

Delete provides a mock function with given fields: id

func (*DKGSign) EnsureKey added in v1.6.0

func (_m *DKGSign) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*DKGSign) Export added in v1.6.0

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

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

func (*DKGSign) Get added in v1.6.0

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

Get provides a mock function with given fields: id

func (*DKGSign) GetAll added in v1.6.0

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

GetAll provides a mock function with given fields:

func (*DKGSign) Import added in v1.6.0

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

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

type Eth added in v1.0.0

type Eth struct {
	mock.Mock
}

Eth is an autogenerated mock type for the Eth type

func NewEth added in v1.5.0

func NewEth(t mockConstructorTestingTNewEth) *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.

func (*Eth) CheckEnabled added in v1.8.0

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

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

func (*Eth) Create added in v1.0.0

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

Create provides a mock function with given fields: chainIDs

func (*Eth) Delete added in v1.0.0

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

Delete provides a mock function with given fields: id

func (*Eth) Disable added in v1.8.0

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 added in v1.8.0

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) EnabledKeysForChain added in v1.8.0

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

EnabledKeysForChain provides a mock function with given fields: chainID

func (*Eth) EnsureKeys added in v1.0.0

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

EnsureKeys provides a mock function with given fields: chainIDs

func (*Eth) Export added in v1.0.0

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

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

func (*Eth) Get added in v1.0.0

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

Get provides a mock function with given fields: id

func (*Eth) GetAll added in v1.0.0

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

GetAll provides a mock function with given fields:

func (*Eth) GetNextNonce added in v1.8.0

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

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

func (*Eth) GetRoundRobinAddress added in v1.0.0

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 added in v1.0.0

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

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

func (*Eth) GetStatesForChain added in v1.1.0

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

GetStatesForChain provides a mock function with given fields: chainID

func (*Eth) GetStatesForKeys added in v1.0.0

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

GetStatesForKeys provides a mock function with given fields: _a0

func (*Eth) Import added in v1.0.0

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) IncrementNextNonce added in v1.8.0

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

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

func (*Eth) Reset added in v1.8.0

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

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

func (*Eth) SignTx added in v1.0.0

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 added in v1.0.0

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

SubscribeToKeyChanges provides a mock function with given fields:

func (*Eth) XXXTestingOnlyAdd added in v1.8.0

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

XXXTestingOnlyAdd provides a mock function with given fields: key

func (*Eth) XXXTestingOnlySetState added in v1.8.0

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

XXXTestingOnlySetState provides a mock function with given fields: _a0

type Master added in v1.1.0

type Master struct {
	mock.Mock
}

Master is an autogenerated mock type for the Master type

func NewMaster added in v1.5.0

func NewMaster(t mockConstructorTestingTNewMaster) *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.

func (*Master) CSA added in v1.1.0

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

CSA provides a mock function with given fields:

func (*Master) DKGEncrypt added in v1.7.0

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

DKGEncrypt provides a mock function with given fields:

func (*Master) DKGSign added in v1.6.0

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

DKGSign provides a mock function with given fields:

func (*Master) Eth added in v1.1.0

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

Eth provides a mock function with given fields:

func (*Master) IsEmpty added in v1.1.0

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

IsEmpty provides a mock function with given fields:

func (*Master) Migrate added in v1.1.0

func (_m *Master) Migrate(vrfPassword string, f keystore.DefaultEVMChainIDFunc) error

Migrate provides a mock function with given fields: vrfPassword, f

func (*Master) OCR added in v1.1.0

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

OCR provides a mock function with given fields:

func (*Master) OCR2 added in v1.2.0

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

OCR2 provides a mock function with given fields:

func (*Master) P2P added in v1.1.0

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

P2P provides a mock function with given fields:

func (*Master) Solana added in v1.2.0

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

Solana provides a mock function with given fields:

func (*Master) StarkNet added in v1.6.0

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

StarkNet provides a mock function with given fields:

func (*Master) Unlock added in v1.1.0

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

Unlock provides a mock function with given fields: password

func (*Master) VRF added in v1.1.0

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

VRF provides a mock function with given fields:

type OCR added in v1.1.0

type OCR struct {
	mock.Mock
}

OCR is an autogenerated mock type for the OCR type

func NewOCR added in v1.5.0

func NewOCR(t mockConstructorTestingTNewOCR) *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.

func (*OCR) Add added in v1.1.0

func (_m *OCR) Add(key ocrkey.KeyV2) error

Add provides a mock function with given fields: key

func (*OCR) Create added in v1.1.0

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

Create provides a mock function with given fields:

func (*OCR) Delete added in v1.1.0

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

Delete provides a mock function with given fields: id

func (*OCR) EnsureKey added in v1.1.0

func (_m *OCR) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*OCR) Export added in v1.1.0

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

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

func (*OCR) Get added in v1.1.0

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

Get provides a mock function with given fields: id

func (*OCR) GetAll added in v1.1.0

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

GetAll provides a mock function with given fields:

func (*OCR) GetV1KeysAsV2 added in v1.1.0

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

GetV1KeysAsV2 provides a mock function with given fields:

func (*OCR) Import added in v1.1.0

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

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

type OCR2 added in v1.2.0

type OCR2 struct {
	mock.Mock
}

OCR2 is an autogenerated mock type for the OCR2 type

func NewOCR2 added in v1.5.0

func NewOCR2(t mockConstructorTestingTNewOCR2) *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.

func (*OCR2) Add added in v1.2.0

func (_m *OCR2) Add(key ocr2key.KeyBundle) error

Add provides a mock function with given fields: key

func (*OCR2) Create added in v1.2.0

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

Create provides a mock function with given fields: _a0

func (*OCR2) Delete added in v1.2.0

func (_m *OCR2) Delete(id string) error

Delete provides a mock function with given fields: id

func (*OCR2) EnsureKeys added in v1.2.0

func (_m *OCR2) EnsureKeys() error

EnsureKeys provides a mock function with given fields:

func (*OCR2) Export added in v1.2.0

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

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

func (*OCR2) Get added in v1.2.0

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

Get provides a mock function with given fields: id

func (*OCR2) GetAll added in v1.2.0

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

GetAll provides a mock function with given fields:

func (*OCR2) GetAllOfType added in v1.2.0

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

GetAllOfType provides a mock function with given fields: _a0

func (*OCR2) Import added in v1.2.0

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

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

type P2P added in v1.1.0

type P2P struct {
	mock.Mock
}

P2P is an autogenerated mock type for the P2P type

func NewP2P added in v1.5.0

func NewP2P(t mockConstructorTestingTNewP2P) *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.

func (*P2P) Add added in v1.1.0

func (_m *P2P) Add(key p2pkey.KeyV2) error

Add provides a mock function with given fields: key

func (*P2P) Create added in v1.1.0

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

Create provides a mock function with given fields:

func (*P2P) Delete added in v1.1.0

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

Delete provides a mock function with given fields: id

func (*P2P) EnsureKey added in v1.1.0

func (_m *P2P) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*P2P) Export added in v1.1.0

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

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

func (*P2P) Get added in v1.1.0

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

Get provides a mock function with given fields: id

func (*P2P) GetAll added in v1.1.0

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

GetAll provides a mock function with given fields:

func (*P2P) GetOrFirst added in v1.1.0

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

GetOrFirst provides a mock function with given fields: id

func (*P2P) GetV1KeysAsV2 added in v1.1.0

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

GetV1KeysAsV2 provides a mock function with given fields:

func (*P2P) Import added in v1.1.0

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

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

type Solana added in v1.2.0

type Solana struct {
	mock.Mock
}

Solana is an autogenerated mock type for the Solana type

func NewSolana added in v1.5.0

func NewSolana(t mockConstructorTestingTNewSolana) *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.

func (*Solana) Add added in v1.2.0

func (_m *Solana) Add(key solkey.Key) error

Add provides a mock function with given fields: key

func (*Solana) Create added in v1.2.0

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

Create provides a mock function with given fields:

func (*Solana) Delete added in v1.2.0

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

Delete provides a mock function with given fields: id

func (*Solana) EnsureKey added in v1.2.0

func (_m *Solana) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*Solana) Export added in v1.2.0

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

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

func (*Solana) Get added in v1.2.0

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

Get provides a mock function with given fields: id

func (*Solana) GetAll added in v1.2.0

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

GetAll provides a mock function with given fields:

func (*Solana) Import added in v1.2.0

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

Import provides a mock function with given fields: 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 StarkNet added in v1.6.0

type StarkNet struct {
	mock.Mock
}

StarkNet is an autogenerated mock type for the StarkNet type

func NewStarkNet added in v1.6.0

func NewStarkNet(t mockConstructorTestingTNewStarkNet) *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.

func (*StarkNet) Add added in v1.6.0

func (_m *StarkNet) Add(key keys.Key) error

Add provides a mock function with given fields: key

func (*StarkNet) Create added in v1.6.0

func (_m *StarkNet) Create() (keys.Key, error)

Create provides a mock function with given fields:

func (*StarkNet) Delete added in v1.6.0

func (_m *StarkNet) Delete(id string) (keys.Key, error)

Delete provides a mock function with given fields: id

func (*StarkNet) EnsureKey added in v1.6.0

func (_m *StarkNet) EnsureKey() error

EnsureKey provides a mock function with given fields:

func (*StarkNet) Export added in v1.6.0

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

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

func (*StarkNet) Get added in v1.6.0

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

Get provides a mock function with given fields: id

func (*StarkNet) GetAll added in v1.6.0

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

GetAll provides a mock function with given fields:

func (*StarkNet) Import added in v1.6.0

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

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

type VRF added in v1.1.0

type VRF struct {
	mock.Mock
}

VRF is an autogenerated mock type for the VRF type

func NewVRF added in v1.5.0

func NewVRF(t mockConstructorTestingTNewVRF) *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.

func (*VRF) Add added in v1.1.0

func (_m *VRF) Add(key vrfkey.KeyV2) error

Add provides a mock function with given fields: key

func (*VRF) Create added in v1.1.0

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

Create provides a mock function with given fields:

func (*VRF) Delete added in v1.1.0

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

Delete provides a mock function with given fields: id

func (*VRF) Export added in v1.1.0

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

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

func (*VRF) GenerateProof added in v1.1.0

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 added in v1.1.0

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

Get provides a mock function with given fields: id

func (*VRF) GetAll added in v1.1.0

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

GetAll provides a mock function with given fields:

func (*VRF) GetV1KeysAsV2 added in v1.1.0

func (_m *VRF) GetV1KeysAsV2(password string) ([]vrfkey.KeyV2, error)

GetV1KeysAsV2 provides a mock function with given fields: password

func (*VRF) Import added in v1.1.0

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