Documentation
¶
Index ¶
- func AddEthereumTxToKafka(t EthereumTxToKafka) error
- func AddIncomingEthereumTx(t IncomingEthereumTx) error
- func AddIncomingTendermintTx(t IncomingTendermintTx) error
- func AddTendermintTxToKafka(t TendermintTxToKafka) error
- func CheckIncomingEthereumTxExists(txHash common.Hash) bool
- func CheckIncomingTendermintTxExists(txHash tmBytes.HexBytes, msgIndex uint, denom string) bool
- func CountTotalOutgoingTendermintTx() (int, error)
- func DeleteAllValidators() error
- func DeleteEthereumTxToKafka(txHash common.Hash) error
- func DeleteOutgoingEthereumTx(txHash common.Hash) error
- func DeleteOutgoingTendermintTx(txHash string) error
- func DeleteTendermintTxToKafka(txHash tmBytes.HexBytes, msgIndex uint, denom string) error
- func DeleteValidator(address sdk.ValAddress) error
- func GetTotalTokensWrapped() (sdk.Int, error)
- func InitializeDB(dbPath string, tendermintStart, ethereumStart int64) (*badger.DB, error)
- func IterateOutgoingEthTx(operation func(key []byte, value []byte) error) error
- func IterateOutgoingTmTx(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 SetOutgoingEthereumTx(ethTransaction OutgoingEthereumTransaction) error
- func SetOutgoingTendermintTx(tmTransaction OutgoingTendermintTransaction) error
- func SetUnboundEpochTime(epochTime int64) error
- func SetValidator(validator Validator) error
- type AccountLimiter
- type DBI
- type EthereumTxToKafka
- type IncomingEthereumTx
- type IncomingTendermintTx
- type OutgoingEthereumTransaction
- type OutgoingTendermintTransaction
- type Status
- type TendermintTxToKafka
- type UnboundEpochTime
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEthereumTxToKafka ¶ added in v0.5.0
func AddEthereumTxToKafka(t EthereumTxToKafka) error
func AddIncomingEthereumTx ¶ added in v0.5.0
func AddIncomingEthereumTx(t IncomingEthereumTx) error
func AddIncomingTendermintTx ¶ added in v0.5.0
func AddIncomingTendermintTx(t IncomingTendermintTx) error
func AddTendermintTxToKafka ¶ added in v0.5.0
func AddTendermintTxToKafka(t TendermintTxToKafka) error
func CheckIncomingEthereumTxExists ¶ added in v0.5.0
func CheckIncomingTendermintTxExists ¶ added in v0.5.0
func CountTotalOutgoingTendermintTx ¶ added in v0.5.0
func DeleteAllValidators ¶ added in v0.4.1
func DeleteAllValidators() error
func DeleteEthereumTxToKafka ¶ added in v0.5.0
func DeleteOutgoingEthereumTx ¶ added in v0.5.0
func DeleteOutgoingTendermintTx ¶ added in v0.5.0
func DeleteTendermintTxToKafka ¶ added in v0.5.0
func DeleteValidator ¶
func DeleteValidator(address sdk.ValAddress) error
func GetTotalTokensWrapped ¶ added in v0.3.1
func InitializeDB ¶
func IterateOutgoingEthTx ¶ added in v0.5.0
func IterateOutgoingTmTx ¶ added in v0.5.0
func SetAccountLimiter ¶
func SetAccountLimiter(a AccountLimiter) error
func SetCosmosStatus ¶
func SetEthereumStatus ¶
func SetOutgoingEthereumTx ¶ added in v0.5.0
func SetOutgoingEthereumTx(ethTransaction OutgoingEthereumTransaction) error
func SetOutgoingTendermintTx ¶ added in v0.5.0
func SetOutgoingTendermintTx(tmTransaction OutgoingTendermintTransaction) 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 (*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 EthereumTxToKafka ¶ added in v0.5.0
func GetAllEthereumTxToKafka ¶ added in v0.5.0
func GetAllEthereumTxToKafka() ([]EthereumTxToKafka, error)
func (*EthereumTxToKafka) Key ¶ added in v0.5.0
func (t *EthereumTxToKafka) Key() []byte
func (*EthereumTxToKafka) Validate ¶ added in v0.5.0
func (t *EthereumTxToKafka) Validate() error
func (*EthereumTxToKafka) Value ¶ added in v0.5.0
func (t *EthereumTxToKafka) Value() ([]byte, error)
type IncomingEthereumTx ¶ added in v0.5.0
type IncomingEthereumTx struct {
TxHash common.Hash
Sender common.Address
MsgBytes []byte
MsgType string
}
func GetIncomingEthereumTx ¶ added in v0.5.0
func GetIncomingEthereumTx(txHash common.Hash) (IncomingEthereumTx, error)
func (*IncomingEthereumTx) Key ¶ added in v0.5.0
func (t *IncomingEthereumTx) Key() []byte
func (*IncomingEthereumTx) Validate ¶ added in v0.5.0
func (t *IncomingEthereumTx) Validate() error
func (*IncomingEthereumTx) Value ¶ added in v0.5.0
func (t *IncomingEthereumTx) Value() ([]byte, error)
type IncomingTendermintTx ¶ added in v0.5.0
type IncomingTendermintTx struct {
TxHash tmBytes.HexBytes
MsgIndex uint
Denom string
FromAddress string
Amount sdk.Int
Memo string
}
func GetIncomingTendermintTx ¶ added in v0.5.0
func (*IncomingTendermintTx) Key ¶ added in v0.5.0
func (t *IncomingTendermintTx) Key() []byte
func (*IncomingTendermintTx) Validate ¶ added in v0.5.0
func (t *IncomingTendermintTx) Validate() error
func (*IncomingTendermintTx) Value ¶ added in v0.5.0
func (t *IncomingTendermintTx) Value() ([]byte, error)
type OutgoingEthereumTransaction ¶ added in v0.5.0
type OutgoingEthereumTransaction struct {
TxHash common.Hash
Messages []outgoingTx.WrapTokenMsg
}
func NewOutgoingETHTransaction ¶ added in v0.5.0
func NewOutgoingETHTransaction(txHash common.Hash, msgs []outgoingTx.WrapTokenMsg) OutgoingEthereumTransaction
func (*OutgoingEthereumTransaction) Key ¶ added in v0.5.0
func (ethTx *OutgoingEthereumTransaction) Key() []byte
func (*OutgoingEthereumTransaction) Validate ¶ added in v0.5.0
func (ethTx *OutgoingEthereumTransaction) Validate() error
func (*OutgoingEthereumTransaction) Value ¶ added in v0.5.0
func (ethTx *OutgoingEthereumTransaction) Value() ([]byte, error)
type OutgoingTendermintTransaction ¶ added in v0.5.0
type OutgoingTendermintTransaction struct {
TxHash string
}
func NewOutgoingTMTransaction ¶ added in v0.5.0
func NewOutgoingTMTransaction(txHash string) OutgoingTendermintTransaction
func (*OutgoingTendermintTransaction) Key ¶ added in v0.5.0
func (tmTx *OutgoingTendermintTransaction) Key() []byte
func (*OutgoingTendermintTransaction) Validate ¶ added in v0.5.0
func (tmTx *OutgoingTendermintTransaction) Validate() error
func (*OutgoingTendermintTransaction) Value ¶ added in v0.5.0
func (tmTx *OutgoingTendermintTransaction) Value() ([]byte, error)
type TendermintTxToKafka ¶ added in v0.5.0
func GetAllTendermintTxToKafka ¶ added in v0.5.0
func GetAllTendermintTxToKafka() ([]TendermintTxToKafka, error)
func (*TendermintTxToKafka) Key ¶ added in v0.5.0
func (t *TendermintTxToKafka) Key() []byte
func (*TendermintTxToKafka) Validate ¶ added in v0.5.0
func (t *TendermintTxToKafka) Validate() error
func (*TendermintTxToKafka) Value ¶ added in v0.5.0
func (t *TendermintTxToKafka) 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.