Documentation
¶
Index ¶
- Variables
- type BabylonBlockHeader
- type BtcUndelegate
- type CommitPubRandList
- type ContractEvent
- type CreateBTCDelegation
- type CreateFinalityProvider
- type EthBlockHeader
- type NodeMembers
- type OperatorRegistered
- type SelectiveSlashingEvidence
- type Signature
- type Storage
- func (s *Storage) Close() error
- func (s *Storage) GetActiveMember() (NodeMembers, error)
- func (s *Storage) GetBTCDelegateAmount(address []byte) (uint64, error)
- func (s *Storage) GetBabylonBlockHeader(number int64) (bool, BabylonBlockHeader)
- func (s *Storage) GetBabylonDelegationKey(btcTx []byte) ([]byte, error)
- func (s *Storage) GetBabylonScannedHeight() (uint64, error)
- func (s *Storage) GetBtcUndelegateMsg(txHash []byte) (bool, BtcUndelegate)
- func (s *Storage) GetCommitPubRandListMsg(txHash []byte) (bool, CommitPubRandList)
- func (s *Storage) GetContractEvent(txHash []byte) (bool, ContractEvent)
- func (s *Storage) GetCreateBTCDelegationMsg(txHash []byte) (bool, CreateBTCDelegation)
- func (s *Storage) GetCreateFinalityProviderMsg(txHash []byte) (bool, CreateFinalityProvider)
- func (s *Storage) GetEthBlockHeader(number int64) (EthBlockHeader, error)
- func (s *Storage) GetEthScannedHeight() (uint64, error)
- func (s *Storage) GetSelectiveSlashingEvidenceMsg(txHash []byte) (bool, SelectiveSlashingEvidence)
- func (s *Storage) GetSignature(BlockNumber int64) (Signature, error)
- func (s *Storage) GetTxMessage(txHash []byte) (bool, TxMessage)
- func (s *Storage) ResetBabylonScanHeight(height uint64) error
- func (s *Storage) ResetEthScanHeight(height uint64) error
- func (s *Storage) SetBabylonBlockHeader(header BabylonBlockHeader) error
- func (s *Storage) SetBabylonBlockHeaders(headers []BabylonBlockHeader) error
- func (s *Storage) SetBabylonDelegationKey(babylonTx []byte, btcTx []byte) error
- func (s *Storage) SetBtcUndelegateMsg(msg BtcUndelegate) error
- func (s *Storage) SetCommitPubRandListMsg(event CommitPubRandList) error
- func (s *Storage) SetContractEvent(event ContractEvent) error
- func (s *Storage) SetContractEvents(events []ContractEvent) error
- func (s *Storage) SetCreateBTCDelegationMsg(msg CreateBTCDelegation) error
- func (s *Storage) SetCreateFinalityProviderMsg(msg CreateFinalityProvider) error
- func (s *Storage) SetEthBlockHeader(header EthBlockHeader) error
- func (s *Storage) SetEthBlockHeaders(headers []EthBlockHeader) error
- func (s *Storage) SetOperatorRegisteredEvent(event OperatorRegistered) error
- func (s *Storage) SetSelectiveSlashingEvidenceMsg(msg SelectiveSlashingEvidence) 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) UpdateBabylonHeight(height uint64) error
- func (s *Storage) UpdateEthHeight(height uint64) error
- type TxMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BabylonBlockHeaderKeyPrefix = []byte{0x01} EthBlockHeaderKeyPrefix = []byte{0x02} TxMessageKeyPrefix = []byte{0x03} EthScannedHeightKeyPrefix = []byte{0x04} BabylonScannedHeightKeyPrefix = []byte{0x05} NewFinalityProviderKeyPrefix = []byte{0x06} CreateBTCDelegationKeyPrefix = []byte{0x07} CommitPubRandListKeyPrefix = []byte{0x08} SignatureKeyPrefix = []byte{0x09} ContractEventKeyPrefix = []byte{0x10} ActiveMemberKeyPrefix = []byte{0x11} BtcUndelegateKeyPrefix = []byte{0x12} BTCDelegateAmountKeyPrefix = []byte{0x13} SelectiveSlashingEvidenceKeyPrefix = []byte{0x14} BabylonDelegationKeyPrefix = []byte{0x15} )
Functions ¶
This section is empty.
Types ¶
type BabylonBlockHeader ¶
type BtcUndelegate ¶
type BtcUndelegate struct { BU types.MsgBTCUndelegate TxHash []byte `json:"tx_hash"` }
type CommitPubRandList ¶
type CommitPubRandList struct { CPR types.MsgCommitPubRandList TxHash []byte `json:"tx_hash"` }
type ContractEvent ¶
type ContractEvent struct { BlockHeight uint64 `json:"block_height"` ContractAddress common.Address `json:"contract_address"` TransactionHash common.Hash `json:"transaction_hash"` LogIndex uint64 `json:"log_index"` EventSignature common.Hash `json:"event_signature"` RLPLog *types.Log `json:"rlp_log"` Timestamp uint64 `json:"timestamp"` }
func ContractEventFromLog ¶
func ContractEventFromLog(log *types.Log, timestamp uint64) ContractEvent
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 EthBlockHeader ¶
type NodeMembers ¶
type NodeMembers struct {
Members []string `json:"members"`
}
type OperatorRegistered ¶
type SelectiveSlashingEvidence ¶
type SelectiveSlashingEvidence struct { SSE types.MsgSelectiveSlashingEvidence TxHash []byte `json:"tx_hash"` }
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) GetActiveMember ¶
func (s *Storage) GetActiveMember() (NodeMembers, error)
func (*Storage) GetBTCDelegateAmount ¶
func (*Storage) GetBabylonBlockHeader ¶
func (s *Storage) GetBabylonBlockHeader(number int64) (bool, BabylonBlockHeader)
func (*Storage) GetBabylonDelegationKey ¶
func (*Storage) GetBabylonScannedHeight ¶
func (*Storage) GetBtcUndelegateMsg ¶
func (s *Storage) GetBtcUndelegateMsg(txHash []byte) (bool, BtcUndelegate)
func (*Storage) GetCommitPubRandListMsg ¶
func (s *Storage) GetCommitPubRandListMsg(txHash []byte) (bool, CommitPubRandList)
func (*Storage) GetContractEvent ¶
func (s *Storage) GetContractEvent(txHash []byte) (bool, ContractEvent)
func (*Storage) GetCreateBTCDelegationMsg ¶
func (s *Storage) GetCreateBTCDelegationMsg(txHash []byte) (bool, CreateBTCDelegation)
func (*Storage) GetCreateFinalityProviderMsg ¶
func (s *Storage) GetCreateFinalityProviderMsg(txHash []byte) (bool, CreateFinalityProvider)
func (*Storage) GetEthBlockHeader ¶
func (s *Storage) GetEthBlockHeader(number int64) (EthBlockHeader, error)
func (*Storage) GetEthScannedHeight ¶
func (*Storage) GetSelectiveSlashingEvidenceMsg ¶
func (s *Storage) GetSelectiveSlashingEvidenceMsg(txHash []byte) (bool, SelectiveSlashingEvidence)
func (*Storage) ResetBabylonScanHeight ¶
func (*Storage) ResetEthScanHeight ¶
func (*Storage) SetBabylonBlockHeader ¶
func (s *Storage) SetBabylonBlockHeader(header BabylonBlockHeader) error
func (*Storage) SetBabylonBlockHeaders ¶
func (s *Storage) SetBabylonBlockHeaders(headers []BabylonBlockHeader) error
func (*Storage) SetBabylonDelegationKey ¶
func (*Storage) SetBtcUndelegateMsg ¶
func (s *Storage) SetBtcUndelegateMsg(msg BtcUndelegate) error
func (*Storage) SetCommitPubRandListMsg ¶
func (s *Storage) SetCommitPubRandListMsg(event CommitPubRandList) error
func (*Storage) SetContractEvent ¶
func (s *Storage) SetContractEvent(event ContractEvent) error
func (*Storage) SetContractEvents ¶
func (s *Storage) SetContractEvents(events []ContractEvent) error
func (*Storage) SetCreateBTCDelegationMsg ¶
func (s *Storage) SetCreateBTCDelegationMsg(msg CreateBTCDelegation) error
func (*Storage) SetCreateFinalityProviderMsg ¶
func (s *Storage) SetCreateFinalityProviderMsg(msg CreateFinalityProvider) error
func (*Storage) SetEthBlockHeader ¶
func (s *Storage) SetEthBlockHeader(header EthBlockHeader) error
func (*Storage) SetEthBlockHeaders ¶
func (s *Storage) SetEthBlockHeaders(headers []EthBlockHeader) error
func (*Storage) SetOperatorRegisteredEvent ¶
func (s *Storage) SetOperatorRegisteredEvent(event OperatorRegistered) error
func (*Storage) SetSelectiveSlashingEvidenceMsg ¶
func (s *Storage) SetSelectiveSlashingEvidenceMsg(msg SelectiveSlashingEvidence) error
func (*Storage) SetSignature ¶
func (*Storage) SetTxMessage ¶
func (*Storage) SetTxMessages ¶
func (*Storage) UpdateBabylonHeight ¶
func (*Storage) UpdateEthHeight ¶
Source Files
¶
- babylon_block_header.go
- babylon_scan_height.go
- btc_undelegate.go
- commit_pub_rand_list.go
- contract_event.go
- create_btc_delegation.go
- eth_block_header.go
- eth_scan_height.go
- finality_realyer_manager.go
- keys.go
- new_finality_provider.go
- selective_slashing_evidence.go
- signature.go
- storage.go
- tx_message.go
Click to show internal directories.
Click to hide internal directories.