mocks

package
v2.12.1-starknet-07192024 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 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

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) 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 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) 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 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(ctx context.Context, key dkgencryptkey.Key) error

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

func (*DKGEncrypt) Create

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

Create provides a mock function with given fields: ctx

func (*DKGEncrypt) Delete

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

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

func (*DKGEncrypt) EnsureKey

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

EnsureKey provides a mock function with given fields: ctx

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(ctx context.Context, keyJSON []byte, password string) (dkgencryptkey.Key, error)

Import provides a mock function with given fields: ctx, 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(ctx context.Context, key dkgsignkey.Key) error

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

func (*DKGSign) Create

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

Create provides a mock function with given fields: ctx

func (*DKGSign) Delete

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

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

func (*DKGSign) EnsureKey

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

EnsureKey provides a mock function with given fields: ctx

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(ctx context.Context, keyJSON []byte, password string) (dkgsignkey.Key, error)

Import provides a mock function with given fields: ctx, 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 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) 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 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) Cosmos

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

Cosmos 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(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 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) 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) 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 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) 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 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) 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 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) 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 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) 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

Jump to

Keyboard shortcuts

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