abiparser

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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 Cluster added in v0.4.7

type Cluster struct {
	ValidatorCount  uint32
	NetworkFeeIndex uint64
	Index           uint64
	Balance         *big.Int
	Active          bool
}

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

type ValidatorAddedEvent

type ValidatorAddedEvent struct {
	Owner           common.Address // indexed
	OperatorIds     []uint64
	PublicKey       []byte
	Shares          []byte
	SharePublicKeys [][]byte
	EncryptedKeys   [][]byte
	Cluster         Cluster
}

ValidatorAddedEvent struct represents event received by the smart contract

type ValidatorRemovedEvent added in v0.2.0

type ValidatorRemovedEvent struct {
	Owner       common.Address // indexed
	OperatorIds []uint64
	PublicKey   []byte
	Cluster     Cluster
}

ValidatorRemovedEvent struct represents event received by the smart contract

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL