@ape.swap/bonds-sdk 3.0.53 → 3.0.54

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.
package/dist/main.js CHANGED
@@ -18812,7 +18812,7 @@ const supportedByLIFI = [
18812
18812
  types.ChainId.MAINNET,
18813
18813
  types.ChainId.MATIC,
18814
18814
  types.ChainId.BSC,
18815
- types.ChainId.ARBITRUM,
18815
+ // ChainId.ARBITRUM,
18816
18816
  types.ChainId.LINEA,
18817
18817
  types.ChainId.BASE,
18818
18818
  types.ChainId.AVAX,
@@ -18983,16 +18983,25 @@ const AddFavToken = ({ tokenSymbol, hotBond, isGoldBond, }) => {
18983
18983
  }, children: jsx$2(AnimatePresence, { mode: "wait", children: jsx$2(motion.div, { initial: false, animate: { opacity: 1, scale: 1.0 }, exit: { opacity: 0, scale: 0.8 }, transition: { duration: 0.2 }, style: { display: 'flex' }, children: isFavToken ? (jsx$2(Svg, { icon: "StarFilled", width: 22, height: 22, color: isGoldBond ? '#ffffff' : '#DE62F3' })) : (jsx$2(Svg, { icon: hotBond ? 'FirePink' : 'Star', width: hotBond ? 25 : 20, height: hotBond ? 25 : 20, color: isGoldBond ? '#ffffff' : '#73728E' })) }, isFavToken ? 'StarFilled' : 'Star') }) }));
18984
18984
  };
18985
18985
 
18986
+ // Prod URLS. Do not make changes here
18986
18987
  const defaultUrls = {
18987
18988
  apiV2: 'https://api.ape.bond',
18988
18989
  realTimeApi: 'https://realtime-api.ape.bond',
18989
18990
  apeswapLists: 'https://raw.githubusercontent.com/ApeSwapFinance/apeswap-lists/refs/heads/main',
18990
18991
  mainUrl: 'https://ape.bond',
18991
18992
  };
18993
+ // Staging URLS.
18994
+ const stagingUrls = {
18995
+ apiV2: 'https://staging-api.ape.bond',
18996
+ realTimeApi: 'https://realtime-api-staging.ape.bond',
18997
+ apeswapLists: 'https://raw.githubusercontent.com/ApeSwapFinance/apeswap-lists/refs/heads/staging',
18998
+ mainUrl: 'https://staging.ape.bond',
18999
+ };
18992
19000
  const useSDKConfig = (config) => {
19001
+ const urls = process.env.NODE_ENV === 'production' ? defaultUrls : stagingUrls;
18993
19002
  const { data } = useQuery({
18994
19003
  queryKey: [QUERY_KEYS.SDK_CONFIG],
18995
- initialData: Object.assign(Object.assign({ useHotBonds: true, useRainbowKit: false, useTiers: false }, config), { urls: Object.assign(Object.assign({}, defaultUrls), config === null || config === void 0 ? void 0 : config.urls), highestCompatibleVersion: '2.1.1' }),
19004
+ initialData: Object.assign(Object.assign({ useHotBonds: true, useRainbowKit: false, useTiers: false }, config), { urls: Object.assign(Object.assign({}, urls), config === null || config === void 0 ? void 0 : config.urls), highestCompatibleVersion: '2.1.1' }),
18996
19005
  });
18997
19006
  return data;
18998
19007
  };
@@ -19002,10 +19011,10 @@ const useURLByEnvironment = (key) => {
19002
19011
  };
19003
19012
 
19004
19013
  /*
19005
- * bignumber.js v9.1.2
19014
+ * bignumber.js v9.3.0
19006
19015
  * A JavaScript library for arbitrary-precision arithmetic.
19007
19016
  * https://github.com/MikeMcl/bignumber.js
19008
- * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
19017
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
19009
19018
  * MIT Licensed.
19010
19019
  *
19011
19020
  * BigNumber.prototype methods | BigNumber methods
@@ -19906,7 +19915,7 @@ function clone$2(configObject) {
19906
19915
 
19907
19916
  // xc now represents str converted to baseOut.
19908
19917
 
19909
- // THe index of the rounding digit.
19918
+ // The index of the rounding digit.
19910
19919
  d = e + dp + 1;
19911
19920
 
19912
19921
  // The rounding digit: the digit to the right of the digit that may be rounded up.
@@ -24147,6 +24156,7 @@ bn$1.exports;
24147
24156
  this.words[i] = carry;
24148
24157
  this.length++;
24149
24158
  }
24159
+ this.length = num === 0 ? 1 : this.length;
24150
24160
 
24151
24161
  return isNegNum ? this.ineg() : this;
24152
24162
  };
@@ -68773,7 +68783,7 @@ const zapInputTokens = {
68773
68783
  {
68774
68784
  symbol: 'USDC',
68775
68785
  address: {
68776
- [types.ChainId.ARBITRUM]: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8',
68786
+ [types.ChainId.ARBITRUM]: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831', // Circle's USDC, not USDC.e
68777
68787
  },
68778
68788
  decimals: {
68779
68789
  [types.ChainId.ARBITRUM]: 6,
@@ -69019,7 +69029,7 @@ const zapInputTokens = {
69019
69029
  },
69020
69030
  active: true,
69021
69031
  },
69022
- ]
69032
+ ],
69023
69033
  };
69024
69034
 
69025
69035
  var PRICE_GETTER_V3_ABI = [
@@ -75013,7 +75023,7 @@ const TokenSelectorModal = ({ bondPrincipalToken, bondEarnToken, handleCurrencyS
75013
75023
  height: '300px',
75014
75024
  overflowY: 'auto',
75015
75025
  }, children: uniqueTokensList.map((token, i) => {
75016
- return jsx$2(TokenRow, { token: token, chainId: chainId, handleTokenSelect: handleTokenSelect }, i);
75026
+ return (jsx$2(TokenRow, { token: token, chainId: chainId, handleTokenSelect: handleTokenSelect }, token === 'NATIVE' ? 'NATIVE' : token.address[chainId]));
75017
75027
  }) })] }) }) }));
75018
75028
  };
75019
75029
 
@@ -76046,7 +76056,7 @@ const useApproval = (amount, currency, spender, account, chainId) => {
76046
76056
  return [approvalState !== null && approvalState !== void 0 ? approvalState : ApprovalState.NOT_APPROVED, handleApprove];
76047
76057
  };
76048
76058
 
76049
- const version$1 = '2.23.6';
76059
+ const version$1 = '2.29.1';
76050
76060
 
76051
76061
  let errorConfig = {
76052
76062
  getDocsUrl: ({ docsBaseUrl, docsPath = '', docsSlug, }) => docsPath
@@ -1,4 +1,3 @@
1
- import { BigNumber } from 'bignumber.js';
2
1
  import { UserBill } from '../types/yourbonds';
3
2
  import { BondsData } from '../types/bonds';
4
3
  import { BillsConfig } from '@ape.swap/apeswap-lists';
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": "3.0.53",
6
+ "version": "3.0.54",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",