Documentation ¶
Index ¶
- Constants
- type AbiV1
- func (v1 *AbiV1) ParseClusterLiquidatedEvent(log types.Log, contractAbi abi.ABI) (*ClusterLiquidatedEvent, error)
- func (v1 *AbiV1) ParseClusterReactivatedEvent(log types.Log, contractAbi abi.ABI) (*ClusterReactivatedEvent, error)
- func (v1 *AbiV1) ParseFeeRecipientAddressUpdatedEvent(log types.Log, contractAbi abi.ABI) (*FeeRecipientAddressUpdatedEvent, error)
- func (v1 *AbiV1) ParseOperatorAddedEvent(log types.Log, contractAbi abi.ABI) (*OperatorAddedEvent, error)
- func (v1 *AbiV1) ParseOperatorRemovedEvent(log types.Log, contractAbi abi.ABI) (*OperatorRemovedEvent, error)
- func (v1 *AbiV1) ParseValidatorAddedEvent(log types.Log, contractAbi abi.ABI) (*ValidatorAddedEvent, error)
- func (v1 *AbiV1) ParseValidatorRemovedEvent(log types.Log, contractAbi abi.ABI) (*ValidatorRemovedEvent, error)
- type Cluster
- type ClusterLiquidatedEvent
- type ClusterReactivatedEvent
- type FeeRecipientAddressUpdatedEvent
- type MalformedEventError
- type OperatorAddedEvent
- type OperatorRemovedEvent
- type ValidatorAddedEvent
- type ValidatorRemovedEvent
Constants ¶
const ( OperatorAdded = "OperatorAdded" OperatorRemoved = "OperatorRemoved" ValidatorAdded = "ValidatorAdded" ValidatorRemoved = "ValidatorRemoved" ClusterLiquidated = "ClusterLiquidated" ClusterReactivated = "ClusterReactivated" FeeRecipientAddressUpdated = "FeeRecipientAddressUpdated" )
Event names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbiV1 ¶ added in v0.2.0
type AbiV1 struct { }
AbiV1 parsing events from v1 abi contract
func (*AbiV1) ParseClusterLiquidatedEvent ¶ added in v0.4.7
func (v1 *AbiV1) ParseClusterLiquidatedEvent(log types.Log, contractAbi abi.ABI) (*ClusterLiquidatedEvent, error)
ParseClusterLiquidatedEvent parses ClusterLiquidatedEvent
func (*AbiV1) ParseClusterReactivatedEvent ¶ added in v0.4.7
func (v1 *AbiV1) ParseClusterReactivatedEvent(log types.Log, contractAbi abi.ABI) (*ClusterReactivatedEvent, error)
ParseClusterReactivatedEvent parses ClusterReactivatedEvent
func (*AbiV1) ParseFeeRecipientAddressUpdatedEvent ¶ added in v0.4.7
func (v1 *AbiV1) ParseFeeRecipientAddressUpdatedEvent(log types.Log, contractAbi abi.ABI) (*FeeRecipientAddressUpdatedEvent, error)
ParseFeeRecipientAddressUpdatedEvent parses FeeRecipientAddressUpdatedEvent
func (*AbiV1) ParseOperatorAddedEvent ¶ added in v0.2.0
func (v1 *AbiV1) ParseOperatorAddedEvent(log types.Log, contractAbi abi.ABI) (*OperatorAddedEvent, error)
ParseOperatorAddedEvent parses an OperatorAddedEvent
func (*AbiV1) ParseOperatorRemovedEvent ¶ added in v0.4.7
func (v1 *AbiV1) ParseOperatorRemovedEvent(log types.Log, contractAbi abi.ABI) (*OperatorRemovedEvent, error)
ParseOperatorRemovedEvent parses OperatorRemovedEvent
func (*AbiV1) ParseValidatorAddedEvent ¶ added in v0.2.0
func (v1 *AbiV1) ParseValidatorAddedEvent(log types.Log, contractAbi abi.ABI) (*ValidatorAddedEvent, error)
ParseValidatorAddedEvent parses ValidatorAddedEvent
func (*AbiV1) ParseValidatorRemovedEvent ¶ added in v0.4.7
func (v1 *AbiV1) ParseValidatorRemovedEvent(log types.Log, contractAbi abi.ABI) (*ValidatorRemovedEvent, error)
ParseValidatorRemovedEvent parses ValidatorRemovedEvent
type ClusterLiquidatedEvent ¶ added in v0.4.7
type ClusterLiquidatedEvent struct { Owner common.Address // indexed OperatorIds []uint64 Cluster Cluster }
ClusterLiquidatedEvent struct represents event received by the smart contract
type ClusterReactivatedEvent ¶ added in v0.4.7
type ClusterReactivatedEvent struct { Owner common.Address // indexed OperatorIds []uint64 Cluster Cluster }
ClusterReactivatedEvent struct represents event received by the smart contract
type FeeRecipientAddressUpdatedEvent ¶ added in v0.4.7
type FeeRecipientAddressUpdatedEvent struct { Owner common.Address // indexed RecipientAddress common.Address }
FeeRecipientAddressUpdatedEvent 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 OperatorAddedEvent ¶
type OperatorAddedEvent struct { OperatorId uint64 // indexed Owner common.Address // indexed PublicKey []byte Fee *big.Int }
OperatorAddedEvent struct represents event received by the smart contract
type OperatorRemovedEvent ¶ added in v0.4.7
type OperatorRemovedEvent struct {
OperatorId uint64 // indexed
}
OperatorRemovedEvent struct represents event received by the smart contract