Documentation ¶
Index ¶
- type FacadeStub
- func (f *FacadeStub) AuctionListApi() ([]*common.AuctionListValidatorAPIResponse, error)
- func (f *FacadeStub) Close() error
- func (f *FacadeStub) ComputeTransactionGasLimit(tx *transaction.Transaction) (*transaction.CostResponse, error)
- func (f *FacadeStub) CreateTransaction(txArgs *external.ArgsCreateTransaction) (*transaction.Transaction, []byte, error)
- func (f *FacadeStub) DecodeAddressPubkey(pk string) ([]byte, error)
- func (f *FacadeStub) EncodeAddressPubkey(pk []byte) (string, error)
- func (f *FacadeStub) ExecuteSCQuery(query *process.SCQuery) (*vm.VMOutputApi, api.BlockInfo, error)
- func (f *FacadeStub) GetAccount(address string, options api.AccountQueryOptions) (api.AccountResponse, api.BlockInfo, error)
- func (f *FacadeStub) GetAccounts(addresses []string, options api.AccountQueryOptions) (map[string]*api.AccountResponse, api.BlockInfo, error)
- func (f *FacadeStub) GetAllESDTTokens(address string, options api.AccountQueryOptions) (map[string]*esdt.ESDigitalToken, api.BlockInfo, error)
- func (f *FacadeStub) GetAllIssuedESDTs(tokenType string) ([]string, error)
- func (f *FacadeStub) GetAlteredAccountsForBlock(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error)
- func (f *FacadeStub) GetBalance(address string, options api.AccountQueryOptions) (*big.Int, api.BlockInfo, error)
- func (f *FacadeStub) GetBlockByHash(hash string, options api.BlockQueryOptions) (*api.Block, error)
- func (f *FacadeStub) GetBlockByNonce(nonce uint64, options api.BlockQueryOptions) (*api.Block, error)
- func (f *FacadeStub) GetBlockByRound(round uint64, options api.BlockQueryOptions) (*api.Block, error)
- func (f *FacadeStub) GetCodeHash(address string, options api.AccountQueryOptions) ([]byte, api.BlockInfo, error)
- func (f *FacadeStub) GetConnectedPeersRatingsOnMainNetwork() (string, error)
- func (f *FacadeStub) GetDelegatorsList() ([]*api.Delegator, error)
- func (f *FacadeStub) GetDirectStakedList() ([]*api.DirectStakedValue, error)
- func (f *FacadeStub) GetESDTData(address string, key string, nonce uint64, options api.AccountQueryOptions) (*esdt.ESDigitalToken, api.BlockInfo, error)
- func (f *FacadeStub) GetESDTsRoles(address string, options api.AccountQueryOptions) (map[string][]string, api.BlockInfo, error)
- func (f *FacadeStub) GetESDTsWithRole(address string, role string, options api.AccountQueryOptions) ([]string, api.BlockInfo, error)
- func (f *FacadeStub) GetEligibleManagedKeys() ([]string, error)
- func (f *FacadeStub) GetEpochStartDataAPI(epoch uint32) (*common.EpochStartDataAPI, error)
- func (f *FacadeStub) GetGasConfigs() (map[string]map[string]uint64, error)
- func (f *FacadeStub) GetGenesisBalances() ([]*common.InitialAccountAPI, error)
- func (f *FacadeStub) GetGenesisNodesPubKeys() (map[uint32][]string, map[uint32][]string, error)
- func (f *FacadeStub) GetGuardianData(address string, options api.AccountQueryOptions) (api.GuardianData, api.BlockInfo, error)
- func (f *FacadeStub) GetHeartbeats() ([]data.PubKeyHeartbeat, error)
- func (f *FacadeStub) GetInternalMetaBlockByHash(format common.ApiOutputFormat, hash string) (interface{}, error)
- func (f *FacadeStub) GetInternalMetaBlockByNonce(format common.ApiOutputFormat, nonce uint64) (interface{}, error)
- func (f *FacadeStub) GetInternalMetaBlockByRound(format common.ApiOutputFormat, round uint64) (interface{}, error)
- func (f *FacadeStub) GetInternalMiniBlockByHash(format common.ApiOutputFormat, hash string, epoch uint32) (interface{}, error)
- func (f *FacadeStub) GetInternalShardBlockByHash(format common.ApiOutputFormat, hash string) (interface{}, error)
- func (f *FacadeStub) GetInternalShardBlockByNonce(format common.ApiOutputFormat, nonce uint64) (interface{}, error)
- func (f *FacadeStub) GetInternalShardBlockByRound(format common.ApiOutputFormat, round uint64) (interface{}, error)
- func (f *FacadeStub) GetInternalStartOfEpochMetaBlock(format common.ApiOutputFormat, epoch uint32) (interface{}, error)
- func (f *FacadeStub) GetInternalStartOfEpochValidatorsInfo(epoch uint32) ([]*state.ShardValidatorInfo, error)
- func (f *FacadeStub) GetKeyValuePairs(address string, options api.AccountQueryOptions) (map[string]string, api.BlockInfo, error)
- func (f *FacadeStub) GetLastPoolNonceForSender(sender string) (uint64, error)
- func (f *FacadeStub) GetLoadedKeys() []string
- func (f *FacadeStub) GetManagedKeys() []string
- func (f *FacadeStub) GetManagedKeysCount() int
- func (f *FacadeStub) GetNFTTokenIDsRegisteredByAddress(address string, options api.AccountQueryOptions) ([]string, api.BlockInfo, error)
- func (f *FacadeStub) GetPeerInfo(pid string) ([]core.QueryP2PPeerInfo, error)
- func (f *FacadeStub) GetProof(rootHash string, address string) (*common.GetProofResponse, error)
- func (f *FacadeStub) GetProofCurrentRootHash(address string) (*common.GetProofResponse, error)
- func (f *FacadeStub) GetProofDataTrie(rootHash string, address string, key string) (*common.GetProofResponse, *common.GetProofResponse, error)
- func (f *FacadeStub) GetQueryHandler(name string) (debug.QueryHandler, error)
- func (f *FacadeStub) GetSCRsByTxHash(txHash string, scrHash string) ([]*transaction.ApiSmartContractResult, error)
- func (f *FacadeStub) GetThrottlerForEndpoint(endpoint string) (core.Throttler, bool)
- func (f *FacadeStub) GetTokenSupply(token string) (*api.ESDTSupply, error)
- func (f *FacadeStub) GetTotalStakedValue() (*api.StakeValues, error)
- func (f *FacadeStub) GetTransaction(hash string, withResults bool) (*transaction.ApiTransactionResult, error)
- func (f *FacadeStub) GetTransactionsPool(fields string) (*common.TransactionsPoolAPIResponse, error)
- func (f *FacadeStub) GetTransactionsPoolForSender(sender, fields string) (*common.TransactionsPoolForSenderApiResponse, error)
- func (f *FacadeStub) GetTransactionsPoolNonceGapsForSender(sender string) (*common.TransactionsPoolNonceGapsForSenderApiResponse, error)
- func (f *FacadeStub) GetUsername(address string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
- func (f *FacadeStub) GetValueForKey(address string, key string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
- func (f *FacadeStub) GetWaitingEpochsLeftForPublicKey(publicKey string) (uint32, error)
- func (f *FacadeStub) GetWaitingManagedKeys() ([]string, error)
- func (f *FacadeStub) IsDataTrieMigrated(address string, options api.AccountQueryOptions) (bool, error)
- func (f *FacadeStub) IsInterfaceNil() bool
- func (f *FacadeStub) IsSelfTrigger() bool
- func (f *FacadeStub) NodeConfig() map[string]interface{}
- func (f *FacadeStub) P2PPrometheusMetricsEnabled() bool
- func (f *FacadeStub) PprofEnabled() bool
- func (f *FacadeStub) RestAPIServerDebugMode() bool
- func (f *FacadeStub) RestApiInterface() string
- func (f *FacadeStub) SendBulkTransactions(txs []*transaction.Transaction) (uint64, error)
- func (f *FacadeStub) SimulateTransactionExecution(tx *transaction.Transaction) (*txSimData.SimulationResultsWithVMOutput, error)
- func (f *FacadeStub) StatusMetrics() external.StatusMetricsHandler
- func (f *FacadeStub) Trigger(_ uint32, _ bool) error
- func (f *FacadeStub) ValidateTransaction(tx *transaction.Transaction) error
- func (f *FacadeStub) ValidateTransactionForSimulation(tx *transaction.Transaction, bypassSignature bool) error
- func (f *FacadeStub) ValidatorStatisticsApi() (map[string]*validator.ValidatorStatistics, error)
- func (f *FacadeStub) VerifyProof(rootHash string, address string, proof [][]byte) (bool, error)
- type HardforkFacade
- type LoggerStub
- 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(logLevel logger.LogLevel, message string, args ...interface{})
- func (l *LoggerStub) LogIfError(err error, args ...interface{})
- func (l *LoggerStub) LogLine(line *logger.LogLine)
- 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
- type QueryHandlerStub
- type ThrottlerStub
- type WrongFacade
- type WsConnStub
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FacadeStub ¶
type FacadeStub struct { ShouldErrorStart bool ShouldErrorStop bool GetHeartbeatsHandler func() ([]data.PubKeyHeartbeat, error) GetBalanceCalled func(address string, options api.AccountQueryOptions) (*big.Int, api.BlockInfo, error) GetAccountCalled func(address string, options api.AccountQueryOptions) (api.AccountResponse, api.BlockInfo, error) GetAccountsCalled func(addresses []string, options api.AccountQueryOptions) (map[string]*api.AccountResponse, api.BlockInfo, error) GenerateTransactionHandler func(sender string, receiver string, value *big.Int, code string) (*transaction.Transaction, error) GetTransactionHandler func(hash string, withResults bool) (*transaction.ApiTransactionResult, error) CreateTransactionHandler func(txArgs *external.ArgsCreateTransaction) (*transaction.Transaction, []byte, error) ValidateTransactionHandler func(tx *transaction.Transaction) error ValidateTransactionForSimulationHandler func(tx *transaction.Transaction, bypassSignature bool) error SendBulkTransactionsHandler func(txs []*transaction.Transaction) (uint64, error) ExecuteSCQueryHandler func(query *process.SCQuery) (*vm.VMOutputApi, api.BlockInfo, error) StatusMetricsHandler func() external.StatusMetricsHandler ValidatorStatisticsHandler func() (map[string]*validator.ValidatorStatistics, error) ComputeTransactionGasLimitHandler func(tx *transaction.Transaction) (*transaction.CostResponse, error) NodeConfigCalled func() map[string]interface{} GetQueryHandlerCalled func(name string) (debug.QueryHandler, error) GetValueForKeyCalled func(address string, key string, options api.AccountQueryOptions) (string, api.BlockInfo, error) GetGuardianDataCalled func(address string, options api.AccountQueryOptions) (api.GuardianData, api.BlockInfo, error) GetPeerInfoCalled func(pid string) ([]core.QueryP2PPeerInfo, error) GetConnectedPeersRatingsOnMainNetworkCalled func() (string, error) GetEpochStartDataAPICalled func(epoch uint32) (*common.EpochStartDataAPI, error) GetThrottlerForEndpointCalled func(endpoint string) (core.Throttler, bool) GetUsernameCalled func(address string, options api.AccountQueryOptions) (string, api.BlockInfo, error) GetCodeHashCalled func(address string, options api.AccountQueryOptions) ([]byte, api.BlockInfo, error) GetKeyValuePairsCalled func(address string, options api.AccountQueryOptions) (map[string]string, api.BlockInfo, error) SimulateTransactionExecutionHandler func(tx *transaction.Transaction) (*txSimData.SimulationResultsWithVMOutput, error) GetESDTDataCalled func(address string, key string, nonce uint64, options api.AccountQueryOptions) (*esdt.ESDigitalToken, api.BlockInfo, error) GetAllESDTTokensCalled func(address string, options api.AccountQueryOptions) (map[string]*esdt.ESDigitalToken, api.BlockInfo, error) GetESDTsWithRoleCalled func(address string, role string, options api.AccountQueryOptions) ([]string, api.BlockInfo, error) GetESDTsRolesCalled func(address string, options api.AccountQueryOptions) (map[string][]string, api.BlockInfo, error) GetNFTTokenIDsRegisteredByAddressCalled func(address string, options api.AccountQueryOptions) ([]string, api.BlockInfo, error) GetBlockByHashCalled func(hash string, options api.BlockQueryOptions) (*api.Block, error) GetBlockByNonceCalled func(nonce uint64, options api.BlockQueryOptions) (*api.Block, error) GetAlteredAccountsForBlockCalled func(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error) GetBlockByRoundCalled func(round uint64, options api.BlockQueryOptions) (*api.Block, error) GetInternalShardBlockByNonceCalled func(format common.ApiOutputFormat, nonce uint64) (interface{}, error) GetInternalShardBlockByHashCalled func(format common.ApiOutputFormat, hash string) (interface{}, error) GetInternalShardBlockByRoundCalled func(format common.ApiOutputFormat, round uint64) (interface{}, error) GetInternalMetaBlockByNonceCalled func(format common.ApiOutputFormat, nonce uint64) (interface{}, error) GetInternalMetaBlockByHashCalled func(format common.ApiOutputFormat, hash string) (interface{}, error) GetInternalMetaBlockByRoundCalled func(format common.ApiOutputFormat, round uint64) (interface{}, error) GetInternalStartOfEpochMetaBlockCalled func(format common.ApiOutputFormat, epoch uint32) (interface{}, error) GetInternalStartOfEpochValidatorsInfoCalled func(epoch uint32) ([]*state.ShardValidatorInfo, error) GetInternalMiniBlockByHashCalled func(format common.ApiOutputFormat, txHash string, epoch uint32) (interface{}, error) GetTotalStakedValueHandler func() (*api.StakeValues, error) GetAllIssuedESDTsCalled func(tokenType string) ([]string, error) GetDirectStakedListHandler func() ([]*api.DirectStakedValue, error) GetDelegatorsListHandler func() ([]*api.Delegator, error) GetProofCalled func(string, string) (*common.GetProofResponse, error) GetProofCurrentRootHashCalled func(string) (*common.GetProofResponse, error) GetProofDataTrieCalled func(string, string, string) (*common.GetProofResponse, *common.GetProofResponse, error) VerifyProofCalled func(string, string, [][]byte) (bool, error) GetTokenSupplyCalled func(token string) (*api.ESDTSupply, error) GetGenesisNodesPubKeysCalled func() (map[uint32][]string, map[uint32][]string, error) GetGenesisBalancesCalled func() ([]*common.InitialAccountAPI, error) GetTransactionsPoolCalled func(fields string) (*common.TransactionsPoolAPIResponse, error) GetTransactionsPoolForSenderCalled func(sender, fields string) (*common.TransactionsPoolForSenderApiResponse, error) GetLastPoolNonceForSenderCalled func(sender string) (uint64, error) GetTransactionsPoolNonceGapsForSenderCalled func(sender string) (*common.TransactionsPoolNonceGapsForSenderApiResponse, error) GetGasConfigsCalled func() (map[string]map[string]uint64, error) RestApiInterfaceCalled func() string RestAPIServerDebugModeCalled func() bool PprofEnabledCalled func() bool DecodeAddressPubkeyCalled func(pk string) ([]byte, error) IsDataTrieMigratedCalled func(address string, options api.AccountQueryOptions) (bool, error) GetManagedKeysCountCalled func() int GetManagedKeysCalled func() []string GetLoadedKeysCalled func() []string GetEligibleManagedKeysCalled func() ([]string, error) GetWaitingManagedKeysCalled func() ([]string, error) GetWaitingEpochsLeftForPublicKeyCalled func(publicKey string) (uint32, error) P2PPrometheusMetricsEnabledCalled func() bool AuctionListHandler func() ([]*common.AuctionListValidatorAPIResponse, error) GetSCRsByTxHashCalled func(txHash string, scrHash string) ([]*transaction.ApiSmartContractResult, error) }
FacadeStub is the mock implementation of a node router handler
func (*FacadeStub) AuctionListApi ¶ added in v1.7.0
func (f *FacadeStub) AuctionListApi() ([]*common.AuctionListValidatorAPIResponse, error)
AuctionListApi is the mock implementation of a handler's AuctionListApi method
func (*FacadeStub) ComputeTransactionGasLimit ¶
func (f *FacadeStub) ComputeTransactionGasLimit(tx *transaction.Transaction) (*transaction.CostResponse, error)
ComputeTransactionGasLimit -
func (*FacadeStub) CreateTransaction ¶
func (f *FacadeStub) CreateTransaction(txArgs *external.ArgsCreateTransaction) (*transaction.Transaction, []byte, error)
CreateTransaction is mock implementation of a handler's CreateTransaction method
func (*FacadeStub) DecodeAddressPubkey ¶
func (f *FacadeStub) DecodeAddressPubkey(pk string) ([]byte, error)
DecodeAddressPubkey -
func (*FacadeStub) EncodeAddressPubkey ¶
func (f *FacadeStub) EncodeAddressPubkey(pk []byte) (string, error)
EncodeAddressPubkey -
func (*FacadeStub) ExecuteSCQuery ¶
func (f *FacadeStub) ExecuteSCQuery(query *process.SCQuery) (*vm.VMOutputApi, api.BlockInfo, error)
ExecuteSCQuery is a mock implementation.
func (*FacadeStub) GetAccount ¶
func (f *FacadeStub) GetAccount(address string, options api.AccountQueryOptions) (api.AccountResponse, api.BlockInfo, error)
GetAccount -
func (*FacadeStub) GetAccounts ¶
func (f *FacadeStub) GetAccounts(addresses []string, options api.AccountQueryOptions) (map[string]*api.AccountResponse, api.BlockInfo, error)
GetAccounts -
func (*FacadeStub) GetAllESDTTokens ¶
func (f *FacadeStub) GetAllESDTTokens(address string, options api.AccountQueryOptions) (map[string]*esdt.ESDigitalToken, api.BlockInfo, error)
GetAllESDTTokens -
func (*FacadeStub) GetAllIssuedESDTs ¶
func (f *FacadeStub) GetAllIssuedESDTs(tokenType string) ([]string, error)
GetAllIssuedESDTs -
func (*FacadeStub) GetAlteredAccountsForBlock ¶
func (f *FacadeStub) GetAlteredAccountsForBlock(options api.GetAlteredAccountsForBlockOptions) ([]*alteredAccount.AlteredAccount, error)
GetAlteredAccountsForBlock -
func (*FacadeStub) GetBalance ¶
func (f *FacadeStub) GetBalance(address string, options api.AccountQueryOptions) (*big.Int, api.BlockInfo, error)
GetBalance is the mock implementation of a handler's GetBalance method
func (*FacadeStub) GetBlockByHash ¶
func (f *FacadeStub) GetBlockByHash(hash string, options api.BlockQueryOptions) (*api.Block, error)
GetBlockByHash -
func (*FacadeStub) GetBlockByNonce ¶
func (f *FacadeStub) GetBlockByNonce(nonce uint64, options api.BlockQueryOptions) (*api.Block, error)
GetBlockByNonce -
func (*FacadeStub) GetBlockByRound ¶
func (f *FacadeStub) GetBlockByRound(round uint64, options api.BlockQueryOptions) (*api.Block, error)
GetBlockByRound -
func (*FacadeStub) GetCodeHash ¶
func (f *FacadeStub) GetCodeHash(address string, options api.AccountQueryOptions) ([]byte, api.BlockInfo, error)
GetCodeHash -
func (*FacadeStub) GetConnectedPeersRatingsOnMainNetwork ¶ added in v1.6.0
func (f *FacadeStub) GetConnectedPeersRatingsOnMainNetwork() (string, error)
GetConnectedPeersRatingsOnMainNetwork -
func (*FacadeStub) GetDelegatorsList ¶
func (f *FacadeStub) GetDelegatorsList() ([]*api.Delegator, error)
GetDelegatorsList -
func (*FacadeStub) GetDirectStakedList ¶
func (f *FacadeStub) GetDirectStakedList() ([]*api.DirectStakedValue, error)
GetDirectStakedList -
func (*FacadeStub) GetESDTData ¶
func (f *FacadeStub) GetESDTData(address string, key string, nonce uint64, options api.AccountQueryOptions) (*esdt.ESDigitalToken, api.BlockInfo, error)
GetESDTData -
func (*FacadeStub) GetESDTsRoles ¶
func (f *FacadeStub) GetESDTsRoles(address string, options api.AccountQueryOptions) (map[string][]string, api.BlockInfo, error)
GetESDTsRoles -
func (*FacadeStub) GetESDTsWithRole ¶
func (f *FacadeStub) GetESDTsWithRole(address string, role string, options api.AccountQueryOptions) ([]string, api.BlockInfo, error)
GetESDTsWithRole -
func (*FacadeStub) GetEligibleManagedKeys ¶ added in v1.6.0
func (f *FacadeStub) GetEligibleManagedKeys() ([]string, error)
GetEligibleManagedKeys -
func (*FacadeStub) GetEpochStartDataAPI ¶
func (f *FacadeStub) GetEpochStartDataAPI(epoch uint32) (*common.EpochStartDataAPI, error)
GetEpochStartDataAPI -
func (*FacadeStub) GetGasConfigs ¶
func (f *FacadeStub) GetGasConfigs() (map[string]map[string]uint64, error)
GetGasConfigs -
func (*FacadeStub) GetGenesisBalances ¶
func (f *FacadeStub) GetGenesisBalances() ([]*common.InitialAccountAPI, error)
GetGenesisBalances -
func (*FacadeStub) GetGenesisNodesPubKeys ¶
GetGenesisNodesPubKeys -
func (*FacadeStub) GetGuardianData ¶ added in v1.5.0
func (f *FacadeStub) GetGuardianData(address string, options api.AccountQueryOptions) (api.GuardianData, api.BlockInfo, error)
GetGuardianData -
func (*FacadeStub) GetHeartbeats ¶
func (f *FacadeStub) GetHeartbeats() ([]data.PubKeyHeartbeat, error)
GetHeartbeats returns the slice of heartbeat info
func (*FacadeStub) GetInternalMetaBlockByHash ¶
func (f *FacadeStub) GetInternalMetaBlockByHash(format common.ApiOutputFormat, hash string) (interface{}, error)
GetInternalMetaBlockByHash -
func (*FacadeStub) GetInternalMetaBlockByNonce ¶
func (f *FacadeStub) GetInternalMetaBlockByNonce(format common.ApiOutputFormat, nonce uint64) (interface{}, error)
GetInternalMetaBlockByNonce -
func (*FacadeStub) GetInternalMetaBlockByRound ¶
func (f *FacadeStub) GetInternalMetaBlockByRound(format common.ApiOutputFormat, round uint64) (interface{}, error)
GetInternalMetaBlockByRound -
func (*FacadeStub) GetInternalMiniBlockByHash ¶
func (f *FacadeStub) GetInternalMiniBlockByHash(format common.ApiOutputFormat, hash string, epoch uint32) (interface{}, error)
GetInternalMiniBlockByHash -
func (*FacadeStub) GetInternalShardBlockByHash ¶
func (f *FacadeStub) GetInternalShardBlockByHash(format common.ApiOutputFormat, hash string) (interface{}, error)
GetInternalShardBlockByHash -
func (*FacadeStub) GetInternalShardBlockByNonce ¶
func (f *FacadeStub) GetInternalShardBlockByNonce(format common.ApiOutputFormat, nonce uint64) (interface{}, error)
GetInternalShardBlockByNonce -
func (*FacadeStub) GetInternalShardBlockByRound ¶
func (f *FacadeStub) GetInternalShardBlockByRound(format common.ApiOutputFormat, round uint64) (interface{}, error)
GetInternalShardBlockByRound -
func (*FacadeStub) GetInternalStartOfEpochMetaBlock ¶
func (f *FacadeStub) GetInternalStartOfEpochMetaBlock(format common.ApiOutputFormat, epoch uint32) (interface{}, error)
GetInternalStartOfEpochMetaBlock -
func (*FacadeStub) GetInternalStartOfEpochValidatorsInfo ¶
func (f *FacadeStub) GetInternalStartOfEpochValidatorsInfo(epoch uint32) ([]*state.ShardValidatorInfo, error)
GetInternalStartOfEpochValidatorsInfo -
func (*FacadeStub) GetKeyValuePairs ¶
func (f *FacadeStub) GetKeyValuePairs(address string, options api.AccountQueryOptions) (map[string]string, api.BlockInfo, error)
GetKeyValuePairs -
func (*FacadeStub) GetLastPoolNonceForSender ¶
func (f *FacadeStub) GetLastPoolNonceForSender(sender string) (uint64, error)
GetLastPoolNonceForSender -
func (*FacadeStub) GetLoadedKeys ¶ added in v1.6.16
func (f *FacadeStub) GetLoadedKeys() []string
GetLoadedKeys -
func (*FacadeStub) GetManagedKeys ¶ added in v1.6.0
func (f *FacadeStub) GetManagedKeys() []string
GetManagedKeys -
func (*FacadeStub) GetManagedKeysCount ¶ added in v1.6.0
func (f *FacadeStub) GetManagedKeysCount() int
GetManagedKeysCount -
func (*FacadeStub) GetNFTTokenIDsRegisteredByAddress ¶
func (f *FacadeStub) GetNFTTokenIDsRegisteredByAddress(address string, options api.AccountQueryOptions) ([]string, api.BlockInfo, error)
GetNFTTokenIDsRegisteredByAddress -
func (*FacadeStub) GetPeerInfo ¶
func (f *FacadeStub) GetPeerInfo(pid string) ([]core.QueryP2PPeerInfo, error)
GetPeerInfo -
func (*FacadeStub) GetProof ¶
func (f *FacadeStub) GetProof(rootHash string, address string) (*common.GetProofResponse, error)
GetProof -
func (*FacadeStub) GetProofCurrentRootHash ¶
func (f *FacadeStub) GetProofCurrentRootHash(address string) (*common.GetProofResponse, error)
GetProofCurrentRootHash -
func (*FacadeStub) GetProofDataTrie ¶
func (f *FacadeStub) GetProofDataTrie(rootHash string, address string, key string) (*common.GetProofResponse, *common.GetProofResponse, error)
GetProofDataTrie -
func (*FacadeStub) GetQueryHandler ¶
func (f *FacadeStub) GetQueryHandler(name string) (debug.QueryHandler, error)
GetQueryHandler -
func (*FacadeStub) GetSCRsByTxHash ¶ added in v1.7.18
func (f *FacadeStub) GetSCRsByTxHash(txHash string, scrHash string) ([]*transaction.ApiSmartContractResult, error)
GetSCRsByTxHash -
func (*FacadeStub) GetThrottlerForEndpoint ¶
func (f *FacadeStub) GetThrottlerForEndpoint(endpoint string) (core.Throttler, bool)
GetThrottlerForEndpoint -
func (*FacadeStub) GetTokenSupply ¶
func (f *FacadeStub) GetTokenSupply(token string) (*api.ESDTSupply, error)
GetTokenSupply -
func (*FacadeStub) GetTotalStakedValue ¶
func (f *FacadeStub) GetTotalStakedValue() (*api.StakeValues, error)
GetTotalStakedValue -
func (*FacadeStub) GetTransaction ¶
func (f *FacadeStub) GetTransaction(hash string, withResults bool) (*transaction.ApiTransactionResult, error)
GetTransaction is the mock implementation of a handler's GetTransaction method
func (*FacadeStub) GetTransactionsPool ¶
func (f *FacadeStub) GetTransactionsPool(fields string) (*common.TransactionsPoolAPIResponse, error)
GetTransactionsPool -
func (*FacadeStub) GetTransactionsPoolForSender ¶
func (f *FacadeStub) GetTransactionsPoolForSender(sender, fields string) (*common.TransactionsPoolForSenderApiResponse, error)
GetTransactionsPoolForSender -
func (*FacadeStub) GetTransactionsPoolNonceGapsForSender ¶
func (f *FacadeStub) GetTransactionsPoolNonceGapsForSender(sender string) (*common.TransactionsPoolNonceGapsForSenderApiResponse, error)
GetTransactionsPoolNonceGapsForSender -
func (*FacadeStub) GetUsername ¶
func (f *FacadeStub) GetUsername(address string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
GetUsername -
func (*FacadeStub) GetValueForKey ¶
func (f *FacadeStub) GetValueForKey(address string, key string, options api.AccountQueryOptions) (string, api.BlockInfo, error)
GetValueForKey is the mock implementation of a handler's GetValueForKey method
func (*FacadeStub) GetWaitingEpochsLeftForPublicKey ¶ added in v1.7.0
func (f *FacadeStub) GetWaitingEpochsLeftForPublicKey(publicKey string) (uint32, error)
GetWaitingEpochsLeftForPublicKey -
func (*FacadeStub) GetWaitingManagedKeys ¶ added in v1.6.0
func (f *FacadeStub) GetWaitingManagedKeys() ([]string, error)
GetWaitingManagedKeys -
func (*FacadeStub) IsDataTrieMigrated ¶ added in v1.6.0
func (f *FacadeStub) IsDataTrieMigrated(address string, options api.AccountQueryOptions) (bool, error)
IsDataTrieMigrated -
func (*FacadeStub) IsInterfaceNil ¶
func (f *FacadeStub) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*FacadeStub) NodeConfig ¶
func (f *FacadeStub) NodeConfig() map[string]interface{}
NodeConfig -
func (*FacadeStub) P2PPrometheusMetricsEnabled ¶ added in v1.7.0
func (f *FacadeStub) P2PPrometheusMetricsEnabled() bool
P2PPrometheusMetricsEnabled -
func (*FacadeStub) RestAPIServerDebugMode ¶
func (f *FacadeStub) RestAPIServerDebugMode() bool
RestAPIServerDebugMode -
func (*FacadeStub) RestApiInterface ¶
func (f *FacadeStub) RestApiInterface() string
RestApiInterface -
func (*FacadeStub) SendBulkTransactions ¶
func (f *FacadeStub) SendBulkTransactions(txs []*transaction.Transaction) (uint64, error)
SendBulkTransactions is the mock implementation of a handler's SendBulkTransactions method
func (*FacadeStub) SimulateTransactionExecution ¶
func (f *FacadeStub) SimulateTransactionExecution(tx *transaction.Transaction) (*txSimData.SimulationResultsWithVMOutput, error)
SimulateTransactionExecution is the mock implementation of a handler's SimulateTransactionExecution method
func (*FacadeStub) StatusMetrics ¶
func (f *FacadeStub) StatusMetrics() external.StatusMetricsHandler
StatusMetrics is the mock implementation for the StatusMetrics
func (*FacadeStub) ValidateTransaction ¶
func (f *FacadeStub) ValidateTransaction(tx *transaction.Transaction) error
ValidateTransaction -
func (*FacadeStub) ValidateTransactionForSimulation ¶
func (f *FacadeStub) ValidateTransactionForSimulation(tx *transaction.Transaction, bypassSignature bool) error
ValidateTransactionForSimulation -
func (*FacadeStub) ValidatorStatisticsApi ¶
func (f *FacadeStub) ValidatorStatisticsApi() (map[string]*validator.ValidatorStatistics, error)
ValidatorStatisticsApi is the mock implementation of a handler's ValidatorStatisticsApi method
func (*FacadeStub) VerifyProof ¶
VerifyProof -
type HardforkFacade ¶
type HardforkFacade struct { TriggerCalled func(epoch uint32, withEarlyEndOfEpoch bool) error IsSelfTriggerCalled func() bool }
HardforkFacade -
func (*HardforkFacade) IsInterfaceNil ¶
func (hf *HardforkFacade) IsInterfaceNil() bool
IsInterfaceNil -
func (*HardforkFacade) IsSelfTrigger ¶
func (hf *HardforkFacade) IsSelfTrigger() bool
IsSelfTrigger -
type LoggerStub ¶
type LoggerStub struct { LogCalled func(level logger.LogLevel, message string, args ...interface{}) LogLineCalled func(line *logger.LogLine) SetLevelCalled func(logLevel logger.LogLevel) }
LoggerStub -
func (*LoggerStub) Log ¶
func (l *LoggerStub) Log(logLevel logger.LogLevel, message string, args ...interface{})
Log -
func (*LoggerStub) LogIfError ¶
func (l *LoggerStub) LogIfError(err error, args ...interface{})
LogIfError -
type MarshalizerStub ¶
type MarshalizerStub struct { MarshalCalled func(obj interface{}) ([]byte, error) UnmarshalCalled func(obj interface{}, buff []byte) error }
MarshalizerStub -
func (*MarshalizerStub) IsInterfaceNil ¶
func (ms *MarshalizerStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*MarshalizerStub) Marshal ¶
func (ms *MarshalizerStub) Marshal(obj interface{}) ([]byte, error)
Marshal -
func (*MarshalizerStub) Unmarshal ¶
func (ms *MarshalizerStub) Unmarshal(obj interface{}, buff []byte) error
Unmarshal -
type QueryHandlerStub ¶
QueryHandlerStub -
func (*QueryHandlerStub) IsInterfaceNil ¶
func (qhs *QueryHandlerStub) IsInterfaceNil() bool
IsInterfaceNil -
type ThrottlerStub ¶
type ThrottlerStub struct { CanProcessCalled func() bool StartProcessingCalled func() EndProcessingCalled func() StartWasCalled bool EndWasCalled bool }
ThrottlerStub -
func (*ThrottlerStub) IsInterfaceNil ¶
func (ts *ThrottlerStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*ThrottlerStub) StartProcessing ¶
func (ts *ThrottlerStub) StartProcessing()
StartProcessing -
type WrongFacade ¶
type WrongFacade struct { }
WrongFacade is a struct that can be used as a wrong implementation of the node router handler
type WsConnStub ¶
type WsConnStub struct {
// contains filtered or unexported fields
}
WsConnStub -
func (*WsConnStub) ReadMessage ¶
func (wcs *WsConnStub) ReadMessage() (messageType int, p []byte, err error)
ReadMessage -
func (*WsConnStub) SetCloseHandler ¶
func (wcs *WsConnStub) SetCloseHandler(f func() error)
SetCloseHandler -
func (*WsConnStub) SetReadMessageHandler ¶
func (wcs *WsConnStub) SetReadMessageHandler(f func() (messageType int, p []byte, err error))
SetReadMessageHandler -
func (*WsConnStub) SetWriteMessageHandler ¶
func (wcs *WsConnStub) SetWriteMessageHandler(f func(messageType int, data []byte) error)
SetWriteMessageHandler -
func (*WsConnStub) WriteMessage ¶
func (wcs *WsConnStub) WriteMessage(messageType int, data []byte) error
WriteMessage -