grpc

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChainStatus

func GetChainStatus(cbs *ChainBrokerService) (*pb.Response, error)

func GetNetworkMeta

func GetNetworkMeta(cbs *ChainBrokerService) (*pb.Response, error)

func GetValidators

func GetValidators(cbs *ChainBrokerService) (*pb.Response, error)

Types

type Account

type Account struct {
	Type          string     `json:"type"`
	Balance       *big.Int   `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, genesis *repo.Genesis) (*ChainBrokerService, error)

func (*ChainBrokerService) CheckMasterPier added in v1.5.0

func (cbs *ChainBrokerService) CheckMasterPier(ctx context.Context, req *pb.Address) (*pb.Response, 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) GetBlockHeader

func (*ChainBrokerService) GetBlockHeaders added in v1.4.0

func (*ChainBrokerService) GetBlocks

func (*ChainBrokerService) GetChainID added in v1.13.0

func (cbs *ChainBrokerService) GetChainID(ctx context.Context, empty *pb.Empty) (*pb.Response, error)

func (*ChainBrokerService) GetChainMeta

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

func (*ChainBrokerService) GetInfo

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

func (*ChainBrokerService) GetInterchainTxWrappers added in v1.0.1

func (*ChainBrokerService) GetMultiSigns added in v1.0.1

func (cbs *ChainBrokerService) GetMultiSigns(ctx context.Context, req *pb.GetMultiSignsRequest) (*pb.SignResponse, error)

func (*ChainBrokerService) GetPendingNonceByAccount added in v1.0.1

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

func (*ChainBrokerService) GetReceipt

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

func (*ChainBrokerService) GetTPS added in v1.0.1

func (cbs *ChainBrokerService) GetTPS(ctx context.Context, req *pb.GetTPSRequest) (*pb.Response, error)

func (*ChainBrokerService) GetTransaction

func (*ChainBrokerService) HeartBeat added in v1.5.0

func (cbs *ChainBrokerService) HeartBeat(ctx context.Context, req *pb.PierInfo) (*pb.Response, error)

func (*ChainBrokerService) ReConfig added in v1.6.3

func (cbs *ChainBrokerService) ReConfig(config *repo.Config) error

func (*ChainBrokerService) SendTransaction

func (cbs *ChainBrokerService) SendTransaction(ctx context.Context, tx *pb.BxhTransaction) (*pb.TransactionHashMsg, error)

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

func (*ChainBrokerService) SendView added in v1.0.1

func (cbs *ChainBrokerService) SendView(_ context.Context, tx *pb.BxhTransaction) (*pb.Receipt, error)

func (*ChainBrokerService) SetMasterPier added in v1.5.0

func (cbs *ChainBrokerService) SetMasterPier(ctx context.Context, req *pb.PierInfo) (*pb.Response, error)

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.

type InterchainStatus

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

type SubscriptionKey added in v1.8.0

type SubscriptionKey struct {
	PierID      string `json:"pier_id"`
	AppchainDID string `json:"appchain_did"`
}

Jump to

Keyboard shortcuts

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