Documentation
¶
Index ¶
- Constants
- Variables
- func BroadcastTx[M cosmos.Msg](n *Node, message M, signer string) (err error)
- func BroadcastTxWithoutValidateBasic[M cosmos.Msg](n *Node, message M, signer string) (err error)
- func Query[Request proto.Message, Response proto.Message, Client interface{}](n *Node, clientConstructor func(gogogrpc.ClientConn) Client, ...) (proto.Message, error)
- func UpgradeTestnet(nodeAddress string, t *testing.T, node *Node, upgradeToVersion string) error
- type Node
- type Testnet
Constants ¶
View Source
const GovModuleAddress = "dydx10d07y265gmmuvt4z0w9aw880jnsr700jnmapky"
Variables ¶
View Source
var NodeAddresses = []string{ constants.AliceAccAddress.String(), constants.BobAccAddress.String(), constants.CarlAccAddress.String(), constants.DaveAccAddress.String(), }
Functions ¶
func BroadcastTx ¶
Broadcast a tx to the node given the message and a signer address.
func BroadcastTxWithoutValidateBasic ¶
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.