qcp

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	QcpFrom      = "qcp.From"
	QcpTo        = "qcp.To"
	QcpSequence  = "qcp.Sequence"
	QcpHashBytes = "qcp.hashbytes"
)
View Source
const (
	QcpMapperName = "qcpmapper"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QcpMapper

type QcpMapper struct {
	*mapper.BaseMapper
}

func NewQcpMapper

func NewQcpMapper() *QcpMapper

func (*QcpMapper) Copy

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

func (*QcpMapper) GetChainInTruestPubKey

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

TODO: test case

func (*QcpMapper) GetChainOutTxs

func (mapper *QcpMapper) GetChainOutTxs(outChain string, sequence int64) (txQcp *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) Name

func (mapper *QcpMapper) Name() string

func (*QcpMapper) SaveCrossChainResult

func (mapper *QcpMapper) SaveCrossChainResult(ctx ctx.Context, payload txs.TxStd, toChainID string, isResult bool, signer crypto.PrivKey) (txQcp *txs.TxQcp)

TODO: test case

func (*QcpMapper) SetChainInTruestPubKey

func (mapper *QcpMapper) SetChainInTruestPubKey(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)

Jump to

Keyboard shortcuts

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