deposit

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2022 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by ethgo/abigen. DO NOT EDIT. Hash: c7ac9f62b1ca54bf9b6bcedde8041ba5961c2ef62683c4ff6b77a19ae09bab7a Version: 0.1.2

Index

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

func DeployDeposit

func DeployDeposit(provider *jsonrpc.Client, from ethgo.Address, args []interface{}, opts ...contract.ContractOption) (contract.Txn, error)

DeployDeposit deploys a new Deposit contract

func DepositAbi

func DepositAbi() *abi.ABI

DepositAbi returns the abi of the Deposit contract

func DepositBin

func DepositBin() []byte

DepositBin returns the bin of the Deposit contract

func Input

func Input(depositKey *bls.Key, withdrawalKey *bls.Key, amountInGwei uint64) (*proto.DepositData, error)

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 (d *Deposit) DepositEventEventSig() ethgo.Hash

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL