sdk

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sys_GetCoinbase

func Sys_GetCoinbase(handlePtr *TmpStatusManager) *types.Address

func Sys_GetValue

func Sys_GetValue(handlePtr *TmpStatusManager, contractAddress types.Address, key []byte) []byte

func Sys_SetValue

func Sys_SetValue(handlePtr *TmpStatusManager, contractAddress types.Address, key []byte, value []byte) error

Types

type TmpKey

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

func (*TmpKey) MakeHashKey

func (this *TmpKey) MakeHashKey() (types.Hash, error)

type TmpStatusManager

type TmpStatusManager struct {
	TmpConTracts map[types.Address]*TmpStatusNode
	// contains filtered or unexported fields
}

func NewTmpStatusManager

func NewTmpStatusManager(db database.IDatabaseGetter, state *state.StateDB, coinbase types.Address) *TmpStatusManager

func (*TmpStatusManager) CreateStatusNode

func (this *TmpStatusManager) CreateStatusNode(contractAddress types.Address) *TmpStatusNode

func (*TmpStatusManager) ExistContract

func (this *TmpStatusManager) ExistContract(contractAddress types.Address) *TmpStatusNode

check a Contract is exist in the tmpStatusManager

func (*TmpStatusManager) GetValue

func (this *TmpStatusManager) GetValue(contractAddress types.Address, key []byte) []byte

func (*TmpStatusManager) SetValue

func (this *TmpStatusManager) SetValue(contractAddress types.Address, key []byte, value []byte) error

SetValue always set into memery

type TmpStatusNode

type TmpStatusNode struct {
	Modified map[TmpKey][]byte
}

func NewStatusNode

func NewStatusNode() *TmpStatusNode

func (*TmpStatusNode) ExistValue

func (this *TmpStatusNode) ExistValue(tmpKey TmpKey) []byte

func (*TmpStatusNode) SetValue

func (this *TmpStatusNode) SetValue(tmpKey TmpKey, value []byte)

Jump to

Keyboard shortcuts

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