Documentation ¶
Index ¶
- type LegacyAbi
- func (l *LegacyAbi) ParseOperatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, ...) (*LegacyOperatorAddedEvent, bool, error)
- func (l *LegacyAbi) ParseValidatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, ...) (*LegacyValidatorAddedEvent, bool, error)
- type LegacyAdapter
- func (adapter LegacyAdapter) ParseOperatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, ...) (*OperatorAddedEvent, bool, error)
- func (adapter LegacyAdapter) ParseValidatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, ...) (*ValidatorAddedEvent, bool, error)
- type LegacyOperatorAddedEvent
- type LegacyValidatorAddedEvent
- type Oess
- type OperatorAddedEvent
- type V2Abi
- func (v2 *V2Abi) ParseOperatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, ...) (*OperatorAddedEvent, bool, error)
- func (v2 *V2Abi) ParseValidatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, ...) (*ValidatorAddedEvent, bool, error)
- type ValidatorAddedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LegacyAbi ¶
type LegacyAbi struct { }
LegacyAbi parsing events from legacy abi contract
func (*LegacyAbi) ParseOperatorAddedEvent ¶
func (l *LegacyAbi) ParseOperatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, contractAbi abi.ABI) (*LegacyOperatorAddedEvent, bool, error)
ParseOperatorAddedEvent parses an OperatorAddedEvent
func (*LegacyAbi) ParseValidatorAddedEvent ¶
func (l *LegacyAbi) ParseValidatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, contractAbi abi.ABI) (*LegacyValidatorAddedEvent, bool, error)
ParseValidatorAddedEvent parses ValidatorAddedEvent
type LegacyAdapter ¶
type LegacyAdapter struct {
// contains filtered or unexported fields
}
LegacyAdapter between legacy to v2 format
func (LegacyAdapter) ParseOperatorAddedEvent ¶
func (adapter LegacyAdapter) ParseOperatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, topics []common.Hash, contractAbi abi.ABI) (*OperatorAddedEvent, bool, error)
ParseOperatorAddedEvent parses LegacyOperatorAddedEvent to OperatorAddedEvent
func (LegacyAdapter) ParseValidatorAddedEvent ¶
func (adapter LegacyAdapter) ParseValidatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, contractAbi abi.ABI) (*ValidatorAddedEvent, bool, error)
ParseValidatorAddedEvent parses LegacyValidatorAddedEvent to ValidatorAddedEvent
type LegacyOperatorAddedEvent ¶
type LegacyOperatorAddedEvent struct { Name string PublicKey []byte PaymentAddress common.Address OwnerAddress common.Address }
LegacyOperatorAddedEvent struct represents event received by the smart contract
type LegacyValidatorAddedEvent ¶
type LegacyValidatorAddedEvent struct { PublicKey []byte OwnerAddress common.Address OessList []Oess }
LegacyValidatorAddedEvent struct represents event received by the smart contract
type OperatorAddedEvent ¶
OperatorAddedEvent struct represents event received by the smart contract
type V2Abi ¶
type V2Abi struct { }
V2Abi parsing events from v2 abi contract
func (*V2Abi) ParseOperatorAddedEvent ¶
func (v2 *V2Abi) ParseOperatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, topics []common.Hash, contractAbi abi.ABI) (*OperatorAddedEvent, bool, error)
ParseOperatorAddedEvent parses an OperatorAddedEvent
func (*V2Abi) ParseValidatorAddedEvent ¶
func (v2 *V2Abi) ParseValidatorAddedEvent(logger *zap.Logger, operatorPrivateKey *rsa.PrivateKey, data []byte, contractAbi abi.ABI) (*ValidatorAddedEvent, bool, error)
ParseValidatorAddedEvent parses ValidatorAddedEvent