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.1.2 to 1.2.0

6

CHANGELOG.md
# @funkit/api-base
## 1.2.0
### Minor Changes
- 54b7db3: add fee breakdown API and refund state
## 1.1.2

@@ -4,0 +10,0 @@

3

dist/src/services/checkout/endpoints.d.ts
import { Address } from 'viem';
import { CheckoutDeactivateParams, CheckoutHistoryItem, CheckoutInitParams, CheckoutQuoteParams, CheckoutQuoteResponse, CheckoutTransferSponsorshipParams, CheckoutTransferSponsorshipResponse, RiskAssessmentParams, RiskAssessmentResponse } from './types';
import { CheckoutDeactivateParams, CheckoutHistoryItem, CheckoutInitParams, CheckoutQuoteParams, CheckoutQuoteResponse, CheckoutTransferDataParams, CheckoutTransferDataResponse, CheckoutTransferSponsorshipParams, CheckoutTransferSponsorshipResponse, RiskAssessmentParams, RiskAssessmentResponse } from './types';
/**

@@ -77,1 +77,2 @@ * Gets a checkout quote (estimation).

export declare function getRiskAssessmentForAddress({ address, apiKey, }: RiskAssessmentParams): Promise<RiskAssessmentResponse>;
export declare function getCheckoutTransferData(_: CheckoutTransferDataParams): Promise<CheckoutTransferDataResponse>;

@@ -37,2 +37,4 @@ /**===============*

estCheckoutTimeMs: number;
estMarketMakerGasUsd: number;
lpFeePercentage: number;
};

@@ -98,2 +100,3 @@ export type CheckoutQuoteResponse = CheckoutApiQuoteResponse & {

clientMetadata: object;
refundState?: 'REFUNDED' | 'PROCEEDED';
};

@@ -162,4 +165,5 @@ /**===============================*

};
export type FunAddress = Address | `dydx${string}`;
export type RiskAssessmentResponse = {
address: Address | `dydx${string}`;
address: FunAddress;
risk: RiskValues;

@@ -175,2 +179,10 @@ riskReason: string | null;

};
export type CheckoutTransferDataParams = {
userId?: string;
recipientAddress: FunAddress;
apiKey: string;
};
export type CheckoutTransferDataResponse = {
depositAddress: Address;
};
export {};

@@ -1,4 +0,4 @@

import { GetMoonpayBuyQuoteForCreditCardRequest, GetMoonpayOffRampUrlRequest, GetMoonpayOnRampUrlRequest, GetMoonpayUrlSignatureRequest, MoonpayCurrency } from './types';
import { GetMoonpayBuyQuoteForCreditCardRequest, GetMoonpayBuyQuoteForCreditCardResponse, GetMoonpayOffRampUrlRequest, GetMoonpayOnRampUrlRequest, GetMoonpayUrlSignatureRequest, MoonpayCurrency } 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<any>;
export declare function getMoonpayBuyQuoteForCreditCard({ currencyCode, baseCurrencyCode, quoteCurrencyAmount, baseCurrencyAmount, extraFeePercentage, areFeesIncluded, apiKey, }: GetMoonpayBuyQuoteForCreditCardRequest): Promise<GetMoonpayBuyQuoteForCreditCardResponse>;
/**=======================

@@ -5,0 +5,0 @@ * POTENTIAL DEPRECATION

@@ -48,1 +48,25 @@ export interface GetMoonpayUrlSignatureRequest {

}
export interface GetMoonpayBuyQuoteForCreditCardResponse {
accountId: string;
baseCurrencyAmount: number;
baseCurrencyCode: string;
quoteCurrencyCode: string;
quoteCurrencyPrice: number;
quoteCurrencyAmount: number;
paymentMethod: 'credit_debit_card';
extraFeeAmount: number;
feeAmount: number;
networkFeeAmount: number;
totalAmount: number;
feeAmountDiscount: null;
feeDiscountType: null;
feeRuleId: string;
extraFeePercentage: number;
extraFeeAmountDiscount: null;
networkFeeAmountNonRefundable: boolean;
externalId: null;
provider: string;
quoteType: string;
feeTierDiscount: null;
errors?: unknown;
}
{
"name": "@funkit/api-base",
"version": "1.1.2",
"version": "1.2.0",
"description": "Base API for Funkit",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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