Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { SwappedMNTP prometheus.Counter RequestConfirmed prometheus.Counter RequestFailed prometheus.Counter }
Metrics data
type Swapper ¶
type Swapper struct {
// contains filtered or unexported fields
}
Swapper tries to send MNT transactions via mint-sender external service. Reads new MNTP swap events from the specified channel, initiates MNT emission and waits for completion
func New ¶
func New( d db.DAO, chNewSwaps <-chan *types.Swap, alerter alert.Alerter, mintsenderURL, mintsenderPrefix, mintsenderService string, logger *logrus.Entry, ) (*Swapper, error)
New instance
func (*Swapper) AddMetrics ¶
AddMetrics adds metrics counters and should be called before service launch
Click to show internal directories.
Click to hide internal directories.