diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-03-21 20:34:49 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-03-24 23:09:45 +0800 |
commit | 73308dbe0e08db015a7c461b5be1755dc3fcc737 (patch) | |
tree | aa6d4c875884f20fc96f055f99f867f779500980 /accounts/abi/bind/backend.go | |
parent | 86cfc22c79594bd0d9625650dcbfb60c3e6ba9fe (diff) | |
download | go-tangerine-73308dbe0e08db015a7c461b5be1755dc3fcc737.tar go-tangerine-73308dbe0e08db015a7c461b5be1755dc3fcc737.tar.gz go-tangerine-73308dbe0e08db015a7c461b5be1755dc3fcc737.tar.bz2 go-tangerine-73308dbe0e08db015a7c461b5be1755dc3fcc737.tar.lz go-tangerine-73308dbe0e08db015a7c461b5be1755dc3fcc737.tar.xz go-tangerine-73308dbe0e08db015a7c461b5be1755dc3fcc737.tar.zst go-tangerine-73308dbe0e08db015a7c461b5be1755dc3fcc737.zip |
accounts/abi/bind, cmd/abigen: port to templates, bind to solidity
Diffstat (limited to 'accounts/abi/bind/backend.go')
-rw-r--r-- | accounts/abi/bind/backend.go | 20 |
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 |