leo

package
v0.0.0-...-3d859bf Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TopicCampaignBalanceUpdated = abi.Events["CampaignBalanceUpdated"].ID
	TopicCampaignCreated        = abi.Events["CampaignCreated"].ID
	TopicCampaignUpdated        = abi.Events["CampaignUpdated"].ID
	TopicPositionVested         = abi.Events["PositionVested"].ID
	TopicPositionDivested       = abi.Events["PositionDivested"].ID
)

Functions

This section is empty.

Types

type CampaignBalanceUpdated

type CampaignBalanceUpdated struct {
	events.Event

	Identifier types.Data           `json:"identifier"`
	NewMaximum types.UnscaledNumber `json:"newMaximum"`
}

func UnpackCampaignBalanceUpdated

func UnpackCampaignBalanceUpdated(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*CampaignBalanceUpdated, error)

type CampaignCreated

type CampaignCreated struct {
	events.Event

	Identifier types.Data    `json:"identifier"`
	Pool       types.Address `json:"pool"`
	Token      types.Address `json:"token"`
	TickLower  int32         `json:"tickLower"`
	TickUpper  int32         `json:"tickUpper"`
	Owner      types.Address `json:"owner"`
	Starting   time.Time     `json:"starting"`
	Ending     time.Time     `json:"ending"`
	PerSecond  uint64        `json:"perSecond"`
}

CampaignCreated, unpacked in the local function with some of the concatenated fields.

func UnpackCampaignCreated

func UnpackCampaignCreated(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*CampaignCreated, error)

UnpackCampaignCreated events, also unpacking the packed "details" field to some of the extra bits of information we track

type CampaignUpdated

type CampaignUpdated struct {
	events.Event

	Identifier types.Data    `json:"identifier"`
	Pool       types.Address `json:"pool"`
	PerSecond  types.Number  `json:"perSecond"`
	Token      types.Address `json:"token"`
	TickLower  int32         `json:"tickLower"`
	TickUpper  int32         `json:"tickUpper"`
	Starting   time.Time     `json:"starting"`
	Ending     time.Time     `json:"ending"`
}

func UnpackCampaignUpdated

func UnpackCampaignUpdated(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*CampaignUpdated, error)

UnpackCampaignUpdated happening with a new iteration of an existing campaign for a specific pool

type PositionDivested

type PositionDivested struct {
	events.Event

	PositionId types.Number `json:"positionId"`
}

func UnpackPositionDivested

func UnpackPositionDivested(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*PositionDivested, error)

type PositionVested

type PositionVested struct {
	events.Event

	PositionId types.Number `json:"positionId"`
}

func UnpackPositionVested

func UnpackPositionVested(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*PositionVested, error)

Jump to

Keyboard shortcuts

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