mercury

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetBalance(payload *model.GetBalancePayload) (*model.GetBalanceResponse, error)
	BuildTransferTransaction(payload *model.TransferPayload) (*transaction.TransactionWithScriptGroups, error)
	BuildSimpleTransferTransaction(payload *model.SimpleTransferPayload) (*transaction.TransactionWithScriptGroups, error)
	BuildAdjustAccountTransaction(*model.BuildAdjustAccountPayload) (*transaction.TransactionWithScriptGroups, error)
	BuildSudtIssueTransaction(payload *model.BuildSudtIssueTransactionPayload) (*transaction.TransactionWithScriptGroups, error)
	RegisterAddresses(normalAddresses []string) ([]string, error)
	GetTransactionInfo(txHash types.Hash) (*model.GetTransactionInfoResponse, error)
	GetSpentTransactionWithTransactionInfo(*model.GetSpentTransactionPayload) (*model.TransactionInfoWrapper, error)
	GetSpentTransactionWithTransactionView(*model.GetSpentTransactionPayload) (*model.TransactionWithRichStatusWrapper, error)
	GetBlockInfo(payload *model.GetBlockInfoPayload) (*model.BlockInfo, error)
	GetAccountInfo(payload *model.GetAccountInfoPayload) (*model.AccountInfo, error)
	QueryTransactionsWithTransactionInfo(payload *model.QueryTransactionsPayload) (*model.PaginationResponseTransactionInfo, error)
	QueryTransactionsWithTransactionView(payload *model.QueryTransactionsPayload) (*model.PaginationResponseTransactionWithRichStatus, error)
	GetDbInfo() (*model.DBInfo, error)
	GetMercuryInfo() (*model.MercuryInfo, error)
	GetSyncState() (*model.MercurySyncState, error)
	BuildDaoDepositTransaction(payload *model.DaoDepositPayload) (*transaction.TransactionWithScriptGroups, error)
	BuildDaoWithdrawTransaction(payload *model.DaoWithdrawPayload) (*transaction.TransactionWithScriptGroups, error)
	BuildDaoClaimTransaction(payload *model.DaoClaimPayload) (*transaction.TransactionWithScriptGroups, error)
}

func Dial

func Dial(url string) (Client, error)

func DialContext

func DialContext(ctx context.Context, url string) (Client, error)

func NewClient

func NewClient(c *rpc.Client) Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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