model

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentLogRecord

type PaymentLogRecord struct {
	Pk              int    `storm:"id,increment"` // primary key with auto increment
	Address         string `storm:"index"`
	VoteWeight      float64
	VoteWeightShare float64
	EarnedAmount100 float64
	EarnedAmountXX  float64
	VoteDuration    int
	Transaction     core.Transaction
	PaymentRecordID int       `storm:"index"`
	CreatedAt       time.Time `storm:"index"`
}

PaymentLogRecord structure Child structure

type PaymentRecord

type PaymentRecord struct {
	Pk               int    `storm:"id,increment"`
	Delegate         string `storm:"index"`
	ShareRatio       float64
	CostsRatio       float64
	ReserveRatio     float64
	PersonalRatio    float64
	Fidelity         bool
	FidelityLimit    int
	MinAmount        float64
	FeeDeduction     bool
	FeeAmount        float64
	NrOfTransactions int
	VoteWeight       int
	CreatedAt        time.Time `storm:"index"`
}

PaymentRecord structure MainStructure

Jump to

Keyboard shortcuts

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