Documentation ¶
Index ¶
- Variables
- type BeaconDepositContract
- type BeaconDepositContractCaller
- type BeaconDepositContractCallerRaw
- type BeaconDepositContractCallerSession
- type BeaconDepositContractDeposit
- type BeaconDepositContractDepositIterator
- type BeaconDepositContractFilterer
- func (_BeaconDepositContract *BeaconDepositContractFilterer) FilterDeposit(opts *bind.FilterOpts) (*BeaconDepositContractDepositIterator, error)
- func (_BeaconDepositContract *BeaconDepositContractFilterer) ParseDeposit(log types.Log) (*BeaconDepositContractDeposit, error)
- func (_BeaconDepositContract *BeaconDepositContractFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *BeaconDepositContractDeposit) (event.Subscription, error)
- type BeaconDepositContractRaw
- func (_BeaconDepositContract *BeaconDepositContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_BeaconDepositContract *BeaconDepositContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_BeaconDepositContract *BeaconDepositContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BeaconDepositContractSession
- type BeaconDepositContractTransactor
- type BeaconDepositContractTransactorRaw
- type BeaconDepositContractTransactorSession
- type WrappedABI
Constants ¶
This section is empty.
Variables ¶
var BeaconDepositContractABI = BeaconDepositContractMetaData.ABI
BeaconDepositContractABI is the input ABI used to generate the binding from. Deprecated: Use BeaconDepositContractMetaData.ABI instead.
var BeaconDepositContractMetaData = &bind.MetaData{
ABI: "[{\"type\":\"function\",\"name\":\"deposit\",\"inputs\":[{\"name\":\"pubkey\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"credentials\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"amount\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"signature\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"depositCount\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"Deposit\",\"inputs\":[{\"name\":\"pubkey\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"},{\"name\":\"credentials\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"},{\"name\":\"amount\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"signature\",\"type\":\"bytes\",\"indexed\":false,\"internalType\":\"bytes\"},{\"name\":\"index\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"DepositNotMultipleOfGwei\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"DepositValueTooHigh\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InsufficientDeposit\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidCredentialsLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidPubKeyLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidSignatureLength\",\"inputs\":[]}]",
}
BeaconDepositContractMetaData contains all meta data concerning the BeaconDepositContract contract.
Functions ¶
This section is empty.
Types ¶
type BeaconDepositContract ¶
type BeaconDepositContract struct { BeaconDepositContractCaller // Read-only binding to the contract BeaconDepositContractTransactor // Write-only binding to the contract BeaconDepositContractFilterer // Log filterer for contract events }
BeaconDepositContract is an auto generated Go binding around an Ethereum contract.
func NewBeaconDepositContract ¶
func NewBeaconDepositContract(address common.Address, backend bind.ContractBackend) (*BeaconDepositContract, error)
NewBeaconDepositContract creates a new instance of BeaconDepositContract, bound to a specific deployed contract.
type BeaconDepositContractCaller ¶
type BeaconDepositContractCaller struct {
// contains filtered or unexported fields
}
BeaconDepositContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBeaconDepositContractCaller ¶
func NewBeaconDepositContractCaller(address common.Address, caller bind.ContractCaller) (*BeaconDepositContractCaller, error)
NewBeaconDepositContractCaller creates a new read-only instance of BeaconDepositContract, bound to a specific deployed contract.
func (*BeaconDepositContractCaller) DepositCount ¶
func (_BeaconDepositContract *BeaconDepositContractCaller) DepositCount(opts *bind.CallOpts) (uint64, error)
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint64)
type BeaconDepositContractCallerRaw ¶
type BeaconDepositContractCallerRaw struct {
Contract *BeaconDepositContractCaller // Generic read-only contract binding to access the raw methods on
}
BeaconDepositContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BeaconDepositContractCallerRaw) Call ¶
func (_BeaconDepositContract *BeaconDepositContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type BeaconDepositContractCallerSession ¶
type BeaconDepositContractCallerSession struct { Contract *BeaconDepositContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BeaconDepositContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*BeaconDepositContractCallerSession) DepositCount ¶
func (_BeaconDepositContract *BeaconDepositContractCallerSession) DepositCount() (uint64, error)
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint64)
type BeaconDepositContractDeposit ¶
type BeaconDepositContractDeposit struct { Pubkey []byte Credentials []byte Amount uint64 Signature []byte Index uint64 Raw types.Log // Blockchain specific contextual infos }
BeaconDepositContractDeposit represents a Deposit event raised by the BeaconDepositContract contract.
type BeaconDepositContractDepositIterator ¶
type BeaconDepositContractDepositIterator struct { Event *BeaconDepositContractDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BeaconDepositContractDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the BeaconDepositContract contract.
func (*BeaconDepositContractDepositIterator) Close ¶
func (it *BeaconDepositContractDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BeaconDepositContractDepositIterator) Error ¶
func (it *BeaconDepositContractDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BeaconDepositContractDepositIterator) Next ¶
func (it *BeaconDepositContractDepositIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type BeaconDepositContractFilterer ¶
type BeaconDepositContractFilterer struct {
// contains filtered or unexported fields
}
BeaconDepositContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBeaconDepositContractFilterer ¶
func NewBeaconDepositContractFilterer(address common.Address, filterer bind.ContractFilterer) (*BeaconDepositContractFilterer, error)
NewBeaconDepositContractFilterer creates a new log filterer instance of BeaconDepositContract, bound to a specific deployed contract.
func (*BeaconDepositContractFilterer) FilterDeposit ¶
func (_BeaconDepositContract *BeaconDepositContractFilterer) FilterDeposit(opts *bind.FilterOpts) (*BeaconDepositContractDepositIterator, error)
FilterDeposit is a free log retrieval operation binding the contract event 0x68af751683498a9f9be59fe8b0d52a64dd155255d85cdb29fea30b1e3f891d46.
Solidity: event Deposit(bytes pubkey, bytes credentials, uint64 amount, bytes signature, uint64 index)
func (*BeaconDepositContractFilterer) ParseDeposit ¶
func (_BeaconDepositContract *BeaconDepositContractFilterer) ParseDeposit(log types.Log) (*BeaconDepositContractDeposit, error)
ParseDeposit is a log parse operation binding the contract event 0x68af751683498a9f9be59fe8b0d52a64dd155255d85cdb29fea30b1e3f891d46.
Solidity: event Deposit(bytes pubkey, bytes credentials, uint64 amount, bytes signature, uint64 index)
func (*BeaconDepositContractFilterer) WatchDeposit ¶
func (_BeaconDepositContract *BeaconDepositContractFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *BeaconDepositContractDeposit) (event.Subscription, error)
WatchDeposit is a free log subscription operation binding the contract event 0x68af751683498a9f9be59fe8b0d52a64dd155255d85cdb29fea30b1e3f891d46.
Solidity: event Deposit(bytes pubkey, bytes credentials, uint64 amount, bytes signature, uint64 index)
type BeaconDepositContractRaw ¶
type BeaconDepositContractRaw struct {
Contract *BeaconDepositContract // Generic contract binding to access the raw methods on
}
BeaconDepositContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BeaconDepositContractRaw) Call ¶
func (_BeaconDepositContract *BeaconDepositContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*BeaconDepositContractRaw) Transact ¶
func (_BeaconDepositContract *BeaconDepositContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BeaconDepositContractRaw) Transfer ¶
func (_BeaconDepositContract *BeaconDepositContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type BeaconDepositContractSession ¶
type BeaconDepositContractSession struct { Contract *BeaconDepositContract // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BeaconDepositContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BeaconDepositContractSession) Deposit ¶
func (_BeaconDepositContract *BeaconDepositContractSession) Deposit(pubkey []byte, credentials []byte, amount uint64, signature []byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x5b70fa29.
Solidity: function deposit(bytes pubkey, bytes credentials, uint64 amount, bytes signature) payable returns()
func (*BeaconDepositContractSession) DepositCount ¶
func (_BeaconDepositContract *BeaconDepositContractSession) DepositCount() (uint64, error)
DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.
Solidity: function depositCount() view returns(uint64)
type BeaconDepositContractTransactor ¶
type BeaconDepositContractTransactor struct {
// contains filtered or unexported fields
}
BeaconDepositContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBeaconDepositContractTransactor ¶
func NewBeaconDepositContractTransactor(address common.Address, transactor bind.ContractTransactor) (*BeaconDepositContractTransactor, error)
NewBeaconDepositContractTransactor creates a new write-only instance of BeaconDepositContract, bound to a specific deployed contract.
func (*BeaconDepositContractTransactor) Deposit ¶
func (_BeaconDepositContract *BeaconDepositContractTransactor) Deposit(opts *bind.TransactOpts, pubkey []byte, credentials []byte, amount uint64, signature []byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x5b70fa29.
Solidity: function deposit(bytes pubkey, bytes credentials, uint64 amount, bytes signature) payable returns()
type BeaconDepositContractTransactorRaw ¶
type BeaconDepositContractTransactorRaw struct {
Contract *BeaconDepositContractTransactor // Generic write-only contract binding to access the raw methods on
}
BeaconDepositContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BeaconDepositContractTransactorRaw) Transact ¶
func (_BeaconDepositContract *BeaconDepositContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BeaconDepositContractTransactorRaw) Transfer ¶
func (_BeaconDepositContract *BeaconDepositContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type BeaconDepositContractTransactorSession ¶
type BeaconDepositContractTransactorSession struct { Contract *BeaconDepositContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BeaconDepositContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BeaconDepositContractTransactorSession) Deposit ¶
func (_BeaconDepositContract *BeaconDepositContractTransactorSession) Deposit(pubkey []byte, credentials []byte, amount uint64, signature []byte) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0x5b70fa29.
Solidity: function deposit(bytes pubkey, bytes credentials, uint64 amount, bytes signature) payable returns()
type WrappedABI ¶
WrappedABI extends the abi.ABI struct to provide additional functionality for working with wrapped ABIs.
func NewWrappedABI ¶
func NewWrappedABI(a *abi.ABI) *WrappedABI
NewWrappedABI creates a new WrappedABI instance from a given abi.ABI reference.
func (WrappedABI) UnpackLogs ¶
func (wabi WrappedABI) UnpackLogs( out interface{}, event string, log types.Log, ) error
UnpackLogs attempts to unpack log entries for a specific event.