Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSimulatorFacade ¶
func NewSimulatorFacade(simulator SimulatorHandler) (*simulatorFacade, error)
NewSimulatorFacade will create a new instance of simulatorFacade
Types ¶
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 IsInterfaceNil() bool }
SimulatorHandler defines what a simulator handler should be able to do
Click to show internal directories.
Click to hide internal directories.