neo

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 2 Imported by: 12

Documentation

Index

Constants

View Source
const Hash = "\x83\xab\x06\x79\xad\x55\xc0\x50\xa1\x3a\xd4\x3f\x59\x36\xea\x73\xf5\xeb\x1e\xf6"

Hash represents NEO contract hash.

Variables

This section is empty.

Functions

func BalanceOf

func BalanceOf(addr interop.Hash160) int

BalanceOf represents `balanceOf` method of NEO native contract.

func Decimals

func Decimals() int

Decimals represents `decimals` method of NEO native contract.

func GetCandidates

func GetCandidates() []interop.PublicKey

GetCandidates represents `getCandidates` method of NEO native contract.

func GetCommittee

func GetCommittee() []interop.PublicKey

GetCommittee represents `getCommittee` method of NEO native contract.

func GetGASPerBlock

func GetGASPerBlock() int

GetGASPerBlock represents `getGasPerBlock` method of NEO native contract.

func GetNextBlockValidators

func GetNextBlockValidators() []interop.PublicKey

GetNextBlockValidators represents `getNextBlockValidators` method of NEO native contract.

func RegisterCandidate

func RegisterCandidate(pub interop.PublicKey) bool

RegisterCandidate represents `registerCandidate` method of NEO native contract.

func SetGASPerBlock

func SetGASPerBlock(amount int)

SetGASPerBlock represents `setGasPerBlock` method of NEO native contract.

func Symbol

func Symbol() string

Symbol represents `symbol` method of NEO native contract.

func TotalSupply

func TotalSupply() int

TotalSupply represents `totalSupply` method of NEO native contract.

func Transfer

func Transfer(from, to interop.Hash160, amount int, data interface{}) bool

Transfer represents `transfer` method of NEO native contract.

func UnclaimedGAS

func UnclaimedGAS(addr interop.Hash160, end int) int

UnclaimedGAS represents `unclaimedGas` method of NEO native contract.

func UnregisterCandidate

func UnregisterCandidate(pub interop.PublicKey) bool

UnregisterCandidate represents `unregisterCandidate` method of NEO native contract.

func Vote

func Vote(addr interop.Hash160, pub interop.PublicKey) bool

Vote represents `vote` method of NEO native contract.

Types

This section is empty.

Jump to

Keyboard shortcuts

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