Documentation
¶
Overview ¶
Package builtin is implementation of builtin contracts engine
Index ¶
- type BuiltIn
- type LogicRunnerRPCStub
- type ProxyHelper
- func (h *ProxyHelper) DeactivateObject(object insolar.Reference) error
- func (h *ProxyHelper) MakeErrorSerializable(err error) error
- func (h *ProxyHelper) RouteCall(ref insolar.Reference, immutable bool, saga bool, method string, args []byte, ...) ([]byte, error)
- func (h *ProxyHelper) SaveAsChild(parentRef, classRef insolar.Reference, constructorName string, ...) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuiltIn ¶
type BuiltIn struct {
// Prototype -> Code + Versions
// PrototypeRegistry map[string]preprocessor.ContractWrapper
// PrototypeRefRegistry map[insolar.Reference]string
// Code ->
CodeRegistry map[string]insolar.ContractWrapper
CodeRefRegistry map[insolar.Reference]string
PrototypeRefRegistry map[insolar.Reference]string
}
BuiltIn is a contract runner engine
func NewBuiltIn ¶
func NewBuiltIn(am artifacts.Client, stub LogicRunnerRPCStub) *BuiltIn
NewBuiltIn is an constructor
func (*BuiltIn) CallConstructor ¶
type LogicRunnerRPCStub ¶ added in v0.9.0
type LogicRunnerRPCStub interface {
GetCode(rpctypes.UpGetCodeReq, *rpctypes.UpGetCodeResp) error
RouteCall(rpctypes.UpRouteReq, *rpctypes.UpRouteResp) error
SaveAsChild(rpctypes.UpSaveAsChildReq, *rpctypes.UpSaveAsChildResp) error
DeactivateObject(rpctypes.UpDeactivateObjectReq, *rpctypes.UpDeactivateObjectResp) error
}
type ProxyHelper ¶ added in v0.9.0
type ProxyHelper struct {
lrCommon.Serializer
lrCommon.SystemError
// contains filtered or unexported fields
}
func NewProxyHelper ¶ added in v0.9.0
func NewProxyHelper(runner lrCommon.LogicRunnerRPCStub) *ProxyHelper
func (*ProxyHelper) DeactivateObject ¶ added in v0.9.0
func (h *ProxyHelper) DeactivateObject(object insolar.Reference) error
func (*ProxyHelper) MakeErrorSerializable ¶ added in v0.9.0
func (h *ProxyHelper) MakeErrorSerializable(err error) error
func (*ProxyHelper) SaveAsChild ¶ added in v0.9.0
Directories
¶
| Path | Synopsis |
|---|---|
|
Package foundation server implementation of smartcontract functions
|
Package foundation server implementation of smartcontract functions |
Click to show internal directories.
Click to hide internal directories.