Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIntegration ¶
func NewIntegration( log *zap.Logger, accounts account.Store, pushTokens push.TokenStore, 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, isMintInit bool) error
func (*Integration) OnSwapSubmitted ¶ added in v1.9.0
func (i *Integration) OnSwapSubmitted(ctx context.Context, owner *common.Account, fromMint, toMint *ocp_common.Account) error
Click to show internal directories.
Click to hide internal directories.