Documentation ¶
Index ¶
- func NewMockedSandbox() vmtypes.Sandbox
- func NewSandbox(vctx *vm.VMContext) vmtypes.Sandbox
- type MockedSandbox
- func (m *MockedSandbox) AccessRequest() vmtypes.RequestAccess
- func (m *MockedSandbox) AccessSCAccount() vmtypes.AccountAccess
- func (m *MockedSandbox) AccessState() kv.MustCodec
- func (m *MockedSandbox) DumpAccount() string
- func (m *MockedSandbox) GetEntropy() hashing.HashValue
- func (m *MockedSandbox) GetOwnerAddress() *address.Address
- func (m *MockedSandbox) GetSCAddress() *address.Address
- func (m *MockedSandbox) GetTimestamp() int64
- func (m *MockedSandbox) GetWaspLog() *logger.Logger
- func (m *MockedSandbox) IsOriginState() bool
- func (m *MockedSandbox) Panic(v interface{})
- func (m *MockedSandbox) Publish(msg string)
- func (m *MockedSandbox) Publishf(format string, args ...interface{})
- func (m *MockedSandbox) Rollback()
- func (m *MockedSandbox) SendRequest(par vmtypes.NewRequestParams) bool
- func (m *MockedSandbox) SendRequestToSelf(reqCode sctransaction.RequestCode, args kv.Map) bool
- func (m *MockedSandbox) SendRequestToSelfWithDelay(reqCode sctransaction.RequestCode, args kv.Map, deferForSec uint32) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockedSandbox ¶
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
Click to show internal directories.
Click to hide internal directories.