caller

package
v0.0.0-...-a934766 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FallbackGasTipCap = big.NewInt(1500000000)
)

Functions

This section is empty.

Types

type ContractCaller

type ContractCaller struct {
	Ctx                        context.Context
	Cfg                        *ContractCallerConfig
	TreasureManagerContract    *bindings.TreasureManager
	RawTreasureManagerContract *bind.BoundContract
	WalletAddr                 ethc.Address
	TreasureManagerABI         *abi.ABI
	// contains filtered or unexported fields
}

func NewContractCaller

func NewContractCaller(ctx context.Context, cfg *ContractCallerConfig) (*ContractCaller, error)

func (*ContractCaller) IsMaxPriorityFeePerGasNotFoundError

func (c *ContractCaller) IsMaxPriorityFeePerGasNotFoundError(err error) bool

func (*ContractCaller) SendTransaction

func (c *ContractCaller) SendTransaction(ctx context.Context, tx *types.Transaction) error

func (*ContractCaller) Start

func (c *ContractCaller) Start() error

func (*ContractCaller) Stop

func (c *ContractCaller) Stop()

func (*ContractCaller) UpdateGasPrice

func (c *ContractCaller) UpdateGasPrice(ctx context.Context, tx *types.Transaction) (*types.Transaction, error)

type ContractCallerConfig

type ContractCallerConfig struct {
	ChainClient               *ethclient.Client
	ChainID                   *big.Int
	TreasureManagerAddr       ethc.Address
	WithdrawManageAddr        string
	PrivateKey                *ecdsa.PrivateKey
	LoopInterval              time.Duration
	SignerFn                  SignerFn
	NumConfirmations          uint64
	SafeAbortNonceTooLowCount uint64
	EnableHsm                 bool
	HsmAPIName                string
	HsmCreden                 string
	HsmAddress                string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL