Documentation ¶
Index ¶
- Variables
- type Database
- func (db *Database) DelCosmosTxReproving(hash tb.HexBytes) error
- func (db *Database) DelPolyTxReproving(txhash string) error
- func (db *Database) DelTxInCosmosStatus(hash tb.HexBytes) error
- func (db *Database) DelTxInPolyStatus(hash common.Uint256) error
- func (db *Database) GetCosmosHeight() int64
- func (db *Database) GetCosmosTxReproving() ([]*coretypes.ResultTx, error)
- func (db *Database) GetPolyHeight() uint32
- func (db *Database) GetPolyTxReproving() ([]*PolyProofAndHeader, error)
- func (db *Database) LoadCosmosStatus(m *sync.Map) (int, error)
- func (db *Database) LoadPolyStatus(m *sync.Map) (int, error)
- func (db *Database) SetCosmosHeight(height int64) error
- func (db *Database) SetCosmosTxReproving(rTx *coretypes.ResultTx) error
- func (db *Database) SetCosmosTxTxInChan(hash tb.HexBytes)
- func (db *Database) SetPolyHeight(height uint32) error
- func (db *Database) SetPolyTxReproving(txhash, proof string, hdr *types.Header) error
- func (db *Database) SetPolyTxTxInChan(txhash string)
- func (db *Database) SetTxToCosmosStatus(hash tb.HexBytes, pph *PolyProofAndHeader) error
- func (db *Database) SetTxToPolyStatus(hash common.Uint256, rtx *coretypes.ResultTx) error
- type PolyProofAndHeader
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) DelCosmosTxReproving ¶
func (*Database) DelPolyTxReproving ¶
func (*Database) DelTxInCosmosStatus ¶
func (*Database) DelTxInPolyStatus ¶
func (*Database) GetCosmosHeight ¶
func (*Database) GetCosmosTxReproving ¶
func (*Database) GetPolyHeight ¶
func (*Database) GetPolyTxReproving ¶
func (db *Database) GetPolyTxReproving() ([]*PolyProofAndHeader, error)
func (*Database) SetCosmosHeight ¶
func (*Database) SetCosmosTxReproving ¶
func (*Database) SetCosmosTxTxInChan ¶
func (*Database) SetPolyHeight ¶
func (*Database) SetPolyTxReproving ¶
func (*Database) SetPolyTxTxInChan ¶
func (*Database) SetTxToCosmosStatus ¶
func (db *Database) SetTxToCosmosStatus(hash tb.HexBytes, pph *PolyProofAndHeader) error
type PolyProofAndHeader ¶
type PolyProofAndHeader struct { Txhash string Proof string Hdr *types.Header CCID []byte FromChainId uint64 }
func (*PolyProofAndHeader) Deserialize ¶
func (pph *PolyProofAndHeader) Deserialize(raw []byte) error
func (*PolyProofAndHeader) Serialize ¶
func (pph *PolyProofAndHeader) Serialize() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.