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 ¶
func UnpackPositionDivested ¶
func UnpackPositionDivested(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*PositionDivested, error)
type PositionVested ¶
func UnpackPositionVested ¶
func UnpackPositionVested(topic1, topic2, topic3 ethCommon.Hash, d []byte) (*PositionVested, error)
Click to show internal directories.
Click to hide internal directories.