utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContractFalse = "0x0000000000000000000000000000000000000000000000000000000000000000"
	ContractTrue  = "0x0000000000000000000000000000000000000000000000000000000000000001"
	ContractZero  = "0x0000000000000000000000000000000000000000000000000000000000000000"
	ContractOne   = "0x0000000000000000000000000000000000000000000000000000000000000001"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Contracter

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

The struct of contract

func NewContracter

func NewContracter(bc *core.BlockChain, ctr common.Address, abi abi.ABI) (*Contracter, error)

NewContract creates a new instance of contract

func (*Contracter) CallContract

func (self *Contracter) CallContract(from common.Address, nonce uint64, method string, params ...interface{}) ([]byte, error)

Call the contract and return the message

Jump to

Keyboard shortcuts

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