deposits

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DepositDataSSZ = zssz.GetSSZ((*DepositData)(nil))
View Source
var DepositSSZ = zssz.GetSSZ((*Deposit)(nil))

Functions

This section is empty.

Types

type Deposit

type Deposit struct {
	Proof [DEPOSIT_CONTRACT_TREE_DEPTH + 1]Root // Merkle-path to deposit data list root
	Data  DepositData
}

type DepositData

type DepositData struct {
	Pubkey                BLSPubkey
	WithdrawalCredentials Root
	Amount                Gwei
	Signature             BLSSignature
}

type DepositFeature

type DepositFeature struct {
	Meta interface {
		meta.Pubkeys
		meta.Deposits
		meta.Balance
		meta.Onboarding
		meta.Depositing
	}
}

func (*DepositFeature) ProcessDeposit

func (f *DepositFeature) ProcessDeposit(dep *Deposit) error

Process an Eth1 deposit, registering a validator or increasing its balance.

func (*DepositFeature) ProcessDeposits

func (f *DepositFeature) ProcessDeposits(ops []Deposit) error

Verify that outstanding deposits are processed up to the maximum number of deposits, then process all in order.

type DepositProcessor

type DepositProcessor interface {
	ProcessDeposits(ops []Deposit) error
	ProcessDeposit(dep *Deposit) error
}

Jump to

Keyboard shortcuts

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