@funkit/api-base
Advanced tools
Comparing version 1.4.1 to 1.4.2
# @funkit/api-base | ||
## 1.4.2 | ||
### Patch Changes | ||
- 04c91f2: chore: migrate custom error codes to utils package | ||
- 0733732: refactor: deprecate old moonpay offramp, onramp, and currencies endpoints | ||
- Updated dependencies [48754fa] | ||
- Updated dependencies [04c91f2] | ||
- @funkit/utils@1.0.3 | ||
## 1.4.1 | ||
@@ -4,0 +14,0 @@ |
export * from './src/consts'; | ||
export * from './src/errors'; | ||
export * from './src/services'; | ||
export * from './src/utils'; |
@@ -1,11 +0,3 @@ | ||
import type { GetMoonpayBuyQuoteForCreditCardRequest, GetMoonpayBuyQuoteForCreditCardResponse, GetMoonpayOffRampUrlRequest, GetMoonpayOnRampUrlRequest, GetMoonpayUrlSignatureRequest, MoonpayCurrency } from './types'; | ||
import type { GetMoonpayBuyQuoteForCreditCardRequest, GetMoonpayBuyQuoteForCreditCardResponse, GetMoonpayUrlSignatureRequest } from './types'; | ||
export declare function getMoonpayUrlSignature({ url, isSandbox, apiKey, }: GetMoonpayUrlSignatureRequest): Promise<string>; | ||
export declare function getMoonpayBuyQuoteForCreditCard({ currencyCode, baseCurrencyCode, quoteCurrencyAmount, baseCurrencyAmount, extraFeePercentage, areFeesIncluded, apiKey, }: GetMoonpayBuyQuoteForCreditCardRequest): Promise<GetMoonpayBuyQuoteForCreditCardResponse>; | ||
/**======================= | ||
* POTENTIAL DEPRECATION | ||
*=======================*/ | ||
export declare function getMoonpayOnRampUrl({ apiKey, walletAddr, currencyCode, }: GetMoonpayOnRampUrlRequest): Promise<string>; | ||
export declare function getMoonpayOffRampUrl({ walletAddr, apiKey, }: GetMoonpayOffRampUrlRequest): Promise<string>; | ||
export declare function getMoonpayOnRampSupportedCurrencies({ apiKey, }: { | ||
apiKey: string; | ||
}): Promise<MoonpayCurrency[]>; |
@@ -15,35 +15,2 @@ export interface GetMoonpayUrlSignatureRequest { | ||
} | ||
export interface GetMoonpayOnRampUrlRequest { | ||
apiKey: string; | ||
walletAddr: string; | ||
currencyCode?: string; | ||
} | ||
export interface GetMoonpayOffRampUrlRequest { | ||
apiKey: string; | ||
walletAddr: string; | ||
} | ||
export interface MoonpayCurrency { | ||
id: string; | ||
name: string; | ||
code: string; | ||
createdAt?: string; | ||
updatedAt?: string; | ||
type?: string; | ||
precision?: number; | ||
addressRegex?: string; | ||
testnetAddressRegex?: string; | ||
maxAmount?: number; | ||
maxBuyAmount?: number; | ||
maxSellAmount?: number; | ||
minAmount?: number; | ||
minBuyAmount?: number; | ||
minSellAmount?: number; | ||
supportsAddressTag?: boolean; | ||
addressTagRegex?: string; | ||
supportsTestMode?: boolean; | ||
isSuspended?: boolean; | ||
isSupportedInUS?: boolean; | ||
isSellSupported?: boolean; | ||
notAllowedUSStates?: string[]; | ||
} | ||
export interface GetMoonpayBuyQuoteForCreditCardResponse { | ||
@@ -50,0 +17,0 @@ accountId: string; |
{ | ||
"name": "@funkit/api-base", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Base API for Funkit", | ||
@@ -13,5 +13,7 @@ "main": "dist/index.js", | ||
"@lifeomic/attempt": "^3.1.0", | ||
"big.js": "^6.2.1" | ||
"big.js": "^6.2.1", | ||
"@funkit/utils": "1.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/big.js": "^6.2.2", | ||
"ts-node": "^10.9.1", | ||
@@ -18,0 +20,0 @@ "typescript": "^5.4.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123823
3
4
36
1736
+ Added@funkit/utils@1.0.3
+ Added@funkit/utils@1.0.3(transitive)