@sodax/sdk 0.0.1-rc.6 → 0.0.1-rc.8

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 (303) hide show
  1. package/README.md +3 -1
  2. package/dist/index.cjs +11147 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +6831 -0
  5. package/dist/index.d.ts +6830 -9
  6. package/dist/index.mjs +10991 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +20 -6
  9. package/dist/abis/asset-manager.abi.d.ts +0 -418
  10. package/dist/abis/asset-manager.abi.d.ts.map +0 -1
  11. package/dist/abis/asset-manager.abi.js +0 -542
  12. package/dist/abis/asset-manager.abi.js.map +0 -1
  13. package/dist/abis/connection.abi.d.ts +0 -72
  14. package/dist/abis/connection.abi.d.ts.map +0 -1
  15. package/dist/abis/connection.abi.js +0 -92
  16. package/dist/abis/connection.abi.js.map +0 -1
  17. package/dist/abis/erc20.abi.d.ts +0 -236
  18. package/dist/abis/erc20.abi.d.ts.map +0 -1
  19. package/dist/abis/erc20.abi.js +0 -311
  20. package/dist/abis/erc20.abi.js.map +0 -1
  21. package/dist/abis/index.d.ts +0 -10
  22. package/dist/abis/index.d.ts.map +0 -1
  23. package/dist/abis/index.js +0 -10
  24. package/dist/abis/index.js.map +0 -1
  25. package/dist/abis/intents.abi.d.ts +0 -901
  26. package/dist/abis/intents.abi.d.ts.map +0 -1
  27. package/dist/abis/intents.abi.js +0 -1158
  28. package/dist/abis/intents.abi.js.map +0 -1
  29. package/dist/abis/pool.abi.d.ts +0 -626
  30. package/dist/abis/pool.abi.d.ts.map +0 -1
  31. package/dist/abis/pool.abi.js +0 -812
  32. package/dist/abis/pool.abi.js.map +0 -1
  33. package/dist/abis/spokeAssetManager.abi.d.ts +0 -169
  34. package/dist/abis/spokeAssetManager.abi.d.ts.map +0 -1
  35. package/dist/abis/spokeAssetManager.abi.js +0 -217
  36. package/dist/abis/spokeAssetManager.abi.js.map +0 -1
  37. package/dist/abis/uiPoolData.abi.d.ts +0 -369
  38. package/dist/abis/uiPoolData.abi.d.ts.map +0 -1
  39. package/dist/abis/uiPoolData.abi.js +0 -476
  40. package/dist/abis/uiPoolData.abi.js.map +0 -1
  41. package/dist/abis/vaultToken.abi.d.ts +0 -816
  42. package/dist/abis/vaultToken.abi.d.ts.map +0 -1
  43. package/dist/abis/vaultToken.abi.js +0 -1062
  44. package/dist/abis/vaultToken.abi.js.map +0 -1
  45. package/dist/abis/walletFactory.abi.d.ts +0 -20
  46. package/dist/abis/walletFactory.abi.d.ts.map +0 -1
  47. package/dist/abis/walletFactory.abi.js +0 -27
  48. package/dist/abis/walletFactory.abi.js.map +0 -1
  49. package/dist/constants.d.ts +0 -550
  50. package/dist/constants.d.ts.map +0 -1
  51. package/dist/constants.js +0 -1196
  52. package/dist/constants.js.map +0 -1
  53. package/dist/constants.test.d.ts +0 -2
  54. package/dist/constants.test.d.ts.map +0 -1
  55. package/dist/constants.test.js +0 -129
  56. package/dist/constants.test.js.map +0 -1
  57. package/dist/entities/Providers.d.ts +0 -54
  58. package/dist/entities/Providers.d.ts.map +0 -1
  59. package/dist/entities/Providers.js +0 -51
  60. package/dist/entities/Providers.js.map +0 -1
  61. package/dist/entities/Sodax.d.ts +0 -23
  62. package/dist/entities/Sodax.d.ts.map +0 -1
  63. package/dist/entities/Sodax.js +0 -29
  64. package/dist/entities/Sodax.js.map +0 -1
  65. package/dist/entities/Sodax.test.d.ts +0 -2
  66. package/dist/entities/Sodax.test.d.ts.map +0 -1
  67. package/dist/entities/Sodax.test.js +0 -392
  68. package/dist/entities/Sodax.test.js.map +0 -1
  69. package/dist/entities/cosmos/CW20Token.d.ts +0 -39
  70. package/dist/entities/cosmos/CW20Token.d.ts.map +0 -1
  71. package/dist/entities/cosmos/CW20Token.js +0 -65
  72. package/dist/entities/cosmos/CW20Token.js.map +0 -1
  73. package/dist/entities/cosmos/CWSpokeProvider.d.ts +0 -92
  74. package/dist/entities/cosmos/CWSpokeProvider.d.ts.map +0 -1
  75. package/dist/entities/cosmos/CWSpokeProvider.js +0 -143
  76. package/dist/entities/cosmos/CWSpokeProvider.js.map +0 -1
  77. package/dist/entities/cosmos/CosmosWalletProvider.d.ts +0 -28
  78. package/dist/entities/cosmos/CosmosWalletProvider.d.ts.map +0 -1
  79. package/dist/entities/cosmos/CosmosWalletProvider.js +0 -102
  80. package/dist/entities/cosmos/CosmosWalletProvider.js.map +0 -1
  81. package/dist/entities/cosmos/InjectiveWalletProvider.d.ts +0 -25
  82. package/dist/entities/cosmos/InjectiveWalletProvider.d.ts.map +0 -1
  83. package/dist/entities/cosmos/InjectiveWalletProvider.js +0 -76
  84. package/dist/entities/cosmos/InjectiveWalletProvider.js.map +0 -1
  85. package/dist/entities/icon/HanaWalletConnector.d.ts +0 -36
  86. package/dist/entities/icon/HanaWalletConnector.d.ts.map +0 -1
  87. package/dist/entities/icon/HanaWalletConnector.js +0 -92
  88. package/dist/entities/icon/HanaWalletConnector.js.map +0 -1
  89. package/dist/entities/icon/IconSpokeProvider.d.ts +0 -10
  90. package/dist/entities/icon/IconSpokeProvider.d.ts.map +0 -1
  91. package/dist/entities/icon/IconSpokeProvider.js +0 -12
  92. package/dist/entities/icon/IconSpokeProvider.js.map +0 -1
  93. package/dist/entities/icon/index.d.ts +0 -4
  94. package/dist/entities/icon/index.d.ts.map +0 -1
  95. package/dist/entities/icon/index.js +0 -4
  96. package/dist/entities/icon/index.js.map +0 -1
  97. package/dist/entities/icon/utils.d.ts +0 -3
  98. package/dist/entities/icon/utils.d.ts.map +0 -1
  99. package/dist/entities/icon/utils.js +0 -4
  100. package/dist/entities/icon/utils.js.map +0 -1
  101. package/dist/entities/index.d.ts +0 -7
  102. package/dist/entities/index.d.ts.map +0 -1
  103. package/dist/entities/index.js +0 -7
  104. package/dist/entities/index.js.map +0 -1
  105. package/dist/entities/solana/Configs.d.ts +0 -38
  106. package/dist/entities/solana/Configs.d.ts.map +0 -1
  107. package/dist/entities/solana/Configs.js +0 -149
  108. package/dist/entities/solana/Configs.js.map +0 -1
  109. package/dist/entities/solana/SolanaSpokeProvider.d.ts +0 -9
  110. package/dist/entities/solana/SolanaSpokeProvider.d.ts.map +0 -1
  111. package/dist/entities/solana/SolanaSpokeProvider.js +0 -9
  112. package/dist/entities/solana/SolanaSpokeProvider.js.map +0 -1
  113. package/dist/entities/solana/SolanaWalletProvider.d.ts +0 -20
  114. package/dist/entities/solana/SolanaWalletProvider.d.ts.map +0 -1
  115. package/dist/entities/solana/SolanaWalletProvider.js +0 -53
  116. package/dist/entities/solana/SolanaWalletProvider.js.map +0 -1
  117. package/dist/entities/solana/index.d.ts +0 -4
  118. package/dist/entities/solana/index.d.ts.map +0 -1
  119. package/dist/entities/solana/index.js +0 -4
  120. package/dist/entities/solana/index.js.map +0 -1
  121. package/dist/entities/solana/pda/pda.d.ts +0 -45
  122. package/dist/entities/solana/pda/pda.d.ts.map +0 -1
  123. package/dist/entities/solana/pda/pda.js +0 -44
  124. package/dist/entities/solana/pda/pda.js.map +0 -1
  125. package/dist/entities/solana/types/asset_manager.d.ts +0 -919
  126. package/dist/entities/solana/types/asset_manager.d.ts.map +0 -1
  127. package/dist/entities/solana/types/asset_manager.js +0 -2
  128. package/dist/entities/solana/types/asset_manager.js.map +0 -1
  129. package/dist/entities/solana/types/connection.d.ts +0 -446
  130. package/dist/entities/solana/types/connection.d.ts.map +0 -1
  131. package/dist/entities/solana/types/connection.js +0 -2
  132. package/dist/entities/solana/types/connection.js.map +0 -1
  133. package/dist/entities/solana/types/rate_limit_contract.d.ts +0 -348
  134. package/dist/entities/solana/types/rate_limit_contract.d.ts.map +0 -1
  135. package/dist/entities/solana/types/rate_limit_contract.js +0 -2
  136. package/dist/entities/solana/types/rate_limit_contract.js.map +0 -1
  137. package/dist/entities/solana/utils/utils.d.ts +0 -6
  138. package/dist/entities/solana/utils/utils.d.ts.map +0 -1
  139. package/dist/entities/solana/utils/utils.js +0 -18
  140. package/dist/entities/solana/utils/utils.js.map +0 -1
  141. package/dist/entities/stellar/StellarSpokeProvider.d.ts +0 -17
  142. package/dist/entities/stellar/StellarSpokeProvider.d.ts.map +0 -1
  143. package/dist/entities/stellar/StellarSpokeProvider.js +0 -125
  144. package/dist/entities/stellar/StellarSpokeProvider.js.map +0 -1
  145. package/dist/entities/sui/SuiSpokeProvider.d.ts +0 -35
  146. package/dist/entities/sui/SuiSpokeProvider.d.ts.map +0 -1
  147. package/dist/entities/sui/SuiSpokeProvider.js +0 -145
  148. package/dist/entities/sui/SuiSpokeProvider.js.map +0 -1
  149. package/dist/errors.d.ts +0 -2
  150. package/dist/errors.d.ts.map +0 -1
  151. package/dist/errors.js +0 -2
  152. package/dist/errors.js.map +0 -1
  153. package/dist/guards.d.ts +0 -25
  154. package/dist/guards.d.ts.map +0 -1
  155. package/dist/guards.js +0 -110
  156. package/dist/guards.js.map +0 -1
  157. package/dist/index.d.ts.map +0 -1
  158. package/dist/index.js +0 -10
  159. package/dist/index.js.map +0 -1
  160. package/dist/services/hub/EvmAssetManagerService.d.ts +0 -61
  161. package/dist/services/hub/EvmAssetManagerService.d.ts.map +0 -1
  162. package/dist/services/hub/EvmAssetManagerService.js +0 -103
  163. package/dist/services/hub/EvmAssetManagerService.js.map +0 -1
  164. package/dist/services/hub/EvmVaultTokenService.d.ts +0 -81
  165. package/dist/services/hub/EvmVaultTokenService.d.ts.map +0 -1
  166. package/dist/services/hub/EvmVaultTokenService.js +0 -161
  167. package/dist/services/hub/EvmVaultTokenService.js.map +0 -1
  168. package/dist/services/hub/EvmWalletAbstraction.d.ts +0 -9
  169. package/dist/services/hub/EvmWalletAbstraction.d.ts.map +0 -1
  170. package/dist/services/hub/EvmWalletAbstraction.js +0 -14
  171. package/dist/services/hub/EvmWalletAbstraction.js.map +0 -1
  172. package/dist/services/hub/index.d.ts +0 -4
  173. package/dist/services/hub/index.d.ts.map +0 -1
  174. package/dist/services/hub/index.js +0 -4
  175. package/dist/services/hub/index.js.map +0 -1
  176. package/dist/services/index.d.ts +0 -7
  177. package/dist/services/index.d.ts.map +0 -1
  178. package/dist/services/index.js +0 -7
  179. package/dist/services/index.js.map +0 -1
  180. package/dist/services/intentRelay/IntentRelayApiService.d.ts +0 -112
  181. package/dist/services/intentRelay/IntentRelayApiService.d.ts.map +0 -1
  182. package/dist/services/intentRelay/IntentRelayApiService.js +0 -160
  183. package/dist/services/intentRelay/IntentRelayApiService.js.map +0 -1
  184. package/dist/services/intentRelay/IntentRelayApiService.test.d.ts +0 -2
  185. package/dist/services/intentRelay/IntentRelayApiService.test.d.ts.map +0 -1
  186. package/dist/services/intentRelay/IntentRelayApiService.test.js +0 -134
  187. package/dist/services/intentRelay/IntentRelayApiService.test.js.map +0 -1
  188. package/dist/services/intentRelay/index.d.ts +0 -2
  189. package/dist/services/intentRelay/index.d.ts.map +0 -1
  190. package/dist/services/intentRelay/index.js +0 -2
  191. package/dist/services/intentRelay/index.js.map +0 -1
  192. package/dist/services/moneyMarket/MoneyMarketService.d.ts +0 -525
  193. package/dist/services/moneyMarket/MoneyMarketService.d.ts.map +0 -1
  194. package/dist/services/moneyMarket/MoneyMarketService.js +0 -814
  195. package/dist/services/moneyMarket/MoneyMarketService.js.map +0 -1
  196. package/dist/services/moneyMarket/MoneyMarketService.test.d.ts +0 -2
  197. package/dist/services/moneyMarket/MoneyMarketService.test.d.ts.map +0 -1
  198. package/dist/services/moneyMarket/MoneyMarketService.test.js +0 -262
  199. package/dist/services/moneyMarket/MoneyMarketService.test.js.map +0 -1
  200. package/dist/services/moneyMarket/index.d.ts +0 -2
  201. package/dist/services/moneyMarket/index.d.ts.map +0 -1
  202. package/dist/services/moneyMarket/index.js +0 -2
  203. package/dist/services/moneyMarket/index.js.map +0 -1
  204. package/dist/services/shared/Erc20Service.d.ts +0 -42
  205. package/dist/services/shared/Erc20Service.d.ts.map +0 -1
  206. package/dist/services/shared/Erc20Service.js +0 -108
  207. package/dist/services/shared/Erc20Service.js.map +0 -1
  208. package/dist/services/shared/index.d.ts +0 -2
  209. package/dist/services/shared/index.d.ts.map +0 -1
  210. package/dist/services/shared/index.js +0 -2
  211. package/dist/services/shared/index.js.map +0 -1
  212. package/dist/services/solver/EvmSolverService.d.ts +0 -125
  213. package/dist/services/solver/EvmSolverService.d.ts.map +0 -1
  214. package/dist/services/solver/EvmSolverService.js +0 -166
  215. package/dist/services/solver/EvmSolverService.js.map +0 -1
  216. package/dist/services/solver/SolverApiService.d.ts +0 -40
  217. package/dist/services/solver/SolverApiService.d.ts.map +0 -1
  218. package/dist/services/solver/SolverApiService.js +0 -157
  219. package/dist/services/solver/SolverApiService.js.map +0 -1
  220. package/dist/services/solver/SolverApiService.test.d.ts +0 -2
  221. package/dist/services/solver/SolverApiService.test.d.ts.map +0 -1
  222. package/dist/services/solver/SolverApiService.test.js +0 -181
  223. package/dist/services/solver/SolverApiService.test.js.map +0 -1
  224. package/dist/services/solver/SolverService.d.ts +0 -295
  225. package/dist/services/solver/SolverService.d.ts.map +0 -1
  226. package/dist/services/solver/SolverService.js +0 -429
  227. package/dist/services/solver/SolverService.js.map +0 -1
  228. package/dist/services/solver/SolverService.test.d.ts +0 -2
  229. package/dist/services/solver/SolverService.test.d.ts.map +0 -1
  230. package/dist/services/solver/SolverService.test.js +0 -439
  231. package/dist/services/solver/SolverService.test.js.map +0 -1
  232. package/dist/services/solver/index.d.ts +0 -3
  233. package/dist/services/solver/index.d.ts.map +0 -1
  234. package/dist/services/solver/index.js +0 -3
  235. package/dist/services/solver/index.js.map +0 -1
  236. package/dist/services/spoke/CWSpokeService.d.ts +0 -67
  237. package/dist/services/spoke/CWSpokeService.d.ts.map +0 -1
  238. package/dist/services/spoke/CWSpokeService.js +0 -75
  239. package/dist/services/spoke/CWSpokeService.js.map +0 -1
  240. package/dist/services/spoke/EvmSpokeService.d.ts +0 -62
  241. package/dist/services/spoke/EvmSpokeService.d.ts.map +0 -1
  242. package/dist/services/spoke/EvmSpokeService.js +0 -120
  243. package/dist/services/spoke/EvmSpokeService.js.map +0 -1
  244. package/dist/services/spoke/IconSpokeService.d.ts +0 -56
  245. package/dist/services/spoke/IconSpokeService.d.ts.map +0 -1
  246. package/dist/services/spoke/IconSpokeService.js +0 -124
  247. package/dist/services/spoke/IconSpokeService.js.map +0 -1
  248. package/dist/services/spoke/SolanaSpokeService.d.ts +0 -46
  249. package/dist/services/spoke/SolanaSpokeService.d.ts.map +0 -1
  250. package/dist/services/spoke/SolanaSpokeService.js +0 -156
  251. package/dist/services/spoke/SolanaSpokeService.js.map +0 -1
  252. package/dist/services/spoke/SpokeService.d.ts +0 -34
  253. package/dist/services/spoke/SpokeService.d.ts.map +0 -1
  254. package/dist/services/spoke/SpokeService.js +0 -101
  255. package/dist/services/spoke/SpokeService.js.map +0 -1
  256. package/dist/services/spoke/StellarSpokeService.d.ts +0 -35
  257. package/dist/services/spoke/StellarSpokeService.d.ts.map +0 -1
  258. package/dist/services/spoke/StellarSpokeService.js +0 -39
  259. package/dist/services/spoke/StellarSpokeService.js.map +0 -1
  260. package/dist/services/spoke/SuiSpokeService.d.ts +0 -69
  261. package/dist/services/spoke/SuiSpokeService.d.ts.map +0 -1
  262. package/dist/services/spoke/SuiSpokeService.js +0 -73
  263. package/dist/services/spoke/SuiSpokeService.js.map +0 -1
  264. package/dist/services/spoke/index.d.ts +0 -3
  265. package/dist/services/spoke/index.d.ts.map +0 -1
  266. package/dist/services/spoke/index.js +0 -3
  267. package/dist/services/spoke/index.js.map +0 -1
  268. package/dist/tests/services/hub/EvmAssetManagerService.test.d.ts +0 -2
  269. package/dist/tests/services/hub/EvmAssetManagerService.test.d.ts.map +0 -1
  270. package/dist/tests/services/hub/EvmAssetManagerService.test.js +0 -138
  271. package/dist/tests/services/hub/EvmAssetManagerService.test.js.map +0 -1
  272. package/dist/tests/services/hub/EvmMoneyMarketService.test.d.ts +0 -2
  273. package/dist/tests/services/hub/EvmMoneyMarketService.test.d.ts.map +0 -1
  274. package/dist/tests/services/hub/EvmMoneyMarketService.test.js +0 -121
  275. package/dist/tests/services/hub/EvmMoneyMarketService.test.js.map +0 -1
  276. package/dist/tests/services/hub/EvmVaultTokenService.test.d.ts +0 -2
  277. package/dist/tests/services/hub/EvmVaultTokenService.test.d.ts.map +0 -1
  278. package/dist/tests/services/hub/EvmVaultTokenService.test.js +0 -98
  279. package/dist/tests/services/hub/EvmVaultTokenService.test.js.map +0 -1
  280. package/dist/tests/services/spoke/EvmSpokeService.test.d.ts +0 -2
  281. package/dist/tests/services/spoke/EvmSpokeService.test.d.ts.map +0 -1
  282. package/dist/tests/services/spoke/EvmSpokeService.test.js +0 -198
  283. package/dist/tests/services/spoke/EvmSpokeService.test.js.map +0 -1
  284. package/dist/types.d.ts +0 -352
  285. package/dist/types.d.ts.map +0 -1
  286. package/dist/types.js +0 -30
  287. package/dist/types.js.map +0 -1
  288. package/dist/utils/evm-utils.d.ts +0 -10
  289. package/dist/utils/evm-utils.d.ts.map +0 -1
  290. package/dist/utils/evm-utils.js +0 -15
  291. package/dist/utils/evm-utils.js.map +0 -1
  292. package/dist/utils/index.d.ts +0 -3
  293. package/dist/utils/index.d.ts.map +0 -1
  294. package/dist/utils/index.js +0 -3
  295. package/dist/utils/index.js.map +0 -1
  296. package/dist/utils/shared-utils.d.ts +0 -20
  297. package/dist/utils/shared-utils.d.ts.map +0 -1
  298. package/dist/utils/shared-utils.js +0 -69
  299. package/dist/utils/shared-utils.js.map +0 -1
  300. package/dist/utils/shared-utils.test.d.ts +0 -2
  301. package/dist/utils/shared-utils.test.d.ts.map +0 -1
  302. package/dist/utils/shared-utils.test.js +0 -63
  303. package/dist/utils/shared-utils.test.js.map +0 -1
@@ -1,525 +0,0 @@
1
- import { type Address, type Hex } from 'viem';
2
- import type { EvmHubProvider, SpokeProvider } from '../../entities/index.js';
3
- import { type RelayErrorCode } from '../../index.js';
4
- import type { EvmContractCall, HttpUrl, MoneyMarketConfigParams, Result, TxReturnType } from '../../types.js';
5
- import type { EvmRawTransactionReceipt } from '@sodax/types';
6
- import { type SpokeChainId, type Token } from '@sodax/types';
7
- export type AggregatedReserveData = {
8
- underlyingAsset: Address;
9
- name: string;
10
- symbol: string;
11
- decimals: bigint;
12
- baseLTVasCollateral: bigint;
13
- reserveLiquidationThreshold: bigint;
14
- reserveLiquidationBonus: bigint;
15
- reserveFactor: bigint;
16
- usageAsCollateralEnabled: boolean;
17
- borrowingEnabled: boolean;
18
- isActive: boolean;
19
- isFrozen: boolean;
20
- liquidityIndex: bigint;
21
- variableBorrowIndex: bigint;
22
- liquidityRate: bigint;
23
- variableBorrowRate: bigint;
24
- lastUpdateTimestamp: number;
25
- aTokenAddress: Address;
26
- variableDebtTokenAddress: Address;
27
- interestRateStrategyAddress: Address;
28
- availableLiquidity: bigint;
29
- totalScaledVariableDebt: bigint;
30
- priceInMarketReferenceCurrency: bigint;
31
- priceOracle: Address;
32
- variableRateSlope1: bigint;
33
- variableRateSlope2: bigint;
34
- baseVariableBorrowRate: bigint;
35
- optimalUsageRatio: bigint;
36
- isPaused: boolean;
37
- isSiloedBorrowing: boolean;
38
- accruedToTreasury: bigint;
39
- unbacked: bigint;
40
- isolationModeTotalDebt: bigint;
41
- flashLoanEnabled: boolean;
42
- debtCeiling: bigint;
43
- debtCeilingDecimals: bigint;
44
- borrowCap: bigint;
45
- supplyCap: bigint;
46
- borrowableInIsolation: boolean;
47
- virtualAccActive: boolean;
48
- virtualUnderlyingBalance: bigint;
49
- };
50
- export type BaseCurrencyInfo = {
51
- marketReferenceCurrencyUnit: bigint;
52
- marketReferenceCurrencyPriceInUsd: bigint;
53
- networkBaseTokenPriceInUsd: bigint;
54
- networkBaseTokenPriceDecimals: number;
55
- };
56
- export type UserReserveData = {
57
- underlyingAsset: string;
58
- scaledATokenBalance: bigint;
59
- usageAsCollateralEnabledOnUser: boolean;
60
- scaledVariableDebt: bigint;
61
- };
62
- export type MoneyMarketEncodeSupplyParams = {
63
- asset: Address;
64
- amount: bigint;
65
- onBehalfOf: Address;
66
- referralCode: number;
67
- };
68
- export type MoneyMarketEncodeWithdrawParams = {
69
- asset: Address;
70
- amount: bigint;
71
- to: Address;
72
- };
73
- export type MoneyMarketEncodeBorrowParams = {
74
- asset: Address;
75
- amount: bigint;
76
- interestRateMode: bigint;
77
- referralCode: number;
78
- onBehalfOf: Address;
79
- };
80
- export type MoneyMarketEncodeRepayParams = {
81
- asset: Address;
82
- amount: bigint;
83
- interestRateMode: bigint;
84
- onBehalfOf: Address;
85
- };
86
- export type MoneyMarketEncodeRepayWithATokensParams = {
87
- asset: Address;
88
- amount: bigint;
89
- interestRateMode: bigint;
90
- };
91
- export type MoneyMarketSupplyParams = {
92
- token: string;
93
- amount: bigint;
94
- };
95
- export type MoneyMarketBorrowParams = {
96
- token: string;
97
- amount: bigint;
98
- };
99
- export type MoneyMarketWithdrawParams = {
100
- token: string;
101
- amount: bigint;
102
- };
103
- export type MoneyMarketRepayParams = {
104
- token: string;
105
- amount: bigint;
106
- };
107
- export type MoneyMarketErrorCode = RelayErrorCode | 'UNKNOWN' | 'SUPPLY_FAILED' | 'BORROW_FAILED' | 'WITHDRAW_FAILED' | 'REPAY_FAILED';
108
- export type MoneyMarketError = {
109
- code: MoneyMarketErrorCode;
110
- error: unknown;
111
- };
112
- export declare class MoneyMarketService {
113
- private readonly config;
114
- private readonly hubProvider;
115
- constructor(config: MoneyMarketConfigParams | undefined, hubProvider: EvmHubProvider, relayerApiEndpoint?: HttpUrl);
116
- /**
117
- * Check if allowance is sufficient for supply or repay operations (currently required for EVM only)
118
- * @param {MoneyMarketRepayParams | MoneyMarketSupplyParams} params - Money market params containing token address and amount
119
- * @param {SpokeProvider} spokeProvider - The spoke provider instance
120
- * @return {Promise<Result<boolean>>} - Returns true if allowance is sufficient, false otherwise
121
- *
122
- * @example
123
- * const allowanceValid = await isAllowanceValid({
124
- * token: '0x...', // Address of the token (spoke chain) to supply
125
- * amount: 1000n, // Amount to supply (in token decimals)
126
- * }, spokeProvider);
127
- *
128
- * if (!allowanceValid.ok) {
129
- * // Handle error
130
- * }
131
- *
132
- * if (!allowanceValid.value) {
133
- * // Need to approve
134
- * }
135
- */
136
- isAllowanceValid<S extends SpokeProvider>(params: MoneyMarketRepayParams | MoneyMarketSupplyParams, spokeProvider: S): Promise<Result<boolean>>;
137
- /**
138
- * Approve amount spending (currently required for EVM only)
139
- * @param token - ERC20 token address
140
- * @param amount - Amount to approve
141
- * @param spender - Spender address
142
- * @param spokeProvider - Spoke provider
143
- * @returns {Promise<Result<EvmRawTransactionReceipt>>} - Returns the transaction receipt
144
- *
145
- * @example
146
- * const approveResult = await approve(
147
- * '0x...', // ERC20 token address
148
- * 1000n, // Amount to approve (in token decimals)
149
- * '0x...', // Spender address (usually the asset manager contract: spokeProvider.chainConfig.addresses.assetManager)
150
- * spokeProvider
151
- * );
152
- *
153
- * if (!approveResult.ok) {
154
- * // Handle error
155
- * }
156
- *
157
- * const txReceipt = approveResult.value;
158
- */
159
- approve<S extends SpokeProvider>(token: Address, amount: bigint, spender: Address, spokeProvider: S): Promise<Result<EvmRawTransactionReceipt>>;
160
- /**
161
- * Supply tokens to the money market pool, relay the transaction to the hub and submit the intent to the Solver API
162
- * @param params - The parameters for the supply transaction.
163
- * @param spokeProvider - The spoke provider.
164
- * @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
165
- * @returns {Promise<Result<[Hex, Hex], MoneyMarketError>>} - Returns the transaction result and the hub transaction hash or error
166
- *
167
- * @example
168
- * const result = await moneyMarketService.supplyAndSubmit(
169
- * {
170
- * token: '0x...', // Address of the token (spoke chain address) to supply
171
- * amount: 1000n, // Amount to supply (in token decimals)
172
- * },
173
- * spokeProvider,
174
- * 30000 // Optional timeout in milliseconds (default: 60000, i.e. 60 seconds)
175
- * );
176
- *
177
- * if (!result.ok) {
178
- * // Handle error
179
- * }
180
- *
181
- * const [
182
- * spokeTxHash, // transaction hash on the spoke chain
183
- * hubTxHash, // transaction hash on the hub chain (i.e. the transaction that was relayed to the hub)
184
- * ] = result.value;
185
- * console.log('Supply transaction hashes:', { spokeTxHash, hubTxHash });
186
- */
187
- supplyAndSubmit<S extends SpokeProvider>(params: MoneyMarketSupplyParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
188
- /**
189
- * Supply tokens to the money market pool without submitting the intent to the Solver API
190
- * NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
191
- * In order to successfully supply tokens, you need to:
192
- * 1. Check if the allowance is sufficient
193
- * 2. Approve the asset manager contract to spend the tokens
194
- * 3. Supply the tokens
195
- * 4. Submit the intent to the Solver API and await it using relayTxAndWaitPacket method
196
- *
197
- * @param params - The parameters for the supply transaction.
198
- * @param spokeProvider - The spoke provider.
199
- * @param raw - Whether to return the raw transaction data.
200
- * @returns {Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>} - Returns the transaction result.
201
- *
202
- * @example
203
- * const moneyMarketService = new MoneyMarketService(config);
204
- * const result = await moneyMarketService.supply(
205
- * {
206
- * token: "0x123...", // token address
207
- * amount: 1000000000000000000n // 1 token in wei
208
- * },
209
- * spokeProvider,
210
- * raw // Optional: true = return the raw transaction data, false = exeute and return the transaction hash (default: false)
211
- * );
212
- *
213
- * if (result.ok) {
214
- * const txHash = result.value;
215
- * console.log('Supply transaction hash:', txHash);
216
- * } else {
217
- * console.error('Supply failed:', result.error);
218
- * }
219
- */
220
- supply<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketSupplyParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketError>>;
221
- /**
222
- * Borrow tokens from the money market pool, relay the transaction to the hub and submit the intent to the Solver API
223
- * @param params - The parameters for the borrow transaction.
224
- * @param spokeProvider - The spoke provider.
225
- * @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
226
- * @returns {Promise<Result<[Hex, Hex], MoneyMarketError>>} - Returns the transaction result and the hub transaction hash or error
227
- *
228
- * @example
229
- * const result = await moneyMarketService.borrowAndSubmit(
230
- * {
231
- * token: '0x...', // Address of the token (spoke chain address) to borrow
232
- * amount: 1000n, // Amount to borrow (in token decimals)
233
- * },
234
- * spokeProvider,
235
- * 30000 // Optional timeout in milliseconds (default: 60000, i.e. 60 seconds)
236
- * );
237
- *
238
- * if (!result.ok) {
239
- * // Handle error
240
- * }
241
- *
242
- * const [
243
- * spokeTxHash, // transaction hash on the spoke chain
244
- * hubTxHash, // transaction hash on the hub chain (i.e. the transaction that was relayed to the hub)
245
- * ] = result.value;
246
- * console.log('Borrow transaction hashes:', { spokeTxHash, hubTxHash });
247
- */
248
- borrowAndSubmit<S extends SpokeProvider>(params: MoneyMarketSupplyParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
249
- /**
250
- * Borrow tokens from the money market pool without submitting the intent to the Solver API
251
- * NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
252
- * In order to successfully borrow tokens, you need to:
253
- * 1. Execute the borrow transaction on the spoke chain
254
- * 2. Submit the intent to the Solver API and await it using relayTxAndWaitPacket method
255
- *
256
- * @param params - The parameters for the borrow transaction.
257
- * @param spokeProvider - The spoke provider.
258
- * @param raw - Whether to return the raw transaction data.
259
- * @returns {Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>} - Returns the transaction result (raw transaction data or transaction hash).
260
- *
261
- * @example
262
- * const moneyMarketService = new MoneyMarketService(config);
263
- * const result = await moneyMarketService.borrow(
264
- * {
265
- * token: "0x123...", // token address
266
- * amount: 1000000000000000000n // 1 token in wei
267
- * },
268
- * spokeProvider,
269
- * raw // Optional: true = return the raw transaction data, false = exeute and return the transaction hash (default: false)
270
- * );
271
- *
272
- * if (result.ok) {
273
- * const txHash = result.value;
274
- * console.log('Borrow transaction hash:', txHash);
275
- * } else {
276
- * console.error('Borrow failed:', result.error);
277
- * }
278
- */
279
- borrow<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketBorrowParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
280
- /**
281
- * Withdraw tokens from the money market pool, relay the transaction to the hub and submit the intent to the Solver API
282
- *
283
- * @param params - The parameters for the withdraw transaction.
284
- * @param spokeProvider - The spoke provider.
285
- * @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
286
- * @returns {Promise<Result<[Hex, Hex], MoneyMarketError>>} - Returns the transaction result and the hub transaction hash or error
287
- *
288
- * @example
289
- * const result = await moneyMarketService.withdrawAndSubmit(
290
- * {
291
- * token: '0x...', // Address of the token (spoke chain address) to withdraw
292
- * amount: 1000n, // Amount to withdraw (in token decimals)
293
- * },
294
- * spokeProvider,
295
- * 30000 // Optional timeout in milliseconds (default: 60000, i.e. 60 seconds)
296
- * );
297
- *
298
- * if (!result.ok) {
299
- * // Handle error
300
- * }
301
- *
302
- * const [
303
- * spokeTxHash, // transaction hash on the spoke chain
304
- * hubTxHash, // transaction hash on the hub chain (i.e. the transaction that was relayed to the hub)
305
- * ] = result.value;
306
- * console.log('Withdraw transaction hashes:', { spokeTxHash, hubTxHash });
307
- */
308
- withdrawAndSubmit<S extends SpokeProvider>(params: MoneyMarketWithdrawParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
309
- /**
310
- * Withdraw tokens from the money market pool without submitting the intent to the Solver API
311
- * NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
312
- * In order to successfully withdraw tokens, you need to:
313
- * 1. Execute the withdraw transaction on the spoke chain
314
- * 2. Submit the intent to the Solver API and await it using relayTxAndWaitPacket method
315
- *
316
- * @param params - The parameters for the withdraw transaction.
317
- * @param spokeProvider - The spoke provider.
318
- * @param raw - Whether to return the raw transaction data.
319
- * @returns {Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>} - Returns the transaction result (raw transaction data or transaction hash).
320
- *
321
- * @example
322
- * const moneyMarketService = new MoneyMarketService(config);
323
- * const result = await moneyMarketService.withdraw(
324
- * {
325
- * token: "0x123...", // token address
326
- * amount: 1000000000000000000n // 1 token in wei
327
- * },
328
- * spokeProvider,
329
- * raw // Optional: true = return the raw transaction data, false = exeute and return the transaction hash (default: false)
330
- * );
331
- *
332
- * if (result.ok) {
333
- * const txHash = result.value;
334
- * console.log('Withdraw transaction hash:', txHash);
335
- * } else {
336
- * console.error('Withdraw failed:', result.error);
337
- * }
338
- */
339
- withdraw<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketWithdrawParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
340
- /**
341
- * Repay tokens to the money market pool, relay the transaction to the hub and submit the intent to the Solver API
342
- *
343
- * @param params - The parameters for the repay transaction.
344
- * @param spokeProvider - The spoke provider.
345
- * @param timeout - The timeout in milliseconds for the transaction. Default is 60 seconds.
346
- * @returns {Promise<Result<[Hex, Hex], MoneyMarketError>>} - Returns the transaction result and the hub transaction hash or error
347
- *
348
- * @example
349
- * const result = await moneyMarketService.repayAndSubmit(
350
- * {
351
- * token: '0x...', // Address of the token (spoke chain address) to repay
352
- * amount: 1000n, // Amount to repay (in token decimals)
353
- * },
354
- * spokeProvider,
355
- * 30000 // Optional timeout in milliseconds (default: 60000, i.e. 60 seconds)
356
- * );
357
- *
358
- * if (!result.ok) {
359
- * // Handle error
360
- * }
361
- *
362
- * const [
363
- * spokeTxHash, // transaction hash on the spoke chain
364
- * hubTxHash, // transaction hash on the hub chain (i.e. the transaction that was relayed to the hub)
365
- * ] = result.value;
366
- * console.log('Repay transaction hashes:', { spokeTxHash, hubTxHash });
367
- */
368
- repayAndSubmit<S extends SpokeProvider>(params: MoneyMarketRepayParams, spokeProvider: S, timeout?: number): Promise<Result<[Hex, Hex], MoneyMarketError>>;
369
- /**
370
- * Repay tokens to the money market pool without submitting the intent to the Solver API
371
- * NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
372
- * In order to successfully repay tokens, you need to:
373
- * 1. Check if the allowance is sufficient
374
- * 2. Approve the asset manager contract to spend the tokens
375
- * 3. Execute the repay transaction on the spoke chain
376
- * 4. Submit the intent to the Solver API and await it using relayTxAndWaitPacket method
377
- *
378
- * @param params - The parameters for the repay transaction.
379
- * @param spokeProvider - The spoke provider.
380
- * @param raw - Whether to return the raw transaction data.
381
- * @returns {Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>} The transaction result (raw transaction data or transaction hash) or error.
382
- *
383
- * @example
384
- * const moneyMarketService = new MoneyMarketService(config);
385
- * const result = await moneyMarketService.repay(
386
- * {
387
- * token: "0x123...", // token address
388
- * amount: 1000000000000000000n // 1 token in wei
389
- * },
390
- * spokeProvider,
391
- * raw // Optional: true = return the raw transaction data, false = exeute and return the transaction hash (default: false)
392
- * );
393
- *
394
- * if (result.ok) {
395
- * const txHash = result.value;
396
- * console.log('Repay transaction hash:', txHash);
397
- * } else {
398
- * console.error('Repay failed:', result.error);
399
- * }
400
- */
401
- repay<S extends SpokeProvider = SpokeProvider, R extends boolean = false>(params: MoneyMarketRepayParams, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MoneyMarketErrorCode>>;
402
- /**
403
- * Build transaction data for supplying to the money market pool
404
- * @param token - The address of the token on spoke chain
405
- * @param to - The user wallet address on the hub chain
406
- * @param amount - The amount to deposit
407
- * @param spokeChainId - The chain ID of the spoke chain
408
- * @returns {Hex} The transaction data.
409
- */
410
- supplyData(token: string, to: Address, amount: bigint, spokeChainId: SpokeChainId): Hex;
411
- /**
412
- * Build transaction data for borrowing from the money market pool
413
- * @param from - The user wallet address on the hub chain
414
- * @param to - The user wallet address on the spoke chain
415
- * @param token - The address of the token to borrow
416
- * @param amount - The amount to borrow in hub chain decimals
417
- * @param spokeChainId - The chain ID of the spoke chain
418
- * @returns {Hex} The transaction data.
419
- */
420
- borrowData(from: Address, to: Address | Hex, token: string, amount: bigint, spokeChainId: SpokeChainId): Hex;
421
- /**
422
- * Build transaction data for withdrawing from the money market pool
423
- * @param from - The user wallet address on the hub chain
424
- * @param to - The user wallet address on the spoke chain
425
- * @param token - The address of the token to borrow
426
- * @param amount - The amount to borrow in hub chain decimals
427
- * @param spokeChainId - The chain ID of the spoke chain
428
- * @returns {Hex} The transaction data.
429
- */
430
- withdrawData(from: Address, to: Address, token: string, amount: bigint, spokeChainId: SpokeChainId): Hex;
431
- /**
432
- * Build transaction data for repaying to the money market pool
433
- * @param token - The address of the token to repay
434
- * @param to - The user wallet address on the hub chain
435
- * @param amount - The amount to repay
436
- * @param spokeChainId - The chain ID of the spoke chain
437
- * @returns {Hex} The transaction data.
438
- */
439
- repayData(token: string, to: Address, amount: bigint, spokeChainId: SpokeChainId): Hex;
440
- /**
441
- * Get the list of all reserves in the pool
442
- * @param uiPoolDataProvider - The address of the UI Pool Data Provider
443
- * @param poolAddressesProvider - The address of the Pool Addresses Provider
444
- * @returns {Promise<readonly Address[]>} - Array of reserve addresses
445
- */
446
- getReservesList(uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly Address[]>;
447
- /**
448
- * Get detailed data for all reserves in the pool
449
- * @param uiPoolDataProvider - The address of the UI Pool Data Provider
450
- * @param poolAddressesProvider - The address of the Pool Addresses Provider
451
- * @returns {Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>} - Tuple containing array of reserve data and base currency info
452
- */
453
- getReservesData(uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly [readonly AggregatedReserveData[], BaseCurrencyInfo]>;
454
- /**
455
- * Get user-specific reserve data
456
- * @param userAddress Address of the user
457
- * @param uiPoolDataProvider - The address of the UI Pool Data Provider
458
- * @param poolAddressesProvider - The address of the Pool Addresses Provider
459
- * @returns {Promise<readonly [readonly UserReserveData[], number]>} - Tuple containing array of user reserve data and eMode category ID
460
- */
461
- getUserReservesData(userAddress: Address, uiPoolDataProvider: Address, poolAddressesProvider: Address): Promise<readonly [readonly UserReserveData[], number]>;
462
- /**
463
- * Encodes a supply transaction for a money market pool.
464
- * @param {MoneyMarketEncodeWithdrawParams} params - The parameters for the supply transaction.
465
- * @param {Address} lendingPool - The address of the lending pool contract.
466
- * @returns {EvmContractCall} The encoded contract call.
467
- */
468
- static encodeSupply(params: MoneyMarketEncodeSupplyParams, lendingPool: Address): EvmContractCall;
469
- /**
470
- * Encodes a withdraw transaction from a pool.
471
- * @param {MoneyMarketEncodeWithdrawParams} params - The parameters for the withdraw transaction.
472
- * @param {Address} params.asset - The address of the asset to withdraw.
473
- * @param {bigint} params.amount - The amount of the asset to withdraw.
474
- * @param {Address} params.to - The address that will receive the withdrawn assets.
475
- * @param {Address} lendingPool - The address of the lending pool contract.
476
- * @returns {EvmContractCall} The encoded contract call.
477
- */
478
- static encodeWithdraw(params: MoneyMarketEncodeWithdrawParams, lendingPool: Address): EvmContractCall;
479
- /**
480
- * Encodes a borrow transaction from a pool.
481
- * @param {MoneyMarketEncodeBorrowParams} params - The parameters for the borrow transaction.
482
- * @param {Address} lendingPool - The address of the lending pool contract.
483
- * @returns {EvmContractCall} The encoded contract call.
484
- */
485
- static encodeBorrow(params: MoneyMarketEncodeBorrowParams, lendingPool: Address): EvmContractCall;
486
- /**
487
- * Encodes a repay transaction for a pool.
488
- * @param {MoneyMarketEncodeRepayParams} params - The parameters for the repay transaction.
489
- * @param {Address} params.asset - The address of the borrowed asset to repay.
490
- * @param {bigint} params.amount - The amount to repay. Use type(uint256).max to repay the entire debt.
491
- * @param {number} params.interestRateMode - The interest rate mode (2 for Variable).
492
- * @param {Address} params.onBehalfOf - The address of the user who will get their debt reduced/removed.
493
- * @param {Address} lendingPool - The address of the lending pool contract.
494
- * @returns {EvmContractCall} The encoded contract call.
495
- */
496
- static encodeRepay(params: MoneyMarketEncodeRepayParams, lendingPool: Address): EvmContractCall;
497
- /**
498
- * Encodes a repayWithATokens transaction for a pool.
499
- * @param {MoneyMarketEncodeRepayWithATokensParams} params - The parameters for the repayWithATokens transaction.
500
- * @param {Address} lendingPool - The address of the lending pool contract.
501
- * @returns {EvmContractCall} The encoded contract call.
502
- */
503
- static encodeRepayWithATokens(params: MoneyMarketEncodeRepayWithATokensParams, lendingPool: Address): EvmContractCall;
504
- /**
505
- * Encodes a setUserUseReserveAsCollateral transaction.
506
- * @param asset - The address of the underlying asset to be used as collateral.
507
- * @param useAsCollateral - True to enable the asset as collateral, false to disable.
508
- * @param lendingPool - The address of lending pool contract
509
- * @returns The encoded contract call.
510
- */
511
- static encodeSetUserUseReserveAsCollateral(asset: Address, useAsCollateral: boolean, lendingPool: Address): EvmContractCall;
512
- /**
513
- * Get the list of all supported money market tokens (supply / borrow tokens) for a given spoke chain ID
514
- * @param chainId The chain ID
515
- * @returns {readonly Token[]} - Array of supported tokens
516
- */
517
- getSupportedTokens(chainId: SpokeChainId): readonly Token[];
518
- /**
519
- * Get the list of all supported money market reserves (supply / borrow reserves)
520
- * NOTE: reserve addresses are on the hub chain and can be of type vault, erc20, etc.
521
- * @returns {readonly Address[]} - Array of supported reserves
522
- */
523
- getSupportedReserves(): readonly Address[];
524
- }
525
- //# sourceMappingURL=MoneyMarketService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MoneyMarketService.d.ts","sourceRoot":"","sources":["../../../src/services/moneyMarket/MoneyMarketService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,GAAG,EAAsB,MAAM,MAAM,CAAC;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAYL,KAAK,cAAc,EAIpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,eAAe,EAEf,OAAO,EACP,uBAAuB,EAEvB,MAAM,EACN,YAAY,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAK7D,OAAO,EAA0B,KAAK,YAAY,EAAE,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAErF,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,EAAE,OAAO,CAAC;IACzB,I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