contract

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 1 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	script []byte,
	params []interface{},
	returnType byte,
	properties interface{},
	name,
	version,
	author,
	email,
	description string)

Create creates a new contract. @FIXME What is the type of the returnType here?

func Destroy

func Destroy(c Contract)

Destroy deletes a contract that is registered on the blockchain.

func GetScript

func GetScript(c Contract) []byte

GetScript returns the script of the given contract.

func GetStorageContext

func GetStorageContext(c Contract) storage.Context

GetStorageContext returns the storage context for the given contract.

func IsPayable

func IsPayable(c Contract) bool

IsPayable returns whether the given contract is payable.

func Migrate

func Migrate(
	script []byte,
	params []interface{},
	returnType byte,
	properties interface{},
	name,
	version,
	author,
	email,
	description string)

Migrate migrates a new contract. @FIXME What is the type of the returnType here?

Types

type Contract

type Contract struct{}

Contract stubs a NEO contract type.

Jump to

Keyboard shortcuts

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