Documentation ¶
Overview ¶
Package builtin is implementation of builtin contracts engine
Index ¶
- func InitializeCodeDescriptors() []XXX_artifacts.CodeDescriptor
- func InitializeCodeRefs() map[XXX_insolar.Reference]string
- func InitializeContractMethods() map[string]XXX_insolar.ContractWrapper
- func InitializePrototypeDescriptors() []XXX_artifacts.ObjectDescriptor
- 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, wait bool, immutable bool, saga bool, method string, ...) ([]byte, error)
- func (h *ProxyHelper) SaveAsChild(parentRef, classRef insolar.Reference, constructorName string, ...) (*insolar.Reference, []byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeCodeDescriptors ¶ added in v0.9.0
func InitializeCodeDescriptors() []XXX_artifacts.CodeDescriptor
func InitializeCodeRefs ¶ added in v0.9.0
func InitializeCodeRefs() map[XXX_insolar.Reference]string
func InitializeContractMethods ¶ added in v0.9.0
func InitializeContractMethods() map[string]XXX_insolar.ContractWrapper
func InitializePrototypeDescriptors ¶ added in v0.9.0
func InitializePrototypeDescriptors() []XXX_artifacts.ObjectDescriptor
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 }
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
Directories ¶
Path | Synopsis |
---|---|
contract
|
|
Package foundation server implementation of smartcontract functions
|
Package foundation server implementation of smartcontract functions |
proxy
|
|
Click to show internal directories.
Click to hide internal directories.