Documentation
¶
Index ¶
- Constants
- type QcpMapper
- func (mapper *QcpMapper) Copy() mapper.IMapper
- func (mapper *QcpMapper) GetChainInTruestPubKey(inChain string) (pubkey crypto.PubKey)
- func (mapper *QcpMapper) GetChainOutTxs(outChain string, sequence int64) (txQcp *txs.TxQcp)
- func (mapper *QcpMapper) GetMaxChainInSequence(inChain string) (seq int64)
- func (mapper *QcpMapper) GetMaxChainOutSequence(outChain string) (seq int64)
- func (mapper *QcpMapper) Name() string
- func (mapper *QcpMapper) SaveCrossChainResult(ctx ctx.Context, txStd *txs.TxStd, toChainID string, isResult bool, ...) (txQcp *txs.TxQcp)
- func (mapper *QcpMapper) SetChainInTruestPubKey(inChain string, pubkey crypto.PubKey)
- func (mapper *QcpMapper) SetChainOutTxs(outChain string, sequence int64, txQcp *txs.TxQcp)
- func (mapper *QcpMapper) SetMaxChainInSequence(inChain string, sequence int64)
- func (mapper *QcpMapper) SetMaxChainOutSequence(outChain string, sequence int64)
Constants ¶
View Source
const ( QcpFrom = "qcp.from" QcpTo = "qcp.to" QcpSequence = "qcp.sequence" QcpHash = "qcp.hash" )
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) GetChainInTruestPubKey ¶
TODO: test case
func (*QcpMapper) GetChainOutTxs ¶
func (*QcpMapper) GetMaxChainInSequence ¶
func (*QcpMapper) GetMaxChainOutSequence ¶
func (*QcpMapper) SaveCrossChainResult ¶
func (mapper *QcpMapper) SaveCrossChainResult(ctx ctx.Context, txStd *txs.TxStd, toChainID string, isResult bool, signer crypto.PrivKey) (txQcp *txs.TxQcp)
TODO: test case
func (*QcpMapper) SetChainInTruestPubKey ¶
TODO: test case
func (*QcpMapper) SetChainOutTxs ¶
func (*QcpMapper) SetMaxChainInSequence ¶
func (*QcpMapper) SetMaxChainOutSequence ¶
Click to show internal directories.
Click to hide internal directories.