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 TopicPositionVested2 = abi.Events["PositionVested2"].ID TopicPositionDivested2 = abi.Events["PositionDivested2"].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"` 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 PositionDivested2 ¶
type PositionDivested2 struct { events.Event PositionId types.Number `json:"positionId"` Recipient types.Address `json:"address"` }
func UnpackPositionDivested2 ¶
func UnpackPositionDivested2(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*PositionDivested2, error)
type PositionVested2 ¶
type PositionVested2 struct { events.Event PositionId types.Number `json:"positionId"` Owner types.Address `json:"owner"` }
func UnpackPositionVested2 ¶
func UnpackPositionVested2(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*PositionVested2, error)
Click to show internal directories.
Click to hide internal directories.