Documentation ¶
Index ¶
- func BytesInt64(bs []byte) (x int64, err error)
- func CreateCompleteCodec() *amino.Codec
- func Int64Bytes(in int64) []byte
- func KV2map(kvs []common.KVPair) (tags map[string]string, err error)
- func Key4InChainSequence(chain string) string
- func Key4OutChainSequence(outChain string) string
- func Key4OutChainTx(outChain string, sequence int64) string
- func ParseAddrs(address string) (protocol string, addrs []string)
- func ParseHeight(height string) (int64, error)
- func ParseSequence(seq string) (int64, error)
- func RegisterCassiniTypesAmino(cdc *amino.Codec)
- type CassiniEventDataTx
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCompleteCodec ¶ added in v0.0.3
func CreateCompleteCodec() *amino.Codec
CreateCompleteCodec 创建完整(包括:联盟链,公链,中继)amino编码器
func Key4InChainSequence ¶
Key4InChainSequence 输出队列交易序号查询接口key值组装方法
func Key4OutChainSequence ¶
Key4OutChainSequence 输出队列交易序号查询接口key值组装方法
func Key4OutChainTx ¶
Key4OutChainTx 输出队列交易查询接口key值组装方法
func ParseAddrs ¶ added in v0.0.3
ParseAddrs parse protocol and addrs
func ParseHeight ¶ added in v0.1.0
ParseHeight parse height in string to int64
func ParseSequence ¶ added in v0.0.3
ParseSequence parse sequence in string to int64
func RegisterCassiniTypesAmino ¶
func RegisterCassiniTypesAmino(cdc *amino.Codec)
RegisterCassiniTypesAmino 注册中继自定义类型
Types ¶
type CassiniEventDataTx ¶
type CassiniEventDataTx struct { From string `json:"from"` //qsc name 或 qos To string `json:"to"` //qsc name 或 qos Height int64 `json:"height"` Sequence int64 `json:"sequence"` HashBytes []byte `json:"hashBytes"` //TxQcp 做 sha256 }
CassiniEventDataTx holds tx event tags
func (*CassiniEventDataTx) ConstructFromTags ¶
func (c *CassiniEventDataTx) ConstructFromTags(tags map[string]string) (err error)
ConstructFromTags parse tx event tags
type Event ¶
type Event struct { NodeAddress string `json:"node"` //event 源地址 CassiniEventDataTx `json:"eventDataTx"` //event 事件 }
Event cache tx event tags and node info
Click to show internal directories.
Click to hide internal directories.