Documentation ¶
Index ¶
- Constants
- type AbiLegacy
- type AbiV1
- type AbiV2
- func (v2 *AbiV2) ParseAccountEnabledEvent(topics []common.Hash) (*AccountEnabledEvent, error)
- func (v2 *AbiV2) ParseAccountLiquidatedEvent(topics []common.Hash) (*AccountLiquidatedEvent, error)
- func (v2 *AbiV2) ParseOperatorAddedEvent(logger *zap.Logger, data []byte, topics []common.Hash, contractAbi abi.ABI) (*OperatorAddedEvent, error)
- func (v2 *AbiV2) ParseValidatorAddedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (event *ValidatorAddedEvent, error error)
- func (v2 *AbiV2) ParseValidatorRemovedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (*ValidatorRemovedEvent, error)
- type AccountEnabledEvent
- type AccountLiquidatedEvent
- type AdapterLegacy
- func (a AdapterLegacy) ParseAccountEnabledEvent(topics []common.Hash) (*AccountEnabledEvent, error)
- func (a AdapterLegacy) ParseAccountLiquidatedEvent(topics []common.Hash) (*AccountLiquidatedEvent, error)
- func (a AdapterLegacy) ParseOperatorAddedEvent(logger *zap.Logger, data []byte, topics []common.Hash, contractAbi abi.ABI) (*OperatorAddedEvent, error)
- func (a AdapterLegacy) ParseValidatorAddedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (*ValidatorAddedEvent, error)
- func (a AdapterLegacy) ParseValidatorRemovedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (*ValidatorRemovedEvent, error)
- type AdapterV1
- func (a AdapterV1) ParseAccountEnabledEvent(topics []common.Hash) (*AccountEnabledEvent, error)
- func (a AdapterV1) ParseAccountLiquidatedEvent(topics []common.Hash) (*AccountLiquidatedEvent, error)
- func (a AdapterV1) ParseOperatorAddedEvent(logger *zap.Logger, data []byte, topics []common.Hash, contractAbi abi.ABI) (*OperatorAddedEvent, error)
- func (a AdapterV1) ParseValidatorAddedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (*ValidatorAddedEvent, error)
- func (a AdapterV1) ParseValidatorRemovedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (*ValidatorRemovedEvent, error)
- type DecryptError
- type Oess
- type OperatorAddedEvent
- type OperatorAddedEventLegacy
- type OperatorAddedEventV1
- type UnpackError
- type ValidatorAddedEvent
- type ValidatorAddedEventLegacy
- type ValidatorAddedEventV1
- type ValidatorRemovedEvent
Constants ¶
const ( OperatorAdded = "OperatorAdded" ValidatorAdded = "ValidatorAdded" ValidatorRemoved = "ValidatorRemoved" AccountLiquidated = "AccountLiquidated" AccountEnabled = "AccountEnabled" )
Event names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbiLegacy ¶ added in v0.2.0
type AbiLegacy struct { }
AbiLegacy parsing events from legacy abi contract
func (*AbiLegacy) ParseOperatorAddedEvent ¶ added in v0.2.0
func (a *AbiLegacy) ParseOperatorAddedEvent( logger *zap.Logger, data []byte, contractAbi abi.ABI, ) (*OperatorAddedEventLegacy, error)
ParseOperatorAddedEvent parses an OperatorAddedEvent
func (*AbiLegacy) ParseValidatorAddedEvent ¶ added in v0.2.0
func (a *AbiLegacy) ParseValidatorAddedEvent( logger *zap.Logger, data []byte, contractAbi abi.ABI, ) (*ValidatorAddedEventLegacy, error)
ParseValidatorAddedEvent parses ValidatorAddedEvent
type AbiV1 ¶ added in v0.2.0
type AbiV1 struct { }
AbiV1 parsing events from v1 abi contract
func (*AbiV1) ParseOperatorAddedEvent ¶ added in v0.2.0
func (v1 *AbiV1) ParseOperatorAddedEvent( logger *zap.Logger, data []byte, topics []common.Hash, contractAbi abi.ABI, ) (*OperatorAddedEventV1, error)
ParseOperatorAddedEvent parses an OperatorAddedEvent
func (*AbiV1) ParseValidatorAddedEvent ¶ added in v0.2.0
func (v1 *AbiV1) ParseValidatorAddedEvent( logger *zap.Logger, data []byte, contractAbi abi.ABI, ) (*ValidatorAddedEventV1, error)
ParseValidatorAddedEvent parses ValidatorAddedEvent
type AbiV2 ¶ added in v0.2.0
type AbiV2 struct { }
AbiV2 parsing events from v2 abi contract
func (*AbiV2) ParseAccountEnabledEvent ¶ added in v0.2.0
func (v2 *AbiV2) ParseAccountEnabledEvent(topics []common.Hash) (*AccountEnabledEvent, error)
ParseAccountEnabledEvent parses AccountEnabledEvent
func (*AbiV2) ParseAccountLiquidatedEvent ¶ added in v0.2.0
func (v2 *AbiV2) ParseAccountLiquidatedEvent(topics []common.Hash) (*AccountLiquidatedEvent, error)
ParseAccountLiquidatedEvent parses AccountLiquidatedEvent
func (*AbiV2) ParseOperatorAddedEvent ¶ added in v0.2.0
func (v2 *AbiV2) ParseOperatorAddedEvent( logger *zap.Logger, data []byte, topics []common.Hash, contractAbi abi.ABI, ) (*OperatorAddedEvent, error)
ParseOperatorAddedEvent parses an OperatorAddedEvent
func (*AbiV2) ParseValidatorAddedEvent ¶ added in v0.2.0
func (v2 *AbiV2) ParseValidatorAddedEvent( logger *zap.Logger, data []byte, contractAbi abi.ABI, ) (event *ValidatorAddedEvent, error error)
ParseValidatorAddedEvent parses ValidatorAddedEvent
func (*AbiV2) ParseValidatorRemovedEvent ¶ added in v0.2.0
func (v2 *AbiV2) ParseValidatorRemovedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (*ValidatorRemovedEvent, error)
ParseValidatorRemovedEvent parses ValidatorRemovedEvent
type AccountEnabledEvent ¶ added in v0.2.0
AccountEnabledEvent struct represents event received by the smart contract
type AccountLiquidatedEvent ¶ added in v0.2.0
AccountLiquidatedEvent struct represents event received by the smart contract
type AdapterLegacy ¶ added in v0.2.0
type AdapterLegacy struct {
// contains filtered or unexported fields
}
AdapterLegacy between legacy to v1 format
func (AdapterLegacy) ParseAccountEnabledEvent ¶ added in v0.2.0
func (a AdapterLegacy) ParseAccountEnabledEvent(topics []common.Hash) (*AccountEnabledEvent, error)
ParseAccountEnabledEvent event is not supported in legacy format
func (AdapterLegacy) ParseAccountLiquidatedEvent ¶ added in v0.2.0
func (a AdapterLegacy) ParseAccountLiquidatedEvent(topics []common.Hash) (*AccountLiquidatedEvent, error)
ParseAccountLiquidatedEvent event is not supported in legacy format
func (AdapterLegacy) ParseOperatorAddedEvent ¶ added in v0.2.0
func (a AdapterLegacy) ParseOperatorAddedEvent( logger *zap.Logger, data []byte, topics []common.Hash, contractAbi abi.ABI, ) (*OperatorAddedEvent, error)
ParseOperatorAddedEvent parses OperatorAddedEventLegacy to OperatorAddedEvent
func (AdapterLegacy) ParseValidatorAddedEvent ¶ added in v0.2.0
func (a AdapterLegacy) ParseValidatorAddedEvent( logger *zap.Logger, data []byte, contractAbi abi.ABI, ) (*ValidatorAddedEvent, error)
ParseValidatorAddedEvent parses ValidatorAddedEventLegacy to ValidatorAddedEvent
func (AdapterLegacy) ParseValidatorRemovedEvent ¶ added in v0.2.0
func (a AdapterLegacy) ParseValidatorRemovedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (*ValidatorRemovedEvent, error)
ParseValidatorRemovedEvent event is not supported in legacy format
type AdapterV1 ¶ added in v0.2.0
type AdapterV1 struct {
// contains filtered or unexported fields
}
AdapterV1 between v1 to v2 format
func (AdapterV1) ParseAccountEnabledEvent ¶ added in v0.2.0
func (a AdapterV1) ParseAccountEnabledEvent(topics []common.Hash) (*AccountEnabledEvent, error)
ParseAccountEnabledEvent event is not supported in v1 format
func (AdapterV1) ParseAccountLiquidatedEvent ¶ added in v0.2.0
func (a AdapterV1) ParseAccountLiquidatedEvent(topics []common.Hash) (*AccountLiquidatedEvent, error)
ParseAccountLiquidatedEvent event is not supported in v1 format
func (AdapterV1) ParseOperatorAddedEvent ¶ added in v0.2.0
func (a AdapterV1) ParseOperatorAddedEvent( logger *zap.Logger, data []byte, topics []common.Hash, contractAbi abi.ABI, ) (*OperatorAddedEvent, error)
ParseOperatorAddedEvent parses OperatorAddedEventV1 to OperatorAddedEvent
func (AdapterV1) ParseValidatorAddedEvent ¶ added in v0.2.0
func (a AdapterV1) ParseValidatorAddedEvent( logger *zap.Logger, data []byte, contractAbi abi.ABI, ) (*ValidatorAddedEvent, error)
ParseValidatorAddedEvent parses ValidatorAddedEventV1 to ValidatorAddedEvent
func (AdapterV1) ParseValidatorRemovedEvent ¶ added in v0.2.0
func (a AdapterV1) ParseValidatorRemovedEvent(logger *zap.Logger, data []byte, contractAbi abi.ABI) (*ValidatorRemovedEvent, error)
ParseValidatorRemovedEvent event is not supported in v1 format
type DecryptError ¶ added in v0.2.0
type DecryptError struct {
Err error
}
DecryptError is returned when the decryption of the share private key fails
func (*DecryptError) Error ¶ added in v0.2.0
func (e *DecryptError) Error() string
type OperatorAddedEvent ¶
type OperatorAddedEvent struct { Id *big.Int //nolint Name string OwnerAddress common.Address PublicKey []byte Fee *big.Int }
OperatorAddedEvent struct represents event received by the smart contract
type OperatorAddedEventLegacy ¶ added in v0.2.0
type OperatorAddedEventLegacy struct { Name string PublicKey []byte PaymentAddress common.Address OwnerAddress common.Address }
OperatorAddedEventLegacy struct represents event received by the smart contract
type OperatorAddedEventV1 ¶ added in v0.2.0
OperatorAddedEventV1 struct represents event received by the smart contract
type UnpackError ¶ added in v0.2.0
type UnpackError struct {
Err error
}
UnpackError is returned when unpacking fails
func (*UnpackError) Error ¶ added in v0.2.0
func (e *UnpackError) Error() string
type ValidatorAddedEvent ¶
type ValidatorAddedEvent struct { PublicKey []byte OwnerAddress common.Address OperatorPublicKeys [][]byte OperatorIds []*big.Int EncryptedKeys [][]byte }
ValidatorAddedEvent struct represents event received by the smart contract
type ValidatorAddedEventLegacy ¶ added in v0.2.0
type ValidatorAddedEventLegacy struct { PublicKey []byte OwnerAddress common.Address OessList []Oess }
ValidatorAddedEventLegacy struct represents event received by the smart contract
type ValidatorAddedEventV1 ¶ added in v0.2.0
type ValidatorAddedEventV1 struct { PublicKey []byte OwnerAddress common.Address OperatorPublicKeys [][]byte EncryptedKeys [][]byte }
ValidatorAddedEventV1 struct represents event received by the smart contract
type ValidatorRemovedEvent ¶ added in v0.2.0
ValidatorRemovedEvent struct represents event received by the smart contract