tasks

package
v0.0.0-...-8cb115f Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: AGPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeMarketRate

func ComputeMarketRate() error

ComputeMarketRate computes the market price for fiat currencies

func GetTronLatestBlock

func GetTronLatestBlock(endpoint string) (int64, error)

GetTronLatestBlock fetches the latest block (timestamp in milliseconds) for Tron

func HandleReceiveAddressValidity

func HandleReceiveAddressValidity() error

HandleReceiveAddressValidity handles receive address validity

func ReassignStaleOrderRequest

func ReassignStaleOrderRequest(ctx context.Context, orderRequestChan <-chan *redis.Message)

ReassignStaleOrderRequest reassigns expired order requests to providers

func RetryFailedWebhookNotifications

func RetryFailedWebhookNotifications() error

Retry failed webhook notifications

func RetryStaleUserOperations

func RetryStaleUserOperations() error

RetryStaleUserOperations retries stale user operations TODO: Fetch failed orders from a separate db table and process them

func StartCronJobs

func StartCronJobs()

StartCronJobs starts cron jobs

func SubscribeToRedisKeyspaceEvents

func SubscribeToRedisKeyspaceEvents()

SubscribeToRedisKeyspaceEvents subscribes to redis keyspace events according to redis.conf settings

func SyncLockOrderFulfillments

func SyncLockOrderFulfillments()

SyncLockOrderFulfillments syncs lock order fulfillments

func TaskIndexBlockchainEvents

func TaskIndexBlockchainEvents() error

TaskIndexBlockchainEvents indexes transfer events for all enabled tokens

Types

This section is empty.

Jump to

Keyboard shortcuts

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