Versions in this module Expand all Collapse all v0 v0.0.0 Apr 26, 2018 Changes in this version + var ErrNoCode = errors.New("no contract code at given address") + var ErrNoCodeAfterDeploy = errors.New("no contract code after deployment") + var ErrNoPendingState = errors.New("backend does not support pending state") + func Bind(types []string, abis []string, bytecodes []string, pkg string, lang Lang) (string, error) + func WaitDeployed(ctx context.Context, b DeployBackend, tx *types.Transaction) (common.Address, error) + func WaitMined(ctx context.Context, b DeployBackend, tx *types.Transaction) (*types.Receipt, error) + type BoundContract struct + func DeployContract(opts *TransactOpts, abi abi.ABI, bytecode []byte, backend ContractBackend, ...) (common.Address, *types.Transaction, *BoundContract, error) + func NewBoundContract(address common.Address, abi abi.ABI, caller ContractCaller, ...) *BoundContract + func (c *BoundContract) Call(opts *CallOpts, result interface{}, method string, params ...interface{}) error + func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]interface{}) (chan types.Log, event.Subscription, error) + func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (c *BoundContract) Transfer(opts *TransactOpts) (*types.Transaction, error) + func (c *BoundContract) UnpackLog(out interface{}, event string, log types.Log) error + func (c *BoundContract) WatchLogs(opts *WatchOpts, name string, query ...[]interface{}) (chan types.Log, event.Subscription, error) + type CallOpts struct + Context context.Context + From common.Address + Pending bool + type ContractBackend interface + type ContractCaller interface + CallContract func(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) + CodeAt func(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) + type ContractFilterer interface + FilterLogs func(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error) + SubscribeFilterLogs func(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) + type ContractTransactor interface + EstimateGas func(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error) + PendingCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + PendingNonceAt func(ctx context.Context, account common.Address) (uint64, error) + SendTransaction func(ctx context.Context, tx *types.Transaction) error + SuggestGasPrice func(ctx context.Context) (*big.Int, error) + type DeployBackend interface + CodeAt func(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error) + TransactionReceipt func(ctx context.Context, txHash common.Hash) (*types.Receipt, error) + type FilterOpts struct + Context context.Context + End *uint64 + Start uint64 + type Lang int + const LangGo + const LangJava + const LangObjC + type PendingContractCaller interface + PendingCallContract func(ctx context.Context, call ethereum.CallMsg) ([]byte, error) + PendingCodeAt func(ctx context.Context, contract common.Address) ([]byte, error) + type SignerFn func(types.Signer, common.Address, *types.Transaction) (*types.Transaction, error) + type TransactOpts struct + Context context.Context + From common.Address + GasLimit uint64 + GasPrice *big.Int + Nonce *big.Int + Signer SignerFn + Value *big.Int + func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts + func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error) + type WatchOpts struct + Context context.Context + Start *uint64