Documentation
¶
Index ¶
- Variables
- func CreateNewSubnet(ctx context.Context, genesisFilePath string) string
- func ExecuteHardHatTestOnNewBlockchain(ctx context.Context, test string)
- func RunCommand(bin string, args ...string) (*cmd.Cmd, error)
- func RunHardhatTests(test string, rpcURI string)
- type EvmClient
- func (ec *EvmClient) ConfirmTx(ctx context.Context, txHash common.Hash) (*big.Int, error)
- func (ec *EvmClient) FetchBalance(ctx context.Context, addr common.Address) (*big.Int, error)
- func (ec *EvmClient) FetchNonce(ctx context.Context, addr common.Address) (uint64, error)
- func (ec *EvmClient) TransferTx(ctx context.Context, sender common.Address, senderPriv *ecdsa.PrivateKey, ...) (*big.Int, error)
- func (ec *EvmClient) WaitForBalance(ctx context.Context, addr common.Address, minBalance *big.Int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultLocalNodeURI = "http://127.0.0.1:9650" NodeURIs = []string{DefaultLocalNodeURI, "http://127.0.0.1:9652", "http://127.0.0.1:9654", "http://127.0.0.1:9656", "http://127.0.0.1:9658"} )
Functions ¶
func RunCommand ¶
RunCommand starts the command [bin] with the given [args] and returns the command to the caller TODO cmd package mentions we can do this more efficiently with cmd.NewCmdOptions rather than looping and calling Status().
func RunHardhatTests ¶
Types ¶
type EvmClient ¶
type EvmClient struct {
// contains filtered or unexported fields
}
func NewEvmClient ¶
func (*EvmClient) FetchBalance ¶
func (*EvmClient) FetchNonce ¶
Click to show internal directories.
Click to hide internal directories.