Documentation ¶
Index ¶
- Constants
- func BuildInPubkeyKey(inChainID string) []byte
- func BuildInPubkeyPrefixKey() []byte
- func BuildInSequenceKey(inChainID string) []byte
- func BuildInSequencePrefixKey() []byte
- func BuildOutSequenceKey(outChainID string) []byte
- func BuildOutSequencePrefixKey() []byte
- func BuildOutSequenceTxKey(outChainID string, sequence int64) []byte
- func BuildOutSequenceTxPrefixKey() []byte
- func BuildQcpStoreQueryPath() []byte
- type QcpMapper
- func (mapper *QcpMapper) Copy() mapper.IMapper
- func (mapper *QcpMapper) GetChainInTrustPubKey(inChain string) (pubkey crypto.PubKey)
- func (mapper *QcpMapper) GetChainOutTxs(outChain string, sequence int64) *txs.TxQcp
- func (mapper *QcpMapper) GetMaxChainInSequence(inChain string) (seq int64)
- func (mapper *QcpMapper) GetMaxChainOutSequence(outChain string) (seq int64)
- func (mapper *QcpMapper) SetChainInTrustPubKey(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)
- func (mapper *QcpMapper) SignAndSaveTxQcp(txQcp *txs.TxQcp, signer crypto.PrivKey) *txs.TxQcp
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 BuildInPubkeyPrefixKey ¶ added in v0.2.4
func BuildInPubkeyPrefixKey() []byte
func BuildInSequenceKey ¶ added in v0.0.4
func BuildInSequencePrefixKey ¶ added in v0.2.4
func BuildInSequencePrefixKey() []byte
func BuildOutSequenceKey ¶ added in v0.0.4
func BuildOutSequencePrefixKey ¶ added in v0.2.4
func BuildOutSequencePrefixKey() []byte
func BuildOutSequenceTxKey ¶ added in v0.0.4
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 (*QcpMapper) GetChainInTrustPubKey ¶ added in v0.0.4
func (*QcpMapper) GetChainOutTxs ¶
func (*QcpMapper) GetMaxChainInSequence ¶
func (*QcpMapper) GetMaxChainOutSequence ¶
func (*QcpMapper) SetChainInTrustPubKey ¶ added in v0.0.4
func (*QcpMapper) SetChainOutTxs ¶
func (*QcpMapper) SetMaxChainInSequence ¶
func (*QcpMapper) SetMaxChainOutSequence ¶
Click to show internal directories.
Click to hide internal directories.