qcp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Index

Constants

View Source
const (
	QcpFrom     = "qcp.from"
	QcpTo       = "qcp.to"
	QcpSequence = "qcp.sequence"
	QcpHash     = "qcp.hash"
)
View Source
const (
	QcpMapperName = "qcp"
)

Variables

This section is empty.

Functions

func BuildInPubkeyKey added in v0.0.4

func BuildInPubkeyKey(inChainID string) []byte

func BuildInSequenceKey added in v0.0.4

func BuildInSequenceKey(inChainID string) []byte

func BuildOutSequenceKey added in v0.0.4

func BuildOutSequenceKey(outChainID string) []byte

func BuildOutSequenceTxKey added in v0.0.4

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

func BuildQcpStoreQueryPath added in v0.0.4

func BuildQcpStoreQueryPath() []byte

func GenQcpTxHash added in v0.2.1

func GenQcpTxHash(tx *txs.TxQcp) string

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)

TODO: test case

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)

TODO: test case

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

TODO: test case

Jump to

Keyboard shortcuts

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