swap

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIntegration

func NewIntegration(
	log *zap.Logger,
	accounts account.Store,
	pushes push.Store,
	settings settings.Store,
	ocpData ocp_data.Provider,
	ocpExchangeRates ocp_currency_exchange.Store,
	ocpReserveStates ocp_currency_reserve.Store,
	pusher push.Pusher,
	enableGainPushes bool,
	gainPushCooldown time.Duration,
) ocp_integration.Swap

Types

type Integration

type Integration struct {
	// contains filtered or unexported fields
}

func (*Integration) OnSwapFinalized

func (i *Integration) OnSwapFinalized(ctx context.Context, owner *ocp_common.Account, isBuy bool, mint *ocp_common.Account, currencyName string, region ocp_currency_lib.Code, amountReceived float64) error

func (*Integration) OnSwapSubmitted added in v1.9.0

func (i *Integration) OnSwapSubmitted(ctx context.Context, owner *common.Account, fromMint, toMint *ocp_common.Account, amount uint64) error

Jump to

Keyboard shortcuts

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