facade

package
v1.7.13-fix2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: GPL-3.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSimulatorFacade

func NewSimulatorFacade(simulator SimulatorHandler, transactionHandler ProxyTransactionsHandler) (*simulatorFacade, error)

NewSimulatorFacade will create a new instance of simulatorFacade

Types

type ProxyTransactionsHandler added in v1.7.13

type ProxyTransactionsHandler interface {
	GetProcessedTransactionStatus(txHash string) (*data.ProcessStatusResponse, error)
}

ProxyTransactionsHandler defines what a proxy transaction handler should be able to do

type SimulatorHandler

type SimulatorHandler interface {
	GetInitialWalletKeys() *dtos.InitialWalletKeys
	GenerateBlocks(numOfBlocks int) error
	SetKeyValueForAddress(address string, keyValueMap map[string]string) error
	SetStateMultiple(stateSlice []*dtos.AddressState) error
	RemoveAccounts(addresses []string) error
	AddValidatorKeys(validatorsPrivateKeys [][]byte) error
	GenerateBlocksUntilEpochIsReached(targetEpoch int32) error
	ForceResetValidatorStatisticsCache() error
	GetRestAPIInterfaces() map[uint32]string
	ForceChangeOfEpoch() error
	GetNodeHandler(shardID uint32) process.NodeHandler
	IsInterfaceNil() bool
}

SimulatorHandler defines what a simulator handler should be able to do

Jump to

Keyboard shortcuts

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