Documentation
¶
Index ¶
- Constants
- type AbiV2
- func (v2 *AbiV2) ParseAccountEnableEvent(log types.Log) (*AccountEnableEvent, error)
- func (v2 *AbiV2) ParseAccountLiquidationEvent(log types.Log) (*AccountLiquidationEvent, error)
- func (v2 *AbiV2) ParseOperatorRegistrationEvent(log types.Log, contractAbi abi.ABI) (*OperatorRegistrationEvent, error)
- func (v2 *AbiV2) ParseOperatorRemovalEvent(log types.Log, contractAbi abi.ABI) (*OperatorRemovalEvent, error)
- func (v2 *AbiV2) ParseValidatorRegistrationEvent(log types.Log, contractAbi abi.ABI) (event *ValidatorRegistrationEvent, error error)
- func (v2 *AbiV2) ParseValidatorRemovalEvent(log types.Log, contractAbi abi.ABI) (*ValidatorRemovalEvent, error)
- type AccountEnableEvent
- type AccountLiquidationEvent
- type MalformedEventError
- type OperatorRegistrationEvent
- type OperatorRemovalEvent
- type ValidatorRegistrationEvent
- type ValidatorRemovalEvent
Constants ¶
const ( OperatorRegistration = "OperatorRegistration" OperatorRemoval = "OperatorRemoval" ValidatorRegistration = "ValidatorRegistration" ValidatorRemoval = "ValidatorRemoval" AccountLiquidation = "AccountLiquidation" AccountEnable = "AccountEnable" )
Event names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbiV2 ¶ added in v0.2.0
type AbiV2 struct {
}
AbiV2 parsing events from v2 abi contract
func (*AbiV2) ParseAccountEnableEvent ¶ added in v0.3.0
func (v2 *AbiV2) ParseAccountEnableEvent(log types.Log) (*AccountEnableEvent, error)
ParseAccountEnableEvent parses AccountEnableEvent
func (*AbiV2) ParseAccountLiquidationEvent ¶ added in v0.3.0
func (v2 *AbiV2) ParseAccountLiquidationEvent(log types.Log) (*AccountLiquidationEvent, error)
ParseAccountLiquidationEvent parses AccountLiquidationEvent
func (*AbiV2) ParseOperatorRegistrationEvent ¶ added in v0.3.0
func (v2 *AbiV2) ParseOperatorRegistrationEvent( log types.Log, contractAbi abi.ABI, ) (*OperatorRegistrationEvent, error)
ParseOperatorRegistrationEvent parses an OperatorRegistrationEvent
func (*AbiV2) ParseOperatorRemovalEvent ¶ added in v0.3.0
func (v2 *AbiV2) ParseOperatorRemovalEvent(log types.Log, contractAbi abi.ABI) (*OperatorRemovalEvent, error)
ParseOperatorRemovalEvent parses OperatorRemovalEvent
func (*AbiV2) ParseValidatorRegistrationEvent ¶ added in v0.3.0
func (v2 *AbiV2) ParseValidatorRegistrationEvent( log types.Log, contractAbi abi.ABI, ) (event *ValidatorRegistrationEvent, error error)
ParseValidatorRegistrationEvent parses ValidatorRegistrationEvent
func (*AbiV2) ParseValidatorRemovalEvent ¶ added in v0.3.0
func (v2 *AbiV2) ParseValidatorRemovalEvent(log types.Log, contractAbi abi.ABI) (*ValidatorRemovalEvent, error)
ParseValidatorRemovalEvent parses ValidatorRemovalEvent
type AccountEnableEvent ¶ added in v0.3.0
AccountEnableEvent struct represents event received by the smart contract
type AccountLiquidationEvent ¶ added in v0.3.0
AccountLiquidationEvent struct represents event received by the smart contract
type MalformedEventError ¶ added in v0.3.0
type MalformedEventError struct {
Err error
}
MalformedEventError is returned when event is malformed
func (*MalformedEventError) Error ¶ added in v0.3.0
func (e *MalformedEventError) Error() string
type OperatorRegistrationEvent ¶ added in v0.3.0
type OperatorRegistrationEvent struct {
Id uint32 //nolint // indexed
Name string
OwnerAddress common.Address // indexed
PublicKey []byte
Fee *big.Int
}
OperatorRegistrationEvent struct represents event received by the smart contract
type OperatorRemovalEvent ¶ added in v0.3.0
type OperatorRemovalEvent struct {
OperatorId uint32 //nolint
OwnerAddress common.Address // indexed
}
OperatorRemovalEvent struct represents event received by the smart contract
type ValidatorRegistrationEvent ¶ added in v0.3.0
type ValidatorRegistrationEvent struct {
PublicKey []byte
OwnerAddress common.Address // indexed
OperatorPublicKeys [][]byte
OperatorIds []uint32
EncryptedKeys [][]byte
}
ValidatorRegistrationEvent struct represents event received by the smart contract
type ValidatorRemovalEvent ¶ added in v0.3.0
ValidatorRemovalEvent struct represents event received by the smart contract