Documentation
¶
Index ¶
- type Config
- type Engine
- type SmartContract
- func (sc *SmartContract) CallingContext() *context.Context
- func (sc *SmartContract) CheckWitness(address common.Address) bool
- func (sc *SmartContract) CurrentContext() *context.Context
- func (sc *SmartContract) EntryContext() *context.Context
- func (sc *SmartContract) Execute() error
- func (sc *SmartContract) PopContext()
- func (sc *SmartContract) PushContext(context *context.Context)
- func (sc *SmartContract) PushNotifications(notifications []*event.NotifyEventInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Time uint32
Height uint32
Tx *ctypes.Transaction
Table interfaces.CodeTable
DBCache scommon.StateStore
Store store.LedgerStore
}
type SmartContract ¶
type SmartContract struct {
Context []*context.Context
Config *Config
Engine Engine
Notifications []*event.NotifyEventInfo
}
func (*SmartContract) CallingContext ¶
func (sc *SmartContract) CallingContext() *context.Context
get smart contract caller context
func (*SmartContract) CheckWitness ¶
func (sc *SmartContract) CheckWitness(address common.Address) bool
func (*SmartContract) CurrentContext ¶
func (sc *SmartContract) CurrentContext() *context.Context
get smart contract current context
func (*SmartContract) EntryContext ¶
func (sc *SmartContract) EntryContext() *context.Context
get smart contract entry entrance context
func (*SmartContract) Execute ¶
func (sc *SmartContract) Execute() error
func (*SmartContract) PopContext ¶
func (sc *SmartContract) PopContext()
pop smart contract current context
func (*SmartContract) PushContext ¶
func (sc *SmartContract) PushContext(context *context.Context)
put current context to smart contract
func (*SmartContract) PushNotifications ¶
func (sc *SmartContract) PushNotifications(notifications []*event.NotifyEventInfo)
Click to show internal directories.
Click to hide internal directories.