Documentation
¶
Index ¶
- func AddToPendingEthereumIncomingTx(t EthereumIncomingTx) error
- func AddToPendingTendermintIncomingTx(t TendermintIncomingTx) error
- func CheckEthereumIncomingTxProduced(txHash common.Hash) bool
- func CheckTendermintIncomingTxProduced(txHash tmBytes.HexBytes, msgIndex uint, denom string) bool
- func DeleteBroadcastedEthereumTx(txHash common.Hash) error
- func DeleteBroadcastedTendermintTx(txHash string) error
- func DeleteValidator(address sdk.ValAddress) error
- func GetTotalTMBroadcastedTx() (int, error)
- func GetTotalTokensWrapped() (sdk.Int, error)
- func InitializeDB(dbPath string, tendermintStart, ethereumStart int64) (*badger.DB, error)
- func IterateBroadcastedEthTx(operation func(key []byte, value []byte) error) error
- func IterateBroadcastedTmTx(operation func(key []byte, value []byte) error) error
- func OpenDB(dbPath string) (*badger.DB, error)
- func SetAccountLimiter(a AccountLimiter) error
- func SetBroadcastedEthereumTx(ethTransaction EthereumBroadcastedWrapTokenTransaction) error
- func SetBroadcastedTendermintTx(tmTransaction TendermintBroadcastedTransaction) error
- func SetCosmosStatus(height int64) error
- func SetEthereumIncomingTxProduced(t EthereumIncomingTx) error
- func SetEthereumStatus(height int64) error
- func SetTendermintIncomingTxProduced(t TendermintIncomingTx) error
- func SetUnboundEpochTime(epochTime int64) error
- func SetValidator(validator Validator) error
- type AccountLimiter
- type DBI
- type EthereumBroadcastedWrapTokenTransaction
- type EthereumIncomingTx
- type Status
- type TendermintBroadcastedTransaction
- type TendermintIncomingTx
- type UnboundEpochTime
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToPendingEthereumIncomingTx ¶ added in v0.4.0
func AddToPendingEthereumIncomingTx(t EthereumIncomingTx) error
func AddToPendingTendermintIncomingTx ¶ added in v0.4.0
func AddToPendingTendermintIncomingTx(t TendermintIncomingTx) error
func CheckEthereumIncomingTxProduced ¶ added in v0.4.0
func CheckTendermintIncomingTxProduced ¶ added in v0.4.0
func DeleteBroadcastedEthereumTx ¶ added in v0.4.0
func DeleteBroadcastedTendermintTx ¶ added in v0.4.0
func DeleteValidator ¶
func DeleteValidator(address sdk.ValAddress) error
func GetTotalTMBroadcastedTx ¶
func GetTotalTokensWrapped ¶ added in v0.3.1
func InitializeDB ¶
func IterateBroadcastedEthTx ¶ added in v0.4.0
func IterateBroadcastedTmTx ¶ added in v0.4.0
func SetAccountLimiter ¶
func SetAccountLimiter(a AccountLimiter) error
func SetBroadcastedEthereumTx ¶ added in v0.4.0
func SetBroadcastedEthereumTx(ethTransaction EthereumBroadcastedWrapTokenTransaction) error
func SetBroadcastedTendermintTx ¶ added in v0.4.0
func SetBroadcastedTendermintTx(tmTransaction TendermintBroadcastedTransaction) error
func SetCosmosStatus ¶
func SetEthereumIncomingTxProduced ¶ added in v0.4.0
func SetEthereumIncomingTxProduced(t EthereumIncomingTx) error
func SetEthereumStatus ¶
func SetTendermintIncomingTxProduced ¶ added in v0.4.0
func SetTendermintIncomingTxProduced(t TendermintIncomingTx) 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 EthereumIncomingTx ¶ added in v0.4.0
type EthereumIncomingTx struct {
TxHash common.Hash
ProducedToKafka bool
Sender common.Address
MsgBytes []byte
MsgType string
}
func GetEthereumIncomingTx ¶ added in v0.4.0
func GetEthereumIncomingTx(txHash common.Hash, producedToKafka bool) (EthereumIncomingTx, error)
func GetProduceToKafkaEthereumIncomingTx ¶ added in v0.4.0
func GetProduceToKafkaEthereumIncomingTx() ([]EthereumIncomingTx, error)
func (*EthereumIncomingTx) Key ¶ added in v0.4.0
func (t *EthereumIncomingTx) Key() []byte
func (*EthereumIncomingTx) Validate ¶ added in v0.4.0
func (t *EthereumIncomingTx) Validate() error
func (*EthereumIncomingTx) Value ¶ added in v0.4.0
func (t *EthereumIncomingTx) 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 TendermintIncomingTx ¶ added in v0.4.0
type TendermintIncomingTx struct {
ProducedToKafka bool
TxHash tmBytes.HexBytes
MsgIndex uint
Denom string
FromAddress string
Amount sdk.Int
Memo string
}
func GetProduceToKafkaTendermintIncomingTxs ¶ added in v0.4.0
func GetProduceToKafkaTendermintIncomingTxs() ([]TendermintIncomingTx, error)
func GetTendermintIncomingTx ¶ added in v0.4.0
func (*TendermintIncomingTx) Key ¶ added in v0.4.0
func (t *TendermintIncomingTx) Key() []byte
func (*TendermintIncomingTx) Validate ¶ added in v0.4.0
func (t *TendermintIncomingTx) Validate() error
func (*TendermintIncomingTx) Value ¶ added in v0.4.0
func (t *TendermintIncomingTx) 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.