@zkp2p/contracts-v2 0.0.11-rc.1 → 0.0.11

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 (236) hide show
  1. package/_cjs/abis/{baseStaging/ManualRateManagerRegistry.js → base/AcrossBridgeHook.js} +237 -266
  2. package/{abis/baseStaging/ManualRateManagerRegistry.json → _cjs/abis/base/AcrossBridgeHook.json} +237 -266
  3. package/_cjs/abis/base/index.js +1 -0
  4. package/_cjs/abis/base.cjs +1 -0
  5. package/_cjs/abis/base.mjs +1 -0
  6. package/_cjs/abis/baseStaging/AcrossBridgeHook.js +64 -120
  7. package/_cjs/abis/baseStaging/AcrossBridgeHook.json +64 -120
  8. package/_cjs/abis/baseStaging/Orchestrator.js +46 -277
  9. package/_cjs/abis/baseStaging/Orchestrator.json +46 -277
  10. package/_cjs/abis/baseStaging/PostIntentHookRegistry.js +183 -0
  11. package/_cjs/abis/baseStaging/PostIntentHookRegistry.json +181 -0
  12. package/_cjs/abis/baseStaging/ProtocolViewer.js +0 -116
  13. package/_cjs/abis/baseStaging/ProtocolViewer.json +0 -116
  14. package/_cjs/abis/baseStaging/UnifiedPaymentVerifier.js +0 -32
  15. package/_cjs/abis/baseStaging/UnifiedPaymentVerifier.json +0 -32
  16. package/_cjs/abis/baseStaging/index.js +1 -7
  17. package/_cjs/abis/baseStaging.cjs +2 -8
  18. package/_cjs/abis/baseStaging.mjs +1 -7
  19. package/_cjs/addresses/base.js +2 -1
  20. package/_cjs/addresses/base.json +2 -1
  21. package/_cjs/addresses/baseSepolia.js +1 -1
  22. package/_cjs/addresses/baseSepolia.json +1 -1
  23. package/_cjs/addresses/baseStaging.js +11 -17
  24. package/_cjs/addresses/baseStaging.json +11 -17
  25. package/_cjs/addresses/index.json +1 -1
  26. package/_cjs/constants/index.json +1 -1
  27. package/_cjs/paymentMethods/base.js +11 -1
  28. package/_cjs/paymentMethods/base.json +11 -1
  29. package/_cjs/paymentMethods/baseSepolia.js +1 -1
  30. package/_cjs/paymentMethods/baseSepolia.json +1 -1
  31. package/_cjs/paymentMethods/baseStaging.js +11 -1
  32. package/_cjs/paymentMethods/baseStaging.json +11 -1
  33. package/_cjs/paymentMethods/index.json +1 -1
  34. package/_cjs/types/contracts/Orchestrator.js +71 -373
  35. package/_cjs/types/contracts/ProtocolViewer.js +3 -227
  36. package/_cjs/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.js +198 -0
  37. package/_cjs/types/contracts/external/Interfaces/index.js +1 -0
  38. package/_cjs/types/contracts/hooks/AcrossBridgeHook.js +32 -94
  39. package/_cjs/types/contracts/hooks/AcrossSwapBridgeHook.js +581 -0
  40. package/_cjs/types/contracts/hooks/index.js +1 -4
  41. package/_cjs/types/contracts/index.js +0 -4
  42. package/_cjs/types/contracts/interfaces/IOrchestrator.js +23 -290
  43. package/_cjs/types/contracts/interfaces/IPostIntentHook.js +32 -36
  44. package/_cjs/types/contracts/interfaces/IProtocolViewer.js +1 -75
  45. package/_cjs/types/contracts/interfaces/index.js +1 -8
  46. package/_cjs/types/contracts/registries/index.js +1 -3
  47. package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +0 -58
  48. package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +0 -58
  49. package/_esm/abis/{baseStaging/ManualRateManagerRegistry.js → base/AcrossBridgeHook.js} +237 -266
  50. package/_esm/abis/{baseStaging/ManualRateManagerRegistry.json → base/AcrossBridgeHook.json} +237 -266
  51. package/_esm/abis/base/index.js +1 -0
  52. package/_esm/abis/base.cjs +1 -0
  53. package/_esm/abis/base.mjs +1 -0
  54. package/_esm/abis/baseStaging/AcrossBridgeHook.js +64 -120
  55. package/_esm/abis/baseStaging/AcrossBridgeHook.json +64 -120
  56. package/_esm/abis/baseStaging/Orchestrator.js +46 -277
  57. package/_esm/abis/baseStaging/Orchestrator.json +46 -277
  58. package/_esm/abis/baseStaging/PostIntentHookRegistry.js +182 -0
  59. package/_esm/abis/baseStaging/PostIntentHookRegistry.json +181 -0
  60. package/_esm/abis/baseStaging/ProtocolViewer.js +0 -116
  61. package/_esm/abis/baseStaging/ProtocolViewer.json +0 -116
  62. package/_esm/abis/baseStaging/UnifiedPaymentVerifier.js +0 -32
  63. package/_esm/abis/baseStaging/UnifiedPaymentVerifier.json +0 -32
  64. package/_esm/abis/baseStaging/index.js +1 -7
  65. package/_esm/abis/baseStaging.cjs +2 -8
  66. package/_esm/abis/baseStaging.mjs +1 -7
  67. package/_esm/addresses/base.js +2 -1
  68. package/_esm/addresses/base.json +2 -1
  69. package/_esm/addresses/baseSepolia.js +1 -1
  70. package/_esm/addresses/baseSepolia.json +1 -1
  71. package/_esm/addresses/baseStaging.js +11 -17
  72. package/_esm/addresses/baseStaging.json +11 -17
  73. package/_esm/addresses/index.json +1 -1
  74. package/_esm/constants/index.json +1 -1
  75. package/_esm/paymentMethods/base.js +11 -1
  76. package/_esm/paymentMethods/base.json +11 -1
  77. package/_esm/paymentMethods/baseSepolia.js +1 -1
  78. package/_esm/paymentMethods/baseSepolia.json +1 -1
  79. package/_esm/paymentMethods/baseStaging.js +11 -1
  80. package/_esm/paymentMethods/baseStaging.json +11 -1
  81. package/_esm/paymentMethods/index.json +1 -1
  82. package/_esm/types/contracts/Orchestrator.js +71 -373
  83. package/_esm/types/contracts/ProtocolViewer.js +3 -227
  84. package/_esm/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.js +198 -0
  85. package/_esm/types/contracts/external/Interfaces/index.js +1 -0
  86. package/_esm/types/contracts/hooks/AcrossBridgeHook.js +32 -94
  87. package/_esm/types/contracts/hooks/AcrossSwapBridgeHook.js +581 -0
  88. package/_esm/types/contracts/hooks/index.js +1 -4
  89. package/_esm/types/contracts/index.js +0 -4
  90. package/_esm/types/contracts/interfaces/IOrchestrator.js +23 -290
  91. package/_esm/types/contracts/interfaces/IPostIntentHook.js +32 -36
  92. package/_esm/types/contracts/interfaces/IProtocolViewer.js +1 -75
  93. package/_esm/types/contracts/interfaces/index.js +1 -8
  94. package/_esm/types/contracts/registries/index.js +1 -3
  95. package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +0 -58
  96. package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +0 -58
  97. package/_types/abis/base.d.ts +1 -0
  98. package/_types/abis/baseStaging.d.ts +1 -7
  99. package/{_cjs/abis/baseStaging/ManualRateManagerRegistry.json → abis/base/AcrossBridgeHook.json} +237 -266
  100. package/abis/base/index.ts +1 -0
  101. package/abis/base.cjs +1 -0
  102. package/abis/base.d.ts +1 -0
  103. package/abis/base.mjs +1 -0
  104. package/abis/baseStaging/AcrossBridgeHook.json +64 -120
  105. package/abis/baseStaging/Orchestrator.json +46 -277
  106. package/abis/baseStaging/PostIntentHookRegistry.json +181 -0
  107. package/abis/baseStaging/ProtocolViewer.json +0 -116
  108. package/abis/baseStaging/UnifiedPaymentVerifier.json +0 -32
  109. package/abis/baseStaging/index.ts +1 -7
  110. package/abis/baseStaging.cjs +2 -8
  111. package/abis/baseStaging.d.ts +1 -7
  112. package/abis/baseStaging.mjs +1 -7
  113. package/addresses/base.json +2 -1
  114. package/addresses/baseSepolia.json +1 -1
  115. package/addresses/baseStaging.json +11 -17
  116. package/addresses/index.json +1 -1
  117. package/constants/index.json +1 -1
  118. package/package.json +1 -1
  119. package/paymentMethods/base.json +11 -1
  120. package/paymentMethods/baseSepolia.json +1 -1
  121. package/paymentMethods/baseStaging.json +11 -1
  122. package/paymentMethods/index.json +1 -1
  123. package/types/contracts/Orchestrator.ts +71 -373
  124. package/types/contracts/ProtocolViewer.ts +3 -227
  125. package/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.ts +198 -0
  126. package/types/contracts/external/Interfaces/index.ts +1 -0
  127. package/types/contracts/hooks/AcrossBridgeHook.ts +32 -94
  128. package/types/contracts/hooks/AcrossSwapBridgeHook.ts +581 -0
  129. package/types/contracts/hooks/index.ts +1 -4
  130. package/types/contracts/index.ts +0 -4
  131. package/types/contracts/interfaces/IOrchestrator.ts +23 -290
  132. package/types/contracts/interfaces/IPostIntentHook.ts +32 -36
  133. package/types/contracts/interfaces/IProtocolViewer.ts +1 -75
  134. package/types/contracts/interfaces/index.ts +1 -8
  135. package/types/contracts/registries/index.ts +1 -3
  136. package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.ts +0 -58
  137. package/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.ts +0 -58
  138. package/_cjs/abis/baseStaging/ChainlinkOracleAdapter.js +0 -52
  139. package/_cjs/abis/baseStaging/ChainlinkOracleAdapter.json +0 -50
  140. package/_cjs/abis/baseStaging/DepositRateManagerController.js +0 -257
  141. package/_cjs/abis/baseStaging/DepositRateManagerController.json +0 -255
  142. package/_cjs/abis/baseStaging/DepositRateManagerHookV1.js +0 -149
  143. package/_cjs/abis/baseStaging/DepositRateManagerHookV1.json +0 -147
  144. package/_cjs/abis/baseStaging/DepositRateManagerRegistryV1.js +0 -486
  145. package/_cjs/abis/baseStaging/DepositRateManagerRegistryV1.json +0 -484
  146. package/_cjs/abis/baseStaging/OracleRateManagerRegistry.js +0 -569
  147. package/_cjs/abis/baseStaging/OracleRateManagerRegistry.json +0 -567
  148. package/_cjs/abis/baseStaging/WhitelistPreIntentHook.js +0 -315
  149. package/_cjs/abis/baseStaging/WhitelistPreIntentHook.json +0 -313
  150. package/_cjs/types/contracts/DepositRateManagerController.sol/DepositRateManagerController.js +0 -368
  151. package/_cjs/types/contracts/DepositRateManagerController.sol/IPausable.js +0 -81
  152. package/_cjs/types/contracts/DepositRateManagerController.sol/index.js +0 -5
  153. package/_cjs/types/contracts/hooks/DepositRateManagerHookV1.js +0 -256
  154. package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.sol/IOrchestratorChainIdReader.js +0 -81
  155. package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.sol/SignatureGatingPreIntentHook.js +0 -349
  156. package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.sol/index.js +0 -5
  157. package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +0 -422
  158. package/_cjs/types/contracts/interfaces/IBaseRateManagerRegistry.js +0 -534
  159. package/_cjs/types/contracts/interfaces/IChainlinkAggregatorV3.js +0 -132
  160. package/_cjs/types/contracts/interfaces/IDepositRateManagerController.js +0 -369
  161. package/_cjs/types/contracts/interfaces/IDepositRateManagerHook.js +0 -130
  162. package/_cjs/types/contracts/interfaces/IDepositRateManagerRegistryV1.js +0 -696
  163. package/_cjs/types/contracts/interfaces/IManualRateManagerRegistry.js +0 -695
  164. package/_cjs/types/contracts/interfaces/IOracleAdapter.js +0 -154
  165. package/_cjs/types/contracts/interfaces/IOracleRateManagerRegistry.js +0 -797
  166. package/_cjs/types/contracts/interfaces/IPreIntentHook.js +0 -148
  167. package/_cjs/types/contracts/oracles/ChainlinkOracleAdapter.js +0 -154
  168. package/_cjs/types/contracts/oracles/index.js +0 -4
  169. package/_cjs/types/contracts/registries/BaseRateManagerRegistry.js +0 -534
  170. package/_cjs/types/contracts/registries/DepositRateManagerRegistryV1.js +0 -695
  171. package/_cjs/types/contracts/registries/ManualRateManagerRegistry.js +0 -695
  172. package/_cjs/types/contracts/registries/OracleRateManagerRegistry.js +0 -797
  173. package/_esm/abis/baseStaging/ChainlinkOracleAdapter.js +0 -51
  174. package/_esm/abis/baseStaging/ChainlinkOracleAdapter.json +0 -50
  175. package/_esm/abis/baseStaging/DepositRateManagerController.js +0 -256
  176. package/_esm/abis/baseStaging/DepositRateManagerController.json +0 -255
  177. package/_esm/abis/baseStaging/DepositRateManagerHookV1.js +0 -148
  178. package/_esm/abis/baseStaging/DepositRateManagerHookV1.json +0 -147
  179. package/_esm/abis/baseStaging/DepositRateManagerRegistryV1.js +0 -485
  180. package/_esm/abis/baseStaging/DepositRateManagerRegistryV1.json +0 -484
  181. package/_esm/abis/baseStaging/OracleRateManagerRegistry.js +0 -568
  182. package/_esm/abis/baseStaging/OracleRateManagerRegistry.json +0 -567
  183. package/_esm/abis/baseStaging/WhitelistPreIntentHook.js +0 -314
  184. package/_esm/abis/baseStaging/WhitelistPreIntentHook.json +0 -313
  185. package/_esm/types/contracts/DepositRateManagerController.sol/DepositRateManagerController.js +0 -368
  186. package/_esm/types/contracts/DepositRateManagerController.sol/IPausable.js +0 -81
  187. package/_esm/types/contracts/DepositRateManagerController.sol/index.js +0 -5
  188. package/_esm/types/contracts/hooks/DepositRateManagerHookV1.js +0 -256
  189. package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.sol/IOrchestratorChainIdReader.js +0 -81
  190. package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.sol/SignatureGatingPreIntentHook.js +0 -349
  191. package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.sol/index.js +0 -5
  192. package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +0 -422
  193. package/_esm/types/contracts/interfaces/IBaseRateManagerRegistry.js +0 -534
  194. package/_esm/types/contracts/interfaces/IChainlinkAggregatorV3.js +0 -132
  195. package/_esm/types/contracts/interfaces/IDepositRateManagerController.js +0 -369
  196. package/_esm/types/contracts/interfaces/IDepositRateManagerHook.js +0 -130
  197. package/_esm/types/contracts/interfaces/IDepositRateManagerRegistryV1.js +0 -696
  198. package/_esm/types/contracts/interfaces/IManualRateManagerRegistry.js +0 -695
  199. package/_esm/types/contracts/interfaces/IOracleAdapter.js +0 -154
  200. package/_esm/types/contracts/interfaces/IOracleRateManagerRegistry.js +0 -797
  201. package/_esm/types/contracts/interfaces/IPreIntentHook.js +0 -148
  202. package/_esm/types/contracts/oracles/ChainlinkOracleAdapter.js +0 -154
  203. package/_esm/types/contracts/oracles/index.js +0 -4
  204. package/_esm/types/contracts/registries/BaseRateManagerRegistry.js +0 -534
  205. package/_esm/types/contracts/registries/DepositRateManagerRegistryV1.js +0 -695
  206. package/_esm/types/contracts/registries/ManualRateManagerRegistry.js +0 -695
  207. package/_esm/types/contracts/registries/OracleRateManagerRegistry.js +0 -797
  208. package/abis/baseStaging/ChainlinkOracleAdapter.json +0 -50
  209. package/abis/baseStaging/DepositRateManagerController.json +0 -255
  210. package/abis/baseStaging/DepositRateManagerHookV1.json +0 -147
  211. package/abis/baseStaging/DepositRateManagerRegistryV1.json +0 -484
  212. package/abis/baseStaging/OracleRateManagerRegistry.json +0 -567
  213. package/abis/baseStaging/WhitelistPreIntentHook.json +0 -313
  214. package/types/contracts/DepositRateManagerController.sol/DepositRateManagerController.ts +0 -368
  215. package/types/contracts/DepositRateManagerController.sol/IPausable.ts +0 -81
  216. package/types/contracts/DepositRateManagerController.sol/index.ts +0 -5
  217. package/types/contracts/hooks/DepositRateManagerHookV1.ts +0 -256
  218. package/types/contracts/hooks/SignatureGatingPreIntentHook.sol/IOrchestratorChainIdReader.ts +0 -81
  219. package/types/contracts/hooks/SignatureGatingPreIntentHook.sol/SignatureGatingPreIntentHook.ts +0 -349
  220. package/types/contracts/hooks/SignatureGatingPreIntentHook.sol/index.ts +0 -5
  221. package/types/contracts/hooks/WhitelistPreIntentHook.ts +0 -422
  222. package/types/contracts/interfaces/IBaseRateManagerRegistry.ts +0 -534
  223. package/types/contracts/interfaces/IChainlinkAggregatorV3.ts +0 -132
  224. package/types/contracts/interfaces/IDepositRateManagerController.ts +0 -369
  225. package/types/contracts/interfaces/IDepositRateManagerHook.ts +0 -130
  226. package/types/contracts/interfaces/IDepositRateManagerRegistryV1.ts +0 -696
  227. package/types/contracts/interfaces/IManualRateManagerRegistry.ts +0 -695
  228. package/types/contracts/interfaces/IOracleAdapter.ts +0 -154
  229. package/types/contracts/interfaces/IOracleRateManagerRegistry.ts +0 -797
  230. package/types/contracts/interfaces/IPreIntentHook.ts +0 -148
  231. package/types/contracts/oracles/ChainlinkOracleAdapter.ts +0 -154
  232. package/types/contracts/oracles/index.ts +0 -4
  233. package/types/contracts/registries/BaseRateManagerRegistry.ts +0 -534
  234. package/types/contracts/registries/DepositRateManagerRegistryV1.ts +0 -695
  235. package/types/contracts/registries/ManualRateManagerRegistry.ts +0 -695
  236. package/types/contracts/registries/OracleRateManagerRegistry.ts +0 -797
@@ -1,313 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "_orchestrator",
7
- "type": "address"
8
- }
9
- ],
10
- "stateMutability": "nonpayable",
11
- "type": "constructor"
12
- },
13
- {
14
- "inputs": [],
15
- "name": "EmptyArray",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [
20
- {
21
- "internalType": "address",
22
- "name": "taker",
23
- "type": "address"
24
- },
25
- {
26
- "internalType": "address",
27
- "name": "escrow",
28
- "type": "address"
29
- },
30
- {
31
- "internalType": "uint256",
32
- "name": "depositId",
33
- "type": "uint256"
34
- }
35
- ],
36
- "name": "TakerNotWhitelisted",
37
- "type": "error"
38
- },
39
- {
40
- "inputs": [
41
- {
42
- "internalType": "address",
43
- "name": "caller",
44
- "type": "address"
45
- },
46
- {
47
- "internalType": "address",
48
- "name": "owner",
49
- "type": "address"
50
- },
51
- {
52
- "internalType": "address",
53
- "name": "delegate",
54
- "type": "address"
55
- }
56
- ],
57
- "name": "UnauthorizedCallerOrDelegate",
58
- "type": "error"
59
- },
60
- {
61
- "inputs": [
62
- {
63
- "internalType": "address",
64
- "name": "caller",
65
- "type": "address"
66
- }
67
- ],
68
- "name": "UnauthorizedOrchestratorCaller",
69
- "type": "error"
70
- },
71
- {
72
- "inputs": [],
73
- "name": "ZeroAddress",
74
- "type": "error"
75
- },
76
- {
77
- "anonymous": false,
78
- "inputs": [
79
- {
80
- "indexed": true,
81
- "internalType": "address",
82
- "name": "escrow",
83
- "type": "address"
84
- },
85
- {
86
- "indexed": true,
87
- "internalType": "uint256",
88
- "name": "depositId",
89
- "type": "uint256"
90
- },
91
- {
92
- "indexed": true,
93
- "internalType": "address",
94
- "name": "taker",
95
- "type": "address"
96
- }
97
- ],
98
- "name": "TakerRemovedFromWhitelist",
99
- "type": "event"
100
- },
101
- {
102
- "anonymous": false,
103
- "inputs": [
104
- {
105
- "indexed": true,
106
- "internalType": "address",
107
- "name": "escrow",
108
- "type": "address"
109
- },
110
- {
111
- "indexed": true,
112
- "internalType": "uint256",
113
- "name": "depositId",
114
- "type": "uint256"
115
- },
116
- {
117
- "indexed": true,
118
- "internalType": "address",
119
- "name": "taker",
120
- "type": "address"
121
- }
122
- ],
123
- "name": "TakerWhitelisted",
124
- "type": "event"
125
- },
126
- {
127
- "inputs": [
128
- {
129
- "internalType": "address",
130
- "name": "_escrow",
131
- "type": "address"
132
- },
133
- {
134
- "internalType": "uint256",
135
- "name": "_depositId",
136
- "type": "uint256"
137
- },
138
- {
139
- "internalType": "address[]",
140
- "name": "_takers",
141
- "type": "address[]"
142
- }
143
- ],
144
- "name": "addToWhitelist",
145
- "outputs": [],
146
- "stateMutability": "nonpayable",
147
- "type": "function"
148
- },
149
- {
150
- "inputs": [
151
- {
152
- "internalType": "address",
153
- "name": "_escrow",
154
- "type": "address"
155
- },
156
- {
157
- "internalType": "uint256",
158
- "name": "_depositId",
159
- "type": "uint256"
160
- },
161
- {
162
- "internalType": "address",
163
- "name": "_taker",
164
- "type": "address"
165
- }
166
- ],
167
- "name": "isWhitelisted",
168
- "outputs": [
169
- {
170
- "internalType": "bool",
171
- "name": "",
172
- "type": "bool"
173
- }
174
- ],
175
- "stateMutability": "view",
176
- "type": "function"
177
- },
178
- {
179
- "inputs": [],
180
- "name": "orchestrator",
181
- "outputs": [
182
- {
183
- "internalType": "address",
184
- "name": "",
185
- "type": "address"
186
- }
187
- ],
188
- "stateMutability": "view",
189
- "type": "function"
190
- },
191
- {
192
- "inputs": [
193
- {
194
- "internalType": "address",
195
- "name": "_escrow",
196
- "type": "address"
197
- },
198
- {
199
- "internalType": "uint256",
200
- "name": "_depositId",
201
- "type": "uint256"
202
- },
203
- {
204
- "internalType": "address[]",
205
- "name": "_takers",
206
- "type": "address[]"
207
- }
208
- ],
209
- "name": "removeFromWhitelist",
210
- "outputs": [],
211
- "stateMutability": "nonpayable",
212
- "type": "function"
213
- },
214
- {
215
- "inputs": [
216
- {
217
- "components": [
218
- {
219
- "internalType": "address",
220
- "name": "taker",
221
- "type": "address"
222
- },
223
- {
224
- "internalType": "address",
225
- "name": "escrow",
226
- "type": "address"
227
- },
228
- {
229
- "internalType": "uint256",
230
- "name": "depositId",
231
- "type": "uint256"
232
- },
233
- {
234
- "internalType": "uint256",
235
- "name": "amount",
236
- "type": "uint256"
237
- },
238
- {
239
- "internalType": "address",
240
- "name": "to",
241
- "type": "address"
242
- },
243
- {
244
- "internalType": "bytes32",
245
- "name": "paymentMethod",
246
- "type": "bytes32"
247
- },
248
- {
249
- "internalType": "bytes32",
250
- "name": "fiatCurrency",
251
- "type": "bytes32"
252
- },
253
- {
254
- "internalType": "uint256",
255
- "name": "conversionRate",
256
- "type": "uint256"
257
- },
258
- {
259
- "internalType": "address",
260
- "name": "referrer",
261
- "type": "address"
262
- },
263
- {
264
- "internalType": "uint256",
265
- "name": "referrerFee",
266
- "type": "uint256"
267
- },
268
- {
269
- "internalType": "bytes",
270
- "name": "preIntentHookData",
271
- "type": "bytes"
272
- }
273
- ],
274
- "internalType": "struct IPreIntentHook.PreIntentContext",
275
- "name": "_ctx",
276
- "type": "tuple"
277
- }
278
- ],
279
- "name": "validateSignalIntent",
280
- "outputs": [],
281
- "stateMutability": "view",
282
- "type": "function"
283
- },
284
- {
285
- "inputs": [
286
- {
287
- "internalType": "address",
288
- "name": "",
289
- "type": "address"
290
- },
291
- {
292
- "internalType": "uint256",
293
- "name": "",
294
- "type": "uint256"
295
- },
296
- {
297
- "internalType": "address",
298
- "name": "",
299
- "type": "address"
300
- }
301
- ],
302
- "name": "whitelist",
303
- "outputs": [
304
- {
305
- "internalType": "bool",
306
- "name": "",
307
- "type": "bool"
308
- }
309
- ],
310
- "stateMutability": "view",
311
- "type": "function"
312
- }
313
- ]
@@ -1,368 +0,0 @@
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
- Overrides,
12
- PopulatedTransaction,
13
- Signer,
14
- utils,
15
- } from "ethers";
16
- import type {
17
- FunctionFragment,
18
- Result,
19
- EventFragment,
20
- } from "@ethersproject/abi";
21
- import type { Listener, Provider } from "@ethersproject/providers";
22
- import type {
23
- TypedEventFilter,
24
- TypedEvent,
25
- TypedListener,
26
- OnEvent,
27
- PromiseOrValue,
28
- } from "../../common";
29
-
30
- export interface DepositRateManagerControllerInterface extends utils.Interface {
31
- functions: {
32
- "clearDepositRateManager(address,uint256)": FunctionFragment;
33
- "getDepositRateManager(address,uint256)": FunctionFragment;
34
- "getEffectiveMinRate(address,uint256,bytes32,bytes32)": FunctionFragment;
35
- "getManagerFee(address,uint256)": FunctionFragment;
36
- "setDepositRateManager(address,uint256,address,bytes32)": FunctionFragment;
37
- };
38
-
39
- getFunction(
40
- nameOrSignatureOrTopic:
41
- | "clearDepositRateManager"
42
- | "getDepositRateManager"
43
- | "getEffectiveMinRate"
44
- | "getManagerFee"
45
- | "setDepositRateManager"
46
- ): FunctionFragment;
47
-
48
- encodeFunctionData(
49
- functionFragment: "clearDepositRateManager",
50
- values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
51
- ): string;
52
- encodeFunctionData(
53
- functionFragment: "getDepositRateManager",
54
- values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
55
- ): string;
56
- encodeFunctionData(
57
- functionFragment: "getEffectiveMinRate",
58
- values: [
59
- PromiseOrValue<string>,
60
- PromiseOrValue<BigNumberish>,
61
- PromiseOrValue<BytesLike>,
62
- PromiseOrValue<BytesLike>
63
- ]
64
- ): string;
65
- encodeFunctionData(
66
- functionFragment: "getManagerFee",
67
- values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
68
- ): string;
69
- encodeFunctionData(
70
- functionFragment: "setDepositRateManager",
71
- values: [
72
- PromiseOrValue<string>,
73
- PromiseOrValue<BigNumberish>,
74
- PromiseOrValue<string>,
75
- PromiseOrValue<BytesLike>
76
- ]
77
- ): string;
78
-
79
- decodeFunctionResult(
80
- functionFragment: "clearDepositRateManager",
81
- data: BytesLike
82
- ): Result;
83
- decodeFunctionResult(
84
- functionFragment: "getDepositRateManager",
85
- data: BytesLike
86
- ): Result;
87
- decodeFunctionResult(
88
- functionFragment: "getEffectiveMinRate",
89
- data: BytesLike
90
- ): Result;
91
- decodeFunctionResult(
92
- functionFragment: "getManagerFee",
93
- data: BytesLike
94
- ): Result;
95
- decodeFunctionResult(
96
- functionFragment: "setDepositRateManager",
97
- data: BytesLike
98
- ): Result;
99
-
100
- events: {
101
- "DepositRateManagerCleared(address,uint256,address,bytes32)": EventFragment;
102
- "DepositRateManagerSet(address,uint256,address,bytes32)": EventFragment;
103
- };
104
-
105
- getEvent(nameOrSignatureOrTopic: "DepositRateManagerCleared"): EventFragment;
106
- getEvent(nameOrSignatureOrTopic: "DepositRateManagerSet"): EventFragment;
107
- }
108
-
109
- export interface DepositRateManagerClearedEventObject {
110
- escrow: string;
111
- depositId: BigNumber;
112
- registry: string;
113
- prevRateManagerId: string;
114
- }
115
- export type DepositRateManagerClearedEvent = TypedEvent<
116
- [string, BigNumber, string, string],
117
- DepositRateManagerClearedEventObject
118
- >;
119
-
120
- export type DepositRateManagerClearedEventFilter =
121
- TypedEventFilter<DepositRateManagerClearedEvent>;
122
-
123
- export interface DepositRateManagerSetEventObject {
124
- escrow: string;
125
- depositId: BigNumber;
126
- registry: string;
127
- rateManagerId: string;
128
- }
129
- export type DepositRateManagerSetEvent = TypedEvent<
130
- [string, BigNumber, string, string],
131
- DepositRateManagerSetEventObject
132
- >;
133
-
134
- export type DepositRateManagerSetEventFilter =
135
- TypedEventFilter<DepositRateManagerSetEvent>;
136
-
137
- export interface DepositRateManagerController extends BaseContract {
138
- connect(signerOrProvider: Signer | Provider | string): this;
139
- attach(addressOrName: string): this;
140
- deployed(): Promise<this>;
141
-
142
- interface: DepositRateManagerControllerInterface;
143
-
144
- queryFilter<TEvent extends TypedEvent>(
145
- event: TypedEventFilter<TEvent>,
146
- fromBlockOrBlockhash?: string | number | undefined,
147
- toBlock?: string | number | undefined
148
- ): Promise<Array<TEvent>>;
149
-
150
- listeners<TEvent extends TypedEvent>(
151
- eventFilter?: TypedEventFilter<TEvent>
152
- ): Array<TypedListener<TEvent>>;
153
- listeners(eventName?: string): Array<Listener>;
154
- removeAllListeners<TEvent extends TypedEvent>(
155
- eventFilter: TypedEventFilter<TEvent>
156
- ): this;
157
- removeAllListeners(eventName?: string): this;
158
- off: OnEvent<this>;
159
- on: OnEvent<this>;
160
- once: OnEvent<this>;
161
- removeListener: OnEvent<this>;
162
-
163
- functions: {
164
- clearDepositRateManager(
165
- _escrow: PromiseOrValue<string>,
166
- _depositId: PromiseOrValue<BigNumberish>,
167
- overrides?: Overrides & { from?: PromiseOrValue<string> }
168
- ): Promise<ContractTransaction>;
169
-
170
- getDepositRateManager(
171
- _escrow: PromiseOrValue<string>,
172
- _depositId: PromiseOrValue<BigNumberish>,
173
- overrides?: CallOverrides
174
- ): Promise<[string, string] & { registry: string; rateManagerId: string }>;
175
-
176
- getEffectiveMinRate(
177
- _escrow: PromiseOrValue<string>,
178
- _depositId: PromiseOrValue<BigNumberish>,
179
- _paymentMethod: PromiseOrValue<BytesLike>,
180
- _currencyCode: PromiseOrValue<BytesLike>,
181
- overrides?: CallOverrides
182
- ): Promise<[BigNumber]>;
183
-
184
- getManagerFee(
185
- _escrow: PromiseOrValue<string>,
186
- _depositId: PromiseOrValue<BigNumberish>,
187
- overrides?: CallOverrides
188
- ): Promise<[string, BigNumber] & { recipient: string; fee: BigNumber }>;
189
-
190
- setDepositRateManager(
191
- _escrow: PromiseOrValue<string>,
192
- _depositId: PromiseOrValue<BigNumberish>,
193
- _registry: PromiseOrValue<string>,
194
- _rateManagerId: PromiseOrValue<BytesLike>,
195
- overrides?: Overrides & { from?: PromiseOrValue<string> }
196
- ): Promise<ContractTransaction>;
197
- };
198
-
199
- clearDepositRateManager(
200
- _escrow: PromiseOrValue<string>,
201
- _depositId: PromiseOrValue<BigNumberish>,
202
- overrides?: Overrides & { from?: PromiseOrValue<string> }
203
- ): Promise<ContractTransaction>;
204
-
205
- getDepositRateManager(
206
- _escrow: PromiseOrValue<string>,
207
- _depositId: PromiseOrValue<BigNumberish>,
208
- overrides?: CallOverrides
209
- ): Promise<[string, string] & { registry: string; rateManagerId: string }>;
210
-
211
- getEffectiveMinRate(
212
- _escrow: PromiseOrValue<string>,
213
- _depositId: PromiseOrValue<BigNumberish>,
214
- _paymentMethod: PromiseOrValue<BytesLike>,
215
- _currencyCode: PromiseOrValue<BytesLike>,
216
- overrides?: CallOverrides
217
- ): Promise<BigNumber>;
218
-
219
- getManagerFee(
220
- _escrow: PromiseOrValue<string>,
221
- _depositId: PromiseOrValue<BigNumberish>,
222
- overrides?: CallOverrides
223
- ): Promise<[string, BigNumber] & { recipient: string; fee: BigNumber }>;
224
-
225
- setDepositRateManager(
226
- _escrow: PromiseOrValue<string>,
227
- _depositId: PromiseOrValue<BigNumberish>,
228
- _registry: PromiseOrValue<string>,
229
- _rateManagerId: PromiseOrValue<BytesLike>,
230
- overrides?: Overrides & { from?: PromiseOrValue<string> }
231
- ): Promise<ContractTransaction>;
232
-
233
- callStatic: {
234
- clearDepositRateManager(
235
- _escrow: PromiseOrValue<string>,
236
- _depositId: PromiseOrValue<BigNumberish>,
237
- overrides?: CallOverrides
238
- ): Promise<void>;
239
-
240
- getDepositRateManager(
241
- _escrow: PromiseOrValue<string>,
242
- _depositId: PromiseOrValue<BigNumberish>,
243
- overrides?: CallOverrides
244
- ): Promise<[string, string] & { registry: string; rateManagerId: string }>;
245
-
246
- getEffectiveMinRate(
247
- _escrow: PromiseOrValue<string>,
248
- _depositId: PromiseOrValue<BigNumberish>,
249
- _paymentMethod: PromiseOrValue<BytesLike>,
250
- _currencyCode: PromiseOrValue<BytesLike>,
251
- overrides?: CallOverrides
252
- ): Promise<BigNumber>;
253
-
254
- getManagerFee(
255
- _escrow: PromiseOrValue<string>,
256
- _depositId: PromiseOrValue<BigNumberish>,
257
- overrides?: CallOverrides
258
- ): Promise<[string, BigNumber] & { recipient: string; fee: BigNumber }>;
259
-
260
- setDepositRateManager(
261
- _escrow: PromiseOrValue<string>,
262
- _depositId: PromiseOrValue<BigNumberish>,
263
- _registry: PromiseOrValue<string>,
264
- _rateManagerId: PromiseOrValue<BytesLike>,
265
- overrides?: CallOverrides
266
- ): Promise<void>;
267
- };
268
-
269
- filters: {
270
- "DepositRateManagerCleared(address,uint256,address,bytes32)"(
271
- escrow?: PromiseOrValue<string> | null,
272
- depositId?: PromiseOrValue<BigNumberish> | null,
273
- registry?: PromiseOrValue<string> | null,
274
- prevRateManagerId?: null
275
- ): DepositRateManagerClearedEventFilter;
276
- DepositRateManagerCleared(
277
- escrow?: PromiseOrValue<string> | null,
278
- depositId?: PromiseOrValue<BigNumberish> | null,
279
- registry?: PromiseOrValue<string> | null,
280
- prevRateManagerId?: null
281
- ): DepositRateManagerClearedEventFilter;
282
-
283
- "DepositRateManagerSet(address,uint256,address,bytes32)"(
284
- escrow?: PromiseOrValue<string> | null,
285
- depositId?: PromiseOrValue<BigNumberish> | null,
286
- registry?: PromiseOrValue<string> | null,
287
- rateManagerId?: null
288
- ): DepositRateManagerSetEventFilter;
289
- DepositRateManagerSet(
290
- escrow?: PromiseOrValue<string> | null,
291
- depositId?: PromiseOrValue<BigNumberish> | null,
292
- registry?: PromiseOrValue<string> | null,
293
- rateManagerId?: null
294
- ): DepositRateManagerSetEventFilter;
295
- };
296
-
297
- estimateGas: {
298
- clearDepositRateManager(
299
- _escrow: PromiseOrValue<string>,
300
- _depositId: PromiseOrValue<BigNumberish>,
301
- overrides?: Overrides & { from?: PromiseOrValue<string> }
302
- ): Promise<BigNumber>;
303
-
304
- getDepositRateManager(
305
- _escrow: PromiseOrValue<string>,
306
- _depositId: PromiseOrValue<BigNumberish>,
307
- overrides?: CallOverrides
308
- ): Promise<BigNumber>;
309
-
310
- getEffectiveMinRate(
311
- _escrow: PromiseOrValue<string>,
312
- _depositId: PromiseOrValue<BigNumberish>,
313
- _paymentMethod: PromiseOrValue<BytesLike>,
314
- _currencyCode: PromiseOrValue<BytesLike>,
315
- overrides?: CallOverrides
316
- ): Promise<BigNumber>;
317
-
318
- getManagerFee(
319
- _escrow: PromiseOrValue<string>,
320
- _depositId: PromiseOrValue<BigNumberish>,
321
- overrides?: CallOverrides
322
- ): Promise<BigNumber>;
323
-
324
- setDepositRateManager(
325
- _escrow: PromiseOrValue<string>,
326
- _depositId: PromiseOrValue<BigNumberish>,
327
- _registry: PromiseOrValue<string>,
328
- _rateManagerId: PromiseOrValue<BytesLike>,
329
- overrides?: Overrides & { from?: PromiseOrValue<string> }
330
- ): Promise<BigNumber>;
331
- };
332
-
333
- populateTransaction: {
334
- clearDepositRateManager(
335
- _escrow: PromiseOrValue<string>,
336
- _depositId: PromiseOrValue<BigNumberish>,
337
- overrides?: Overrides & { from?: PromiseOrValue<string> }
338
- ): Promise<PopulatedTransaction>;
339
-
340
- getDepositRateManager(
341
- _escrow: PromiseOrValue<string>,
342
- _depositId: PromiseOrValue<BigNumberish>,
343
- overrides?: CallOverrides
344
- ): Promise<PopulatedTransaction>;
345
-
346
- getEffectiveMinRate(
347
- _escrow: PromiseOrValue<string>,
348
- _depositId: PromiseOrValue<BigNumberish>,
349
- _paymentMethod: PromiseOrValue<BytesLike>,
350
- _currencyCode: PromiseOrValue<BytesLike>,
351
- overrides?: CallOverrides
352
- ): Promise<PopulatedTransaction>;
353
-
354
- getManagerFee(
355
- _escrow: PromiseOrValue<string>,
356
- _depositId: PromiseOrValue<BigNumberish>,
357
- overrides?: CallOverrides
358
- ): Promise<PopulatedTransaction>;
359
-
360
- setDepositRateManager(
361
- _escrow: PromiseOrValue<string>,
362
- _depositId: PromiseOrValue<BigNumberish>,
363
- _registry: PromiseOrValue<string>,
364
- _rateManagerId: PromiseOrValue<BytesLike>,
365
- overrides?: Overrides & { from?: PromiseOrValue<string> }
366
- ): Promise<PopulatedTransaction>;
367
- };
368
- }