abiparser

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

type AccountEnableEvent struct {
	OwnerAddress common.Address // indexed
}

AccountEnableEvent struct represents event received by the smart contract

type AccountLiquidationEvent added in v0.3.0

type AccountLiquidationEvent struct {
	OwnerAddress common.Address // indexed
}

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
	SharesPublicKeys   [][]byte
	EncryptedKeys      [][]byte
}

ValidatorRegistrationEvent struct represents event received by the smart contract

type ValidatorRemovalEvent added in v0.3.0

type ValidatorRemovalEvent struct {
	OwnerAddress common.Address // indexed
	PublicKey    []byte
}

ValidatorRemovalEvent 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