nep5

package
v0.0.0-...-bfbcaa6 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployContract

func DeployContract(script []byte, parmeters []ParameterType) ([]byte, error)

DeployContract .

func MintToken

func MintToken(scriptHash []byte) ([]byte, error)

MintToken .

func Transfer

func Transfer(scriptHash []byte, from []byte, to []byte, amount *big.Int) ([]byte, error)

Transfer implement nep5 transfer method more detail visit website https://github.com/neo-project/proposals/blob/master/nep-5.mediawiki#trasfer

Types

type Contract

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

Contract neo nep5 contract object

func NewContract

func NewContract(scriptHash []byte) *Contract

NewContract .

type ParameterType

type ParameterType byte

ParameterType .

const (
	Signature ParameterType = 0
	Boolean
	Integer
	Hash160
	Hash256
	ByteArray
	PublicKey
	String
	Array
	InteropInterface
	Void
)

Parameter Type enum

Jump to

Keyboard shortcuts

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