Documentation
¶
Index ¶
- func DeleteEthereumTx(txHash common.Hash) error
- func DeleteTendermintTx(txHash string) error
- func DeleteValidator(address sdk.ValAddress) error
- func GetTotalEthBroadcastedTx() (int, error)
- func GetTotalTMBroadcastedTx() (int, error)
- func InitializeDB(dbPath string, tendermintStart, ethereumStart int64) (*badger.DB, error)
- func IterateEthTx(operation func(key []byte, value []byte) error) error
- func IterateTmTx(operation func(key []byte, value []byte) error) error
- func OpenDB(dbPath string) (*badger.DB, error)
- func SetAccountLimiter(a AccountLimiter) error
- func SetCosmosStatus(height int64) error
- func SetEthereumStatus(height int64) error
- func SetEthereumTx(ethTransaction EthereumBroadcastedWrapTokenTransaction) error
- func SetTendermintTx(tmTransaction TendermintBroadcastedTransaction) error
- func SetUnboundEpochTime(epochTime int64) error
- func SetValidator(validator Validator) error
- type AccountLimiter
- type DBI
- type EthereumBroadcastedWrapTokenTransaction
- type Status
- type TendermintBroadcastedTransaction
- type UnboundEpochTime
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEthereumTx ¶
func DeleteTendermintTx ¶
func DeleteValidator ¶
func DeleteValidator(address sdk.ValAddress) error
func GetTotalTMBroadcastedTx ¶
func InitializeDB ¶
func SetAccountLimiter ¶
func SetAccountLimiter(a AccountLimiter) error
func SetCosmosStatus ¶
func SetEthereumStatus ¶
func SetEthereumTx ¶
func SetEthereumTx(ethTransaction EthereumBroadcastedWrapTokenTransaction) error
func SetTendermintTx ¶
func SetTendermintTx(tmTransaction TendermintBroadcastedTransaction) error
func SetUnboundEpochTime ¶
func SetValidator ¶
Types ¶
type AccountLimiter ¶
type AccountLimiter struct {
AccountAddress sdk.AccAddress
Amount sdk.Int
}
func GetAccountLimiter ¶
func GetAccountLimiter(address sdk.AccAddress) (AccountLimiter, error)
func GetAccountLimiterAndTotal ¶
func GetAccountLimiterAndTotal(address sdk.AccAddress) (AccountLimiter, int)
func (*AccountLimiter) Key ¶
func (a *AccountLimiter) Key() []byte
func (*AccountLimiter) Validate ¶
func (a *AccountLimiter) Validate() error
func (*AccountLimiter) Value ¶
func (a *AccountLimiter) Value() ([]byte, error)
type EthereumBroadcastedWrapTokenTransaction ¶
type EthereumBroadcastedWrapTokenTransaction struct {
TxHash common.Hash
Messages []outgoingTx.WrapTokenMsg
}
func NewETHTransaction ¶
func NewETHTransaction(txHash common.Hash, msgs []outgoingTx.WrapTokenMsg) EthereumBroadcastedWrapTokenTransaction
func (*EthereumBroadcastedWrapTokenTransaction) Key ¶
func (ethTx *EthereumBroadcastedWrapTokenTransaction) Key() []byte
func (*EthereumBroadcastedWrapTokenTransaction) Validate ¶
func (ethTx *EthereumBroadcastedWrapTokenTransaction) Validate() error
func (*EthereumBroadcastedWrapTokenTransaction) Value ¶
func (ethTx *EthereumBroadcastedWrapTokenTransaction) Value() ([]byte, error)
type TendermintBroadcastedTransaction ¶
type TendermintBroadcastedTransaction struct {
TxHash string
}
func NewTMTransaction ¶
func NewTMTransaction(txHash string) TendermintBroadcastedTransaction
func (*TendermintBroadcastedTransaction) Key ¶
func (tmTx *TendermintBroadcastedTransaction) Key() []byte
func (*TendermintBroadcastedTransaction) Validate ¶
func (tmTx *TendermintBroadcastedTransaction) Validate() error
func (*TendermintBroadcastedTransaction) Value ¶
func (tmTx *TendermintBroadcastedTransaction) Value() ([]byte, error)
type UnboundEpochTime ¶
type UnboundEpochTime struct {
Epoch int64
}
func GetUnboundEpochTime ¶
func GetUnboundEpochTime() (UnboundEpochTime, error)
func (*UnboundEpochTime) Key ¶
func (u *UnboundEpochTime) Key() []byte
func (*UnboundEpochTime) Validate ¶
func (u *UnboundEpochTime) Validate() error
func (*UnboundEpochTime) Value ¶
func (u *UnboundEpochTime) Value() ([]byte, error)
type Validator ¶
type Validator struct {
Address sdk.ValAddress
Name string
}
func GetValidator ¶
func GetValidator(address sdk.ValAddress) (Validator, error)
func GetValidators ¶
Click to show internal directories.
Click to hide internal directories.