Versions in this module Expand all Collapse all v3 v3.0.1 Mar 15, 2024 v3.0.0 Mar 4, 2024 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 AsyncDeployContract(opts *TransactOpts, handler func(*types.Receipt, error), abi abi.ABI, ...) (*types.Transaction, error) + func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]string, ...) (string, error) + type BoundContract struct + func DeployContract(opts *TransactOpts, abi abi.ABI, bytecode []byte, abiStr string, ...) (common.Address, *types.Receipt, *BoundContract, error) + func DeployContractGetReceipt(opts *TransactOpts, abi abi.ABI, bytecode []byte, abiStr string, ...) (*types.Transaction, *types.Receipt, *BoundContract, error) + func NewBoundContract(address common.Address, abi abi.ABI, caller ContractCaller, ...) *BoundContract + func (c *BoundContract) AsyncTransact(opts *TransactOpts, handler func(*types.Receipt, error), method string, ...) (*types.Transaction, error) + func (c *BoundContract) Call(opts *CallOpts, result interface{}, method string, params ...interface{}) error + func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) + func (c *BoundContract) TransactWithResult(opts *TransactOpts, result interface{}, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) + func (c *BoundContract) Transfer(opts *TransactOpts) (*types.Transaction, *types.Receipt, 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(fromBlock *int64, handler func(int, []types.Log), name string, ...) (string, error) + type CallOpts struct + BlockNumber *big.Int + Context context.Context + From common.Address + Pending bool + type ContractBackend interface + type ContractCaller interface + CallContract func(ctx context.Context, call ethereum.CallMsg) ([]byte, error) + CodeAt func(ctx context.Context, contract common.Address) ([]byte, error) + type ContractFilterer interface + SubscribeEventLogs func(ctx context.Context, eventLogParams types.EventLogParams, ...) (string, error) + UnSubscribeEventLogs func(ctx context.Context, filterID string) error + type ContractTransactor interface + AsyncSendTransaction func(ctx context.Context, tx *types.Transaction, ...) error + GetChainID func(ctx context.Context) (string, error) + GetContractAddress func(ctx context.Context, txHash common.Hash) (common.Address, error) + GetGroupID func() string + PendingCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + SMCrypto func() bool + SendTransaction func(ctx context.Context, tx *types.Transaction) (*types.Receipt, error) + type DeployBackend interface + CodeAt func(ctx context.Context, account common.Address) ([]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 + const LangObjCHeader + type SignerFn func(types.Signer, common.Address, *types.Transaction) (*types.Transaction, error) + type TransactOpts struct + Context context.Context + From common.Address + GasLimit *big.Int + GasPrice *big.Int + Nonce *big.Int + Signer SignerFn + Value *big.Int + func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account) (*TransactOpts, error) + func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts + func NewSMCryptoTransactor(sm2Key []byte) *TransactOpts + func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error) + type WatchOpts struct + Context context.Context + Start *uint64 Other modules containing this package github.com/FISCO-BCOS/go-sdk