Documentation ¶
Index ¶
Constants ¶
View Source
const UpgradeToVersion = "v4.1.0"
The version of that we're upgrading to (aka the current commit)
Variables ¶
This section is empty.
Functions ¶
func BroadcastTx ¶
Broadcast a tx to the node given the message and a signer address.
func Query ¶
func Query[Request proto.Message, Response proto.Message, Client interface{}]( n *Node, clientConstructor func(gogogrpc.ClientConn) Client, requestFn func(Client, context.Context, Request, ...grpc.CallOption) (Response, error), request Request) (proto.Message, error)
Query the node's grpc endpoint given the client constructor, request method, and request
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) LatestBlockHeight ¶
func (*Node) WaitUntilBlockHeight ¶
Wait for the current block height to reach at least `height`
type Testnet ¶
func NewTestnet ¶
NewTestnet returns a new Testnet. If creation fails, an error is returned. In some cases, resources could be initialized but not properly cleaned up. The error will reflect this.
func (*Testnet) CleanUp ¶
CleanUp cleans up any resources used by a Testnet. This should always be called to avoid leaking docker resources.
func (*Testnet) MustCleanUp ¶
func (t *Testnet) MustCleanUp()
Click to show internal directories.
Click to hide internal directories.