fee_manager

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodedEvent

type DecodedEvent struct {
	apiClient.WatcherEventPayload
	ConcreteEvent events.ConcreteEvent
}

DecodedEvent wraps WatcherEventPayload with a decoded ConcreteEvent.

Add domain-specific enrichment fields here. For example:

FundTokenData      *events.FundTokenData
DistributorRequest *events.DistributorRequest
PaymentRequests    []workflows.PaymentRequest

func DecodeFromEvent

func DecodeFromEvent(_ context.Context, event apiClient.Event) (DecodedEvent, error)

DecodeFromEvent extracts the WatcherEventPayload from an apiClient.Event and decodes the ConcreteEvent based on the event type.

Extend this function to decode enrichment data from reference data. See the handler for which enrichment fields are populated.

func (DecodedEvent) EventName

func (e DecodedEvent) EventName() events.EventName

EventName returns the parsed event name from the payload.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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