Documentation ¶
Index ¶
- Variables
- type BlockHeader
- type CommitPubRandList
- type CreateBTCDelegation
- type CreateFinalityProvider
- type Signature
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) GetBlockHeader(number int64) (bool, BlockHeader)
- func (s *Storage) GetCommitPubRandListMsg(txHash []byte) (bool, CommitPubRandList)
- func (s *Storage) GetCreateBTCDelegationrMsg(txHash []byte) (bool, CreateBTCDelegation)
- func (s *Storage) GetCreateFinalityProviderMsg(txHash []byte) (bool, CreateFinalityProvider)
- func (s *Storage) GetScannedHeight() (uint64, error)
- func (s *Storage) GetSignature(BlockNumber int64) (Signature, error)
- func (s *Storage) GetTxMessage(txHash []byte) (bool, TxMessage)
- func (s *Storage) ResetScanHeight(height uint64) error
- func (s *Storage) SetBlockHeader(header BlockHeader) error
- func (s *Storage) SetBlockHeaders(headers []BlockHeader) error
- func (s *Storage) SetCommitPubRandListMsg(event CommitPubRandList) error
- func (s *Storage) SetCreateBTCDelegationMsg(msg CreateBTCDelegation) error
- func (s *Storage) SetCreateFinalityProviderMsg(msg CreateFinalityProvider) error
- func (s *Storage) SetSignature(sign Signature) error
- func (s *Storage) SetTxMessage(msg TxMessage) error
- func (s *Storage) SetTxMessages(msgs []TxMessage) error
- func (s *Storage) UpdateHeight(height uint64) error
- type TxMessage
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BlockHeader ¶
type CommitPubRandList ¶
type CommitPubRandList struct { CPR types.MsgCommitPubRandList TxHash []byte `json:"tx_hash"` }
type CreateBTCDelegation ¶
type CreateBTCDelegation struct { CBD types.MsgCreateBTCDelegation TxHash []byte `json:"tx_hash"` }
type CreateFinalityProvider ¶
type CreateFinalityProvider struct { FP types.MsgCreateFinalityProvider TxHash []byte `json:"tx_hash"` }
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) GetBlockHeader ¶
func (s *Storage) GetBlockHeader(number int64) (bool, BlockHeader)
func (*Storage) GetCommitPubRandListMsg ¶
func (s *Storage) GetCommitPubRandListMsg(txHash []byte) (bool, CommitPubRandList)
func (*Storage) GetCreateBTCDelegationrMsg ¶
func (s *Storage) GetCreateBTCDelegationrMsg(txHash []byte) (bool, CreateBTCDelegation)
func (*Storage) GetCreateFinalityProviderMsg ¶
func (s *Storage) GetCreateFinalityProviderMsg(txHash []byte) (bool, CreateFinalityProvider)
func (*Storage) GetScannedHeight ¶
func (*Storage) ResetScanHeight ¶
func (*Storage) SetBlockHeader ¶
func (s *Storage) SetBlockHeader(header BlockHeader) error
func (*Storage) SetBlockHeaders ¶
func (s *Storage) SetBlockHeaders(headers []BlockHeader) error
func (*Storage) SetCommitPubRandListMsg ¶
func (s *Storage) SetCommitPubRandListMsg(event CommitPubRandList) error
func (*Storage) SetCreateBTCDelegationMsg ¶
func (s *Storage) SetCreateBTCDelegationMsg(msg CreateBTCDelegation) error
func (*Storage) SetCreateFinalityProviderMsg ¶
func (s *Storage) SetCreateFinalityProviderMsg(msg CreateFinalityProvider) error
func (*Storage) SetSignature ¶
func (*Storage) SetTxMessage ¶
func (*Storage) SetTxMessages ¶
func (*Storage) UpdateHeight ¶
Click to show internal directories.
Click to hide internal directories.