Documentation ¶
Overview ¶
Code generated by ethgo/abigen. DO NOT EDIT. Hash: c7ac9f62b1ca54bf9b6bcedde8041ba5961c2ef62683c4ff6b77a19ae09bab7a Version: 0.1.2
Index ¶
- Constants
- Variables
- func DeployDeposit(provider *jsonrpc.Client, from ethgo.Address, args []interface{}, ...) (contract.Txn, error)
- func DepositAbi() *abi.ABI
- func DepositBin() []byte
- func Input(depositKey *bls.Key, withdrawalKey *bls.Key, amountInGwei uint64) (*proto.DepositData, error)
- type Deposit
- func (d *Deposit) Deposit(pubkey []byte, withdrawalCredentials []byte, signature []byte, ...) (contract.Txn, error)
- func (d *Deposit) DepositEventEventSig() ethgo.Hash
- func (d *Deposit) GetDepositCount(block ...ethgo.BlockNumber) (retval0 []byte, err error)
- func (d *Deposit) GetDepositRoot(block ...ethgo.BlockNumber) (retval0 [32]byte, err error)
- func (d *Deposit) SupportsInterface(interfaceId [4]byte, block ...ethgo.BlockNumber) (retval0 bool, err error)
Constants ¶
View Source
const MinGweiAmount = uint64(320)
Variables ¶
View Source
var DepositEvent = abi.MustNewEvent(`event DepositEvent(
bytes pubkey,
bytes whitdrawalcred,
bytes amount,
bytes signature,
bytes index
)`)
DepositEvent is the eth2 deposit event
Functions ¶
Types ¶
type Deposit ¶
type Deposit struct {
// contains filtered or unexported fields
}
Deposit is a solidity contract
func NewDeposit ¶
func NewDeposit(addr ethgo.Address, opts ...contract.ContractOption) *Deposit
NewDeposit creates a new instance of the contract at a specific address
func (*Deposit) Deposit ¶
func (d *Deposit) Deposit(pubkey []byte, withdrawalCredentials []byte, signature []byte, depositDataRoot [32]byte) (contract.Txn, error)
Deposit sends a deposit transaction in the solidity contract
func (*Deposit) DepositEventEventSig ¶
func (*Deposit) GetDepositCount ¶
func (d *Deposit) GetDepositCount(block ...ethgo.BlockNumber) (retval0 []byte, err error)
GetDepositCount calls the get_deposit_count method in the solidity contract
func (*Deposit) GetDepositRoot ¶
func (d *Deposit) GetDepositRoot(block ...ethgo.BlockNumber) (retval0 [32]byte, err error)
GetDepositRoot calls the get_deposit_root method in the solidity contract
func (*Deposit) SupportsInterface ¶
func (d *Deposit) SupportsInterface(interfaceId [4]byte, block ...ethgo.BlockNumber) (retval0 bool, err error)
SupportsInterface calls the supportsInterface method in the solidity contract
Click to show internal directories.
Click to hide internal directories.