@ape.swap/bonds-sdk 2.7.9 → 3.0.0-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ export declare const useSDKConfig: (config?: SDKProps) => {
15
15
  apeswapLists: string;
16
16
  mainUrl: string;
17
17
  };
18
+ highestCompatibleVersion: string;
18
19
  referenceId?: string | undefined;
19
20
  chains?: number[] | undefined;
20
21
  useRainbowKit?: boolean | undefined;
@@ -1,4 +1,4 @@
1
1
  import { Token } from '@ape.swap/apeswap-lists';
2
2
  import { BondsData } from '../../types/bonds';
3
- declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond: BondsData | undefined, account?: string) => [loading: boolean, response: any, estimateOutput: number, error: boolean];
3
+ declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond: BondsData | undefined, account?: string) => [loading: boolean, response: any, depositAmount: string, error: boolean];
4
4
  export default useSoulZapBondQuote;
@@ -6,6 +6,9 @@ export interface BondsData {
6
6
  type: string;
7
7
  discount: number;
8
8
  bonus: number;
9
+ version: string;
10
+ bonusWithFee: number;
11
+ feeInPayout?: number;
9
12
  billAddress?: string;
10
13
  billNftAddress: string;
11
14
  soldOut?: boolean;
@@ -25,7 +25,9 @@ export declare function formatNumber(input: string): string;
25
25
  export declare function formatUSDNumber(input: string): string;
26
26
  export declare const youSpend: (inputValue: string) => string;
27
27
  export declare const youSpendUSD: (bond: BondsData, inputValue: string) => string;
28
- export declare const youGet: (bond?: BondsData, inputValue?: string) => number;
28
+ export declare const getRawPayoutAmount: (bond?: BondsData, inputValue?: string) => number;
29
+ export declare const getPayoutAmount: (bond?: BondsData, inputValue?: string) => number;
29
30
  export declare const youGetUSD: (bond: BondsData, inputValue: string) => string;
30
- export declare const premium: (bond?: BondsData, inputValue?: string) => string;
31
- export declare const getPremiumColor: (premiumString: string) => string;
31
+ export declare const getRawBonus: (bond?: BondsData, inputValue?: string) => string;
32
+ export declare const getFeeAmount: (bond?: BondsData, inputValue?: string) => number | "0";
33
+ export declare const getBonusColor: (premiumString: string) => string;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { Token } from '@ape.swap/apeswap-lists';
3
3
  import { BondsData } from '../../../types/bonds';
4
- declare const Estimations: ({ bondData, inputValue, inputToken, estimatedOutput, inputTokenPrice, isZap, fetchingZapQuote, zapError, }: {
4
+ declare const Estimations: ({ bondData, inputValue, inputToken, depositAmount, inputTokenPrice, isZap, fetchingZapQuote, zapError, }: {
5
5
  bondData: BondsData;
6
6
  inputValue: string;
7
7
  inputToken: Token | "NATIVE" | undefined;
8
- estimatedOutput: number;
8
+ depositAmount: string;
9
9
  inputTokenPrice?: number;
10
10
  isZap?: boolean;
11
11
  fetchingZapQuote?: boolean;
@@ -14,3 +14,4 @@ export declare const vestingTime: (vestingTerm?: number) => {
14
14
  export declare const remainingPercentage: (bond: BondsData) => number;
15
15
  export declare const getDiscountColor: (discount?: number) => string;
16
16
  export declare const calculateARR: (bond: BondsData | BillsConfig) => string;
17
+ export declare const isBondSupported: (SDKVersion: string, bondVersion: string) => boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "2.7.9",
6
+ "version": "3.0.0-test.0",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",
@@ -56,7 +56,7 @@
56
56
  "yalc": "^1.0.0-pre.53"
57
57
  },
58
58
  "dependencies": {
59
- "@ape.swap/apeswap-lists": "3.78.3",
59
+ "@ape.swap/apeswap-lists": "4.0.0",
60
60
  "@emotion/react": "11.11.4",
61
61
  "bignumber.js": "^9.1.2",
62
62
  "chart.js": "4.2.0",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { SvgProps } from '../types';
3
- declare const CROSSFI: React.FC<SvgProps>;
4
- export default CROSSFI;
@@ -1,2 +0,0 @@
1
- import { ChainId, Token } from '@ape.swap/apeswap-lists';
2
- export declare const zapInputTokens: Partial<Record<ChainId, Token[]>>;