transfers

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TransferSSZ = zssz.GetSSZ((*Transfer)(nil))

Functions

This section is empty.

Types

type Transfer

type Transfer struct {
	Sender    ValidatorIndex
	Recipient ValidatorIndex
	Amount    Gwei
	Fee       Gwei
	Slot      Slot         // CurrentSlot at which transfer must be processed
	Pubkey    BLSPubkey    // Sender withdrawal pubkey
	Signature BLSSignature // Signature checked against withdrawal pubkey
}

type TransferFeature

type TransferFeature struct {
	Meta interface {
		meta.Versioning
		meta.Proposers
		meta.RegistrySize
		meta.Validators
		meta.Balance
	}
}

func (*TransferFeature) ProcessTransfer

func (f *TransferFeature) ProcessTransfer(transfer *Transfer) error

func (*TransferFeature) ProcessTransfers

func (f *TransferFeature) ProcessTransfers(ops []Transfer) error

Verifies that there are no duplicate transfers, then processes in-order.

type TransferProcessor

type TransferProcessor interface {
	ProcessTransfers(ops []Transfer) error
	ProcessTransfer(transfer *Transfer) error
}

Jump to

Keyboard shortcuts

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