factory

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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
	GetGuardianData(address string) string
	GetRestAPIEntityType() core.RestAPIEntityType
	GetValidatorsInfo(epoch uint32) string
	GetProcessedTransactionStatus(hexHash string) string
	GetESDTTokenData(addressAsBech32 string, tokenIdentifier string) string
	GetNFTTokenData(addressAsBech32 string, tokenIdentifier string, nonce uint64) string
	IsDataTrieMigrated(addressAsBech32 string) string
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL