@ape.swap/bonds-sdk 1.0.340 → 1.0.342
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/components/YourBonds/fetchBillsUser.d.ts +1 -1
- package/dist/components/YourBonds/fetchBillsUser.js +1 -1
- package/dist/hooks/PriceGetter/usePricesFromPriceGetter.d.ts +1 -2
- package/dist/hooks/PriceGetter/usePricesFromPriceGetter.js +1 -2
- package/dist/state/bills/fetchBillsCalls.js +1 -1
- package/dist/state/bills/hooks.d.ts +1 -1
- package/dist/state/bills/types.d.ts +1 -2
- package/dist/types/dexFactories.d.ts +7 -3
- package/dist/types/dexFactories.js +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
1
|
import { Bills, CleanedBondsState, UserBill } from '../../types/bonds';
|
|
2
|
+
import { ChainId } from '../../enum/apeswaplists';
|
|
3
3
|
/**
|
|
4
4
|
* Fetches user-owned bill NFT data for a given set of owned bills data, chain ID, and bills.
|
|
5
5
|
* @param ownedBillsData An array of objects containing the ID, bill NFT address, and contract address of the owned bills.
|
|
@@ -37,8 +37,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
import billAbi from '../../config/abi/bond.json';
|
|
38
38
|
import BigNumber from 'bignumber.js';
|
|
39
39
|
import { getBillNftBatchData } from './getBillNftData';
|
|
40
|
-
import { BillVersion } from '@ape.swap/apeswap-lists';
|
|
41
40
|
import multicall from '../../utils/multicall';
|
|
41
|
+
import { BillVersion } from '../../enum/apeswaplists';
|
|
42
42
|
/**
|
|
43
43
|
* Fetches user-owned bill NFT data for a given set of owned bills data, chain ID, and bills.
|
|
44
44
|
* @param ownedBillsData An array of objects containing the ID, bill NFT address, and contract address of the owned bills.
|
|
@@ -36,12 +36,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
};
|
|
37
37
|
import { ZERO_ADDRESS } from '../../config/constants/misc';
|
|
38
38
|
import { useMemo } from 'react';
|
|
39
|
-
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
40
39
|
import multicall from '../../utils/multicall';
|
|
41
40
|
import { PRICE_GETTER_ADDRESSES } from '../../config/constants/addresses';
|
|
42
41
|
import PRICE_GETTER_ABI from '../../config/abi/price-getter.json';
|
|
43
42
|
import PRICE_GETTER_ABI_LINEA from '../../config/abi/price-getter-linea.json';
|
|
44
|
-
import { Protocols } from '../../enum/apeswaplists';
|
|
43
|
+
import { ChainId, Protocols } from '../../enum/apeswaplists';
|
|
45
44
|
import { defaultDexFactories, dexFactories } from '../../types/dexFactories';
|
|
46
45
|
export function getTokenPricesV2FromPriceGetter(tokensToCall, chain, lpTokens) {
|
|
47
46
|
if (lpTokens === void 0) { lpTokens = false; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChainId } from '
|
|
1
|
+
import { ChainId } from '../../enum/apeswaplists';
|
|
2
2
|
export declare const usePollBills: () => void;
|
|
3
3
|
export declare const usePollSingleBill: (chainId?: ChainId, capturedBillAddress?: string) => void;
|
|
4
4
|
export declare const usePollUserBills: () => any[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { BillsConfig, BillVersion, Token } from
|
|
2
|
-
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
1
|
+
import { BillsConfig, BillVersion, ChainId, Token } from "../../enum/apeswaplists";
|
|
3
2
|
export interface UserBillNft {
|
|
4
3
|
image: string;
|
|
5
4
|
tokenId: string;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { ChainId, LiquidityDex, Protocols } from "../enum/apeswaplists";
|
|
2
|
-
|
|
2
|
+
type DexInfo = {
|
|
3
3
|
factory: string;
|
|
4
4
|
router?: string;
|
|
5
5
|
protocol: Protocols;
|
|
6
|
-
}
|
|
7
|
-
|
|
6
|
+
};
|
|
7
|
+
type dexFactories = Partial<Record<ChainId, Partial<Record<LiquidityDex, DexInfo>>>>;
|
|
8
|
+
type defaultDexFactories = Partial<Record<ChainId, Partial<Record<Protocols, string>>>>;
|
|
9
|
+
export declare const dexFactories: dexFactories;
|
|
10
|
+
export declare const defaultDexFactories: defaultDexFactories;
|
|
11
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export var dexFactories = {};
|
|
2
|
+
export var defaultDexFactories = {};
|