Documentation ¶
Index ¶
- Variables
- type Database
- func (db *Database) DelCosmosTxReproving(hash tb.HexBytes) error
- func (db *Database) DelTxInCosmosStatus(hash tb.HexBytes) error
- func (db *Database) GetCosmosHeight() int64
- func (db *Database) GetCosmosTxReproving() ([]*coretypes.ResultTx, error)
- func (db *Database) LoadCosmosStatus(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) SetTxToCosmosStatus(hash tb.HexBytes, pph *PolyProofAndHeader) error
- type PolyProofAndHeader
Constants ¶
This section is empty.
Variables ¶
View Source
var ( COSMOSState = []byte("cosmos") CosmosReProve = []byte("cosmos_reprove") CosmosStatusKey = []byte("cosmos_status") )
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) DelCosmosTxReproving ¶
func (*Database) DelTxInCosmosStatus ¶
func (*Database) GetCosmosHeight ¶
func (*Database) GetCosmosTxReproving ¶
func (*Database) SetCosmosHeight ¶
func (*Database) SetCosmosTxReproving ¶
func (*Database) SetCosmosTxTxInChan ¶
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.