aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/bind/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/abi/bind/backend.go')
-rw-r--r--accounts/abi/bind/backend.go20
1 files changed, 12 insertions, 8 deletions
diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go
index 596e97f1d..328f9f3b7 100644
--- a/accounts/abi/bind/backend.go
+++ b/accounts/abi/bind/backend.go
@@ -38,14 +38,18 @@ type ContractCaller interface {
// to the transactor to decide.
type ContractTransactor interface {
// Nonce retrieves the current pending nonce associated with an account.
- AccountNonce(account common.Address) (uint64, error)
-
- // GasPrice retrieves the currently suggested gas price to allow a timely execution
- // of a transaction.
- GasPrice() (*big.Int, error)
-
- // GasLimit tries to estimate the gas needed to execute a specific transaction.
- GasLimit(sender common.Address, contract *common.Address, value *big.Int, data []byte) (*big.Int, error)
+ PendingAccountNonce(account common.Address) (uint64, error)
+
+ // SuggestGasPrice retrieves the currently suggested gas price to allow a timely
+ // execution of a transaction.
+ SuggestGasPrice() (*big.Int, error)
+
+ // EstimateGasLimit tries to estimate the gas needed to execute a specific
+ // transaction based on the current pending state of the backend blockchain.
+ // There is no guarantee that this is the true gas limit requirement as other
+ // transactions may be added or removed by miners, but it should provide a basis
+ // for setting a reasonable default.
+ EstimateGasLimit(sender common.Address, contract *common.Address, value *big.Int, data []byte) (*big.Int, error)
// SendTransaction injects the transaction into the pending pool for execution.
SendTransaction(*types.Transaction) error