vminjector

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Injector

type Injector interface {
	Error(code uint32, msg string)
	Log(msg string)
	RequireAuth(name string) error
	RecordStaminaFee(caller string, spent uint64)
	GetVmRemainCpuStamina(name string) uint64
	// only panic, no error return
	TransferFromContractToUser(contract, owner, to string, amount uint64)
	TransferFromContractToUserVest(contract, owner, to string, amount uint64)
	TransferFromUserToContract(from, contract, owner string, amount uint64)
	TransferFromContractToContract(fromContract, fromOwner, toContract, toOwner string, amount uint64)
	ContractCall(caller, fromOwner, fromContract, fromMethod, toOwner, toContract, toMethod string, params []byte, coins, remainGas uint64, preVm *exec.VM)
	ContractABI(owner, contract string) string
	GetBlockProducers() []string
	DiscardAccountCache(name string)
	VmCache() *vmcache.VmCache
	StateChangeContext() *blocklog.StateChangeContext
	NewRecordID() uint64
	CurrentRecordID() uint64
}

Jump to

Keyboard shortcuts

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