Versions in this module Expand all Collapse all v1 v1.2.0 Jun 19, 2022 v1.1.0 Jun 19, 2022 Changes in this version + var ErrNilAssetAmount = errors.New("cannot specify nil asset amount for native asset call") + var ErrNoAcceptedState = errors.New("backend does not support accepted state") + var ErrNoChainID = errors.New("no chain id specified") + var ErrNoCode = errors.New("no contract code at given address") + var ErrNoCodeAfterDeploy = errors.New("no contract code after deployment") + var ErrNotAuthorized = errors.New("not authorized to sign this account") + 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 AcceptedContractCaller interface + AcceptedCallContract func(ctx context.Context, call interfaces.CallMsg) ([]byte, error) + AcceptedCodeAt func(ctx context.Context, contract common.Address) ([]byte, 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, results *[]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) RawTransact(opts *TransactOpts, calldata []byte) (*types.Transaction, 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 struct + Accepted bool + BlockNumber *big.Int + Context context.Context + From common.Address + type ContractBackend interface + type ContractCaller interface + CallContract func(ctx context.Context, call interfaces.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 interfaces.FilterQuery) ([]types.Log, error) + SubscribeFilterLogs func(ctx context.Context, query interfaces.FilterQuery, ch chan<- types.Log) (interfaces.Subscription, error) + type ContractTransactor interface + AcceptedCodeAt func(ctx context.Context, account common.Address) ([]byte, error) + AcceptedNonceAt func(ctx context.Context, account common.Address) (uint64, error) + EstimateGas func(ctx context.Context, call interfaces.CallMsg) (gas uint64, err error) + HeaderByNumber func(ctx context.Context, number *big.Int) (*types.Header, error) + SendTransaction func(ctx context.Context, tx *types.Transaction) error + SuggestGasPrice func(ctx context.Context) (*big.Int, error) + SuggestGasTipCap 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 MetaData struct + ABI string + Bin string + Sigs map[string]string + func (m *MetaData) GetAbi() (*abi.ABI, error) + type NativeAssetCallOpts struct + AssetAmount *big.Int + AssetID common.Hash + type SignerFn func(common.Address, *types.Transaction) (*types.Transaction, error) + type TransactOpts struct + Context context.Context + From common.Address + GasFeeCap *big.Int + GasLimit uint64 + GasPrice *big.Int + GasTipCap *big.Int + NativeAssetCall *NativeAssetCallOpts + NoSend bool + Nonce *big.Int + Signer SignerFn + Value *big.Int + func NewClefTransactor(clef *external.ExternalSigner, account accounts.Account) *TransactOpts + func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account) (*TransactOpts, error) + func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accounts.Account, chainID *big.Int) (*TransactOpts, error) + func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts + func NewKeyedTransactorWithChainID(key *ecdsa.PrivateKey, chainID *big.Int) (*TransactOpts, error) + func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error) + func NewTransactorWithChainID(keyin io.Reader, passphrase string, chainID *big.Int) (*TransactOpts, error) + type WatchOpts struct + Context context.Context + Start *uint64