mock

package
v0.0.7-alphanet Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SkipVmChanges = "PASS-VM-CHANGES"
	NoVmChanges   = `
storage
balance`
)

Variables

Functions

This section is empty.

Types

type AutogeneratedBlockEntry

type AutogeneratedBlockEntry struct {
	Msg           string              `json:"msg"`
	Identifier    types.AccountHeader `json:"identifier"`
	SendBlock     types.AccountHeader `json:"send-block-header"`
	ReturnedError string              `json:"returned-error"`
}

type MockContractCaller

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

func (*MockContractCaller) LateCallFunction

func (mcc *MockContractCaller) LateCallFunction() (string, error)

type MockZenon

type MockZenon interface {
	zenon.Zenon
	StopPanic()

	InsertNewMomentum()
	InsertMomentumsTo(targetHeight uint64)

	CallContract(template *nom.AccountBlock) *common.Expecter
	InsertSendBlock(template *nom.AccountBlock, expectedError error, expectedVmChanges string) *nom.AccountBlock
	InsertReceiveBlock(fromHeader types.AccountHeader, template *nom.AccountBlock, expectedError error, expectedVmChanges string) *nom.AccountBlock

	SaveLogs(logger common.Logger) *common.Expecter
	ExpectBalance(address types.Address, standard types.ZenonTokenStandard, expected int64)
}

func NewMockZenon

func NewMockZenon(t common.T) MockZenon

func NewMockZenonWithCustomEpochDuration

func NewMockZenonWithCustomEpochDuration(t common.T, epochDuration time.Duration) MockZenon

type ProducerLogSaver

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

func (*ProducerLogSaver) Format

func (f *ProducerLogSaver) Format(r *log15.Record) []byte

Jump to

Keyboard shortcuts

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