@ape.swap/bonds-sdk 1.0.354 → 1.0.355

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.
Files changed (36) hide show
  1. package/dist/components/BondModal/BondModal.js +1 -1
  2. package/dist/components/YourBonds/YourBonds.js +62 -43
  3. package/dist/components/YourBonds/fetchBillsUser.d.ts +3 -3
  4. package/dist/components/YourBonds/fetchBillsUser.js +4 -4
  5. package/dist/config/abi/erc20.json +117 -0
  6. package/dist/config/abi/price-getter-linea.json +1448 -0
  7. package/dist/config/abi/price-getter.json +1309 -0
  8. package/dist/hooks/PriceGetter/usePricesFromPriceGetter.d.ts +17 -0
  9. package/dist/hooks/PriceGetter/usePricesFromPriceGetter.js +205 -0
  10. package/dist/state/bills/cleanBillsData.d.ts +5 -0
  11. package/dist/state/bills/cleanBillsData.js +41 -0
  12. package/dist/state/bills/fetchBills.d.ts +4 -0
  13. package/dist/state/bills/fetchBills.js +61 -0
  14. package/dist/state/bills/fetchBillsCalls.d.ts +4 -0
  15. package/dist/state/bills/fetchBillsCalls.js +27 -0
  16. package/dist/state/bills/fetchBillsUser.d.ts +15 -0
  17. package/dist/state/bills/fetchBillsUser.js +171 -0
  18. package/dist/state/bills/getBillNftData.d.ts +9 -0
  19. package/dist/state/bills/getBillNftData.js +109 -0
  20. package/dist/state/bills/hooks.d.ts +4 -0
  21. package/dist/state/bills/hooks.js +142 -0
  22. package/dist/state/bills/index.d.ts +48 -0
  23. package/dist/state/bills/index.js +293 -0
  24. package/dist/state/bills/types.d.ts +168 -0
  25. package/dist/state/bills/types.js +1 -0
  26. package/dist/state/tokenPrices/fetchTokenPricesForMultipleChains.d.ts +4 -0
  27. package/dist/state/tokenPrices/fetchTokenPricesForMultipleChains.js +68 -0
  28. package/dist/state/tokenPrices/getAllTokenPrices.d.ts +5 -0
  29. package/dist/state/tokenPrices/getAllTokenPrices.js +288 -0
  30. package/dist/state/tokenPrices/useTokenPricesNew.d.ts +11 -0
  31. package/dist/state/tokenPrices/useTokenPricesNew.js +72 -0
  32. package/dist/types/bonds.d.ts +62 -0
  33. package/dist/types/dexFactories.d.ts +11 -0
  34. package/dist/types/dexFactories.js +2 -0
  35. package/dist/types/yourbonds.d.ts +4 -0
  36. package/package.json +1 -1
@@ -46,6 +46,68 @@ export interface UserBillNft {
46
46
  value: string;
47
47
  }[];
48
48
  }
49
+ export interface UserBillNftData {
50
+ id: number;
51
+ data: {
52
+ name: string;
53
+ description: string;
54
+ tokenId: number;
55
+ image: string;
56
+ attributes: {
57
+ trait_type: string;
58
+ value: string;
59
+ }[];
60
+ data: {
61
+ billContract: string;
62
+ billNftAddress: string;
63
+ payout: number;
64
+ deposit: number;
65
+ createTransactionHash: string;
66
+ billNftId: number;
67
+ expires: number;
68
+ vestingPeriodSeconds: number;
69
+ payoutToken: string;
70
+ principalToken: string;
71
+ type: string;
72
+ pairName: string;
73
+ payoutTokenData: {
74
+ address: string;
75
+ name: string;
76
+ symbol: string;
77
+ decimals: {
78
+ [chainId: number]: number;
79
+ };
80
+ };
81
+ token0: {
82
+ address: string;
83
+ symbol: string;
84
+ name: string;
85
+ decimals: {
86
+ [chainId: number]: number;
87
+ };
88
+ };
89
+ token1: {
90
+ address: string;
91
+ symbol: string;
92
+ name: string;
93
+ decimals: {
94
+ [chainId: number]: number;
95
+ };
96
+ };
97
+ dollarValue: number;
98
+ chainId: ChainId;
99
+ blockNumber: number;
100
+ bondArtCollection: string;
101
+ bondPartner: string;
102
+ bondVersion: string;
103
+ createdAddressOwner: string;
104
+ createdAt: number;
105
+ payoutTokenPrice: string;
106
+ };
107
+ contractAddress: string;
108
+ chainId: ChainId;
109
+ };
110
+ }
49
111
  export interface UserBill {
50
112
  address: string;
51
113
  id: string;
@@ -0,0 +1,11 @@
1
+ import { ChainId, LiquidityDex, Protocols } from "../enum/apeswaplists";
2
+ type DexInfo = {
3
+ factory: string;
4
+ router?: string;
5
+ protocol: Protocols;
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 {};
@@ -0,0 +1,2 @@
1
+ export var dexFactories = {};
2
+ export var defaultDexFactories = {};
@@ -3,6 +3,10 @@ export interface UserOwnedBillsData {
3
3
  index: number;
4
4
  userOwnedBills: UserBill[];
5
5
  }
6
+ export interface ownedBillsWithNftData {
7
+ index: number;
8
+ userOwnedBillsNfts: any[];
9
+ }
6
10
  export interface UserBill {
7
11
  address: string;
8
12
  id: string;
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": "1.0.354",
6
+ "version": "1.0.355",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",