contracts

package
v0.0.0-...-7dc920d Latest Latest
Warning

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

Go to latest
Published: May 31, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Contract

type Contract struct {
	Address common.Address
	ABI     abi.ABI
	Btc     []byte
	// contains filtered or unexported fields
}

func GetContract

func GetContract(name string) *Contract

func NewContract

func NewContract(address, abi string, btc []byte) (*Contract, error)

func (*Contract) Execute

func (contract *Contract) Execute(method string, args ...interface{}) []byte

func (*Contract) InitABI

func (contract *Contract) InitABI(ABIJson string) error

func (*Contract) Transfer

func (c *Contract) Transfer(method string, amount string, address string) []byte

Jump to

Keyboard shortcuts

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