@raac/rpc 2.0.0-beta.1 → 2.0.0-beta.10

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 (684) hide show
  1. package/dist/RPCLibrary.js +134 -25
  2. package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +2 -2
  3. package/dist/artifacts/core/collectors/fee-streamer/RentStreamer.sol/RentStreamer.json +838 -0
  4. package/dist/artifacts/core/governance/gauges/GaugeController.sol/GaugeController.json +8 -2
  5. package/dist/artifacts/core/governance/gauges/GaugeRewardsDistributor.sol/GaugeRewardsDistributor.json +2 -2
  6. package/dist/artifacts/core/governance/gauges/RAACGauge.sol/RAACGauge.json +2 -2
  7. package/dist/artifacts/core/governance/gauges/RWAGauge.sol/RWAGauge.json +2 -2
  8. package/dist/artifacts/core/lockers/RAACMaturityVault.sol/RAACMaturityVault.json +2 -2
  9. package/dist/artifacts/core/oracles/RAACPrimeRateOracle.sol/RAACPrimeRateOracle.json +2 -2
  10. package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +62 -86
  11. package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +2 -2
  12. package/dist/artifacts/core/psm/PSMVault.sol/PSMVault.json +2303 -0
  13. package/dist/artifacts/core/psm/RateProvider.sol/RateProvider.json +444 -0
  14. package/dist/artifacts/core/tokens/RToken.sol/RToken.json +2 -2
  15. package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +69 -66
  16. package/dist/artifacts/mocks/core/tokens/ERC721Mock.sol/ERC721Mock.json +491 -0
  17. package/dist/artifacts/mocks/core/tokens/USDCTokenLimited.sol/USDCTokenLimited.json +558 -0
  18. package/dist/artifacts/zeno/Auction.sol/Auction.json +278 -120
  19. package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +31 -148
  20. package/dist/artifacts/zeno/Zeno.sol/Zeno.json +80 -45
  21. package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +11 -88
  22. package/dist/assets/getAsset.js +2 -2
  23. package/dist/assets/getSupply.js +7 -7
  24. package/dist/configs/chains/1.json +18 -0
  25. package/dist/configs/chains/11155111.json +64 -5
  26. package/dist/configs/chains/17000.json +4 -0
  27. package/dist/configs/chains/18453.json +4 -0
  28. package/dist/configs/chains/8453.json +33 -3
  29. package/dist/contracts/curve/common/_helpers.js +39 -0
  30. package/dist/contracts/curve/common/getPools.js +36 -0
  31. package/dist/contracts/curve/common/getVirtualPrice.js +26 -0
  32. package/dist/contracts/curve/common/index.js +18 -0
  33. package/dist/contracts/feeCollector/claimRewardFromPool.js +2 -2
  34. package/dist/contracts/findContract.js +12 -11
  35. package/dist/contracts/getContractAddress.js +2 -2
  36. package/dist/contracts/getTokenMetadata.js +31 -0
  37. package/dist/contracts/governance/_helpers.js +1 -22
  38. package/dist/contracts/governance/distributor/claimAll.js +2 -2
  39. package/dist/contracts/governance/distributor/claimForGauge.js +2 -2
  40. package/dist/contracts/governance/distributor/deposit.js +2 -2
  41. package/dist/contracts/governance/distributor/setController.js +2 -2
  42. package/dist/contracts/governance/distributor/setLastClaimedEpoch.js +2 -2
  43. package/dist/contracts/governance/distributor/setMaxClaimBound.js +2 -2
  44. package/dist/contracts/governance/distributor/withdrawDust.js +2 -2
  45. package/dist/contracts/governance/distributor/withdrawRemovedGaugeRewards.js +2 -2
  46. package/dist/contracts/governance/gauge/claimRewardToken.js +2 -3
  47. package/dist/contracts/governance/gauge/pullRewardsFromDistributor.js +2 -2
  48. package/dist/contracts/governance/gauge/stake.js +2 -3
  49. package/dist/contracts/governance/gauge/updateUserRewards.js +2 -3
  50. package/dist/contracts/governance/gauge/withdraw.js +2 -3
  51. package/dist/contracts/governance/gaugeController/addGauge.js +2 -2
  52. package/dist/contracts/governance/gaugeController/batchVote.js +2 -2
  53. package/dist/contracts/governance/gaugeController/forceCompleteCheckpoint.js +2 -2
  54. package/dist/contracts/governance/gaugeController/getGaugeRelativeWeight.js +2 -2
  55. package/dist/contracts/governance/gaugeController/kick.js +2 -2
  56. package/dist/contracts/governance/gaugeController/removeGauge.js +2 -2
  57. package/dist/contracts/governance/gaugeController/removePowerFromGauge.js +2 -2
  58. package/dist/contracts/governance/gaugeController/setBoostAmplificationEnabled.js +2 -2
  59. package/dist/contracts/governance/gaugeController/setDistributor.js +2 -2
  60. package/dist/contracts/governance/gaugeController/setEmergencyGaugePause.js +2 -2
  61. package/dist/contracts/governance/gaugeController/setEmergencyGaugePauseBatch.js +2 -2
  62. package/dist/contracts/governance/gaugeController/setEmergencyPause.js +2 -2
  63. package/dist/contracts/governance/gaugeController/setMaxVoteBuckets.js +2 -2
  64. package/dist/contracts/governance/gaugeController/vote.js +2 -2
  65. package/dist/contracts/governance/gaugeSystems/_helpers.js +2 -2
  66. package/dist/contracts/governance/proposals/cancel.js +3 -4
  67. package/dist/contracts/governance/proposals/castVote.js +4 -4
  68. package/dist/contracts/governance/proposals/execute.js +3 -4
  69. package/dist/contracts/governance/proposals/getVoteReceipt.js +0 -1
  70. package/dist/contracts/governance/proposals/propose.js +3 -4
  71. package/dist/contracts/governance/proposals/setParameter.js +3 -4
  72. package/dist/contracts/governance/proposals/setTimelock.js +3 -4
  73. package/dist/contracts/housePrices/getLatestPrice.js +3 -3
  74. package/dist/contracts/housePrices/setOracle.js +3 -4
  75. package/dist/contracts/lockers/botLocker/addRewardTokens.js +21 -0
  76. package/dist/contracts/lockers/botLocker/distributeRewardToken.js +23 -0
  77. package/dist/contracts/lockers/botLocker/getConfig.js +29 -0
  78. package/dist/contracts/lockers/botLocker/getLocks.js +11 -1
  79. package/dist/contracts/lockers/botLocker/getRoles.js +22 -0
  80. package/dist/contracts/lockers/botLocker/getUnlockWindow.js +29 -0
  81. package/dist/contracts/lockers/botLocker/grantRole.js +38 -0
  82. package/dist/contracts/lockers/botLocker/hasRole.js +18 -0
  83. package/dist/contracts/lockers/botLocker/pause.js +24 -0
  84. package/dist/contracts/lockers/botLocker/rescueTokens.js +22 -0
  85. package/dist/contracts/lockers/liquidLocker/deposit.js +12 -4
  86. package/dist/contracts/lockers/liquidLocker/hasHarvestRole.js +15 -0
  87. package/dist/contracts/pmBlender/getReserveBalance.js +3 -3
  88. package/dist/contracts/pmBlender/getSupportedTokens.js +0 -1
  89. package/dist/contracts/pmBlender/previewDeposit.js +3 -3
  90. package/dist/contracts/pmBlender/previewSwap.js +3 -3
  91. package/dist/contracts/pmBlender/previewWithdraw.js +3 -3
  92. package/dist/contracts/pmMarket/getMarketConfig.js +3 -3
  93. package/dist/contracts/pmTreasury/getCollateralRatio.js +4 -2
  94. package/dist/contracts/pmTreasury/getCurrentNav.js +4 -2
  95. package/dist/contracts/pmTreasury/getLeverageRatio.js +4 -2
  96. package/dist/contracts/pmTreasury/getMaxMintablePMUSD.js +4 -2
  97. package/dist/contracts/pmTreasury/getMaxMintablePMUSDWithoutBaseToken.js +4 -2
  98. package/dist/contracts/pmTreasury/getMaxMintableXPM.js +4 -2
  99. package/dist/contracts/pmTreasury/getMaxRedeemablePMUSD.js +4 -2
  100. package/dist/contracts/pmTreasury/getMaxRedeemableXPM.js +4 -2
  101. package/dist/contracts/pmTreasury/getTotalBaseToken.js +4 -2
  102. package/dist/contracts/psm/_helpers.js +68 -0
  103. package/dist/contracts/psm/cancelExit.js +20 -0
  104. package/dist/contracts/psm/deposit.js +25 -0
  105. package/dist/contracts/psm/getVaultInfo.js +126 -0
  106. package/dist/contracts/psm/previewDeposit.js +21 -0
  107. package/dist/contracts/psm/previewProportionalSplit.js +19 -0
  108. package/dist/contracts/psm/previewRedeem.js +21 -0
  109. package/dist/contracts/psm/previewSwap.js +21 -0
  110. package/dist/contracts/psm/redeem.js +25 -0
  111. package/dist/contracts/psm/requestExit.js +20 -0
  112. package/dist/contracts/psm/swap.js +24 -0
  113. package/dist/contracts/rentStreamer/_helpers.js +19 -0
  114. package/dist/contracts/rentStreamer/getScheduled.js +19 -0
  115. package/dist/contracts/rentStreamer/getState.js +40 -0
  116. package/dist/contracts/rentStreamer/previewRelease.js +23 -0
  117. package/dist/contracts/rentStreamer/release.js +22 -0
  118. package/dist/contracts/rentStreamer/sync.js +21 -0
  119. package/dist/contracts/resolveName.js +1 -1
  120. package/dist/contracts/tokens/veRAAC/_helpers.js +0 -2
  121. package/dist/contracts/tokens/veRAAC/claimReward.js +3 -4
  122. package/dist/contracts/tokens/veRAAC/distributeRewards.js +3 -4
  123. package/dist/contracts/tokens/veRAAC/extend.js +3 -4
  124. package/dist/contracts/tokens/veRAAC/finalizeRagequit.js +3 -4
  125. package/dist/contracts/tokens/veRAAC/getRewardTokens.js +34 -0
  126. package/dist/contracts/tokens/veRAAC/getTotalSupply.js +0 -1
  127. package/dist/contracts/tokens/veRAAC/getTotalSupplyAt.js +1 -1
  128. package/dist/contracts/tokens/veRAAC/increase.js +3 -4
  129. package/dist/contracts/tokens/veRAAC/lock.js +3 -4
  130. package/dist/contracts/tokens/veRAAC/ragequitAll.js +3 -4
  131. package/dist/contracts/tokens/veRAAC/ragequitLock.js +3 -4
  132. package/dist/contracts/tokens/veRAAC/withdraw.js +3 -4
  133. package/dist/contracts/zeno/_helpers.js +43 -0
  134. package/dist/contracts/zeno/buy.js +27 -0
  135. package/dist/contracts/zeno/createAuction.js +30 -15
  136. package/dist/contracts/zeno/createZeno.js +23 -12
  137. package/dist/contracts/zeno/getAuctionState.js +45 -0
  138. package/dist/contracts/zeno/getAuctions.js +39 -34
  139. package/dist/contracts/zeno/getBondState.js +47 -0
  140. package/dist/contracts/zeno/getPrice.js +23 -0
  141. package/dist/contracts/zeno/getZenos.js +32 -16
  142. package/dist/contracts/zeno/grantRole.js +46 -0
  143. package/dist/contracts/zeno/pause.js +42 -0
  144. package/dist/contracts/zeno/priceAt.js +20 -0
  145. package/dist/contracts/zeno/quoteBuy.js +33 -0
  146. package/dist/contracts/zeno/redeem.js +44 -0
  147. package/dist/contracts/zeno/setAuction.js +25 -0
  148. package/dist/contracts/zeno/sweepSurplus.js +26 -0
  149. package/dist/generated/errors.json +3537 -0
  150. package/dist/index.js +1 -0
  151. package/dist/methods/approveToken.js +2 -4
  152. package/dist/methods/commons/checkAllowance.js +2 -3
  153. package/dist/methods/commons/estimateGasPrice.js +0 -1
  154. package/dist/methods/getAssetBalance.js +4 -4
  155. package/dist/nfts/approveNFT.js +3 -5
  156. package/dist/nfts/getAllTokens.js +3 -4
  157. package/dist/nfts/getApprovalForAll.js +3 -4
  158. package/dist/nfts/getBaseUri.js +3 -4
  159. package/dist/nfts/getHousePrice.js +3 -3
  160. package/dist/nfts/getMintFeePercentage.js +3 -3
  161. package/dist/nfts/getMintPrice.js +3 -3
  162. package/dist/nfts/getNFTApproval.js +3 -4
  163. package/dist/nfts/getNFTBalance.js +29 -0
  164. package/dist/nfts/getOwnerOfNFT.js +3 -5
  165. package/dist/nfts/getTokenURI.js +3 -4
  166. package/dist/nfts/getTokensByOwner.js +3 -4
  167. package/dist/nfts/getTotalPropertiesCount.js +3 -4
  168. package/dist/nfts/mint.js +3 -5
  169. package/dist/nfts/setApprovalForAll.js +3 -5
  170. package/dist/nfts/setBaseUri.js +3 -4
  171. package/dist/nfts/totalNFTSupply.js +3 -3
  172. package/dist/nfts/transferNFT.js +34 -0
  173. package/dist/oracles/houses/request.js +2 -15
  174. package/dist/oracles/houses/simulate.js +0 -3
  175. package/dist/oracles/prime-rate/request.js +2 -16
  176. package/dist/oracles/prime-rate/simulate.js +0 -4
  177. package/dist/pools/lendingPool/adapters/erc20/getERC20AdapterBalance.js +6 -6
  178. package/dist/pools/lendingPool/adapters/erc20/getERC20AdapterInfo.js +4 -2
  179. package/dist/pools/lendingPool/adapters/erc721/getERC721AdapterDeposits.js +4 -3
  180. package/dist/pools/lendingPool/adapters/erc721/getERC721AdapterInfo.js +4 -3
  181. package/dist/pools/lendingPool/borrowFromLendingPool.js +4 -2
  182. package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +3 -8
  183. package/dist/pools/lendingPool/calculateInsuranceFee.js +4 -2
  184. package/dist/pools/lendingPool/closeLiquidation.js +4 -2
  185. package/dist/pools/lendingPool/depositAssetToLendingPool.js +4 -2
  186. package/dist/pools/lendingPool/depositToLendingPool.js +4 -6
  187. package/dist/pools/lendingPool/getAdapters.js +4 -2
  188. package/dist/pools/lendingPool/getEligibleUserDeposits.js +4 -2
  189. package/dist/pools/lendingPool/getHealthFactor.js +4 -2
  190. package/dist/pools/lendingPool/getHousePrice.js +3 -3
  191. package/dist/pools/lendingPool/getLendingPoolInfo.js +3 -2
  192. package/dist/pools/lendingPool/getLendingPoolTotalLiquidity.js +4 -2
  193. package/dist/pools/lendingPool/getParameters.js +4 -2
  194. package/dist/pools/lendingPool/getPositionDebt.js +4 -2
  195. package/dist/pools/lendingPool/getPositionScaledDebt.js +4 -2
  196. package/dist/pools/lendingPool/getPositionView.js +4 -2
  197. package/dist/pools/lendingPool/getPositionsScaledDebt.js +4 -2
  198. package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +4 -2
  199. package/dist/pools/lendingPool/getUserCollateralValue.js +4 -2
  200. package/dist/pools/lendingPool/initializeLiquidation.js +4 -2
  201. package/dist/pools/lendingPool/openVaultPosition.js +4 -6
  202. package/dist/pools/lendingPool/repayToLendingPool.js +4 -2
  203. package/dist/pools/lendingPool/vaultOpened.js +4 -2
  204. package/dist/pools/lendingPool/withdrawAssetFromLendingPool.js +4 -2
  205. package/dist/pools/lendingPool/withdrawFromLendingPool.js +3 -4
  206. package/dist/pools/liquidityPool/getLiquidityPoolInfo.js +3 -3
  207. package/dist/pools/rwaVault/adapters/erc20/getERC20VaultAdapterAssetValue.js +2 -2
  208. package/dist/pools/rwaVault/adapters/erc20/getERC20VaultAdapterInfo.js +2 -2
  209. package/dist/pools/rwaVault/adapters/erc20/getERC20VaultAdapterTotalValue.js +2 -2
  210. package/dist/pools/rwaVault/adapters/erc721/getERC721VaultAdapterAssetValue.js +2 -2
  211. package/dist/pools/rwaVault/adapters/erc721/getERC721VaultAdapterDeposits.js +2 -2
  212. package/dist/pools/rwaVault/adapters/erc721/getERC721VaultAdapterInfo.js +2 -2
  213. package/dist/pools/rwaVault/adapters/erc721/getERC721VaultAdapterTotalValue.js +2 -2
  214. package/dist/pools/rwaVault/checkRedeemEligibility.js +46 -0
  215. package/dist/pools/rwaVault/depositToRWAVault.js +4 -4
  216. package/dist/pools/rwaVault/getAdapters.js +2 -2
  217. package/dist/pools/rwaVault/getNextRandomNFT.js +4 -2
  218. package/dist/pools/rwaVault/getRWAVaultInfo.js +4 -2
  219. package/dist/pools/rwaVault/previewDeposit.js +4 -2
  220. package/dist/pools/rwaVault/previewWithdraw.js +4 -2
  221. package/dist/pools/rwaVault/redeemNFTFromRWAVault.js +4 -4
  222. package/dist/pools/rwaVault/requestRandomSeed.js +4 -4
  223. package/dist/pools/stabilityPool/depositToStabilityPool.js +4 -4
  224. package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +4 -2
  225. package/dist/pools/stabilityPool/getStabilityPoolInfo.js +4 -2
  226. package/dist/pools/stabilityPool/getStabilityPoolTotalDeposits.js +4 -2
  227. package/dist/pools/stabilityPool/getWithdrawRequestInfo.js +4 -2
  228. package/dist/pools/stabilityPool/getWithdrawTimelockConfig.js +25 -0
  229. package/dist/pools/stabilityPool/requestWithdraw.js +4 -4
  230. package/dist/pools/stabilityPool/withdrawFromStabilityPool.js +4 -4
  231. package/dist/prices/computeStakingAPY.js +12 -0
  232. package/dist/prices/getCurveLPPriceUSD.js +46 -0
  233. package/dist/prices/getPrices.js +10 -8
  234. package/dist/prices/getStakingTokenPriceUSD.js +25 -0
  235. package/dist/prices/getWrapperPriceUSD.js +33 -0
  236. package/dist/prices/tokenPricesUSD.js +22 -0
  237. package/dist/scripts/generateErrorCatalogue.js +237 -0
  238. package/dist/types/RPCLibrary.d.ts +113 -10
  239. package/dist/types/configs/chains/index.d.ts +36 -0
  240. package/dist/types/configs/index.d.ts +18 -0
  241. package/dist/types/contracts/curve/common/_helpers.d.ts +16 -0
  242. package/dist/types/contracts/curve/common/getPools.d.ts +30 -0
  243. package/dist/types/contracts/curve/common/getVirtualPrice.d.ts +13 -0
  244. package/dist/types/contracts/curve/common/index.d.ts +2 -0
  245. package/dist/types/contracts/findContract.d.ts +3 -1
  246. package/dist/types/contracts/getTokenMetadata.d.ts +13 -0
  247. package/dist/types/contracts/governance/_helpers.d.ts +0 -20
  248. package/dist/types/contracts/governance/proposals/castVote.d.ts +1 -2
  249. package/dist/types/contracts/lockers/botLocker/addRewardTokens.d.ts +11 -0
  250. package/dist/types/contracts/lockers/botLocker/distributeRewardToken.d.ts +13 -0
  251. package/dist/types/contracts/lockers/botLocker/getConfig.d.ts +20 -0
  252. package/dist/types/contracts/lockers/botLocker/getLocks.d.ts +4 -0
  253. package/dist/types/contracts/lockers/botLocker/getRoles.d.ts +20 -0
  254. package/dist/types/contracts/lockers/botLocker/getUnlockWindow.d.ts +24 -0
  255. package/dist/types/contracts/lockers/botLocker/grantRole.d.ts +20 -0
  256. package/dist/types/contracts/lockers/botLocker/hasRole.d.ts +12 -0
  257. package/dist/types/contracts/lockers/botLocker/pause.d.ts +6 -0
  258. package/dist/types/contracts/lockers/botLocker/rescueTokens.d.ts +12 -0
  259. package/dist/types/contracts/lockers/liquidLocker/hasHarvestRole.d.ts +8 -0
  260. package/dist/types/contracts/psm/_helpers.d.ts +18 -0
  261. package/dist/types/contracts/psm/cancelExit.d.ts +4 -0
  262. package/dist/types/contracts/psm/deposit.d.ts +9 -0
  263. package/dist/types/contracts/psm/getVaultInfo.d.ts +77 -0
  264. package/dist/types/contracts/psm/previewDeposit.d.ts +7 -0
  265. package/dist/types/contracts/psm/previewProportionalSplit.d.ts +9 -0
  266. package/dist/types/contracts/psm/previewRedeem.d.ts +7 -0
  267. package/dist/types/contracts/psm/previewSwap.d.ts +7 -0
  268. package/dist/types/contracts/psm/redeem.d.ts +9 -0
  269. package/dist/types/contracts/psm/requestExit.d.ts +4 -0
  270. package/dist/types/contracts/psm/swap.d.ts +8 -0
  271. package/dist/types/contracts/rentStreamer/_helpers.d.ts +4 -0
  272. package/dist/types/contracts/rentStreamer/getScheduled.d.ts +12 -0
  273. package/dist/types/contracts/rentStreamer/getState.d.ts +33 -0
  274. package/dist/types/contracts/rentStreamer/previewRelease.d.ts +20 -0
  275. package/dist/types/contracts/rentStreamer/release.d.ts +12 -0
  276. package/dist/types/contracts/rentStreamer/sync.d.ts +11 -0
  277. package/dist/types/contracts/tokens/veRAAC/getRewardTokens.d.ts +10 -0
  278. package/dist/types/contracts/zeno/_helpers.d.ts +17 -0
  279. package/dist/types/contracts/zeno/buy.d.ts +15 -0
  280. package/dist/types/contracts/zeno/createAuction.d.ts +15 -5
  281. package/dist/types/contracts/zeno/createZeno.d.ts +10 -1
  282. package/dist/types/contracts/zeno/getAuctionState.d.ts +45 -0
  283. package/dist/types/contracts/zeno/getAuctions.d.ts +12 -12
  284. package/dist/types/contracts/zeno/getBondState.d.ts +42 -0
  285. package/dist/types/contracts/zeno/getPrice.d.ts +12 -0
  286. package/dist/types/contracts/zeno/getZenos.d.ts +25 -2
  287. package/dist/types/contracts/zeno/grantRole.d.ts +22 -0
  288. package/dist/types/contracts/zeno/pause.d.ts +18 -0
  289. package/dist/types/contracts/zeno/priceAt.d.ts +20 -0
  290. package/dist/types/contracts/zeno/quoteBuy.d.ts +34 -0
  291. package/dist/types/contracts/zeno/redeem.d.ts +20 -0
  292. package/dist/types/contracts/zeno/setAuction.d.ts +13 -0
  293. package/dist/types/contracts/zeno/sweepSurplus.d.ts +14 -0
  294. package/dist/types/index.d.ts +1 -0
  295. package/dist/types/nfts/getNFTBalance.d.ts +13 -0
  296. package/dist/types/nfts/transferNFT.d.ts +15 -0
  297. package/dist/types/pools/lendingPool/adapters/erc20/getERC20AdapterBalance.d.ts +3 -3
  298. package/dist/types/pools/rwaVault/checkRedeemEligibility.d.ts +15 -0
  299. package/dist/types/pools/stabilityPool/getWithdrawTimelockConfig.d.ts +14 -0
  300. package/dist/types/prices/computeStakingAPY.d.ts +2 -0
  301. package/dist/types/prices/getCurveLPPriceUSD.d.ts +3 -0
  302. package/dist/types/prices/getPrices.d.ts +4 -8
  303. package/dist/types/prices/getStakingTokenPriceUSD.d.ts +16 -0
  304. package/dist/types/prices/getWrapperPriceUSD.d.ts +7 -0
  305. package/dist/types/prices/tokenPricesUSD.d.ts +7 -0
  306. package/dist/types/scripts/generateErrorCatalogue.d.ts +45 -0
  307. package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +2 -0
  308. package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.d.ts +65 -0
  309. package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
  310. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.d.ts +36 -0
  311. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.d.ts +20 -0
  312. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +2 -0
  313. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/Proxy.d.ts +20 -0
  314. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.d.ts +25 -0
  315. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/index.d.ts +1 -0
  316. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/index.d.ts +7 -0
  317. package/dist/types/typechain-types/{contracts/core/governance/gauges/VeBoostProxy.d.ts → @openzeppelin/contracts/proxy/transparent/ProxyAdmin.d.ts} +24 -47
  318. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.d.ts +80 -0
  319. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.d.ts +51 -0
  320. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.d.ts +2 -0
  321. package/dist/types/typechain-types/@openzeppelin/contracts/proxy/transparent/index.d.ts +3 -0
  322. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/RentStreamer.d.ts +422 -0
  323. package/dist/types/typechain-types/contracts/core/collectors/fee-streamer/index.d.ts +1 -0
  324. package/dist/types/typechain-types/contracts/core/collectors/index.d.ts +2 -0
  325. package/dist/types/typechain-types/contracts/core/governance/gauges/GaugeController.d.ts +29 -2
  326. package/dist/types/typechain-types/contracts/core/governance/gauges/index.d.ts +0 -2
  327. package/dist/types/typechain-types/contracts/core/lockers/RAACBotLocker.d.ts +1 -9
  328. package/dist/types/typechain-types/contracts/core/lockers/RAACLiquidLocker.d.ts +47 -2
  329. package/dist/types/typechain-types/contracts/core/lockers/RAACMaturityVault.d.ts +24 -10
  330. package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +42 -43
  331. package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPoolStorage.d.ts +7 -3
  332. package/dist/types/typechain-types/contracts/core/pools/LendingPool/LiquidationProxy.d.ts +7 -3
  333. package/dist/types/typechain-types/contracts/core/pools/LendingPool/VaultProxy.d.ts +7 -3
  334. package/dist/types/typechain-types/contracts/core/tokens/VeRAACToken.d.ts +59 -12
  335. package/dist/types/typechain-types/contracts/core/tokens/VeRAACTokenStorage.d.ts +47 -12
  336. package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IGaugeController.d.ts +29 -2
  337. package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/index.d.ts +0 -2
  338. package/dist/types/typechain-types/contracts/interfaces/core/lockers/IRAACBotLocker.d.ts +1 -9
  339. package/dist/types/typechain-types/contracts/interfaces/core/lockers/IRaacLiquidLocker.d.ts +82 -15
  340. package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +32 -6
  341. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +5 -1
  342. package/dist/types/typechain-types/contracts/interfaces/core/tokens/IveRAACToken.d.ts +47 -12
  343. package/dist/types/typechain-types/contracts/interfaces/zeno/IAuction.d.ts +43 -39
  344. package/dist/types/typechain-types/contracts/interfaces/zeno/IZENO.d.ts +28 -22
  345. package/dist/types/typechain-types/contracts/libraries/math/TimeWeightedAverage.d.ts +2 -36
  346. package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/MockGaugeStub.d.ts +33 -0
  347. package/dist/types/typechain-types/contracts/mocks/core/governance/gauges/index.d.ts +1 -0
  348. package/dist/types/typechain-types/contracts/mocks/core/lockers/LockerSimMocks.sol/SimToken.d.ts +173 -0
  349. package/dist/types/typechain-types/contracts/mocks/core/lockers/LockerSimMocks.sol/SimVault.d.ts +53 -0
  350. package/dist/types/typechain-types/contracts/mocks/core/lockers/LockerSimMocks.sol/SimVe.d.ts +91 -0
  351. package/dist/types/typechain-types/contracts/mocks/core/lockers/LockerSimMocks.sol/index.d.ts +3 -0
  352. package/dist/types/typechain-types/contracts/mocks/core/lockers/index.d.ts +2 -0
  353. package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +32 -6
  354. package/dist/types/typechain-types/contracts/mocks/core/tokens/USDCTokenLimited.d.ts +238 -0
  355. package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
  356. package/dist/types/typechain-types/contracts/mocks/libraries/governance/PowerCheckpointMock.d.ts +6 -2
  357. package/dist/types/typechain-types/contracts/zeno/Auction.d.ts +200 -108
  358. package/dist/types/typechain-types/contracts/zeno/AuctionFactory.d.ts +21 -105
  359. package/dist/types/typechain-types/contracts/zeno/ZENO.d.ts +46 -40
  360. package/dist/types/typechain-types/contracts/zeno/ZENOFactory.d.ts +10 -57
  361. package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +1 -0
  362. package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.d.ts +42 -0
  363. package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
  364. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.d.ts +71 -0
  365. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.d.ts +50 -0
  366. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.d.ts +2 -0
  367. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.d.ts +10 -0
  368. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.d.ts +17 -0
  369. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.d.ts +1 -0
  370. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/index.d.ts +4 -0
  371. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +115 -0
  372. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.d.ts +56 -0
  373. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.d.ts +102 -0
  374. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/index.d.ts +2 -0
  375. package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/transparent/index.d.ts +2 -0
  376. package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +1 -1
  377. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/RentStreamer__factory.d.ts +665 -0
  378. package/dist/types/typechain-types/factories/contracts/core/collectors/fee-streamer/index.d.ts +1 -0
  379. package/dist/types/typechain-types/factories/contracts/core/collectors/index.d.ts +1 -0
  380. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeController__factory.d.ts +26 -1
  381. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/GaugeRewardsDistributor__factory.d.ts +1 -1
  382. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RAACGauge__factory.d.ts +1 -1
  383. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/RWAGauge__factory.d.ts +1 -1
  384. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/index.d.ts +0 -2
  385. package/dist/types/typechain-types/factories/contracts/core/lockers/RAACBotLocker__factory.d.ts +1 -11
  386. package/dist/types/typechain-types/factories/contracts/core/lockers/RAACLiquidLocker__factory.d.ts +66 -1
  387. package/dist/types/typechain-types/factories/contracts/core/lockers/RAACMaturityVault__factory.d.ts +25 -9
  388. package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +1 -1
  389. package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPoolStorage__factory.d.ts +12 -2
  390. package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +43 -60
  391. package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LiquidationProxy__factory.d.ts +12 -2
  392. package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/VaultProxy__factory.d.ts +12 -2
  393. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/LiquidationStrategyProxy__factory.d.ts +1 -1
  394. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPoolStorage__factory.d.ts +1 -1
  395. package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +1 -1
  396. package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +1 -1
  397. package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +1 -1
  398. package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACTokenStorage__factory.d.ts +47 -18
  399. package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +58 -19
  400. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/IGaugeController__factory.d.ts +25 -0
  401. package/dist/types/typechain-types/factories/contracts/interfaces/core/governance/gauges/index.d.ts +0 -2
  402. package/dist/types/typechain-types/factories/contracts/interfaces/core/lockers/IRAACBotLocker__factory.d.ts +0 -10
  403. package/dist/types/typechain-types/factories/contracts/interfaces/core/lockers/IRaacLiquidLocker__factory.d.ts +91 -6
  404. package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +30 -0
  405. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +10 -0
  406. package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IveRAACToken__factory.d.ts +47 -18
  407. package/dist/types/typechain-types/factories/contracts/interfaces/zeno/IAuction__factory.d.ts +52 -30
  408. package/dist/types/typechain-types/factories/contracts/interfaces/zeno/IZENO__factory.d.ts +36 -8
  409. package/dist/types/typechain-types/factories/contracts/libraries/governance/BoostCalculator__factory.d.ts +1 -1
  410. package/dist/types/typechain-types/factories/contracts/libraries/governance/LockManager__factory.d.ts +1 -1
  411. package/dist/types/typechain-types/factories/contracts/libraries/governance/PowerCheckpoint__factory.d.ts +1 -1
  412. package/dist/types/typechain-types/factories/contracts/libraries/governance/RagequitLib__factory.d.ts +1 -1
  413. package/dist/types/typechain-types/factories/contracts/libraries/governance/RewardLib__factory.d.ts +1 -1
  414. package/dist/types/typechain-types/factories/contracts/libraries/math/TimeWeightedAverage__factory.d.ts +1 -36
  415. package/dist/types/typechain-types/factories/contracts/libraries/pools/LendingPoolFeeLibrary__factory.d.ts +1 -1
  416. package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
  417. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockGaugeStub__factory.d.ts +42 -0
  418. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/index.d.ts +1 -0
  419. package/dist/types/typechain-types/factories/contracts/mocks/core/governance/libraries/LockManagerMock__factory.d.ts +1 -1
  420. package/dist/types/typechain-types/factories/contracts/mocks/core/lockers/LockerSimMocks.sol/SimToken__factory.d.ts +306 -0
  421. package/dist/types/typechain-types/factories/contracts/mocks/core/lockers/LockerSimMocks.sol/SimVault__factory.d.ts +68 -0
  422. package/dist/types/typechain-types/factories/contracts/mocks/core/lockers/LockerSimMocks.sol/SimVe__factory.d.ts +149 -0
  423. package/dist/types/typechain-types/factories/contracts/mocks/core/lockers/LockerSimMocks.sol/index.d.ts +3 -0
  424. package/dist/types/typechain-types/factories/contracts/mocks/core/lockers/index.d.ts +1 -0
  425. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +1 -1
  426. package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +1 -1
  427. package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +31 -1
  428. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/USDCTokenLimited__factory.d.ts +439 -0
  429. package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
  430. package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockTimeUtils__factory.d.ts +1 -1
  431. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/BoostCalculatorMock__factory.d.ts +1 -1
  432. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/PowerCheckpointMock__factory.d.ts +5 -1
  433. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RagequitHarness__factory.d.ts +1 -1
  434. package/dist/types/typechain-types/factories/contracts/mocks/libraries/governance/RewardIntegralCalculatorMock.sol/MockRewardIntegralCalculator__factory.d.ts +1 -1
  435. package/dist/types/typechain-types/factories/contracts/mocks/libraries/math/TimeWeightedAverageMock__factory.d.ts +2 -9
  436. package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMockCalculation__factory.d.ts +1 -1
  437. package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +1 -1
  438. package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +1 -1
  439. package/dist/types/typechain-types/factories/contracts/zeno/AuctionFactory__factory.d.ts +26 -118
  440. package/dist/types/typechain-types/factories/contracts/zeno/Auction__factory.d.ts +230 -106
  441. package/dist/types/typechain-types/factories/contracts/zeno/ZENOFactory__factory.d.ts +9 -68
  442. package/dist/types/typechain-types/factories/contracts/zeno/ZENO__factory.d.ts +66 -38
  443. package/dist/types/typechain-types/index.d.ts +28 -8
  444. package/dist/types/typechain-types/psm/PSMVault.d.ts +1503 -0
  445. package/dist/types/typechain-types/psm/RateProvider.d.ts +228 -0
  446. package/dist/types/typechain-types/psm/common.d.ts +46 -0
  447. package/dist/types/typechain-types/psm/factories/PSMVault__factory.d.ts +1795 -0
  448. package/dist/types/typechain-types/psm/factories/RateProvider__factory.d.ts +299 -0
  449. package/dist/types/typechain-types/psm/factories/imports.sol/PSMProxyAdmin__factory.d.ts +117 -0
  450. package/dist/types/typechain-types/psm/factories/imports.sol/PSMTransparentProxy__factory.d.ts +108 -0
  451. package/dist/types/typechain-types/psm/factories/imports.sol/index.d.ts +2 -0
  452. package/dist/types/typechain-types/psm/factories/index.d.ts +8 -0
  453. package/dist/types/typechain-types/psm/factories/interfaces/IBaseAssetNav__factory.d.ts +21 -0
  454. package/dist/types/typechain-types/psm/factories/interfaces/IRateProvider__factory.d.ts +65 -0
  455. package/dist/types/typechain-types/psm/factories/interfaces/IRebalancer__factory.d.ts +25 -0
  456. package/dist/types/typechain-types/{factories/contracts/interfaces/core/governance/gauges/IVeBoost__factory.d.ts → psm/factories/interfaces/ISavingsToken__factory.d.ts} +215 -192
  457. package/dist/types/typechain-types/psm/factories/interfaces/index.d.ts +6 -0
  458. package/dist/types/typechain-types/psm/factories/interfaces/v2/IRebalancerV2__factory.d.ts +21 -0
  459. package/dist/types/typechain-types/psm/factories/interfaces/v2/index.d.ts +1 -0
  460. package/dist/types/typechain-types/psm/factories/interfaces/v3/IRateProviderV3__factory.d.ts +65 -0
  461. package/dist/types/typechain-types/psm/factories/interfaces/v3/index.d.ts +1 -0
  462. package/dist/types/typechain-types/psm/factories/mocks/MockBaseAssetModule__factory.d.ts +450 -0
  463. package/dist/types/typechain-types/psm/factories/mocks/MockChainlinkFeed__factory.d.ts +106 -0
  464. package/dist/types/typechain-types/psm/factories/mocks/MockERC20__factory.d.ts +288 -0
  465. package/dist/types/typechain-types/psm/factories/mocks/MockFeeOnTransferERC20__factory.d.ts +356 -0
  466. package/dist/types/typechain-types/psm/factories/mocks/MockPmUSD__factory.d.ts +326 -0
  467. package/dist/types/typechain-types/psm/factories/mocks/MockProxy__factory.d.ts +108 -0
  468. package/dist/types/typechain-types/psm/factories/mocks/MockRebalancer.sol/IMockMintable__factory.d.ts +21 -0
  469. package/dist/types/typechain-types/psm/factories/mocks/MockRebalancer.sol/MockRebalancer__factory.d.ts +138 -0
  470. package/dist/types/typechain-types/psm/factories/mocks/MockRebalancer.sol/index.d.ts +2 -0
  471. package/dist/types/typechain-types/psm/factories/mocks/MockRebalancerV2.sol/IMockMintable__factory.d.ts +21 -0
  472. package/dist/types/typechain-types/psm/factories/mocks/MockRebalancerV2.sol/MockRebalancerV2__factory.d.ts +134 -0
  473. package/dist/types/typechain-types/psm/factories/mocks/MockRebalancerV2.sol/index.d.ts +2 -0
  474. package/dist/types/typechain-types/psm/factories/mocks/MockSavingsToken__factory.d.ts +330 -0
  475. package/dist/types/typechain-types/psm/factories/mocks/index.d.ts +9 -0
  476. package/dist/types/typechain-types/psm/factories/utils/index.d.ts +1 -0
  477. package/dist/types/typechain-types/psm/factories/utils/zap/AladdinZap__factory.d.ts +322 -0
  478. package/dist/types/typechain-types/psm/factories/utils/zap/TokenZapLogic__factory.d.ts +73 -0
  479. package/dist/types/typechain-types/psm/factories/utils/zap/index.d.ts +3 -0
  480. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/IBalancerPool__factory.d.ts +91 -0
  481. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/IBalancerVault__factory.d.ts +261 -0
  482. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/IConvexCRVDepositor__factory.d.ts +49 -0
  483. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveAPool.sol/ICurveA2Pool__factory.d.ts +305 -0
  484. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveAPool.sol/ICurveA3Pool__factory.d.ts +305 -0
  485. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveAPool.sol/ICurveA4Pool__factory.d.ts +305 -0
  486. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveAPool.sol/ICurveAPool__factory.d.ts +305 -0
  487. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveAPool.sol/index.d.ts +4 -0
  488. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveBasePool.sol/ICurveBase2Pool__factory.d.ts +39 -0
  489. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveBasePool.sol/ICurveBase3Pool__factory.d.ts +39 -0
  490. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveBasePool.sol/ICurveBase4Pool__factory.d.ts +39 -0
  491. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveBasePool.sol/ICurveBasePool__factory.d.ts +175 -0
  492. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveBasePool.sol/index.d.ts +4 -0
  493. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveCryptoPool.sol/ICurveCryptoPool__factory.d.ts +301 -0
  494. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveCryptoPool.sol/ICurveTriCryptoPool__factory.d.ts +165 -0
  495. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveCryptoPool.sol/IZapCurveMetaCryptoPool__factory.d.ts +181 -0
  496. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveCryptoPool.sol/index.d.ts +3 -0
  497. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveETHPool__factory.d.ts +155 -0
  498. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap3Pool__factory.d.ts +99 -0
  499. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap4Pool__factory.d.ts +99 -0
  500. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap__factory.d.ts +55 -0
  501. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryMetaPool.sol/ICurveFactoryMetaPool__factory.d.ts +193 -0
  502. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryMetaPool.sol/index.d.ts +4 -0
  503. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain2Pool__factory.d.ts +183 -0
  504. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain3Pool__factory.d.ts +183 -0
  505. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain4Pool__factory.d.ts +183 -0
  506. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlainPool__factory.d.ts +147 -0
  507. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveFactoryPlainPool.sol/index.d.ts +4 -0
  508. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveMetaPool.sol/ICurveMetaPoolDeposit__factory.d.ts +141 -0
  509. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveMetaPool.sol/ICurveMetaPoolSwap__factory.d.ts +227 -0
  510. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveMetaPool.sol/index.d.ts +2 -0
  511. package/dist/types/typechain-types/{factories/contracts/interfaces/core/governance/gauges/IVeBoostProxy__factory.d.ts → psm/factories/utils/zap/interfaces/ICurvePoolRegistry__factory.d.ts} +13 -24
  512. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/ICurveY2PoolDeposit__factory.d.ts +165 -0
  513. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/ICurveY2PoolSwap__factory.d.ts +193 -0
  514. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/ICurveY3PoolDeposit__factory.d.ts +165 -0
  515. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/ICurveY3PoolSwap__factory.d.ts +193 -0
  516. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/ICurveY4PoolDeposit__factory.d.ts +165 -0
  517. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/ICurveY4PoolSwap__factory.d.ts +193 -0
  518. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/ICurveYPoolDeposit__factory.d.ts +165 -0
  519. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/ICurveYPoolSwap__factory.d.ts +193 -0
  520. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ICurveYPool.sol/index.d.ts +8 -0
  521. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ILidoStETH__factory.d.ts +35 -0
  522. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/ILidoWstETH__factory.d.ts +83 -0
  523. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/IUniswapV2Pair__factory.d.ts +95 -0
  524. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/IUniswapV3Pool__factory.d.ts +115 -0
  525. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/IUniswapV3Router__factory.d.ts +54 -0
  526. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/IWETH__factory.d.ts +23 -0
  527. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/IZap__factory.d.ts +107 -0
  528. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/concentrator/IAladdinCRV__factory.d.ts +401 -0
  529. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/concentrator/IAladdinCompounder__factory.d.ts +350 -0
  530. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/concentrator/index.d.ts +2 -0
  531. package/dist/types/typechain-types/psm/factories/utils/zap/interfaces/index.d.ts +20 -0
  532. package/dist/types/typechain-types/psm/factories/v2/PSMVaultV2__factory.d.ts +1846 -0
  533. package/dist/types/typechain-types/psm/factories/v2/RebalancerV2.sol/IPSMVaultView__factory.d.ts +17 -0
  534. package/dist/types/typechain-types/psm/factories/v2/RebalancerV2.sol/IRateOracle__factory.d.ts +31 -0
  535. package/dist/types/typechain-types/psm/factories/v2/RebalancerV2.sol/IZap__factory.d.ts +33 -0
  536. package/dist/types/typechain-types/psm/factories/v2/RebalancerV2.sol/RebalancerV2__factory.d.ts +506 -0
  537. package/dist/types/typechain-types/psm/factories/v2/RebalancerV2.sol/index.d.ts +4 -0
  538. package/dist/types/typechain-types/psm/factories/v2/index.d.ts +2 -0
  539. package/dist/types/typechain-types/psm/factories/v3/PSMVaultV3__factory.d.ts +1955 -0
  540. package/dist/types/typechain-types/psm/factories/v3/RateProviderComposed__factory.d.ts +303 -0
  541. package/dist/types/typechain-types/psm/factories/v3/RateProviderDirect__factory.d.ts +293 -0
  542. package/dist/types/typechain-types/psm/factories/v3/index.d.ts +3 -0
  543. package/dist/types/typechain-types/psm/imports.sol/PSMProxyAdmin.d.ts +96 -0
  544. package/dist/types/typechain-types/psm/imports.sol/PSMTransparentProxy.d.ts +51 -0
  545. package/dist/types/typechain-types/psm/imports.sol/index.d.ts +2 -0
  546. package/dist/types/typechain-types/psm/index.d.ts +157 -0
  547. package/dist/types/typechain-types/psm/interfaces/IBaseAssetNav.d.ts +33 -0
  548. package/dist/types/typechain-types/psm/interfaces/IRateProvider.d.ts +75 -0
  549. package/dist/types/typechain-types/psm/interfaces/IRebalancer.d.ts +39 -0
  550. package/dist/types/typechain-types/psm/interfaces/ISavingsToken.d.ts +400 -0
  551. package/dist/types/typechain-types/psm/interfaces/index.d.ts +8 -0
  552. package/dist/types/typechain-types/psm/interfaces/v2/IRebalancerV2.d.ts +35 -0
  553. package/dist/types/typechain-types/psm/interfaces/v2/index.d.ts +1 -0
  554. package/dist/types/typechain-types/psm/interfaces/v3/IRateProviderV3.d.ts +75 -0
  555. package/dist/types/typechain-types/psm/interfaces/v3/index.d.ts +1 -0
  556. package/dist/types/typechain-types/psm/mocks/MockBaseAssetModule.d.ts +311 -0
  557. package/dist/types/typechain-types/psm/mocks/MockChainlinkFeed.d.ts +91 -0
  558. package/dist/types/typechain-types/psm/mocks/MockERC20.d.ts +179 -0
  559. package/dist/types/typechain-types/psm/mocks/MockFeeOnTransferERC20.d.ts +247 -0
  560. package/dist/types/typechain-types/psm/mocks/MockPmUSD.d.ts +213 -0
  561. package/dist/types/typechain-types/psm/mocks/MockProxy.d.ts +51 -0
  562. package/dist/types/typechain-types/psm/mocks/MockRebalancer.sol/IMockMintable.d.ts +35 -0
  563. package/dist/types/typechain-types/psm/mocks/MockRebalancer.sol/MockRebalancer.d.ts +125 -0
  564. package/dist/types/typechain-types/psm/mocks/MockRebalancer.sol/index.d.ts +2 -0
  565. package/dist/types/typechain-types/psm/mocks/MockRebalancerV2.sol/IMockMintable.d.ts +35 -0
  566. package/dist/types/typechain-types/psm/mocks/MockRebalancerV2.sol/MockRebalancerV2.d.ts +121 -0
  567. package/dist/types/typechain-types/psm/mocks/MockRebalancerV2.sol/index.d.ts +2 -0
  568. package/dist/types/typechain-types/psm/mocks/MockSavingsToken.d.ts +213 -0
  569. package/dist/types/typechain-types/psm/mocks/index.d.ts +11 -0
  570. package/dist/types/typechain-types/psm/utils/index.d.ts +2 -0
  571. package/dist/types/typechain-types/psm/utils/zap/AladdinZap.d.ts +276 -0
  572. package/dist/types/typechain-types/psm/utils/zap/TokenZapLogic.d.ts +59 -0
  573. package/dist/types/typechain-types/psm/utils/zap/index.d.ts +4 -0
  574. package/dist/types/typechain-types/psm/utils/zap/interfaces/IBalancerPool.d.ts +101 -0
  575. package/dist/types/typechain-types/psm/utils/zap/interfaces/IBalancerVault.d.ts +199 -0
  576. package/dist/types/typechain-types/psm/utils/zap/interfaces/IConvexCRVDepositor.d.ts +61 -0
  577. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveAPool.sol/ICurveA2Pool.d.ts +245 -0
  578. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveAPool.sol/ICurveA3Pool.d.ts +245 -0
  579. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveAPool.sol/ICurveA4Pool.d.ts +245 -0
  580. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveAPool.sol/ICurveAPool.d.ts +245 -0
  581. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveAPool.sol/index.d.ts +4 -0
  582. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveBasePool.sol/ICurveBase2Pool.d.ts +49 -0
  583. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveBasePool.sol/ICurveBase3Pool.d.ts +49 -0
  584. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveBasePool.sol/ICurveBase4Pool.d.ts +49 -0
  585. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveBasePool.sol/ICurveBasePool.d.ts +159 -0
  586. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveBasePool.sol/index.d.ts +4 -0
  587. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveCryptoPool.sol/ICurveCryptoPool.d.ts +249 -0
  588. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveCryptoPool.sol/ICurveTriCryptoPool.d.ts +153 -0
  589. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveCryptoPool.sol/IZapCurveMetaCryptoPool.d.ts +165 -0
  590. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveCryptoPool.sol/index.d.ts +3 -0
  591. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveETHPool.d.ts +135 -0
  592. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap.d.ts +55 -0
  593. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap3Pool.d.ts +87 -0
  594. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryMetaPool.sol/ICurveDepositZap4Pool.d.ts +87 -0
  595. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryMetaPool.sol/ICurveFactoryMetaPool.d.ts +159 -0
  596. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryMetaPool.sol/index.d.ts +4 -0
  597. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain2Pool.d.ts +159 -0
  598. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain3Pool.d.ts +159 -0
  599. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlain4Pool.d.ts +159 -0
  600. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryPlainPool.sol/ICurveFactoryPlainPool.d.ts +131 -0
  601. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveFactoryPlainPool.sol/index.d.ts +4 -0
  602. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveMetaPool.sol/ICurveMetaPoolDeposit.d.ts +133 -0
  603. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveMetaPool.sol/ICurveMetaPoolSwap.d.ts +191 -0
  604. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveMetaPool.sol/index.d.ts +2 -0
  605. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurvePoolRegistry.d.ts +45 -0
  606. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/ICurveY2PoolDeposit.d.ts +163 -0
  607. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/ICurveY2PoolSwap.d.ts +179 -0
  608. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/ICurveY3PoolDeposit.d.ts +163 -0
  609. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/ICurveY3PoolSwap.d.ts +179 -0
  610. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/ICurveY4PoolDeposit.d.ts +163 -0
  611. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/ICurveY4PoolSwap.d.ts +179 -0
  612. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/ICurveYPoolDeposit.d.ts +163 -0
  613. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/ICurveYPoolSwap.d.ts +179 -0
  614. package/dist/types/typechain-types/psm/utils/zap/interfaces/ICurveYPool.sol/index.d.ts +8 -0
  615. package/dist/types/typechain-types/psm/utils/zap/interfaces/ILidoStETH.d.ts +45 -0
  616. package/dist/types/typechain-types/psm/utils/zap/interfaces/ILidoWstETH.d.ts +89 -0
  617. package/dist/types/typechain-types/psm/utils/zap/interfaces/IUniswapV2Pair.d.ts +103 -0
  618. package/dist/types/typechain-types/psm/utils/zap/interfaces/IUniswapV3Pool.d.ts +113 -0
  619. package/dist/types/typechain-types/psm/utils/zap/interfaces/IUniswapV3Router.d.ts +55 -0
  620. package/dist/types/typechain-types/psm/utils/zap/interfaces/IWETH.d.ts +43 -0
  621. package/dist/types/typechain-types/psm/utils/zap/interfaces/IZap.d.ts +91 -0
  622. package/dist/types/typechain-types/psm/utils/zap/interfaces/concentrator/IAladdinCRV.d.ts +361 -0
  623. package/dist/types/typechain-types/psm/utils/zap/interfaces/concentrator/IAladdinCompounder.d.ts +290 -0
  624. package/dist/types/typechain-types/psm/utils/zap/interfaces/concentrator/index.d.ts +2 -0
  625. package/dist/types/typechain-types/psm/utils/zap/interfaces/index.d.ts +28 -0
  626. package/dist/types/typechain-types/psm/v2/PSMVaultV2.d.ts +1528 -0
  627. package/dist/types/typechain-types/psm/v2/RebalancerV2.sol/IPSMVaultView.d.ts +31 -0
  628. package/dist/types/typechain-types/psm/v2/RebalancerV2.sol/IRateOracle.d.ts +43 -0
  629. package/dist/types/typechain-types/psm/v2/RebalancerV2.sol/IZap.d.ts +39 -0
  630. package/dist/types/typechain-types/psm/v2/RebalancerV2.sol/RebalancerV2.d.ts +387 -0
  631. package/dist/types/typechain-types/psm/v2/RebalancerV2.sol/index.d.ts +4 -0
  632. package/dist/types/typechain-types/psm/v2/index.d.ts +3 -0
  633. package/dist/types/typechain-types/psm/v3/PSMVaultV3.d.ts +1631 -0
  634. package/dist/types/typechain-types/psm/v3/RateProviderComposed.d.ts +228 -0
  635. package/dist/types/typechain-types/psm/v3/RateProviderDirect.d.ts +218 -0
  636. package/dist/types/typechain-types/psm/v3/index.d.ts +3 -0
  637. package/dist/types/user/_helpers.d.ts +23 -0
  638. package/dist/types/user/computeEffectiveReturn.d.ts +67 -0
  639. package/dist/types/user/getUserClaimables.d.ts +55 -0
  640. package/dist/types/user/getUserCollateral.d.ts +12 -0
  641. package/dist/types/user/getUserDebt.d.ts +18 -0
  642. package/dist/types/user/getUserFarming.d.ts +64 -0
  643. package/dist/types/user/getUserGovernance.d.ts +20 -0
  644. package/dist/types/user/getUserPortfolio.d.ts +61 -0
  645. package/dist/types/user/getUserWalletBalances.d.ts +20 -0
  646. package/dist/types/user/index.d.ts +9 -0
  647. package/dist/types/utils/amount.d.ts +7 -0
  648. package/dist/types/utils/artifacts.d.ts +565 -126
  649. package/dist/types/utils/contracts.d.ts +38 -0
  650. package/dist/types/utils/errorDecoder.d.ts +29 -28
  651. package/dist/types/utils/rpcError.d.ts +52 -0
  652. package/dist/user/_helpers.js +22 -0
  653. package/dist/user/computeEffectiveReturn.js +33 -0
  654. package/dist/user/getUserClaimables.js +97 -0
  655. package/dist/user/getUserCollateral.js +29 -0
  656. package/dist/user/getUserDebt.js +32 -0
  657. package/dist/user/getUserFarming.js +100 -0
  658. package/dist/user/getUserGovernance.js +35 -0
  659. package/dist/user/getUserPortfolio.js +109 -0
  660. package/dist/user/getUserWalletBalances.js +30 -0
  661. package/dist/user/index.js +24 -0
  662. package/dist/utils/amount.js +10 -0
  663. package/dist/utils/artifacts.js +13 -0
  664. package/dist/utils/chain.js +2 -1
  665. package/dist/utils/config.js +0 -1
  666. package/dist/utils/contracts.js +5 -2
  667. package/dist/utils/errorDecoder.js +69 -117
  668. package/dist/utils/rpcError.js +159 -0
  669. package/dist/wallet/assets/approveAsset.js +10 -12
  670. package/dist/wallet/assets/burnAsset.js +14 -16
  671. package/dist/wallet/assets/getAllowance.js +4 -4
  672. package/dist/wallet/assets/getAsset.js +2 -2
  673. package/dist/wallet/assets/getBalance.js +4 -3
  674. package/dist/wallet/assets/mintAsset.js +14 -17
  675. package/dist/wallet/assets/transferAsset.js +7 -10
  676. package/package.json +4 -3
  677. package/dist/generated/errorMap.json +0 -3945
  678. package/dist/scripts/generateErrorMap.js +0 -180
  679. package/dist/types/scripts/generateErrorMap.d.ts +0 -1
  680. package/dist/types/typechain-types/contracts/core/governance/gauges/VeBoost.d.ts +0 -518
  681. package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IVeBoost.d.ts +0 -311
  682. package/dist/types/typechain-types/contracts/interfaces/core/governance/gauges/IVeBoostProxy.d.ts +0 -50
  683. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/VeBoostProxy__factory.d.ts +0 -152
  684. package/dist/types/typechain-types/factories/contracts/core/governance/gauges/VeBoost__factory.d.ts +0 -716
@@ -0,0 +1,15 @@
1
+ import { Signer } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ /**
4
+ * Buys ZENO: spends exactly `paymentAmount` of the payment token, sent to the issuer, at the price of the block it is
5
+ * mined in. Needs a payment token allowance for the auction (`wallet.assets.approveAsset`). Reverts while paused,
6
+ * outside the auction window, when the ZENO out would exceed what is left, or when it is below `minZenoOut`.
7
+ * @param chainId The chain id.
8
+ * @param auction The auction address.
9
+ * @param paymentAmount Payment token to spend, in base units.
10
+ * @param minZenoOut The least ZENO to accept, in ZENO base units; `quoteBuy` sizes it.
11
+ * @param signer The buyer, who receives the ZENO.
12
+ * @returns The transaction receipt; its `ZENOPurchased` log carries the ZENO minted and the price paid.
13
+ */
14
+ declare function buy(chainId: ChainId, auction: string, paymentAmount: bigint, minZenoOut: bigint, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
15
+ export default buy;
@@ -1,17 +1,27 @@
1
1
  import { Signer } from "ethers";
2
2
  import { ChainId } from "../../configs/chains/index";
3
+ /** How an auction's ZENO is backed by the underlying asset. Mirrors `IAuction.FundingMode`. */
4
+ export declare enum FundingMode {
5
+ /** The ZENO must already hold underlying for the full allocation. */
6
+ Prefilled = 0,
7
+ /** The issuer tops up the underlying before maturity. */
8
+ Float = 1
9
+ }
3
10
  /**
4
- * Creates a ZENO auction through the AuctionFactory.
11
+ * Creates a ZENO auction through the AuctionFactory. Only the factory owner can call this.
5
12
  * @param chainId The chain id.
6
13
  * @param zenoAddress The ZENO bond token sold.
7
- * @param usdcAddress The payment token bidders pay with.
8
- * @param businessAddress The issuer receiving the proceeds.
14
+ * @param tokenAddress The payment token bidders pay with.
15
+ * @param issuer The issuer receiving the proceeds.
9
16
  * @param auctionStartTime UNIX timestamp (seconds) the auction starts.
10
17
  * @param auctionEndTime UNIX timestamp (seconds) the auction ends.
11
18
  * @param startingPrice The Dutch auction starting price, in payment token base units per whole ZENO.
12
19
  * @param reservePrice The Dutch auction reserve price, in payment token base units per whole ZENO.
13
20
  * @param totalZenoAllocated The ZENO offered, in ZENO base units.
14
- * @param signer The signer sending the transaction.
21
+ * @param fundingMode How the ZENO is backed; `Prefilled` requires the ZENO to hold underlying for the full allocation.
22
+ * @param initialOwner The owner of the new auction.
23
+ * @param signer The factory owner.
24
+ * @returns The address of the new auction.
15
25
  */
16
- declare function createAuction(chainId: ChainId, zenoAddress: string, usdcAddress: string, businessAddress: string, auctionStartTime: bigint, auctionEndTime: bigint, startingPrice: bigint, reservePrice: bigint, totalZenoAllocated: bigint, signer: Signer): Promise<void>;
26
+ declare function createAuction(chainId: ChainId, zenoAddress: string, tokenAddress: string, issuer: string, auctionStartTime: bigint, auctionEndTime: bigint, startingPrice: bigint, reservePrice: bigint, totalZenoAllocated: bigint, fundingMode: FundingMode, initialOwner: string, signer: Signer): Promise<string>;
17
27
  export default createAuction;
@@ -1,4 +1,13 @@
1
1
  import { Signer } from "ethers";
2
2
  import { ChainId } from "../../configs/chains/index";
3
- declare function createZeno(chainId: ChainId, usdcAddress: string, maturityDate: string, signer: Signer): Promise<string>;
3
+ /**
4
+ * Creates a ZENO bond through the ZENOFactory. Only the factory owner can call this.
5
+ * @param chainId The chain id.
6
+ * @param tokenAddress The underlying asset the bond redeems for.
7
+ * @param maturityDate UNIX timestamp (seconds) the bond matures. Must be in the future.
8
+ * @param initialOwner The owner of the new bond, typically the auction or a multisig.
9
+ * @param signer The factory owner.
10
+ * @returns The address of the new ZENO bond.
11
+ */
12
+ declare function createZeno(chainId: ChainId, tokenAddress: string, maturityDate: bigint, initialOwner: string, signer: Signer): Promise<string>;
4
13
  export default createZeno;
@@ -0,0 +1,45 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ import { TokenAmount } from "../../utils/amount";
4
+ import { FundingMode } from "./createAuction";
5
+ /** A ZENO auction's terms and live state. Prices take the payment token's decimals, ZENO amounts the underlying's. */
6
+ export interface AuctionState {
7
+ /** The auction contract. */
8
+ auction: string;
9
+ /** The ZENO bond it sells. */
10
+ zeno: string;
11
+ /** What buyers pay with. */
12
+ paymentToken: string;
13
+ /** Receives every payment. */
14
+ issuer: string;
15
+ fundingMode: FundingMode;
16
+ /** UNIX timestamp (seconds) buying opens. */
17
+ startTime: bigint;
18
+ /** UNIX timestamp (seconds) buying closes, unless it sells out first. */
19
+ endTime: bigint;
20
+ /** Price at `startTime`, in payment token base units per whole ZENO. */
21
+ startingPrice: TokenAmount;
22
+ /** Price at and after `endTime`; equal to `startingPrice` for a fixed-price bond. */
23
+ reservePrice: TokenAmount;
24
+ /** True when the price does not decay. */
25
+ isFixedPrice: boolean;
26
+ /** `getPrice()` as of the block read. A Dutch price keeps falling every block, also while paused. */
27
+ price: TokenAmount;
28
+ /** ZENO on offer. */
29
+ totalAllocated: TokenAmount;
30
+ /** ZENO not yet sold; `buy` reverts when it would mint more. */
31
+ totalRemaining: TokenAmount;
32
+ /** True while `buy` is halted by the pauser. */
33
+ paused: boolean;
34
+ /** True once past `endTime` or sold out, as `checkAuctionEnded()` says. */
35
+ ended: boolean;
36
+ }
37
+ /**
38
+ * Reads one auction's terms and live state.
39
+ * @param chainId The chain id.
40
+ * @param auction The auction address.
41
+ * @param provider The provider to read with. Defaults to the chain's first configured RPC.
42
+ * @returns The auction's state.
43
+ */
44
+ declare function getAuctionState(chainId: ChainId, auction: string, provider?: Provider): Promise<AuctionState>;
45
+ export default getAuctionState;
@@ -1,14 +1,17 @@
1
- import { Signer } from "ethers";
1
+ import { Provider } from "ethers";
2
2
  import { ChainId } from "../../configs/chains/index";
3
3
  import { TokenAmount } from "../../utils/amount";
4
+ import { FundingMode } from "./createAuction";
4
5
  /** A ZENO auction, with its amounts in base units. */
5
6
  export interface AuctionDetails {
6
7
  /** The auction contract address. */
7
8
  auctionAddress: string;
8
9
  /** The ZENO bond token sold. */
9
10
  zenoAddress: string;
11
+ /** The payment token bidders pay with. */
12
+ tokenAddress: string;
10
13
  /** The issuer receiving the proceeds. */
11
- businessAddress: string;
14
+ issuer: string;
12
15
  /** UNIX timestamp (seconds) the auction starts. */
13
16
  auctionStartTime: bigint;
14
17
  /** UNIX timestamp (seconds) the auction ends. */
@@ -23,19 +26,16 @@ export interface AuctionDetails {
23
26
  totalZENOAllocated: TokenAmount;
24
27
  /** ZENO still unsold, in ZENO base units. */
25
28
  totalZENORemaining: TokenAmount;
26
- /** UNIX timestamp (seconds) of the last bid. */
27
- lastBidTime: bigint;
28
- /** The address of the last bidder. */
29
- lastBidder: string;
30
- /** The last bid, in payment token base units. */
31
- lastBidAmount: TokenAmount;
29
+ /** How the auction's ZENO is backed by the underlying asset. */
30
+ fundingMode: FundingMode;
32
31
  }
33
32
  /**
34
33
  * Lists every auction created by the AuctionFactory.
35
34
  * @param chainId The chain id.
36
- * @param signer The signer to read with.
37
- * @returns One record per auction. Price and bid amounts use the auction's payment token, ZENO amounts the ZENO
38
- * token; decimals and symbols come from the chain config registry and fall back to 18 when the token is not listed.
35
+ * @param provider The provider to read with. Defaults to the chain's first configured RPC.
36
+ * @returns One record per auction. Price amounts use the auction's payment token, ZENO amounts the ZENO's underlying,
37
+ * whose decimals ZENO shares; decimals and symbols come from the chain config registry and fall back to 18 when the
38
+ * token is not listed.
39
39
  */
40
- declare function getAuctions(chainId: ChainId, signer: Signer): Promise<AuctionDetails[]>;
40
+ declare function getAuctions(chainId: ChainId, provider?: Provider): Promise<AuctionDetails[]>;
41
41
  export default getAuctions;
@@ -0,0 +1,42 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ import { TokenAmount } from "../../utils/amount";
4
+ /** A ZENO bond's live state. ZENO amounts take the underlying's decimals. */
5
+ export interface BondState {
6
+ /** The ZENO bond contract. */
7
+ zeno: string;
8
+ /** ERC20 name, e.g. `ZENO Bond 20270101`. */
9
+ name: string;
10
+ /** ERC20 symbol, e.g. `ZENO-20270101`. */
11
+ symbol: string;
12
+ /** What 1 ZENO redeems for at maturity. */
13
+ underlying: string;
14
+ /** The auction bound by `setAuction`, the only one that can mint; null until it is set. */
15
+ auction: string | null;
16
+ /** UNIX timestamp (seconds) the bond matures. */
17
+ maturityDate: bigint;
18
+ /** True once maturity has passed. Redemption also needs `isFunded`. */
19
+ isRedeemable: boolean;
20
+ /** ZENO minted over the bond's lifetime; never falls. */
21
+ totalMinted: TokenAmount;
22
+ /** ZENO outstanding, still to be redeemed. */
23
+ totalSupply: TokenAmount;
24
+ /** ZENO redeemed for the underlying. */
25
+ totalRedeemed: TokenAmount;
26
+ /** Underlying held by the ZENO, in the underlying's base units. */
27
+ collateral: TokenAmount;
28
+ /** Underlying above outstanding supply, which the owner may sweep once the auction has ended. */
29
+ sweepableSurplus: TokenAmount;
30
+ /** True when collateral covers outstanding supply. `redeem` reverts with `InsufficientCollateral` while it is false, which only a Float bond the issuer has not topped up can reach. */
31
+ isFunded: boolean;
32
+ }
33
+ /**
34
+ * Reads a ZENO bond's live state: supply, collateral and whether it can be redeemed. Collateral is read here rather
35
+ * than indexed, because top-ups are plain transfers on the underlying that no ZENO event records.
36
+ * @param chainId The chain id.
37
+ * @param zeno The ZENO bond address.
38
+ * @param provider The provider to read with. Defaults to the chain's first configured RPC.
39
+ * @returns The bond's state.
40
+ */
41
+ declare function getBondState(chainId: ChainId, zeno: string, provider?: Provider): Promise<BondState>;
42
+ export default getBondState;
@@ -0,0 +1,12 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ import { TokenAmount } from "../../utils/amount";
4
+ /**
5
+ * Reads an auction's current price. Read it right before `buy` to size `minZenoOut`: a Dutch price falls every block.
6
+ * @param chainId The chain id.
7
+ * @param auction The auction address.
8
+ * @param provider The provider to read with. Defaults to the chain's first configured RPC.
9
+ * @returns The price in payment token base units per whole ZENO.
10
+ */
11
+ declare function getPrice(chainId: ChainId, auction: string, provider?: Provider): Promise<TokenAmount>;
12
+ export default getPrice;
@@ -1,4 +1,27 @@
1
- import { Signer } from "ethers";
1
+ import { Provider } from "ethers";
2
2
  import { ChainId } from "../../configs/chains/index";
3
- declare function getZenos(chainId: ChainId, signer: Signer): Promise<any[]>;
3
+ import { TokenAmount } from "../../utils/amount";
4
+ /** A ZENO bond, with its amounts in base units. */
5
+ export interface ZenoDetails {
6
+ /** The ZENO bond contract address. */
7
+ zenoAddress: string;
8
+ /** UNIX timestamp (seconds) the bond matures. */
9
+ maturityDate: bigint;
10
+ /** The bond's ERC20 name, e.g. `ZENO Bond 20270101`. */
11
+ name: string;
12
+ /** The bond's ERC20 symbol, e.g. `ZENO-20270101`. */
13
+ symbol: string;
14
+ /** ZENO minted over the bond's lifetime, in ZENO base units. */
15
+ totalMinted: TokenAmount;
16
+ /** ZENO redeemed for the underlying, in ZENO base units. */
17
+ totalRedeemed: TokenAmount;
18
+ }
19
+ /**
20
+ * Lists every ZENO bond created by the ZENOFactory.
21
+ * @param chainId The chain id.
22
+ * @param provider The provider to read with. Defaults to the chain's first configured RPC.
23
+ * @returns One record per bond. ZENO shares its underlying's decimals, so amounts take the underlying's from the chain
24
+ * config registry and fall back to 18 when it is not listed.
25
+ */
26
+ declare function getZenos(chainId: ChainId, provider?: Provider): Promise<ZenoDetails[]>;
4
27
  export default getZenos;
@@ -0,0 +1,22 @@
1
+ import { Signer } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ /**
4
+ * Grants an auction role, e.g. PAUSER_ROLE to a guardian bot. DEFAULT_ADMIN_ROLE only.
5
+ * @param chainId The chain id.
6
+ * @param auction The auction address.
7
+ * @param role The bytes32 role identifier: `keccak256("PAUSER_ROLE")`, or the zero hash for DEFAULT_ADMIN_ROLE.
8
+ * @param account The address to grant it to.
9
+ * @param signer A DEFAULT_ADMIN_ROLE holder.
10
+ * @returns The transaction receipt.
11
+ */
12
+ export declare function grantRole(chainId: ChainId, auction: string, role: string, account: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
13
+ /**
14
+ * Revokes an auction role. DEFAULT_ADMIN_ROLE only.
15
+ * @param chainId The chain id.
16
+ * @param auction The auction address.
17
+ * @param role The bytes32 role identifier: `keccak256("PAUSER_ROLE")`, or the zero hash for DEFAULT_ADMIN_ROLE.
18
+ * @param account The address to revoke it from.
19
+ * @param signer A DEFAULT_ADMIN_ROLE holder.
20
+ * @returns The transaction receipt.
21
+ */
22
+ export declare function revokeRole(chainId: ChainId, auction: string, role: string, account: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
@@ -0,0 +1,18 @@
1
+ import { Signer } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ /**
4
+ * Halts `buy` on an auction. PAUSER_ROLE only. A Dutch price keeps falling while paused.
5
+ * @param chainId The chain id.
6
+ * @param auction The auction address.
7
+ * @param signer A PAUSER_ROLE holder.
8
+ * @returns The transaction receipt.
9
+ */
10
+ export declare function pause(chainId: ChainId, auction: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
11
+ /**
12
+ * Resumes `buy` on an auction. DEFAULT_ADMIN_ROLE only, so a compromised pauser cannot reopen buying.
13
+ * @param chainId The chain id.
14
+ * @param auction The auction address.
15
+ * @param signer A DEFAULT_ADMIN_ROLE holder.
16
+ * @returns The transaction receipt.
17
+ */
18
+ export declare function unpause(chainId: ChainId, auction: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
@@ -0,0 +1,20 @@
1
+ /** The auction terms that set its price. All values as the contract stores them. */
2
+ export interface AuctionPriceTerms {
3
+ /** UNIX timestamp (seconds). */
4
+ startTime: bigint;
5
+ /** UNIX timestamp (seconds). */
6
+ endTime: bigint;
7
+ /** Payment token base units per whole ZENO. */
8
+ startingPrice: bigint;
9
+ /** Payment token base units per whole ZENO. */
10
+ reservePrice: bigint;
11
+ }
12
+ /**
13
+ * An auction's price at `now`, computed locally without an RPC call. Mirrors `Auction.getPrice()` exactly, truncating
14
+ * division included: the starting price before the window, the reserve from `endTime` on, a linear fall between.
15
+ *
16
+ * @param terms The auction's price terms, e.g. from `getAuctionState` or the subgraph's `BondAuction`.
17
+ * @param now UNIX timestamp (seconds). Use the latest block timestamp to match the contract exactly.
18
+ * @returns The price in payment token base units per whole ZENO.
19
+ */
20
+ export declare const priceAt: (terms: AuctionPriceTerms, now: bigint) => bigint;
@@ -0,0 +1,34 @@
1
+ export interface BuyQuoteInput {
2
+ /** Price in payment token base units per whole ZENO, from `priceAt` or `getPrice`. */
3
+ price: bigint;
4
+ /** Payment token to spend, in base units. */
5
+ paymentAmount: bigint;
6
+ /** ZENO decimals, equal to the underlying's. */
7
+ zenoDecimals: number;
8
+ /** ZENO left to sell, in base units (`totalRemaining`). */
9
+ totalRemaining: bigint;
10
+ /** Tolerance below `zenoOut` for `minZenoOut`, in basis points (10000 = 100%). Defaults to 0. */
11
+ slippageBps?: bigint;
12
+ }
13
+ export interface BuyQuote {
14
+ /** ZENO minted for `paymentAmount` at `price`, in base units. */
15
+ zenoOut: bigint;
16
+ /** `zenoOut` less the slippage tolerance; pass it to `buy` as `minZenoOut`. */
17
+ minZenoOut: bigint;
18
+ /** The largest payment `buy` accepts at `price`; anything above mints more than `totalRemaining` and reverts. */
19
+ maxPayment: bigint;
20
+ /** True when `paymentAmount` is above `maxPayment`. */
21
+ exceedsRemaining: boolean;
22
+ }
23
+ /**
24
+ * What a buy mints, computed locally without an RPC call with `Auction.buy`'s integer maths:
25
+ * `zenoOut = paymentAmount * 10^zenoDecimals / price`, truncated.
26
+ *
27
+ * A Dutch price only falls, so a buy mined after the quote mints at least `zenoOut`; `minZenoOut` guards against a
28
+ * fixed price or a stale quote. The same fall means a payment at exactly `maxPayment` can revert a block later, so
29
+ * leave headroom when buying out the remainder.
30
+ *
31
+ * @param input The price, payment, ZENO decimals, remaining supply and slippage tolerance.
32
+ * @returns The ZENO out, the `minZenoOut` to send, and the payment ceiling.
33
+ */
34
+ export declare const quoteBuy: (input: BuyQuoteInput) => BuyQuote;
@@ -0,0 +1,20 @@
1
+ import { Signer } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ /**
4
+ * Redeems ZENO 1:1 for the underlying. Reverts before maturity, and while the bond's collateral is short of its
5
+ * outstanding supply (`getBondState(...).isFunded`).
6
+ * @param chainId The chain id.
7
+ * @param zeno The ZENO bond address.
8
+ * @param amount ZENO to redeem, in base units.
9
+ * @param signer The holder, who receives the underlying.
10
+ * @returns The transaction receipt.
11
+ */
12
+ export declare function redeem(chainId: ChainId, zeno: string, amount: bigint, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
13
+ /**
14
+ * Redeems the signer's whole ZENO balance for the underlying. Same conditions as `redeem`.
15
+ * @param chainId The chain id.
16
+ * @param zeno The ZENO bond address.
17
+ * @param signer The holder, who receives the underlying.
18
+ * @returns The transaction receipt.
19
+ */
20
+ export declare function redeemAll(chainId: ChainId, zeno: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
@@ -0,0 +1,13 @@
1
+ import { Signer } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ /**
4
+ * Binds a ZENO to the auction that sells it. One-shot, ZENO owner only; reverts unless the auction's `zeno()` points
5
+ * back at this ZENO. Until it is set, the auction's buys revert.
6
+ * @param chainId The chain id.
7
+ * @param zeno The ZENO bond address.
8
+ * @param auction The auction created for it.
9
+ * @param signer The ZENO owner.
10
+ * @returns The transaction receipt.
11
+ */
12
+ declare function setAuction(chainId: ChainId, zeno: string, auction: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
13
+ export default setAuction;
@@ -0,0 +1,14 @@
1
+ import { Signer } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ /**
4
+ * Sweeps underlying held above the ZENO's outstanding supply: unsold prefill, overpayments and post-maturity residue.
5
+ * ZENO owner only, and only once the bound auction has ended. `getBondState(...).sweepableSurplus` is the most it takes.
6
+ * @param chainId The chain id.
7
+ * @param zeno The ZENO bond address.
8
+ * @param to The recipient of the underlying.
9
+ * @param amount Underlying to sweep, in base units.
10
+ * @param signer The ZENO owner.
11
+ * @returns The transaction receipt.
12
+ */
13
+ declare function sweepSurplus(chainId: ChainId, zeno: string, to: string, amount: bigint, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
14
+ export default sweepSurplus;
@@ -1,3 +1,4 @@
1
1
  import RPCLibrary from "./RPCLibrary";
2
2
  export * from "./utils/amount";
3
+ export * from "./utils/rpcError";
3
4
  export default RPCLibrary;
@@ -0,0 +1,13 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../configs/chains/index";
3
+ import { NftContractNames } from "./approveNFT";
4
+ /**
5
+ * Get how many tokens of an NFT contract an address holds
6
+ * @param chainId - The chain ID
7
+ * @param nftContractName - The NFT contract name from configs
8
+ * @param owner - The address to check
9
+ * @param provider - The provider to use for the contract call
10
+ * @returns The number of tokens held
11
+ */
12
+ declare function getNFTBalance(chainId: ChainId, nftContractName: NftContractNames, owner: string, provider: Provider): Promise<bigint>;
13
+ export default getNFTBalance;
@@ -0,0 +1,15 @@
1
+ import { ethers, Signer } from "ethers";
2
+ import { ChainId } from "../configs/chains/index";
3
+ import { NftContractNames } from "./approveNFT";
4
+ /**
5
+ * Transfer an NFT from the signer to another address with safeTransferFrom
6
+ * Do not use it to put a Bot NFT into the bot locker: the locker only records NFTs deposited through `lockers.botLocker.lock`.
7
+ * @param chainId - The chain ID
8
+ * @param nftContractName - The NFT contract name from configs
9
+ * @param to - The recipient address
10
+ * @param tokenId - The token ID to transfer
11
+ * @param signer - The signer that owns the token
12
+ * @returns Transaction receipt
13
+ */
14
+ declare function transferNFT(chainId: ChainId, nftContractName: NftContractNames, to: string, tokenId: string | number | bigint, signer: Signer): Promise<ethers.ContractTransactionReceipt>;
15
+ export default transferNFT;
@@ -1,4 +1,4 @@
1
- import { Signer } from "ethers";
1
+ import { Provider, Signer } from "ethers";
2
2
  import { ChainId } from "../../../../configs/chains";
3
3
  import { TokenAmount } from "../../../../utils/amount";
4
4
  /**
@@ -6,8 +6,8 @@ import { TokenAmount } from "../../../../utils/amount";
6
6
  * @param chainId The chain id, used to look up the adapter token's decimals in the token registry.
7
7
  * @param adapterAddress The ERC20 asset adapter address.
8
8
  * @param userAddress The user.
9
- * @param signer The signer to read with.
9
+ * @param runner The signer or provider to read with. A read-only provider is enough.
10
10
  * @returns The deposited balance in base units of the adapter's token, with its registry decimals and symbol (18 decimals if the token is not in the registry).
11
11
  */
12
- declare function getERC20AdapterBalance(chainId: ChainId, adapterAddress: string, userAddress: string, signer: Signer): Promise<TokenAmount>;
12
+ declare function getERC20AdapterBalance(chainId: ChainId, adapterAddress: string, userAddress: string, runner: Signer | Provider): Promise<TokenAmount>;
13
13
  export default getERC20AdapterBalance;
@@ -0,0 +1,15 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../../configs/chains/index";
3
+ export type RedeemEligibilityReason = "no-draw" | "kyc" | "not-redeemable" | "insufficient-shares" | "other";
4
+ export interface RedeemEligibility {
5
+ eligible: boolean;
6
+ reason?: RedeemEligibilityReason;
7
+ adapter?: string;
8
+ tokenId?: string;
9
+ }
10
+ /**
11
+ * Simulates a redeem (via `staticCall`, no transaction sent) to determine
12
+ * whether `account` can currently redeem an NFT from the RWA vault, reading
13
+ * the revert name from each simulated call to classify why not, when not.
14
+ */
15
+ export declare function checkRedeemEligibility(chainId: ChainId, account: string, maxSharesBurn: bigint, provider?: Provider): Promise<RedeemEligibility>;
@@ -0,0 +1,14 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../../configs/chains";
3
+ export interface WithdrawTimelockConfig {
4
+ /** Seconds after a withdraw request before it's ready. */
5
+ duration: number;
6
+ /** Seconds a ready request stays valid before it expires. */
7
+ delay: number;
8
+ }
9
+ /**
10
+ * Reads the stability pool's withdraw timelock configuration. The pool's
11
+ * actual enforced window for a given request is `readyAt + delay` (see
12
+ * `getWithdrawRequestInfo`'s `readyAt`), not `withdrawTimelock(user).expireAt`.
13
+ */
14
+ export declare function getWithdrawTimelockConfig(chainId: ChainId, provider?: Provider): Promise<WithdrawTimelockConfig>;
@@ -0,0 +1,2 @@
1
+ /** Simple staking APY = annualized emission value (RAAC x $) over staked value. */
2
+ export declare function computeStakingAPY(weeklyEmissionRAAC: number, stakedAmount: number, stakingTokenPriceUSD: number): number;
@@ -0,0 +1,3 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../configs/chains";
3
+ export declare function getCurveLPPriceUSD(chainId: ChainId, token: string, provider?: Provider): Promise<number | null>;
@@ -1,12 +1,8 @@
1
1
  import { ScaledValue } from "../utils/amount";
2
- /** Placeholder USD prices per whole token, each scaled by 1e18. */
3
- export interface Prices {
4
- pmUSD: ScaledValue;
5
- crvUSD: ScaledValue;
6
- raac: ScaledValue;
7
- }
2
+ /** USD price per whole token, each scaled by 1e18, keyed by lowercase symbol. */
3
+ export type Prices = Record<string, ScaledValue>;
8
4
  /**
9
- * Returns the USD price of each token.
10
- * @returns The prices, each a USD price per whole token scaled by 1e18.
5
+ * Returns the static USD price of each known token.
6
+ * @returns The prices, each a USD price per whole token scaled by 1e18, keyed by lowercase symbol.
11
7
  */
12
8
  export declare const getPrices: () => Promise<Prices>;
@@ -0,0 +1,16 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../configs/chains";
3
+ export interface StakingTokenLike {
4
+ stakingToken?: string;
5
+ stakingTokenSymbol?: string;
6
+ wrapped?: boolean;
7
+ wrapper?: string;
8
+ underlyingSymbol?: string;
9
+ }
10
+ /**
11
+ * USD value of one unit of a gauge's staking token:
12
+ * - wrapped gauges -> ERC4626 wrapper share price (underlying reserve token value),
13
+ * - Curve-LP staking tokens -> LP price from pool reserves,
14
+ * - otherwise -> static price by symbol.
15
+ */
16
+ export declare function getStakingTokenPriceUSD(chainId: ChainId, gauge: StakingTokenLike, provider?: Provider): Promise<number>;
@@ -0,0 +1,7 @@
1
+ import { Provider } from "ethers";
2
+ import { ChainId } from "../configs/chains";
3
+ /**
4
+ * USD value of one ERC4626 wrapper share = assets-per-share x underlying price
5
+ * (e.g. a wrapped RToken share -> its reserve token per share x that token's price).
6
+ */
7
+ export declare function getWrapperPriceUSD(chainId: ChainId, wrapper: string, underlyingSymbol?: string, provider?: Provider): Promise<number>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Canonical static USD price per whole token, by lowercase symbol. Testnet
3
+ * placeholder values - swap for a real oracle/feed in production.
4
+ */
5
+ export declare const TOKEN_PRICES_USD: Record<string, number>;
6
+ /** Static USD price for a token symbol (0 if unknown). */
7
+ export declare function getTokenPriceUSD(symbol?: string): number;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Generates generated/errors.json: one entry per (contract, error) pair, with
3
+ * an AI-drafted title/message, meant for human review in the PR that
4
+ * regenerates it. See rpc#16.
5
+ *
6
+ * Keeps one entry per contract, keyed `${ContractType}:${selector}` - the
7
+ * same ContractType key findContract/RpcError already use - rather than
8
+ * collapsing same-named errors from different contracts into one entry,
9
+ * which was the root cause of rpc#16's "contract" field problem.
10
+ *
11
+ * Needs a checkout of the sibling `contracts` repo (../contracts relative to
12
+ * this repo) for Solidity source/NatSpec, and ANTHROPIC_API_KEY in .env. Not
13
+ * part of `npm run build` - run by hand, output committed and reviewed like
14
+ * any other code.
15
+ *
16
+ * Run:
17
+ * npm run generate:catalogue
18
+ */
19
+ import { ContractType } from "../utils/artifacts";
20
+ interface ErrorEntry {
21
+ contractType: ContractType;
22
+ contractName: string;
23
+ sourceName: string;
24
+ name: string;
25
+ signature: string;
26
+ selector: string;
27
+ inputs: {
28
+ name: string;
29
+ type: string;
30
+ }[];
31
+ }
32
+ interface ErrorContext {
33
+ natspec: string | null;
34
+ usageSnippets: string[];
35
+ }
36
+ export declare function collectErrors(): ErrorEntry[];
37
+ /**
38
+ * NatSpec immediately above the `error` declaration, if any, plus every
39
+ * `revert ErrorName(` usage found anywhere in the file. Errors are not always
40
+ * declared near their revert sites (RWAVault.sol declares 5 at the end of the
41
+ * file while they're thrown 300+ lines earlier), so usage is gathered
42
+ * file-wide, independent of where the declaration sits.
43
+ */
44
+ export declare function extractContext(sourceName: string, errorName: string): ErrorContext;
45
+ export {};
@@ -2,6 +2,8 @@ import type * as access from "./access";
2
2
  export type { access };
3
3
  import type * as interfaces from "./interfaces";
4
4
  export type { interfaces };
5
+ import type * as proxy from "./proxy";
6
+ export type { proxy };
5
7
  import type * as token from "./token";
6
8
  export type { token };
7
9
  import type * as utils from "./utils";