@upshiftfinance/sdk 0.0.0-stage → 0.1.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.
Files changed (346) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +408 -2
  3. package/lib/abis/AddressResolver.d.ts +28 -0
  4. package/lib/abis/AddressResolver.js +23 -0
  5. package/lib/abis/ChainlinkV3.d.ts +87 -0
  6. package/lib/abis/ChainlinkV3.js +117 -0
  7. package/lib/abis/ERC20.d.ts +168 -0
  8. package/lib/abis/ERC20.js +226 -0
  9. package/lib/abis/ERC20_Bytes32.d.ts +139 -0
  10. package/lib/abis/ERC20_Bytes32.js +196 -0
  11. package/lib/abis/ERC4626.d.ts +364 -0
  12. package/lib/abis/ERC4626.js +507 -0
  13. package/lib/abis/ERC721.d.ts +231 -0
  14. package/lib/abis/ERC721.js +321 -0
  15. package/lib/abis/FeeOracle.d.ts +120 -0
  16. package/lib/abis/FeeOracle.js +162 -0
  17. package/lib/abis/LendingPool.d.ts +1393 -0
  18. package/lib/abis/LendingPool.js +1807 -0
  19. package/lib/abis/LendingPoolV2.d.ts +1413 -0
  20. package/lib/abis/LendingPoolV2.js +1833 -0
  21. package/lib/abis/LendingPoolV3.d.ts +1677 -0
  22. package/lib/abis/LendingPoolV3.js +1160 -0
  23. package/lib/abis/Loan.d.ts +837 -0
  24. package/lib/abis/Loan.js +1080 -0
  25. package/lib/abis/MultiAssetNativeDepositWrapper.d.ts +137 -0
  26. package/lib/abis/MultiAssetNativeDepositWrapper.js +125 -0
  27. package/lib/abis/Multicall3.d.ts +30 -0
  28. package/lib/abis/Multicall3.js +97 -0
  29. package/lib/abis/OFT.d.ts +116 -0
  30. package/lib/abis/OFT.js +85 -0
  31. package/lib/abis/PoolAdapter.d.ts +36 -0
  32. package/lib/abis/PoolAdapter.js +51 -0
  33. package/lib/abis/RewardDistributor.d.ts +267 -0
  34. package/lib/abis/RewardDistributor.js +352 -0
  35. package/lib/abis/RwaRedeemSubaccount.d.ts +747 -0
  36. package/lib/abis/RwaRedeemSubaccount.js +548 -0
  37. package/lib/abis/SmartAccount.d.ts +17 -0
  38. package/lib/abis/SmartAccount.js +19 -0
  39. package/lib/abis/SwapRouter.d.ts +953 -0
  40. package/lib/abis/SwapRouter.js +1228 -0
  41. package/lib/abis/TextResolver.d.ts +16 -0
  42. package/lib/abis/TextResolver.js +16 -0
  43. package/lib/abis/TokenizedVaultV2.d.ts +1364 -0
  44. package/lib/abis/TokenizedVaultV2.js +1041 -0
  45. package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +1456 -0
  46. package/lib/abis/TokenizedVaultV2DepositWithPermit.js +1878 -0
  47. package/lib/abis/TokenizedVaultV2Receipt.d.ts +1568 -0
  48. package/lib/abis/TokenizedVaultV2Receipt.js +1061 -0
  49. package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.d.ts +454 -0
  50. package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.js +327 -0
  51. package/lib/abis/TokenizedVaultV2WhitelistedAllocation.d.ts +1466 -0
  52. package/lib/abis/TokenizedVaultV2WhitelistedAllocation.js +1092 -0
  53. package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +274 -0
  54. package/lib/abis/TokenizedVaultV2WhitelistedAssets.js +167 -0
  55. package/lib/abis/UniversalResolverResolve.d.ts +69 -0
  56. package/lib/abis/UniversalResolverResolve.js +35 -0
  57. package/lib/abis/UniversalSignatureValidator.d.ts +17 -0
  58. package/lib/abis/UniversalSignatureValidator.js +30 -0
  59. package/lib/abis/WrapperAdapter.d.ts +71 -0
  60. package/lib/abis/WrapperAdapter.js +77 -0
  61. package/lib/abis/index.d.ts +34 -0
  62. package/lib/abis/index.js +51 -0
  63. package/lib/adapters/evm/getters.d.ts +19 -0
  64. package/lib/adapters/evm/getters.js +249 -0
  65. package/lib/adapters/evm/index.d.ts +539 -0
  66. package/lib/adapters/evm/index.js +656 -0
  67. package/lib/adapters/evm/utils.d.ts +8 -0
  68. package/lib/adapters/evm/utils.js +51 -0
  69. package/lib/adapters/solana/confirm.d.ts +88 -0
  70. package/lib/adapters/solana/confirm.js +291 -0
  71. package/lib/adapters/solana/constants.d.ts +42 -0
  72. package/lib/adapters/solana/constants.js +59 -0
  73. package/lib/adapters/solana/getters.d.ts +42 -0
  74. package/lib/adapters/solana/getters.js +275 -0
  75. package/lib/adapters/solana/idl/vault-idl.d.ts +700 -0
  76. package/lib/adapters/solana/idl/vault-idl.js +2101 -0
  77. package/lib/adapters/solana/idl/withdrawal-queue-idl.d.ts +795 -0
  78. package/lib/adapters/solana/idl/withdrawal-queue-idl.js +1864 -0
  79. package/lib/adapters/solana/index.d.ts +372 -0
  80. package/lib/adapters/solana/index.js +459 -0
  81. package/lib/adapters/solana/pricing.d.ts +184 -0
  82. package/lib/adapters/solana/pricing.js +239 -0
  83. package/lib/adapters/solana/queue-hints.d.ts +29 -0
  84. package/lib/adapters/solana/queue-hints.js +59 -0
  85. package/lib/adapters/solana/queue.actions.d.ts +97 -0
  86. package/lib/adapters/solana/queue.actions.js +468 -0
  87. package/lib/adapters/solana/token-reads.d.ts +108 -0
  88. package/lib/adapters/solana/token-reads.js +145 -0
  89. package/lib/adapters/solana/types.d.ts +325 -0
  90. package/lib/adapters/solana/types.js +3 -0
  91. package/lib/adapters/solana/utils.d.ts +229 -0
  92. package/lib/adapters/solana/utils.js +773 -0
  93. package/lib/adapters/solana/vault.actions.d.ts +140 -0
  94. package/lib/adapters/solana/vault.actions.js +657 -0
  95. package/lib/adapters/solana/withdrawal-queue.d.ts +125 -0
  96. package/lib/adapters/solana/withdrawal-queue.js +301 -0
  97. package/lib/adapters/stellar/actions.d.ts +41 -0
  98. package/lib/adapters/stellar/actions.js +126 -0
  99. package/lib/adapters/stellar/constants.d.ts +43 -0
  100. package/lib/adapters/stellar/constants.js +53 -0
  101. package/lib/adapters/stellar/getters.d.ts +68 -0
  102. package/lib/adapters/stellar/getters.js +290 -0
  103. package/lib/adapters/stellar/index.d.ts +126 -0
  104. package/lib/adapters/stellar/index.js +187 -0
  105. package/lib/adapters/stellar/invocation.d.ts +55 -0
  106. package/lib/adapters/stellar/invocation.js +92 -0
  107. package/lib/adapters/stellar/soroban.d.ts +131 -0
  108. package/lib/adapters/stellar/soroban.js +617 -0
  109. package/lib/adapters/stellar/submit.d.ts +42 -0
  110. package/lib/adapters/stellar/submit.js +195 -0
  111. package/lib/adapters/stellar/types.d.ts +57 -0
  112. package/lib/adapters/stellar/types.js +6 -0
  113. package/lib/adapters/stellar/utils.d.ts +24 -0
  114. package/lib/adapters/stellar/utils.js +34 -0
  115. package/lib/adapters/sui/constants.d.ts +1 -0
  116. package/lib/adapters/sui/constants.js +9 -0
  117. package/lib/adapters/sui/getters.d.ts +24 -0
  118. package/lib/adapters/sui/getters.js +134 -0
  119. package/lib/adapters/sui/index.d.ts +53 -0
  120. package/lib/adapters/sui/index.js +96 -0
  121. package/lib/adapters/sui/transformer.d.ts +10 -0
  122. package/lib/adapters/sui/transformer.js +115 -0
  123. package/lib/adapters/sui/types.d.ts +70 -0
  124. package/lib/adapters/sui/types.js +3 -0
  125. package/lib/adapters/sui/utils.d.ts +8 -0
  126. package/lib/adapters/sui/utils.js +17 -0
  127. package/lib/core/analytics/app-name.d.ts +27 -0
  128. package/lib/core/analytics/app-name.js +48 -0
  129. package/lib/core/analytics/chain-name.d.ts +9 -0
  130. package/lib/core/analytics/chain-name.js +34 -0
  131. package/lib/core/analytics/constants.d.ts +15 -0
  132. package/lib/core/analytics/constants.js +28 -0
  133. package/lib/core/analytics/env.d.ts +46 -0
  134. package/lib/core/analytics/env.js +147 -0
  135. package/lib/core/analytics/index.d.ts +39 -0
  136. package/lib/core/analytics/index.js +83 -0
  137. package/lib/core/analytics/instrumentation.d.ts +29 -0
  138. package/lib/core/analytics/instrumentation.js +292 -0
  139. package/lib/core/analytics/method-taxonomy.d.ts +19 -0
  140. package/lib/core/analytics/method-taxonomy.js +156 -0
  141. package/lib/core/analytics/metrics.d.ts +48 -0
  142. package/lib/core/analytics/metrics.js +142 -0
  143. package/lib/core/analytics/sanitize.d.ts +57 -0
  144. package/lib/core/analytics/sanitize.js +272 -0
  145. package/lib/core/analytics/sentry-runtime.d.ts +15 -0
  146. package/lib/core/analytics/sentry-runtime.js +131 -0
  147. package/lib/core/analytics/sentry.d.ts +100 -0
  148. package/lib/core/analytics/sentry.js +696 -0
  149. package/lib/core/analytics/types.d.ts +55 -0
  150. package/lib/core/analytics/types.js +3 -0
  151. package/lib/core/analytics/user-identity.d.ts +55 -0
  152. package/lib/core/analytics/user-identity.js +218 -0
  153. package/lib/core/analytics/version.d.ts +6 -0
  154. package/lib/core/analytics/version.js +10 -0
  155. package/lib/core/attribution.d.ts +159 -0
  156. package/lib/core/attribution.js +194 -0
  157. package/lib/core/auth/index.d.ts +1 -0
  158. package/lib/core/auth/index.js +18 -0
  159. package/lib/core/auth/verify.d.ts +2 -0
  160. package/lib/core/auth/verify.js +35 -0
  161. package/lib/core/base.class.d.ts +193 -0
  162. package/lib/core/base.class.js +163 -0
  163. package/lib/core/cache.d.ts +9 -0
  164. package/lib/core/cache.js +31 -0
  165. package/lib/core/constants/adapters.d.ts +103 -0
  166. package/lib/core/constants/adapters.js +180 -0
  167. package/lib/core/constants/core.d.ts +162 -0
  168. package/lib/core/constants/core.js +281 -0
  169. package/lib/core/constants/swap-router.d.ts +180 -0
  170. package/lib/core/constants/swap-router.js +203 -0
  171. package/lib/core/constants/vaults.d.ts +93 -0
  172. package/lib/core/constants/vaults.js +277 -0
  173. package/lib/core/constants/web3.d.ts +106 -0
  174. package/lib/core/constants/web3.js +251 -0
  175. package/lib/core/errors/index.d.ts +177 -0
  176. package/lib/core/errors/index.js +257 -0
  177. package/lib/core/fetcher.d.ts +237 -0
  178. package/lib/core/fetcher.js +1103 -0
  179. package/lib/core/helpers/adapters.d.ts +13 -0
  180. package/lib/core/helpers/adapters.js +39 -0
  181. package/lib/core/helpers/chain-address.d.ts +13 -0
  182. package/lib/core/helpers/chain-address.js +47 -0
  183. package/lib/core/helpers/chain-error.d.ts +207 -0
  184. package/lib/core/helpers/chain-error.js +697 -0
  185. package/lib/core/helpers/chain-support.d.ts +98 -0
  186. package/lib/core/helpers/chain-support.js +139 -0
  187. package/lib/core/helpers/concurrency.d.ts +51 -0
  188. package/lib/core/helpers/concurrency.js +79 -0
  189. package/lib/core/helpers/core.d.ts +92 -0
  190. package/lib/core/helpers/core.js +368 -0
  191. package/lib/core/helpers/explorer-link.d.ts +16 -0
  192. package/lib/core/helpers/explorer-link.js +26 -0
  193. package/lib/core/helpers/multicall.d.ts +68 -0
  194. package/lib/core/helpers/multicall.js +103 -0
  195. package/lib/core/helpers/revert-decode.d.ts +248 -0
  196. package/lib/core/helpers/revert-decode.js +515 -0
  197. package/lib/core/helpers/signer.d.ts +61 -0
  198. package/lib/core/helpers/signer.js +184 -0
  199. package/lib/core/helpers/swap-router.d.ts +269 -0
  200. package/lib/core/helpers/swap-router.js +542 -0
  201. package/lib/core/helpers/vault-version.d.ts +24 -0
  202. package/lib/core/helpers/vault-version.js +83 -0
  203. package/lib/core/helpers/vaults.d.ts +89 -0
  204. package/lib/core/helpers/vaults.js +241 -0
  205. package/lib/core/helpers/web3.d.ts +366 -0
  206. package/lib/core/helpers/web3.js +1034 -0
  207. package/lib/core/index.d.ts +23 -0
  208. package/lib/core/index.js +40 -0
  209. package/lib/core/logger/curator-alert.d.ts +217 -0
  210. package/lib/core/logger/curator-alert.js +276 -0
  211. package/lib/core/logger/index.d.ts +99 -0
  212. package/lib/core/logger/index.js +163 -0
  213. package/lib/core/logger/slack.d.ts +49 -0
  214. package/lib/core/logger/slack.js +111 -0
  215. package/lib/core/vault-metadata.d.ts +12 -0
  216. package/lib/core/vault-metadata.js +42 -0
  217. package/lib/core/version-check.d.ts +58 -0
  218. package/lib/core/version-check.js +182 -0
  219. package/lib/evm/index.d.ts +2 -0
  220. package/lib/evm/index.js +19 -0
  221. package/lib/evm/methods/crossChainVault.d.ts +132 -0
  222. package/lib/evm/methods/crossChainVault.js +857 -0
  223. package/lib/evm/methods/crossChainVaultRegistry.d.ts +92 -0
  224. package/lib/evm/methods/crossChainVaultRegistry.js +239 -0
  225. package/lib/evm/methods/index.d.ts +2 -0
  226. package/lib/evm/methods/index.js +19 -0
  227. package/lib/evm/types/crossChain.d.ts +363 -0
  228. package/lib/evm/types/crossChain.js +20 -0
  229. package/lib/evm/types/index.d.ts +1 -0
  230. package/lib/evm/types/index.js +18 -0
  231. package/lib/index.d.ts +30 -0
  232. package/lib/index.js +52 -0
  233. package/lib/main.d.ts +596 -0
  234. package/lib/main.js +681 -0
  235. package/lib/modules/api/fetcher.d.ts +108 -0
  236. package/lib/modules/api/fetcher.js +187 -0
  237. package/lib/modules/api/index.d.ts +1 -0
  238. package/lib/modules/api/index.js +6 -0
  239. package/lib/modules/api/main.d.ts +587 -0
  240. package/lib/modules/api/main.js +911 -0
  241. package/lib/modules/sub-accounts/fetcher.d.ts +53 -0
  242. package/lib/modules/sub-accounts/fetcher.js +96 -0
  243. package/lib/modules/sub-accounts/index.d.ts +2 -0
  244. package/lib/modules/sub-accounts/index.js +19 -0
  245. package/lib/modules/sub-accounts/main.d.ts +249 -0
  246. package/lib/modules/sub-accounts/main.js +211 -0
  247. package/lib/modules/sub-accounts/utils.d.ts +106 -0
  248. package/lib/modules/sub-accounts/utils.js +112 -0
  249. package/lib/modules/vaults/adapter.helpers.d.ts +84 -0
  250. package/lib/modules/vaults/adapter.helpers.js +202 -0
  251. package/lib/modules/vaults/fetcher.d.ts +147 -0
  252. package/lib/modules/vaults/fetcher.js +357 -0
  253. package/lib/modules/vaults/getters.d.ts +1060 -0
  254. package/lib/modules/vaults/getters.js +4079 -0
  255. package/lib/modules/vaults/index.d.ts +20 -0
  256. package/lib/modules/vaults/index.js +44 -0
  257. package/lib/modules/vaults/main.d.ts +607 -0
  258. package/lib/modules/vaults/main.js +1687 -0
  259. package/lib/modules/vaults/prefetch.d.ts +65 -0
  260. package/lib/modules/vaults/prefetch.js +120 -0
  261. package/lib/modules/vaults/read.actions.d.ts +406 -0
  262. package/lib/modules/vaults/read.actions.js +891 -0
  263. package/lib/modules/vaults/types.d.ts +149 -0
  264. package/lib/modules/vaults/types.js +3 -0
  265. package/lib/modules/vaults/utils/call-data-decoder.d.ts +61 -0
  266. package/lib/modules/vaults/utils/call-data-decoder.js +194 -0
  267. package/lib/modules/vaults/utils/date-utils.d.ts +50 -0
  268. package/lib/modules/vaults/utils/date-utils.js +84 -0
  269. package/lib/modules/vaults/utils.d.ts +153 -0
  270. package/lib/modules/vaults/utils.js +818 -0
  271. package/lib/modules/vaults/write.actions.d.ts +812 -0
  272. package/lib/modules/vaults/write.actions.js +2377 -0
  273. package/lib/polyfills.d.ts +1 -0
  274. package/lib/polyfills.js +12 -0
  275. package/lib/sdk.d.ts +30154 -0
  276. package/lib/services/coingecko/fetcher.d.ts +15 -0
  277. package/lib/services/coingecko/fetcher.js +67 -0
  278. package/lib/services/coingecko/index.d.ts +2 -0
  279. package/lib/services/coingecko/index.js +19 -0
  280. package/lib/services/coingecko/utils.d.ts +1 -0
  281. package/lib/services/coingecko/utils.js +24 -0
  282. package/lib/services/debank/fetcher.d.ts +126 -0
  283. package/lib/services/debank/fetcher.js +47 -0
  284. package/lib/services/debank/index.d.ts +2 -0
  285. package/lib/services/debank/index.js +19 -0
  286. package/lib/services/debank/utils.d.ts +50 -0
  287. package/lib/services/debank/utils.js +325 -0
  288. package/lib/services/layerzero/deposits.d.ts +55 -0
  289. package/lib/services/layerzero/deposits.js +174 -0
  290. package/lib/services/layerzero/redeems.d.ts +20 -0
  291. package/lib/services/layerzero/redeems.js +92 -0
  292. package/lib/services/layerzero/utils.d.ts +9 -0
  293. package/lib/services/layerzero/utils.js +22 -0
  294. package/lib/services/octavfi/fetcher.d.ts +33 -0
  295. package/lib/services/octavfi/fetcher.js +39 -0
  296. package/lib/services/octavfi/index.d.ts +3 -0
  297. package/lib/services/octavfi/index.js +20 -0
  298. package/lib/services/octavfi/types.d.ts +34 -0
  299. package/lib/services/octavfi/types.js +3 -0
  300. package/lib/services/octavfi/utils.d.ts +16 -0
  301. package/lib/services/octavfi/utils.js +244 -0
  302. package/lib/services/subgraph/fetcher.d.ts +2 -0
  303. package/lib/services/subgraph/fetcher.js +66 -0
  304. package/lib/services/subgraph/index.d.ts +2 -0
  305. package/lib/services/subgraph/index.js +19 -0
  306. package/lib/services/subgraph/schema.d.ts +48 -0
  307. package/lib/services/subgraph/schema.js +87 -0
  308. package/lib/services/subgraph/vaults.d.ts +83 -0
  309. package/lib/services/subgraph/vaults.js +1282 -0
  310. package/lib/services/swap-quotes/index.d.ts +105 -0
  311. package/lib/services/swap-quotes/index.js +77 -0
  312. package/lib/services/swap-quotes/paraswap.d.ts +51 -0
  313. package/lib/services/swap-quotes/paraswap.js +138 -0
  314. package/lib/services/untangled/fetcher.d.ts +40 -0
  315. package/lib/services/untangled/fetcher.js +110 -0
  316. package/lib/services/untangled/index.d.ts +3 -0
  317. package/lib/services/untangled/index.js +20 -0
  318. package/lib/services/untangled/types.d.ts +83 -0
  319. package/lib/services/untangled/types.js +10 -0
  320. package/lib/services/untangled/utils.d.ts +91 -0
  321. package/lib/services/untangled/utils.js +339 -0
  322. package/lib/types/api.d.ts +498 -0
  323. package/lib/types/api.js +3 -0
  324. package/lib/types/index.d.ts +12 -0
  325. package/lib/types/index.js +28 -0
  326. package/lib/types/points.d.ts +28 -0
  327. package/lib/types/points.js +3 -0
  328. package/lib/types/pools.d.ts +144 -0
  329. package/lib/types/pools.js +3 -0
  330. package/lib/types/staking.d.ts +28 -0
  331. package/lib/types/staking.js +3 -0
  332. package/lib/types/sub-accounts.d.ts +150 -0
  333. package/lib/types/sub-accounts.js +3 -0
  334. package/lib/types/subgraph.d.ts +84 -0
  335. package/lib/types/subgraph.js +3 -0
  336. package/lib/types/typed-contract.d.ts +102 -0
  337. package/lib/types/typed-contract.js +3 -0
  338. package/lib/types/user.d.ts +1 -0
  339. package/lib/types/user.js +3 -0
  340. package/lib/types/vaults.d.ts +886 -0
  341. package/lib/types/vaults.js +30 -0
  342. package/lib/types/web3.d.ts +81 -0
  343. package/lib/types/web3.js +14 -0
  344. package/lib/types/webserver.d.ts +730 -0
  345. package/lib/types/webserver.js +3 -0
  346. package/package.json +78 -3
package/lib/main.d.ts ADDED
@@ -0,0 +1,596 @@
1
+ /**
2
+ * The main Upshift SDK class.
3
+ *
4
+ * @module UpshiftSDK
5
+ */
6
+ import SolanaAdapter from './adapters/solana';
7
+ import SuiAdapter from './adapters/sui';
8
+ import StellarAdapter from './adapters/stellar';
9
+ import EVMAdapter from './adapters/evm';
10
+ import type { IAddress, IChainId, IVaultHistoricalParams } from './types';
11
+ import { UpshiftBase, type IUpshiftBase } from './core';
12
+ import { UpshiftVaults, type IGetVaultsOptions, type IVaultBaseOptions, type IVaultCustomOptions } from './modules/vaults';
13
+ import type { Signer, Wallet } from 'ethers';
14
+ import type { IContractWriteOptions } from './modules/vaults/write.actions';
15
+ import { UpshiftSubAccounts } from './modules/sub-accounts';
16
+ import { UpshiftApi } from './modules/api';
17
+ /**
18
+ * Main SDK class for interacting with Upshift vaults and services.
19
+ * Provides unified access to EVM, Solana, Sui, and Stellar blockchain adapters.
20
+ */
21
+ export declare class UpshiftSDK extends UpshiftBase {
22
+ private vaults;
23
+ private subaccounts;
24
+ private api;
25
+ solana: SolanaAdapter;
26
+ sui: SuiAdapter;
27
+ stellar: StellarAdapter;
28
+ evm: EVMAdapter;
29
+ /**
30
+ * Initialize the Upshift SDK with provider configuration.
31
+ * Automatically sets up EVM adapter and optionally initializes Solana if RPC URL is provided.
32
+ */
33
+ constructor(baseConfig: IUpshiftBase);
34
+ /**
35
+ * Get the Sub-Accounts module instance.
36
+ */
37
+ get subAccountsModule(): UpshiftSubAccounts;
38
+ /**
39
+ * Get the Vaults module instance.
40
+ */
41
+ get vaultsModule(): UpshiftVaults;
42
+ /**
43
+ * Get the backend API module instance ({@link UpshiftApi}) — read-only
44
+ * access to backend-computed data with no on-chain equivalent: the
45
+ * unrealized-PnL series and the transparency dashboard (position snapshot,
46
+ * backing series, smoothed APY, allocations, fee config, governance).
47
+ */
48
+ get apiModule(): UpshiftApi;
49
+ /**
50
+ * Switch the active network for vault operations.
51
+ * Updates the SDK's active chain and RPC provider.
52
+ */
53
+ switchNetwork(chainId: IChainId): void;
54
+ /**
55
+ * Set the active wallet address for tracking user-specific vault data.
56
+ * Updates monitoring headers with the wallet address.
57
+ */
58
+ updateWallet(address: IAddress): void;
59
+ /**
60
+ * Clear the active wallet address from the SDK state and monitoring headers.
61
+ */
62
+ clearWallet(): void;
63
+ /**
64
+ * Pricing and Market Data
65
+ */
66
+ /**
67
+ * Get the current USD price of a token by symbol or contract address.
68
+ * Falls back to CoinGecko if primary price source fails.
69
+ *
70
+ * @param symbol - Token symbol or contract address
71
+ * @returns Current price in USD
72
+ */
73
+ getPrice(symbol: string): Promise<number>;
74
+ /**
75
+ * Vault Data and Operations
76
+ */
77
+ /**
78
+ * Fetch all available vaults across configured networks.
79
+ * Optionally filter by chain IDs and include loan/allocation data.
80
+ * @param options - Configuration for filtering and enriching vault data —
81
+ * see {@link IGetVaultsOptions} for the full surface (`includeClosed`
82
+ * portfolio mode, `maxRetries`/`baseDelay` retry tuning)
83
+ * @returns Array of vault objects with metadata and optional position data
84
+ */
85
+ getVaults(options?: IGetVaultsOptions): Promise<import("./types").IVault[]>;
86
+ getTotalDeposited(options?: {
87
+ loadSubaccounts?: boolean;
88
+ loadSnapshots?: boolean;
89
+ }): Promise<number>;
90
+ /**
91
+ * Deposit into a vault with an explicit signer. When `depositAsset` differs
92
+ * from the vault's underlying asset the deposit goes through the vault's
93
+ * multi-asset `deposit`, permit path, or configured adapter. It never swaps
94
+ * (use `evm.swapRouterDeposit` for that); with `attribution.originCode` set,
95
+ * eligible deposits go through the SwapRouter (see `evm.getDepositRoute`).
96
+ * @param signer - ethers Signer or Wallet that sends the transaction
97
+ * @param options - Vault address (`target`), depositor `wallet`, `amount`, and optional `depositAsset`, `wait`, `isDepositWithPermit`
98
+ * @returns Deposit transaction hash
99
+ */
100
+ vaultDeposit(signer: Signer | Wallet, options: IContractWriteOptions): Promise<string>;
101
+ /**
102
+ * Fetch detailed information for a specific vault.
103
+ * @param props - Vault address, chain ID, and optional enrichment options
104
+ * @returns Single vault object with full metadata
105
+ */
106
+ getVault(props: {
107
+ vault: IAddress;
108
+ chainId?: IChainId;
109
+ options?: IVaultCustomOptions;
110
+ loadSubaccounts?: boolean;
111
+ loadSnapshots?: boolean;
112
+ }): Promise<import("./types").IVault>;
113
+ /**
114
+ * Get active loans deployed from a vault.
115
+ * @param props - Vault address and chain ID
116
+ * @returns Array of loan details including borrower, principal, APR
117
+ */
118
+ getVaultLoans(props: {
119
+ vault: IAddress;
120
+ chainId?: IChainId;
121
+ }): Promise<import("./types").IVaultLoan[]>;
122
+ /**
123
+ * Get vault asset allocations across DeFi protocols, CeFi, and OTC positions.
124
+ *
125
+ * This is the data behind the "Vault Exposure" section of the Upshift app —
126
+ * a partner rendering that section in their own frontend needs only this
127
+ * call. Read `exposurePerCategory` for the pre-bucketed view the UI renders
128
+ * (`supplying` / `borrowing` / `wallet` / `lending` legs plus per-category
129
+ * USD totals) and `netValue` for the headline figure; the raw `defi` /
130
+ * `cefi` / `otc` arrays back the drill-downs. See the "Rendering the Vault
131
+ * Exposure section" guide in the vaults docs for a faithful reproduction.
132
+ *
133
+ * Stellar vaults resolve their DeFi exposure through the Untangled portfolio
134
+ * API instead of DeBank — one extra HTTP call, covering the idle buffer,
135
+ * Stellar protocol positions, custody wallets and bridged capital. If that
136
+ * call fails the exposure legs come back empty rather than throwing, so CeFi,
137
+ * OTC and loan allocations still resolve.
138
+ *
139
+ * @param props - Vault address and chain ID
140
+ * @returns Detailed breakdown of vault allocations by category
141
+ * @example
142
+ * ```ts
143
+ * const { exposurePerCategory, netValue } = await sdk.getVaultAllocations({
144
+ * vault: '0xcd69123b3FBBfC666E1f6a501da27B564C00De54',
145
+ * chainId: 1,
146
+ * });
147
+ * for (const item of exposurePerCategory?.supplying ?? []) {
148
+ * console.log(item.protocol, item.symbol, item.amount);
149
+ * }
150
+ * ```
151
+ */
152
+ getVaultAllocations(props: {
153
+ vault: IAddress;
154
+ chainId?: IChainId;
155
+ }): Promise<import("./types").IVaultAllocations | {
156
+ status: number;
157
+ message: string;
158
+ }>;
159
+ /**
160
+ * Get current or historical APY for a vault.
161
+ *
162
+ * @deprecated use getVaultHistoricalTimeseries instead
163
+ *
164
+ * @param props - Vault address and optional historical lookback period
165
+ * @returns APY data including rewards breakdown
166
+ */
167
+ getVaultApy(props: {
168
+ vault: IAddress;
169
+ historical?: {
170
+ daysAgo?: number;
171
+ };
172
+ }): Promise<{
173
+ value: number;
174
+ timestamp: string;
175
+ }[]>;
176
+ /**
177
+ * Get current or historical TVL for a vault.
178
+ * @param props - Vault address and optional historical parameters
179
+ * @returns TVL in vault's base asset units
180
+ */
181
+ getVaultTvl(props: {
182
+ vault: IAddress;
183
+ historical?: IVaultHistoricalParams;
184
+ chainId?: IChainId;
185
+ }): Promise<{
186
+ value: import("./types").INormalizedNumber;
187
+ timestamp: string;
188
+ }[]>;
189
+ /**
190
+ * Get historical timeseries data for a vault.
191
+ * @param props - Vault address and optional number of days
192
+ * @returns Historical timeseries data with TVL, APY, PnL, share price, and other metrics
193
+ */
194
+ getVaultHistoricalTimeseries(props: {
195
+ vault: IAddress;
196
+ nDays?: number;
197
+ }): Promise<import("./types").IHistoricalTimeseriesResponse>;
198
+ /**
199
+ * Get the timestamp when yield was last realized for a vault.
200
+ * @param props - Vault address and optional chain ID
201
+ * @returns Timestamp (Unix timestamp in seconds) when yield was last realized
202
+ */
203
+ getYieldLastRealizedOn(props: {
204
+ vault: IAddress;
205
+ chainId?: IChainId;
206
+ }): Promise<number>;
207
+ /**
208
+ * Get redemption requests that are ready to be claimed.
209
+ *
210
+ * For a Solana vault, `wallet` is the holder's base58 address and the result
211
+ * lists their withdrawal-queue requests: waiting (`AWAITING_COOLDOWN`) and
212
+ * past-window (`EXPIRED`, cancel-only) ones in `availableRedemptions`, and
213
+ * claimable ones (`READY_TO_CLAIM`) in `pendingRedemptions`, each with
214
+ * `estimatedAssets`, the net payout at the current share price. Without a
215
+ * Solana wallet, or for a vault with no queue, both lists are empty. Solana
216
+ * RPC: the vault state, one `getAccountInfo` for the queue, and, when it
217
+ * exists, one `getProgramAccounts` and one `getMultipleAccountsInfo` (the
218
+ * vault state, share mint and payout accounts, read together).
219
+ *
220
+ * @param props - Vault address, chain ID, and optional wallet filter
221
+ * @returns Array of available redemption requests with amounts and timestamps
222
+ * @example
223
+ * ```ts
224
+ * const { availableRedemptions, pendingRedemptions } =
225
+ * await sdk.getVaultAvailableRedemptions({ vault: solanaVault, wallet: holder });
226
+ * ```
227
+ */
228
+ getVaultAvailableRedemptions(props: {
229
+ vault: IAddress;
230
+ chainId?: IChainId;
231
+ wallet?: IAddress;
232
+ verbose?: boolean;
233
+ }): Promise<{
234
+ processedWithdrawals: import("./types").ISubgraphWithdrawProccessed[];
235
+ requestedWithdrawals: import("./types").ISubgraphWithdrawRequest[];
236
+ availableRedemptions: import("./types").IVaultAvailableRedemption[];
237
+ pendingRedemptions: import("./types").IVaultAvailableRedemption[];
238
+ }>;
239
+ /**
240
+ * Get historical redemption requests for a vault (settled, cancelled,
241
+ * pending-but-out-of-window), optionally filtered to one wallet.
242
+ *
243
+ * @param props - Vault address, chain ID, optional wallet, and an
244
+ * optional `lookbackBlocks` for how far back to scan.
245
+ * @returns Historical redemption records, newest first.
246
+ */
247
+ getVaultRedemptionHistory(props: {
248
+ vault: IAddress;
249
+ chainId?: IChainId;
250
+ wallet?: IAddress;
251
+ lookbackBlocks?: number;
252
+ }): Promise<import("./types").IVaultRedemptionHistoryItem[]>;
253
+ /**
254
+ * Get user positions across vaults including shares and claimable redemptions.
255
+ * Supports both EVM and Solana vaults.
256
+ * @param props - Wallet address, chain ID, and optional vault filter
257
+ * @returns Array of positions with balances and pending redemptions
258
+ * @throws {@link UpshiftValidationError} (`INVALID_ADDRESS`) when `suiWallet`
259
+ * is not a Sui address.
260
+ */
261
+ getVaultPositions(props: {
262
+ vault?: IAddress;
263
+ wallet?: IAddress;
264
+ chainId?: IChainId;
265
+ showAllVaults?: boolean;
266
+ solanaWallet?: string;
267
+ stellarWallet?: string;
268
+ /**
269
+ * Sui wallet address (`0x` + 64 hex chars). Validated now; Sui positions
270
+ * are not read yet, so passing it does not add Sui vaults to the result.
271
+ */
272
+ suiWallet?: string;
273
+ options?: IVaultBaseOptions;
274
+ }): Promise<import("./types").IVaultPosition[]>;
275
+ /**
276
+ * Get user's historical vault interactions including deposits and withdrawals.
277
+ * @param props - Wallet address and optional vault/chain filters
278
+ * @returns Array of historical transactions with amounts and timestamps
279
+ */
280
+ getVaultUserHistory(props: {
281
+ wallet: IAddress;
282
+ chainId?: IChainId;
283
+ vault?: IAddress;
284
+ options?: IVaultBaseOptions;
285
+ }): Promise<import("./types").IVaultUserHistoryItem[]>;
286
+ /**
287
+ * Get user's vault share transfer history from subgraph.
288
+ * @param props - Wallet address and optional vault/chain filters
289
+ * @returns Array of transfer events
290
+ */
291
+ getVaultUserTransfers(props: {
292
+ wallet: IAddress;
293
+ chainId?: IChainId;
294
+ vault?: IAddress;
295
+ options?: IVaultBaseOptions;
296
+ }): Promise<{
297
+ id: string;
298
+ value: string;
299
+ to: string;
300
+ from: string;
301
+ pool: string;
302
+ block: number;
303
+ timestamp: number;
304
+ transactionHash: string;
305
+ }[]>;
306
+ /**
307
+ * Get a vault's deposit/withdrawal activity across every participant.
308
+ *
309
+ * The vault-wide counterpart to {@link UpshiftSDK.getVaultUserHistory} — use
310
+ * it to answer flow questions ("how many deposits in the last 7 days", "net
311
+ * flow this week") that point-in-time TVL cannot. Reads from the Goldsky
312
+ * subgraph, paginated so busy vaults are not truncated; a `sinceTs` window
313
+ * keeps short lookbacks cheap.
314
+ * @param props - Vault address, optional chain id, optional `sinceTs`/`untilTs`
315
+ * Unix-second bounds, and an optional `types` filter.
316
+ * @returns Array of activity items (oldest-first) with normalized amounts,
317
+ * actor addresses, event type, and transaction hashes.
318
+ * @throws If `vault` is not a valid address or no chain id can be resolved.
319
+ * @example
320
+ * ```ts
321
+ * const weekAgo = Math.floor(Date.now() / 1000) - 7 * 86_400;
322
+ * const items = await sdk.getVaultActivity({ vault, chainId: 143, sinceTs: weekAgo });
323
+ * ```
324
+ */
325
+ getVaultActivity(props: {
326
+ vault: IAddress;
327
+ chainId?: IChainId;
328
+ sinceTs?: number;
329
+ untilTs?: number;
330
+ types?: ('withdraw-request' | 'deposit' | 'withdraw-processed' | 'redeem')[];
331
+ }): Promise<import("./types").IVaultUserHistoryItem[]>;
332
+ /**
333
+ * Resolve the ERC-20 tokens currently whitelisted for the `SwapRouter` on a
334
+ * chain — the any-token set a deposit UI can offer as swap-and-deposit inputs.
335
+ *
336
+ * Delegates to {@link UpshiftVaults.getSwapRouterWhitelistedTokens}, which
337
+ * reconstructs the set from the router's `TokenEnabled` events and verifies
338
+ * each against the on-chain `whitelistedTokens` mapping (not enumerable).
339
+ * Returns `[]` when no router is deployed on `chainId` or no provider is
340
+ * configured for it.
341
+ *
342
+ * @param chainId - EVM chain ID to resolve the allowlist for.
343
+ * @param options - Optional `fromBlock` to override the deploy-block scan floor.
344
+ * @returns Checksummed whitelisted token addresses; `[]` when unavailable.
345
+ * @throws UpshiftSDKError when an `eth_getLogs` scan chunk fails.
346
+ * @example
347
+ * ```ts
348
+ * const tokens = await upshiftSdk.getSwapRouterWhitelistedTokens(1);
349
+ * ```
350
+ */
351
+ getSwapRouterWhitelistedTokens(chainId: number, options?: {
352
+ fromBlock?: number;
353
+ }): Promise<IAddress[]>;
354
+ /**
355
+ * Resolve the vaults that offer the any-token `SwapRouter` deposit surface
356
+ * (swap tokens) on a chain — every vault the Upshift API marks
357
+ * `swaps_enabled`.
358
+ *
359
+ * Delegates to {@link UpshiftVaults.getSwapRouterEligibleVaults}. Returns
360
+ * `[]` when no router is deployed on `chainId`. App-level policy (e.g.
361
+ * OVault exclusions) remains the caller's responsibility.
362
+ *
363
+ * @param chainId - EVM chain ID to resolve eligible vaults for.
364
+ * @param options - Kept for compatibility; `fromBlock` is no longer read.
365
+ * @returns Checksummed `swaps_enabled` vault addresses; `[]` when unavailable.
366
+ * @throws When the Upshift API vault-list request fails.
367
+ * @example
368
+ * ```ts
369
+ * const vaults = await upshiftSdk.getSwapRouterEligibleVaults(1);
370
+ * ```
371
+ */
372
+ getSwapRouterEligibleVaults(chainId: number, options?: {
373
+ fromBlock?: number;
374
+ }): Promise<IAddress[]>;
375
+ /**
376
+ * Read a SwapRouter origin code's on-chain registration (registered, fee in
377
+ * bps, collector). Delegates to {@link UpshiftVaults.getOriginInfo}.
378
+ * @param options - `chainId` and the `bytes32` `originCode` to look up.
379
+ * @returns `{ registered, originFeeBps, collector }`.
380
+ * @throws UpshiftValidationError when no provider is configured for `chainId`
381
+ * or `originCode` is malformed.
382
+ * @example
383
+ * ```ts
384
+ * const { registered } = await upshiftSdk.getOriginInfo({ chainId: 1, originCode });
385
+ * ```
386
+ */
387
+ getOriginInfo(options: {
388
+ chainId: number;
389
+ originCode: `0x${string}`;
390
+ }): Promise<import("./types").IOriginInfo>;
391
+ /**
392
+ * Get lifetime PnL for a user in a specific vault.
393
+ * Calculates realized and unrealized PnL based on deposit/withdrawal history and current position.
394
+ * @param props - Vault address, wallet address, and optional chain ID
395
+ * @returns Lifetime PnL data including realized and unrealized PnL in both native token and USD
396
+ * @throws {@link UpshiftHistoryUnavailableError} (`HISTORY_UNAVAILABLE`) when a
397
+ * live position has no indexed deposits, withdrawals or priceable share
398
+ * transfers.
399
+ * @throws {@link UpshiftPriceUnavailableError} (`PRICE_UNAVAILABLE`) when the
400
+ * vault's underlying asset has no USD price — the USD fields are never
401
+ * computed from a stand-in price.
402
+ */
403
+ getVaultUserLifetimePnl(props: {
404
+ vault: IAddress;
405
+ wallet: IAddress;
406
+ chainId?: IChainId;
407
+ }): Promise<import("./types").IVaultUserLifetimePnl>;
408
+ /**
409
+ * Get PnL for a vault (vault-level, not user-specific).
410
+ * Returns the vault's overall profit and loss across all users.
411
+ * @param props - Vault address and optional chain ID
412
+ * @returns Vault PnL in USD and notional value
413
+ */
414
+ getVaultPnl(props: {
415
+ vault: IAddress;
416
+ chainId?: IChainId;
417
+ }): Promise<import("./types").IVaultPnl>;
418
+ /**
419
+ * Get user's staking positions for vault receipt tokens.
420
+ * @param props - Wallet address and optional chain ID
421
+ * @returns Array of staking positions with rewards
422
+ */
423
+ getVaultStakingPositions(props: {
424
+ wallet?: IAddress;
425
+ chainId?: IChainId;
426
+ }): Promise<import("./types").IActiveStakingPosition[]>;
427
+ /**
428
+ * Get the borrower's health factor by vault.
429
+ *
430
+ * Pass `vault` whenever the caller knows which pool it cares about — it
431
+ * skips the all-vaults cross-chain fanout and only reads the loans for
432
+ * that one pool. The response map is keyed by **lowercased** vault
433
+ * address; look entries up with `address.toLowerCase()`.
434
+ *
435
+ * @param props.chainId Optional chain to scope the read to.
436
+ * @param props.vault Optional vault address. When provided alongside
437
+ * `chainId`, only that vault's borrower-health-factor data is fetched.
438
+ * @returns Object containing the borrower's health factor by vault.
439
+ */
440
+ getVaultBorrowerHealthFactor(props?: {
441
+ chainId?: IChainId;
442
+ vault?: IAddress;
443
+ }): Promise<Record<string, import("./types").IVaultBorrowerHealthFactor[]> | Record<string, import("./types").IVaultBorrowerHealthFactor[]>[]>;
444
+ /**
445
+ * Get user points from the backend API.
446
+ * This fetches processed points data directly from the backend,
447
+ * removing the need for client-side points calculation.
448
+ * @param userAddress - User wallet address
449
+ * @returns Points data from the backend API
450
+ */
451
+ getUserPoints(userAddress: IAddress): Promise<any>;
452
+ /**
453
+ * Register a user for the points program, authenticated by a wallet signature.
454
+ *
455
+ * The caller produces a personal_sign signature over a canonical message
456
+ * containing the user address, referrer (or `"none"`), chain, nonce, and
457
+ * expiry — see `UpshiftVaults.registerUserForPoints` for the exact template.
458
+ *
459
+ * @param userAddress - EVM wallet address being registered.
460
+ * @param referrerAddress - Optional EVM referrer address.
461
+ * @param chainId - Chain on which the wallet signed; powers the EIP-1271
462
+ * fallback for smart-contract wallets and pins the signature cross-chain.
463
+ * @param signature - 0x-prefixed personal_sign signature over the canonical message.
464
+ * @param nonce - Single-use random string (8–128 chars).
465
+ * @param expiry - Unix seconds; must be in the future, within the backend's TTL.
466
+ * @returns Raw `Response` from the backend.
467
+ */
468
+ registerUserForPoints(userAddress: IAddress, referrerAddress: IAddress | undefined, chainId: number, signature: string, nonce: string, expiry: number): Promise<Response>;
469
+ /**
470
+ * Fetch the points leaderboard data.
471
+ * @param params - Optional parameters for pagination and sorting
472
+ * @returns Leaderboard response data
473
+ */
474
+ fetchPointsLeaderboard(params?: {
475
+ page?: number;
476
+ perPage?: number;
477
+ sortBy?: 'streakDays' | 'totalPoints';
478
+ }): Promise<any>;
479
+ /**
480
+ * Fetch the historical unrealized-PnL series for a vault, newest first.
481
+ * Delegates to {@link UpshiftApi.getVaultUnrealizedPnlHistory} — see it for
482
+ * parameter semantics and thrown errors.
483
+ */
484
+ getVaultUnrealizedPnlHistory(params: {
485
+ vault: string;
486
+ limit?: number;
487
+ }): Promise<import("./types").IUnrealizedPnlSnapshot[]>;
488
+ /**
489
+ * Fetch the latest unrealized-PnL snapshot for every tracked vault.
490
+ * Delegates to {@link UpshiftApi.getLatestUnrealizedPnl} — see it for
491
+ * return shape and thrown errors.
492
+ */
493
+ getLatestUnrealizedPnl(): Promise<import("./types").IUnrealizedPnlSnapshot[]>;
494
+ /**
495
+ * Get annualized APY metrics for a vault.
496
+ *
497
+ * Supported Vaults: cUSDO, tETH, wstETH, rsETH
498
+ *
499
+ * @deprecated The `hgETH30dLiquidAPY` and `hgETH7dLiquidAPY` response fields are deprecated.
500
+ * These fields will be removed in the next major release.
501
+ * Use `liquidAPY30Day` and `liquidAPY7Day` fields instead.
502
+ *
503
+ * @param props - Vault address
504
+ * @returns Annualized APY data including liquidity APY
505
+ */
506
+ getVaultAnnualizedApy(props: {
507
+ vault: IAddress;
508
+ }): Promise<import("./types").IVaultAnnualizedApy>;
509
+ /**
510
+ * Get summary data for a vault (name, type, chain, recent returns).
511
+ * @param props - Vault address
512
+ * @returns Vault summary data
513
+ */
514
+ getVaultSummary(props: {
515
+ vault: IAddress;
516
+ }): Promise<import("./types").IVaultSummary>;
517
+ /**
518
+ * Get withdrawal summary and pending queue for a vault.
519
+ * @param props - Vault address and optional chain ID
520
+ * @returns Withdrawal summary and pending queue
521
+ */
522
+ getVaultWithdrawals(props: {
523
+ vault: IAddress;
524
+ chainId?: IChainId;
525
+ }): Promise<import("./types").IVaultWithdrawals>;
526
+ /**
527
+ * Preview the amount of assets that would be received for redeeming shares (queued redemption).
528
+ * @param props - Vault contract address, shares amount, and optional chain ID
529
+ * @returns The amount of assets as {@link INormalizedNumber}
530
+ */
531
+ previewRedemption(props: {
532
+ vault: IAddress;
533
+ sharesAmount: string | bigint | number;
534
+ chainId?: IChainId;
535
+ }): Promise<import("./types").INormalizedNumber>;
536
+ /**
537
+ * Query LayerZero USDC deposits from the august-layerzero subgraphs.
538
+ * Returns all deposits or filters by sender wallet address if provided.
539
+ *
540
+ * **Important Notes:**
541
+ * - Only deposit transactions are tracked (not withdrawals or other operations)
542
+ * - Sender and recipient addresses are stored in bytes32 format in the subgraph
543
+ * - Timestamps are available from the subgraph
544
+ *
545
+ * **Supported Vaults:**
546
+ * - `upusdc`: 0x80E1048eDE66ec4c364b4F22C8768fc657FF6A42
547
+ * - `coreusdc`: 0xE9B725010A9E419412ed67d0fA5f3A5f40159D32
548
+ * - `earnausd`: 0x36eDbF0C834591BFdfCaC0Ef9605528c75c406aA
549
+ *
550
+ * @param props - Receipt token type ('upusdc', 'coreusdc', or 'earnausd') and optional wallet address to filter by sender
551
+ * @returns Array of deposit events with the following structure:
552
+ * - `assetAmt`: Amount of assets deposited (as string)
553
+ * - `shareAmt`: Amount of shares received (as string)
554
+ * - `sender`: Sender address in bytes32 format
555
+ * - `recipient`: Recipient address in bytes32 format
556
+ * - `dstEid`: Destination endpoint ID (LayerZero chain identifier)
557
+ * - `transactionHash_`: Transaction hash
558
+ *
559
+ * @throws Error if receipt token is invalid or GraphQL request fails
560
+ *
561
+ * @example
562
+ * ```typescript
563
+ * // Get all coreUSDC deposits
564
+ * const allDeposits = await sdk.getLayerZeroDeposits({
565
+ * receiptToken: 'coreusdc'
566
+ * });
567
+ *
568
+ * // Get deposits for a specific wallet
569
+ * const userDeposits = await sdk.getLayerZeroDeposits({
570
+ * receiptToken: 'upusdc',
571
+ * wallet: '0xb0280B58F541131b29D1B33319CD440a99eA0305'
572
+ * });
573
+ * ```
574
+ */
575
+ getLayerZeroDeposits(props: {
576
+ receiptToken: 'upusdc' | 'coreusdc' | 'earnausd';
577
+ wallet?: IAddress;
578
+ }): Promise<import("./services/layerzero/deposits").ILayerZeroDeposit[]>;
579
+ /**
580
+ * Get LayerZero redeems for earnAUSD vault
581
+ *
582
+ * @example
583
+ * ```typescript
584
+ * // Get all earnAUSD redeems
585
+ * const allRedeems = await sdk.getLayerZeroRedeems();
586
+ *
587
+ * // Get redeems for a specific wallet
588
+ * const userRedeems = await sdk.getLayerZeroRedeems({
589
+ * wallet: '0x2de1DCB8EaAd40fAd327fa3eE3F48774b8e20649'
590
+ * });
591
+ * ```
592
+ */
593
+ getLayerZeroRedeems(props?: {
594
+ wallet?: IAddress;
595
+ }): Promise<import("./services/layerzero/redeems").ILayerZeroRedeem[]>;
596
+ }