sandbox

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0, BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockedSandbox

func NewMockedSandbox() vmtypes.Sandbox

func NewSandbox

func NewSandbox(vctx *vm.VMContext) vmtypes.Sandbox

Types

type MockedSandbox

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

func (*MockedSandbox) AccessRequest

func (m *MockedSandbox) AccessRequest() vmtypes.RequestAccess

func (*MockedSandbox) AccessSCAccount

func (m *MockedSandbox) AccessSCAccount() vmtypes.AccountAccess

func (*MockedSandbox) AccessState

func (m *MockedSandbox) AccessState() kv.MustCodec

func (*MockedSandbox) DumpAccount

func (m *MockedSandbox) DumpAccount() string

func (*MockedSandbox) GetEntropy

func (m *MockedSandbox) GetEntropy() hashing.HashValue

func (*MockedSandbox) GetOwnerAddress

func (m *MockedSandbox) GetOwnerAddress() *address.Address

func (*MockedSandbox) GetSCAddress

func (m *MockedSandbox) GetSCAddress() *address.Address

func (*MockedSandbox) GetTimestamp

func (m *MockedSandbox) GetTimestamp() int64

func (*MockedSandbox) GetWaspLog

func (m *MockedSandbox) GetWaspLog() *logger.Logger

func (*MockedSandbox) IsOriginState

func (m *MockedSandbox) IsOriginState() bool

func (*MockedSandbox) Panic

func (m *MockedSandbox) Panic(v interface{})

func (*MockedSandbox) Publish

func (m *MockedSandbox) Publish(msg string)

func (*MockedSandbox) Publishf

func (m *MockedSandbox) Publishf(format string, args ...interface{})

func (*MockedSandbox) Rollback

func (m *MockedSandbox) Rollback()

func (*MockedSandbox) SendRequest

func (m *MockedSandbox) SendRequest(par vmtypes.NewRequestParams) bool

func (*MockedSandbox) SendRequestToSelf

func (m *MockedSandbox) SendRequestToSelf(reqCode sctransaction.RequestCode, args kv.Map) bool

func (*MockedSandbox) SendRequestToSelfWithDelay

func (m *MockedSandbox) SendRequestToSelfWithDelay(reqCode sctransaction.RequestCode, args kv.Map, deferForSec uint32) bool

Jump to

Keyboard shortcuts

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