@zkp2p/contracts-v2 0.0.11 → 0.1.11-rc.3

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 (253) hide show
  1. package/_cjs/abis/base/index.js +0 -1
  2. package/_cjs/abis/base.cjs +0 -1
  3. package/_cjs/abis/base.mjs +0 -1
  4. package/_cjs/abis/{base/AcrossBridgeHook.js → baseStaging/AcrossBridgeHookV2.js} +78 -65
  5. package/{abis/base/AcrossBridgeHook.json → _cjs/abis/baseStaging/AcrossBridgeHookV2.json} +78 -65
  6. package/_cjs/abis/baseStaging/ChainlinkOracleAdapter.js +52 -0
  7. package/_cjs/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
  8. package/_cjs/abis/{baseSepolia/Escrow.js → baseStaging/EscrowV2.js} +969 -384
  9. package/{abis/baseSepolia/Escrow.json → _cjs/abis/baseStaging/EscrowV2.json} +969 -384
  10. package/_cjs/abis/{baseSepolia/RelayerRegistry.js → baseStaging/OrchestratorRegistry.js} +40 -50
  11. package/{abis/baseSepolia/RelayerRegistry.json → _cjs/abis/baseStaging/OrchestratorRegistry.json} +40 -50
  12. package/_cjs/abis/{baseSepolia/Orchestrator.js → baseStaging/OrchestratorV2.js} +262 -67
  13. package/{abis/baseSepolia/Orchestrator.json → _cjs/abis/baseStaging/OrchestratorV2.json} +262 -67
  14. package/_cjs/abis/{baseSepolia/ProtocolViewer.js → baseStaging/ProtocolViewerV2.js} +79 -390
  15. package/{_esm/abis/baseSepolia/ProtocolViewer.json → _cjs/abis/baseStaging/ProtocolViewerV2.json} +79 -390
  16. package/_cjs/abis/baseStaging/RateManagerV1.js +1234 -0
  17. package/_cjs/abis/baseStaging/RateManagerV1.json +1232 -0
  18. package/_cjs/abis/{baseSepolia/USDCMock.js → baseStaging/SignatureGatingPreIntentHook.js} +146 -149
  19. package/{abis/baseSepolia/USDCMock.json → _cjs/abis/baseStaging/SignatureGatingPreIntentHook.json} +146 -149
  20. package/_cjs/abis/{baseSepolia/UnifiedPaymentVerifier.js → baseStaging/UnifiedPaymentVerifierV2.js} +4 -4
  21. package/{abis/baseSepolia/UnifiedPaymentVerifier.json → _cjs/abis/baseStaging/UnifiedPaymentVerifierV2.json} +4 -4
  22. package/_cjs/abis/baseStaging/WhitelistPreIntentHook.js +336 -0
  23. package/_cjs/abis/baseStaging/WhitelistPreIntentHook.json +334 -0
  24. package/_cjs/abis/baseStaging/index.js +10 -0
  25. package/_cjs/abis/baseStaging.cjs +11 -1
  26. package/_cjs/abis/baseStaging.mjs +10 -0
  27. package/_cjs/abis/index.js +0 -1
  28. package/_cjs/addresses/base.js +13 -3
  29. package/_cjs/addresses/base.json +13 -3
  30. package/_cjs/addresses/baseStaging.js +13 -3
  31. package/_cjs/addresses/baseStaging.json +13 -3
  32. package/_cjs/addresses/index.js +0 -1
  33. package/_cjs/addresses/index.json +1 -2
  34. package/_cjs/constants/index.json +1 -1
  35. package/_cjs/paymentMethods/base.js +1 -11
  36. package/_cjs/paymentMethods/base.json +1 -11
  37. package/_cjs/paymentMethods/baseSepolia.js +1 -1
  38. package/_cjs/paymentMethods/baseSepolia.json +1 -1
  39. package/_cjs/paymentMethods/baseStaging.js +1 -11
  40. package/_cjs/paymentMethods/baseStaging.json +1 -11
  41. package/_cjs/paymentMethods/index.json +1 -1
  42. package/_cjs/types/contracts/EscrowV2.js +3328 -0
  43. package/_cjs/types/contracts/OrchestratorV2.js +1551 -0
  44. package/_cjs/types/contracts/ProtocolViewer.js +51 -90
  45. package/_cjs/types/contracts/ProtocolViewerV2.js +458 -0
  46. package/_cjs/types/contracts/RateManagerV1.js +1553 -0
  47. package/_cjs/types/contracts/external/Interfaces/index.js +0 -1
  48. package/{_esm/types/contracts/hooks/AcrossSwapBridgeHook.js → _cjs/types/contracts/hooks/AcrossBridgeHookV2.js} +56 -86
  49. package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.js +351 -0
  50. package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +424 -0
  51. package/_cjs/types/contracts/hooks/index.js +3 -1
  52. package/_cjs/types/contracts/index.js +6 -0
  53. package/_cjs/types/contracts/interfaces/IChainlinkAggregatorV3.js +132 -0
  54. package/_cjs/types/contracts/interfaces/IEscrow.js +0 -35
  55. package/_cjs/types/contracts/interfaces/IEscrowV2.js +2074 -0
  56. package/_cjs/types/contracts/interfaces/IOracleAdapter.js +154 -0
  57. package/_cjs/types/contracts/interfaces/IOrchestratorRegistry.js +178 -0
  58. package/_cjs/types/contracts/interfaces/IOrchestratorV2.js +987 -0
  59. package/_cjs/types/contracts/interfaces/IPostIntentHookV2.js +172 -0
  60. package/_cjs/types/contracts/interfaces/IPreIntentHook.js +148 -0
  61. package/_cjs/types/contracts/interfaces/IProtocolViewerV2.js +458 -0
  62. package/_cjs/types/contracts/interfaces/IRateManager.js +239 -0
  63. package/_cjs/types/contracts/interfaces/index.js +9 -0
  64. package/_cjs/types/contracts/oracles/ChainlinkOracleAdapter.js +154 -0
  65. package/_cjs/types/contracts/oracles/index.js +4 -0
  66. package/_cjs/types/contracts/registries/OrchestratorRegistry.js +324 -0
  67. package/_cjs/types/contracts/registries/index.js +1 -0
  68. package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +11 -9
  69. package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +11 -9
  70. package/_esm/abis/base/index.js +0 -1
  71. package/_esm/abis/base.cjs +0 -1
  72. package/_esm/abis/base.mjs +0 -1
  73. package/_esm/abis/{base/AcrossBridgeHook.js → baseStaging/AcrossBridgeHookV2.js} +78 -65
  74. package/{_cjs/abis/base/AcrossBridgeHook.json → _esm/abis/baseStaging/AcrossBridgeHookV2.json} +78 -65
  75. package/_esm/abis/baseStaging/ChainlinkOracleAdapter.js +51 -0
  76. package/_esm/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
  77. package/_esm/abis/{baseSepolia/Escrow.js → baseStaging/EscrowV2.js} +969 -384
  78. package/{_cjs/abis/baseSepolia/Escrow.json → _esm/abis/baseStaging/EscrowV2.json} +969 -384
  79. package/_esm/abis/{baseSepolia/RelayerRegistry.js → baseStaging/OrchestratorRegistry.js} +40 -50
  80. package/_esm/abis/{baseSepolia/RelayerRegistry.json → baseStaging/OrchestratorRegistry.json} +40 -50
  81. package/_esm/abis/{baseSepolia/Orchestrator.js → baseStaging/OrchestratorV2.js} +262 -67
  82. package/_esm/abis/{baseSepolia/Orchestrator.json → baseStaging/OrchestratorV2.json} +262 -67
  83. package/_esm/abis/{baseSepolia/ProtocolViewer.js → baseStaging/ProtocolViewerV2.js} +79 -390
  84. package/{abis/baseSepolia/ProtocolViewer.json → _esm/abis/baseStaging/ProtocolViewerV2.json} +79 -390
  85. package/_esm/abis/baseStaging/RateManagerV1.js +1233 -0
  86. package/_esm/abis/baseStaging/RateManagerV1.json +1232 -0
  87. package/_esm/abis/{baseSepolia/USDCMock.js → baseStaging/SignatureGatingPreIntentHook.js} +146 -149
  88. package/_esm/abis/{baseSepolia/USDCMock.json → baseStaging/SignatureGatingPreIntentHook.json} +146 -149
  89. package/_esm/abis/{baseSepolia/UnifiedPaymentVerifier.js → baseStaging/UnifiedPaymentVerifierV2.js} +4 -4
  90. package/{_cjs/abis/baseSepolia/UnifiedPaymentVerifier.json → _esm/abis/baseStaging/UnifiedPaymentVerifierV2.json} +4 -4
  91. package/_esm/abis/baseStaging/WhitelistPreIntentHook.js +335 -0
  92. package/_esm/abis/baseStaging/WhitelistPreIntentHook.json +334 -0
  93. package/_esm/abis/baseStaging/index.js +10 -0
  94. package/_esm/abis/baseStaging.cjs +11 -1
  95. package/_esm/abis/baseStaging.mjs +10 -0
  96. package/_esm/abis/index.js +0 -1
  97. package/_esm/addresses/base.js +13 -3
  98. package/_esm/addresses/base.json +13 -3
  99. package/_esm/addresses/baseStaging.js +13 -3
  100. package/_esm/addresses/baseStaging.json +13 -3
  101. package/_esm/addresses/index.js +0 -1
  102. package/_esm/addresses/index.json +1 -2
  103. package/_esm/constants/index.json +1 -1
  104. package/_esm/paymentMethods/base.js +1 -11
  105. package/_esm/paymentMethods/base.json +1 -11
  106. package/_esm/paymentMethods/baseSepolia.js +1 -1
  107. package/_esm/paymentMethods/baseSepolia.json +1 -1
  108. package/_esm/paymentMethods/baseStaging.js +1 -11
  109. package/_esm/paymentMethods/baseStaging.json +1 -11
  110. package/_esm/paymentMethods/index.json +1 -1
  111. package/_esm/types/contracts/EscrowV2.js +3328 -0
  112. package/_esm/types/contracts/OrchestratorV2.js +1551 -0
  113. package/_esm/types/contracts/ProtocolViewer.js +51 -90
  114. package/_esm/types/contracts/ProtocolViewerV2.js +458 -0
  115. package/_esm/types/contracts/RateManagerV1.js +1553 -0
  116. package/_esm/types/contracts/external/Interfaces/index.js +0 -1
  117. package/{types/contracts/hooks/AcrossSwapBridgeHook.ts → _esm/types/contracts/hooks/AcrossBridgeHookV2.js} +56 -86
  118. package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.js +351 -0
  119. package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +424 -0
  120. package/_esm/types/contracts/hooks/index.js +3 -1
  121. package/_esm/types/contracts/index.js +6 -0
  122. package/_esm/types/contracts/interfaces/IChainlinkAggregatorV3.js +132 -0
  123. package/_esm/types/contracts/interfaces/IEscrow.js +0 -35
  124. package/_esm/types/contracts/interfaces/IEscrowV2.js +2074 -0
  125. package/_esm/types/contracts/interfaces/IOracleAdapter.js +154 -0
  126. package/_esm/types/contracts/interfaces/IOrchestratorRegistry.js +178 -0
  127. package/_esm/types/contracts/interfaces/IOrchestratorV2.js +987 -0
  128. package/_esm/types/contracts/interfaces/IPostIntentHookV2.js +172 -0
  129. package/_esm/types/contracts/interfaces/IPreIntentHook.js +148 -0
  130. package/_esm/types/contracts/interfaces/IProtocolViewerV2.js +458 -0
  131. package/_esm/types/contracts/interfaces/IRateManager.js +239 -0
  132. package/_esm/types/contracts/interfaces/index.js +9 -0
  133. package/_esm/types/contracts/oracles/ChainlinkOracleAdapter.js +154 -0
  134. package/_esm/types/contracts/oracles/index.js +4 -0
  135. package/_esm/types/contracts/registries/OrchestratorRegistry.js +324 -0
  136. package/_esm/types/contracts/registries/index.js +1 -0
  137. package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +11 -9
  138. package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +11 -9
  139. package/_types/abis/base.d.ts +0 -1
  140. package/_types/abis/baseStaging.d.ts +10 -0
  141. package/_types/addresses/index.d.ts +0 -1
  142. package/abis/base/index.ts +0 -1
  143. package/abis/base.cjs +0 -1
  144. package/abis/base.d.ts +0 -1
  145. package/abis/base.mjs +0 -1
  146. package/{_esm/abis/base/AcrossBridgeHook.json → abis/baseStaging/AcrossBridgeHookV2.json} +78 -65
  147. package/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
  148. package/{_esm/abis/baseSepolia/Escrow.json → abis/baseStaging/EscrowV2.json} +969 -384
  149. package/{_cjs/abis/baseSepolia/RelayerRegistry.json → abis/baseStaging/OrchestratorRegistry.json} +40 -50
  150. package/{_cjs/abis/baseSepolia/Orchestrator.json → abis/baseStaging/OrchestratorV2.json} +262 -67
  151. package/{_cjs/abis/baseSepolia/ProtocolViewer.json → abis/baseStaging/ProtocolViewerV2.json} +79 -390
  152. package/abis/baseStaging/RateManagerV1.json +1232 -0
  153. package/{_cjs/abis/baseSepolia/USDCMock.json → abis/baseStaging/SignatureGatingPreIntentHook.json} +146 -149
  154. package/{_esm/abis/baseSepolia/UnifiedPaymentVerifier.json → abis/baseStaging/UnifiedPaymentVerifierV2.json} +4 -4
  155. package/abis/baseStaging/WhitelistPreIntentHook.json +334 -0
  156. package/abis/baseStaging/index.ts +10 -0
  157. package/abis/baseStaging.cjs +11 -1
  158. package/abis/baseStaging.d.ts +10 -0
  159. package/abis/baseStaging.mjs +10 -0
  160. package/abis/index.ts +0 -1
  161. package/addresses/base.json +13 -3
  162. package/addresses/baseStaging.json +13 -3
  163. package/addresses/index.d.ts +0 -1
  164. package/addresses/index.json +1 -2
  165. package/addresses/index.ts +0 -1
  166. package/constants/index.json +1 -1
  167. package/package.json +1 -16
  168. package/paymentMethods/base.json +1 -11
  169. package/paymentMethods/baseSepolia.json +1 -1
  170. package/paymentMethods/baseStaging.json +1 -11
  171. package/paymentMethods/index.json +1 -1
  172. package/types/contracts/EscrowV2.ts +3328 -0
  173. package/types/contracts/OrchestratorV2.ts +1551 -0
  174. package/types/contracts/ProtocolViewer.ts +51 -90
  175. package/types/contracts/ProtocolViewerV2.ts +458 -0
  176. package/types/contracts/RateManagerV1.ts +1553 -0
  177. package/types/contracts/external/Interfaces/index.ts +0 -1
  178. package/{_cjs/types/contracts/hooks/AcrossSwapBridgeHook.js → types/contracts/hooks/AcrossBridgeHookV2.ts} +56 -86
  179. package/types/contracts/hooks/SignatureGatingPreIntentHook.ts +351 -0
  180. package/types/contracts/hooks/WhitelistPreIntentHook.ts +424 -0
  181. package/types/contracts/hooks/index.ts +3 -1
  182. package/types/contracts/index.ts +6 -0
  183. package/types/contracts/interfaces/IChainlinkAggregatorV3.ts +132 -0
  184. package/types/contracts/interfaces/IEscrow.ts +0 -35
  185. package/types/contracts/interfaces/IEscrowV2.ts +2074 -0
  186. package/types/contracts/interfaces/IOracleAdapter.ts +154 -0
  187. package/types/contracts/interfaces/IOrchestratorRegistry.ts +178 -0
  188. package/types/contracts/interfaces/IOrchestratorV2.ts +987 -0
  189. package/types/contracts/interfaces/IPostIntentHookV2.ts +172 -0
  190. package/types/contracts/interfaces/IPreIntentHook.ts +148 -0
  191. package/types/contracts/interfaces/IProtocolViewerV2.ts +458 -0
  192. package/types/contracts/interfaces/IRateManager.ts +239 -0
  193. package/types/contracts/interfaces/index.ts +9 -0
  194. package/types/contracts/oracles/ChainlinkOracleAdapter.ts +154 -0
  195. package/types/contracts/oracles/index.ts +4 -0
  196. package/types/contracts/registries/OrchestratorRegistry.ts +324 -0
  197. package/types/contracts/registries/index.ts +1 -0
  198. package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.ts +11 -9
  199. package/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.ts +11 -9
  200. package/_cjs/abis/baseSepolia/EscrowRegistry.js +0 -216
  201. package/_cjs/abis/baseSepolia/EscrowRegistry.json +0 -214
  202. package/_cjs/abis/baseSepolia/NullifierRegistry.js +0 -215
  203. package/_cjs/abis/baseSepolia/NullifierRegistry.json +0 -213
  204. package/_cjs/abis/baseSepolia/PaymentVerifierRegistry.js +0 -334
  205. package/_cjs/abis/baseSepolia/PaymentVerifierRegistry.json +0 -332
  206. package/_cjs/abis/baseSepolia/PostIntentHookRegistry.js +0 -183
  207. package/_cjs/abis/baseSepolia/PostIntentHookRegistry.json +0 -181
  208. package/_cjs/abis/baseSepolia/SimpleAttestationVerifier.js +0 -154
  209. package/_cjs/abis/baseSepolia/SimpleAttestationVerifier.json +0 -152
  210. package/_cjs/abis/baseSepolia/index.js +0 -11
  211. package/_cjs/abis/baseSepolia.cjs +0 -14
  212. package/_cjs/abis/baseSepolia.mjs +0 -12
  213. package/_cjs/addresses/baseSepolia.js +0 -22
  214. package/_cjs/addresses/baseSepolia.json +0 -20
  215. package/_cjs/networks/baseSepolia.cjs +0 -5
  216. package/_cjs/networks/baseSepolia.mjs +0 -5
  217. package/_cjs/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.js +0 -198
  218. package/_esm/abis/baseSepolia/EscrowRegistry.js +0 -215
  219. package/_esm/abis/baseSepolia/EscrowRegistry.json +0 -214
  220. package/_esm/abis/baseSepolia/NullifierRegistry.js +0 -214
  221. package/_esm/abis/baseSepolia/NullifierRegistry.json +0 -213
  222. package/_esm/abis/baseSepolia/PaymentVerifierRegistry.js +0 -333
  223. package/_esm/abis/baseSepolia/PaymentVerifierRegistry.json +0 -332
  224. package/_esm/abis/baseSepolia/PostIntentHookRegistry.js +0 -182
  225. package/_esm/abis/baseSepolia/PostIntentHookRegistry.json +0 -181
  226. package/_esm/abis/baseSepolia/SimpleAttestationVerifier.js +0 -153
  227. package/_esm/abis/baseSepolia/SimpleAttestationVerifier.json +0 -152
  228. package/_esm/abis/baseSepolia/index.js +0 -11
  229. package/_esm/abis/baseSepolia.cjs +0 -14
  230. package/_esm/abis/baseSepolia.mjs +0 -12
  231. package/_esm/addresses/baseSepolia.js +0 -21
  232. package/_esm/addresses/baseSepolia.json +0 -20
  233. package/_esm/networks/baseSepolia.cjs +0 -5
  234. package/_esm/networks/baseSepolia.mjs +0 -5
  235. package/_esm/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.js +0 -198
  236. package/_types/abis/baseSepolia.d.ts +0 -13
  237. package/_types/addresses/baseSepolia.d.ts +0 -4
  238. package/_types/networks/baseSepolia.d.ts +0 -5
  239. package/abis/baseSepolia/EscrowRegistry.json +0 -214
  240. package/abis/baseSepolia/NullifierRegistry.json +0 -213
  241. package/abis/baseSepolia/PaymentVerifierRegistry.json +0 -332
  242. package/abis/baseSepolia/PostIntentHookRegistry.json +0 -181
  243. package/abis/baseSepolia/SimpleAttestationVerifier.json +0 -152
  244. package/abis/baseSepolia/index.ts +0 -11
  245. package/abis/baseSepolia.cjs +0 -14
  246. package/abis/baseSepolia.d.ts +0 -13
  247. package/abis/baseSepolia.mjs +0 -12
  248. package/addresses/baseSepolia.d.ts +0 -4
  249. package/addresses/baseSepolia.json +0 -20
  250. package/networks/baseSepolia.cjs +0 -5
  251. package/networks/baseSepolia.d.ts +0 -5
  252. package/networks/baseSepolia.mjs +0 -5
  253. package/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.ts +0 -198
@@ -3,214 +3,31 @@ const data = [
3
3
  "inputs": [
4
4
  {
5
5
  "internalType": "address",
6
- "name": "_escrow",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "address",
11
- "name": "_orchestrator",
6
+ "name": "escrow",
12
7
  "type": "address"
13
8
  }
14
9
  ],
15
- "stateMutability": "nonpayable",
16
- "type": "constructor"
10
+ "name": "InvalidEscrow",
11
+ "type": "error"
17
12
  },
18
13
  {
19
- "inputs": [],
20
- "name": "escrowContract",
21
- "outputs": [
14
+ "inputs": [
22
15
  {
23
- "internalType": "contract IEscrow",
24
- "name": "",
16
+ "internalType": "address",
17
+ "name": "orchestrator",
25
18
  "type": "address"
26
19
  }
27
20
  ],
28
- "stateMutability": "view",
29
- "type": "function"
21
+ "name": "InvalidOrchestrator",
22
+ "type": "error"
30
23
  },
31
24
  {
32
25
  "inputs": [
33
26
  {
34
27
  "internalType": "address",
35
- "name": "_account",
28
+ "name": "_orchestrator",
36
29
  "type": "address"
37
- }
38
- ],
39
- "name": "getAccountDeposits",
40
- "outputs": [
41
- {
42
- "components": [
43
- {
44
- "internalType": "uint256",
45
- "name": "depositId",
46
- "type": "uint256"
47
- },
48
- {
49
- "components": [
50
- {
51
- "internalType": "address",
52
- "name": "depositor",
53
- "type": "address"
54
- },
55
- {
56
- "internalType": "address",
57
- "name": "delegate",
58
- "type": "address"
59
- },
60
- {
61
- "internalType": "contract IERC20",
62
- "name": "token",
63
- "type": "address"
64
- },
65
- {
66
- "internalType": "uint256",
67
- "name": "amount",
68
- "type": "uint256"
69
- },
70
- {
71
- "components": [
72
- {
73
- "internalType": "uint256",
74
- "name": "min",
75
- "type": "uint256"
76
- },
77
- {
78
- "internalType": "uint256",
79
- "name": "max",
80
- "type": "uint256"
81
- }
82
- ],
83
- "internalType": "struct IEscrow.Range",
84
- "name": "intentAmountRange",
85
- "type": "tuple"
86
- },
87
- {
88
- "internalType": "bool",
89
- "name": "acceptingIntents",
90
- "type": "bool"
91
- },
92
- {
93
- "internalType": "uint256",
94
- "name": "remainingDeposits",
95
- "type": "uint256"
96
- },
97
- {
98
- "internalType": "uint256",
99
- "name": "outstandingIntentAmount",
100
- "type": "uint256"
101
- },
102
- {
103
- "internalType": "uint256",
104
- "name": "makerProtocolFee",
105
- "type": "uint256"
106
- },
107
- {
108
- "internalType": "uint256",
109
- "name": "reservedMakerFees",
110
- "type": "uint256"
111
- },
112
- {
113
- "internalType": "uint256",
114
- "name": "accruedMakerFees",
115
- "type": "uint256"
116
- },
117
- {
118
- "internalType": "uint256",
119
- "name": "accruedReferrerFees",
120
- "type": "uint256"
121
- },
122
- {
123
- "internalType": "address",
124
- "name": "intentGuardian",
125
- "type": "address"
126
- },
127
- {
128
- "internalType": "address",
129
- "name": "referrer",
130
- "type": "address"
131
- },
132
- {
133
- "internalType": "uint256",
134
- "name": "referrerFee",
135
- "type": "uint256"
136
- }
137
- ],
138
- "internalType": "struct IEscrow.Deposit",
139
- "name": "deposit",
140
- "type": "tuple"
141
- },
142
- {
143
- "internalType": "uint256",
144
- "name": "availableLiquidity",
145
- "type": "uint256"
146
- },
147
- {
148
- "components": [
149
- {
150
- "internalType": "bytes32",
151
- "name": "paymentMethod",
152
- "type": "bytes32"
153
- },
154
- {
155
- "components": [
156
- {
157
- "internalType": "address",
158
- "name": "intentGatingService",
159
- "type": "address"
160
- },
161
- {
162
- "internalType": "bytes32",
163
- "name": "payeeDetails",
164
- "type": "bytes32"
165
- },
166
- {
167
- "internalType": "bytes",
168
- "name": "data",
169
- "type": "bytes"
170
- }
171
- ],
172
- "internalType": "struct IEscrow.DepositPaymentMethodData",
173
- "name": "verificationData",
174
- "type": "tuple"
175
- },
176
- {
177
- "components": [
178
- {
179
- "internalType": "bytes32",
180
- "name": "code",
181
- "type": "bytes32"
182
- },
183
- {
184
- "internalType": "uint256",
185
- "name": "minConversionRate",
186
- "type": "uint256"
187
- }
188
- ],
189
- "internalType": "struct IEscrow.Currency[]",
190
- "name": "currencies",
191
- "type": "tuple[]"
192
- }
193
- ],
194
- "internalType": "struct IProtocolViewer.PaymentMethodDataView[]",
195
- "name": "paymentMethods",
196
- "type": "tuple[]"
197
- },
198
- {
199
- "internalType": "bytes32[]",
200
- "name": "intentHashes",
201
- "type": "bytes32[]"
202
- }
203
- ],
204
- "internalType": "struct IProtocolViewer.DepositView[]",
205
- "name": "depositArray",
206
- "type": "tuple[]"
207
- }
208
- ],
209
- "stateMutability": "view",
210
- "type": "function"
211
- },
212
- {
213
- "inputs": [
30
+ },
214
31
  {
215
32
  "internalType": "address",
216
33
  "name": "_account",
@@ -273,6 +90,11 @@ const data = [
273
90
  "name": "conversionRate",
274
91
  "type": "uint256"
275
92
  },
93
+ {
94
+ "internalType": "bytes32",
95
+ "name": "payeeId",
96
+ "type": "bytes32"
97
+ },
276
98
  {
277
99
  "internalType": "address",
278
100
  "name": "referrer",
@@ -284,7 +106,7 @@ const data = [
284
106
  "type": "uint256"
285
107
  },
286
108
  {
287
- "internalType": "contract IPostIntentHook",
109
+ "internalType": "contract IPostIntentHookV2",
288
110
  "name": "postIntentHook",
289
111
  "type": "address"
290
112
  },
@@ -294,7 +116,7 @@ const data = [
294
116
  "type": "bytes"
295
117
  }
296
118
  ],
297
- "internalType": "struct IOrchestrator.Intent",
119
+ "internalType": "struct IOrchestratorV2.Intent",
298
120
  "name": "intent",
299
121
  "type": "tuple"
300
122
  },
@@ -322,11 +144,6 @@ const data = [
322
144
  "name": "token",
323
145
  "type": "address"
324
146
  },
325
- {
326
- "internalType": "uint256",
327
- "name": "amount",
328
- "type": "uint256"
329
- },
330
147
  {
331
148
  "components": [
332
149
  {
@@ -359,40 +176,15 @@ const data = [
359
176
  "name": "outstandingIntentAmount",
360
177
  "type": "uint256"
361
178
  },
362
- {
363
- "internalType": "uint256",
364
- "name": "makerProtocolFee",
365
- "type": "uint256"
366
- },
367
- {
368
- "internalType": "uint256",
369
- "name": "reservedMakerFees",
370
- "type": "uint256"
371
- },
372
- {
373
- "internalType": "uint256",
374
- "name": "accruedMakerFees",
375
- "type": "uint256"
376
- },
377
- {
378
- "internalType": "uint256",
379
- "name": "accruedReferrerFees",
380
- "type": "uint256"
381
- },
382
179
  {
383
180
  "internalType": "address",
384
181
  "name": "intentGuardian",
385
182
  "type": "address"
386
183
  },
387
184
  {
388
- "internalType": "address",
389
- "name": "referrer",
390
- "type": "address"
391
- },
392
- {
393
- "internalType": "uint256",
394
- "name": "referrerFee",
395
- "type": "uint256"
185
+ "internalType": "bool",
186
+ "name": "retainOnEmpty",
187
+ "type": "bool"
396
188
  }
397
189
  ],
398
190
  "internalType": "struct IEscrow.Deposit",
@@ -451,7 +243,7 @@ const data = [
451
243
  "type": "tuple[]"
452
244
  }
453
245
  ],
454
- "internalType": "struct IProtocolViewer.PaymentMethodDataView[]",
246
+ "internalType": "struct IProtocolViewerV2.PaymentMethodDataView[]",
455
247
  "name": "paymentMethods",
456
248
  "type": "tuple[]"
457
249
  },
@@ -461,12 +253,12 @@ const data = [
461
253
  "type": "bytes32[]"
462
254
  }
463
255
  ],
464
- "internalType": "struct IProtocolViewer.DepositView",
256
+ "internalType": "struct IProtocolViewerV2.DepositView",
465
257
  "name": "deposit",
466
258
  "type": "tuple"
467
259
  }
468
260
  ],
469
- "internalType": "struct IProtocolViewer.IntentView[]",
261
+ "internalType": "struct IProtocolViewerV2.IntentView[]",
470
262
  "name": "intentViews",
471
263
  "type": "tuple[]"
472
264
  }
@@ -476,6 +268,11 @@ const data = [
476
268
  },
477
269
  {
478
270
  "inputs": [
271
+ {
272
+ "internalType": "address",
273
+ "name": "_escrow",
274
+ "type": "address"
275
+ },
479
276
  {
480
277
  "internalType": "uint256",
481
278
  "name": "_depositId",
@@ -508,11 +305,6 @@ const data = [
508
305
  "name": "token",
509
306
  "type": "address"
510
307
  },
511
- {
512
- "internalType": "uint256",
513
- "name": "amount",
514
- "type": "uint256"
515
- },
516
308
  {
517
309
  "components": [
518
310
  {
@@ -545,40 +337,15 @@ const data = [
545
337
  "name": "outstandingIntentAmount",
546
338
  "type": "uint256"
547
339
  },
548
- {
549
- "internalType": "uint256",
550
- "name": "makerProtocolFee",
551
- "type": "uint256"
552
- },
553
- {
554
- "internalType": "uint256",
555
- "name": "reservedMakerFees",
556
- "type": "uint256"
557
- },
558
- {
559
- "internalType": "uint256",
560
- "name": "accruedMakerFees",
561
- "type": "uint256"
562
- },
563
- {
564
- "internalType": "uint256",
565
- "name": "accruedReferrerFees",
566
- "type": "uint256"
567
- },
568
340
  {
569
341
  "internalType": "address",
570
342
  "name": "intentGuardian",
571
343
  "type": "address"
572
344
  },
573
345
  {
574
- "internalType": "address",
575
- "name": "referrer",
576
- "type": "address"
577
- },
578
- {
579
- "internalType": "uint256",
580
- "name": "referrerFee",
581
- "type": "uint256"
346
+ "internalType": "bool",
347
+ "name": "retainOnEmpty",
348
+ "type": "bool"
582
349
  }
583
350
  ],
584
351
  "internalType": "struct IEscrow.Deposit",
@@ -637,7 +404,7 @@ const data = [
637
404
  "type": "tuple[]"
638
405
  }
639
406
  ],
640
- "internalType": "struct IProtocolViewer.PaymentMethodDataView[]",
407
+ "internalType": "struct IProtocolViewerV2.PaymentMethodDataView[]",
641
408
  "name": "paymentMethods",
642
409
  "type": "tuple[]"
643
410
  },
@@ -647,7 +414,7 @@ const data = [
647
414
  "type": "bytes32[]"
648
415
  }
649
416
  ],
650
- "internalType": "struct IProtocolViewer.DepositView",
417
+ "internalType": "struct IProtocolViewerV2.DepositView",
651
418
  "name": "depositView",
652
419
  "type": "tuple"
653
420
  }
@@ -657,6 +424,11 @@ const data = [
657
424
  },
658
425
  {
659
426
  "inputs": [
427
+ {
428
+ "internalType": "address",
429
+ "name": "_escrow",
430
+ "type": "address"
431
+ },
660
432
  {
661
433
  "internalType": "uint256[]",
662
434
  "name": "_depositIds",
@@ -689,11 +461,6 @@ const data = [
689
461
  "name": "token",
690
462
  "type": "address"
691
463
  },
692
- {
693
- "internalType": "uint256",
694
- "name": "amount",
695
- "type": "uint256"
696
- },
697
464
  {
698
465
  "components": [
699
466
  {
@@ -726,40 +493,15 @@ const data = [
726
493
  "name": "outstandingIntentAmount",
727
494
  "type": "uint256"
728
495
  },
729
- {
730
- "internalType": "uint256",
731
- "name": "makerProtocolFee",
732
- "type": "uint256"
733
- },
734
- {
735
- "internalType": "uint256",
736
- "name": "reservedMakerFees",
737
- "type": "uint256"
738
- },
739
- {
740
- "internalType": "uint256",
741
- "name": "accruedMakerFees",
742
- "type": "uint256"
743
- },
744
- {
745
- "internalType": "uint256",
746
- "name": "accruedReferrerFees",
747
- "type": "uint256"
748
- },
749
496
  {
750
497
  "internalType": "address",
751
498
  "name": "intentGuardian",
752
499
  "type": "address"
753
500
  },
754
501
  {
755
- "internalType": "address",
756
- "name": "referrer",
757
- "type": "address"
758
- },
759
- {
760
- "internalType": "uint256",
761
- "name": "referrerFee",
762
- "type": "uint256"
502
+ "internalType": "bool",
503
+ "name": "retainOnEmpty",
504
+ "type": "bool"
763
505
  }
764
506
  ],
765
507
  "internalType": "struct IEscrow.Deposit",
@@ -818,7 +560,7 @@ const data = [
818
560
  "type": "tuple[]"
819
561
  }
820
562
  ],
821
- "internalType": "struct IProtocolViewer.PaymentMethodDataView[]",
563
+ "internalType": "struct IProtocolViewerV2.PaymentMethodDataView[]",
822
564
  "name": "paymentMethods",
823
565
  "type": "tuple[]"
824
566
  },
@@ -828,7 +570,7 @@ const data = [
828
570
  "type": "bytes32[]"
829
571
  }
830
572
  ],
831
- "internalType": "struct IProtocolViewer.DepositView[]",
573
+ "internalType": "struct IProtocolViewerV2.DepositView[]",
832
574
  "name": "depositArray",
833
575
  "type": "tuple[]"
834
576
  }
@@ -838,6 +580,11 @@ const data = [
838
580
  },
839
581
  {
840
582
  "inputs": [
583
+ {
584
+ "internalType": "address",
585
+ "name": "_orchestrator",
586
+ "type": "address"
587
+ },
841
588
  {
842
589
  "internalType": "bytes32",
843
590
  "name": "_intentHash",
@@ -900,6 +647,11 @@ const data = [
900
647
  "name": "conversionRate",
901
648
  "type": "uint256"
902
649
  },
650
+ {
651
+ "internalType": "bytes32",
652
+ "name": "payeeId",
653
+ "type": "bytes32"
654
+ },
903
655
  {
904
656
  "internalType": "address",
905
657
  "name": "referrer",
@@ -911,7 +663,7 @@ const data = [
911
663
  "type": "uint256"
912
664
  },
913
665
  {
914
- "internalType": "contract IPostIntentHook",
666
+ "internalType": "contract IPostIntentHookV2",
915
667
  "name": "postIntentHook",
916
668
  "type": "address"
917
669
  },
@@ -921,7 +673,7 @@ const data = [
921
673
  "type": "bytes"
922
674
  }
923
675
  ],
924
- "internalType": "struct IOrchestrator.Intent",
676
+ "internalType": "struct IOrchestratorV2.Intent",
925
677
  "name": "intent",
926
678
  "type": "tuple"
927
679
  },
@@ -949,11 +701,6 @@ const data = [
949
701
  "name": "token",
950
702
  "type": "address"
951
703
  },
952
- {
953
- "internalType": "uint256",
954
- "name": "amount",
955
- "type": "uint256"
956
- },
957
704
  {
958
705
  "components": [
959
706
  {
@@ -986,40 +733,15 @@ const data = [
986
733
  "name": "outstandingIntentAmount",
987
734
  "type": "uint256"
988
735
  },
989
- {
990
- "internalType": "uint256",
991
- "name": "makerProtocolFee",
992
- "type": "uint256"
993
- },
994
- {
995
- "internalType": "uint256",
996
- "name": "reservedMakerFees",
997
- "type": "uint256"
998
- },
999
- {
1000
- "internalType": "uint256",
1001
- "name": "accruedMakerFees",
1002
- "type": "uint256"
1003
- },
1004
- {
1005
- "internalType": "uint256",
1006
- "name": "accruedReferrerFees",
1007
- "type": "uint256"
1008
- },
1009
736
  {
1010
737
  "internalType": "address",
1011
738
  "name": "intentGuardian",
1012
739
  "type": "address"
1013
740
  },
1014
741
  {
1015
- "internalType": "address",
1016
- "name": "referrer",
1017
- "type": "address"
1018
- },
1019
- {
1020
- "internalType": "uint256",
1021
- "name": "referrerFee",
1022
- "type": "uint256"
742
+ "internalType": "bool",
743
+ "name": "retainOnEmpty",
744
+ "type": "bool"
1023
745
  }
1024
746
  ],
1025
747
  "internalType": "struct IEscrow.Deposit",
@@ -1078,7 +800,7 @@ const data = [
1078
800
  "type": "tuple[]"
1079
801
  }
1080
802
  ],
1081
- "internalType": "struct IProtocolViewer.PaymentMethodDataView[]",
803
+ "internalType": "struct IProtocolViewerV2.PaymentMethodDataView[]",
1082
804
  "name": "paymentMethods",
1083
805
  "type": "tuple[]"
1084
806
  },
@@ -1088,12 +810,12 @@ const data = [
1088
810
  "type": "bytes32[]"
1089
811
  }
1090
812
  ],
1091
- "internalType": "struct IProtocolViewer.DepositView",
813
+ "internalType": "struct IProtocolViewerV2.DepositView",
1092
814
  "name": "deposit",
1093
815
  "type": "tuple"
1094
816
  }
1095
817
  ],
1096
- "internalType": "struct IProtocolViewer.IntentView",
818
+ "internalType": "struct IProtocolViewerV2.IntentView",
1097
819
  "name": "intentView",
1098
820
  "type": "tuple"
1099
821
  }
@@ -1103,6 +825,11 @@ const data = [
1103
825
  },
1104
826
  {
1105
827
  "inputs": [
828
+ {
829
+ "internalType": "address",
830
+ "name": "_orchestrator",
831
+ "type": "address"
832
+ },
1106
833
  {
1107
834
  "internalType": "bytes32[]",
1108
835
  "name": "_intentHashes",
@@ -1165,6 +892,11 @@ const data = [
1165
892
  "name": "conversionRate",
1166
893
  "type": "uint256"
1167
894
  },
895
+ {
896
+ "internalType": "bytes32",
897
+ "name": "payeeId",
898
+ "type": "bytes32"
899
+ },
1168
900
  {
1169
901
  "internalType": "address",
1170
902
  "name": "referrer",
@@ -1176,7 +908,7 @@ const data = [
1176
908
  "type": "uint256"
1177
909
  },
1178
910
  {
1179
- "internalType": "contract IPostIntentHook",
911
+ "internalType": "contract IPostIntentHookV2",
1180
912
  "name": "postIntentHook",
1181
913
  "type": "address"
1182
914
  },
@@ -1186,7 +918,7 @@ const data = [
1186
918
  "type": "bytes"
1187
919
  }
1188
920
  ],
1189
- "internalType": "struct IOrchestrator.Intent",
921
+ "internalType": "struct IOrchestratorV2.Intent",
1190
922
  "name": "intent",
1191
923
  "type": "tuple"
1192
924
  },
@@ -1214,11 +946,6 @@ const data = [
1214
946
  "name": "token",
1215
947
  "type": "address"
1216
948
  },
1217
- {
1218
- "internalType": "uint256",
1219
- "name": "amount",
1220
- "type": "uint256"
1221
- },
1222
949
  {
1223
950
  "components": [
1224
951
  {
@@ -1251,40 +978,15 @@ const data = [
1251
978
  "name": "outstandingIntentAmount",
1252
979
  "type": "uint256"
1253
980
  },
1254
- {
1255
- "internalType": "uint256",
1256
- "name": "makerProtocolFee",
1257
- "type": "uint256"
1258
- },
1259
- {
1260
- "internalType": "uint256",
1261
- "name": "reservedMakerFees",
1262
- "type": "uint256"
1263
- },
1264
- {
1265
- "internalType": "uint256",
1266
- "name": "accruedMakerFees",
1267
- "type": "uint256"
1268
- },
1269
- {
1270
- "internalType": "uint256",
1271
- "name": "accruedReferrerFees",
1272
- "type": "uint256"
1273
- },
1274
981
  {
1275
982
  "internalType": "address",
1276
983
  "name": "intentGuardian",
1277
984
  "type": "address"
1278
985
  },
1279
986
  {
1280
- "internalType": "address",
1281
- "name": "referrer",
1282
- "type": "address"
1283
- },
1284
- {
1285
- "internalType": "uint256",
1286
- "name": "referrerFee",
1287
- "type": "uint256"
987
+ "internalType": "bool",
988
+ "name": "retainOnEmpty",
989
+ "type": "bool"
1288
990
  }
1289
991
  ],
1290
992
  "internalType": "struct IEscrow.Deposit",
@@ -1343,7 +1045,7 @@ const data = [
1343
1045
  "type": "tuple[]"
1344
1046
  }
1345
1047
  ],
1346
- "internalType": "struct IProtocolViewer.PaymentMethodDataView[]",
1048
+ "internalType": "struct IProtocolViewerV2.PaymentMethodDataView[]",
1347
1049
  "name": "paymentMethods",
1348
1050
  "type": "tuple[]"
1349
1051
  },
@@ -1353,31 +1055,18 @@ const data = [
1353
1055
  "type": "bytes32[]"
1354
1056
  }
1355
1057
  ],
1356
- "internalType": "struct IProtocolViewer.DepositView",
1058
+ "internalType": "struct IProtocolViewerV2.DepositView",
1357
1059
  "name": "deposit",
1358
1060
  "type": "tuple"
1359
1061
  }
1360
1062
  ],
1361
- "internalType": "struct IProtocolViewer.IntentView[]",
1063
+ "internalType": "struct IProtocolViewerV2.IntentView[]",
1362
1064
  "name": "intentArray",
1363
1065
  "type": "tuple[]"
1364
1066
  }
1365
1067
  ],
1366
1068
  "stateMutability": "view",
1367
1069
  "type": "function"
1368
- },
1369
- {
1370
- "inputs": [],
1371
- "name": "orchestrator",
1372
- "outputs": [
1373
- {
1374
- "internalType": "contract IOrchestrator",
1375
- "name": "",
1376
- "type": "address"
1377
- }
1378
- ],
1379
- "stateMutability": "view",
1380
- "type": "function"
1381
1070
  }
1382
1071
  ];
1383
1072
  export default data;