app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REVERSION_LEN = 100
)

Variables

View Source
var (
	SINGLE_ID           int32  = 1
	REVERSION_FILE_NAME string = "reversion_log"
)

Functions

This section is empty.

Types

type AccountCreateEvaluator

type AccountCreateEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*AccountCreateEvaluator) Apply

func (ev *AccountCreateEvaluator) Apply()

type ApplyContext

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

type BaseEvaluator

type BaseEvaluator interface {
	Apply()
}

type BpRegisterEvaluator

type BpRegisterEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*BpRegisterEvaluator) Apply

func (ev *BpRegisterEvaluator) Apply()

type BpUnregisterEvaluator

type BpUnregisterEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*BpUnregisterEvaluator) Apply

func (ev *BpUnregisterEvaluator) Apply()

type BpVoteEvaluator

type BpVoteEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*BpVoteEvaluator) Apply

func (ev *BpVoteEvaluator) Apply()

type ClaimAllEvaluator

type ClaimAllEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

I can cat out this awkward claimall operation until I can get value from rpc resp

func (*ClaimAllEvaluator) Apply

func (ev *ClaimAllEvaluator) Apply()

type ClaimEvaluator

type ClaimEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*ClaimEvaluator) Apply

func (ev *ClaimEvaluator) Apply()

type Controller

type Controller struct {
	iservices.IController
	// contains filtered or unexported fields
}

func NewController

func NewController(ctx *node.ServiceContext) (*Controller, error)

service constructor

func (*Controller) AddWeightedVP

func (c *Controller) AddWeightedVP(value uint64)

func (*Controller) ClearPending

func (c *Controller) ClearPending() []*prototype.TransactionWrapper

func (*Controller) Commit

func (c *Controller) Commit(num uint32)

func (*Controller) GenerateBlock

func (c *Controller) GenerateBlock(witness string, pre *prototype.Sha256, timestamp uint32,
	priKey *prototype.PrivateKeyType, skip prototype.SkipFlag) *prototype.SignedBlock

func (*Controller) GetIncrementSlotAtTime

func (c *Controller) GetIncrementSlotAtTime(t *prototype.TimePointSec) uint32

func (*Controller) GetProps

func (c *Controller) GetProps() *prototype.DynamicProperties

func (*Controller) GetScheduledWitness

func (c *Controller) GetScheduledWitness(slot uint32) *prototype.AccountName

func (*Controller) GetShuffledWitness

func (c *Controller) GetShuffledWitness() []string

func (*Controller) GetSlotTime

func (c *Controller) GetSlotTime(slot uint32) *prototype.TimePointSec

func (*Controller) GetWitnessTopN

func (c *Controller) GetWitnessTopN(n uint32) []string

func (*Controller) HeadBlockTime

func (c *Controller) HeadBlockTime() *prototype.TimePointSec

func (*Controller) Open

func (c *Controller) Open()

func (*Controller) PopBlockTo

func (c *Controller) PopBlockTo(num uint32)

func (*Controller) PushBlock

func (c *Controller) PushBlock(blk *prototype.SignedBlock, skip prototype.SkipFlag) error

func (*Controller) PushTrx

func (*Controller) SetBus

func (c *Controller) SetBus(bus EventBus.Bus)

func (*Controller) SetDB

func (c *Controller) SetDB(db iservices.IDatabaseService)

for easy test

func (*Controller) SetShuffledWitness

func (c *Controller) SetShuffledWitness(names []string)

func (*Controller) Start

func (c *Controller) Start(node *node.Node) error

func (*Controller) Stop

func (c *Controller) Stop() error

func (*Controller) TransferFromVest

func (c *Controller) TransferFromVest(value *prototype.Vest)

func (*Controller) TransferToVest

func (c *Controller) TransferToVest(value *prototype.Coin)

type FollowEvaluator

type FollowEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*FollowEvaluator) Apply

func (ev *FollowEvaluator) Apply()

type PostEvaluator

type PostEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*PostEvaluator) Apply

func (ev *PostEvaluator) Apply()

type ReplyEvaluator

type ReplyEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*ReplyEvaluator) Apply

func (ev *ReplyEvaluator) Apply()

type TransferEvaluator

type TransferEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*TransferEvaluator) Apply

func (ev *TransferEvaluator) Apply()

type TransferToVestingEvaluator

type TransferToVestingEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*TransferToVestingEvaluator) Apply

func (ev *TransferToVestingEvaluator) Apply()

type VoteEvaluator

type VoteEvaluator struct {
	BaseEvaluator
	// contains filtered or unexported fields
}

func (*VoteEvaluator) Apply

func (ev *VoteEvaluator) Apply()

upvote is true: upvote otherwise downvote no downvote has been supplied by command, so I ignore it

Directories

Path Synopsis
main command
tools command

Jump to

Keyboard shortcuts

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