Documentation ¶
Index ¶
- Variables
- type FaucetTestEnv
- func (env *FaucetTestEnv) AssertAddressUTXOCount(address iotago.Address, expected int)
- func (env *FaucetTestEnv) AssertFaucetBalance(expected uint64)
- func (env *FaucetTestEnv) Cleanup()
- func (env *FaucetTestEnv) ConfirmedMilestoneIndex() milestone.Index
- func (env *FaucetTestEnv) FlushRequestsAndConfirmNewFaucetMessage() error
- func (env *FaucetTestEnv) IssueMilestone(onTips ...hornet.MessageID) (*whiteflag.Confirmation, *whiteflag.ConfirmedMilestoneStats)
- func (env *FaucetTestEnv) RequestFunds(wallets ...*utils.HDWallet) (hornet.MessageIDs, error)
- func (env *FaucetTestEnv) RequestFundsAndIssueMilestone(wallets ...*utils.HDWallet) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MinPoWScore = 10.0 BelowMaxDepth = 15 )
Functions ¶
This section is empty.
Types ¶
type FaucetTestEnv ¶
type FaucetTestEnv struct { TestEnv *testsuite.TestEnvironment GenesisWallet *utils.HDWallet FaucetWallet *utils.HDWallet Wallet1 *utils.HDWallet Wallet2 *utils.HDWallet Wallet3 *utils.HDWallet Faucet *faucet.Faucet // contains filtered or unexported fields }
func NewFaucetTestEnv ¶
func (*FaucetTestEnv) AssertAddressUTXOCount ¶
func (env *FaucetTestEnv) AssertAddressUTXOCount(address iotago.Address, expected int)
func (*FaucetTestEnv) AssertFaucetBalance ¶
func (env *FaucetTestEnv) AssertFaucetBalance(expected uint64)
func (*FaucetTestEnv) Cleanup ¶
func (env *FaucetTestEnv) Cleanup()
func (*FaucetTestEnv) ConfirmedMilestoneIndex ¶
func (env *FaucetTestEnv) ConfirmedMilestoneIndex() milestone.Index
func (*FaucetTestEnv) FlushRequestsAndConfirmNewFaucetMessage ¶
func (env *FaucetTestEnv) FlushRequestsAndConfirmNewFaucetMessage() error
FlushRequestsAndConfirmNewFaucetMessage flushes pending faucet requests, waits until the next faucet message is issued and issues a milestone on top of it.
func (*FaucetTestEnv) IssueMilestone ¶
func (env *FaucetTestEnv) IssueMilestone(onTips ...hornet.MessageID) (*whiteflag.Confirmation, *whiteflag.ConfirmedMilestoneStats)
func (*FaucetTestEnv) RequestFunds ¶
func (env *FaucetTestEnv) RequestFunds(wallets ...*utils.HDWallet) (hornet.MessageIDs, error)
RequestFunds sends requests to the faucet and waits until the next faucet message is issued.
func (*FaucetTestEnv) RequestFundsAndIssueMilestone ¶
func (env *FaucetTestEnv) RequestFundsAndIssueMilestone(wallets ...*utils.HDWallet) error
RequestFundsAndIssueMilestone sends requests to the faucet, waits until the next faucet message is issued and issues a milestone on top of it.
Click to show internal directories.
Click to hide internal directories.