common

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractCallBackInfo

type ContractCallBackInfo struct {
	// type responceDeliverTx
	CodeResponse uint32
	Log          string
	Info         string
	Data         []byte
	Value        *math.Uint256
	OutFlag      bool
	Tags         []KVPair
}

func (*ContractCallBackInfo) IsErr

func (cb *ContractCallBackInfo) IsErr() bool

func (*ContractCallBackInfo) IsOK

func (cb *ContractCallBackInfo) IsOK() bool

type ContractEnvironment

type ContractEnvironment struct {
	Storage         *localstorage.LocalStorage
	From            []byte
	ContractAddress []byte
	FuncName        string
	Args            []byte
	Value           *math.Uint256
}

type KVPair

type KVPair interface {
	// must be bytes
	Key() []byte
	// must be bytes
	Value() []byte
}

func MakeKVPair

func MakeKVPair(key []byte, value []byte) KVPair

type KVPairInstance

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

func (*KVPairInstance) Key

func (kv *KVPairInstance) Key() []byte

func (*KVPairInstance) Value

func (kv *KVPairInstance) Value() []byte

type TransactionHeader

type TransactionHeader struct {
	From            []byte        `json:"from"`
	ContractAddress []byte        `json:"to"`
	Data            []byte        `json:"data"`
	Value           *math.Uint256 `json:"value"`
	Nonce           *math.Uint256 `json:"nonce"`
	Signature       []byte        `json:"signature"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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