payer

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Address           string
	TotalFees         float64
	SelfBaked         float64
	TotalFeesUSD      float64
	TotalSelfBakedUSD float64
}

Node describes the node's total in PayoutResults

type Payer

type Payer struct {
	// contains filtered or unexported fields
}

Payer is a structure to represent pay operations

func NewPayer

func NewPayer(gt *goTezos.GoTezos, wallet account.Wallet, conf *options.Options) Payer

NewPayer returns is a contructor for Payer

func (*Payer) Payout

func (payer *Payer) Payout() (delegate.DelegateReport, [][]byte, error)

Payout uses the payers configuration that calls it, to pay out for the cycle in the conf

type Payout

type Payout struct {
	Address  string
	Share    float64
	Gross    float64
	Fee      float64
	Total    float64
	USDValue float64
}

Payout describes a single payout to a single address

type PayoutResults

type PayoutResults struct {
	OpHashes []string
	Payouts  []Payout
}

PayoutResults is a helper structure to describe results of a payout

Jump to

Keyboard shortcuts

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