client

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountClient

func NewAccountClient(conn *grpc.ClientConn) *accountClient

func NewBlockClient

func NewBlockClient(conn *grpc.ClientConn) *blockClient

func NewChainClient

func NewChainClient(conn *grpc.ClientConn) *chainClient

Types

type AccountClient

type AccountClient interface {
	GetByAddress(string, int64) (*accountpb.GetByAddressResponse, error)
}

type BlockClient

type BlockClient interface {
	GetByHeight(int64) (*blockpb.GetByHeightResponse, error)
}

type ChainClient

type ChainClient interface {
	//Queries
	GetHead() (*chainpb.GetHeadResponse, error)
	GetStatus() (*chainpb.GetStatusResponse, error)
	GetMetaByHeight(int64) (*chainpb.GetMetaByHeightResponse, error)
	GetConstants() (*chainpb.GetConstantsResponse, error)
}

type Client

type Client struct {
	Account             AccountClient
	Chain               ChainClient
	Block               BlockClient
	Event               EventClient
	State               StateClient
	Validator           ValidatorClient
	Transaction         TransactionClient
	Delegation          DelegationClient
	DebondingDelegation DebondingDelegationClient
	// contains filtered or unexported fields
}

func New

func New(connStr string, grpcMaxRecvSize int, grpcMaxSendSize int) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

type DebondingDelegationClient added in v0.7.0

type DebondingDelegationClient interface {
	GetByAddress(string, int64) (*debondingdelegationpb.GetByAddressResponse, error)
}

func NewDebondingDelegationClient added in v0.7.0

func NewDebondingDelegationClient(conn *grpc.ClientConn) DebondingDelegationClient

type DelegationClient added in v0.7.0

type DelegationClient interface {
	GetByAddress(string, int64) (*delegationpb.GetByAddressResponse, error)
}

func NewDelegationClient added in v0.7.0

func NewDelegationClient(conn *grpc.ClientConn) DelegationClient

type EventClient added in v0.5.2

type EventClient interface {
	GetEscrowEventsByHeight(int64) (*eventpb.GetEscrowEventsByHeightResponse, error)
	GetTransferEventsByHeight(int64) (*eventpb.GetTransferEventsByHeightResponse, error)
}

func NewEventClient added in v0.5.2

func NewEventClient(conn *grpc.ClientConn) EventClient

type StateClient

type StateClient interface {
	GetByHeight(int64) (*statepb.GetByHeightResponse, error)
	GetStakingByHeight(int64, bool) (*statepb.GetStakingByHeightResponse, error)
}

func NewStateClient

func NewStateClient(conn *grpc.ClientConn) StateClient

type TransactionClient

type TransactionClient interface {
	GetByHeight(int64) (*transactionpb.GetByHeightResponse, error)
	Broadcast(string) (*transactionpb.BroadcastResponse, error)
}

func NewTransactionClient

func NewTransactionClient(conn *grpc.ClientConn) TransactionClient

type ValidatorClient

type ValidatorClient interface {
	GetByHeight(int64) (*validatorpb.GetByHeightResponse, error)
}

func NewValidatorClient

func NewValidatorClient(conn *grpc.ClientConn) ValidatorClient

Jump to

Keyboard shortcuts

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