@humanode-hyperlane/rebalancer 0.0.0-stage → 27.2.2

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 (439) hide show
  1. package/LICENSE.md +193 -0
  2. package/README.md +297 -2
  3. package/dist/bridges/LiFiBridge.d.ts +93 -0
  4. package/dist/bridges/LiFiBridge.d.ts.map +1 -0
  5. package/dist/bridges/LiFiBridge.js +527 -0
  6. package/dist/bridges/LiFiBridge.js.map +1 -0
  7. package/dist/bridges/LiFiBridge.test.d.ts +2 -0
  8. package/dist/bridges/LiFiBridge.test.d.ts.map +1 -0
  9. package/dist/bridges/LiFiBridge.test.js +504 -0
  10. package/dist/bridges/LiFiBridge.test.js.map +1 -0
  11. package/dist/config/RebalancerConfig.d.ts +20 -0
  12. package/dist/config/RebalancerConfig.d.ts.map +1 -0
  13. package/dist/config/RebalancerConfig.js +35 -0
  14. package/dist/config/RebalancerConfig.js.map +1 -0
  15. package/dist/config/RebalancerConfig.test.d.ts +2 -0
  16. package/dist/config/RebalancerConfig.test.d.ts.map +1 -0
  17. package/dist/config/RebalancerConfig.test.js +798 -0
  18. package/dist/config/RebalancerConfig.test.js.map +1 -0
  19. package/dist/config/types.d.ts +3008 -0
  20. package/dist/config/types.d.ts.map +1 -0
  21. package/dist/config/types.js +451 -0
  22. package/dist/config/types.js.map +1 -0
  23. package/dist/core/InventoryRebalancer.d.ts +201 -0
  24. package/dist/core/InventoryRebalancer.d.ts.map +1 -0
  25. package/dist/core/InventoryRebalancer.js +994 -0
  26. package/dist/core/InventoryRebalancer.js.map +1 -0
  27. package/dist/core/InventoryRebalancer.test.d.ts +2 -0
  28. package/dist/core/InventoryRebalancer.test.d.ts.map +1 -0
  29. package/dist/core/InventoryRebalancer.test.js +1511 -0
  30. package/dist/core/InventoryRebalancer.test.js.map +1 -0
  31. package/dist/core/Rebalancer.d.ts +37 -0
  32. package/dist/core/Rebalancer.d.ts.map +1 -0
  33. package/dist/core/Rebalancer.js +433 -0
  34. package/dist/core/Rebalancer.js.map +1 -0
  35. package/dist/core/Rebalancer.test.d.ts +2 -0
  36. package/dist/core/Rebalancer.test.d.ts.map +1 -0
  37. package/dist/core/Rebalancer.test.js +424 -0
  38. package/dist/core/Rebalancer.test.js.map +1 -0
  39. package/dist/core/RebalancerOrchestrator.d.ts +56 -0
  40. package/dist/core/RebalancerOrchestrator.d.ts.map +1 -0
  41. package/dist/core/RebalancerOrchestrator.js +154 -0
  42. package/dist/core/RebalancerOrchestrator.js.map +1 -0
  43. package/dist/core/RebalancerOrchestrator.test.d.ts +2 -0
  44. package/dist/core/RebalancerOrchestrator.test.d.ts.map +1 -0
  45. package/dist/core/RebalancerOrchestrator.test.js +721 -0
  46. package/dist/core/RebalancerOrchestrator.test.js.map +1 -0
  47. package/dist/core/RebalancerService.d.ts +127 -0
  48. package/dist/core/RebalancerService.d.ts.map +1 -0
  49. package/dist/core/RebalancerService.js +270 -0
  50. package/dist/core/RebalancerService.js.map +1 -0
  51. package/dist/core/RebalancerService.test.d.ts +2 -0
  52. package/dist/core/RebalancerService.test.d.ts.map +1 -0
  53. package/dist/core/RebalancerService.test.js +777 -0
  54. package/dist/core/RebalancerService.test.js.map +1 -0
  55. package/dist/e2e/collateral-deficit.e2e-test.d.ts +2 -0
  56. package/dist/e2e/collateral-deficit.e2e-test.d.ts.map +1 -0
  57. package/dist/e2e/collateral-deficit.e2e-test.js +227 -0
  58. package/dist/e2e/collateral-deficit.e2e-test.js.map +1 -0
  59. package/dist/e2e/composite.e2e-test.d.ts +2 -0
  60. package/dist/e2e/composite.e2e-test.d.ts.map +1 -0
  61. package/dist/e2e/composite.e2e-test.js +666 -0
  62. package/dist/e2e/composite.e2e-test.js.map +1 -0
  63. package/dist/e2e/fixtures/routes.d.ts +89 -0
  64. package/dist/e2e/fixtures/routes.d.ts.map +1 -0
  65. package/dist/e2e/fixtures/routes.js +420 -0
  66. package/dist/e2e/fixtures/routes.js.map +1 -0
  67. package/dist/e2e/harness/BaseLocalDeploymentManager.d.ts +38 -0
  68. package/dist/e2e/harness/BaseLocalDeploymentManager.d.ts.map +1 -0
  69. package/dist/e2e/harness/BaseLocalDeploymentManager.js +144 -0
  70. package/dist/e2e/harness/BaseLocalDeploymentManager.js.map +1 -0
  71. package/dist/e2e/harness/BridgeSetup.d.ts +11 -0
  72. package/dist/e2e/harness/BridgeSetup.d.ts.map +1 -0
  73. package/dist/e2e/harness/BridgeSetup.js +50 -0
  74. package/dist/e2e/harness/BridgeSetup.js.map +1 -0
  75. package/dist/e2e/harness/Erc20InventoryLocalDeploymentManager.d.ts +13 -0
  76. package/dist/e2e/harness/Erc20InventoryLocalDeploymentManager.d.ts.map +1 -0
  77. package/dist/e2e/harness/Erc20InventoryLocalDeploymentManager.js +105 -0
  78. package/dist/e2e/harness/Erc20InventoryLocalDeploymentManager.js.map +1 -0
  79. package/dist/e2e/harness/Erc20LocalDeploymentManager.d.ts +11 -0
  80. package/dist/e2e/harness/Erc20LocalDeploymentManager.d.ts.map +1 -0
  81. package/dist/e2e/harness/Erc20LocalDeploymentManager.js +105 -0
  82. package/dist/e2e/harness/Erc20LocalDeploymentManager.js.map +1 -0
  83. package/dist/e2e/harness/ForkIndexer.d.ts +23 -0
  84. package/dist/e2e/harness/ForkIndexer.d.ts.map +1 -0
  85. package/dist/e2e/harness/ForkIndexer.js +127 -0
  86. package/dist/e2e/harness/ForkIndexer.js.map +1 -0
  87. package/dist/e2e/harness/ForkIndexer.test.d.ts +2 -0
  88. package/dist/e2e/harness/ForkIndexer.test.d.ts.map +1 -0
  89. package/dist/e2e/harness/ForkIndexer.test.js +257 -0
  90. package/dist/e2e/harness/ForkIndexer.test.js.map +1 -0
  91. package/dist/e2e/harness/MixedLocalDeploymentManager.d.ts +21 -0
  92. package/dist/e2e/harness/MixedLocalDeploymentManager.d.ts.map +1 -0
  93. package/dist/e2e/harness/MixedLocalDeploymentManager.js +115 -0
  94. package/dist/e2e/harness/MixedLocalDeploymentManager.js.map +1 -0
  95. package/dist/e2e/harness/MockExplorerClient.d.ts +23 -0
  96. package/dist/e2e/harness/MockExplorerClient.d.ts.map +1 -0
  97. package/dist/e2e/harness/MockExplorerClient.js +57 -0
  98. package/dist/e2e/harness/MockExplorerClient.js.map +1 -0
  99. package/dist/e2e/harness/MockExternalBridge.d.ts +32 -0
  100. package/dist/e2e/harness/MockExternalBridge.d.ts.map +1 -0
  101. package/dist/e2e/harness/MockExternalBridge.js +247 -0
  102. package/dist/e2e/harness/MockExternalBridge.js.map +1 -0
  103. package/dist/e2e/harness/NativeLocalDeploymentManager.d.ts +13 -0
  104. package/dist/e2e/harness/NativeLocalDeploymentManager.d.ts.map +1 -0
  105. package/dist/e2e/harness/NativeLocalDeploymentManager.js +91 -0
  106. package/dist/e2e/harness/NativeLocalDeploymentManager.js.map +1 -0
  107. package/dist/e2e/harness/SnapshotHelper.d.ts +13 -0
  108. package/dist/e2e/harness/SnapshotHelper.d.ts.map +1 -0
  109. package/dist/e2e/harness/SnapshotHelper.js +36 -0
  110. package/dist/e2e/harness/SnapshotHelper.js.map +1 -0
  111. package/dist/e2e/harness/TestHelpers.d.ts +25 -0
  112. package/dist/e2e/harness/TestHelpers.d.ts.map +1 -0
  113. package/dist/e2e/harness/TestHelpers.js +103 -0
  114. package/dist/e2e/harness/TestHelpers.js.map +1 -0
  115. package/dist/e2e/harness/TestRebalancer.d.ts +85 -0
  116. package/dist/e2e/harness/TestRebalancer.d.ts.map +1 -0
  117. package/dist/e2e/harness/TestRebalancer.js +427 -0
  118. package/dist/e2e/harness/TestRebalancer.js.map +1 -0
  119. package/dist/e2e/harness/TransferHelper.d.ts +34 -0
  120. package/dist/e2e/harness/TransferHelper.d.ts.map +1 -0
  121. package/dist/e2e/harness/TransferHelper.js +93 -0
  122. package/dist/e2e/harness/TransferHelper.js.map +1 -0
  123. package/dist/e2e/inventory-erc20-minAmount.e2e-test.d.ts +2 -0
  124. package/dist/e2e/inventory-erc20-minAmount.e2e-test.d.ts.map +1 -0
  125. package/dist/e2e/inventory-erc20-minAmount.e2e-test.js +411 -0
  126. package/dist/e2e/inventory-erc20-minAmount.e2e-test.js.map +1 -0
  127. package/dist/e2e/inventory-erc20-weighted.e2e-test.d.ts +2 -0
  128. package/dist/e2e/inventory-erc20-weighted.e2e-test.d.ts.map +1 -0
  129. package/dist/e2e/inventory-erc20-weighted.e2e-test.js +408 -0
  130. package/dist/e2e/inventory-erc20-weighted.e2e-test.js.map +1 -0
  131. package/dist/e2e/inventory-minAmount.e2e-test.d.ts +2 -0
  132. package/dist/e2e/inventory-minAmount.e2e-test.d.ts.map +1 -0
  133. package/dist/e2e/inventory-minAmount.e2e-test.js +411 -0
  134. package/dist/e2e/inventory-minAmount.e2e-test.js.map +1 -0
  135. package/dist/e2e/inventory-weighted.e2e-test.d.ts +2 -0
  136. package/dist/e2e/inventory-weighted.e2e-test.d.ts.map +1 -0
  137. package/dist/e2e/inventory-weighted.e2e-test.js +409 -0
  138. package/dist/e2e/inventory-weighted.e2e-test.js.map +1 -0
  139. package/dist/e2e/minAmount.e2e-test.d.ts +2 -0
  140. package/dist/e2e/minAmount.e2e-test.d.ts.map +1 -0
  141. package/dist/e2e/minAmount.e2e-test.js +203 -0
  142. package/dist/e2e/minAmount.e2e-test.js.map +1 -0
  143. package/dist/e2e/mixed-weighted.e2e-test.d.ts +2 -0
  144. package/dist/e2e/mixed-weighted.e2e-test.d.ts.map +1 -0
  145. package/dist/e2e/mixed-weighted.e2e-test.js +189 -0
  146. package/dist/e2e/mixed-weighted.e2e-test.js.map +1 -0
  147. package/dist/e2e/weighted.e2e-test.d.ts +2 -0
  148. package/dist/e2e/weighted.e2e-test.d.ts.map +1 -0
  149. package/dist/e2e/weighted.e2e-test.js +198 -0
  150. package/dist/e2e/weighted.e2e-test.js.map +1 -0
  151. package/dist/factories/RebalancerContextFactory.d.ts +89 -0
  152. package/dist/factories/RebalancerContextFactory.d.ts.map +1 -0
  153. package/dist/factories/RebalancerContextFactory.js +420 -0
  154. package/dist/factories/RebalancerContextFactory.js.map +1 -0
  155. package/dist/factories/RebalancerContextFactory.test.d.ts +2 -0
  156. package/dist/factories/RebalancerContextFactory.test.d.ts.map +1 -0
  157. package/dist/factories/RebalancerContextFactory.test.js +270 -0
  158. package/dist/factories/RebalancerContextFactory.test.js.map +1 -0
  159. package/dist/index.d.ts +37 -0
  160. package/dist/index.d.ts.map +1 -0
  161. package/dist/index.js +37 -0
  162. package/dist/index.js.map +1 -0
  163. package/dist/interfaces/IExternalBridge.d.ts +103 -0
  164. package/dist/interfaces/IExternalBridge.d.ts.map +1 -0
  165. package/dist/interfaces/IExternalBridge.js +2 -0
  166. package/dist/interfaces/IExternalBridge.js.map +1 -0
  167. package/dist/interfaces/IMetrics.d.ts +5 -0
  168. package/dist/interfaces/IMetrics.d.ts.map +1 -0
  169. package/dist/interfaces/IMetrics.js +2 -0
  170. package/dist/interfaces/IMetrics.js.map +1 -0
  171. package/dist/interfaces/IMonitor.d.ts +50 -0
  172. package/dist/interfaces/IMonitor.d.ts.map +1 -0
  173. package/dist/interfaces/IMonitor.js +14 -0
  174. package/dist/interfaces/IMonitor.js.map +1 -0
  175. package/dist/interfaces/IRebalancer.d.ts +31 -0
  176. package/dist/interfaces/IRebalancer.d.ts.map +1 -0
  177. package/dist/interfaces/IRebalancer.js +2 -0
  178. package/dist/interfaces/IRebalancer.js.map +1 -0
  179. package/dist/interfaces/IStrategy.d.ts +60 -0
  180. package/dist/interfaces/IStrategy.d.ts.map +1 -0
  181. package/dist/interfaces/IStrategy.js +13 -0
  182. package/dist/interfaces/IStrategy.js.map +1 -0
  183. package/dist/metrics/Metrics.d.ts +25 -0
  184. package/dist/metrics/Metrics.d.ts.map +1 -0
  185. package/dist/metrics/Metrics.js +164 -0
  186. package/dist/metrics/Metrics.js.map +1 -0
  187. package/dist/metrics/PriceGetter.d.ts +10 -0
  188. package/dist/metrics/PriceGetter.d.ts.map +1 -0
  189. package/dist/metrics/PriceGetter.js +41 -0
  190. package/dist/metrics/PriceGetter.js.map +1 -0
  191. package/dist/metrics/scripts/metrics.d.ts +28 -0
  192. package/dist/metrics/scripts/metrics.d.ts.map +1 -0
  193. package/dist/metrics/scripts/metrics.js +61 -0
  194. package/dist/metrics/scripts/metrics.js.map +1 -0
  195. package/dist/monitor/Monitor.d.ts +40 -0
  196. package/dist/monitor/Monitor.d.ts.map +1 -0
  197. package/dist/monitor/Monitor.js +211 -0
  198. package/dist/monitor/Monitor.js.map +1 -0
  199. package/dist/service.d.ts +3 -0
  200. package/dist/service.d.ts.map +1 -0
  201. package/dist/service.js +205 -0
  202. package/dist/service.js.map +1 -0
  203. package/dist/strategy/BaseStrategy.d.ts +86 -0
  204. package/dist/strategy/BaseStrategy.d.ts.map +1 -0
  205. package/dist/strategy/BaseStrategy.js +342 -0
  206. package/dist/strategy/BaseStrategy.js.map +1 -0
  207. package/dist/strategy/CollateralDeficitStrategy.d.ts +65 -0
  208. package/dist/strategy/CollateralDeficitStrategy.d.ts.map +1 -0
  209. package/dist/strategy/CollateralDeficitStrategy.js +253 -0
  210. package/dist/strategy/CollateralDeficitStrategy.js.map +1 -0
  211. package/dist/strategy/CollateralDeficitStrategy.test.d.ts +2 -0
  212. package/dist/strategy/CollateralDeficitStrategy.test.d.ts.map +1 -0
  213. package/dist/strategy/CollateralDeficitStrategy.test.js +497 -0
  214. package/dist/strategy/CollateralDeficitStrategy.test.js.map +1 -0
  215. package/dist/strategy/CompositeStrategy.d.ts +18 -0
  216. package/dist/strategy/CompositeStrategy.d.ts.map +1 -0
  217. package/dist/strategy/CompositeStrategy.js +63 -0
  218. package/dist/strategy/CompositeStrategy.js.map +1 -0
  219. package/dist/strategy/CompositeStrategy.test.d.ts +2 -0
  220. package/dist/strategy/CompositeStrategy.test.d.ts.map +1 -0
  221. package/dist/strategy/CompositeStrategy.test.js +278 -0
  222. package/dist/strategy/CompositeStrategy.test.js.map +1 -0
  223. package/dist/strategy/MinAmountStrategy.d.ts +35 -0
  224. package/dist/strategy/MinAmountStrategy.d.ts.map +1 -0
  225. package/dist/strategy/MinAmountStrategy.js +112 -0
  226. package/dist/strategy/MinAmountStrategy.js.map +1 -0
  227. package/dist/strategy/MinAmountStrategy.test.d.ts +2 -0
  228. package/dist/strategy/MinAmountStrategy.test.d.ts.map +1 -0
  229. package/dist/strategy/MinAmountStrategy.test.js +547 -0
  230. package/dist/strategy/MinAmountStrategy.test.js.map +1 -0
  231. package/dist/strategy/StrategyFactory.d.ts +27 -0
  232. package/dist/strategy/StrategyFactory.d.ts.map +1 -0
  233. package/dist/strategy/StrategyFactory.js +79 -0
  234. package/dist/strategy/StrategyFactory.js.map +1 -0
  235. package/dist/strategy/StrategyFactory.test.d.ts +2 -0
  236. package/dist/strategy/StrategyFactory.test.d.ts.map +1 -0
  237. package/dist/strategy/StrategyFactory.test.js +81 -0
  238. package/dist/strategy/StrategyFactory.test.js.map +1 -0
  239. package/dist/strategy/WeightedStrategy.d.ts +32 -0
  240. package/dist/strategy/WeightedStrategy.d.ts.map +1 -0
  241. package/dist/strategy/WeightedStrategy.js +73 -0
  242. package/dist/strategy/WeightedStrategy.js.map +1 -0
  243. package/dist/strategy/WeightedStrategy.test.d.ts +2 -0
  244. package/dist/strategy/WeightedStrategy.test.d.ts.map +1 -0
  245. package/dist/strategy/WeightedStrategy.test.js +403 -0
  246. package/dist/strategy/WeightedStrategy.test.js.map +1 -0
  247. package/dist/strategy/index.d.ts +7 -0
  248. package/dist/strategy/index.d.ts.map +1 -0
  249. package/dist/strategy/index.js +7 -0
  250. package/dist/strategy/index.js.map +1 -0
  251. package/dist/test/helpers.d.ts +99 -0
  252. package/dist/test/helpers.d.ts.map +1 -0
  253. package/dist/test/helpers.js +311 -0
  254. package/dist/test/helpers.js.map +1 -0
  255. package/dist/test/lifiMocks.d.ts +52 -0
  256. package/dist/test/lifiMocks.d.ts.map +1 -0
  257. package/dist/test/lifiMocks.js +160 -0
  258. package/dist/test/lifiMocks.js.map +1 -0
  259. package/dist/tracking/ActionTracker.d.ts +90 -0
  260. package/dist/tracking/ActionTracker.d.ts.map +1 -0
  261. package/dist/tracking/ActionTracker.js +678 -0
  262. package/dist/tracking/ActionTracker.js.map +1 -0
  263. package/dist/tracking/ActionTracker.test.d.ts +2 -0
  264. package/dist/tracking/ActionTracker.test.d.ts.map +1 -0
  265. package/dist/tracking/ActionTracker.test.js +1351 -0
  266. package/dist/tracking/ActionTracker.test.js.map +1 -0
  267. package/dist/tracking/IActionTracker.d.ts +157 -0
  268. package/dist/tracking/IActionTracker.d.ts.map +1 -0
  269. package/dist/tracking/IActionTracker.js +2 -0
  270. package/dist/tracking/IActionTracker.js.map +1 -0
  271. package/dist/tracking/InflightContextAdapter.d.ts +18 -0
  272. package/dist/tracking/InflightContextAdapter.d.ts.map +1 -0
  273. package/dist/tracking/InflightContextAdapter.js +52 -0
  274. package/dist/tracking/InflightContextAdapter.js.map +1 -0
  275. package/dist/tracking/InflightContextAdapter.test.d.ts +2 -0
  276. package/dist/tracking/InflightContextAdapter.test.d.ts.map +1 -0
  277. package/dist/tracking/InflightContextAdapter.test.js +175 -0
  278. package/dist/tracking/InflightContextAdapter.test.js.map +1 -0
  279. package/dist/tracking/store/IStore.d.ts +41 -0
  280. package/dist/tracking/store/IStore.d.ts.map +1 -0
  281. package/dist/tracking/store/IStore.js +2 -0
  282. package/dist/tracking/store/IStore.js.map +1 -0
  283. package/dist/tracking/store/InMemoryStore.d.ts +21 -0
  284. package/dist/tracking/store/InMemoryStore.d.ts.map +1 -0
  285. package/dist/tracking/store/InMemoryStore.js +40 -0
  286. package/dist/tracking/store/InMemoryStore.js.map +1 -0
  287. package/dist/tracking/store/InMemoryStore.test.d.ts +2 -0
  288. package/dist/tracking/store/InMemoryStore.test.d.ts.map +1 -0
  289. package/dist/tracking/store/InMemoryStore.test.js +290 -0
  290. package/dist/tracking/store/InMemoryStore.test.js.map +1 -0
  291. package/dist/tracking/store/index.d.ts +3 -0
  292. package/dist/tracking/store/index.d.ts.map +1 -0
  293. package/dist/tracking/store/index.js +2 -0
  294. package/dist/tracking/store/index.js.map +1 -0
  295. package/dist/tracking/types.d.ts +77 -0
  296. package/dist/tracking/types.d.ts.map +1 -0
  297. package/dist/tracking/types.js +2 -0
  298. package/dist/tracking/types.js.map +1 -0
  299. package/dist/utils/ExplorerClient.d.ts +68 -0
  300. package/dist/utils/ExplorerClient.d.ts.map +1 -0
  301. package/dist/utils/ExplorerClient.js +324 -0
  302. package/dist/utils/ExplorerClient.js.map +1 -0
  303. package/dist/utils/ExplorerClient.test.d.ts +2 -0
  304. package/dist/utils/ExplorerClient.test.d.ts.map +1 -0
  305. package/dist/utils/ExplorerClient.test.js +261 -0
  306. package/dist/utils/ExplorerClient.test.js.map +1 -0
  307. package/dist/utils/balanceUtils.d.ts +12 -0
  308. package/dist/utils/balanceUtils.d.ts.map +1 -0
  309. package/dist/utils/balanceUtils.js +40 -0
  310. package/dist/utils/balanceUtils.js.map +1 -0
  311. package/dist/utils/balanceUtils.test.d.ts +2 -0
  312. package/dist/utils/balanceUtils.test.d.ts.map +1 -0
  313. package/dist/utils/balanceUtils.test.js +55 -0
  314. package/dist/utils/balanceUtils.test.js.map +1 -0
  315. package/dist/utils/blockTag.d.ts +14 -0
  316. package/dist/utils/blockTag.d.ts.map +1 -0
  317. package/dist/utils/blockTag.js +46 -0
  318. package/dist/utils/blockTag.js.map +1 -0
  319. package/dist/utils/bridgeUtils.d.ts +40 -0
  320. package/dist/utils/bridgeUtils.d.ts.map +1 -0
  321. package/dist/utils/bridgeUtils.js +54 -0
  322. package/dist/utils/bridgeUtils.js.map +1 -0
  323. package/dist/utils/bridgeUtils.test.d.ts +2 -0
  324. package/dist/utils/bridgeUtils.test.d.ts.map +1 -0
  325. package/dist/utils/bridgeUtils.test.js +163 -0
  326. package/dist/utils/bridgeUtils.test.js.map +1 -0
  327. package/dist/utils/errors.d.ts +4 -0
  328. package/dist/utils/errors.d.ts.map +1 -0
  329. package/dist/utils/errors.js +6 -0
  330. package/dist/utils/errors.js.map +1 -0
  331. package/dist/utils/gasEstimation.d.ts +65 -0
  332. package/dist/utils/gasEstimation.d.ts.map +1 -0
  333. package/dist/utils/gasEstimation.js +206 -0
  334. package/dist/utils/gasEstimation.js.map +1 -0
  335. package/dist/utils/solanaKeyParser.d.ts +10 -0
  336. package/dist/utils/solanaKeyParser.d.ts.map +1 -0
  337. package/dist/utils/solanaKeyParser.js +87 -0
  338. package/dist/utils/solanaKeyParser.js.map +1 -0
  339. package/dist/utils/solanaKeyParser.test.d.ts +2 -0
  340. package/dist/utils/solanaKeyParser.test.d.ts.map +1 -0
  341. package/dist/utils/solanaKeyParser.test.js +71 -0
  342. package/dist/utils/solanaKeyParser.test.js.map +1 -0
  343. package/dist/utils/tokenUtils.d.ts +38 -0
  344. package/dist/utils/tokenUtils.d.ts.map +1 -0
  345. package/dist/utils/tokenUtils.js +65 -0
  346. package/dist/utils/tokenUtils.js.map +1 -0
  347. package/dist/utils/transactionUtils.d.ts +22 -0
  348. package/dist/utils/transactionUtils.d.ts.map +1 -0
  349. package/dist/utils/transactionUtils.js +26 -0
  350. package/dist/utils/transactionUtils.js.map +1 -0
  351. package/package.json +87 -3
  352. package/src/bridges/LiFiBridge.test.ts +615 -0
  353. package/src/bridges/LiFiBridge.ts +731 -0
  354. package/src/config/RebalancerConfig.test.ts +921 -0
  355. package/src/config/RebalancerConfig.ts +63 -0
  356. package/src/config/types.ts +613 -0
  357. package/src/core/InventoryRebalancer.test.ts +1858 -0
  358. package/src/core/InventoryRebalancer.ts +1455 -0
  359. package/src/core/Rebalancer.test.ts +686 -0
  360. package/src/core/Rebalancer.ts +686 -0
  361. package/src/core/RebalancerOrchestrator.test.ts +871 -0
  362. package/src/core/RebalancerOrchestrator.ts +273 -0
  363. package/src/core/RebalancerService.test.ts +1094 -0
  364. package/src/core/RebalancerService.ts +412 -0
  365. package/src/e2e/E2E_TEST_CONVENTIONS.md +222 -0
  366. package/src/e2e/collateral-deficit.e2e-test.ts +403 -0
  367. package/src/e2e/composite.e2e-test.ts +1008 -0
  368. package/src/e2e/fixtures/routes.ts +532 -0
  369. package/src/e2e/harness/BaseLocalDeploymentManager.ts +246 -0
  370. package/src/e2e/harness/BridgeSetup.ts +95 -0
  371. package/src/e2e/harness/Erc20InventoryLocalDeploymentManager.ts +183 -0
  372. package/src/e2e/harness/Erc20LocalDeploymentManager.ts +190 -0
  373. package/src/e2e/harness/ForkIndexer.test.ts +448 -0
  374. package/src/e2e/harness/ForkIndexer.ts +183 -0
  375. package/src/e2e/harness/MixedLocalDeploymentManager.ts +196 -0
  376. package/src/e2e/harness/MockExplorerClient.ts +94 -0
  377. package/src/e2e/harness/MockExternalBridge.ts +411 -0
  378. package/src/e2e/harness/NativeLocalDeploymentManager.ts +138 -0
  379. package/src/e2e/harness/SnapshotHelper.ts +56 -0
  380. package/src/e2e/harness/TestHelpers.ts +169 -0
  381. package/src/e2e/harness/TestRebalancer.ts +758 -0
  382. package/src/e2e/harness/TransferHelper.ts +188 -0
  383. package/src/e2e/inventory-erc20-minAmount.e2e-test.ts +735 -0
  384. package/src/e2e/inventory-erc20-weighted.e2e-test.ts +733 -0
  385. package/src/e2e/inventory-minAmount.e2e-test.ts +734 -0
  386. package/src/e2e/inventory-weighted.e2e-test.ts +734 -0
  387. package/src/e2e/minAmount.e2e-test.ts +313 -0
  388. package/src/e2e/mixed-weighted.e2e-test.ts +267 -0
  389. package/src/e2e/weighted.e2e-test.ts +304 -0
  390. package/src/factories/RebalancerContextFactory.test.ts +394 -0
  391. package/src/factories/RebalancerContextFactory.ts +771 -0
  392. package/src/index.ts +125 -0
  393. package/src/interfaces/IExternalBridge.ts +117 -0
  394. package/src/interfaces/IMetrics.ts +5 -0
  395. package/src/interfaces/IMonitor.ts +71 -0
  396. package/src/interfaces/IRebalancer.ts +57 -0
  397. package/src/interfaces/IStrategy.ts +81 -0
  398. package/src/metrics/Metrics.ts +335 -0
  399. package/src/metrics/PriceGetter.ts +74 -0
  400. package/src/metrics/scripts/metrics.ts +139 -0
  401. package/src/monitor/Monitor.ts +324 -0
  402. package/src/service.ts +285 -0
  403. package/src/strategy/BaseStrategy.ts +553 -0
  404. package/src/strategy/CollateralDeficitStrategy.test.ts +728 -0
  405. package/src/strategy/CollateralDeficitStrategy.ts +421 -0
  406. package/src/strategy/CompositeStrategy.test.ts +418 -0
  407. package/src/strategy/CompositeStrategy.ts +102 -0
  408. package/src/strategy/MinAmountStrategy.test.ts +732 -0
  409. package/src/strategy/MinAmountStrategy.ts +200 -0
  410. package/src/strategy/StrategyFactory.test.ts +108 -0
  411. package/src/strategy/StrategyFactory.ts +157 -0
  412. package/src/strategy/WeightedStrategy.test.ts +529 -0
  413. package/src/strategy/WeightedStrategy.ts +126 -0
  414. package/src/strategy/index.ts +6 -0
  415. package/src/test/helpers.ts +477 -0
  416. package/src/test/lifiMocks.ts +211 -0
  417. package/src/tracking/ActionTracker.test.ts +1625 -0
  418. package/src/tracking/ActionTracker.ts +1019 -0
  419. package/src/tracking/IActionTracker.ts +213 -0
  420. package/src/tracking/InflightContextAdapter.test.ts +206 -0
  421. package/src/tracking/InflightContextAdapter.ts +75 -0
  422. package/src/tracking/store/IStore.ts +48 -0
  423. package/src/tracking/store/InMemoryStore.test.ts +338 -0
  424. package/src/tracking/store/InMemoryStore.ts +59 -0
  425. package/src/tracking/store/index.ts +2 -0
  426. package/src/tracking/types.ts +118 -0
  427. package/src/utils/ExplorerClient.test.ts +386 -0
  428. package/src/utils/ExplorerClient.ts +439 -0
  429. package/src/utils/balanceUtils.test.ts +79 -0
  430. package/src/utils/balanceUtils.ts +65 -0
  431. package/src/utils/blockTag.ts +68 -0
  432. package/src/utils/bridgeUtils.test.ts +193 -0
  433. package/src/utils/bridgeUtils.ts +101 -0
  434. package/src/utils/errors.ts +5 -0
  435. package/src/utils/gasEstimation.ts +306 -0
  436. package/src/utils/solanaKeyParser.test.ts +103 -0
  437. package/src/utils/solanaKeyParser.ts +117 -0
  438. package/src/utils/tokenUtils.ts +89 -0
  439. package/src/utils/transactionUtils.ts +41 -0
@@ -0,0 +1,3008 @@
1
+ import { z } from 'zod';
2
+ import { ProtocolType } from '@humanode-hyperlane/utils';
3
+ export declare enum RebalancerStrategyOptions {
4
+ Weighted = "weighted",
5
+ MinAmount = "minAmount",
6
+ CollateralDeficit = "collateralDeficit"
7
+ }
8
+ export declare const RebalancerWeightedChainConfigSchema: z.ZodObject<{
9
+ weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
10
+ tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ weight: bigint;
13
+ tolerance: bigint;
14
+ }, {
15
+ weight: string | number;
16
+ tolerance: string | number;
17
+ }>;
18
+ export declare enum RebalancerMinAmountType {
19
+ Absolute = "absolute",
20
+ Relative = "relative"
21
+ }
22
+ /**
23
+ * Execution type for rebalancing on a chain:
24
+ * - `movableCollateral`: Uses MovableCollateralRouter.rebalance() on-chain (requires bridge address)
25
+ * - `inventory`: Uses external bridges (LiFi) + transferRemote (no bridge address needed)
26
+ */
27
+ export declare enum ExecutionType {
28
+ MovableCollateral = "movableCollateral",
29
+ Inventory = "inventory"
30
+ }
31
+ export declare enum ExternalBridgeType {
32
+ LiFi = "lifi"
33
+ }
34
+ export declare const RebalancerMinAmountConfigSchema: z.ZodObject<{
35
+ min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
36
+ target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
37
+ type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ type: RebalancerMinAmountType;
40
+ min: string | number;
41
+ target: string | number;
42
+ }, {
43
+ type: RebalancerMinAmountType;
44
+ min: string | number;
45
+ target: string | number;
46
+ }>;
47
+ export declare const RebalancerBaseChainConfigSchema: z.ZodObject<{
48
+ bridge: z.ZodOptional<z.ZodString>;
49
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
50
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
51
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
52
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
53
+ } & {
54
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
55
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
56
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
57
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
58
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
59
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
60
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
61
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
62
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
63
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
64
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
65
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
66
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
67
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
68
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
69
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
70
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
71
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
72
+ }, z.ZodTypeAny, "passthrough">>>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ bridge?: string | undefined;
75
+ executionType?: ExecutionType | undefined;
76
+ externalBridge?: ExternalBridgeType | undefined;
77
+ bridgeMinAcceptedAmount?: string | number | undefined;
78
+ bridgeLockTime?: number | undefined;
79
+ override?: Record<string, z.objectOutputType<{
80
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
81
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
82
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
83
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
84
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
85
+ }, z.ZodTypeAny, "passthrough">> | undefined;
86
+ }, {
87
+ bridge?: string | undefined;
88
+ executionType?: ExecutionType | undefined;
89
+ externalBridge?: ExternalBridgeType | undefined;
90
+ bridgeMinAcceptedAmount?: string | number | undefined;
91
+ bridgeLockTime?: number | undefined;
92
+ override?: Record<string, z.objectInputType<{
93
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
94
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
95
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
96
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
97
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
98
+ }, z.ZodTypeAny, "passthrough">> | undefined;
99
+ }>;
100
+ declare const CollateralDeficitChainConfigSchema: z.ZodObject<{
101
+ bridge: z.ZodOptional<z.ZodString>;
102
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
103
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
104
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
105
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
106
+ } & {
107
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
108
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
109
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
110
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
111
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
112
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
113
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
114
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
115
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
116
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
117
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
118
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
119
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
120
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
121
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
122
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
123
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
124
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
125
+ }, z.ZodTypeAny, "passthrough">>>>;
126
+ } & {
127
+ buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ buffer: string | number;
130
+ bridge?: string | undefined;
131
+ executionType?: ExecutionType | undefined;
132
+ externalBridge?: ExternalBridgeType | undefined;
133
+ bridgeMinAcceptedAmount?: string | number | undefined;
134
+ bridgeLockTime?: number | undefined;
135
+ override?: Record<string, z.objectOutputType<{
136
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
137
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
138
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
139
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
140
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
141
+ }, z.ZodTypeAny, "passthrough">> | undefined;
142
+ }, {
143
+ buffer: string | number;
144
+ bridge?: string | undefined;
145
+ executionType?: ExecutionType | undefined;
146
+ externalBridge?: ExternalBridgeType | undefined;
147
+ bridgeMinAcceptedAmount?: string | number | undefined;
148
+ bridgeLockTime?: number | undefined;
149
+ override?: Record<string, z.objectInputType<{
150
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
151
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
152
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
153
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
154
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
155
+ }, z.ZodTypeAny, "passthrough">> | undefined;
156
+ }>;
157
+ declare const WeightedStrategySchema: z.ZodObject<{
158
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
159
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
160
+ bridge: z.ZodOptional<z.ZodString>;
161
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
162
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
163
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
164
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
165
+ } & {
166
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
167
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
168
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
169
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
170
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
171
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
172
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
173
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
174
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
175
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
176
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
177
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
178
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
179
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
180
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
181
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
182
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
183
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
184
+ }, z.ZodTypeAny, "passthrough">>>>;
185
+ } & {
186
+ weighted: z.ZodObject<{
187
+ weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
188
+ tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ weight: bigint;
191
+ tolerance: bigint;
192
+ }, {
193
+ weight: string | number;
194
+ tolerance: string | number;
195
+ }>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ weighted: {
198
+ weight: bigint;
199
+ tolerance: bigint;
200
+ };
201
+ bridge?: string | undefined;
202
+ executionType?: ExecutionType | undefined;
203
+ externalBridge?: ExternalBridgeType | undefined;
204
+ bridgeMinAcceptedAmount?: string | number | undefined;
205
+ bridgeLockTime?: number | undefined;
206
+ override?: Record<string, z.objectOutputType<{
207
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
208
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
209
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
210
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
211
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
212
+ }, z.ZodTypeAny, "passthrough">> | undefined;
213
+ }, {
214
+ weighted: {
215
+ weight: string | number;
216
+ tolerance: string | number;
217
+ };
218
+ bridge?: string | undefined;
219
+ executionType?: ExecutionType | undefined;
220
+ externalBridge?: ExternalBridgeType | undefined;
221
+ bridgeMinAcceptedAmount?: string | number | undefined;
222
+ bridgeLockTime?: number | undefined;
223
+ override?: Record<string, z.objectInputType<{
224
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
225
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
226
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
227
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
228
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
229
+ }, z.ZodTypeAny, "passthrough">> | undefined;
230
+ }>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
233
+ chains: Record<string, {
234
+ weighted: {
235
+ weight: bigint;
236
+ tolerance: bigint;
237
+ };
238
+ bridge?: string | undefined;
239
+ executionType?: ExecutionType | undefined;
240
+ externalBridge?: ExternalBridgeType | undefined;
241
+ bridgeMinAcceptedAmount?: string | number | undefined;
242
+ bridgeLockTime?: number | undefined;
243
+ override?: Record<string, z.objectOutputType<{
244
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
245
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
246
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
247
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
248
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
249
+ }, z.ZodTypeAny, "passthrough">> | undefined;
250
+ }>;
251
+ }, {
252
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
253
+ chains: Record<string, {
254
+ weighted: {
255
+ weight: string | number;
256
+ tolerance: string | number;
257
+ };
258
+ bridge?: string | undefined;
259
+ executionType?: ExecutionType | undefined;
260
+ externalBridge?: ExternalBridgeType | undefined;
261
+ bridgeMinAcceptedAmount?: string | number | undefined;
262
+ bridgeLockTime?: number | undefined;
263
+ override?: Record<string, z.objectInputType<{
264
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
265
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
266
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
267
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
268
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
269
+ }, z.ZodTypeAny, "passthrough">> | undefined;
270
+ }>;
271
+ }>;
272
+ declare const MinAmountStrategySchema: z.ZodObject<{
273
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
274
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
275
+ bridge: z.ZodOptional<z.ZodString>;
276
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
277
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
278
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
279
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
280
+ } & {
281
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
282
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
283
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
284
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
285
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
286
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
287
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
288
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
289
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
290
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
291
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
292
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
293
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
294
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
295
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
296
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
297
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
298
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
299
+ }, z.ZodTypeAny, "passthrough">>>>;
300
+ } & {
301
+ minAmount: z.ZodObject<{
302
+ min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
303
+ target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
304
+ type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ type: RebalancerMinAmountType;
307
+ min: string | number;
308
+ target: string | number;
309
+ }, {
310
+ type: RebalancerMinAmountType;
311
+ min: string | number;
312
+ target: string | number;
313
+ }>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ minAmount: {
316
+ type: RebalancerMinAmountType;
317
+ min: string | number;
318
+ target: string | number;
319
+ };
320
+ bridge?: string | undefined;
321
+ executionType?: ExecutionType | undefined;
322
+ externalBridge?: ExternalBridgeType | undefined;
323
+ bridgeMinAcceptedAmount?: string | number | undefined;
324
+ bridgeLockTime?: number | undefined;
325
+ override?: Record<string, z.objectOutputType<{
326
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
327
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
328
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
329
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
330
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
331
+ }, z.ZodTypeAny, "passthrough">> | undefined;
332
+ }, {
333
+ minAmount: {
334
+ type: RebalancerMinAmountType;
335
+ min: string | number;
336
+ target: string | number;
337
+ };
338
+ bridge?: string | undefined;
339
+ executionType?: ExecutionType | undefined;
340
+ externalBridge?: ExternalBridgeType | undefined;
341
+ bridgeMinAcceptedAmount?: string | number | undefined;
342
+ bridgeLockTime?: number | undefined;
343
+ override?: Record<string, z.objectInputType<{
344
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
345
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
346
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
347
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
348
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
349
+ }, z.ZodTypeAny, "passthrough">> | undefined;
350
+ }>>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
353
+ chains: Record<string, {
354
+ minAmount: {
355
+ type: RebalancerMinAmountType;
356
+ min: string | number;
357
+ target: string | number;
358
+ };
359
+ bridge?: string | undefined;
360
+ executionType?: ExecutionType | undefined;
361
+ externalBridge?: ExternalBridgeType | undefined;
362
+ bridgeMinAcceptedAmount?: string | number | undefined;
363
+ bridgeLockTime?: number | undefined;
364
+ override?: Record<string, z.objectOutputType<{
365
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
366
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
367
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
368
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
369
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
370
+ }, z.ZodTypeAny, "passthrough">> | undefined;
371
+ }>;
372
+ }, {
373
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
374
+ chains: Record<string, {
375
+ minAmount: {
376
+ type: RebalancerMinAmountType;
377
+ min: string | number;
378
+ target: string | number;
379
+ };
380
+ bridge?: string | undefined;
381
+ executionType?: ExecutionType | undefined;
382
+ externalBridge?: ExternalBridgeType | undefined;
383
+ bridgeMinAcceptedAmount?: string | number | undefined;
384
+ bridgeLockTime?: number | undefined;
385
+ override?: Record<string, z.objectInputType<{
386
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
387
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
388
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
389
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
390
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
391
+ }, z.ZodTypeAny, "passthrough">> | undefined;
392
+ }>;
393
+ }>;
394
+ declare const CollateralDeficitStrategySchema: z.ZodObject<{
395
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
396
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
397
+ bridge: z.ZodOptional<z.ZodString>;
398
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
399
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
400
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
401
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
402
+ } & {
403
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
404
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
405
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
406
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
407
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
408
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
409
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
410
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
411
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
412
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
413
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
414
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
415
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
416
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
417
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
418
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
419
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
420
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
421
+ }, z.ZodTypeAny, "passthrough">>>>;
422
+ } & {
423
+ buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ buffer: string | number;
426
+ bridge?: string | undefined;
427
+ executionType?: ExecutionType | undefined;
428
+ externalBridge?: ExternalBridgeType | undefined;
429
+ bridgeMinAcceptedAmount?: string | number | undefined;
430
+ bridgeLockTime?: number | undefined;
431
+ override?: Record<string, z.objectOutputType<{
432
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
433
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
434
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
435
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
436
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
437
+ }, z.ZodTypeAny, "passthrough">> | undefined;
438
+ }, {
439
+ buffer: string | number;
440
+ bridge?: string | undefined;
441
+ executionType?: ExecutionType | undefined;
442
+ externalBridge?: ExternalBridgeType | undefined;
443
+ bridgeMinAcceptedAmount?: string | number | undefined;
444
+ bridgeLockTime?: number | undefined;
445
+ override?: Record<string, z.objectInputType<{
446
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
447
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
448
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
449
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
450
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
451
+ }, z.ZodTypeAny, "passthrough">> | undefined;
452
+ }>>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
455
+ chains: Record<string, {
456
+ buffer: string | number;
457
+ bridge?: string | undefined;
458
+ executionType?: ExecutionType | undefined;
459
+ externalBridge?: ExternalBridgeType | undefined;
460
+ bridgeMinAcceptedAmount?: string | number | undefined;
461
+ bridgeLockTime?: number | undefined;
462
+ override?: Record<string, z.objectOutputType<{
463
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
464
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
465
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
466
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
467
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
468
+ }, z.ZodTypeAny, "passthrough">> | undefined;
469
+ }>;
470
+ }, {
471
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
472
+ chains: Record<string, {
473
+ buffer: string | number;
474
+ bridge?: string | undefined;
475
+ executionType?: ExecutionType | undefined;
476
+ externalBridge?: ExternalBridgeType | undefined;
477
+ bridgeMinAcceptedAmount?: string | number | undefined;
478
+ bridgeLockTime?: number | undefined;
479
+ override?: Record<string, z.objectInputType<{
480
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
481
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
482
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
483
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
484
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
485
+ }, z.ZodTypeAny, "passthrough">> | undefined;
486
+ }>;
487
+ }>;
488
+ export type WeightedStrategy = z.infer<typeof WeightedStrategySchema>;
489
+ export type MinAmountStrategy = z.infer<typeof MinAmountStrategySchema>;
490
+ export type CollateralDeficitStrategy = z.infer<typeof CollateralDeficitStrategySchema>;
491
+ export type WeightedStrategyConfig = WeightedStrategy['chains'];
492
+ export type MinAmountStrategyConfig = MinAmountStrategy['chains'];
493
+ export type CollateralDeficitStrategyConfig = CollateralDeficitStrategy['chains'];
494
+ export declare const StrategyConfigSchema: z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
495
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
496
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
497
+ bridge: z.ZodOptional<z.ZodString>;
498
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
499
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
500
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
501
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
502
+ } & {
503
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
504
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
505
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
506
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
507
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
508
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
509
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
510
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
511
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
512
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
513
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
514
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
515
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
516
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
517
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
518
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
519
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
520
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
521
+ }, z.ZodTypeAny, "passthrough">>>>;
522
+ } & {
523
+ weighted: z.ZodObject<{
524
+ weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
525
+ tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ weight: bigint;
528
+ tolerance: bigint;
529
+ }, {
530
+ weight: string | number;
531
+ tolerance: string | number;
532
+ }>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ weighted: {
535
+ weight: bigint;
536
+ tolerance: bigint;
537
+ };
538
+ bridge?: string | undefined;
539
+ executionType?: ExecutionType | undefined;
540
+ externalBridge?: ExternalBridgeType | undefined;
541
+ bridgeMinAcceptedAmount?: string | number | undefined;
542
+ bridgeLockTime?: number | undefined;
543
+ override?: Record<string, z.objectOutputType<{
544
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
545
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
546
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
547
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
548
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
549
+ }, z.ZodTypeAny, "passthrough">> | undefined;
550
+ }, {
551
+ weighted: {
552
+ weight: string | number;
553
+ tolerance: string | number;
554
+ };
555
+ bridge?: string | undefined;
556
+ executionType?: ExecutionType | undefined;
557
+ externalBridge?: ExternalBridgeType | undefined;
558
+ bridgeMinAcceptedAmount?: string | number | undefined;
559
+ bridgeLockTime?: number | undefined;
560
+ override?: Record<string, z.objectInputType<{
561
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
562
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
563
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
564
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
565
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
566
+ }, z.ZodTypeAny, "passthrough">> | undefined;
567
+ }>>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
570
+ chains: Record<string, {
571
+ weighted: {
572
+ weight: bigint;
573
+ tolerance: bigint;
574
+ };
575
+ bridge?: string | undefined;
576
+ executionType?: ExecutionType | undefined;
577
+ externalBridge?: ExternalBridgeType | undefined;
578
+ bridgeMinAcceptedAmount?: string | number | undefined;
579
+ bridgeLockTime?: number | undefined;
580
+ override?: Record<string, z.objectOutputType<{
581
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
582
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
583
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
584
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
585
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
586
+ }, z.ZodTypeAny, "passthrough">> | undefined;
587
+ }>;
588
+ }, {
589
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
590
+ chains: Record<string, {
591
+ weighted: {
592
+ weight: string | number;
593
+ tolerance: string | number;
594
+ };
595
+ bridge?: string | undefined;
596
+ executionType?: ExecutionType | undefined;
597
+ externalBridge?: ExternalBridgeType | undefined;
598
+ bridgeMinAcceptedAmount?: string | number | undefined;
599
+ bridgeLockTime?: number | undefined;
600
+ override?: Record<string, z.objectInputType<{
601
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
602
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
603
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
604
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
605
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
606
+ }, z.ZodTypeAny, "passthrough">> | undefined;
607
+ }>;
608
+ }>, z.ZodObject<{
609
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
610
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
611
+ bridge: z.ZodOptional<z.ZodString>;
612
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
613
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
614
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
615
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
616
+ } & {
617
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
618
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
619
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
620
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
621
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
622
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
623
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
624
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
625
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
626
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
627
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
628
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
629
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
630
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
631
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
632
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
633
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
634
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
635
+ }, z.ZodTypeAny, "passthrough">>>>;
636
+ } & {
637
+ minAmount: z.ZodObject<{
638
+ min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
639
+ target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
640
+ type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ type: RebalancerMinAmountType;
643
+ min: string | number;
644
+ target: string | number;
645
+ }, {
646
+ type: RebalancerMinAmountType;
647
+ min: string | number;
648
+ target: string | number;
649
+ }>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ minAmount: {
652
+ type: RebalancerMinAmountType;
653
+ min: string | number;
654
+ target: string | number;
655
+ };
656
+ bridge?: string | undefined;
657
+ executionType?: ExecutionType | undefined;
658
+ externalBridge?: ExternalBridgeType | undefined;
659
+ bridgeMinAcceptedAmount?: string | number | undefined;
660
+ bridgeLockTime?: number | undefined;
661
+ override?: Record<string, z.objectOutputType<{
662
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
663
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
664
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
665
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
666
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
667
+ }, z.ZodTypeAny, "passthrough">> | undefined;
668
+ }, {
669
+ minAmount: {
670
+ type: RebalancerMinAmountType;
671
+ min: string | number;
672
+ target: string | number;
673
+ };
674
+ bridge?: string | undefined;
675
+ executionType?: ExecutionType | undefined;
676
+ externalBridge?: ExternalBridgeType | undefined;
677
+ bridgeMinAcceptedAmount?: string | number | undefined;
678
+ bridgeLockTime?: number | undefined;
679
+ override?: Record<string, z.objectInputType<{
680
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
681
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
682
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
683
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
684
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
685
+ }, z.ZodTypeAny, "passthrough">> | undefined;
686
+ }>>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
689
+ chains: Record<string, {
690
+ minAmount: {
691
+ type: RebalancerMinAmountType;
692
+ min: string | number;
693
+ target: string | number;
694
+ };
695
+ bridge?: string | undefined;
696
+ executionType?: ExecutionType | undefined;
697
+ externalBridge?: ExternalBridgeType | undefined;
698
+ bridgeMinAcceptedAmount?: string | number | undefined;
699
+ bridgeLockTime?: number | undefined;
700
+ override?: Record<string, z.objectOutputType<{
701
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
702
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
703
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
704
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
705
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
706
+ }, z.ZodTypeAny, "passthrough">> | undefined;
707
+ }>;
708
+ }, {
709
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
710
+ chains: Record<string, {
711
+ minAmount: {
712
+ type: RebalancerMinAmountType;
713
+ min: string | number;
714
+ target: string | number;
715
+ };
716
+ bridge?: string | undefined;
717
+ executionType?: ExecutionType | undefined;
718
+ externalBridge?: ExternalBridgeType | undefined;
719
+ bridgeMinAcceptedAmount?: string | number | undefined;
720
+ bridgeLockTime?: number | undefined;
721
+ override?: Record<string, z.objectInputType<{
722
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
723
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
724
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
725
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
726
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
727
+ }, z.ZodTypeAny, "passthrough">> | undefined;
728
+ }>;
729
+ }>, z.ZodObject<{
730
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
731
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
732
+ bridge: z.ZodOptional<z.ZodString>;
733
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
734
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
735
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
736
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
737
+ } & {
738
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
739
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
740
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
741
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
742
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
743
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
744
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
745
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
746
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
747
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
748
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
749
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
750
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
751
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
752
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
753
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
754
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
755
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
756
+ }, z.ZodTypeAny, "passthrough">>>>;
757
+ } & {
758
+ buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ buffer: string | number;
761
+ bridge?: string | undefined;
762
+ executionType?: ExecutionType | undefined;
763
+ externalBridge?: ExternalBridgeType | undefined;
764
+ bridgeMinAcceptedAmount?: string | number | undefined;
765
+ bridgeLockTime?: number | undefined;
766
+ override?: Record<string, z.objectOutputType<{
767
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
768
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
769
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
770
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
771
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
772
+ }, z.ZodTypeAny, "passthrough">> | undefined;
773
+ }, {
774
+ buffer: string | number;
775
+ bridge?: string | undefined;
776
+ executionType?: ExecutionType | undefined;
777
+ externalBridge?: ExternalBridgeType | undefined;
778
+ bridgeMinAcceptedAmount?: string | number | undefined;
779
+ bridgeLockTime?: number | undefined;
780
+ override?: Record<string, z.objectInputType<{
781
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
782
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
783
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
784
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
785
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
786
+ }, z.ZodTypeAny, "passthrough">> | undefined;
787
+ }>>;
788
+ }, "strip", z.ZodTypeAny, {
789
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
790
+ chains: Record<string, {
791
+ buffer: string | number;
792
+ bridge?: string | undefined;
793
+ executionType?: ExecutionType | undefined;
794
+ externalBridge?: ExternalBridgeType | undefined;
795
+ bridgeMinAcceptedAmount?: string | number | undefined;
796
+ bridgeLockTime?: number | undefined;
797
+ override?: Record<string, z.objectOutputType<{
798
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
799
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
800
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
801
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
802
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
803
+ }, z.ZodTypeAny, "passthrough">> | undefined;
804
+ }>;
805
+ }, {
806
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
807
+ chains: Record<string, {
808
+ buffer: string | number;
809
+ bridge?: string | undefined;
810
+ executionType?: ExecutionType | undefined;
811
+ externalBridge?: ExternalBridgeType | undefined;
812
+ bridgeMinAcceptedAmount?: string | number | undefined;
813
+ bridgeLockTime?: number | undefined;
814
+ override?: Record<string, z.objectInputType<{
815
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
816
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
817
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
818
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
819
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
820
+ }, z.ZodTypeAny, "passthrough">> | undefined;
821
+ }>;
822
+ }>]>;
823
+ export declare const RebalancerStrategySchema: z.ZodEffects<z.ZodUnion<[z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
824
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
825
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
826
+ bridge: z.ZodOptional<z.ZodString>;
827
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
828
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
829
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
830
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
831
+ } & {
832
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
833
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
834
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
835
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
836
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
837
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
838
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
839
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
840
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
841
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
842
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
843
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
844
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
845
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
846
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
847
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
848
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
849
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
850
+ }, z.ZodTypeAny, "passthrough">>>>;
851
+ } & {
852
+ weighted: z.ZodObject<{
853
+ weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
854
+ tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
855
+ }, "strip", z.ZodTypeAny, {
856
+ weight: bigint;
857
+ tolerance: bigint;
858
+ }, {
859
+ weight: string | number;
860
+ tolerance: string | number;
861
+ }>;
862
+ }, "strip", z.ZodTypeAny, {
863
+ weighted: {
864
+ weight: bigint;
865
+ tolerance: bigint;
866
+ };
867
+ bridge?: string | undefined;
868
+ executionType?: ExecutionType | undefined;
869
+ externalBridge?: ExternalBridgeType | undefined;
870
+ bridgeMinAcceptedAmount?: string | number | undefined;
871
+ bridgeLockTime?: number | undefined;
872
+ override?: Record<string, z.objectOutputType<{
873
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
874
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
875
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
876
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
877
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
878
+ }, z.ZodTypeAny, "passthrough">> | undefined;
879
+ }, {
880
+ weighted: {
881
+ weight: string | number;
882
+ tolerance: string | number;
883
+ };
884
+ bridge?: string | undefined;
885
+ executionType?: ExecutionType | undefined;
886
+ externalBridge?: ExternalBridgeType | undefined;
887
+ bridgeMinAcceptedAmount?: string | number | undefined;
888
+ bridgeLockTime?: number | undefined;
889
+ override?: Record<string, z.objectInputType<{
890
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
891
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
892
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
893
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
894
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
895
+ }, z.ZodTypeAny, "passthrough">> | undefined;
896
+ }>>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
899
+ chains: Record<string, {
900
+ weighted: {
901
+ weight: bigint;
902
+ tolerance: bigint;
903
+ };
904
+ bridge?: string | undefined;
905
+ executionType?: ExecutionType | undefined;
906
+ externalBridge?: ExternalBridgeType | undefined;
907
+ bridgeMinAcceptedAmount?: string | number | undefined;
908
+ bridgeLockTime?: number | undefined;
909
+ override?: Record<string, z.objectOutputType<{
910
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
911
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
912
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
913
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
914
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
915
+ }, z.ZodTypeAny, "passthrough">> | undefined;
916
+ }>;
917
+ }, {
918
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
919
+ chains: Record<string, {
920
+ weighted: {
921
+ weight: string | number;
922
+ tolerance: string | number;
923
+ };
924
+ bridge?: string | undefined;
925
+ executionType?: ExecutionType | undefined;
926
+ externalBridge?: ExternalBridgeType | undefined;
927
+ bridgeMinAcceptedAmount?: string | number | undefined;
928
+ bridgeLockTime?: number | undefined;
929
+ override?: Record<string, z.objectInputType<{
930
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
931
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
932
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
933
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
934
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
935
+ }, z.ZodTypeAny, "passthrough">> | undefined;
936
+ }>;
937
+ }>, z.ZodObject<{
938
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
939
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
940
+ bridge: z.ZodOptional<z.ZodString>;
941
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
942
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
943
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
944
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
945
+ } & {
946
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
947
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
948
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
949
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
950
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
951
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
952
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
953
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
954
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
955
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
956
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
957
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
958
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
959
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
960
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
961
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
962
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
963
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
964
+ }, z.ZodTypeAny, "passthrough">>>>;
965
+ } & {
966
+ minAmount: z.ZodObject<{
967
+ min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
968
+ target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
969
+ type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ type: RebalancerMinAmountType;
972
+ min: string | number;
973
+ target: string | number;
974
+ }, {
975
+ type: RebalancerMinAmountType;
976
+ min: string | number;
977
+ target: string | number;
978
+ }>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ minAmount: {
981
+ type: RebalancerMinAmountType;
982
+ min: string | number;
983
+ target: string | number;
984
+ };
985
+ bridge?: string | undefined;
986
+ executionType?: ExecutionType | undefined;
987
+ externalBridge?: ExternalBridgeType | undefined;
988
+ bridgeMinAcceptedAmount?: string | number | undefined;
989
+ bridgeLockTime?: number | undefined;
990
+ override?: Record<string, z.objectOutputType<{
991
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
992
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
993
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
994
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
995
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
996
+ }, z.ZodTypeAny, "passthrough">> | undefined;
997
+ }, {
998
+ minAmount: {
999
+ type: RebalancerMinAmountType;
1000
+ min: string | number;
1001
+ target: string | number;
1002
+ };
1003
+ bridge?: string | undefined;
1004
+ executionType?: ExecutionType | undefined;
1005
+ externalBridge?: ExternalBridgeType | undefined;
1006
+ bridgeMinAcceptedAmount?: string | number | undefined;
1007
+ bridgeLockTime?: number | undefined;
1008
+ override?: Record<string, z.objectInputType<{
1009
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1010
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1011
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1012
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1013
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1014
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1015
+ }>>;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1018
+ chains: Record<string, {
1019
+ minAmount: {
1020
+ type: RebalancerMinAmountType;
1021
+ min: string | number;
1022
+ target: string | number;
1023
+ };
1024
+ bridge?: string | undefined;
1025
+ executionType?: ExecutionType | undefined;
1026
+ externalBridge?: ExternalBridgeType | undefined;
1027
+ bridgeMinAcceptedAmount?: string | number | undefined;
1028
+ bridgeLockTime?: number | undefined;
1029
+ override?: Record<string, z.objectOutputType<{
1030
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1031
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1032
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1033
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1034
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1035
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1036
+ }>;
1037
+ }, {
1038
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1039
+ chains: Record<string, {
1040
+ minAmount: {
1041
+ type: RebalancerMinAmountType;
1042
+ min: string | number;
1043
+ target: string | number;
1044
+ };
1045
+ bridge?: string | undefined;
1046
+ executionType?: ExecutionType | undefined;
1047
+ externalBridge?: ExternalBridgeType | undefined;
1048
+ bridgeMinAcceptedAmount?: string | number | undefined;
1049
+ bridgeLockTime?: number | undefined;
1050
+ override?: Record<string, z.objectInputType<{
1051
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1052
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1053
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1054
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1055
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1056
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1057
+ }>;
1058
+ }>, z.ZodObject<{
1059
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
1060
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
1061
+ bridge: z.ZodOptional<z.ZodString>;
1062
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
1063
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
1064
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1065
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
1066
+ } & {
1067
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1068
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1069
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1070
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1071
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1072
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1073
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1074
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1075
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1076
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1077
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1078
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1079
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1080
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1081
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1082
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1083
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1084
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1085
+ }, z.ZodTypeAny, "passthrough">>>>;
1086
+ } & {
1087
+ buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ buffer: string | number;
1090
+ bridge?: string | undefined;
1091
+ executionType?: ExecutionType | undefined;
1092
+ externalBridge?: ExternalBridgeType | undefined;
1093
+ bridgeMinAcceptedAmount?: string | number | undefined;
1094
+ bridgeLockTime?: number | undefined;
1095
+ override?: Record<string, z.objectOutputType<{
1096
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1097
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1098
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1099
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1100
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1101
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1102
+ }, {
1103
+ buffer: string | number;
1104
+ bridge?: string | undefined;
1105
+ executionType?: ExecutionType | undefined;
1106
+ externalBridge?: ExternalBridgeType | undefined;
1107
+ bridgeMinAcceptedAmount?: string | number | undefined;
1108
+ bridgeLockTime?: number | undefined;
1109
+ override?: Record<string, z.objectInputType<{
1110
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1111
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1112
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1113
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1114
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1115
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1116
+ }>>;
1117
+ }, "strip", z.ZodTypeAny, {
1118
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
1119
+ chains: Record<string, {
1120
+ buffer: string | number;
1121
+ bridge?: string | undefined;
1122
+ executionType?: ExecutionType | undefined;
1123
+ externalBridge?: ExternalBridgeType | undefined;
1124
+ bridgeMinAcceptedAmount?: string | number | undefined;
1125
+ bridgeLockTime?: number | undefined;
1126
+ override?: Record<string, z.objectOutputType<{
1127
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1128
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1129
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1130
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1131
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1132
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1133
+ }>;
1134
+ }, {
1135
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
1136
+ chains: Record<string, {
1137
+ buffer: string | number;
1138
+ bridge?: string | undefined;
1139
+ executionType?: ExecutionType | undefined;
1140
+ externalBridge?: ExternalBridgeType | undefined;
1141
+ bridgeMinAcceptedAmount?: string | number | undefined;
1142
+ bridgeLockTime?: number | undefined;
1143
+ override?: Record<string, z.objectInputType<{
1144
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1145
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1146
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1147
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1148
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1149
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1150
+ }>;
1151
+ }>]>, z.ZodArray<z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
1152
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
1153
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
1154
+ bridge: z.ZodOptional<z.ZodString>;
1155
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
1156
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
1157
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1158
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
1159
+ } & {
1160
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1161
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1162
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1163
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1164
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1165
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1166
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1167
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1168
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1169
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1170
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1171
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1172
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1173
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1174
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1175
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1176
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1177
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1178
+ }, z.ZodTypeAny, "passthrough">>>>;
1179
+ } & {
1180
+ weighted: z.ZodObject<{
1181
+ weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
1182
+ tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ weight: bigint;
1185
+ tolerance: bigint;
1186
+ }, {
1187
+ weight: string | number;
1188
+ tolerance: string | number;
1189
+ }>;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ weighted: {
1192
+ weight: bigint;
1193
+ tolerance: bigint;
1194
+ };
1195
+ bridge?: string | undefined;
1196
+ executionType?: ExecutionType | undefined;
1197
+ externalBridge?: ExternalBridgeType | undefined;
1198
+ bridgeMinAcceptedAmount?: string | number | undefined;
1199
+ bridgeLockTime?: number | undefined;
1200
+ override?: Record<string, z.objectOutputType<{
1201
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1202
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1203
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1204
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1205
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1206
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1207
+ }, {
1208
+ weighted: {
1209
+ weight: string | number;
1210
+ tolerance: string | number;
1211
+ };
1212
+ bridge?: string | undefined;
1213
+ executionType?: ExecutionType | undefined;
1214
+ externalBridge?: ExternalBridgeType | undefined;
1215
+ bridgeMinAcceptedAmount?: string | number | undefined;
1216
+ bridgeLockTime?: number | undefined;
1217
+ override?: Record<string, z.objectInputType<{
1218
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1219
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1220
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1221
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1222
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1223
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1224
+ }>>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
1227
+ chains: Record<string, {
1228
+ weighted: {
1229
+ weight: bigint;
1230
+ tolerance: bigint;
1231
+ };
1232
+ bridge?: string | undefined;
1233
+ executionType?: ExecutionType | undefined;
1234
+ externalBridge?: ExternalBridgeType | undefined;
1235
+ bridgeMinAcceptedAmount?: string | number | undefined;
1236
+ bridgeLockTime?: number | undefined;
1237
+ override?: Record<string, z.objectOutputType<{
1238
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1239
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1240
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1241
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1242
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1243
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1244
+ }>;
1245
+ }, {
1246
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
1247
+ chains: Record<string, {
1248
+ weighted: {
1249
+ weight: string | number;
1250
+ tolerance: string | number;
1251
+ };
1252
+ bridge?: string | undefined;
1253
+ executionType?: ExecutionType | undefined;
1254
+ externalBridge?: ExternalBridgeType | undefined;
1255
+ bridgeMinAcceptedAmount?: string | number | undefined;
1256
+ bridgeLockTime?: number | undefined;
1257
+ override?: Record<string, z.objectInputType<{
1258
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1259
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1260
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1261
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1262
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1263
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1264
+ }>;
1265
+ }>, z.ZodObject<{
1266
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
1267
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
1268
+ bridge: z.ZodOptional<z.ZodString>;
1269
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
1270
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
1271
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1272
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
1273
+ } & {
1274
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1275
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1276
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1277
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1278
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1279
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1280
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1281
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1282
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1283
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1284
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1285
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1286
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1287
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1288
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1289
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1290
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1291
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1292
+ }, z.ZodTypeAny, "passthrough">>>>;
1293
+ } & {
1294
+ minAmount: z.ZodObject<{
1295
+ min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1296
+ target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1297
+ type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ type: RebalancerMinAmountType;
1300
+ min: string | number;
1301
+ target: string | number;
1302
+ }, {
1303
+ type: RebalancerMinAmountType;
1304
+ min: string | number;
1305
+ target: string | number;
1306
+ }>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ minAmount: {
1309
+ type: RebalancerMinAmountType;
1310
+ min: string | number;
1311
+ target: string | number;
1312
+ };
1313
+ bridge?: string | undefined;
1314
+ executionType?: ExecutionType | undefined;
1315
+ externalBridge?: ExternalBridgeType | undefined;
1316
+ bridgeMinAcceptedAmount?: string | number | undefined;
1317
+ bridgeLockTime?: number | undefined;
1318
+ override?: Record<string, z.objectOutputType<{
1319
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1320
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1321
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1322
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1323
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1324
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1325
+ }, {
1326
+ minAmount: {
1327
+ type: RebalancerMinAmountType;
1328
+ min: string | number;
1329
+ target: string | number;
1330
+ };
1331
+ bridge?: string | undefined;
1332
+ executionType?: ExecutionType | undefined;
1333
+ externalBridge?: ExternalBridgeType | undefined;
1334
+ bridgeMinAcceptedAmount?: string | number | undefined;
1335
+ bridgeLockTime?: number | undefined;
1336
+ override?: Record<string, z.objectInputType<{
1337
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1338
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1339
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1340
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1341
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1342
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1343
+ }>>;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1346
+ chains: Record<string, {
1347
+ minAmount: {
1348
+ type: RebalancerMinAmountType;
1349
+ min: string | number;
1350
+ target: string | number;
1351
+ };
1352
+ bridge?: string | undefined;
1353
+ executionType?: ExecutionType | undefined;
1354
+ externalBridge?: ExternalBridgeType | undefined;
1355
+ bridgeMinAcceptedAmount?: string | number | undefined;
1356
+ bridgeLockTime?: number | undefined;
1357
+ override?: Record<string, z.objectOutputType<{
1358
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1359
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1360
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1361
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1362
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1363
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1364
+ }>;
1365
+ }, {
1366
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1367
+ chains: Record<string, {
1368
+ minAmount: {
1369
+ type: RebalancerMinAmountType;
1370
+ min: string | number;
1371
+ target: string | number;
1372
+ };
1373
+ bridge?: string | undefined;
1374
+ executionType?: ExecutionType | undefined;
1375
+ externalBridge?: ExternalBridgeType | undefined;
1376
+ bridgeMinAcceptedAmount?: string | number | undefined;
1377
+ bridgeLockTime?: number | undefined;
1378
+ override?: Record<string, z.objectInputType<{
1379
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1380
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1381
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1382
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1383
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1384
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1385
+ }>;
1386
+ }>, z.ZodObject<{
1387
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
1388
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
1389
+ bridge: z.ZodOptional<z.ZodString>;
1390
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
1391
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
1392
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1393
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
1394
+ } & {
1395
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1396
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1397
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1398
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1399
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1400
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1401
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1402
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1403
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1404
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1405
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1406
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1407
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1408
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1409
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1410
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1411
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1412
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1413
+ }, z.ZodTypeAny, "passthrough">>>>;
1414
+ } & {
1415
+ buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ buffer: string | number;
1418
+ bridge?: string | undefined;
1419
+ executionType?: ExecutionType | undefined;
1420
+ externalBridge?: ExternalBridgeType | undefined;
1421
+ bridgeMinAcceptedAmount?: string | number | undefined;
1422
+ bridgeLockTime?: number | undefined;
1423
+ override?: Record<string, z.objectOutputType<{
1424
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1425
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1426
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1427
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1428
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1429
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1430
+ }, {
1431
+ buffer: string | number;
1432
+ bridge?: string | undefined;
1433
+ executionType?: ExecutionType | undefined;
1434
+ externalBridge?: ExternalBridgeType | undefined;
1435
+ bridgeMinAcceptedAmount?: string | number | undefined;
1436
+ bridgeLockTime?: number | undefined;
1437
+ override?: Record<string, z.objectInputType<{
1438
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1439
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1440
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1441
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1442
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1443
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1444
+ }>>;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
1447
+ chains: Record<string, {
1448
+ buffer: string | number;
1449
+ bridge?: string | undefined;
1450
+ executionType?: ExecutionType | undefined;
1451
+ externalBridge?: ExternalBridgeType | undefined;
1452
+ bridgeMinAcceptedAmount?: string | number | undefined;
1453
+ bridgeLockTime?: number | undefined;
1454
+ override?: Record<string, z.objectOutputType<{
1455
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1456
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1457
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1458
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1459
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1460
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1461
+ }>;
1462
+ }, {
1463
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
1464
+ chains: Record<string, {
1465
+ buffer: string | number;
1466
+ bridge?: string | undefined;
1467
+ executionType?: ExecutionType | undefined;
1468
+ externalBridge?: ExternalBridgeType | undefined;
1469
+ bridgeMinAcceptedAmount?: string | number | undefined;
1470
+ bridgeLockTime?: number | undefined;
1471
+ override?: Record<string, z.objectInputType<{
1472
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1473
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1474
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1475
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1476
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1477
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1478
+ }>;
1479
+ }>]>, "many">]>, ({
1480
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
1481
+ chains: Record<string, {
1482
+ weighted: {
1483
+ weight: bigint;
1484
+ tolerance: bigint;
1485
+ };
1486
+ bridge?: string | undefined;
1487
+ executionType?: ExecutionType | undefined;
1488
+ externalBridge?: ExternalBridgeType | undefined;
1489
+ bridgeMinAcceptedAmount?: string | number | undefined;
1490
+ bridgeLockTime?: number | undefined;
1491
+ override?: Record<string, z.objectOutputType<{
1492
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1493
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1494
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1495
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1496
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1497
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1498
+ }>;
1499
+ } | {
1500
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1501
+ chains: Record<string, {
1502
+ minAmount: {
1503
+ type: RebalancerMinAmountType;
1504
+ min: string | number;
1505
+ target: string | number;
1506
+ };
1507
+ bridge?: string | undefined;
1508
+ executionType?: ExecutionType | undefined;
1509
+ externalBridge?: ExternalBridgeType | undefined;
1510
+ bridgeMinAcceptedAmount?: string | number | undefined;
1511
+ bridgeLockTime?: number | undefined;
1512
+ override?: Record<string, z.objectOutputType<{
1513
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1514
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1515
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1516
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1517
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1518
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1519
+ }>;
1520
+ } | {
1521
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
1522
+ chains: Record<string, {
1523
+ buffer: string | number;
1524
+ bridge?: string | undefined;
1525
+ executionType?: ExecutionType | undefined;
1526
+ externalBridge?: ExternalBridgeType | undefined;
1527
+ bridgeMinAcceptedAmount?: string | number | undefined;
1528
+ bridgeLockTime?: number | undefined;
1529
+ override?: Record<string, z.objectOutputType<{
1530
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1531
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1532
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1533
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1534
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1535
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1536
+ }>;
1537
+ })[], {
1538
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
1539
+ chains: Record<string, {
1540
+ weighted: {
1541
+ weight: string | number;
1542
+ tolerance: string | number;
1543
+ };
1544
+ bridge?: string | undefined;
1545
+ executionType?: ExecutionType | undefined;
1546
+ externalBridge?: ExternalBridgeType | undefined;
1547
+ bridgeMinAcceptedAmount?: string | number | undefined;
1548
+ bridgeLockTime?: number | undefined;
1549
+ override?: Record<string, z.objectInputType<{
1550
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1551
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1552
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1553
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1554
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1555
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1556
+ }>;
1557
+ } | {
1558
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1559
+ chains: Record<string, {
1560
+ minAmount: {
1561
+ type: RebalancerMinAmountType;
1562
+ min: string | number;
1563
+ target: string | number;
1564
+ };
1565
+ bridge?: string | undefined;
1566
+ executionType?: ExecutionType | undefined;
1567
+ externalBridge?: ExternalBridgeType | undefined;
1568
+ bridgeMinAcceptedAmount?: string | number | undefined;
1569
+ bridgeLockTime?: number | undefined;
1570
+ override?: Record<string, z.objectInputType<{
1571
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1572
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1573
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1574
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1575
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1576
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1577
+ }>;
1578
+ } | {
1579
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
1580
+ chains: Record<string, {
1581
+ buffer: string | number;
1582
+ bridge?: string | undefined;
1583
+ executionType?: ExecutionType | undefined;
1584
+ externalBridge?: ExternalBridgeType | undefined;
1585
+ bridgeMinAcceptedAmount?: string | number | undefined;
1586
+ bridgeLockTime?: number | undefined;
1587
+ override?: Record<string, z.objectInputType<{
1588
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1589
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1590
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1591
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1592
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1593
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1594
+ }>;
1595
+ } | ({
1596
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
1597
+ chains: Record<string, {
1598
+ weighted: {
1599
+ weight: string | number;
1600
+ tolerance: string | number;
1601
+ };
1602
+ bridge?: string | undefined;
1603
+ executionType?: ExecutionType | undefined;
1604
+ externalBridge?: ExternalBridgeType | undefined;
1605
+ bridgeMinAcceptedAmount?: string | number | undefined;
1606
+ bridgeLockTime?: number | undefined;
1607
+ override?: Record<string, z.objectInputType<{
1608
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1609
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1610
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1611
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1612
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1613
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1614
+ }>;
1615
+ } | {
1616
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1617
+ chains: Record<string, {
1618
+ minAmount: {
1619
+ type: RebalancerMinAmountType;
1620
+ min: string | number;
1621
+ target: string | number;
1622
+ };
1623
+ bridge?: string | undefined;
1624
+ executionType?: ExecutionType | undefined;
1625
+ externalBridge?: ExternalBridgeType | undefined;
1626
+ bridgeMinAcceptedAmount?: string | number | undefined;
1627
+ bridgeLockTime?: number | undefined;
1628
+ override?: Record<string, z.objectInputType<{
1629
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1630
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1631
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1632
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1633
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1634
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1635
+ }>;
1636
+ } | {
1637
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
1638
+ chains: Record<string, {
1639
+ buffer: string | number;
1640
+ bridge?: string | undefined;
1641
+ executionType?: ExecutionType | undefined;
1642
+ externalBridge?: ExternalBridgeType | undefined;
1643
+ bridgeMinAcceptedAmount?: string | number | undefined;
1644
+ bridgeLockTime?: number | undefined;
1645
+ override?: Record<string, z.objectInputType<{
1646
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1647
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1648
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1649
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1650
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1651
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1652
+ }>;
1653
+ })[]>;
1654
+ export declare const DEFAULT_INTENT_TTL_S = 604800;
1655
+ export declare const DEFAULT_INTENT_TTL_MS: number;
1656
+ export declare const DEFAULT_MOVEMENT_STALENESS_MS: number;
1657
+ export declare const LiFiBridgeConfigSchema: z.ZodObject<{
1658
+ integrator: z.ZodString;
1659
+ defaultSlippage: z.ZodOptional<z.ZodNumber>;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ integrator: string;
1662
+ defaultSlippage?: number | undefined;
1663
+ }, {
1664
+ integrator: string;
1665
+ defaultSlippage?: number | undefined;
1666
+ }>;
1667
+ export declare const ExternalBridgesConfigSchema: z.ZodObject<{
1668
+ lifi: z.ZodOptional<z.ZodObject<{
1669
+ integrator: z.ZodString;
1670
+ defaultSlippage: z.ZodOptional<z.ZodNumber>;
1671
+ }, "strip", z.ZodTypeAny, {
1672
+ integrator: string;
1673
+ defaultSlippage?: number | undefined;
1674
+ }, {
1675
+ integrator: string;
1676
+ defaultSlippage?: number | undefined;
1677
+ }>>;
1678
+ }, "strip", z.ZodTypeAny, {
1679
+ lifi?: {
1680
+ integrator: string;
1681
+ defaultSlippage?: number | undefined;
1682
+ } | undefined;
1683
+ }, {
1684
+ lifi?: {
1685
+ integrator: string;
1686
+ defaultSlippage?: number | undefined;
1687
+ } | undefined;
1688
+ }>;
1689
+ export declare const RebalancerConfigSchema: z.ZodEffects<z.ZodObject<{
1690
+ warpRouteId: z.ZodString;
1691
+ strategy: z.ZodEffects<z.ZodUnion<[z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
1692
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
1693
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
1694
+ bridge: z.ZodOptional<z.ZodString>;
1695
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
1696
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
1697
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1698
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
1699
+ } & {
1700
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1701
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1702
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1703
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1704
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1705
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1706
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1707
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1708
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1709
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1710
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1711
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1712
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1713
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1714
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1715
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1716
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1717
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1718
+ }, z.ZodTypeAny, "passthrough">>>>;
1719
+ } & {
1720
+ weighted: z.ZodObject<{
1721
+ weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
1722
+ tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ weight: bigint;
1725
+ tolerance: bigint;
1726
+ }, {
1727
+ weight: string | number;
1728
+ tolerance: string | number;
1729
+ }>;
1730
+ }, "strip", z.ZodTypeAny, {
1731
+ weighted: {
1732
+ weight: bigint;
1733
+ tolerance: bigint;
1734
+ };
1735
+ bridge?: string | undefined;
1736
+ executionType?: ExecutionType | undefined;
1737
+ externalBridge?: ExternalBridgeType | undefined;
1738
+ bridgeMinAcceptedAmount?: string | number | undefined;
1739
+ bridgeLockTime?: number | undefined;
1740
+ override?: Record<string, z.objectOutputType<{
1741
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1742
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1743
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1744
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1745
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1746
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1747
+ }, {
1748
+ weighted: {
1749
+ weight: string | number;
1750
+ tolerance: string | number;
1751
+ };
1752
+ bridge?: string | undefined;
1753
+ executionType?: ExecutionType | undefined;
1754
+ externalBridge?: ExternalBridgeType | undefined;
1755
+ bridgeMinAcceptedAmount?: string | number | undefined;
1756
+ bridgeLockTime?: number | undefined;
1757
+ override?: Record<string, z.objectInputType<{
1758
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1759
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1760
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1761
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1762
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1763
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1764
+ }>>;
1765
+ }, "strip", z.ZodTypeAny, {
1766
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
1767
+ chains: Record<string, {
1768
+ weighted: {
1769
+ weight: bigint;
1770
+ tolerance: bigint;
1771
+ };
1772
+ bridge?: string | undefined;
1773
+ executionType?: ExecutionType | undefined;
1774
+ externalBridge?: ExternalBridgeType | undefined;
1775
+ bridgeMinAcceptedAmount?: string | number | undefined;
1776
+ bridgeLockTime?: number | undefined;
1777
+ override?: Record<string, z.objectOutputType<{
1778
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1779
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1780
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1781
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1782
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1783
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1784
+ }>;
1785
+ }, {
1786
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
1787
+ chains: Record<string, {
1788
+ weighted: {
1789
+ weight: string | number;
1790
+ tolerance: string | number;
1791
+ };
1792
+ bridge?: string | undefined;
1793
+ executionType?: ExecutionType | undefined;
1794
+ externalBridge?: ExternalBridgeType | undefined;
1795
+ bridgeMinAcceptedAmount?: string | number | undefined;
1796
+ bridgeLockTime?: number | undefined;
1797
+ override?: Record<string, z.objectInputType<{
1798
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1799
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1800
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1801
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1802
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1803
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1804
+ }>;
1805
+ }>, z.ZodObject<{
1806
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
1807
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
1808
+ bridge: z.ZodOptional<z.ZodString>;
1809
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
1810
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
1811
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1812
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
1813
+ } & {
1814
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1815
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1816
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1817
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1818
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1819
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1820
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1821
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1822
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1823
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1824
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1825
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1826
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1827
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1828
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1829
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1830
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1831
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1832
+ }, z.ZodTypeAny, "passthrough">>>>;
1833
+ } & {
1834
+ minAmount: z.ZodObject<{
1835
+ min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1836
+ target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1837
+ type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
1838
+ }, "strip", z.ZodTypeAny, {
1839
+ type: RebalancerMinAmountType;
1840
+ min: string | number;
1841
+ target: string | number;
1842
+ }, {
1843
+ type: RebalancerMinAmountType;
1844
+ min: string | number;
1845
+ target: string | number;
1846
+ }>;
1847
+ }, "strip", z.ZodTypeAny, {
1848
+ minAmount: {
1849
+ type: RebalancerMinAmountType;
1850
+ min: string | number;
1851
+ target: string | number;
1852
+ };
1853
+ bridge?: string | undefined;
1854
+ executionType?: ExecutionType | undefined;
1855
+ externalBridge?: ExternalBridgeType | undefined;
1856
+ bridgeMinAcceptedAmount?: string | number | undefined;
1857
+ bridgeLockTime?: number | undefined;
1858
+ override?: Record<string, z.objectOutputType<{
1859
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1860
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1861
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1862
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1863
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1864
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1865
+ }, {
1866
+ minAmount: {
1867
+ type: RebalancerMinAmountType;
1868
+ min: string | number;
1869
+ target: string | number;
1870
+ };
1871
+ bridge?: string | undefined;
1872
+ executionType?: ExecutionType | undefined;
1873
+ externalBridge?: ExternalBridgeType | undefined;
1874
+ bridgeMinAcceptedAmount?: string | number | undefined;
1875
+ bridgeLockTime?: number | undefined;
1876
+ override?: Record<string, z.objectInputType<{
1877
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1878
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1879
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1880
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1881
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1882
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1883
+ }>>;
1884
+ }, "strip", z.ZodTypeAny, {
1885
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1886
+ chains: Record<string, {
1887
+ minAmount: {
1888
+ type: RebalancerMinAmountType;
1889
+ min: string | number;
1890
+ target: string | number;
1891
+ };
1892
+ bridge?: string | undefined;
1893
+ executionType?: ExecutionType | undefined;
1894
+ externalBridge?: ExternalBridgeType | undefined;
1895
+ bridgeMinAcceptedAmount?: string | number | undefined;
1896
+ bridgeLockTime?: number | undefined;
1897
+ override?: Record<string, z.objectOutputType<{
1898
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1899
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1900
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1901
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1902
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1903
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1904
+ }>;
1905
+ }, {
1906
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
1907
+ chains: Record<string, {
1908
+ minAmount: {
1909
+ type: RebalancerMinAmountType;
1910
+ min: string | number;
1911
+ target: string | number;
1912
+ };
1913
+ bridge?: string | undefined;
1914
+ executionType?: ExecutionType | undefined;
1915
+ externalBridge?: ExternalBridgeType | undefined;
1916
+ bridgeMinAcceptedAmount?: string | number | undefined;
1917
+ bridgeLockTime?: number | undefined;
1918
+ override?: Record<string, z.objectInputType<{
1919
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1920
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1921
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1922
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1923
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1924
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1925
+ }>;
1926
+ }>, z.ZodObject<{
1927
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
1928
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
1929
+ bridge: z.ZodOptional<z.ZodString>;
1930
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
1931
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
1932
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1933
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
1934
+ } & {
1935
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1936
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1937
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1938
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1939
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1940
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1941
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1942
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1943
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1944
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1945
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1946
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1947
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1948
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1949
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1950
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1951
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1952
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1953
+ }, z.ZodTypeAny, "passthrough">>>>;
1954
+ } & {
1955
+ buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1956
+ }, "strip", z.ZodTypeAny, {
1957
+ buffer: string | number;
1958
+ bridge?: string | undefined;
1959
+ executionType?: ExecutionType | undefined;
1960
+ externalBridge?: ExternalBridgeType | undefined;
1961
+ bridgeMinAcceptedAmount?: string | number | undefined;
1962
+ bridgeLockTime?: number | undefined;
1963
+ override?: Record<string, z.objectOutputType<{
1964
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1965
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1966
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1967
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1968
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1969
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1970
+ }, {
1971
+ buffer: string | number;
1972
+ bridge?: string | undefined;
1973
+ executionType?: ExecutionType | undefined;
1974
+ externalBridge?: ExternalBridgeType | undefined;
1975
+ bridgeMinAcceptedAmount?: string | number | undefined;
1976
+ bridgeLockTime?: number | undefined;
1977
+ override?: Record<string, z.objectInputType<{
1978
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1979
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1980
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1981
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1982
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
1983
+ }, z.ZodTypeAny, "passthrough">> | undefined;
1984
+ }>>;
1985
+ }, "strip", z.ZodTypeAny, {
1986
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
1987
+ chains: Record<string, {
1988
+ buffer: string | number;
1989
+ bridge?: string | undefined;
1990
+ executionType?: ExecutionType | undefined;
1991
+ externalBridge?: ExternalBridgeType | undefined;
1992
+ bridgeMinAcceptedAmount?: string | number | undefined;
1993
+ bridgeLockTime?: number | undefined;
1994
+ override?: Record<string, z.objectOutputType<{
1995
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1996
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
1997
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
1998
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
1999
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2000
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2001
+ }>;
2002
+ }, {
2003
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2004
+ chains: Record<string, {
2005
+ buffer: string | number;
2006
+ bridge?: string | undefined;
2007
+ executionType?: ExecutionType | undefined;
2008
+ externalBridge?: ExternalBridgeType | undefined;
2009
+ bridgeMinAcceptedAmount?: string | number | undefined;
2010
+ bridgeLockTime?: number | undefined;
2011
+ override?: Record<string, z.objectInputType<{
2012
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2013
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2014
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2015
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2016
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2017
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2018
+ }>;
2019
+ }>]>, z.ZodArray<z.ZodDiscriminatedUnion<"rebalanceStrategy", [z.ZodObject<{
2020
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.Weighted>;
2021
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
2022
+ bridge: z.ZodOptional<z.ZodString>;
2023
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
2024
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
2025
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2026
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
2027
+ } & {
2028
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2029
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2030
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2031
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2032
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2033
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2034
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2035
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2036
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2037
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2038
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2039
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2040
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2041
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2042
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2043
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2044
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2045
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2046
+ }, z.ZodTypeAny, "passthrough">>>>;
2047
+ } & {
2048
+ weighted: z.ZodObject<{
2049
+ weight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
2050
+ tolerance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, bigint, string | number>;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ weight: bigint;
2053
+ tolerance: bigint;
2054
+ }, {
2055
+ weight: string | number;
2056
+ tolerance: string | number;
2057
+ }>;
2058
+ }, "strip", z.ZodTypeAny, {
2059
+ weighted: {
2060
+ weight: bigint;
2061
+ tolerance: bigint;
2062
+ };
2063
+ bridge?: string | undefined;
2064
+ executionType?: ExecutionType | undefined;
2065
+ externalBridge?: ExternalBridgeType | undefined;
2066
+ bridgeMinAcceptedAmount?: string | number | undefined;
2067
+ bridgeLockTime?: number | undefined;
2068
+ override?: Record<string, z.objectOutputType<{
2069
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2070
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2071
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2072
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2073
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2074
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2075
+ }, {
2076
+ weighted: {
2077
+ weight: string | number;
2078
+ tolerance: string | number;
2079
+ };
2080
+ bridge?: string | undefined;
2081
+ executionType?: ExecutionType | undefined;
2082
+ externalBridge?: ExternalBridgeType | undefined;
2083
+ bridgeMinAcceptedAmount?: string | number | undefined;
2084
+ bridgeLockTime?: number | undefined;
2085
+ override?: Record<string, z.objectInputType<{
2086
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2087
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2088
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2089
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2090
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2091
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2092
+ }>>;
2093
+ }, "strip", z.ZodTypeAny, {
2094
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2095
+ chains: Record<string, {
2096
+ weighted: {
2097
+ weight: bigint;
2098
+ tolerance: bigint;
2099
+ };
2100
+ bridge?: string | undefined;
2101
+ executionType?: ExecutionType | undefined;
2102
+ externalBridge?: ExternalBridgeType | undefined;
2103
+ bridgeMinAcceptedAmount?: string | number | undefined;
2104
+ bridgeLockTime?: number | undefined;
2105
+ override?: Record<string, z.objectOutputType<{
2106
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2107
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2108
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2109
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2110
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2111
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2112
+ }>;
2113
+ }, {
2114
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2115
+ chains: Record<string, {
2116
+ weighted: {
2117
+ weight: string | number;
2118
+ tolerance: string | number;
2119
+ };
2120
+ bridge?: string | undefined;
2121
+ executionType?: ExecutionType | undefined;
2122
+ externalBridge?: ExternalBridgeType | undefined;
2123
+ bridgeMinAcceptedAmount?: string | number | undefined;
2124
+ bridgeLockTime?: number | undefined;
2125
+ override?: Record<string, z.objectInputType<{
2126
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2127
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2128
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2129
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2130
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2131
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2132
+ }>;
2133
+ }>, z.ZodObject<{
2134
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.MinAmount>;
2135
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
2136
+ bridge: z.ZodOptional<z.ZodString>;
2137
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
2138
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
2139
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2140
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
2141
+ } & {
2142
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2143
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2144
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2145
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2146
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2147
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2148
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2149
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2150
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2151
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2152
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2153
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2154
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2155
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2156
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2157
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2158
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2159
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2160
+ }, z.ZodTypeAny, "passthrough">>>>;
2161
+ } & {
2162
+ minAmount: z.ZodObject<{
2163
+ min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2164
+ target: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2165
+ type: z.ZodNativeEnum<typeof RebalancerMinAmountType>;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ type: RebalancerMinAmountType;
2168
+ min: string | number;
2169
+ target: string | number;
2170
+ }, {
2171
+ type: RebalancerMinAmountType;
2172
+ min: string | number;
2173
+ target: string | number;
2174
+ }>;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ minAmount: {
2177
+ type: RebalancerMinAmountType;
2178
+ min: string | number;
2179
+ target: string | number;
2180
+ };
2181
+ bridge?: string | undefined;
2182
+ executionType?: ExecutionType | undefined;
2183
+ externalBridge?: ExternalBridgeType | undefined;
2184
+ bridgeMinAcceptedAmount?: string | number | undefined;
2185
+ bridgeLockTime?: number | undefined;
2186
+ override?: Record<string, z.objectOutputType<{
2187
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2188
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2189
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2190
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2191
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2192
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2193
+ }, {
2194
+ minAmount: {
2195
+ type: RebalancerMinAmountType;
2196
+ min: string | number;
2197
+ target: string | number;
2198
+ };
2199
+ bridge?: string | undefined;
2200
+ executionType?: ExecutionType | undefined;
2201
+ externalBridge?: ExternalBridgeType | undefined;
2202
+ bridgeMinAcceptedAmount?: string | number | undefined;
2203
+ bridgeLockTime?: number | undefined;
2204
+ override?: Record<string, z.objectInputType<{
2205
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2206
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2207
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2208
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2209
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2210
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2211
+ }>>;
2212
+ }, "strip", z.ZodTypeAny, {
2213
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2214
+ chains: Record<string, {
2215
+ minAmount: {
2216
+ type: RebalancerMinAmountType;
2217
+ min: string | number;
2218
+ target: string | number;
2219
+ };
2220
+ bridge?: string | undefined;
2221
+ executionType?: ExecutionType | undefined;
2222
+ externalBridge?: ExternalBridgeType | undefined;
2223
+ bridgeMinAcceptedAmount?: string | number | undefined;
2224
+ bridgeLockTime?: number | undefined;
2225
+ override?: Record<string, z.objectOutputType<{
2226
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2227
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2228
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2229
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2230
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2231
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2232
+ }>;
2233
+ }, {
2234
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2235
+ chains: Record<string, {
2236
+ minAmount: {
2237
+ type: RebalancerMinAmountType;
2238
+ min: string | number;
2239
+ target: string | number;
2240
+ };
2241
+ bridge?: string | undefined;
2242
+ executionType?: ExecutionType | undefined;
2243
+ externalBridge?: ExternalBridgeType | undefined;
2244
+ bridgeMinAcceptedAmount?: string | number | undefined;
2245
+ bridgeLockTime?: number | undefined;
2246
+ override?: Record<string, z.objectInputType<{
2247
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2248
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2249
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2250
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2251
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2252
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2253
+ }>;
2254
+ }>, z.ZodObject<{
2255
+ rebalanceStrategy: z.ZodLiteral<RebalancerStrategyOptions.CollateralDeficit>;
2256
+ chains: z.ZodRecord<z.ZodString, z.ZodObject<{
2257
+ bridge: z.ZodOptional<z.ZodString>;
2258
+ executionType: z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>;
2259
+ externalBridge: z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>;
2260
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
2261
+ bridgeLockTime: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
2262
+ } & {
2263
+ override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2264
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2265
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2266
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2267
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2268
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2269
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2270
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2271
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2272
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2273
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2274
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2275
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2276
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2277
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2278
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2279
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2280
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2281
+ }, z.ZodTypeAny, "passthrough">>>>;
2282
+ } & {
2283
+ buffer: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2284
+ }, "strip", z.ZodTypeAny, {
2285
+ buffer: string | number;
2286
+ bridge?: string | undefined;
2287
+ executionType?: ExecutionType | undefined;
2288
+ externalBridge?: ExternalBridgeType | undefined;
2289
+ bridgeMinAcceptedAmount?: string | number | undefined;
2290
+ bridgeLockTime?: number | undefined;
2291
+ override?: Record<string, z.objectOutputType<{
2292
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2293
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2294
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2295
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2296
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2297
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2298
+ }, {
2299
+ buffer: string | number;
2300
+ bridge?: string | undefined;
2301
+ executionType?: ExecutionType | undefined;
2302
+ externalBridge?: ExternalBridgeType | undefined;
2303
+ bridgeMinAcceptedAmount?: string | number | undefined;
2304
+ bridgeLockTime?: number | undefined;
2305
+ override?: Record<string, z.objectInputType<{
2306
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2307
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2308
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2309
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2310
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2311
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2312
+ }>>;
2313
+ }, "strip", z.ZodTypeAny, {
2314
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2315
+ chains: Record<string, {
2316
+ buffer: string | number;
2317
+ bridge?: string | undefined;
2318
+ executionType?: ExecutionType | undefined;
2319
+ externalBridge?: ExternalBridgeType | undefined;
2320
+ bridgeMinAcceptedAmount?: string | number | undefined;
2321
+ bridgeLockTime?: number | undefined;
2322
+ override?: Record<string, z.objectOutputType<{
2323
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2324
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2325
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2326
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2327
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2328
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2329
+ }>;
2330
+ }, {
2331
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2332
+ chains: Record<string, {
2333
+ buffer: string | number;
2334
+ bridge?: string | undefined;
2335
+ executionType?: ExecutionType | undefined;
2336
+ externalBridge?: ExternalBridgeType | undefined;
2337
+ bridgeMinAcceptedAmount?: string | number | undefined;
2338
+ bridgeLockTime?: number | undefined;
2339
+ override?: Record<string, z.objectInputType<{
2340
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2341
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2342
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2343
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2344
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2345
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2346
+ }>;
2347
+ }>]>, "many">]>, ({
2348
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2349
+ chains: Record<string, {
2350
+ weighted: {
2351
+ weight: bigint;
2352
+ tolerance: bigint;
2353
+ };
2354
+ bridge?: string | undefined;
2355
+ executionType?: ExecutionType | undefined;
2356
+ externalBridge?: ExternalBridgeType | undefined;
2357
+ bridgeMinAcceptedAmount?: string | number | undefined;
2358
+ bridgeLockTime?: number | undefined;
2359
+ override?: Record<string, z.objectOutputType<{
2360
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2361
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2362
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2363
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2364
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2365
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2366
+ }>;
2367
+ } | {
2368
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2369
+ chains: Record<string, {
2370
+ minAmount: {
2371
+ type: RebalancerMinAmountType;
2372
+ min: string | number;
2373
+ target: string | number;
2374
+ };
2375
+ bridge?: string | undefined;
2376
+ executionType?: ExecutionType | undefined;
2377
+ externalBridge?: ExternalBridgeType | undefined;
2378
+ bridgeMinAcceptedAmount?: string | number | undefined;
2379
+ bridgeLockTime?: number | undefined;
2380
+ override?: Record<string, z.objectOutputType<{
2381
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2382
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2383
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2384
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2385
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2386
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2387
+ }>;
2388
+ } | {
2389
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2390
+ chains: Record<string, {
2391
+ buffer: string | number;
2392
+ bridge?: string | undefined;
2393
+ executionType?: ExecutionType | undefined;
2394
+ externalBridge?: ExternalBridgeType | undefined;
2395
+ bridgeMinAcceptedAmount?: string | number | undefined;
2396
+ bridgeLockTime?: number | undefined;
2397
+ override?: Record<string, z.objectOutputType<{
2398
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2399
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2400
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2401
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2402
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2403
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2404
+ }>;
2405
+ })[], {
2406
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2407
+ chains: Record<string, {
2408
+ weighted: {
2409
+ weight: string | number;
2410
+ tolerance: string | number;
2411
+ };
2412
+ bridge?: string | undefined;
2413
+ executionType?: ExecutionType | undefined;
2414
+ externalBridge?: ExternalBridgeType | undefined;
2415
+ bridgeMinAcceptedAmount?: string | number | undefined;
2416
+ bridgeLockTime?: number | undefined;
2417
+ override?: Record<string, z.objectInputType<{
2418
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2419
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2420
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2421
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2422
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2423
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2424
+ }>;
2425
+ } | {
2426
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2427
+ chains: Record<string, {
2428
+ minAmount: {
2429
+ type: RebalancerMinAmountType;
2430
+ min: string | number;
2431
+ target: string | number;
2432
+ };
2433
+ bridge?: string | undefined;
2434
+ executionType?: ExecutionType | undefined;
2435
+ externalBridge?: ExternalBridgeType | undefined;
2436
+ bridgeMinAcceptedAmount?: string | number | undefined;
2437
+ bridgeLockTime?: number | undefined;
2438
+ override?: Record<string, z.objectInputType<{
2439
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2440
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2441
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2442
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2443
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2444
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2445
+ }>;
2446
+ } | {
2447
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2448
+ chains: Record<string, {
2449
+ buffer: string | number;
2450
+ bridge?: string | undefined;
2451
+ executionType?: ExecutionType | undefined;
2452
+ externalBridge?: ExternalBridgeType | undefined;
2453
+ bridgeMinAcceptedAmount?: string | number | undefined;
2454
+ bridgeLockTime?: number | undefined;
2455
+ override?: Record<string, z.objectInputType<{
2456
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2457
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2458
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2459
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2460
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2461
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2462
+ }>;
2463
+ } | ({
2464
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2465
+ chains: Record<string, {
2466
+ weighted: {
2467
+ weight: string | number;
2468
+ tolerance: string | number;
2469
+ };
2470
+ bridge?: string | undefined;
2471
+ executionType?: ExecutionType | undefined;
2472
+ externalBridge?: ExternalBridgeType | undefined;
2473
+ bridgeMinAcceptedAmount?: string | number | undefined;
2474
+ bridgeLockTime?: number | undefined;
2475
+ override?: Record<string, z.objectInputType<{
2476
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2477
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2478
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2479
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2480
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2481
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2482
+ }>;
2483
+ } | {
2484
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2485
+ chains: Record<string, {
2486
+ minAmount: {
2487
+ type: RebalancerMinAmountType;
2488
+ min: string | number;
2489
+ target: string | number;
2490
+ };
2491
+ bridge?: string | undefined;
2492
+ executionType?: ExecutionType | undefined;
2493
+ externalBridge?: ExternalBridgeType | undefined;
2494
+ bridgeMinAcceptedAmount?: string | number | undefined;
2495
+ bridgeLockTime?: number | undefined;
2496
+ override?: Record<string, z.objectInputType<{
2497
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2498
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2499
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2500
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2501
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2502
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2503
+ }>;
2504
+ } | {
2505
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2506
+ chains: Record<string, {
2507
+ buffer: string | number;
2508
+ bridge?: string | undefined;
2509
+ executionType?: ExecutionType | undefined;
2510
+ externalBridge?: ExternalBridgeType | undefined;
2511
+ bridgeMinAcceptedAmount?: string | number | undefined;
2512
+ bridgeLockTime?: number | undefined;
2513
+ override?: Record<string, z.objectInputType<{
2514
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2515
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2516
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2517
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2518
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2519
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2520
+ }>;
2521
+ })[]>;
2522
+ inventorySigners: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof ProtocolType>, z.ZodUnion<[z.ZodObject<{
2523
+ address: z.ZodString;
2524
+ key: z.ZodOptional<z.ZodString>;
2525
+ }, "strip", z.ZodTypeAny, {
2526
+ address: string;
2527
+ key?: string | undefined;
2528
+ }, {
2529
+ address: string;
2530
+ key?: string | undefined;
2531
+ }>, z.ZodEffects<z.ZodString, {
2532
+ address: string;
2533
+ }, string>]>>>;
2534
+ externalBridges: z.ZodOptional<z.ZodObject<{
2535
+ lifi: z.ZodOptional<z.ZodObject<{
2536
+ integrator: z.ZodString;
2537
+ defaultSlippage: z.ZodOptional<z.ZodNumber>;
2538
+ }, "strip", z.ZodTypeAny, {
2539
+ integrator: string;
2540
+ defaultSlippage?: number | undefined;
2541
+ }, {
2542
+ integrator: string;
2543
+ defaultSlippage?: number | undefined;
2544
+ }>>;
2545
+ }, "strip", z.ZodTypeAny, {
2546
+ lifi?: {
2547
+ integrator: string;
2548
+ defaultSlippage?: number | undefined;
2549
+ } | undefined;
2550
+ }, {
2551
+ lifi?: {
2552
+ integrator: string;
2553
+ defaultSlippage?: number | undefined;
2554
+ } | undefined;
2555
+ }>>;
2556
+ intentTTL: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, number | undefined>;
2557
+ }, "strip", z.ZodTypeAny, {
2558
+ warpRouteId: string;
2559
+ strategy: ({
2560
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2561
+ chains: Record<string, {
2562
+ weighted: {
2563
+ weight: bigint;
2564
+ tolerance: bigint;
2565
+ };
2566
+ bridge?: string | undefined;
2567
+ executionType?: ExecutionType | undefined;
2568
+ externalBridge?: ExternalBridgeType | undefined;
2569
+ bridgeMinAcceptedAmount?: string | number | undefined;
2570
+ bridgeLockTime?: number | undefined;
2571
+ override?: Record<string, z.objectOutputType<{
2572
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2573
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2574
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2575
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2576
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2577
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2578
+ }>;
2579
+ } | {
2580
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2581
+ chains: Record<string, {
2582
+ minAmount: {
2583
+ type: RebalancerMinAmountType;
2584
+ min: string | number;
2585
+ target: string | number;
2586
+ };
2587
+ bridge?: string | undefined;
2588
+ executionType?: ExecutionType | undefined;
2589
+ externalBridge?: ExternalBridgeType | undefined;
2590
+ bridgeMinAcceptedAmount?: string | number | undefined;
2591
+ bridgeLockTime?: number | undefined;
2592
+ override?: Record<string, z.objectOutputType<{
2593
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2594
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2595
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2596
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2597
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2598
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2599
+ }>;
2600
+ } | {
2601
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2602
+ chains: Record<string, {
2603
+ buffer: string | number;
2604
+ bridge?: string | undefined;
2605
+ executionType?: ExecutionType | undefined;
2606
+ externalBridge?: ExternalBridgeType | undefined;
2607
+ bridgeMinAcceptedAmount?: string | number | undefined;
2608
+ bridgeLockTime?: number | undefined;
2609
+ override?: Record<string, z.objectOutputType<{
2610
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2611
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2612
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2613
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2614
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2615
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2616
+ }>;
2617
+ })[];
2618
+ intentTTL: number;
2619
+ inventorySigners?: Partial<Record<ProtocolType, {
2620
+ address: string;
2621
+ key?: string | undefined;
2622
+ } | {
2623
+ address: string;
2624
+ }>> | undefined;
2625
+ externalBridges?: {
2626
+ lifi?: {
2627
+ integrator: string;
2628
+ defaultSlippage?: number | undefined;
2629
+ } | undefined;
2630
+ } | undefined;
2631
+ }, {
2632
+ warpRouteId: string;
2633
+ strategy: {
2634
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2635
+ chains: Record<string, {
2636
+ weighted: {
2637
+ weight: string | number;
2638
+ tolerance: string | number;
2639
+ };
2640
+ bridge?: string | undefined;
2641
+ executionType?: ExecutionType | undefined;
2642
+ externalBridge?: ExternalBridgeType | undefined;
2643
+ bridgeMinAcceptedAmount?: string | number | undefined;
2644
+ bridgeLockTime?: number | undefined;
2645
+ override?: Record<string, z.objectInputType<{
2646
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2647
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2648
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2649
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2650
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2651
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2652
+ }>;
2653
+ } | {
2654
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2655
+ chains: Record<string, {
2656
+ minAmount: {
2657
+ type: RebalancerMinAmountType;
2658
+ min: string | number;
2659
+ target: string | number;
2660
+ };
2661
+ bridge?: string | undefined;
2662
+ executionType?: ExecutionType | undefined;
2663
+ externalBridge?: ExternalBridgeType | undefined;
2664
+ bridgeMinAcceptedAmount?: string | number | undefined;
2665
+ bridgeLockTime?: number | undefined;
2666
+ override?: Record<string, z.objectInputType<{
2667
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2668
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2669
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2670
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2671
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2672
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2673
+ }>;
2674
+ } | {
2675
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2676
+ chains: Record<string, {
2677
+ buffer: string | number;
2678
+ bridge?: string | undefined;
2679
+ executionType?: ExecutionType | undefined;
2680
+ externalBridge?: ExternalBridgeType | undefined;
2681
+ bridgeMinAcceptedAmount?: string | number | undefined;
2682
+ bridgeLockTime?: number | undefined;
2683
+ override?: Record<string, z.objectInputType<{
2684
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2685
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2686
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2687
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2688
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2689
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2690
+ }>;
2691
+ } | ({
2692
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2693
+ chains: Record<string, {
2694
+ weighted: {
2695
+ weight: string | number;
2696
+ tolerance: string | number;
2697
+ };
2698
+ bridge?: string | undefined;
2699
+ executionType?: ExecutionType | undefined;
2700
+ externalBridge?: ExternalBridgeType | undefined;
2701
+ bridgeMinAcceptedAmount?: string | number | undefined;
2702
+ bridgeLockTime?: number | undefined;
2703
+ override?: Record<string, z.objectInputType<{
2704
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2705
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2706
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2707
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2708
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2709
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2710
+ }>;
2711
+ } | {
2712
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2713
+ chains: Record<string, {
2714
+ minAmount: {
2715
+ type: RebalancerMinAmountType;
2716
+ min: string | number;
2717
+ target: string | number;
2718
+ };
2719
+ bridge?: string | undefined;
2720
+ executionType?: ExecutionType | undefined;
2721
+ externalBridge?: ExternalBridgeType | undefined;
2722
+ bridgeMinAcceptedAmount?: string | number | undefined;
2723
+ bridgeLockTime?: number | undefined;
2724
+ override?: Record<string, z.objectInputType<{
2725
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2726
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2727
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2728
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2729
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2730
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2731
+ }>;
2732
+ } | {
2733
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2734
+ chains: Record<string, {
2735
+ buffer: string | number;
2736
+ bridge?: string | undefined;
2737
+ executionType?: ExecutionType | undefined;
2738
+ externalBridge?: ExternalBridgeType | undefined;
2739
+ bridgeMinAcceptedAmount?: string | number | undefined;
2740
+ bridgeLockTime?: number | undefined;
2741
+ override?: Record<string, z.objectInputType<{
2742
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2743
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2744
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2745
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2746
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2747
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2748
+ }>;
2749
+ })[];
2750
+ inventorySigners?: Partial<Record<ProtocolType, string | {
2751
+ address: string;
2752
+ key?: string | undefined;
2753
+ }>> | undefined;
2754
+ externalBridges?: {
2755
+ lifi?: {
2756
+ integrator: string;
2757
+ defaultSlippage?: number | undefined;
2758
+ } | undefined;
2759
+ } | undefined;
2760
+ intentTTL?: number | undefined;
2761
+ }>, {
2762
+ warpRouteId: string;
2763
+ strategy: ({
2764
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2765
+ chains: Record<string, {
2766
+ weighted: {
2767
+ weight: bigint;
2768
+ tolerance: bigint;
2769
+ };
2770
+ bridge?: string | undefined;
2771
+ executionType?: ExecutionType | undefined;
2772
+ externalBridge?: ExternalBridgeType | undefined;
2773
+ bridgeMinAcceptedAmount?: string | number | undefined;
2774
+ bridgeLockTime?: number | undefined;
2775
+ override?: Record<string, z.objectOutputType<{
2776
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2777
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2778
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2779
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2780
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2781
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2782
+ }>;
2783
+ } | {
2784
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2785
+ chains: Record<string, {
2786
+ minAmount: {
2787
+ type: RebalancerMinAmountType;
2788
+ min: string | number;
2789
+ target: string | number;
2790
+ };
2791
+ bridge?: string | undefined;
2792
+ executionType?: ExecutionType | undefined;
2793
+ externalBridge?: ExternalBridgeType | undefined;
2794
+ bridgeMinAcceptedAmount?: string | number | undefined;
2795
+ bridgeLockTime?: number | undefined;
2796
+ override?: Record<string, z.objectOutputType<{
2797
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2798
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2799
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2800
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2801
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2802
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2803
+ }>;
2804
+ } | {
2805
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2806
+ chains: Record<string, {
2807
+ buffer: string | number;
2808
+ bridge?: string | undefined;
2809
+ executionType?: ExecutionType | undefined;
2810
+ externalBridge?: ExternalBridgeType | undefined;
2811
+ bridgeMinAcceptedAmount?: string | number | undefined;
2812
+ bridgeLockTime?: number | undefined;
2813
+ override?: Record<string, z.objectOutputType<{
2814
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2815
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2816
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2817
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2818
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2819
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2820
+ }>;
2821
+ })[];
2822
+ intentTTL: number;
2823
+ inventorySigners?: Partial<Record<ProtocolType, {
2824
+ address: string;
2825
+ key?: string | undefined;
2826
+ } | {
2827
+ address: string;
2828
+ }>> | undefined;
2829
+ externalBridges?: {
2830
+ lifi?: {
2831
+ integrator: string;
2832
+ defaultSlippage?: number | undefined;
2833
+ } | undefined;
2834
+ } | undefined;
2835
+ }, {
2836
+ warpRouteId: string;
2837
+ strategy: {
2838
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2839
+ chains: Record<string, {
2840
+ weighted: {
2841
+ weight: string | number;
2842
+ tolerance: string | number;
2843
+ };
2844
+ bridge?: string | undefined;
2845
+ executionType?: ExecutionType | undefined;
2846
+ externalBridge?: ExternalBridgeType | undefined;
2847
+ bridgeMinAcceptedAmount?: string | number | undefined;
2848
+ bridgeLockTime?: number | undefined;
2849
+ override?: Record<string, z.objectInputType<{
2850
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2851
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2852
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2853
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2854
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2855
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2856
+ }>;
2857
+ } | {
2858
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2859
+ chains: Record<string, {
2860
+ minAmount: {
2861
+ type: RebalancerMinAmountType;
2862
+ min: string | number;
2863
+ target: string | number;
2864
+ };
2865
+ bridge?: string | undefined;
2866
+ executionType?: ExecutionType | undefined;
2867
+ externalBridge?: ExternalBridgeType | undefined;
2868
+ bridgeMinAcceptedAmount?: string | number | undefined;
2869
+ bridgeLockTime?: number | undefined;
2870
+ override?: Record<string, z.objectInputType<{
2871
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2872
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2873
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2874
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2875
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2876
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2877
+ }>;
2878
+ } | {
2879
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2880
+ chains: Record<string, {
2881
+ buffer: string | number;
2882
+ bridge?: string | undefined;
2883
+ executionType?: ExecutionType | undefined;
2884
+ externalBridge?: ExternalBridgeType | undefined;
2885
+ bridgeMinAcceptedAmount?: string | number | undefined;
2886
+ bridgeLockTime?: number | undefined;
2887
+ override?: Record<string, z.objectInputType<{
2888
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2889
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2890
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2891
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2892
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2893
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2894
+ }>;
2895
+ } | ({
2896
+ rebalanceStrategy: RebalancerStrategyOptions.Weighted;
2897
+ chains: Record<string, {
2898
+ weighted: {
2899
+ weight: string | number;
2900
+ tolerance: string | number;
2901
+ };
2902
+ bridge?: string | undefined;
2903
+ executionType?: ExecutionType | undefined;
2904
+ externalBridge?: ExternalBridgeType | undefined;
2905
+ bridgeMinAcceptedAmount?: string | number | undefined;
2906
+ bridgeLockTime?: number | undefined;
2907
+ override?: Record<string, z.objectInputType<{
2908
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2909
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2910
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2911
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2912
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2913
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2914
+ }>;
2915
+ } | {
2916
+ rebalanceStrategy: RebalancerStrategyOptions.MinAmount;
2917
+ chains: Record<string, {
2918
+ minAmount: {
2919
+ type: RebalancerMinAmountType;
2920
+ min: string | number;
2921
+ target: string | number;
2922
+ };
2923
+ bridge?: string | undefined;
2924
+ executionType?: ExecutionType | undefined;
2925
+ externalBridge?: ExternalBridgeType | undefined;
2926
+ bridgeMinAcceptedAmount?: string | number | undefined;
2927
+ bridgeLockTime?: number | undefined;
2928
+ override?: Record<string, z.objectInputType<{
2929
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2930
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2931
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2932
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2933
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2934
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2935
+ }>;
2936
+ } | {
2937
+ rebalanceStrategy: RebalancerStrategyOptions.CollateralDeficit;
2938
+ chains: Record<string, {
2939
+ buffer: string | number;
2940
+ bridge?: string | undefined;
2941
+ executionType?: ExecutionType | undefined;
2942
+ externalBridge?: ExternalBridgeType | undefined;
2943
+ bridgeMinAcceptedAmount?: string | number | undefined;
2944
+ bridgeLockTime?: number | undefined;
2945
+ override?: Record<string, z.objectInputType<{
2946
+ bridge: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2947
+ executionType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExecutionType>>>;
2948
+ externalBridge: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ExternalBridgeType>>>;
2949
+ bridgeMinAcceptedAmount: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
2950
+ bridgeLockTime: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>>;
2951
+ }, z.ZodTypeAny, "passthrough">> | undefined;
2952
+ }>;
2953
+ })[];
2954
+ inventorySigners?: Partial<Record<ProtocolType, string | {
2955
+ address: string;
2956
+ key?: string | undefined;
2957
+ }>> | undefined;
2958
+ externalBridges?: {
2959
+ lifi?: {
2960
+ integrator: string;
2961
+ defaultSlippage?: number | undefined;
2962
+ } | undefined;
2963
+ } | undefined;
2964
+ intentTTL?: number | undefined;
2965
+ }>;
2966
+ export type RebalancerWeightedChainConfig = z.infer<typeof RebalancerWeightedChainConfigSchema>;
2967
+ export type RebalancerMinAmountChainConfig = z.infer<typeof RebalancerMinAmountConfigSchema>;
2968
+ export type CollateralDeficitChainConfig = z.infer<typeof CollateralDeficitChainConfigSchema>;
2969
+ export type StrategyConfig = z.infer<typeof StrategyConfigSchema>;
2970
+ export type RebalancerConfig = z.infer<typeof RebalancerConfigSchema>;
2971
+ export type RebalancerConfigFileInput = z.input<typeof RebalancerConfigSchema>;
2972
+ /**
2973
+ * Get all unique chain names from strategy config array.
2974
+ */
2975
+ export declare function getStrategyChainNames(strategies: StrategyConfig[]): string[];
2976
+ /**
2977
+ * Get chain config from the first strategy that has it.
2978
+ * Returns undefined if no strategy has the chain.
2979
+ */
2980
+ export declare function getStrategyChainConfig(strategies: StrategyConfig[], chainName: string): StrategyConfig['chains'][string] | undefined;
2981
+ /**
2982
+ * Get all unique bridge addresses from all strategies and their overrides.
2983
+ * This is used by ActionTracker to detect inflight rebalances across all configured bridges.
2984
+ */
2985
+ export declare function getAllBridges(strategies: StrategyConfig[]): string[];
2986
+ /**
2987
+ * Get the execution type for a chain.
2988
+ * Returns the executionType from chain config, or MovableCollateral as default.
2989
+ */
2990
+ export declare function getChainExecutionType(strategies: StrategyConfig[], chainName: string): ExecutionType;
2991
+ /**
2992
+ * Extract the executionType from an override config object.
2993
+ * Returns undefined if the override config doesn't have an executionType field.
2994
+ */
2995
+ export declare function getOverrideExecutionType(overrideConfig: unknown): ExecutionType | undefined;
2996
+ /**
2997
+ * Get the names of all chains that use inventory execution type.
2998
+ * Includes both top-level inventory chains and override destination chains
2999
+ * where the override sets executionType to inventory.
3000
+ */
3001
+ export declare function getInventoryChainNames(strategies: StrategyConfig[]): string[];
3002
+ export declare function getInventoryOriginChainNames(strategies: StrategyConfig[]): string[];
3003
+ /**
3004
+ * Check if any chain in the strategies uses inventory execution type.
3005
+ */
3006
+ export declare function hasInventoryChains(strategies: StrategyConfig[]): boolean;
3007
+ export {};
3008
+ //# sourceMappingURL=types.d.ts.map