added the CreditSendReverseQuote prefix and URL
This commit is contained in:
		
							parent
							
								
									a705443786
								
							
						
					
					
						commit
						81ff6c4034
					
				| @ -7,26 +7,27 @@ import ( | |||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| const ( | const ( | ||||||
| 	createAccountPath           = "/api/v2/account/create" | 	createAccountPath            = "/api/v2/account/create" | ||||||
| 	trackStatusPath             = "/api/track" | 	trackStatusPath              = "/api/track" | ||||||
| 	balancePathPrefix           = "/api/account" | 	balancePathPrefix            = "/api/account" | ||||||
| 	trackPath                   = "/api/v2/account/status" | 	trackPath                    = "/api/v2/account/status" | ||||||
| 	tokenTransferPrefix         = "/api/v2/token/transfer" | 	tokenTransferPrefix          = "/api/v2/token/transfer" | ||||||
| 	voucherHoldingsPathPrefix   = "/api/v1/holdings" | 	voucherHoldingsPathPrefix    = "/api/v1/holdings" | ||||||
| 	voucherTransfersPathPrefix  = "/api/v1/transfers/last10" | 	voucherTransfersPathPrefix   = "/api/v1/transfers/last10" | ||||||
| 	voucherDataPathPrefix       = "/api/v1/token" | 	voucherDataPathPrefix        = "/api/v1/token" | ||||||
| 	SendSMSPrefix               = "api/v1/external/upsell" | 	SendSMSPrefix                = "api/v1/external/upsell" | ||||||
| 	poolDepositPrefix           = "/api/v2/pool/deposit" | 	poolDepositPrefix            = "/api/v2/pool/deposit" | ||||||
| 	poolSwapQoutePrefix         = "/api/v2/pool/quote" | 	poolSwapQoutePrefix          = "/api/v2/pool/quote" | ||||||
| 	poolSwapPrefix              = "/api/v2/pool/swap" | 	poolSwapPrefix               = "/api/v2/pool/swap" | ||||||
| 	topPoolsPrefix              = "/api/v1/pool/top" | 	topPoolsPrefix               = "/api/v1/pool/top" | ||||||
| 	retrievePoolDetailsPrefix   = "/api/v1/pool/reverse" | 	retrievePoolDetailsPrefix    = "/api/v1/pool/reverse" | ||||||
| 	poolSwappableVouchersPrefix = "/api/v1/pool" | 	poolSwappableVouchersPrefix  = "/api/v1/pool" | ||||||
| 	AliasRegistrationPrefix     = "/api/v1/internal/register" | 	AliasRegistrationPrefix      = "/api/v1/internal/register" | ||||||
| 	AliasResolverPrefix         = "/api/v1/resolve" | 	AliasResolverPrefix          = "/api/v1/resolve" | ||||||
| 	ExternalSMSPrefix           = "/api/v1/external" | 	ExternalSMSPrefix            = "/api/v1/external" | ||||||
| 	AliasUpdatePrefix           = "/api/v1/internal/update" | 	AliasUpdatePrefix            = "/api/v1/internal/update" | ||||||
| 	CreditSendPrefix            = "/api/v1/credit-send" | 	CreditSendPrefix             = "/api/v1/credit-send" | ||||||
|  | 	CreditSendReverseQuotePrefix = "/api/v1/pool/reverse-quote" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| var ( | var ( | ||||||
| @ -39,26 +40,27 @@ var ( | |||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| var ( | var ( | ||||||
| 	CreateAccountURL         string | 	CreateAccountURL          string | ||||||
| 	TrackStatusURL           string | 	TrackStatusURL            string | ||||||
| 	BalanceURL               string | 	BalanceURL                string | ||||||
| 	TrackURL                 string | 	TrackURL                  string | ||||||
| 	TokenTransferURL         string | 	TokenTransferURL          string | ||||||
| 	VoucherHoldingsURL       string | 	VoucherHoldingsURL        string | ||||||
| 	VoucherTransfersURL      string | 	VoucherTransfersURL       string | ||||||
| 	VoucherDataURL           string | 	VoucherDataURL            string | ||||||
| 	PoolDepositURL           string | 	PoolDepositURL            string | ||||||
| 	PoolSwapQuoteURL         string | 	PoolSwapQuoteURL          string | ||||||
| 	PoolSwapURL              string | 	PoolSwapURL               string | ||||||
| 	TopPoolsURL              string | 	TopPoolsURL               string | ||||||
| 	RetrievePoolDetailsURL   string | 	RetrievePoolDetailsURL    string | ||||||
| 	PoolSwappableVouchersURL string | 	PoolSwappableVouchersURL  string | ||||||
| 	SendSMSURL               string | 	SendSMSURL                string | ||||||
| 	AliasRegistrationURL     string | 	AliasRegistrationURL      string | ||||||
| 	AliasResolverURL         string | 	AliasResolverURL          string | ||||||
| 	ExternalSMSURL           string | 	ExternalSMSURL            string | ||||||
| 	AliasUpdateURL           string | 	AliasUpdateURL            string | ||||||
| 	CreditSendURL            string | 	CreditSendURL             string | ||||||
|  | 	CreditSendReverseQuoteURL string | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| func setBase() error { | func setBase() error { | ||||||
| @ -108,6 +110,7 @@ func LoadConfig() error { | |||||||
| 	ExternalSMSURL, _ = url.JoinPath(externalSMSBase, ExternalSMSPrefix) | 	ExternalSMSURL, _ = url.JoinPath(externalSMSBase, ExternalSMSPrefix) | ||||||
| 	AliasUpdateURL, _ = url.JoinPath(aliasEnsURLBase, AliasUpdatePrefix) | 	AliasUpdateURL, _ = url.JoinPath(aliasEnsURLBase, AliasUpdatePrefix) | ||||||
| 	CreditSendURL, _ = url.JoinPath(dataURLBase, CreditSendPrefix) | 	CreditSendURL, _ = url.JoinPath(dataURLBase, CreditSendPrefix) | ||||||
|  | 	CreditSendReverseQuoteURL, _ = url.JoinPath(dataURLBase, CreditSendReverseQuotePrefix) | ||||||
| 
 | 
 | ||||||
| 	return nil | 	return nil | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user