@goodaofi/bonds-sdk 3.0.180 → 3.0.182

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.
@@ -5,6 +5,7 @@ type AddressMap = {
5
5
  export declare const PRICE_GETTER_ADDRESSES: AddressMap;
6
6
  export declare const MULTICALL_V2: AddressMap;
7
7
  export declare const SoulZapTokenManager: Partial<Record<ChainId, string>>;
8
+ export declare const VESTING_NFT_ADDRESS = "0x1d792892823306D15C9c65938f9385fC2dA97271";
8
9
  export declare const ACF_TO_ABOND: string;
9
10
  export declare const LENS_CONTRACT: AddressMap;
10
11
  export {};
package/dist/main.js CHANGED
@@ -19873,6 +19873,63 @@ function requireZapTokens () {
19873
19873
 
19874
19874
  } (main));
19875
19875
 
19876
+ const PRICE_GETTER_ADDRESSES = {
19877
+ [main.ChainId.BSC]: '0x424356909715afcE9D0263dda0B27f0BC6cc638d', // Price getter V3
19878
+ [main.ChainId.MATIC]: '0xc5331AF02Cb72e5Df07c47f85C89ef9227418f01', // Price getter V3
19879
+ [main.ChainId.MAINNET]: '0xf63e25B5492A856189420724fe6f3573620966f3', // Price getter V3
19880
+ [main.ChainId.ARBITRUM]: '0xf1e931A569d8B3Ff5cCd11d2F42422FCABA6DBa4', // Price getter V3
19881
+ [main.ChainId.LINEA]: '0x4E4746b8Cfc7E57d824Dd91A80146F9C23C36d52', // Price getter V3
19882
+ [main.ChainId.LIGHTLINK]: '0xb4aD8df313109caaF8Fdcde9094e9d1DE41252bc', // Price getter V3
19883
+ [main.ChainId.IOTA]: '0x7D8f0e5964a1D05974EfD9aaff8A4154618B49f3', // Price getter V3
19884
+ [main.ChainId.BASE]: '0xE29C74B4DD05A268B5FFaadeF4fdbAa1de6FDe84', // Price getter V3
19885
+ [main.ChainId.BLAST]: '0x218EB9ACDC721E235969A30f5DA46FB1224Fa7A7', // Price getter V3
19886
+ [main.ChainId.AVAX]: '0x01dadaa586D30d93Ac92C79A5Cb02a8F276a8B4F', // Price getter V3
19887
+ [main.ChainId.CROSSFI]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
19888
+ [main.ChainId.SONIC]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
19889
+ [main.ChainId.MONAD_TESTNET]: '0x0187D959A28B0D3B490c2D898fA1CcD054cCC3cd', // Price getter V3
19890
+ [main.ChainId.BERACHAIN]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
19891
+ };
19892
+ const MULTICALL_V2 = {
19893
+ [main.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
19894
+ [main.ChainId.BSC_TESTNET]: '0x67ADCB4dF3931b0C5Da724058ADC2174a9844412',
19895
+ [main.ChainId.MATIC]: '0x95028E5B8a734bb7E2071F96De89BABe75be9C8E',
19896
+ [main.ChainId.MAINNET]: '0xeefBa1e63905eF1D7ACbA5a8513c70307C1cE441',
19897
+ [main.ChainId.TLOS]: '0xa1a283f10f578201a97a8f69d8c15828b778f04b',
19898
+ [main.ChainId.ARBITRUM]: '0x089d8780e1c0789d0ef786bf001bee52d8351cad',
19899
+ [main.ChainId.SEPOLIA]: '0x4170Ebf53bbA01eb45594ad6F090d7FE5407be68',
19900
+ [main.ChainId.INEVM]: '0x7039F6DDB900762c33842e406fB908EB8a03fB84',
19901
+ [main.ChainId.LINEA]: '0x3f6F9c727C9fdf70Fe56f6e22Bc4dcb75206a78c',
19902
+ [main.ChainId.LIGHTLINK]: '0xb9a543d7B7dF05C8845AeA6627dE4a6622Ac863C',
19903
+ [main.ChainId.IOTA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
19904
+ [main.ChainId.BASE]: '0xDF845ff2dA2325Df9C6CC3DDF7418C54E16bbFDF',
19905
+ [main.ChainId.GRAPHLINQ]: '0xCc88b233BbcE04c064C627ad5627da6e24a8A067',
19906
+ [main.ChainId.AVAX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
19907
+ [main.ChainId.BLAST]: '0xcA11bde05977b3631167028862bE2a173976CA11',
19908
+ [main.ChainId.CROSSFI]: '0x007bAC6A07894A69fBcA94ED6274005093E1c44E',
19909
+ [main.ChainId.MONAD_TESTNET]: '0xcA11bde05977b3631167028862bE2a173976CA11',
19910
+ [main.ChainId.SONIC]: '0xcA11bde05977b3631167028862bE2a173976CA11',
19911
+ [main.ChainId.BERACHAIN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
19912
+ [main.ChainId.KATANA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
19913
+ [main.ChainId.UNICHAIN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
19914
+ };
19915
+ const SoulZapTokenManager = {
19916
+ [main.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
19917
+ [main.ChainId.MATIC]: '0x3F15Ee3d7dd7AcFB14625A1E2FBce22912Fa91be',
19918
+ [main.ChainId.LINEA]: '0x93b636d58656B2CCA69c539e511C14eb3b71DA2f',
19919
+ [main.ChainId.BSC]: '0x7119014f0d75A7a31b875F79cE14b2a32B34B067',
19920
+ [main.ChainId.BASE]: '0x0B750790dCa8f289fAB5eFd1a48EfAb969e51D16',
19921
+ [main.ChainId.ARBITRUM]: '0x22572A548Ff26Fc5725a17dfd233F49a98c17EE7',
19922
+ [main.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
19923
+ [main.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
19924
+ [main.ChainId.BERACHAIN]: '0xcFd581f15433899d093ca1ADfc3aC13c37DBfbe7',
19925
+ [main.ChainId.SONIC]: '0x173E473b314506324E10aD54978d25E1F54bCa48',
19926
+ };
19927
+ const VESTING_NFT_ADDRESS = '0x1d792892823306D15C9c65938f9385fC2dA97271';
19928
+ const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
19929
+ const LENS_CONTRACT = {
19930
+ [main.ChainId.BSC]: '0x6Fb7A34A271cc0F4016db6A3BAA6206757a9a164',
19931
+ };
19932
+
19876
19933
  // Network chain ids
19877
19934
  // These are the lists we will display to the user
19878
19935
  const MAINNET_CHAINS = [
@@ -23468,62 +23525,6 @@ var lensContractABI = [
23468
23525
  }
23469
23526
  ];
23470
23527
 
23471
- const PRICE_GETTER_ADDRESSES = {
23472
- [main.ChainId.BSC]: '0x424356909715afcE9D0263dda0B27f0BC6cc638d', // Price getter V3
23473
- [main.ChainId.MATIC]: '0xc5331AF02Cb72e5Df07c47f85C89ef9227418f01', // Price getter V3
23474
- [main.ChainId.MAINNET]: '0xf63e25B5492A856189420724fe6f3573620966f3', // Price getter V3
23475
- [main.ChainId.ARBITRUM]: '0xf1e931A569d8B3Ff5cCd11d2F42422FCABA6DBa4', // Price getter V3
23476
- [main.ChainId.LINEA]: '0x4E4746b8Cfc7E57d824Dd91A80146F9C23C36d52', // Price getter V3
23477
- [main.ChainId.LIGHTLINK]: '0xb4aD8df313109caaF8Fdcde9094e9d1DE41252bc', // Price getter V3
23478
- [main.ChainId.IOTA]: '0x7D8f0e5964a1D05974EfD9aaff8A4154618B49f3', // Price getter V3
23479
- [main.ChainId.BASE]: '0xE29C74B4DD05A268B5FFaadeF4fdbAa1de6FDe84', // Price getter V3
23480
- [main.ChainId.BLAST]: '0x218EB9ACDC721E235969A30f5DA46FB1224Fa7A7', // Price getter V3
23481
- [main.ChainId.AVAX]: '0x01dadaa586D30d93Ac92C79A5Cb02a8F276a8B4F', // Price getter V3
23482
- [main.ChainId.CROSSFI]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
23483
- [main.ChainId.SONIC]: '0xC22Db8dDe3A3591fFB02be868Ce2901d30671FE4', // Price getter V3
23484
- [main.ChainId.MONAD_TESTNET]: '0x0187D959A28B0D3B490c2D898fA1CcD054cCC3cd', // Price getter V3
23485
- [main.ChainId.BERACHAIN]: '0x70005Da62E17041977f7F99f91098b125CcDE1a7',
23486
- };
23487
- const MULTICALL_V2 = {
23488
- [main.ChainId.BSC]: '0x38ce767d81de3940CFa5020B55af1A400ED4F657',
23489
- [main.ChainId.BSC_TESTNET]: '0x67ADCB4dF3931b0C5Da724058ADC2174a9844412',
23490
- [main.ChainId.MATIC]: '0x95028E5B8a734bb7E2071F96De89BABe75be9C8E',
23491
- [main.ChainId.MAINNET]: '0xeefBa1e63905eF1D7ACbA5a8513c70307C1cE441',
23492
- [main.ChainId.TLOS]: '0xa1a283f10f578201a97a8f69d8c15828b778f04b',
23493
- [main.ChainId.ARBITRUM]: '0x089d8780e1c0789d0ef786bf001bee52d8351cad',
23494
- [main.ChainId.SEPOLIA]: '0x4170Ebf53bbA01eb45594ad6F090d7FE5407be68',
23495
- [main.ChainId.INEVM]: '0x7039F6DDB900762c33842e406fB908EB8a03fB84',
23496
- [main.ChainId.LINEA]: '0x3f6F9c727C9fdf70Fe56f6e22Bc4dcb75206a78c',
23497
- [main.ChainId.LIGHTLINK]: '0xb9a543d7B7dF05C8845AeA6627dE4a6622Ac863C',
23498
- [main.ChainId.IOTA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
23499
- [main.ChainId.BASE]: '0xDF845ff2dA2325Df9C6CC3DDF7418C54E16bbFDF',
23500
- [main.ChainId.GRAPHLINQ]: '0xCc88b233BbcE04c064C627ad5627da6e24a8A067',
23501
- [main.ChainId.AVAX]: '0xcA11bde05977b3631167028862bE2a173976CA11',
23502
- [main.ChainId.BLAST]: '0xcA11bde05977b3631167028862bE2a173976CA11',
23503
- [main.ChainId.CROSSFI]: '0x007bAC6A07894A69fBcA94ED6274005093E1c44E',
23504
- [main.ChainId.MONAD_TESTNET]: '0xcA11bde05977b3631167028862bE2a173976CA11',
23505
- [main.ChainId.SONIC]: '0xcA11bde05977b3631167028862bE2a173976CA11',
23506
- [main.ChainId.BERACHAIN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
23507
- [main.ChainId.KATANA]: '0xcA11bde05977b3631167028862bE2a173976CA11',
23508
- [main.ChainId.UNICHAIN]: '0xcA11bde05977b3631167028862bE2a173976CA11',
23509
- };
23510
- const SoulZapTokenManager = {
23511
- [main.ChainId.MAINNET]: '0x2F87f76336A560bbB0d18d357D10646bB96E8802',
23512
- [main.ChainId.MATIC]: '0x3F15Ee3d7dd7AcFB14625A1E2FBce22912Fa91be',
23513
- [main.ChainId.LINEA]: '0x93b636d58656B2CCA69c539e511C14eb3b71DA2f',
23514
- [main.ChainId.BSC]: '0x7119014f0d75A7a31b875F79cE14b2a32B34B067',
23515
- [main.ChainId.BASE]: '0x0B750790dCa8f289fAB5eFd1a48EfAb969e51D16',
23516
- [main.ChainId.ARBITRUM]: '0x22572A548Ff26Fc5725a17dfd233F49a98c17EE7',
23517
- [main.ChainId.AVAX]: '0xC4dE46cBE21400dabE2E7c66E04F43acE4b5b910',
23518
- [main.ChainId.BLAST]: '0xde9Eb844AD9e8B067309205707e2fFaA6a049cc0',
23519
- [main.ChainId.BERACHAIN]: '0xcFd581f15433899d093ca1ADfc3aC13c37DBfbe7',
23520
- [main.ChainId.SONIC]: '0x173E473b314506324E10aD54978d25E1F54bCa48',
23521
- };
23522
- const ACF_TO_ABOND = '0xEce2b9C3704632Ce760271B0b84E3A4A698Ca962';
23523
- const LENS_CONTRACT = {
23524
- [main.ChainId.BSC]: '0x6Fb7A34A271cc0F4016db6A3BAA6206757a9a164',
23525
- };
23526
-
23527
23528
  var bn$1 = {exports: {}};
23528
23529
 
23529
23530
  bn$1.exports;
@@ -62272,7 +62273,7 @@ const UserBillTooltipText = {
62272
62273
  * @param chainId - The ID of the blockchain network to retrieve data from.
62273
62274
  * @returns A Promise that resolves to the batch data for the specified bill NFT IDs, or null if an error occurs.
62274
62275
  */
62275
- const getBillNftBatchData = async (apiV2URL, billNftIds, billNftAddress, chainId) => {
62276
+ const getBillNftBatchData = async (apiV2URL, billNftIds, billNftAddress, chainId, isVestingNFT) => {
62276
62277
  try {
62277
62278
  // If no bill NFT IDs are provided, return null
62278
62279
  if (!billNftIds || billNftIds.length === 0) {
@@ -62285,6 +62286,13 @@ const getBillNftBatchData = async (apiV2URL, billNftIds, billNftAddress, chainId
62285
62286
  if (billNftDataResp.statusCode === 500) {
62286
62287
  return null;
62287
62288
  }
62289
+ // If vesting NFT, override the image field with a hardcoded URL
62290
+ if (isVestingNFT && Array.isArray(billNftDataResp)) {
62291
+ return billNftDataResp.map((nft) => ({
62292
+ ...nft,
62293
+ image: '/images/bills/gooSaleBonds.png',
62294
+ }));
62295
+ }
62288
62296
  // Return the batch data for the specified bill NFT IDs
62289
62297
  return billNftDataResp;
62290
62298
  }
@@ -62301,19 +62309,19 @@ const getBillNftBatchData = async (apiV2URL, billNftIds, billNftAddress, chainId
62301
62309
  }
62302
62310
  };
62303
62311
 
62304
- function useBondNFTData(id, billNftAddress, chainId) {
62312
+ function useBondNFTData(id, billNftAddress, chainId, isVestingNFT) {
62305
62313
  const apiV2URL = useURLByEnvironment('apiV2');
62306
62314
  return useQuery({
62307
62315
  queryKey: [QUERY_KEYS.BOND_NFT_DATA, id, billNftAddress, chainId],
62308
- queryFn: () => getBondNFTData(apiV2URL, id, billNftAddress, chainId),
62316
+ queryFn: () => getBondNFTData(apiV2URL, id, billNftAddress, chainId, isVestingNFT),
62309
62317
  refetchOnWindowFocus: false,
62310
62318
  enabled: !!id && !!billNftAddress && !!chainId,
62311
62319
  retry: 2,
62312
62320
  });
62313
62321
  }
62314
- const getBondNFTData = async (apiV2URL, id, billNftAddress, chainId) => {
62322
+ const getBondNFTData = async (apiV2URL, id, billNftAddress, chainId, isVestingNFT) => {
62315
62323
  try {
62316
- const billNFTData = await getBillNftBatchData(apiV2URL, [id], billNftAddress, chainId);
62324
+ const billNFTData = await getBillNftBatchData(apiV2URL, [id], billNftAddress, chainId, isVestingNFT);
62317
62325
  return billNFTData?.[0] ?? null;
62318
62326
  }
62319
62327
  catch (e) {
@@ -65757,15 +65765,13 @@ const ERC20_ABI = [
65757
65765
  type: 'function',
65758
65766
  },
65759
65767
  ];
65760
- // Hardcoded vesting NFT contract address
65761
- const VESTING_NFT_ADDRESS$1 = '0x1d792892823306D15C9c65938f9385fC2dA97271';
65762
65768
  const VESTING_NFT_CHAIN_ID = main.ChainId.BASE;
65763
65769
  const fetchVestingNftBills = async (account) => {
65764
65770
  try {
65765
65771
  // Get balance first
65766
65772
  const balanceCalls = [
65767
65773
  {
65768
- address: VESTING_NFT_ADDRESS$1,
65774
+ address: VESTING_NFT_ADDRESS,
65769
65775
  name: 'balanceOf',
65770
65776
  params: [account],
65771
65777
  },
@@ -65776,7 +65782,7 @@ const fetchVestingNftBills = async (account) => {
65776
65782
  return [];
65777
65783
  // Get all token IDs
65778
65784
  const tokenIdCalls = Array.from({ length: balance }, (_, i) => ({
65779
- address: VESTING_NFT_ADDRESS$1,
65785
+ address: VESTING_NFT_ADDRESS,
65780
65786
  name: 'tokenOfOwnerByIndex',
65781
65787
  params: [account, i],
65782
65788
  }));
@@ -65785,12 +65791,12 @@ const fetchVestingNftBills = async (account) => {
65785
65791
  // Get vesting schedule and claimable for each token
65786
65792
  const detailCalls = tokenIds.flatMap((tokenId) => [
65787
65793
  {
65788
- address: VESTING_NFT_ADDRESS$1,
65794
+ address: VESTING_NFT_ADDRESS,
65789
65795
  name: 'getVestingSchedule',
65790
65796
  params: [tokenId],
65791
65797
  },
65792
65798
  {
65793
- address: VESTING_NFT_ADDRESS$1,
65799
+ address: VESTING_NFT_ADDRESS,
65794
65800
  name: 'claimablePayout',
65795
65801
  params: [tokenId],
65796
65802
  },
@@ -65841,7 +65847,7 @@ const fetchVestingNftBills = async (account) => {
65841
65847
  const tokenMeta = tokenMetadata[payoutTokenAddress];
65842
65848
  // Map to UserBill format
65843
65849
  result.push({
65844
- address: VESTING_NFT_ADDRESS$1,
65850
+ address: VESTING_NFT_ADDRESS,
65845
65851
  id: tokenIds[i],
65846
65852
  vesting: vestingDuration.toString(), // vesting duration in seconds
65847
65853
  payout: totalPayout.minus(payoutClaimed).toString(), // remaining payout
@@ -65849,13 +65855,13 @@ const fetchVestingNftBills = async (account) => {
65849
65855
  truePricePaid: '0',
65850
65856
  lastBlockTimestamp: vestingStart.toString(),
65851
65857
  pendingRewards: claimable.toString(),
65852
- billNftAddress: VESTING_NFT_ADDRESS$1,
65858
+ billNftAddress: VESTING_NFT_ADDRESS,
65853
65859
  payoutClaimed: payoutClaimed.toString(),
65854
65860
  bond: {
65855
65861
  billType: 'vesting',
65856
65862
  chainId: VESTING_NFT_CHAIN_ID,
65857
- contractAddress: { [VESTING_NFT_CHAIN_ID]: VESTING_NFT_ADDRESS$1 },
65858
- billNnftAddress: { [VESTING_NFT_CHAIN_ID]: VESTING_NFT_ADDRESS$1 },
65863
+ contractAddress: { [VESTING_NFT_CHAIN_ID]: VESTING_NFT_ADDRESS },
65864
+ billNnftAddress: { [VESTING_NFT_CHAIN_ID]: VESTING_NFT_ADDRESS },
65859
65865
  vestingCliff: vestingCliff > 0 ? vestingCliff : undefined,
65860
65866
  earnToken: {
65861
65867
  symbol: tokenMeta.symbol,
@@ -65944,7 +65950,6 @@ const VESTING_NFT_CLAIM_ABI$1 = [
65944
65950
  type: 'function',
65945
65951
  },
65946
65952
  ];
65947
- const VESTING_NFT_ADDRESS = '0xD97197A4bC1db9e160023271B6C6de5B3325b7fd';
65948
65953
  const YourBondsModal = ({ onDismiss, bill }) => {
65949
65954
  // Hooks
65950
65955
  const SDKConfig = useSDKConfig();
@@ -65952,7 +65957,8 @@ const YourBondsModal = ({ onDismiss, bill }) => {
65952
65957
  const { data: userBonds, refetch: refetchUserBonds } = useUserBonds();
65953
65958
  const userBill = useMemo(() => userBonds?.find((b) => b.address.toLowerCase() === bill?.address.toLowerCase() && b.id === bill.id), [userBonds, bill]);
65954
65959
  const { switchChain } = useSwitchChain();
65955
- const { data: bondNFTData, refetch } = useBondNFTData(userBill?.id, userBill?.billNftAddress, userBill?.bond?.chainId);
65960
+ const isVestingNFT = userBill?.billNftAddress?.toLowerCase() === VESTING_NFT_ADDRESS.toLowerCase();
65961
+ const { data: bondNFTData, refetch } = useBondNFTData(userBill?.id, userBill?.billNftAddress, userBill?.bond?.chainId, isVestingNFT);
65956
65962
  const { writeContractAsync } = useWriteContract();
65957
65963
  const { address: account } = useAccount();
65958
65964
  // State
@@ -65965,7 +65971,6 @@ const YourBondsModal = ({ onDismiss, bill }) => {
65965
65971
  const load = loadingTx || (isLoading && !isConfirmed);
65966
65972
  // Cliff display info:
65967
65973
  const vestingCliff = userBill?.bond?.vestingCliff;
65968
- console.log(userBill);
65969
65974
  const currentTime = Math.round(new Date().getTime() / 1000);
65970
65975
  const lastBlockTimestamp = parseInt(userBill?.lastBlockTimestamp ?? '0');
65971
65976
  const isPendingCliff = vestingCliff ? currentTime - lastBlockTimestamp < vestingCliff : false;
@@ -66193,7 +66198,6 @@ const UserBondRow = ({ bill }) => {
66193
66198
  const [loadingTx, setLoadingTx] = useState(false);
66194
66199
  const load = loadingTx || (isConfirming && !isConfirmed);
66195
66200
  const [onOpenPurchasedBond] = useModal(jsx$2(YourBondsModal, { bill: bill }));
66196
- const VESTING_NFT_ADDRESS = '0xD97197A4bC1db9e160023271B6C6de5B3325b7fd';
66197
66201
  const handleClaim = async (billId, billAddress) => {
66198
66202
  const address = billAddress;
66199
66203
  const isVestingNft = billAddress.toLowerCase() === VESTING_NFT_ADDRESS.toLowerCase();
@@ -69501,7 +69505,6 @@ const YourBonds = ({ showOnly, isGooSale }) => {
69501
69505
  const [inputValue, setInputValue] = useState('');
69502
69506
  const filterOptions = ['CLAIMABLE', 'ALL'];
69503
69507
  const [filterOption, setFilterOption] = useState(filterOptions[0]);
69504
- const VESTING_NFT_ADDRESS = '0x1d792892823306D15C9c65938f9385fC2dA97271';
69505
69508
  const handleSort = (key) => {
69506
69509
  let direction = 'desc';
69507
69510
  if (sortConfig?.key === key && sortConfig?.direction === 'desc') {
@@ -1,5 +1,5 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { ChainId } from '@ape.swap/apeswap-lists';
3
3
  import { UserBillNftData } from '../../types/yourbonds';
4
- export default function useBondNFTData(id?: string, billNftAddress?: string, chainId?: ChainId): UseQueryResult<UserBillNftData | null>;
5
- export declare const getBondNFTData: (apiV2URL: string, id: string, billNftAddress: string, chainId: ChainId) => Promise<UserBillNftData | null>;
4
+ export default function useBondNFTData(id?: string, billNftAddress?: string, chainId?: ChainId, isVestingNFT?: boolean): UseQueryResult<UserBillNftData | null>;
5
+ export declare const getBondNFTData: (apiV2URL: string, id: string, billNftAddress: string, chainId: ChainId, isVestingNFT?: boolean) => Promise<UserBillNftData | null>;
@@ -6,4 +6,4 @@
6
6
  * @param chainId - The ID of the blockchain network to retrieve data from.
7
7
  * @returns A Promise that resolves to the batch data for the specified bill NFT IDs, or null if an error occurs.
8
8
  */
9
- export declare const getBillNftBatchData: (apiV2URL: string, billNftIds: string[], billNftAddress: string, chainId: number) => Promise<any>;
9
+ export declare const getBillNftBatchData: (apiV2URL: string, billNftIds: string[], billNftAddress: string, chainId: number, isVestingNFT?: boolean) => Promise<any>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Goo Money Bond SDK",
4
4
  "author": "Goo Money",
5
5
  "license": "MIT",
6
- "version": "3.0.180",
6
+ "version": "3.0.182",
7
7
  "proxy": "https://realtime-api-pr-99.herokuapp.com",
8
8
  "module": "dist/main.js",
9
9
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "axios": "^1.7.2",
37
37
  "react": "^18.2.0",
38
38
  "react-dom": "^17.0.0 || ^18.0.0",
39
- "swiper": "^8.4.7 || ^11.2.10",
39
+ "swiper": "^8.4.7 || ^11.2.10 || ^12.1.2",
40
40
  "wagmi": "^2.12.17"
41
41
  },
42
42
  "devDependencies": {