qcp

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// qcp 模块名
	EventModule = "qcp"
	// 跨链发起-目标链
	From = "qcp-from"
	To   = "qcp-to"
	// 跨链交易序列
	Sequence = "qcp-sequence"
	// 跨链交易结果hash
	Hash = "qcp-hash"
)
View Source
const (
	MapperName = "qcp"
)

Variables

This section is empty.

Functions

func BuildInPubkeyKey added in v0.0.4

func BuildInPubkeyKey(inChainID string) []byte

func BuildInPubkeyPrefixKey added in v0.2.4

func BuildInPubkeyPrefixKey() []byte

func BuildInSequenceKey added in v0.0.4

func BuildInSequenceKey(inChainID string) []byte

func BuildInSequencePrefixKey added in v0.2.4

func BuildInSequencePrefixKey() []byte

func BuildOutSequenceKey added in v0.0.4

func BuildOutSequenceKey(outChainID string) []byte

func BuildOutSequencePrefixKey added in v0.2.4

func BuildOutSequencePrefixKey() []byte

func BuildOutSequenceTxKey added in v0.0.4

func BuildOutSequenceTxKey(outChainID string, sequence int64) []byte

func BuildOutSequenceTxPrefixKey added in v0.2.4

func BuildOutSequenceTxPrefixKey() []byte

func BuildQcpStoreQueryPath added in v0.0.4

func BuildQcpStoreQueryPath() []byte

Types

type QcpMapper

type QcpMapper struct {
	*mapper.BaseMapper
}

func NewQcpMapper

func NewQcpMapper(cdc *go_amino.Codec) *QcpMapper

func (*QcpMapper) Copy

func (mapper *QcpMapper) Copy() mapper.IMapper

func (*QcpMapper) GetChainInTrustPubKey added in v0.0.4

func (mapper *QcpMapper) GetChainInTrustPubKey(inChain string) (pubkey crypto.PubKey)

func (*QcpMapper) GetChainOutTxs

func (mapper *QcpMapper) GetChainOutTxs(outChain string, sequence int64) *txs.TxQcp

func (*QcpMapper) GetMaxChainInSequence

func (mapper *QcpMapper) GetMaxChainInSequence(inChain string) (seq int64)

func (*QcpMapper) GetMaxChainOutSequence

func (mapper *QcpMapper) GetMaxChainOutSequence(outChain string) (seq int64)

func (*QcpMapper) SetChainInTrustPubKey added in v0.0.4

func (mapper *QcpMapper) SetChainInTrustPubKey(inChain string, pubkey crypto.PubKey)

func (*QcpMapper) SetChainOutTxs

func (mapper *QcpMapper) SetChainOutTxs(outChain string, sequence int64, txQcp *txs.TxQcp)

func (*QcpMapper) SetMaxChainInSequence

func (mapper *QcpMapper) SetMaxChainInSequence(inChain string, sequence int64)

func (*QcpMapper) SetMaxChainOutSequence

func (mapper *QcpMapper) SetMaxChainOutSequence(outChain string, sequence int64)

func (*QcpMapper) SignAndSaveTxQcp added in v0.0.4

func (mapper *QcpMapper) SignAndSaveTxQcp(txQcp *txs.TxQcp, signer crypto.PrivKey) *txs.TxQcp

Jump to

Keyboard shortcuts

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