Documentation
¶
Overview ¶
Package neo provides interface to NeoToken native contract. NEO token is special, it's not just a regular NEP-17 contract, it also provides access to chain-specific settings and implements commmittee voting system.
Index ¶
- Constants
- func BalanceOf(addr interop.Hash160) int
- func Decimals() int
- func GetCandidates() []interop.PublicKey
- func GetCommittee() []interop.PublicKey
- func GetGASPerBlock() int
- func GetNextBlockValidators() []interop.PublicKey
- func GetRegisterPrice() int
- func RegisterCandidate(pub interop.PublicKey) bool
- func SetGASPerBlock(amount int)
- func SetRegisterPrice(amount int)
- func Symbol() string
- func TotalSupply() int
- func Transfer(from, to interop.Hash160, amount int, data interface{}) bool
- func UnclaimedGAS(addr interop.Hash160, end int) int
- func UnregisterCandidate(pub interop.PublicKey) bool
- func Vote(addr interop.Hash160, pub interop.PublicKey) bool
Constants ¶
const Hash = "\xf5\x63\xea\x40\xbc\x28\x3d\x4d\x0e\x05\xc4\x8e\xa3\x05\xb3\xf2\xa0\x73\x40\xef"
Hash represents NEO contract hash.
Variables ¶
This section is empty.
Functions ¶
func GetCandidates ¶
GetCandidates represents `getCandidates` method of NEO native contract.
func GetCommittee ¶
GetCommittee represents `getCommittee` method of NEO native contract.
func GetGASPerBlock ¶
func GetGASPerBlock() int
GetGASPerBlock represents `getGasPerBlock` method of NEO native contract.
func GetNextBlockValidators ¶
GetNextBlockValidators represents `getNextBlockValidators` method of NEO native contract.
func GetRegisterPrice ¶ added in v0.94.0
func GetRegisterPrice() int
GetRegisterPrice represents `getRegisterPrice` method of NEO native contract.
func RegisterCandidate ¶
RegisterCandidate represents `registerCandidate` method of NEO native contract.
func SetGASPerBlock ¶
func SetGASPerBlock(amount int)
SetGASPerBlock represents `setGasPerBlock` method of NEO native contract.
func SetRegisterPrice ¶ added in v0.94.0
func SetRegisterPrice(amount int)
SetRegisterPrice represents `setRegisterPrice` method of NEO native contract.
func TotalSupply ¶
func TotalSupply() int
TotalSupply represents `totalSupply` method of NEO native contract.
func UnclaimedGAS ¶
UnclaimedGAS represents `unclaimedGas` method of NEO native contract.
func UnregisterCandidate ¶
UnregisterCandidate represents `unregisterCandidate` method of NEO native contract.
Types ¶
This section is empty.