Documentation ¶
Index ¶
- Constants
- 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() iotago.MilestoneIndex
- func (env *FaucetTestEnv) FlushRequestsAndConfirmNewFaucetBlock() error
- func (env *FaucetTestEnv) IssueMilestone(onTips ...iotago.BlockID) (*whiteflag.Confirmation, *whiteflag.ConfirmedMilestoneStats)
- func (env *FaucetTestEnv) ProtocolParameters() *iotago.ProtocolParameters
- func (env *FaucetTestEnv) RequestFunds(wallets ...*utils.HDWallet) (iotago.BlockIDs, error)
- func (env *FaucetTestEnv) RequestFundsAndIssueMilestone(wallets ...*utils.HDWallet) error
Constants ¶
View Source
const ( MinPoWScore = 10 ProtocolVersion = 2 BelowMaxDepth = 15 )
Variables ¶
This section is empty.
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() iotago.MilestoneIndex
func (*FaucetTestEnv) FlushRequestsAndConfirmNewFaucetBlock ¶
func (env *FaucetTestEnv) FlushRequestsAndConfirmNewFaucetBlock() error
FlushRequestsAndConfirmNewFaucetBlock flushes pending faucet requests, waits until the next faucet block is issued and issues a milestone on top of it.
func (*FaucetTestEnv) IssueMilestone ¶
func (env *FaucetTestEnv) IssueMilestone(onTips ...iotago.BlockID) (*whiteflag.Confirmation, *whiteflag.ConfirmedMilestoneStats)
func (*FaucetTestEnv) ProtocolParameters ¶
func (env *FaucetTestEnv) ProtocolParameters() *iotago.ProtocolParameters
func (*FaucetTestEnv) RequestFunds ¶
RequestFunds sends requests to the faucet and waits until the next faucet block is issued.
func (*FaucetTestEnv) RequestFundsAndIssueMilestone ¶
func (env *FaucetTestEnv) RequestFundsAndIssueMilestone(wallets ...*utils.HDWallet) error
RequestFundsAndIssueMilestone sends requests to the faucet, waits until the next faucet block is issued and issues a milestone on top of it.
Click to show internal directories.
Click to hide internal directories.