Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@funkit/api-base

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@funkit/api-base - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

10

CHANGELOG.md
# @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 @@

1

dist/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc