Documentation
¶
Index ¶
- type SelectionMode
- type Tester
- func (tester *Tester) CheckChildWalletBalance(childWallet *txbuilder.Wallet) (*types.Transaction, error)
- func (tester *Tester) GetClient(mode SelectionMode, input int) *txbuilder.Client
- func (tester *Tester) GetRootWallet() *txbuilder.Wallet
- func (tester *Tester) GetWallet(mode SelectionMode, input int) *txbuilder.Wallet
- func (tester *Tester) PrepareClients() error
- func (tester *Tester) PrepareWallets(seed string) error
- func (tester *Tester) SetScenario(name string)
- func (tester *Tester) Start(seed string) error
- func (tester *Tester) Stop()
- type TesterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelectionMode ¶
type SelectionMode uint8
var ( SelectByIndex SelectionMode = 0 SelectRandom SelectionMode = 1 SelectRoundRobin SelectionMode = 2 )
type Tester ¶
type Tester struct {
// contains filtered or unexported fields
}
func NewTester ¶
func NewTester(config *TesterConfig) *Tester
func (*Tester) CheckChildWalletBalance ¶
func (*Tester) GetClient ¶
func (tester *Tester) GetClient(mode SelectionMode, input int) *txbuilder.Client
func (*Tester) GetRootWallet ¶
func (*Tester) GetWallet ¶
func (tester *Tester) GetWallet(mode SelectionMode, input int) *txbuilder.Wallet
func (*Tester) PrepareClients ¶
func (*Tester) PrepareWallets ¶
func (*Tester) SetScenario ¶
type TesterConfig ¶
type TesterConfig struct { RpcHosts []string // rpc host urls to use for blob tests WalletPrivkey string // pre-funded wallet privkey to use for blob tests WalletCount uint64 // number of child wallets to generate & use (based on walletPrivkey) WalletPrefund *uint256.Int // amount of funds to send to each child wallet WalletMinfund *uint256.Int // min amount of funds child wallets should hold - refill with walletPrefund if lower }
Click to show internal directories.
Click to hide internal directories.