exchangehandler

package
v0.0.0-...-1305305 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("quotes")

Functions

func CheckQuoteStatus

func CheckQuoteStatus()

func GetCreditAsset

func GetCreditAsset(assetCode string, assetAddressIssuer string, amount decimal.Decimal) (creditAsset interface{})

Types

type ExchangeHandler

type ExchangeHandler struct {
	HTTP              *http.Client
	GasServiceClient  gasservice.GasServiceClient
	HorizonClient     *horizon.Client
	CSClient          cryptoservice.InterfaceClient
	WLSClient         whitelistservice.InterfaceClient
	PRClient          participantregistry.InterfaceClient
	DBClient          nqsdbclient.DatabaseClient
	LogDbClient       *database.MongoClient
	MongoDbName       string
	MongoDbCollection string
}

ExchangeHandler : Holds necessary parameters used to create an atomic exchange

func (*ExchangeHandler) CreateAtomicExchange

func (eh *ExchangeHandler) CreateAtomicExchange(w http.ResponseWriter, request *http.Request)

CreateAtomicExchange : creates atomic exchange between 2 different assets based on selected quotes

type ExchangeLog

type ExchangeLog struct {
	ExchangeReceipt model.ExchangeReceipt
	OFIID           string
	RFIID           string
}

ExchangeLog holds relevant non-PII Exchange transaction data for view by the client This is currently logged to Firebase, but can be reused in other places in the future

Jump to

Keyboard shortcuts

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