Documentation ¶
Index ¶
- Variables
- func CreateDynamicTx(backend Backend, opts *bind.TransactOpts, to *common.Address, input []byte) (*types.Transaction, error)
- func EnrollErrors(aBIs ...*abi.ABI)
- func FindEventLog(logs []*types.Log, aBI *abi.ABI, name string) ([]*types.Log, error)
- func FindEventLogWithABI(logs []*types.Log, aBI *abi.ABI, name string) (abi.Event, []*types.Log, error)
- func SendDynamicTx(backend Backend, opts *bind.TransactOpts, to *common.Address, input []byte) (*types.Transaction, error)
- func ToEther(x interface{}) decimal.Decimal
- func ToRevert(input error) error
- func ToWei(x interface{}) *big.Int
- func UnpackEvents[T any](aBI *abi.ABI, name string, receipts ...*types.Receipt) ([]*T, error)
- func UnpackEventsIntoMap(aBI *abi.ABI, name string, receipts ...*types.Receipt) ([]map[string]interface{}, error)
- type Backend
- type Contract
- func (contract *Contract[T]) ABI() *abi.ABI
- func (contract *Contract[T]) Address() common.Address
- func (contract *Contract[T]) Funcs() *T
- func (contract *Contract[T]) SetABI(abi *abi.ABI) *Contract[T]
- func (contract *Contract[T]) SetABIWithError(abi *abi.ABI, err error) (*Contract[T], error)
- func (contract *Contract[T]) SetAddress(address common.Address) *Contract[T]
- type RevertError
- type Sig
- type TxPool
- func (txs *TxPool) AllReceiptStatusSuccessful(ctx context.Context) error
- func (txs *TxPool) Append(tx *types.Transaction) *types.Transaction
- func (txs *TxPool) Clear() error
- func (txs *TxPool) Exec(tx *types.Transaction, err error) error
- func (txs *TxPool) GetBackend(timeout time.Duration) bind.DeployBackend
- func (txs *TxPool) GetTxSize() int
- func (txs *TxPool) SetTimeout(timeout time.Duration) *TxPool
- func (txs *TxPool) WaitMined(ctx context.Context) ([]*types.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEventNotFind error = errors.New("could not found event")
)
Functions ¶
func CreateDynamicTx ¶
func CreateDynamicTx(backend Backend, opts *bind.TransactOpts, to *common.Address, input []byte) (*types.Transaction, error)
func EnrollErrors ¶
func FindEventLog ¶
func FindEventLogWithABI ¶
func SendDynamicTx ¶
func SendDynamicTx(backend Backend, opts *bind.TransactOpts, to *common.Address, input []byte) (*types.Transaction, error)
func UnpackEvents ¶
Types ¶
type Backend ¶
type Backend interface { bind.ContractBackend bind.DeployBackend }
type Contract ¶
type Contract[T any] struct { // contains filtered or unexported fields }
func DeployContract ¶
func DeployContract[T any](address common.Address, tx *types.Transaction, contract *T, err error) (*Contract[T], *types.Transaction, error)
func (*Contract[T]) SetABIWithError ¶
type RevertError ¶
type RevertError struct {
// contains filtered or unexported fields
}
func (*RevertError) Error ¶
func (err *RevertError) Error() string
type TxPool ¶
type TxPool struct {
// contains filtered or unexported fields
}
func NewTxPool ¶
func NewTxPool(backend bind.DeployBackend) *TxPool
func (*TxPool) AllReceiptStatusSuccessful ¶
func (*TxPool) Append ¶
func (txs *TxPool) Append(tx *types.Transaction) *types.Transaction
func (*TxPool) GetBackend ¶
func (txs *TxPool) GetBackend(timeout time.Duration) bind.DeployBackend
Click to show internal directories.
Click to hide internal directories.