Documentation ¶
Index ¶
- Variables
- type ContractCaller
- func (c *ContractCaller) IsMaxPriorityFeePerGasNotFoundError(err error) bool
- func (c *ContractCaller) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (c *ContractCaller) Start() error
- func (c *ContractCaller) Stop()
- func (c *ContractCaller) UpdateGasPrice(ctx context.Context, tx *types.Transaction) (*types.Transaction, error)
- type ContractCallerConfig
- type SignerFn
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 }
Click to show internal directories.
Click to hide internal directories.