Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownRestAPIEntityType = errors.New("unknown REST API entity type")
ErrUnknownRestAPIEntityType signals that an unknown REST API entity type has been provided
Functions ¶
This section is empty.
Types ¶
type EndpointProvider ¶
type EndpointProvider interface { GetNetworkConfig() string GetNetworkEconomics() string GetRatingsConfig() string GetEnableEpochsConfig() string GetAccount(addressAsBech32 string) string GetCostTransaction() string GetSendTransaction() string GetSendMultipleTransactions() string GetTransactionStatus(hexHash string) string GetTransactionInfo(hexHash string) string GetHyperBlockByNonce(nonce uint64) string GetHyperBlockByHash(hexHash string) string GetVmValues() string GetGenesisNodesConfig() string GetRawStartOfEpochMetaBlock(epoch uint32) string GetNodeStatus(shardID uint32) string ShouldCheckShardIDForNodeStatus() bool GetRawBlockByHash(shardID uint32, hexHash string) string GetRawBlockByNonce(shardID uint32, nonce uint64) string GetRawMiniBlockByHash(shardID uint32, hexHash string, epoch uint32) string GetRestAPIEntityType() core.RestAPIEntityType IsInterfaceNil() bool }
EndpointProvider is able to return endpoint routes strings
func CreateEndpointProvider ¶
func CreateEndpointProvider(entityType core.RestAPIEntityType) (EndpointProvider, error)
CreateEndpointProvider creates a new instance of EndpointProvider
type FinalityProvider ¶
type FinalityProvider interface { CheckShardFinalization(ctx context.Context, targetShardID uint32, maxNoncesDelta uint64) error IsInterfaceNil() bool }
FinalityProvider is able to check the shard finalization status
func CreateFinalityProvider ¶
func CreateFinalityProvider(proxy proxy, checkFinality bool) (FinalityProvider, error)
CreateFinalityProvider creates a new instance of FinalityProvider
Click to show internal directories.
Click to hide internal directories.