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

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