Documentation
¶
Overview ¶
Package foundation server implementation of smartcontract functions
Index ¶
- func Call(Reference core.RecordRef, MethodName string, Arguments []interface{}) ([]interface{}, error)
- type BaseContract
- func (bc *BaseContract) GetChildrenTyped(r core.RecordRef) []ProxyInterface
- func (bc *BaseContract) GetClass() core.RecordRef
- func (bc *BaseContract) GetContext() core.LogicCallContext
- func (bc *BaseContract) GetReference() core.RecordRef
- func (bc *BaseContract) SelfDestructRequest()
- func (bc *BaseContract) SetContext(cc *core.LogicCallContext)
- type BaseContractInterface
- type CBORMarshaler
- type ProxyInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseContract ¶
type BaseContract struct {
// contains filtered or unexported fields
}
BaseContract is a base class for all contracts.
func (*BaseContract) GetChildrenTyped ¶
func (bc *BaseContract) GetChildrenTyped(r core.RecordRef) []ProxyInterface
GetChildrenTyped returns set of children objects with corresponding type
func (*BaseContract) GetClass ¶ added in v0.0.6
func (bc *BaseContract) GetClass() core.RecordRef
GetClass - Returns class of contract
func (*BaseContract) GetContext ¶
func (bc *BaseContract) GetContext() core.LogicCallContext
GetContext returns current calling context of this object. It exists only for currently called contract.
func (*BaseContract) GetReference ¶ added in v0.0.6
func (bc *BaseContract) GetReference() core.RecordRef
GetReference - Returns public reference of contract
func (*BaseContract) SelfDestructRequest ¶
func (bc *BaseContract) SelfDestructRequest()
SelfDestructRequest contract will be marked as deleted after call finishes
func (*BaseContract) SetContext ¶
func (bc *BaseContract) SetContext(cc *core.LogicCallContext)
SetContext - do not use it in smartcontracts
type BaseContractInterface ¶
BaseContractInterface is an interface to deal with any contract same way
type CBORMarshaler ¶
CBORMarshaler is a special interface for serializer object
type ProxyInterface ¶ added in v0.0.6
func GetImplementationFor ¶
func GetImplementationFor(o core.RecordRef, r core.RecordRef) ProxyInterface
GetImplementationFor finds delegate typed r in object and returns it
func GetObject ¶
func GetObject(ref core.RecordRef) ProxyInterface
GetObject create proxy by address unimplemented