Documentation ¶
Overview ¶
Package builtin is implementation of builtin contracts engine
Index ¶
- type ProxyHelper
- func (h *ProxyHelper) CallConstructor(parentRef, classRef reference.Global, constructorName string, ...) ([]byte, error)
- func (h *ProxyHelper) CallMethod(ref reference.Global, tolerance isolation.InterferenceFlag, ...) ([]byte, error)
- func (h *ProxyHelper) DeactivateObject(object reference.Global) error
- func (h *ProxyHelper) MakeErrorSerializable(err error) error
- type Runner
- func (r *Runner) CallConstructor(_ context.Context, callCtx *call.LogicContext, codeRef reference.Global, ...) ([]byte, []byte, error)
- func (r *Runner) CallMethod(_ context.Context, callCtx *call.LogicContext, codeRef reference.Global, ...) ([]byte, []byte, error)
- func (r *Runner) ClassifyMethod(_ context.Context, codeRef reference.Global, method string) (contract.MethodIsolation, error)
- func (r *Runner) GetDescriptor(ref reference.Global) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyHelper ¶
type ProxyHelper struct { common.Serializer common.SystemError // contains filtered or unexported fields }
func NewProxyHelper ¶
func NewProxyHelper(runner common.RunnerRPCStub) *ProxyHelper
func (*ProxyHelper) CallConstructor ¶
func (*ProxyHelper) CallMethod ¶
func (*ProxyHelper) DeactivateObject ¶
func (h *ProxyHelper) DeactivateObject(object reference.Global) error
func (*ProxyHelper) MakeErrorSerializable ¶
func (h *ProxyHelper) MakeErrorSerializable(err error) error
type Runner ¶
type Runner struct { Helper contract.ProxyHelper DescriptorRegistry map[reference.Global]interface{} CodeRegistry map[string]contract.Wrapper CodeRefRegistry map[reference.Global]string ClassRefRegistry map[reference.Global]string }
Runner is a contract runner engine
func (*Runner) CallConstructor ¶
func (*Runner) CallMethod ¶
func (*Runner) ClassifyMethod ¶
Click to show internal directories.
Click to hide internal directories.