Documentation ¶
Index ¶
- func InitCounter(client explorer.Explorer, addrs []*iotxaddress.Address) (map[string]uint64, error)
- func InjectByAps(wg *sync.WaitGroup, aps float64, counter map[string]uint64, ...)
- func InjectByInterval(transferNum int, transferGasLimit int, transferGasPrice int, ...)
- func LoadAddresses(keypairsPath string, chainID uint32) ([]*iotxaddress.Address, error)
- type KeyPair
- type KeyPairs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCounter ¶
InitCounter initializes the map of nonce counter of each address
func InjectByAps ¶
func InjectByAps( wg *sync.WaitGroup, aps float64, counter map[string]uint64, transferGasLimit int, transferGasPrice int, transferPayload string, voteGasLimit int, voteGasPrice int, contract string, executionAmount int, executionGasLimit int, executionGasPrice int, executionData string, client explorer.Explorer, admins []*iotxaddress.Address, delegates []*iotxaddress.Address, duration time.Duration, retryNum int, retryInterval int, resetInterval int, )
InjectByAps injects Actions in APS Mode
func InjectByInterval ¶
func InjectByInterval( transferNum int, transferGasLimit int, transferGasPrice int, transferPayload string, voteNum int, voteGasLimit int, voteGasPrice int, executionNum int, contract string, executionAmount int, executionGasLimit int, executionGasPrice int, executionData string, interval int, counter map[string]uint64, client explorer.Explorer, admins []*iotxaddress.Address, delegates []*iotxaddress.Address, retryNum int, retryInterval int, )
InjectByInterval injects Actions in Interval Mode
func LoadAddresses ¶
func LoadAddresses(keypairsPath string, chainID uint32) ([]*iotxaddress.Address, error)
LoadAddresses loads key pairs from key pair path and construct addresses
Types ¶
Click to show internal directories.
Click to hide internal directories.