Documentation ¶
Index ¶
- func NewAccountClient(conn *grpc.ClientConn) *accountClient
- func NewBlockClient(conn *grpc.ClientConn) *blockClient
- func NewChainClient(conn *grpc.ClientConn) *chainClient
- type AccountClient
- type BlockClient
- type ChainClient
- type Client
- type DebondingDelegationClient
- type DelegationClient
- type EventClient
- type StateClient
- type TransactionClient
- type ValidatorClient
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 }
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
Click to show internal directories.
Click to hide internal directories.