@zkp2p/contracts-v2 0.3.0 → 0.3.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (517) hide show
  1. package/README.md +6 -0
  2. package/_cjs/abis/base/index.js +52 -23
  3. package/_cjs/abis/baseStaging/BoundedCall.js +93 -0
  4. package/_cjs/abis/baseStaging/BoundedCall.json +91 -0
  5. package/_cjs/abis/baseStaging/DeferredPayoutHook.js +247 -0
  6. package/_cjs/abis/baseStaging/DeferredPayoutHook.json +245 -0
  7. package/_cjs/abis/baseStaging/FeeSettlementLib.js +35 -0
  8. package/_cjs/abis/baseStaging/FeeSettlementLib.json +33 -0
  9. package/_cjs/abis/baseStaging/NullifierRegistryV2.js +339 -0
  10. package/_cjs/abis/baseStaging/NullifierRegistryV2.json +337 -0
  11. package/_cjs/abis/baseStaging/OrchestratorV3.js +1857 -0
  12. package/_cjs/abis/baseStaging/OrchestratorV3.json +1855 -0
  13. package/_cjs/abis/baseStaging/PostIntentHookExecutor.js +3 -0
  14. package/_cjs/abis/baseStaging/PostIntentHookExecutor.json +1 -0
  15. package/_cjs/abis/baseStaging/RiskAttestationVerifier.js +243 -0
  16. package/_cjs/abis/baseStaging/RiskAttestationVerifier.json +241 -0
  17. package/_cjs/abis/baseStaging/RiskManager.js +2043 -0
  18. package/_cjs/abis/baseStaging/RiskManager.json +2041 -0
  19. package/_cjs/abis/baseStaging/RiskSettlementExecutor.js +106 -0
  20. package/_cjs/abis/baseStaging/RiskSettlementExecutor.json +104 -0
  21. package/_cjs/abis/baseStaging/StakeVault.js +2397 -0
  22. package/_cjs/abis/baseStaging/StakeVault.json +2395 -0
  23. package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.js +2397 -0
  24. package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
  25. package/_cjs/abis/baseStaging/UnifiedPaymentVerifierV3.js +366 -0
  26. package/_cjs/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
  27. package/_cjs/abis/baseStaging/index.js +76 -23
  28. package/_cjs/abis/baseStaging.cjs +12 -0
  29. package/_cjs/abis/baseStaging.mjs +12 -0
  30. package/_cjs/abis/contracts/IIntentRiskHook.js +97 -0
  31. package/_cjs/abis/contracts/IIntentRiskHook.json +95 -0
  32. package/_cjs/abis/contracts/NullifierRegistryV2.js +339 -0
  33. package/_cjs/abis/contracts/NullifierRegistryV2.json +337 -0
  34. package/_cjs/abis/contracts/OrchestratorV3.js +1857 -0
  35. package/_cjs/abis/contracts/OrchestratorV3.json +1855 -0
  36. package/_cjs/abis/contracts/RiskManager.js +2043 -0
  37. package/_cjs/abis/contracts/RiskManager.json +2041 -0
  38. package/_cjs/abis/contracts/StakeVault.js +2397 -0
  39. package/_cjs/abis/contracts/StakeVault.json +2395 -0
  40. package/_cjs/abis/contracts/UnifiedPaymentVerifierV3.js +366 -0
  41. package/_cjs/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
  42. package/_cjs/abis/contracts/index.js +18 -0
  43. package/_cjs/abis/contracts.cjs +9 -0
  44. package/_cjs/abis/contracts.mjs +7 -0
  45. package/_cjs/abis/index.js +39 -2
  46. package/_cjs/addresses/base.js +14 -2
  47. package/_cjs/addresses/base.json +14 -2
  48. package/_cjs/addresses/baseStaging.js +14 -2
  49. package/_cjs/addresses/baseStaging.json +14 -2
  50. package/_cjs/addresses/index.js +10 -2
  51. package/_cjs/addresses/index.json +1 -1
  52. package/_cjs/constants/index.js +10 -2
  53. package/_cjs/constants/index.json +1 -1
  54. package/_cjs/currencies/currencies.js +1 -1
  55. package/_cjs/currencies/currencies.json +1 -1
  56. package/_cjs/currencies/index.js +8 -5
  57. package/_cjs/oracleFeeds/chainlink.js +1 -1
  58. package/_cjs/oracleFeeds/chainlink.json +1 -1
  59. package/_cjs/oracleFeeds/index.js +8 -5
  60. package/_cjs/paymentMethods/base.js +1 -1
  61. package/_cjs/paymentMethods/base.json +1 -1
  62. package/_cjs/paymentMethods/baseStaging.js +1 -1
  63. package/_cjs/paymentMethods/baseStaging.json +1 -1
  64. package/_cjs/paymentMethods/index.js +24 -20
  65. package/_cjs/paymentMethods/index.json +1 -1
  66. package/_cjs/paymentMethods/lookups.js +1 -1
  67. package/_cjs/paymentMethods/lookups.json +1 -1
  68. package/_cjs/types/common.js +2 -46
  69. package/_cjs/types/contracts/Escrow.js +2 -2748
  70. package/_cjs/types/contracts/EscrowV2.js +2 -3449
  71. package/_cjs/types/contracts/Orchestrator.js +2 -1328
  72. package/_cjs/types/contracts/OrchestratorV2.js +2 -1585
  73. package/_cjs/types/contracts/OrchestratorV3.js +2 -2136
  74. package/_cjs/types/contracts/ProtocolViewer.js +2 -473
  75. package/_cjs/types/contracts/ProtocolViewerV2.js +2 -467
  76. package/_cjs/types/contracts/RateManagerV1.js +2 -1010
  77. package/_cjs/types/contracts/RiskManager.js +2 -0
  78. package/_cjs/types/contracts/StakeVault.js +2 -2901
  79. package/_cjs/types/contracts/external/Interfaces/IAcrossSpokePool.js +2 -165
  80. package/_cjs/types/contracts/external/Interfaces/index.js +2 -4
  81. package/_cjs/types/contracts/external/index.js +2 -5
  82. package/_cjs/types/contracts/hooks/AcrossBridgeHook.js +2 -547
  83. package/_cjs/types/contracts/hooks/AcrossBridgeHookV2.js +2 -553
  84. package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.js +2 -360
  85. package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +2 -433
  86. package/_cjs/types/contracts/hooks/index.js +2 -8
  87. package/_cjs/types/contracts/index.js +2 -27
  88. package/_cjs/types/contracts/interfaces/IAttestationVerifier.js +2 -114
  89. package/_cjs/types/contracts/interfaces/IChainlinkAggregatorV3.js +2 -132
  90. package/_cjs/types/contracts/interfaces/IEscrow.js +2 -1382
  91. package/_cjs/types/contracts/interfaces/IEscrowRegistry.js +2 -150
  92. package/_cjs/types/contracts/interfaces/IEscrowV2.js +2 -2195
  93. package/_cjs/types/contracts/interfaces/IIntentRiskHook.js +2 -224
  94. package/_cjs/types/contracts/interfaces/INullifierRegistry.js +2 -141
  95. package/_cjs/types/contracts/interfaces/INullifierRegistryV2.js +2 -0
  96. package/_cjs/types/contracts/interfaces/IOracleAdapter.js +2 -154
  97. package/_cjs/types/contracts/interfaces/IOrchestrator.js +2 -707
  98. package/_cjs/types/contracts/interfaces/IOrchestratorRegistry.js +2 -178
  99. package/_cjs/types/contracts/interfaces/IOrchestratorV2.js +2 -1021
  100. package/_cjs/types/contracts/interfaces/IOrchestratorV3.js +2 -1494
  101. package/_cjs/types/contracts/interfaces/IPaymentVerifier.js +2 -132
  102. package/_cjs/types/contracts/interfaces/IPaymentVerifierRegistry.js +2 -233
  103. package/_cjs/types/contracts/interfaces/IPostIntentHook.js +2 -168
  104. package/_cjs/types/contracts/interfaces/IPostIntentHookRegistry.js +2 -126
  105. package/_cjs/types/contracts/interfaces/IPostIntentHookV2.js +2 -172
  106. package/_cjs/types/contracts/interfaces/IPreIntentHook.js +2 -157
  107. package/_cjs/types/contracts/interfaces/IProtocolViewer.js +2 -319
  108. package/_cjs/types/contracts/interfaces/IProtocolViewerV2.js +2 -467
  109. package/_cjs/types/contracts/interfaces/IPyth.js +2 -195
  110. package/_cjs/types/contracts/interfaces/IRateManager.js +2 -239
  111. package/_cjs/types/contracts/interfaces/IReferralFee.js +2 -55
  112. package/_cjs/types/contracts/interfaces/IRelayerRegistry.js +2 -126
  113. package/_cjs/types/contracts/interfaces/IRiskManager.js +2 -0
  114. package/_cjs/types/contracts/interfaces/IStakeVault.js +2 -2587
  115. package/_cjs/types/contracts/interfaces/index.js +2 -30
  116. package/_cjs/types/contracts/lib/BoundedCall.js +2 -87
  117. package/_cjs/types/contracts/lib/FeeSettlementLib.js +2 -0
  118. package/_cjs/types/contracts/lib/RiskSettlementExecutor.js +2 -0
  119. package/_cjs/types/contracts/lib/index.js +2 -4
  120. package/_cjs/types/contracts/oracles/ChainlinkOracleAdapter.js +2 -154
  121. package/_cjs/types/contracts/oracles/PythOracleAdapter.js +2 -167
  122. package/_cjs/types/contracts/oracles/index.js +2 -5
  123. package/_cjs/types/contracts/registries/EscrowRegistry.js +2 -463
  124. package/_cjs/types/contracts/registries/NullifierRegistry.js +2 -447
  125. package/_cjs/types/contracts/registries/NullifierRegistryV2.js +2 -0
  126. package/_cjs/types/contracts/registries/OrchestratorRegistry.js +2 -324
  127. package/_cjs/types/contracts/registries/PaymentVerifierRegistry.js +2 -657
  128. package/_cjs/types/contracts/registries/PostIntentHookRegistry.js +2 -414
  129. package/_cjs/types/contracts/registries/RelayerRegistry.js +2 -371
  130. package/_cjs/types/contracts/registries/index.js +2 -9
  131. package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +2 -502
  132. package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.js +2 -0
  133. package/_cjs/types/contracts/unifiedVerifier/MultiAttestationVerifier.js +2 -474
  134. package/_cjs/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +2 -315
  135. package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +2 -620
  136. package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.js +2 -0
  137. package/_cjs/types/contracts/unifiedVerifier/index.js +2 -7
  138. package/_cjs/types/index.js +37 -1
  139. package/_cjs/utils/index.js +24 -4
  140. package/_cjs/utils/protocolUtils.js +60 -70
  141. package/_cjs/utils/riskMath.js +72 -0
  142. package/_esm/abis/base/index.js +23 -23
  143. package/_esm/abis/baseStaging/BoundedCall.js +92 -0
  144. package/_esm/abis/baseStaging/BoundedCall.json +91 -0
  145. package/_esm/abis/baseStaging/DeferredPayoutHook.js +246 -0
  146. package/_esm/abis/baseStaging/DeferredPayoutHook.json +245 -0
  147. package/_esm/abis/baseStaging/FeeSettlementLib.js +34 -0
  148. package/_esm/abis/baseStaging/FeeSettlementLib.json +33 -0
  149. package/_esm/abis/baseStaging/NullifierRegistryV2.js +338 -0
  150. package/_esm/abis/baseStaging/NullifierRegistryV2.json +337 -0
  151. package/_esm/abis/baseStaging/OrchestratorV3.js +1856 -0
  152. package/_esm/abis/baseStaging/OrchestratorV3.json +1855 -0
  153. package/_esm/abis/baseStaging/PostIntentHookExecutor.js +2 -0
  154. package/_esm/abis/baseStaging/PostIntentHookExecutor.json +1 -0
  155. package/_esm/abis/baseStaging/RiskAttestationVerifier.js +242 -0
  156. package/_esm/abis/baseStaging/RiskAttestationVerifier.json +241 -0
  157. package/_esm/abis/baseStaging/RiskManager.js +2042 -0
  158. package/_esm/abis/baseStaging/RiskManager.json +2041 -0
  159. package/_esm/abis/baseStaging/RiskSettlementExecutor.js +105 -0
  160. package/_esm/abis/baseStaging/RiskSettlementExecutor.json +104 -0
  161. package/_esm/abis/baseStaging/StakeVault.js +2396 -0
  162. package/_esm/abis/baseStaging/StakeVault.json +2395 -0
  163. package/_esm/abis/baseStaging/StakeVaultRiskSettlement.js +2396 -0
  164. package/_esm/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
  165. package/_esm/abis/baseStaging/UnifiedPaymentVerifierV3.js +365 -0
  166. package/_esm/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
  167. package/_esm/abis/baseStaging/index.js +35 -23
  168. package/_esm/abis/baseStaging.cjs +12 -0
  169. package/_esm/abis/baseStaging.mjs +12 -0
  170. package/_esm/abis/contracts/IIntentRiskHook.js +96 -0
  171. package/_esm/abis/contracts/IIntentRiskHook.json +95 -0
  172. package/_esm/abis/contracts/NullifierRegistryV2.js +338 -0
  173. package/_esm/abis/contracts/NullifierRegistryV2.json +337 -0
  174. package/_esm/abis/contracts/OrchestratorV3.js +1856 -0
  175. package/_esm/abis/contracts/OrchestratorV3.json +1855 -0
  176. package/_esm/abis/contracts/RiskManager.js +2042 -0
  177. package/_esm/abis/contracts/RiskManager.json +2041 -0
  178. package/_esm/abis/contracts/StakeVault.js +2396 -0
  179. package/_esm/abis/contracts/StakeVault.json +2395 -0
  180. package/_esm/abis/contracts/UnifiedPaymentVerifierV3.js +365 -0
  181. package/_esm/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
  182. package/_esm/abis/contracts/index.js +6 -0
  183. package/_esm/abis/contracts.cjs +9 -0
  184. package/_esm/abis/contracts.mjs +7 -0
  185. package/_esm/abis/index.js +1 -0
  186. package/_esm/addresses/base.js +14 -2
  187. package/_esm/addresses/base.json +14 -2
  188. package/_esm/addresses/baseStaging.js +14 -2
  189. package/_esm/addresses/baseStaging.json +14 -2
  190. package/_esm/addresses/index.js +2 -2
  191. package/_esm/addresses/index.json +1 -1
  192. package/_esm/constants/index.js +2 -2
  193. package/_esm/constants/index.json +1 -1
  194. package/_esm/currencies/currencies.js +1 -1
  195. package/_esm/currencies/currencies.json +1 -1
  196. package/_esm/currencies/index.js +1 -5
  197. package/_esm/oracleFeeds/chainlink.js +1 -1
  198. package/_esm/oracleFeeds/chainlink.json +1 -1
  199. package/_esm/oracleFeeds/index.js +1 -5
  200. package/_esm/paymentMethods/base.js +1 -1
  201. package/_esm/paymentMethods/base.json +1 -1
  202. package/_esm/paymentMethods/baseStaging.js +1 -1
  203. package/_esm/paymentMethods/baseStaging.json +1 -1
  204. package/_esm/paymentMethods/index.js +13 -19
  205. package/_esm/paymentMethods/index.json +1 -1
  206. package/_esm/paymentMethods/lookups.js +1 -1
  207. package/_esm/paymentMethods/lookups.json +1 -1
  208. package/_esm/types/common.js +1 -46
  209. package/_esm/types/contracts/Escrow.js +1 -2748
  210. package/_esm/types/contracts/EscrowV2.js +1 -3449
  211. package/_esm/types/contracts/Orchestrator.js +1 -1328
  212. package/_esm/types/contracts/OrchestratorV2.js +1 -1585
  213. package/_esm/types/contracts/OrchestratorV3.js +1 -2136
  214. package/_esm/types/contracts/ProtocolViewer.js +1 -473
  215. package/_esm/types/contracts/ProtocolViewerV2.js +1 -467
  216. package/_esm/types/contracts/RateManagerV1.js +1 -1010
  217. package/_esm/types/contracts/RiskManager.js +1 -0
  218. package/_esm/types/contracts/StakeVault.js +1 -2901
  219. package/_esm/types/contracts/external/Interfaces/IAcrossSpokePool.js +1 -165
  220. package/_esm/types/contracts/external/Interfaces/index.js +1 -4
  221. package/_esm/types/contracts/external/index.js +1 -5
  222. package/_esm/types/contracts/hooks/AcrossBridgeHook.js +1 -547
  223. package/_esm/types/contracts/hooks/AcrossBridgeHookV2.js +1 -553
  224. package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.js +1 -360
  225. package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +1 -433
  226. package/_esm/types/contracts/hooks/index.js +1 -8
  227. package/_esm/types/contracts/index.js +1 -27
  228. package/_esm/types/contracts/interfaces/IAttestationVerifier.js +1 -114
  229. package/_esm/types/contracts/interfaces/IChainlinkAggregatorV3.js +1 -132
  230. package/_esm/types/contracts/interfaces/IEscrow.js +1 -1382
  231. package/_esm/types/contracts/interfaces/IEscrowRegistry.js +1 -150
  232. package/_esm/types/contracts/interfaces/IEscrowV2.js +1 -2195
  233. package/_esm/types/contracts/interfaces/IIntentRiskHook.js +1 -224
  234. package/_esm/types/contracts/interfaces/INullifierRegistry.js +1 -141
  235. package/_esm/types/contracts/interfaces/INullifierRegistryV2.js +1 -0
  236. package/_esm/types/contracts/interfaces/IOracleAdapter.js +1 -154
  237. package/_esm/types/contracts/interfaces/IOrchestrator.js +1 -707
  238. package/_esm/types/contracts/interfaces/IOrchestratorRegistry.js +1 -178
  239. package/_esm/types/contracts/interfaces/IOrchestratorV2.js +1 -1021
  240. package/_esm/types/contracts/interfaces/IOrchestratorV3.js +1 -1494
  241. package/_esm/types/contracts/interfaces/IPaymentVerifier.js +1 -132
  242. package/_esm/types/contracts/interfaces/IPaymentVerifierRegistry.js +1 -233
  243. package/_esm/types/contracts/interfaces/IPostIntentHook.js +1 -168
  244. package/_esm/types/contracts/interfaces/IPostIntentHookRegistry.js +1 -126
  245. package/_esm/types/contracts/interfaces/IPostIntentHookV2.js +1 -172
  246. package/_esm/types/contracts/interfaces/IPreIntentHook.js +1 -157
  247. package/_esm/types/contracts/interfaces/IProtocolViewer.js +1 -319
  248. package/_esm/types/contracts/interfaces/IProtocolViewerV2.js +1 -467
  249. package/_esm/types/contracts/interfaces/IPyth.js +1 -195
  250. package/_esm/types/contracts/interfaces/IRateManager.js +1 -239
  251. package/_esm/types/contracts/interfaces/IReferralFee.js +1 -55
  252. package/_esm/types/contracts/interfaces/IRelayerRegistry.js +1 -126
  253. package/_esm/types/contracts/interfaces/IRiskManager.js +1 -0
  254. package/_esm/types/contracts/interfaces/IStakeVault.js +1 -2587
  255. package/_esm/types/contracts/interfaces/index.js +1 -30
  256. package/_esm/types/contracts/lib/BoundedCall.js +1 -87
  257. package/_esm/types/contracts/lib/FeeSettlementLib.js +1 -0
  258. package/_esm/types/contracts/lib/RiskSettlementExecutor.js +1 -0
  259. package/_esm/types/contracts/lib/index.js +1 -4
  260. package/_esm/types/contracts/oracles/ChainlinkOracleAdapter.js +1 -154
  261. package/_esm/types/contracts/oracles/PythOracleAdapter.js +1 -167
  262. package/_esm/types/contracts/oracles/index.js +1 -5
  263. package/_esm/types/contracts/registries/EscrowRegistry.js +1 -463
  264. package/_esm/types/contracts/registries/NullifierRegistry.js +1 -447
  265. package/_esm/types/contracts/registries/NullifierRegistryV2.js +1 -0
  266. package/_esm/types/contracts/registries/OrchestratorRegistry.js +1 -324
  267. package/_esm/types/contracts/registries/PaymentVerifierRegistry.js +1 -657
  268. package/_esm/types/contracts/registries/PostIntentHookRegistry.js +1 -414
  269. package/_esm/types/contracts/registries/RelayerRegistry.js +1 -371
  270. package/_esm/types/contracts/registries/index.js +1 -9
  271. package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +1 -502
  272. package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.js +1 -0
  273. package/_esm/types/contracts/unifiedVerifier/MultiAttestationVerifier.js +1 -474
  274. package/_esm/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +1 -315
  275. package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +1 -620
  276. package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.js +1 -0
  277. package/_esm/types/contracts/unifiedVerifier/index.js +1 -7
  278. package/_esm/utils/index.js +2 -8
  279. package/_esm/utils/protocolUtils.js +49 -66
  280. package/_esm/utils/riskMath.js +64 -0
  281. package/_types/abis/base/index.d.ts +23 -0
  282. package/_types/abis/baseStaging/index.d.ts +35 -0
  283. package/_types/abis/baseStaging.d.ts +12 -0
  284. package/_types/abis/contracts/index.d.ts +6 -0
  285. package/_types/abis/contracts.d.ts +8 -0
  286. package/_types/abis/index.d.ts +3 -0
  287. package/_types/addresses/index.d.ts +2 -3
  288. package/_types/constants/index.d.ts +2 -3
  289. package/_types/currencies/index.d.ts +3 -3
  290. package/_types/oracleFeeds/index.d.ts +3 -3
  291. package/_types/paymentMethods/index.d.ts +10 -4
  292. package/_types/types/common.d.ts +22 -0
  293. package/_types/types/contracts/Escrow.d.ts +1241 -0
  294. package/_types/types/contracts/EscrowV2.d.ts +1570 -0
  295. package/_types/types/contracts/Orchestrator.d.ts +672 -0
  296. package/_types/types/contracts/OrchestratorV2.d.ts +780 -0
  297. package/_types/types/contracts/OrchestratorV3.d.ts +951 -0
  298. package/_types/types/contracts/ProtocolViewer.d.ts +273 -0
  299. package/_types/types/contracts/ProtocolViewerV2.d.ts +264 -0
  300. package/_types/types/contracts/RateManagerV1.d.ts +447 -0
  301. package/_types/types/contracts/RiskManager.d.ts +1031 -0
  302. package/_types/types/contracts/StakeVault.d.ts +1357 -0
  303. package/_types/types/contracts/external/Interfaces/IAcrossSpokePool.d.ts +62 -0
  304. package/_types/types/contracts/external/Interfaces/index.d.ts +1 -0
  305. package/_types/types/contracts/external/index.d.ts +2 -0
  306. package/_types/types/contracts/hooks/AcrossBridgeHook.d.ts +290 -0
  307. package/_types/types/contracts/hooks/AcrossBridgeHookV2.d.ts +297 -0
  308. package/_types/types/contracts/hooks/SignatureGatingPreIntentHook.d.ts +160 -0
  309. package/_types/types/contracts/hooks/WhitelistPreIntentHook.d.ts +193 -0
  310. package/_types/types/contracts/hooks/index.d.ts +4 -0
  311. package/_types/types/contracts/index.d.ts +24 -0
  312. package/_types/types/contracts/interfaces/IAttestationVerifier.d.ts +48 -0
  313. package/_types/types/contracts/interfaces/IChainlinkAggregatorV3.d.ts +86 -0
  314. package/_types/types/contracts/interfaces/IEscrow.d.ts +640 -0
  315. package/_types/types/contracts/interfaces/IEscrowRegistry.d.ts +58 -0
  316. package/_types/types/contracts/interfaces/IEscrowV2.d.ts +1041 -0
  317. package/_types/types/contracts/interfaces/IIntentRiskHook.d.ts +120 -0
  318. package/_types/types/contracts/interfaces/INullifierRegistry.d.ts +58 -0
  319. package/_types/types/contracts/interfaces/INullifierRegistryV2.d.ts +165 -0
  320. package/_types/types/contracts/interfaces/IOracleAdapter.d.ts +76 -0
  321. package/_types/types/contracts/interfaces/IOrchestrator.d.ts +385 -0
  322. package/_types/types/contracts/interfaces/IOrchestratorRegistry.d.ts +76 -0
  323. package/_types/types/contracts/interfaces/IOrchestratorV2.d.ts +517 -0
  324. package/_types/types/contracts/interfaces/IOrchestratorV3.d.ts +716 -0
  325. package/_types/types/contracts/interfaces/IPaymentVerifier.d.ts +76 -0
  326. package/_types/types/contracts/interfaces/IPaymentVerifierRegistry.d.ts +74 -0
  327. package/_types/types/contracts/interfaces/IPostIntentHook.d.ts +103 -0
  328. package/_types/types/contracts/interfaces/IPostIntentHookRegistry.d.ts +50 -0
  329. package/_types/types/contracts/interfaces/IPostIntentHookV2.d.ts +110 -0
  330. package/_types/types/contracts/interfaces/IPreIntentHook.d.ts +97 -0
  331. package/_types/types/contracts/interfaces/IProtocolViewer.d.ts +217 -0
  332. package/_types/types/contracts/interfaces/IProtocolViewerV2.d.ts +264 -0
  333. package/_types/types/contracts/interfaces/IPyth.d.ts +84 -0
  334. package/_types/types/contracts/interfaces/IRateManager.d.ts +93 -0
  335. package/_types/types/contracts/interfaces/IReferralFee.d.ts +27 -0
  336. package/_types/types/contracts/interfaces/IRelayerRegistry.d.ts +50 -0
  337. package/_types/types/contracts/interfaces/IRiskManager.d.ts +825 -0
  338. package/_types/types/contracts/interfaces/IStakeVault.d.ts +1232 -0
  339. package/_types/types/contracts/interfaces/index.d.ts +27 -0
  340. package/_types/types/contracts/lib/BoundedCall.d.ts +47 -0
  341. package/_types/types/contracts/lib/FeeSettlementLib.d.ts +47 -0
  342. package/_types/types/contracts/lib/RiskSettlementExecutor.d.ts +53 -0
  343. package/_types/types/contracts/lib/index.d.ts +3 -0
  344. package/_types/types/contracts/oracles/ChainlinkOracleAdapter.d.ts +76 -0
  345. package/_types/types/contracts/oracles/PythOracleAdapter.d.ts +84 -0
  346. package/_types/types/contracts/oracles/index.d.ts +2 -0
  347. package/_types/types/contracts/registries/EscrowRegistry.d.ts +206 -0
  348. package/_types/types/contracts/registries/NullifierRegistry.d.ts +200 -0
  349. package/_types/types/contracts/registries/NullifierRegistryV2.d.ts +218 -0
  350. package/_types/types/contracts/registries/OrchestratorRegistry.d.ts +151 -0
  351. package/_types/types/contracts/registries/PaymentVerifierRegistry.d.ts +270 -0
  352. package/_types/types/contracts/registries/PostIntentHookRegistry.d.ts +175 -0
  353. package/_types/types/contracts/registries/RelayerRegistry.d.ts +165 -0
  354. package/_types/types/contracts/registries/index.d.ts +7 -0
  355. package/_types/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.d.ts +220 -0
  356. package/_types/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.d.ts +220 -0
  357. package/_types/types/contracts/unifiedVerifier/MultiAttestationVerifier.d.ts +216 -0
  358. package/_types/types/contracts/unifiedVerifier/SimpleAttestationVerifier.d.ts +148 -0
  359. package/_types/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.d.ts +293 -0
  360. package/_types/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.d.ts +293 -0
  361. package/_types/types/contracts/unifiedVerifier/index.d.ts +6 -0
  362. package/_types/types/index.d.ts +1 -0
  363. package/_types/utils/index.d.ts +3 -0
  364. package/_types/utils/protocolUtils.d.ts +40 -0
  365. package/_types/utils/riskMath.d.ts +30 -0
  366. package/abis/base/index.d.ts +23 -0
  367. package/abis/baseStaging/BoundedCall.json +91 -0
  368. package/abis/baseStaging/DeferredPayoutHook.json +245 -0
  369. package/abis/baseStaging/FeeSettlementLib.json +33 -0
  370. package/abis/baseStaging/NullifierRegistryV2.json +337 -0
  371. package/abis/baseStaging/OrchestratorV3.json +1855 -0
  372. package/abis/baseStaging/PostIntentHookExecutor.json +1 -0
  373. package/abis/baseStaging/RiskAttestationVerifier.json +241 -0
  374. package/abis/baseStaging/RiskManager.json +2041 -0
  375. package/abis/baseStaging/RiskSettlementExecutor.json +104 -0
  376. package/abis/baseStaging/StakeVault.json +2395 -0
  377. package/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
  378. package/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
  379. package/abis/baseStaging/index.d.ts +35 -0
  380. package/abis/baseStaging/index.ts +12 -0
  381. package/abis/baseStaging.cjs +12 -0
  382. package/abis/baseStaging.d.ts +12 -0
  383. package/abis/baseStaging.mjs +12 -0
  384. package/abis/contracts/IIntentRiskHook.json +95 -0
  385. package/abis/contracts/NullifierRegistryV2.json +337 -0
  386. package/abis/contracts/OrchestratorV3.json +1855 -0
  387. package/abis/contracts/RiskManager.json +2041 -0
  388. package/abis/contracts/StakeVault.json +2395 -0
  389. package/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
  390. package/abis/contracts/index.d.ts +6 -0
  391. package/abis/contracts/index.ts +6 -0
  392. package/abis/contracts.cjs +9 -0
  393. package/abis/contracts.d.ts +8 -0
  394. package/abis/contracts.mjs +7 -0
  395. package/abis/index.d.ts +3 -0
  396. package/abis/index.ts +1 -0
  397. package/addresses/base.json +14 -2
  398. package/addresses/baseStaging.json +14 -2
  399. package/addresses/index.d.ts +2 -3
  400. package/addresses/index.json +1 -1
  401. package/constants/index.d.ts +2 -3
  402. package/constants/index.json +1 -1
  403. package/currencies/currencies.json +1 -1
  404. package/currencies/index.d.ts +3 -3
  405. package/oracleFeeds/chainlink.json +1 -1
  406. package/oracleFeeds/index.d.ts +3 -3
  407. package/package.json +16 -1
  408. package/paymentMethods/base.json +1 -1
  409. package/paymentMethods/baseStaging.json +1 -1
  410. package/paymentMethods/index.json +1 -1
  411. package/paymentMethods/lookups.json +1 -1
  412. package/types/common.d.ts +22 -0
  413. package/types/contracts/Escrow.d.ts +1241 -0
  414. package/types/contracts/EscrowV2.d.ts +1570 -0
  415. package/types/contracts/Orchestrator.d.ts +672 -0
  416. package/types/contracts/OrchestratorV2.d.ts +780 -0
  417. package/types/contracts/OrchestratorV3.d.ts +951 -0
  418. package/types/contracts/OrchestratorV3.ts +243 -403
  419. package/types/contracts/ProtocolViewer.d.ts +273 -0
  420. package/types/contracts/ProtocolViewerV2.d.ts +264 -0
  421. package/types/contracts/RateManagerV1.d.ts +447 -0
  422. package/types/contracts/RiskManager.d.ts +1031 -0
  423. package/{_cjs/types/contracts/RiskTierManager.js → types/contracts/RiskManager.ts} +802 -923
  424. package/types/contracts/StakeVault.d.ts +1357 -0
  425. package/types/contracts/StakeVault.ts +488 -406
  426. package/types/contracts/external/Interfaces/IAcrossSpokePool.d.ts +62 -0
  427. package/types/contracts/external/Interfaces/index.d.ts +1 -0
  428. package/types/contracts/external/index.d.ts +2 -0
  429. package/types/contracts/hooks/AcrossBridgeHook.d.ts +290 -0
  430. package/types/contracts/hooks/AcrossBridgeHookV2.d.ts +297 -0
  431. package/types/contracts/hooks/SignatureGatingPreIntentHook.d.ts +160 -0
  432. package/types/contracts/hooks/WhitelistPreIntentHook.d.ts +193 -0
  433. package/types/contracts/hooks/index.d.ts +4 -0
  434. package/types/contracts/hooks/index.ts +0 -1
  435. package/types/contracts/index.d.ts +24 -0
  436. package/types/contracts/index.ts +1 -1
  437. package/types/contracts/interfaces/IAttestationVerifier.d.ts +48 -0
  438. package/types/contracts/interfaces/IChainlinkAggregatorV3.d.ts +86 -0
  439. package/types/contracts/interfaces/IEscrow.d.ts +640 -0
  440. package/types/contracts/interfaces/IEscrowRegistry.d.ts +58 -0
  441. package/types/contracts/interfaces/IEscrowV2.d.ts +1041 -0
  442. package/types/contracts/interfaces/IEscrowV2.ts +22 -0
  443. package/types/contracts/interfaces/IIntentRiskHook.d.ts +120 -0
  444. package/types/contracts/interfaces/IIntentRiskHook.ts +57 -60
  445. package/types/contracts/interfaces/INullifierRegistry.d.ts +58 -0
  446. package/types/contracts/interfaces/INullifierRegistryV2.d.ts +165 -0
  447. package/types/contracts/interfaces/INullifierRegistryV2.ts +420 -0
  448. package/types/contracts/interfaces/IOracleAdapter.d.ts +76 -0
  449. package/types/contracts/interfaces/IOrchestrator.d.ts +385 -0
  450. package/types/contracts/interfaces/IOrchestratorRegistry.d.ts +76 -0
  451. package/types/contracts/interfaces/IOrchestratorV2.d.ts +517 -0
  452. package/types/contracts/interfaces/IOrchestratorV3.d.ts +716 -0
  453. package/types/contracts/interfaces/IOrchestratorV3.ts +214 -245
  454. package/types/contracts/interfaces/IPaymentVerifier.d.ts +76 -0
  455. package/types/contracts/interfaces/IPaymentVerifierRegistry.d.ts +74 -0
  456. package/types/contracts/interfaces/IPostIntentHook.d.ts +103 -0
  457. package/types/contracts/interfaces/IPostIntentHookRegistry.d.ts +50 -0
  458. package/types/contracts/interfaces/IPostIntentHookV2.d.ts +110 -0
  459. package/types/contracts/interfaces/IPreIntentHook.d.ts +97 -0
  460. package/types/contracts/interfaces/IProtocolViewer.d.ts +217 -0
  461. package/types/contracts/interfaces/IProtocolViewerV2.d.ts +264 -0
  462. package/types/contracts/interfaces/IPyth.d.ts +84 -0
  463. package/types/contracts/interfaces/IRateManager.d.ts +93 -0
  464. package/types/contracts/interfaces/IReferralFee.d.ts +27 -0
  465. package/types/contracts/interfaces/IRelayerRegistry.d.ts +50 -0
  466. package/types/contracts/interfaces/IRiskManager.d.ts +825 -0
  467. package/types/contracts/interfaces/{IRiskTierManager.ts → IRiskManager.ts} +664 -788
  468. package/types/contracts/interfaces/IStakeVault.d.ts +1232 -0
  469. package/types/contracts/interfaces/IStakeVault.ts +501 -397
  470. package/types/contracts/interfaces/index.d.ts +27 -0
  471. package/types/contracts/interfaces/index.ts +2 -2
  472. package/types/contracts/lib/BoundedCall.d.ts +47 -0
  473. package/types/contracts/lib/FeeSettlementLib.d.ts +47 -0
  474. package/types/contracts/lib/FeeSettlementLib.ts +87 -0
  475. package/types/contracts/lib/RiskSettlementExecutor.d.ts +53 -0
  476. package/types/contracts/lib/RiskSettlementExecutor.ts +98 -0
  477. package/types/contracts/lib/index.d.ts +3 -0
  478. package/types/contracts/lib/index.ts +2 -0
  479. package/types/contracts/oracles/ChainlinkOracleAdapter.d.ts +76 -0
  480. package/types/contracts/oracles/PythOracleAdapter.d.ts +84 -0
  481. package/types/contracts/oracles/index.d.ts +2 -0
  482. package/types/contracts/registries/EscrowRegistry.d.ts +206 -0
  483. package/types/contracts/registries/NullifierRegistry.d.ts +200 -0
  484. package/types/contracts/registries/NullifierRegistryV2.d.ts +218 -0
  485. package/types/contracts/registries/NullifierRegistryV2.ts +520 -0
  486. package/types/contracts/registries/OrchestratorRegistry.d.ts +151 -0
  487. package/types/contracts/registries/PaymentVerifierRegistry.d.ts +270 -0
  488. package/types/contracts/registries/PostIntentHookRegistry.d.ts +175 -0
  489. package/types/contracts/registries/RelayerRegistry.d.ts +165 -0
  490. package/types/contracts/registries/index.d.ts +7 -0
  491. package/types/contracts/registries/index.ts +1 -0
  492. package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.d.ts +220 -0
  493. package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.d.ts +220 -0
  494. package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.ts +502 -0
  495. package/types/contracts/unifiedVerifier/MultiAttestationVerifier.d.ts +216 -0
  496. package/types/contracts/unifiedVerifier/SimpleAttestationVerifier.d.ts +148 -0
  497. package/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.d.ts +293 -0
  498. package/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.d.ts +293 -0
  499. package/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.ts +620 -0
  500. package/types/contracts/unifiedVerifier/index.d.ts +6 -0
  501. package/types/contracts/unifiedVerifier/index.ts +2 -0
  502. package/types/index.d.ts +1 -0
  503. package/utils/index.d.ts +3 -0
  504. package/utils/index.ts +1 -0
  505. package/utils/protocolUtils.d.ts +40 -0
  506. package/utils/riskMath.d.ts +30 -0
  507. package/utils/riskMath.ts +103 -0
  508. package/_cjs/types/contracts/hooks/DeferredPayoutHook.js +0 -288
  509. package/_cjs/types/contracts/interfaces/IDeferredPayoutHook.js +0 -206
  510. package/_cjs/types/contracts/interfaces/IRiskTierManager.js +0 -1704
  511. package/_esm/types/contracts/RiskTierManager.js +0 -2126
  512. package/_esm/types/contracts/hooks/DeferredPayoutHook.js +0 -288
  513. package/_esm/types/contracts/interfaces/IDeferredPayoutHook.js +0 -206
  514. package/_esm/types/contracts/interfaces/IRiskTierManager.js +0 -1704
  515. package/types/contracts/RiskTierManager.ts +0 -2126
  516. package/types/contracts/hooks/DeferredPayoutHook.ts +0 -288
  517. package/types/contracts/interfaces/IDeferredPayoutHook.ts +0 -206
@@ -1,473 +1,2 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- import type {
5
- BaseContract,
6
- BigNumber,
7
- BigNumberish,
8
- BytesLike,
9
- CallOverrides,
10
- PopulatedTransaction,
11
- Signer,
12
- utils,
13
- } from "ethers";
14
- import type { FunctionFragment, Result } from "@ethersproject/abi";
15
- import type { Listener, Provider } from "@ethersproject/providers";
16
- import type {
17
- TypedEventFilter,
18
- TypedEvent,
19
- TypedListener,
20
- OnEvent,
21
- PromiseOrValue,
22
- } from "../common";
23
-
24
- export declare namespace IOrchestrator {
25
- export type IntentStruct = {
26
- owner: PromiseOrValue<string>;
27
- to: PromiseOrValue<string>;
28
- escrow: PromiseOrValue<string>;
29
- depositId: PromiseOrValue<BigNumberish>;
30
- amount: PromiseOrValue<BigNumberish>;
31
- timestamp: PromiseOrValue<BigNumberish>;
32
- paymentMethod: PromiseOrValue<BytesLike>;
33
- fiatCurrency: PromiseOrValue<BytesLike>;
34
- conversionRate: PromiseOrValue<BigNumberish>;
35
- payeeId: PromiseOrValue<BytesLike>;
36
- referrer: PromiseOrValue<string>;
37
- referrerFee: PromiseOrValue<BigNumberish>;
38
- postIntentHook: PromiseOrValue<string>;
39
- data: PromiseOrValue<BytesLike>;
40
- };
41
-
42
- export type IntentStructOutput = [
43
- string,
44
- string,
45
- string,
46
- BigNumber,
47
- BigNumber,
48
- BigNumber,
49
- string,
50
- string,
51
- BigNumber,
52
- string,
53
- string,
54
- BigNumber,
55
- string,
56
- string
57
- ] & {
58
- owner: string;
59
- to: string;
60
- escrow: string;
61
- depositId: BigNumber;
62
- amount: BigNumber;
63
- timestamp: BigNumber;
64
- paymentMethod: string;
65
- fiatCurrency: string;
66
- conversionRate: BigNumber;
67
- payeeId: string;
68
- referrer: string;
69
- referrerFee: BigNumber;
70
- postIntentHook: string;
71
- data: string;
72
- };
73
- }
74
-
75
- export declare namespace IEscrow {
76
- export type RangeStruct = {
77
- min: PromiseOrValue<BigNumberish>;
78
- max: PromiseOrValue<BigNumberish>;
79
- };
80
-
81
- export type RangeStructOutput = [BigNumber, BigNumber] & {
82
- min: BigNumber;
83
- max: BigNumber;
84
- };
85
-
86
- export type DepositStruct = {
87
- depositor: PromiseOrValue<string>;
88
- delegate: PromiseOrValue<string>;
89
- token: PromiseOrValue<string>;
90
- intentAmountRange: IEscrow.RangeStruct;
91
- acceptingIntents: PromiseOrValue<boolean>;
92
- remainingDeposits: PromiseOrValue<BigNumberish>;
93
- outstandingIntentAmount: PromiseOrValue<BigNumberish>;
94
- intentGuardian: PromiseOrValue<string>;
95
- retainOnEmpty: PromiseOrValue<boolean>;
96
- };
97
-
98
- export type DepositStructOutput = [
99
- string,
100
- string,
101
- string,
102
- IEscrow.RangeStructOutput,
103
- boolean,
104
- BigNumber,
105
- BigNumber,
106
- string,
107
- boolean
108
- ] & {
109
- depositor: string;
110
- delegate: string;
111
- token: string;
112
- intentAmountRange: IEscrow.RangeStructOutput;
113
- acceptingIntents: boolean;
114
- remainingDeposits: BigNumber;
115
- outstandingIntentAmount: BigNumber;
116
- intentGuardian: string;
117
- retainOnEmpty: boolean;
118
- };
119
-
120
- export type DepositPaymentMethodDataStruct = {
121
- intentGatingService: PromiseOrValue<string>;
122
- payeeDetails: PromiseOrValue<BytesLike>;
123
- data: PromiseOrValue<BytesLike>;
124
- };
125
-
126
- export type DepositPaymentMethodDataStructOutput = [
127
- string,
128
- string,
129
- string
130
- ] & { intentGatingService: string; payeeDetails: string; data: string };
131
-
132
- export type CurrencyStruct = {
133
- code: PromiseOrValue<BytesLike>;
134
- minConversionRate: PromiseOrValue<BigNumberish>;
135
- };
136
-
137
- export type CurrencyStructOutput = [string, BigNumber] & {
138
- code: string;
139
- minConversionRate: BigNumber;
140
- };
141
- }
142
-
143
- export declare namespace IProtocolViewer {
144
- export type PaymentMethodDataViewStruct = {
145
- paymentMethod: PromiseOrValue<BytesLike>;
146
- verificationData: IEscrow.DepositPaymentMethodDataStruct;
147
- currencies: IEscrow.CurrencyStruct[];
148
- };
149
-
150
- export type PaymentMethodDataViewStructOutput = [
151
- string,
152
- IEscrow.DepositPaymentMethodDataStructOutput,
153
- IEscrow.CurrencyStructOutput[]
154
- ] & {
155
- paymentMethod: string;
156
- verificationData: IEscrow.DepositPaymentMethodDataStructOutput;
157
- currencies: IEscrow.CurrencyStructOutput[];
158
- };
159
-
160
- export type DepositViewStruct = {
161
- depositId: PromiseOrValue<BigNumberish>;
162
- deposit: IEscrow.DepositStruct;
163
- availableLiquidity: PromiseOrValue<BigNumberish>;
164
- paymentMethods: IProtocolViewer.PaymentMethodDataViewStruct[];
165
- intentHashes: PromiseOrValue<BytesLike>[];
166
- };
167
-
168
- export type DepositViewStructOutput = [
169
- BigNumber,
170
- IEscrow.DepositStructOutput,
171
- BigNumber,
172
- IProtocolViewer.PaymentMethodDataViewStructOutput[],
173
- string[]
174
- ] & {
175
- depositId: BigNumber;
176
- deposit: IEscrow.DepositStructOutput;
177
- availableLiquidity: BigNumber;
178
- paymentMethods: IProtocolViewer.PaymentMethodDataViewStructOutput[];
179
- intentHashes: string[];
180
- };
181
-
182
- export type IntentViewStruct = {
183
- intentHash: PromiseOrValue<BytesLike>;
184
- intent: IOrchestrator.IntentStruct;
185
- deposit: IProtocolViewer.DepositViewStruct;
186
- };
187
-
188
- export type IntentViewStructOutput = [
189
- string,
190
- IOrchestrator.IntentStructOutput,
191
- IProtocolViewer.DepositViewStructOutput
192
- ] & {
193
- intentHash: string;
194
- intent: IOrchestrator.IntentStructOutput;
195
- deposit: IProtocolViewer.DepositViewStructOutput;
196
- };
197
- }
198
-
199
- export interface ProtocolViewerInterface extends utils.Interface {
200
- functions: {
201
- "escrowContract()": FunctionFragment;
202
- "getAccountIntents(address)": FunctionFragment;
203
- "getDeposit(uint256)": FunctionFragment;
204
- "getDepositFromIds(uint256[])": FunctionFragment;
205
- "getIntent(bytes32)": FunctionFragment;
206
- "getIntents(bytes32[])": FunctionFragment;
207
- "orchestrator()": FunctionFragment;
208
- };
209
-
210
- getFunction(
211
- nameOrSignatureOrTopic:
212
- | "escrowContract"
213
- | "getAccountIntents"
214
- | "getDeposit"
215
- | "getDepositFromIds"
216
- | "getIntent"
217
- | "getIntents"
218
- | "orchestrator"
219
- ): FunctionFragment;
220
-
221
- encodeFunctionData(
222
- functionFragment: "escrowContract",
223
- values?: undefined
224
- ): string;
225
- encodeFunctionData(
226
- functionFragment: "getAccountIntents",
227
- values: [PromiseOrValue<string>]
228
- ): string;
229
- encodeFunctionData(
230
- functionFragment: "getDeposit",
231
- values: [PromiseOrValue<BigNumberish>]
232
- ): string;
233
- encodeFunctionData(
234
- functionFragment: "getDepositFromIds",
235
- values: [PromiseOrValue<BigNumberish>[]]
236
- ): string;
237
- encodeFunctionData(
238
- functionFragment: "getIntent",
239
- values: [PromiseOrValue<BytesLike>]
240
- ): string;
241
- encodeFunctionData(
242
- functionFragment: "getIntents",
243
- values: [PromiseOrValue<BytesLike>[]]
244
- ): string;
245
- encodeFunctionData(
246
- functionFragment: "orchestrator",
247
- values?: undefined
248
- ): string;
249
-
250
- decodeFunctionResult(
251
- functionFragment: "escrowContract",
252
- data: BytesLike
253
- ): Result;
254
- decodeFunctionResult(
255
- functionFragment: "getAccountIntents",
256
- data: BytesLike
257
- ): Result;
258
- decodeFunctionResult(functionFragment: "getDeposit", data: BytesLike): Result;
259
- decodeFunctionResult(
260
- functionFragment: "getDepositFromIds",
261
- data: BytesLike
262
- ): Result;
263
- decodeFunctionResult(functionFragment: "getIntent", data: BytesLike): Result;
264
- decodeFunctionResult(functionFragment: "getIntents", data: BytesLike): Result;
265
- decodeFunctionResult(
266
- functionFragment: "orchestrator",
267
- data: BytesLike
268
- ): Result;
269
-
270
- events: {};
271
- }
272
-
273
- export interface ProtocolViewer extends BaseContract {
274
- connect(signerOrProvider: Signer | Provider | string): this;
275
- attach(addressOrName: string): this;
276
- deployed(): Promise<this>;
277
-
278
- interface: ProtocolViewerInterface;
279
-
280
- queryFilter<TEvent extends TypedEvent>(
281
- event: TypedEventFilter<TEvent>,
282
- fromBlockOrBlockhash?: string | number | undefined,
283
- toBlock?: string | number | undefined
284
- ): Promise<Array<TEvent>>;
285
-
286
- listeners<TEvent extends TypedEvent>(
287
- eventFilter?: TypedEventFilter<TEvent>
288
- ): Array<TypedListener<TEvent>>;
289
- listeners(eventName?: string): Array<Listener>;
290
- removeAllListeners<TEvent extends TypedEvent>(
291
- eventFilter: TypedEventFilter<TEvent>
292
- ): this;
293
- removeAllListeners(eventName?: string): this;
294
- off: OnEvent<this>;
295
- on: OnEvent<this>;
296
- once: OnEvent<this>;
297
- removeListener: OnEvent<this>;
298
-
299
- functions: {
300
- escrowContract(overrides?: CallOverrides): Promise<[string]>;
301
-
302
- getAccountIntents(
303
- _account: PromiseOrValue<string>,
304
- overrides?: CallOverrides
305
- ): Promise<
306
- [IProtocolViewer.IntentViewStructOutput[]] & {
307
- intentViews: IProtocolViewer.IntentViewStructOutput[];
308
- }
309
- >;
310
-
311
- getDeposit(
312
- _depositId: PromiseOrValue<BigNumberish>,
313
- overrides?: CallOverrides
314
- ): Promise<
315
- [IProtocolViewer.DepositViewStructOutput] & {
316
- depositView: IProtocolViewer.DepositViewStructOutput;
317
- }
318
- >;
319
-
320
- getDepositFromIds(
321
- _depositIds: PromiseOrValue<BigNumberish>[],
322
- overrides?: CallOverrides
323
- ): Promise<
324
- [IProtocolViewer.DepositViewStructOutput[]] & {
325
- depositArray: IProtocolViewer.DepositViewStructOutput[];
326
- }
327
- >;
328
-
329
- getIntent(
330
- _intentHash: PromiseOrValue<BytesLike>,
331
- overrides?: CallOverrides
332
- ): Promise<
333
- [IProtocolViewer.IntentViewStructOutput] & {
334
- intentView: IProtocolViewer.IntentViewStructOutput;
335
- }
336
- >;
337
-
338
- getIntents(
339
- _intentHashes: PromiseOrValue<BytesLike>[],
340
- overrides?: CallOverrides
341
- ): Promise<
342
- [IProtocolViewer.IntentViewStructOutput[]] & {
343
- intentArray: IProtocolViewer.IntentViewStructOutput[];
344
- }
345
- >;
346
-
347
- orchestrator(overrides?: CallOverrides): Promise<[string]>;
348
- };
349
-
350
- escrowContract(overrides?: CallOverrides): Promise<string>;
351
-
352
- getAccountIntents(
353
- _account: PromiseOrValue<string>,
354
- overrides?: CallOverrides
355
- ): Promise<IProtocolViewer.IntentViewStructOutput[]>;
356
-
357
- getDeposit(
358
- _depositId: PromiseOrValue<BigNumberish>,
359
- overrides?: CallOverrides
360
- ): Promise<IProtocolViewer.DepositViewStructOutput>;
361
-
362
- getDepositFromIds(
363
- _depositIds: PromiseOrValue<BigNumberish>[],
364
- overrides?: CallOverrides
365
- ): Promise<IProtocolViewer.DepositViewStructOutput[]>;
366
-
367
- getIntent(
368
- _intentHash: PromiseOrValue<BytesLike>,
369
- overrides?: CallOverrides
370
- ): Promise<IProtocolViewer.IntentViewStructOutput>;
371
-
372
- getIntents(
373
- _intentHashes: PromiseOrValue<BytesLike>[],
374
- overrides?: CallOverrides
375
- ): Promise<IProtocolViewer.IntentViewStructOutput[]>;
376
-
377
- orchestrator(overrides?: CallOverrides): Promise<string>;
378
-
379
- callStatic: {
380
- escrowContract(overrides?: CallOverrides): Promise<string>;
381
-
382
- getAccountIntents(
383
- _account: PromiseOrValue<string>,
384
- overrides?: CallOverrides
385
- ): Promise<IProtocolViewer.IntentViewStructOutput[]>;
386
-
387
- getDeposit(
388
- _depositId: PromiseOrValue<BigNumberish>,
389
- overrides?: CallOverrides
390
- ): Promise<IProtocolViewer.DepositViewStructOutput>;
391
-
392
- getDepositFromIds(
393
- _depositIds: PromiseOrValue<BigNumberish>[],
394
- overrides?: CallOverrides
395
- ): Promise<IProtocolViewer.DepositViewStructOutput[]>;
396
-
397
- getIntent(
398
- _intentHash: PromiseOrValue<BytesLike>,
399
- overrides?: CallOverrides
400
- ): Promise<IProtocolViewer.IntentViewStructOutput>;
401
-
402
- getIntents(
403
- _intentHashes: PromiseOrValue<BytesLike>[],
404
- overrides?: CallOverrides
405
- ): Promise<IProtocolViewer.IntentViewStructOutput[]>;
406
-
407
- orchestrator(overrides?: CallOverrides): Promise<string>;
408
- };
409
-
410
- filters: {};
411
-
412
- estimateGas: {
413
- escrowContract(overrides?: CallOverrides): Promise<BigNumber>;
414
-
415
- getAccountIntents(
416
- _account: PromiseOrValue<string>,
417
- overrides?: CallOverrides
418
- ): Promise<BigNumber>;
419
-
420
- getDeposit(
421
- _depositId: PromiseOrValue<BigNumberish>,
422
- overrides?: CallOverrides
423
- ): Promise<BigNumber>;
424
-
425
- getDepositFromIds(
426
- _depositIds: PromiseOrValue<BigNumberish>[],
427
- overrides?: CallOverrides
428
- ): Promise<BigNumber>;
429
-
430
- getIntent(
431
- _intentHash: PromiseOrValue<BytesLike>,
432
- overrides?: CallOverrides
433
- ): Promise<BigNumber>;
434
-
435
- getIntents(
436
- _intentHashes: PromiseOrValue<BytesLike>[],
437
- overrides?: CallOverrides
438
- ): Promise<BigNumber>;
439
-
440
- orchestrator(overrides?: CallOverrides): Promise<BigNumber>;
441
- };
442
-
443
- populateTransaction: {
444
- escrowContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
445
-
446
- getAccountIntents(
447
- _account: PromiseOrValue<string>,
448
- overrides?: CallOverrides
449
- ): Promise<PopulatedTransaction>;
450
-
451
- getDeposit(
452
- _depositId: PromiseOrValue<BigNumberish>,
453
- overrides?: CallOverrides
454
- ): Promise<PopulatedTransaction>;
455
-
456
- getDepositFromIds(
457
- _depositIds: PromiseOrValue<BigNumberish>[],
458
- overrides?: CallOverrides
459
- ): Promise<PopulatedTransaction>;
460
-
461
- getIntent(
462
- _intentHash: PromiseOrValue<BytesLike>,
463
- overrides?: CallOverrides
464
- ): Promise<PopulatedTransaction>;
465
-
466
- getIntents(
467
- _intentHashes: PromiseOrValue<BytesLike>[],
468
- overrides?: CallOverrides
469
- ): Promise<PopulatedTransaction>;
470
-
471
- orchestrator(overrides?: CallOverrides): Promise<PopulatedTransaction>;
472
- };
473
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });