delegate

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NIN_PROPOSAL_COUNT = 5

Variables

This section is empty.

Functions

func CreateNewContract

func CreateNewContract(contractEnvironment *cmn.ContractEnvironment) *cmn.ContractCallBackInfo

func MustUnmarshal

func MustUnmarshal(data []byte, load interface{})

func RigisteredMethod

func RigisteredMethod(contractEnvironment *cmn.ContractEnvironment) *cmn.ContractCallBackInfo

Types

type ArgsAddDelegate

type ArgsAddDelegate struct {
	NewDelegate []byte `json:"1"`
}

type ArgsCreateNewContract

type ArgsCreateNewContract struct {
	Delegates  [][]byte      `json:"1"`
	District   string        `json:"2"`
	TotalVotes *math.Uint256 `json:"3"`
}

type ArgsRemoveDelegate

type ArgsRemoveDelegate struct {
	RemovedDelegate []byte `json:"1"`
}

type Delegate

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

func (*Delegate) NewContract

func (delegate *Delegate) NewContract(_delegates [][]byte, district string, totalVotes *math.Uint256) *cmn.ContractCallBackInfo

func (*Delegate) ResetVote

func (delegate *Delegate) ResetVote() *cmn.ContractCallBackInfo

func (*Delegate) Vote

func (delegate *Delegate) Vote() *cmn.ContractCallBackInfo

Jump to

Keyboard shortcuts

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