Documentation ¶
Index ¶
- Variables
- func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]string, ...) (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
- 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) UnpackLogIntoMap(out map[string]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
- type ContractBackend
- type ContractCaller
- type ContractFilterer
- type ContractTransactor
- type DeployBackend
- type FilterOpts
- type Lang
- type PendingContractCaller
- type SignerFn
- type TransactOpts
- type WatchOpts
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func WaitDeployed ¶
func WaitDeployed(ctx context.Context, b DeployBackend, tx *types.Transaction) (common.Address, error)
func WaitMined ¶
func WaitMined(ctx context.Context, b DeployBackend, tx *types.Transaction) (*types.Receipt, error)
Types ¶
type BoundContract ¶
type BoundContract struct {
// contains filtered or unexported fields
}
func DeployContract ¶
func DeployContract(opts *TransactOpts, abi abi.ABI, bytecode []byte, backend ContractBackend, params ...interface{}) (common.Address, *types.Transaction, *BoundContract, error)
func NewBoundContract ¶
func NewBoundContract(address common.Address, abi abi.ABI, caller ContractCaller, transactor ContractTransactor, filterer ContractFilterer) *BoundContract
func (*BoundContract) Call ¶
func (c *BoundContract) Call(opts *CallOpts, result interface{}, method string, params ...interface{}) error
func (*BoundContract) FilterLogs ¶
func (c *BoundContract) FilterLogs(opts *FilterOpts, name string, query ...[]interface{}) (chan types.Log, event.Subscription, error)
func (*BoundContract) Transact ¶
func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
func (*BoundContract) Transfer ¶
func (c *BoundContract) Transfer(opts *TransactOpts) (*types.Transaction, error)
func (*BoundContract) UnpackLog ¶
func (c *BoundContract) UnpackLog(out interface{}, event string, log types.Log) error
func (*BoundContract) UnpackLogIntoMap ¶
func (*BoundContract) WatchLogs ¶
func (c *BoundContract) WatchLogs(opts *WatchOpts, name string, query ...[]interface{}) (chan types.Log, event.Subscription, error)
type ContractBackend ¶
type ContractBackend interface { ContractCaller ContractTransactor ContractFilterer }
type ContractCaller ¶
type ContractFilterer ¶
type ContractTransactor ¶
type ContractTransactor interface { PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) SuggestGasPrice(ctx context.Context) (*big.Int, error) EstimateGas(ctx context.Context, call ligochain.CallMsg) (gas uint64, err error) SendTransaction(ctx context.Context, tx *types.Transaction) error }
type DeployBackend ¶
type PendingContractCaller ¶
type SignerFn ¶
type SignerFn func(types.Signer, common.Address, *types.Transaction) (*types.Transaction, error)
type TransactOpts ¶
type TransactOpts struct { From common.Address Nonce *big.Int Signer SignerFn Value *big.Int GasPrice *big.Int GasLimit uint64 Context context.Context }
func NewKeyStoreTransactor ¶
func NewKeyedTransactor ¶
func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts
func NewTransactor ¶
func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.