Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Stub ¶
type Stub interface {
// Caller
Caller() string
// Callee
Callee() string
// CurrentCaller
CurrentCaller() string
// Logger
Logger() logrus.FieldLogger
// GetTxHash returns the transaction hash
GetTxHash() *types.Hash
// GetTxIndex returns the transaction index in the block
GetTxIndex() uint64
// Has judges key
Has(key string) bool
// Get gets value from datastore by key
Get(key string) (bool, []byte)
// GetObject
GetObject(key string, ret interface{}) bool
// Set sets k-v
Set(key string, value []byte)
// SetObject sets k with object v, v will be marshaled using json
SetObject(key string, value interface{})
// AddObject adds k with object v, v will be marshaled using json
AddObject(key string, value interface{})
// Delete deletes k-v
Delete(key string)
// QueryByPrefix queries object by prefix
Query(prefix string) (bool, [][]byte)
// PostEvent posts event to external
PostEvent(interface{})
// PostInterchainEvent posts interchain event to external
PostInterchainEvent(interface{})
// Validator returns the instance of validator
ValidationEngine() validator.Engine
// CrossInvoke cross contract invoke
CrossInvoke(address, method string, args ...*pb.Arg) *Response
// GetAccount get ledger account address
GetAccount(address string) (bool, interface{})
}
Click to show internal directories.
Click to hide internal directories.