services

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Errors = []*types.Error{
		ErrUnimplemented,
		ErrUnavailableOffline,
		ErrNotReady,
		ErrDeSo,
		ErrUnableToParseIntermediateResult,
		ErrUnableToGetCoins,
		ErrBlockNotFound,
		ErrMultipleSigners,
		ErrInvalidPublicKey,
		ErrInvalidCoin,
		ErrInvalidTransaction,
		ErrMultipleInputs,
	}

	ErrUnimplemented = &types.Error{
		Code:    0,
		Message: "Endpoint not implemented",
	}

	ErrUnavailableOffline = &types.Error{
		Code:    1,
		Message: "Endpoint unavailable offline",
	}

	ErrNotReady = &types.Error{
		Code:      2,
		Message:   "DeSo node is not ready",
		Retriable: true,
	}

	ErrDeSo = &types.Error{
		Code:    3,
		Message: "DeSo node error",
	}

	ErrUnableToParseIntermediateResult = &types.Error{
		Code:    4,
		Message: "Unable to parse intermediate result",
	}

	ErrUnableToGetCoins = &types.Error{
		Code:    5,
		Message: "Unable to get coins",
	}

	ErrBlockNotFound = &types.Error{
		Code:    6,
		Message: "Block not found",
	}

	ErrMultipleSigners = &types.Error{
		Code:    7,
		Message: "A transaction can only have one signer",
	}

	ErrInvalidPublicKey = &types.Error{
		Code:    8,
		Message: "Unable to parse public key",
	}

	ErrInvalidCoin = &types.Error{
		Code:    9,
		Message: "Unable to parse coin",
	}

	ErrInvalidTransaction = &types.Error{
		Code:    10,
		Message: "Unable to parse transaction",
	}

	ErrMultipleInputs = &types.Error{
		Code:    11,
		Message: "A transaction can only have one input",
	}
)

Functions

func NewAccountAPIService

func NewAccountAPIService(config *deso.Config, node *deso.Node) server.AccountAPIServicer

func NewBlockAPIService

func NewBlockAPIService(config *deso.Config, node *deso.Node) server.BlockAPIServicer

func NewBlockchainRouter

func NewBlockchainRouter(
	config *deso.Config,
	node *deso.Node,
	asserter *asserter.Asserter,
) http.Handler

func NewConstructionAPIService

func NewConstructionAPIService(config *deso.Config, node *deso.Node) server.ConstructionAPIServicer

func NewMempoolAPIService

func NewMempoolAPIService(config *deso.Config, node *deso.Node) server.MempoolAPIServicer

func NewNetworkAPIService

func NewNetworkAPIService(config *deso.Config, node *deso.Node) server.NetworkAPIServicer

func ParseCoinIdentifier

func ParseCoinIdentifier(coinIdentifier *types.CoinIdentifier) (*lib.BlockHash, uint32, error)

Types

type AccountAPIService

type AccountAPIService struct {
	// contains filtered or unexported fields
}

func (*AccountAPIService) AccountBalance

func (*AccountAPIService) AccountCoins

type BlockAPIService

type BlockAPIService struct {
	// contains filtered or unexported fields
}

func (*BlockAPIService) Block

func (*BlockAPIService) BlockTransaction

type ConstructionAPIService

type ConstructionAPIService struct {
	// contains filtered or unexported fields
}

func (*ConstructionAPIService) ConstructionCombine

func (*ConstructionAPIService) ConstructionDerive

func (*ConstructionAPIService) ConstructionHash

func (*ConstructionAPIService) ConstructionMetadata

func (*ConstructionAPIService) ConstructionParse

func (*ConstructionAPIService) ConstructionPayloads

func (*ConstructionAPIService) ConstructionPreprocess

func (*ConstructionAPIService) ConstructionSubmit

type MempoolAPIService

type MempoolAPIService struct {
	// contains filtered or unexported fields
}

func (*MempoolAPIService) Mempool

func (*MempoolAPIService) MempoolTransaction

type NetworkAPIService

type NetworkAPIService struct {
	// contains filtered or unexported fields
}

func (*NetworkAPIService) NetworkList

func (*NetworkAPIService) NetworkOptions

TODO (go): Implement

func (*NetworkAPIService) NetworkStatus

Jump to

Keyboard shortcuts

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