Documentation ¶
Index ¶
Constants ¶
View Source
const ( //nolint:lll DefaultContractBytecode = "" /* 8436-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseGenerator ¶
type BaseGenerator struct {
// contains filtered or unexported fields
}
func (*BaseGenerator) GetTransactionErrors ¶
func (bg *BaseGenerator) GetTransactionErrors() []*FailedTxnInfo
func (*BaseGenerator) MarkFailedTxn ¶
func (bg *BaseGenerator) MarkFailedTxn(failedTxn *FailedTxnInfo)
func (*BaseGenerator) SetGasEstimate ¶
func (bg *BaseGenerator) SetGasEstimate(gasEstimate uint64)
type ContractArtifact ¶
type ContractArtifact struct {
Bytecode string `json:"bytecode"`
}
func ReadContractArtifact ¶
func ReadContractArtifact(configPath string) (*ContractArtifact, error)
ReadContractArtifact reads the contract bytecode from the specified path
type DeployGenerator ¶
type DeployGenerator struct { BaseGenerator // contains filtered or unexported fields }
func NewDeployGenerator ¶
func NewDeployGenerator(params *GeneratorParams) (*DeployGenerator, error)
func (*DeployGenerator) GenerateTransaction ¶
func (dg *DeployGenerator) GenerateTransaction() (*types.Transaction, error)
func (*DeployGenerator) GetExampleTransaction ¶
func (dg *DeployGenerator) GetExampleTransaction() (*types.Transaction, error)
type FailedTxnInfo ¶
type GeneratorParams ¶
type TransactionGenerator ¶
type TransactionGenerator interface { GenerateTransaction() (*types.Transaction, error) GetExampleTransaction() (*types.Transaction, error) GetTransactionErrors() []*FailedTxnInfo MarkFailedTxn(failedTxn *FailedTxnInfo) SetGasEstimate(gasEstimate uint64) }
type TransferGenerator ¶
type TransferGenerator struct { BaseGenerator // contains filtered or unexported fields }
func NewTransferGenerator ¶
func NewTransferGenerator(params *GeneratorParams) (*TransferGenerator, error)
func (*TransferGenerator) GenerateTransaction ¶
func (tg *TransferGenerator) GenerateTransaction() (*types.Transaction, error)
func (*TransferGenerator) GetExampleTransaction ¶
func (tg *TransferGenerator) GetExampleTransaction() (*types.Transaction, error)
type TxnError ¶
type TxnError struct { Error error ErrorType TxnErrorType }
type TxnErrorType ¶
type TxnErrorType string
const ( ReceiptErrorType TxnErrorType = "ReceiptErrorType" AddErrorType TxnErrorType = "AddErrorType" )
Click to show internal directories.
Click to hide internal directories.