Versions in this module Expand all Collapse all v0 v0.0.2 Oct 31, 2023 Changes in this version + var ErrNilAccountState = errors.New("nil account state") + var ErrNilPeerState = errors.New("nil peer state") type ArgNodeFacade + AccountsState state.AccountsAdapter + PeerState state.AccountsAdapter type NodeHandler + GetBlockByHash func(hash string, withTxs bool) (*block.APIBlock, error) + GetBlockByNonce func(nonce uint64, withTxs bool) (*block.APIBlock, error) v0.0.1 Oct 30, 2023 Changes in this version + const DefaultRestInterface + const DefaultRestPortOff + var ErrHeartbeatsNotActive = errors.New("heartbeat system not active") + var ErrInvalidValue = errors.New("invalid value") + var ErrNilApiResolver = errors.New("nil api resolver") + var ErrNilNode = errors.New("nil node") + var ErrNoApiRoutesConfig = errors.New("no configuration found for API routes") + func NewNodeFacade(arg ArgNodeFacade) (*nodeFacade, error) + type ApiResolver interface + ComputeTransactionGasLimit func(tx *transaction.Transaction) (uint64, error) + ExecuteSCQuery func(query *process.SCQuery) (*vmcommon.VMOutput, error) + IsInterfaceNil func() bool + StatusMetrics func() external.StatusMetricsHandler + type ArgNodeFacade struct + ApiResolver ApiResolver + ApiRoutesConfig config.ApiRoutesConfig + FacadeConfig config.FacadeConfig + Node NodeHandler + RestAPIServerDebugMode bool + WsAntifloodConfig config.WebServerAntifloodConfig + type HardforkTrigger interface + IsInterfaceNil func() bool + IsSelfTrigger func() bool + Trigger func(epoch uint32) error + type NodeHandler interface + CreateTransaction func(nonce uint64, value string, receiverHex string, senderHex string, ...) (*transaction.Transaction, []byte, error) + DecodeAddressPubkey func(pk string) ([]byte, error) + DirectTrigger func(epoch uint32) error + EncodeAddressPubkey func(pk []byte) (string, error) + GetAccount func(address string) (state.UserAccountHandler, error) + GetBalance func(address string) (*big.Int, error) + GetHeartbeats func() []data.PubKeyHeartbeat + GetPeerInfo func(pid string) ([]core.QueryP2PPeerInfo, error) + GetQueryHandler func(name string) (debug.QueryHandler, error) + GetTransaction func(hash string) (*transaction.ApiTransactionResult, error) + GetValueForKey func(address string, key string) (string, error) + IsInterfaceNil func() bool + IsSelfTrigger func() bool + SendBulkTransactions func(txs []*transaction.Transaction) (uint64, error) + StartConsensus func() error + ValidateTransaction func(tx *transaction.Transaction) error + ValidatorStatisticsApi func() (map[string]*state.ValidatorApiResponse, error)