Versions in this module Expand all Collapse all v0 v0.0.2 Oct 31, 2023 Changes in this version type Facade + GetNumCheckpointsFromAccountStateCalled func() uint32 + GetNumCheckpointsFromPeerStateCalled func() uint32 + func (f *Facade) GetNumCheckpointsFromAccountState() uint32 + func (f *Facade) GetNumCheckpointsFromPeerState() uint32 v0.0.1 Oct 30, 2023 Changes in this version + type Facade struct + BalanceHandler func(string) (*big.Int, error) + ComputeTransactionGasLimitHandler func(tx *transaction.Transaction) (uint64, error) + CreateTransactionHandler func(nonce uint64, value string, receiverHex string, senderHex string, ...) (*transaction.Transaction, []byte, error) + ExecuteSCQueryHandler func(query *process.SCQuery) (*vmcommon.VMOutput, error) + GenerateTransactionHandler func(sender string, receiver string, value *big.Int, code string) (*transaction.Transaction, error) + GetAccountHandler func(address string) (state.UserAccountHandler, error) + GetHeartbeatsHandler func() ([]data.PubKeyHeartbeat, error) + GetPeerInfoCalled func(pid string) ([]core.QueryP2PPeerInfo, error) + GetQueryHandlerCalled func(name string) (debug.QueryHandler, error) + GetThrottlerForEndpointCalled func(endpoint string) (core.Throttler, bool) + GetTransactionHandler func(hash string) (*transaction.ApiTransactionResult, error) + GetValueForKeyCalled func(address string, key string) (string, error) + NodeConfigCalled func() map[string]interface{} + SendBulkTransactionsHandler func(txs []*transaction.Transaction) (uint64, error) + ShouldErrorStart bool + ShouldErrorStop bool + StatusMetricsHandler func() external.StatusMetricsHandler + TpsBenchmarkHandler func() *statistics.TpsBenchmark + ValidateTransactionHandler func(tx *transaction.Transaction) error + ValidatorStatisticsHandler func() (map[string]*state.ValidatorApiResponse, error) + func (f *Facade) ComputeTransactionGasLimit(tx *transaction.Transaction) (uint64, error) + func (f *Facade) CreateTransaction(nonce uint64, value string, receiverHex string, senderHex string, ...) (*transaction.Transaction, []byte, error) + func (f *Facade) DecodeAddressPubkey(pk string) ([]byte, error) + func (f *Facade) EncodeAddressPubkey(pk []byte) (string, error) + func (f *Facade) ExecuteSCQuery(query *process.SCQuery) (*vmcommon.VMOutput, error) + func (f *Facade) GetAccount(address string) (state.UserAccountHandler, error) + func (f *Facade) GetBalance(address string) (*big.Int, error) + func (f *Facade) GetHeartbeats() ([]data.PubKeyHeartbeat, error) + func (f *Facade) GetPeerInfo(pid string) ([]core.QueryP2PPeerInfo, error) + func (f *Facade) GetQueryHandler(name string) (debug.QueryHandler, error) + func (f *Facade) GetThrottlerForEndpoint(endpoint string) (core.Throttler, bool) + func (f *Facade) GetTransaction(hash string) (*transaction.ApiTransactionResult, error) + func (f *Facade) GetValueForKey(address string, key string) (string, error) + func (f *Facade) IsInterfaceNil() bool + func (f *Facade) NodeConfig() map[string]interface{} + func (f *Facade) PprofEnabled() bool + func (f *Facade) RestAPIServerDebugMode() bool + func (f *Facade) RestApiInterface() string + func (f *Facade) SendBulkTransactions(txs []*transaction.Transaction) (uint64, error) + func (f *Facade) StatusMetrics() external.StatusMetricsHandler + func (f *Facade) TpsBenchmark() *statistics.TpsBenchmark + func (f *Facade) ValidateTransaction(tx *transaction.Transaction) error + func (f *Facade) ValidatorStatisticsApi() (map[string]*state.ValidatorApiResponse, error) + type HardforkFacade struct + IsSelfTriggerCalled func() bool + TriggerCalled func(epoch uint32) error + func (hf *HardforkFacade) IsInterfaceNil() bool + func (hf *HardforkFacade) IsSelfTrigger() bool + func (hf *HardforkFacade) Trigger(epoch uint32) error + type LoggerStub struct + LogCalled func(level string, message string, args ...interface{}) + SetLevelCalled func(logLevel logger.LogLevel) + func (l *LoggerStub) Debug(message string, args ...interface{}) + func (l *LoggerStub) Error(message string, args ...interface{}) + func (l *LoggerStub) GetLevel() logger.LogLevel + func (l *LoggerStub) Info(message string, args ...interface{}) + func (l *LoggerStub) IsInterfaceNil() bool + func (l *LoggerStub) Log(line *logger.LogLine) + func (l *LoggerStub) LogIfError(err error, args ...interface{}) + func (l *LoggerStub) SetLevel(logLevel logger.LogLevel) + func (l *LoggerStub) Trace(message string, args ...interface{}) + func (l *LoggerStub) Warn(message string, args ...interface{}) + type MarshalizerStub struct + MarshalCalled func(obj interface{}) ([]byte, error) + UnmarshalCalled func(obj interface{}, buff []byte) error + func (ms *MarshalizerStub) IsInterfaceNil() bool + func (ms *MarshalizerStub) Marshal(obj interface{}) ([]byte, error) + func (ms *MarshalizerStub) Unmarshal(obj interface{}, buff []byte) error + type QueryHandlerStub struct + QueryCalled func(search string) []string + func (qhs *QueryHandlerStub) IsInterfaceNil() bool + func (qhs *QueryHandlerStub) Query(search string) []string + type ThrottlerStub struct + CanProcessCalled func() bool + EndProcessingCalled func() + EndWasCalled bool + StartProcessingCalled func() + StartWasCalled bool + func (ts *ThrottlerStub) CanProcess() bool + func (ts *ThrottlerStub) EndProcessing() + func (ts *ThrottlerStub) IsInterfaceNil() bool + func (ts *ThrottlerStub) StartProcessing() + type WrongFacade struct + type WsConnStub struct + func (wcs *WsConnStub) Close() error + func (wcs *WsConnStub) ReadMessage() (messageType int, p []byte, err error) + func (wcs *WsConnStub) SetCloseHandler(f func() error) + func (wcs *WsConnStub) SetReadMessageHandler(f func() (messageType int, p []byte, err error)) + func (wcs *WsConnStub) SetWriteMessageHandler(f func(messageType int, data []byte) error) + func (wcs *WsConnStub) WriteMessage(messageType int, data []byte) error