remote

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: CC0-1.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	RPCNode  string // RPC node
	RESTNode string // REST node
	// contains filtered or unexported fields
}

Node implements a wrapper around both a Tendermint RPCConfig client and a chain SDK REST client that allows for essential data queries.

func NewNode

func NewNode(cfg *remoteConfig.Details, codec codec.Marshaler) (*Node, error)

NewNode allows to build a new Node instance

func (*Node) AccountBalance

func (cp *Node) AccountBalance(address string) (sdk.Coins, error)

AccountBalance implements node.Node

func (*Node) Block

func (cp *Node) Block(height int64) (*tmctypes.ResultBlock, error)

Block implements node.Node

func (*Node) BlockResults

func (cp *Node) BlockResults(height int64) (*tmctypes.ResultBlockResults, error)

BlockResults implements node.Node

func (*Node) ConsensusState

func (cp *Node) ConsensusState() (*constypes.RoundStateSimple, error)

ConsensusState implements node.Node

func (*Node) Genesis

func (cp *Node) Genesis() (*tmctypes.ResultGenesis, error)

Genesis implements node.Node

func (*Node) IBCTransferParams

func (cp *Node) IBCTransferParams() (types.IBCTransfer, error)

IBCTransferParams implements node.Node

func (*Node) Inflation

func (cp *Node) Inflation() (string, error)

Inflation implements node.Node

func (*Node) LatestHeight

func (cp *Node) LatestHeight() (int64, error)

LatestHeight implements node.Node

func (*Node) StakingPool

func (cp *Node) StakingPool() (stakingtypes.Pool, error)

StkingPool implements node.Node

func (*Node) Stop

func (cp *Node) Stop()

Stop implements node.Node

func (*Node) Supply

func (cp *Node) Supply() (sdk.Coins, error)

Supply implements node.Node

func (*Node) Validators

func (cp *Node) Validators(height int64) (*tmctypes.ResultValidators, error)

Validators implements node.Node

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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