types

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesInt64

func BytesInt64(bs []byte) (x int64, err error)

BytesInt64 Int64 转换

func Int64Bytes

func Int64Bytes(in int64) []byte

Int64Bytes int64 与 byte 数组转换

func Key4InChainSequence

func Key4InChainSequence(chain string) string

Key4InChainSequence 输出队列交易序号查询接口key值组装方法

func Key4OutChainSequence

func Key4OutChainSequence(outChain string) string

Key4OutChainSequence 输出队列交易序号查询接口key值组装方法

func Key4OutChainTx

func Key4OutChainTx(outChain string, sequence int64) string

Key4OutChainTx 输出队列交易查询接口key值组装方法

func RegisterCassiniTypesAmino

func RegisterCassiniTypesAmino(cdc *amino.Codec)

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
}

func (*CassiniEventDataTx) ConstructFromTags

func (c *CassiniEventDataTx) ConstructFromTags(tags []common.KVPair) (err error)

type Event

type Event struct {
	NodeAddress        string               `json:"node"` //event 源地址
	CassiniEventDataTx `json:"eventDataTx"` //event 事件
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL