grpc

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Type          string     `json:"type"`
	Balance       uint64     `json:"balance"`
	ContractCount uint64     `json:"contract_count"`
	CodeHash      types.Hash `json:"code_hash"`
}

type ChainBrokerService

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

func NewChainBrokerService

func NewChainBrokerService(api api.CoreAPI, config *repo.Config) (*ChainBrokerService, error)

func (*ChainBrokerService) GetAccountBalance

func (cbs *ChainBrokerService) GetAccountBalance(ctx context.Context, req *pb.Address) (*pb.Response, error)

func (*ChainBrokerService) GetBlock

func (cbs *ChainBrokerService) GetBlock(ctx context.Context, req *pb.GetBlockRequest) (*pb.Block, error)

func (*ChainBrokerService) GetBlocks

func (*ChainBrokerService) GetChainMeta

func (cbs *ChainBrokerService) GetChainMeta(ctx context.Context, req *pb.Request) (*pb.ChainMeta, error)

func (*ChainBrokerService) GetChainStatus

func (cbs *ChainBrokerService) GetChainStatus(ctx context.Context, req *pb.Request) (*pb.Response, error)

func (*ChainBrokerService) GetMerkleWrapper

func (*ChainBrokerService) GetNetworkMeta

func (cbs *ChainBrokerService) GetNetworkMeta(ctx context.Context, req *pb.Request) (*pb.Response, error)

func (*ChainBrokerService) GetReceipt

func (cbs *ChainBrokerService) GetReceipt(ctx context.Context, req *pb.TransactionHashMsg) (*pb.Receipt, error)

func (*ChainBrokerService) GetTransaction

func (*ChainBrokerService) SendTransaction

SendTransaction handles transaction sent by the client. If the transaction is valid, it will return the transaction hash.

func (*ChainBrokerService) Start

func (cbs *ChainBrokerService) Start() error

func (*ChainBrokerService) Stop

func (cbs *ChainBrokerService) Stop() error

func (*ChainBrokerService) Subscribe

Subscribe implements the interface for client to Subscribe the certain type of event arose in bitxhub. This request will establish a websocket conn with client.

func (*ChainBrokerService) SyncMerkleWrapper

type InterchainStatus

type InterchainStatus struct {
	From string `json:"from"`
	To   string `json:"to"`
	Hash string `json:"hash"`
}

Jump to

Keyboard shortcuts

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