Documentation ¶
Overview ¶
Package foundation server implementation of smartcontract functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContext ¶ added in v0.4.0
func GetContext() *core.LogicCallContext
GetContext returns current calling context.
Types ¶
type BaseContract ¶
type BaseContract struct { }
BaseContract is a base class for all contracts.
func (*BaseContract) GetChildrenTyped ¶
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 OBSOLETED.
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
type BaseContractInterface ¶
BaseContractInterface is an interface to deal with any contract same way
type Error ¶ added in v0.4.0
type Error struct {
S string
}
Error elementary string based error struct satisfying builtin error interface
foundation.Error{"some err"}
type ProxyInterface ¶ added in v0.0.6
ProxyInterface interface any proxy of a contract implements
func GetObject ¶
func GetObject(ref core.RecordRef) ProxyInterface
GetObject create proxy by address unimplemented