Skip to content

Commit

Permalink
cleanup the Fund function in consumer (#11045)
Browse files Browse the repository at this point in the history
  • Loading branch information
shileiwill authored Oct 23, 2023
1 parent b7a2c77 commit b64010c
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions integration-tests/contracts/ethereum_keeper_contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ type KeeperRegistry interface {

type KeeperConsumer interface {
Address() string
Fund(ethAmount *big.Float) error
Counter(ctx context.Context) (*big.Int, error)
Start() error
}
Expand Down Expand Up @@ -1688,14 +1687,6 @@ func (v *EthereumKeeperConsumer) Address() string {
return v.address.Hex()
}

func (v *EthereumKeeperConsumer) Fund(ethAmount *big.Float) error {
gasEstimates, err := v.client.EstimateGas(geth.CallMsg{})
if err != nil {
return err
}
return v.client.Fund(v.address.Hex(), ethAmount, gasEstimates)
}

func (v *EthereumKeeperConsumer) Counter(ctx context.Context) (*big.Int, error) {
opts := &bind.CallOpts{
From: common.HexToAddress(v.client.GetDefaultWallet().Address()),
Expand Down Expand Up @@ -1733,14 +1724,6 @@ func (v *EthereumAutomationStreamsLookupUpkeepConsumer) Start() error {
return v.client.ProcessTransaction(tx)
}

func (v *EthereumAutomationStreamsLookupUpkeepConsumer) Fund(ethAmount *big.Float) error {
gasEstimates, err := v.client.EstimateGas(geth.CallMsg{})
if err != nil {
return err
}
return v.client.Fund(v.address.Hex(), ethAmount, gasEstimates)
}

func (v *EthereumAutomationStreamsLookupUpkeepConsumer) Counter(ctx context.Context) (*big.Int, error) {
opts := &bind.CallOpts{
From: common.HexToAddress(v.client.GetDefaultWallet().Address()),
Expand Down Expand Up @@ -1777,14 +1760,6 @@ func (v *EthereumAutomationLogTriggeredStreamsLookupUpkeepConsumer) Start() erro
return v.client.ProcessTransaction(tx)
}

func (v *EthereumAutomationLogTriggeredStreamsLookupUpkeepConsumer) Fund(ethAmount *big.Float) error {
gasEstimates, err := v.client.EstimateGas(geth.CallMsg{})
if err != nil {
return err
}
return v.client.Fund(v.address.Hex(), ethAmount, gasEstimates)
}

func (v *EthereumAutomationLogTriggeredStreamsLookupUpkeepConsumer) Counter(ctx context.Context) (*big.Int, error) {
opts := &bind.CallOpts{
From: common.HexToAddress(v.client.GetDefaultWallet().Address()),
Expand Down Expand Up @@ -1820,14 +1795,6 @@ func (v *EthereumAutomationLogCounterConsumer) Start() error {
return v.client.ProcessTransaction(tx)
}

func (v *EthereumAutomationLogCounterConsumer) Fund(ethAmount *big.Float) error {
gasEstimates, err := v.client.EstimateGas(geth.CallMsg{})
if err != nil {
return err
}
return v.client.Fund(v.address.Hex(), ethAmount, gasEstimates)
}

func (v *EthereumAutomationLogCounterConsumer) Counter(ctx context.Context) (*big.Int, error) {
opts := &bind.CallOpts{
From: common.HexToAddress(v.client.GetDefaultWallet().Address()),
Expand Down

0 comments on commit b64010c

Please sign in to comment.