mock

package
Version: v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdenPubOnChainMock

type IdenPubOnChainMock struct {
	mock.Mock
}

func New

func New() *IdenPubOnChainMock

func (*IdenPubOnChainMock) GetState

func (m *IdenPubOnChainMock) GetState(id *core.ID) (*proof.IdenStateData, error)

func (*IdenPubOnChainMock) GetStateByBlock

func (m *IdenPubOnChainMock) GetStateByBlock(id *core.ID, blockN uint64) (*proof.IdenStateData, error)

func (*IdenPubOnChainMock) GetStateByTime

func (m *IdenPubOnChainMock) GetStateByTime(id *core.ID, blockTimeStamp int64) (*proof.IdenStateData, error)

func (*IdenPubOnChainMock) InitState

func (m *IdenPubOnChainMock) InitState(id *core.ID, genesisState *merkletree.Hash, newState *merkletree.Hash, kOpProof []byte, stateTransitionProof []byte, signature *babyjub.SignatureComp) (*types.Transaction, error)

func (*IdenPubOnChainMock) SetState

func (m *IdenPubOnChainMock) SetState(id *core.ID, newState *merkletree.Hash, kOpProof []byte, stateTransitionProof []byte, signature *babyjub.SignatureComp) (*types.Transaction, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL