Documentation
¶
Overview ¶
access to the solid state of the smart contract
Index ¶
- Constants
- func HandlerQueryRequestState(c echo.Context) error
- func HandlerQueryState(c echo.Context) error
- type ArrayQueryParams
- type ArrayResult
- type DictElementQueryParams
- type DictElementResult
- type DictQueryParams
- type DictResult
- type KeyQuery
- type KeyValuePair
- type QueryRequest
- func (q *QueryRequest) AddArray(key kv.Key, from uint16, to uint16)
- func (q *QueryRequest) AddDictionary(key kv.Key, limit uint32)
- func (q *QueryRequest) AddDictionaryElement(dictKey kv.Key, elemKey []byte)
- func (q *QueryRequest) AddGeneralData()
- func (q *QueryRequest) AddScalar(key kv.Key)
- func (q *QueryRequest) AddTLogSlice(key kv.Key, fromTs, toTs int64)
- func (q *QueryRequest) AddTLogSliceData(key kv.Key, fromIndex, toIndex uint32, descending bool)
- type QueryResponse
- type QueryResult
- func (r *QueryResult) MustAddress() *address.Address
- func (r *QueryResult) MustArrayResult() *ArrayResult
- func (r *QueryResult) MustBytes() []byte
- func (r *QueryResult) MustDictionaryElementResult() []byte
- func (r *QueryResult) MustDictionaryResult() *DictResult
- func (r *QueryResult) MustHashValue() *hashing.HashValue
- func (r *QueryResult) MustInt64() (int64, bool)
- func (r *QueryResult) MustString() (string, bool)
- func (r *QueryResult) MustTLogSliceDataResult() *TLogSliceDataResult
- func (r *QueryResult) MustTLogSliceResult() *TLogSliceResult
- type ReqStateRequest
- type ReqStateResponse
- type TLogSliceDataQueryParams
- type TLogSliceDataResult
- type TLogSliceQueryParams
- type TLogSliceResult
- type ValueType
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func HandlerQueryState ¶
Types ¶
type ArrayQueryParams ¶
type ArrayResult ¶
type DictElementQueryParams ¶
type DictElementQueryParams struct {
Key []byte
}
type DictElementResult ¶
type DictElementResult struct {
Value []byte
}
type DictQueryParams ¶
type DictQueryParams struct {
Limit uint32
}
type DictResult ¶
type DictResult struct { Len uint32 Entries []KeyValuePair }
type KeyQuery ¶
type KeyQuery struct { Key []byte Type ValueType Params json.RawMessage // one of DictQueryParams, ArrayQueryParams, ... }
type KeyValuePair ¶
type QueryRequest ¶
func NewQueryRequest ¶
func NewQueryRequest(address *address.Address) *QueryRequest
func (*QueryRequest) AddDictionary ¶
func (q *QueryRequest) AddDictionary(key kv.Key, limit uint32)
func (*QueryRequest) AddDictionaryElement ¶
func (q *QueryRequest) AddDictionaryElement(dictKey kv.Key, elemKey []byte)
func (*QueryRequest) AddGeneralData ¶
func (q *QueryRequest) AddGeneralData()
func (*QueryRequest) AddScalar ¶
func (q *QueryRequest) AddScalar(key kv.Key)
func (*QueryRequest) AddTLogSlice ¶
func (q *QueryRequest) AddTLogSlice(key kv.Key, fromTs, toTs int64)
func (*QueryRequest) AddTLogSliceData ¶
func (q *QueryRequest) AddTLogSliceData(key kv.Key, fromIndex, toIndex uint32, descending bool)
type QueryResponse ¶
type QueryResult ¶
type QueryResult struct { Key []byte Type ValueType Value json.RawMessage // one of []byte, DictResult, ArrayResult, ... }
func (*QueryResult) MustAddress ¶
func (r *QueryResult) MustAddress() *address.Address
func (*QueryResult) MustArrayResult ¶
func (r *QueryResult) MustArrayResult() *ArrayResult
func (*QueryResult) MustBytes ¶
func (r *QueryResult) MustBytes() []byte
func (*QueryResult) MustDictionaryElementResult ¶
func (r *QueryResult) MustDictionaryElementResult() []byte
func (*QueryResult) MustDictionaryResult ¶
func (r *QueryResult) MustDictionaryResult() *DictResult
func (*QueryResult) MustHashValue ¶
func (r *QueryResult) MustHashValue() *hashing.HashValue
func (*QueryResult) MustInt64 ¶
func (r *QueryResult) MustInt64() (int64, bool)
func (*QueryResult) MustString ¶
func (r *QueryResult) MustString() (string, bool)
func (*QueryResult) MustTLogSliceDataResult ¶
func (r *QueryResult) MustTLogSliceDataResult() *TLogSliceDataResult
func (*QueryResult) MustTLogSliceResult ¶
func (r *QueryResult) MustTLogSliceResult() *TLogSliceResult
type ReqStateRequest ¶
type ReqStateResponse ¶
type TLogSliceDataQueryParams ¶
TLogSliceDataQueryParams request data for the slice
type TLogSliceDataResult ¶
type TLogSliceDataResult struct {
Values [][]byte
}
type TLogSliceQueryParams ¶
TLogSliceQueryParams request slice of timestamped log. If FromTs or ToTs is 0, it is considered 'earliest' and 'latest' respectively. For 0,0 slice corresponds to the whole log
type TLogSliceResult ¶
Click to show internal directories.
Click to hide internal directories.