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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/README.md +9 -3
  2. package/_cjs/abis/base/index.js +1 -5
  3. package/_cjs/abis/base.cjs +0 -2
  4. package/_cjs/abis/base.mjs +0 -2
  5. package/_cjs/abis/baseStaging/AddressGroupRegistry.js +559 -0
  6. package/_cjs/abis/baseStaging/AddressGroupRegistry.json +557 -0
  7. package/_cjs/abis/baseStaging/BoundedCall.js +5 -5
  8. package/_cjs/abis/baseStaging/BoundedCall.json +5 -5
  9. package/_cjs/abis/baseStaging/FeeSettlementLib.js +1 -1
  10. package/_cjs/abis/baseStaging/FeeSettlementLib.json +1 -1
  11. package/_cjs/abis/{base/AcrossBridgeHook.js → baseStaging/IntentGuardian.js} +177 -226
  12. package/_cjs/abis/baseStaging/{AcrossBridgeHook.json → IntentGuardian.json} +177 -226
  13. package/_cjs/abis/baseStaging/IntentLifecycleHookV1.js +193 -0
  14. package/_cjs/abis/baseStaging/IntentLifecycleHookV1.json +191 -0
  15. package/_cjs/abis/baseStaging/LifecycleSettlementExecutor.js +106 -0
  16. package/_cjs/abis/baseStaging/LifecycleSettlementExecutor.json +104 -0
  17. package/_cjs/abis/baseStaging/OrchestratorV3.js +246 -357
  18. package/_cjs/abis/baseStaging/OrchestratorV3.json +246 -357
  19. package/_cjs/abis/baseStaging/RiskManager.js +187 -288
  20. package/_cjs/abis/baseStaging/RiskManager.json +187 -288
  21. package/_cjs/abis/baseStaging/StakeVault.js +482 -1426
  22. package/_cjs/abis/baseStaging/StakeVault.json +482 -1426
  23. package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.js +482 -1426
  24. package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.json +482 -1426
  25. package/_cjs/abis/baseStaging/WhitelistPolicy.js +359 -0
  26. package/_cjs/abis/baseStaging/WhitelistPolicy.json +357 -0
  27. package/_cjs/abis/baseStaging/WhitelistPreIntentHookV2.js +558 -0
  28. package/{_esm/abis/base/AcrossBridgeHook.json → _cjs/abis/baseStaging/WhitelistPreIntentHookV2.json} +315 -214
  29. package/_cjs/abis/baseStaging/index.js +13 -5
  30. package/_cjs/abis/baseStaging.cjs +7 -3
  31. package/_cjs/abis/baseStaging.mjs +6 -2
  32. package/_cjs/abis/contracts/AddressGroupRegistry.js +559 -0
  33. package/_cjs/abis/contracts/AddressGroupRegistry.json +557 -0
  34. package/_cjs/abis/contracts/{IIntentRiskHook.js → IIntentLifecycleHook.js} +3 -3
  35. package/{abis/contracts/IIntentRiskHook.json → _cjs/abis/contracts/IIntentLifecycleHook.json} +3 -3
  36. package/_cjs/abis/{baseStaging/AcrossBridgeHook.js → contracts/IntentGuardian.js} +177 -226
  37. package/_cjs/abis/contracts/IntentGuardian.json +406 -0
  38. package/_cjs/abis/contracts/IntentLifecycleHookV1.js +193 -0
  39. package/_cjs/abis/contracts/IntentLifecycleHookV1.json +191 -0
  40. package/_cjs/abis/contracts/OrchestratorV3.js +246 -357
  41. package/_cjs/abis/contracts/OrchestratorV3.json +246 -357
  42. package/_cjs/abis/contracts/RiskManager.js +190 -291
  43. package/_cjs/abis/contracts/RiskManager.json +190 -291
  44. package/_cjs/abis/contracts/StakeVault.js +482 -1426
  45. package/_cjs/abis/contracts/StakeVault.json +482 -1426
  46. package/_cjs/abis/contracts/WhitelistPolicy.js +359 -0
  47. package/_cjs/abis/contracts/WhitelistPolicy.json +357 -0
  48. package/_cjs/abis/contracts/index.js +11 -3
  49. package/_cjs/abis/contracts.cjs +6 -2
  50. package/_cjs/abis/contracts.mjs +5 -1
  51. package/_cjs/addresses/base.js +8 -4
  52. package/_cjs/addresses/base.json +8 -4
  53. package/_cjs/addresses/baseStaging.js +15 -11
  54. package/_cjs/addresses/baseStaging.json +15 -11
  55. package/_cjs/addresses/index.json +1 -1
  56. package/_cjs/constants/index.json +1 -1
  57. package/_cjs/currencies/currencies.js +1 -1
  58. package/_cjs/currencies/currencies.json +1 -1
  59. package/_cjs/oracleFeeds/chainlink.js +1 -1
  60. package/_cjs/oracleFeeds/chainlink.json +1 -1
  61. package/_cjs/paymentMethods/base.js +1 -1
  62. package/_cjs/paymentMethods/base.json +1 -1
  63. package/_cjs/paymentMethods/baseStaging.js +1 -1
  64. package/_cjs/paymentMethods/baseStaging.json +1 -1
  65. package/_cjs/paymentMethods/index.json +1 -1
  66. package/_cjs/paymentMethods/lookups.js +1 -1
  67. package/_cjs/paymentMethods/lookups.json +1 -1
  68. package/_cjs/types/contracts/interfaces/IWhitelistResolver.js +2 -0
  69. package/_cjs/types/contracts/lib/LifecycleSettlementExecutor.js +2 -0
  70. package/_cjs/types/contracts/registries/AddressGroupRegistry.js +2 -0
  71. package/_cjs/types/contracts/risk/ChargebackManager.js +2 -0
  72. package/_cjs/types/contracts/risk/IntentExtensionManager.js +2 -0
  73. package/_cjs/types/contracts/risk/index.js +2 -0
  74. package/_cjs/utils/riskMath.js +29 -28
  75. package/_esm/abis/base/index.js +0 -2
  76. package/_esm/abis/base.cjs +0 -2
  77. package/_esm/abis/base.mjs +0 -2
  78. package/_esm/abis/baseStaging/AddressGroupRegistry.js +558 -0
  79. package/_esm/abis/baseStaging/AddressGroupRegistry.json +557 -0
  80. package/_esm/abis/baseStaging/BoundedCall.js +5 -5
  81. package/_esm/abis/baseStaging/BoundedCall.json +5 -5
  82. package/_esm/abis/baseStaging/FeeSettlementLib.js +1 -1
  83. package/_esm/abis/baseStaging/FeeSettlementLib.json +1 -1
  84. package/_esm/abis/{base/AcrossBridgeHook.js → baseStaging/IntentGuardian.js} +177 -226
  85. package/_esm/abis/baseStaging/IntentGuardian.json +406 -0
  86. package/_esm/abis/baseStaging/IntentLifecycleHookV1.js +192 -0
  87. package/_esm/abis/baseStaging/IntentLifecycleHookV1.json +191 -0
  88. package/_esm/abis/baseStaging/LifecycleSettlementExecutor.js +105 -0
  89. package/_esm/abis/baseStaging/LifecycleSettlementExecutor.json +104 -0
  90. package/_esm/abis/baseStaging/OrchestratorV3.js +246 -357
  91. package/_esm/abis/baseStaging/OrchestratorV3.json +246 -357
  92. package/_esm/abis/baseStaging/RiskManager.js +187 -288
  93. package/_esm/abis/baseStaging/RiskManager.json +187 -288
  94. package/_esm/abis/baseStaging/StakeVault.js +482 -1426
  95. package/_esm/abis/baseStaging/StakeVault.json +482 -1426
  96. package/_esm/abis/baseStaging/StakeVaultRiskSettlement.js +482 -1426
  97. package/_esm/abis/baseStaging/StakeVaultRiskSettlement.json +482 -1426
  98. package/_esm/abis/baseStaging/WhitelistPolicy.js +358 -0
  99. package/_esm/abis/baseStaging/WhitelistPolicy.json +357 -0
  100. package/_esm/abis/baseStaging/{AcrossBridgeHook.js → WhitelistPreIntentHookV2.js} +315 -214
  101. package/{_cjs/abis/base/AcrossBridgeHook.json → _esm/abis/baseStaging/WhitelistPreIntentHookV2.json} +315 -214
  102. package/_esm/abis/baseStaging/index.js +6 -2
  103. package/_esm/abis/baseStaging.cjs +7 -3
  104. package/_esm/abis/baseStaging.mjs +6 -2
  105. package/_esm/abis/contracts/AddressGroupRegistry.js +558 -0
  106. package/_esm/abis/contracts/AddressGroupRegistry.json +557 -0
  107. package/_esm/abis/contracts/{IIntentRiskHook.js → IIntentLifecycleHook.js} +3 -3
  108. package/{_cjs/abis/contracts/IIntentRiskHook.json → _esm/abis/contracts/IIntentLifecycleHook.json} +3 -3
  109. package/_esm/abis/contracts/IntentGuardian.js +407 -0
  110. package/_esm/abis/contracts/IntentGuardian.json +406 -0
  111. package/_esm/abis/contracts/IntentLifecycleHookV1.js +192 -0
  112. package/_esm/abis/contracts/IntentLifecycleHookV1.json +191 -0
  113. package/_esm/abis/contracts/OrchestratorV3.js +246 -357
  114. package/_esm/abis/contracts/OrchestratorV3.json +246 -357
  115. package/_esm/abis/contracts/RiskManager.js +190 -291
  116. package/_esm/abis/contracts/RiskManager.json +190 -291
  117. package/_esm/abis/contracts/StakeVault.js +482 -1426
  118. package/_esm/abis/contracts/StakeVault.json +482 -1426
  119. package/_esm/abis/contracts/WhitelistPolicy.js +358 -0
  120. package/_esm/abis/contracts/WhitelistPolicy.json +357 -0
  121. package/_esm/abis/contracts/index.js +5 -1
  122. package/_esm/abis/contracts.cjs +6 -2
  123. package/_esm/abis/contracts.mjs +5 -1
  124. package/_esm/addresses/base.js +8 -4
  125. package/_esm/addresses/base.json +8 -4
  126. package/_esm/addresses/baseStaging.js +15 -11
  127. package/_esm/addresses/baseStaging.json +15 -11
  128. package/_esm/addresses/index.json +1 -1
  129. package/_esm/constants/index.json +1 -1
  130. package/_esm/currencies/currencies.js +1 -1
  131. package/_esm/currencies/currencies.json +1 -1
  132. package/_esm/oracleFeeds/chainlink.js +1 -1
  133. package/_esm/oracleFeeds/chainlink.json +1 -1
  134. package/_esm/paymentMethods/base.js +1 -1
  135. package/_esm/paymentMethods/base.json +1 -1
  136. package/_esm/paymentMethods/baseStaging.js +1 -1
  137. package/_esm/paymentMethods/baseStaging.json +1 -1
  138. package/_esm/paymentMethods/index.json +1 -1
  139. package/_esm/paymentMethods/lookups.js +1 -1
  140. package/_esm/paymentMethods/lookups.json +1 -1
  141. package/_esm/types/contracts/interfaces/IWhitelistResolver.js +1 -0
  142. package/_esm/types/contracts/lib/LifecycleSettlementExecutor.js +1 -0
  143. package/_esm/types/contracts/registries/AddressGroupRegistry.js +1 -0
  144. package/_esm/types/contracts/risk/ChargebackManager.js +1 -0
  145. package/_esm/types/contracts/risk/IntentExtensionManager.js +1 -0
  146. package/_esm/types/contracts/risk/index.js +1 -0
  147. package/_esm/utils/riskMath.js +25 -25
  148. package/_types/abis/base/index.d.ts +0 -2
  149. package/_types/abis/base.d.ts +0 -2
  150. package/_types/abis/baseStaging/index.d.ts +6 -2
  151. package/_types/abis/baseStaging.d.ts +6 -2
  152. package/_types/abis/contracts/index.d.ts +5 -1
  153. package/_types/abis/contracts.d.ts +5 -1
  154. package/_types/types/contracts/IntentGuardian.d.ts +262 -0
  155. package/_types/types/contracts/OrchestratorV3.d.ts +128 -181
  156. package/_types/types/contracts/RiskManager.d.ts +230 -243
  157. package/_types/types/contracts/StakeVault.d.ts +366 -885
  158. package/_types/types/contracts/hooks/IntentLifecycleHookV1.d.ts +112 -0
  159. package/_types/types/contracts/hooks/WhitelistPolicy.d.ts +237 -0
  160. package/_types/types/contracts/hooks/index.d.ts +2 -2
  161. package/_types/types/contracts/index.d.ts +3 -2
  162. package/_types/types/contracts/interfaces/IAddressGroupRegistry.d.ts +262 -0
  163. package/_types/types/contracts/interfaces/IIntentGuardian.d.ts +132 -0
  164. package/_types/types/contracts/interfaces/{IIntentRiskHook.d.ts → IIntentLifecycleHook.d.ts} +15 -15
  165. package/_types/types/contracts/interfaces/IOrchestratorV3.d.ts +113 -166
  166. package/_types/types/contracts/interfaces/IRiskManager.d.ts +180 -214
  167. package/_types/types/contracts/interfaces/IStakeVault.d.ts +359 -851
  168. package/_types/types/contracts/interfaces/IWhitelistPolicy.d.ts +162 -0
  169. package/_types/types/contracts/interfaces/IWhitelistResolver.d.ts +42 -0
  170. package/_types/types/contracts/interfaces/index.d.ts +5 -1
  171. package/_types/types/contracts/lib/BoundedCall.d.ts +9 -9
  172. package/_types/types/contracts/lib/{RiskSettlementExecutor.d.ts → LifecycleSettlementExecutor.d.ts} +12 -12
  173. package/_types/types/contracts/lib/index.d.ts +1 -1
  174. package/_types/types/contracts/registries/AddressGroupRegistry.d.ts +392 -0
  175. package/_types/types/contracts/registries/index.d.ts +1 -0
  176. package/_types/types/contracts/risk/ChargebackManager.d.ts +880 -0
  177. package/_types/types/contracts/risk/IntentExtensionManager.d.ts +831 -0
  178. package/_types/types/contracts/risk/index.d.ts +2 -0
  179. package/_types/utils/riskMath.d.ts +11 -17
  180. package/abis/base/index.d.ts +0 -2
  181. package/abis/base/index.ts +0 -2
  182. package/abis/base.cjs +0 -2
  183. package/abis/base.d.ts +0 -2
  184. package/abis/base.mjs +0 -2
  185. package/abis/baseStaging/AddressGroupRegistry.json +557 -0
  186. package/abis/baseStaging/BoundedCall.json +5 -5
  187. package/abis/baseStaging/FeeSettlementLib.json +1 -1
  188. package/abis/baseStaging/IntentGuardian.json +406 -0
  189. package/abis/baseStaging/IntentLifecycleHookV1.json +191 -0
  190. package/abis/baseStaging/LifecycleSettlementExecutor.json +104 -0
  191. package/abis/baseStaging/OrchestratorV3.json +246 -357
  192. package/abis/baseStaging/RiskManager.json +187 -288
  193. package/abis/baseStaging/StakeVault.json +482 -1426
  194. package/abis/baseStaging/StakeVaultRiskSettlement.json +482 -1426
  195. package/abis/baseStaging/WhitelistPolicy.json +357 -0
  196. package/{_esm/abis/baseStaging/AcrossBridgeHook.json → abis/baseStaging/WhitelistPreIntentHookV2.json} +315 -214
  197. package/abis/baseStaging/index.d.ts +6 -2
  198. package/abis/baseStaging/index.ts +6 -2
  199. package/abis/baseStaging.cjs +7 -3
  200. package/abis/baseStaging.d.ts +6 -2
  201. package/abis/baseStaging.mjs +6 -2
  202. package/abis/contracts/AddressGroupRegistry.json +557 -0
  203. package/{_esm/abis/contracts/IIntentRiskHook.json → abis/contracts/IIntentLifecycleHook.json} +3 -3
  204. package/abis/contracts/IntentGuardian.json +406 -0
  205. package/abis/contracts/IntentLifecycleHookV1.json +191 -0
  206. package/abis/contracts/OrchestratorV3.json +246 -357
  207. package/abis/contracts/RiskManager.json +190 -291
  208. package/abis/contracts/StakeVault.json +482 -1426
  209. package/abis/contracts/WhitelistPolicy.json +357 -0
  210. package/abis/contracts/index.d.ts +5 -1
  211. package/abis/contracts/index.ts +5 -1
  212. package/abis/contracts.cjs +6 -2
  213. package/abis/contracts.d.ts +5 -1
  214. package/abis/contracts.mjs +5 -1
  215. package/addresses/base.json +8 -4
  216. package/addresses/baseStaging.json +15 -11
  217. package/addresses/index.json +1 -1
  218. package/constants/index.json +1 -1
  219. package/currencies/currencies.json +1 -1
  220. package/oracleFeeds/chainlink.json +1 -1
  221. package/package.json +1 -1
  222. package/paymentMethods/base.json +1 -1
  223. package/paymentMethods/baseStaging.json +1 -1
  224. package/paymentMethods/index.json +1 -1
  225. package/paymentMethods/lookups.json +1 -1
  226. package/types/contracts/IntentGuardian.d.ts +262 -0
  227. package/types/contracts/IntentGuardian.ts +600 -0
  228. package/types/contracts/OrchestratorV3.d.ts +128 -181
  229. package/types/contracts/OrchestratorV3.ts +237 -397
  230. package/types/contracts/RiskManager.d.ts +230 -243
  231. package/types/contracts/RiskManager.ts +351 -340
  232. package/types/contracts/StakeVault.d.ts +366 -885
  233. package/types/contracts/StakeVault.ts +683 -1837
  234. package/types/contracts/hooks/IntentLifecycleHookV1.d.ts +112 -0
  235. package/types/contracts/hooks/IntentLifecycleHookV1.ts +261 -0
  236. package/types/contracts/hooks/WhitelistPolicy.d.ts +237 -0
  237. package/types/contracts/hooks/WhitelistPolicy.ts +596 -0
  238. package/types/contracts/hooks/index.d.ts +2 -2
  239. package/types/contracts/hooks/index.ts +2 -2
  240. package/types/contracts/index.d.ts +3 -2
  241. package/types/contracts/index.ts +3 -2
  242. package/types/contracts/interfaces/IAddressGroupRegistry.d.ts +262 -0
  243. package/types/contracts/interfaces/IAddressGroupRegistry.ts +584 -0
  244. package/types/contracts/interfaces/IIntentGuardian.d.ts +132 -0
  245. package/types/contracts/interfaces/IIntentGuardian.ts +317 -0
  246. package/types/contracts/interfaces/{IIntentRiskHook.d.ts → IIntentLifecycleHook.d.ts} +15 -15
  247. package/types/contracts/interfaces/{IIntentRiskHook.ts → IIntentLifecycleHook.ts} +15 -15
  248. package/types/contracts/interfaces/IOrchestratorV3.d.ts +113 -166
  249. package/types/contracts/interfaces/IOrchestratorV3.ts +197 -355
  250. package/types/contracts/interfaces/IRiskManager.d.ts +180 -214
  251. package/types/contracts/interfaces/IRiskManager.ts +288 -287
  252. package/types/contracts/interfaces/IStakeVault.d.ts +359 -851
  253. package/types/contracts/interfaces/IStakeVault.ts +666 -1735
  254. package/types/contracts/interfaces/IWhitelistPolicy.d.ts +162 -0
  255. package/types/contracts/interfaces/IWhitelistPolicy.ts +452 -0
  256. package/types/contracts/interfaces/IWhitelistResolver.d.ts +42 -0
  257. package/types/contracts/interfaces/IWhitelistResolver.ts +105 -0
  258. package/types/contracts/interfaces/index.d.ts +5 -1
  259. package/types/contracts/interfaces/index.ts +5 -1
  260. package/types/contracts/lib/BoundedCall.d.ts +9 -9
  261. package/types/contracts/lib/BoundedCall.ts +16 -14
  262. package/types/contracts/lib/{RiskSettlementExecutor.d.ts → LifecycleSettlementExecutor.d.ts} +12 -12
  263. package/types/contracts/lib/{RiskSettlementExecutor.ts → LifecycleSettlementExecutor.ts} +17 -19
  264. package/types/contracts/lib/index.d.ts +1 -1
  265. package/types/contracts/lib/index.ts +1 -1
  266. package/types/contracts/registries/AddressGroupRegistry.d.ts +392 -0
  267. package/types/contracts/registries/AddressGroupRegistry.ts +845 -0
  268. package/types/contracts/registries/index.d.ts +1 -0
  269. package/types/contracts/registries/index.ts +1 -0
  270. package/types/contracts/risk/ChargebackManager.d.ts +880 -0
  271. package/types/contracts/risk/ChargebackManager.ts +1719 -0
  272. package/types/contracts/risk/IntentExtensionManager.d.ts +831 -0
  273. package/types/contracts/risk/IntentExtensionManager.ts +1687 -0
  274. package/types/contracts/risk/index.d.ts +2 -0
  275. package/types/contracts/risk/index.ts +5 -0
  276. package/utils/riskMath.d.ts +11 -17
  277. package/utils/riskMath.ts +40 -37
  278. package/_cjs/abis/base/AcrossBridgeHookV2.js +0 -470
  279. package/_cjs/abis/base/AcrossBridgeHookV2.json +0 -468
  280. package/_cjs/abis/baseStaging/AcrossBridgeHookV2.js +0 -470
  281. package/_cjs/abis/baseStaging/AcrossBridgeHookV2.json +0 -468
  282. package/_esm/abis/base/AcrossBridgeHookV2.js +0 -469
  283. package/_esm/abis/base/AcrossBridgeHookV2.json +0 -468
  284. package/_esm/abis/baseStaging/AcrossBridgeHookV2.js +0 -469
  285. package/_esm/abis/baseStaging/AcrossBridgeHookV2.json +0 -468
  286. package/_types/types/contracts/external/Interfaces/IAcrossSpokePool.d.ts +0 -62
  287. package/_types/types/contracts/external/Interfaces/index.d.ts +0 -1
  288. package/_types/types/contracts/external/index.d.ts +0 -2
  289. package/_types/types/contracts/hooks/AcrossBridgeHook.d.ts +0 -290
  290. package/_types/types/contracts/hooks/AcrossBridgeHookV2.d.ts +0 -297
  291. package/abis/base/AcrossBridgeHook.json +0 -455
  292. package/abis/base/AcrossBridgeHookV2.json +0 -468
  293. package/abis/baseStaging/AcrossBridgeHook.json +0 -455
  294. package/abis/baseStaging/AcrossBridgeHookV2.json +0 -468
  295. package/types/contracts/external/Interfaces/IAcrossSpokePool.d.ts +0 -62
  296. package/types/contracts/external/Interfaces/IAcrossSpokePool.ts +0 -165
  297. package/types/contracts/external/Interfaces/index.d.ts +0 -1
  298. package/types/contracts/external/Interfaces/index.ts +0 -4
  299. package/types/contracts/external/index.d.ts +0 -2
  300. package/types/contracts/external/index.ts +0 -5
  301. package/types/contracts/hooks/AcrossBridgeHook.d.ts +0 -290
  302. package/types/contracts/hooks/AcrossBridgeHook.ts +0 -547
  303. package/types/contracts/hooks/AcrossBridgeHookV2.d.ts +0 -297
  304. package/types/contracts/hooks/AcrossBridgeHookV2.ts +0 -553
  305. /package/_cjs/types/contracts/{external/Interfaces/IAcrossSpokePool.js → IntentGuardian.js} +0 -0
  306. /package/_cjs/types/contracts/{external/Interfaces/index.js → hooks/IntentLifecycleHookV1.js} +0 -0
  307. /package/_cjs/types/contracts/{external/index.js → hooks/WhitelistPolicy.js} +0 -0
  308. /package/_cjs/types/contracts/{hooks/AcrossBridgeHook.js → interfaces/IAddressGroupRegistry.js} +0 -0
  309. /package/_cjs/types/contracts/{hooks/AcrossBridgeHookV2.js → interfaces/IIntentGuardian.js} +0 -0
  310. /package/_cjs/types/contracts/interfaces/{IIntentRiskHook.js → IIntentLifecycleHook.js} +0 -0
  311. /package/_cjs/types/contracts/{lib/RiskSettlementExecutor.js → interfaces/IWhitelistPolicy.js} +0 -0
  312. /package/_esm/types/contracts/{external/Interfaces/IAcrossSpokePool.js → IntentGuardian.js} +0 -0
  313. /package/_esm/types/contracts/{external/Interfaces/index.js → hooks/IntentLifecycleHookV1.js} +0 -0
  314. /package/_esm/types/contracts/{external/index.js → hooks/WhitelistPolicy.js} +0 -0
  315. /package/_esm/types/contracts/{hooks/AcrossBridgeHook.js → interfaces/IAddressGroupRegistry.js} +0 -0
  316. /package/_esm/types/contracts/{hooks/AcrossBridgeHookV2.js → interfaces/IIntentGuardian.js} +0 -0
  317. /package/_esm/types/contracts/interfaces/{IIntentRiskHook.js → IIntentLifecycleHook.js} +0 -0
  318. /package/_esm/types/contracts/{lib/RiskSettlementExecutor.js → interfaces/IWhitelistPolicy.js} +0 -0
package/README.md CHANGED
@@ -33,9 +33,15 @@ import type { Escrow, Orchestrator } from "@zkp2p/contracts-v2/types"
33
33
  // Import utility functions
34
34
  import { getKeccak256Hash, calculateIntentHash } from "@zkp2p/contracts-v2/utils/protocolUtils"
35
35
 
36
- // Import stable source ABIs for the hard-cut risk-settlement boundary and exact bigint math helpers
37
- import { IIntentRiskHook, OrchestratorV3, RiskManager } from "@zkp2p/contracts-v2/abis/contracts"
38
- import { calculateRequiredReservation } from "@zkp2p/contracts-v2/utils/riskMath"
36
+ // Import stable source ABIs for the V3 lifecycle boundary and maker whitelist policy
37
+ import {
38
+ AddressGroupRegistry,
39
+ IIntentLifecycleHook,
40
+ WhitelistPolicy,
41
+ IntentLifecycleHookV1,
42
+ OrchestratorV3,
43
+ } from "@zkp2p/contracts-v2/abis/contracts"
44
+ import { calculateRequiredCoverage, selectRiskMode } from "@zkp2p/contracts-v2/utils/riskMath"
39
45
 
40
46
  // Example: Create contract instance with ethers
41
47
  import { ethers } from 'ethers';
@@ -3,11 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WhitelistPreIntentHook = exports.UnifiedPaymentVerifierV2 = exports.UnifiedPaymentVerifier = exports.SimpleAttestationVerifier = exports.SignatureGatingPreIntentHook = exports.RelayerRegistry = exports.RateManagerV1 = exports.PythOracleAdapter = exports.ProtocolViewerV2 = exports.ProtocolViewer = exports.PostIntentHookRegistry = exports.PaymentVerifierRegistry = exports.OrchestratorV2 = exports.OrchestratorRegistry = exports.Orchestrator = exports.NullifierRegistry = exports.MultiAttestationVerifier = exports.EscrowV2 = exports.EscrowRegistry = exports.Escrow = exports.ChainlinkOracleAdapter = exports.AcrossBridgeHookV2 = exports.AcrossBridgeHook = void 0;
7
- var AcrossBridgeHook_json_1 = require("./AcrossBridgeHook.json");
8
- Object.defineProperty(exports, "AcrossBridgeHook", { enumerable: true, get: function () { return __importDefault(AcrossBridgeHook_json_1).default; } });
9
- var AcrossBridgeHookV2_json_1 = require("./AcrossBridgeHookV2.json");
10
- Object.defineProperty(exports, "AcrossBridgeHookV2", { enumerable: true, get: function () { return __importDefault(AcrossBridgeHookV2_json_1).default; } });
6
+ exports.WhitelistPreIntentHook = exports.UnifiedPaymentVerifierV2 = exports.UnifiedPaymentVerifier = exports.SimpleAttestationVerifier = exports.SignatureGatingPreIntentHook = exports.RelayerRegistry = exports.RateManagerV1 = exports.PythOracleAdapter = exports.ProtocolViewerV2 = exports.ProtocolViewer = exports.PostIntentHookRegistry = exports.PaymentVerifierRegistry = exports.OrchestratorV2 = exports.OrchestratorRegistry = exports.Orchestrator = exports.NullifierRegistry = exports.MultiAttestationVerifier = exports.EscrowV2 = exports.EscrowRegistry = exports.Escrow = exports.ChainlinkOracleAdapter = void 0;
11
7
  var ChainlinkOracleAdapter_json_1 = require("./ChainlinkOracleAdapter.json");
12
8
  Object.defineProperty(exports, "ChainlinkOracleAdapter", { enumerable: true, get: function () { return __importDefault(ChainlinkOracleAdapter_json_1).default; } });
13
9
  var Escrow_json_1 = require("./Escrow.json");
@@ -1,7 +1,5 @@
1
1
  // Auto-generated CommonJS wrapper for base ABIs
2
2
  module.exports = {
3
- AcrossBridgeHook: require('../_cjs/abis/base/AcrossBridgeHook.js'),
4
- AcrossBridgeHookV2: require('../_cjs/abis/base/AcrossBridgeHookV2.js'),
5
3
  ChainlinkOracleAdapter: require('../_cjs/abis/base/ChainlinkOracleAdapter.js'),
6
4
  Escrow: require('../_cjs/abis/base/Escrow.js'),
7
5
  EscrowRegistry: require('../_cjs/abis/base/EscrowRegistry.js'),
@@ -1,6 +1,4 @@
1
1
  // Auto-generated ESM wrapper for base ABIs
2
- export { default as AcrossBridgeHook } from '../_esm/abis/base/AcrossBridgeHook.js';
3
- export { default as AcrossBridgeHookV2 } from '../_esm/abis/base/AcrossBridgeHookV2.js';
4
2
  export { default as ChainlinkOracleAdapter } from '../_esm/abis/base/ChainlinkOracleAdapter.js';
5
3
  export { default as Escrow } from '../_esm/abis/base/Escrow.js';
6
4
  export { default as EscrowRegistry } from '../_esm/abis/base/EscrowRegistry.js';
@@ -0,0 +1,559 @@
1
+ const data = [
2
+ {
3
+ "inputs": [],
4
+ "name": "EmptyArray",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "inputs": [
9
+ {
10
+ "internalType": "bytes32",
11
+ "name": "groupId",
12
+ "type": "bytes32"
13
+ }
14
+ ],
15
+ "name": "GroupDoesNotExist",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [
20
+ {
21
+ "internalType": "bytes32",
22
+ "name": "groupId",
23
+ "type": "bytes32"
24
+ }
25
+ ],
26
+ "name": "GroupNotPublic",
27
+ "type": "error"
28
+ },
29
+ {
30
+ "inputs": [
31
+ {
32
+ "internalType": "bytes32",
33
+ "name": "groupId",
34
+ "type": "bytes32"
35
+ }
36
+ ],
37
+ "name": "NoPendingTransfer",
38
+ "type": "error"
39
+ },
40
+ {
41
+ "inputs": [
42
+ {
43
+ "internalType": "address",
44
+ "name": "resolver",
45
+ "type": "address"
46
+ }
47
+ ],
48
+ "name": "ResolverNotContract",
49
+ "type": "error"
50
+ },
51
+ {
52
+ "inputs": [
53
+ {
54
+ "internalType": "address",
55
+ "name": "caller",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "internalType": "address",
60
+ "name": "curator",
61
+ "type": "address"
62
+ }
63
+ ],
64
+ "name": "UnauthorizedGroupCurator",
65
+ "type": "error"
66
+ },
67
+ {
68
+ "inputs": [
69
+ {
70
+ "internalType": "address",
71
+ "name": "caller",
72
+ "type": "address"
73
+ },
74
+ {
75
+ "internalType": "address",
76
+ "name": "pendingCurator",
77
+ "type": "address"
78
+ }
79
+ ],
80
+ "name": "UnauthorizedPendingCurator",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "ZeroAddress",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "anonymous": false,
90
+ "inputs": [
91
+ {
92
+ "indexed": true,
93
+ "internalType": "bytes32",
94
+ "name": "groupId",
95
+ "type": "bytes32"
96
+ },
97
+ {
98
+ "indexed": true,
99
+ "internalType": "address",
100
+ "name": "curator",
101
+ "type": "address"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "string",
106
+ "name": "name",
107
+ "type": "string"
108
+ }
109
+ ],
110
+ "name": "GroupCreated",
111
+ "type": "event"
112
+ },
113
+ {
114
+ "anonymous": false,
115
+ "inputs": [
116
+ {
117
+ "indexed": true,
118
+ "internalType": "bytes32",
119
+ "name": "groupId",
120
+ "type": "bytes32"
121
+ },
122
+ {
123
+ "indexed": true,
124
+ "internalType": "address",
125
+ "name": "cancelledPendingCurator",
126
+ "type": "address"
127
+ }
128
+ ],
129
+ "name": "GroupCuratorTransferCancelled",
130
+ "type": "event"
131
+ },
132
+ {
133
+ "anonymous": false,
134
+ "inputs": [
135
+ {
136
+ "indexed": true,
137
+ "internalType": "bytes32",
138
+ "name": "groupId",
139
+ "type": "bytes32"
140
+ },
141
+ {
142
+ "indexed": true,
143
+ "internalType": "address",
144
+ "name": "curator",
145
+ "type": "address"
146
+ },
147
+ {
148
+ "indexed": true,
149
+ "internalType": "address",
150
+ "name": "pendingCurator",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "name": "GroupCuratorTransferStarted",
155
+ "type": "event"
156
+ },
157
+ {
158
+ "anonymous": false,
159
+ "inputs": [
160
+ {
161
+ "indexed": true,
162
+ "internalType": "bytes32",
163
+ "name": "groupId",
164
+ "type": "bytes32"
165
+ },
166
+ {
167
+ "indexed": true,
168
+ "internalType": "address",
169
+ "name": "previousCurator",
170
+ "type": "address"
171
+ },
172
+ {
173
+ "indexed": true,
174
+ "internalType": "address",
175
+ "name": "newCurator",
176
+ "type": "address"
177
+ }
178
+ ],
179
+ "name": "GroupCuratorTransferred",
180
+ "type": "event"
181
+ },
182
+ {
183
+ "anonymous": false,
184
+ "inputs": [
185
+ {
186
+ "indexed": true,
187
+ "internalType": "bytes32",
188
+ "name": "groupId",
189
+ "type": "bytes32"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "internalType": "bool",
194
+ "name": "isPublic",
195
+ "type": "bool"
196
+ }
197
+ ],
198
+ "name": "GroupVisibilityChanged",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": true,
206
+ "internalType": "bytes32",
207
+ "name": "groupId",
208
+ "type": "bytes32"
209
+ },
210
+ {
211
+ "indexed": true,
212
+ "internalType": "address",
213
+ "name": "member",
214
+ "type": "address"
215
+ }
216
+ ],
217
+ "name": "MemberAdded",
218
+ "type": "event"
219
+ },
220
+ {
221
+ "anonymous": false,
222
+ "inputs": [
223
+ {
224
+ "indexed": true,
225
+ "internalType": "bytes32",
226
+ "name": "groupId",
227
+ "type": "bytes32"
228
+ },
229
+ {
230
+ "indexed": true,
231
+ "internalType": "address",
232
+ "name": "member",
233
+ "type": "address"
234
+ }
235
+ ],
236
+ "name": "MemberRemoved",
237
+ "type": "event"
238
+ },
239
+ {
240
+ "anonymous": false,
241
+ "inputs": [
242
+ {
243
+ "indexed": true,
244
+ "internalType": "bytes32",
245
+ "name": "groupId",
246
+ "type": "bytes32"
247
+ },
248
+ {
249
+ "indexed": true,
250
+ "internalType": "address",
251
+ "name": "oldResolver",
252
+ "type": "address"
253
+ },
254
+ {
255
+ "indexed": true,
256
+ "internalType": "address",
257
+ "name": "newResolver",
258
+ "type": "address"
259
+ }
260
+ ],
261
+ "name": "ResolverSet",
262
+ "type": "event"
263
+ },
264
+ {
265
+ "inputs": [],
266
+ "name": "RESOLVER_GAS_LIMIT",
267
+ "outputs": [
268
+ {
269
+ "internalType": "uint256",
270
+ "name": "",
271
+ "type": "uint256"
272
+ }
273
+ ],
274
+ "stateMutability": "view",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "inputs": [
279
+ {
280
+ "internalType": "bytes32",
281
+ "name": "_groupId",
282
+ "type": "bytes32"
283
+ }
284
+ ],
285
+ "name": "acceptGroupCurator",
286
+ "outputs": [],
287
+ "stateMutability": "nonpayable",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [
292
+ {
293
+ "internalType": "bytes32",
294
+ "name": "_groupId",
295
+ "type": "bytes32"
296
+ },
297
+ {
298
+ "internalType": "address[]",
299
+ "name": "_members",
300
+ "type": "address[]"
301
+ }
302
+ ],
303
+ "name": "addMembers",
304
+ "outputs": [],
305
+ "stateMutability": "nonpayable",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "inputs": [
310
+ {
311
+ "internalType": "bytes32",
312
+ "name": "_groupId",
313
+ "type": "bytes32"
314
+ }
315
+ ],
316
+ "name": "cancelGroupCuratorTransfer",
317
+ "outputs": [],
318
+ "stateMutability": "nonpayable",
319
+ "type": "function"
320
+ },
321
+ {
322
+ "inputs": [
323
+ {
324
+ "internalType": "string",
325
+ "name": "_name",
326
+ "type": "string"
327
+ }
328
+ ],
329
+ "name": "createGroup",
330
+ "outputs": [
331
+ {
332
+ "internalType": "bytes32",
333
+ "name": "groupId",
334
+ "type": "bytes32"
335
+ }
336
+ ],
337
+ "stateMutability": "nonpayable",
338
+ "type": "function"
339
+ },
340
+ {
341
+ "inputs": [
342
+ {
343
+ "internalType": "bytes32",
344
+ "name": "_groupId",
345
+ "type": "bytes32"
346
+ }
347
+ ],
348
+ "name": "getGroup",
349
+ "outputs": [
350
+ {
351
+ "internalType": "address",
352
+ "name": "curator",
353
+ "type": "address"
354
+ },
355
+ {
356
+ "internalType": "address",
357
+ "name": "pendingCurator",
358
+ "type": "address"
359
+ },
360
+ {
361
+ "internalType": "address",
362
+ "name": "resolver",
363
+ "type": "address"
364
+ },
365
+ {
366
+ "internalType": "bool",
367
+ "name": "isPublic",
368
+ "type": "bool"
369
+ },
370
+ {
371
+ "internalType": "bool",
372
+ "name": "exists",
373
+ "type": "bool"
374
+ }
375
+ ],
376
+ "stateMutability": "view",
377
+ "type": "function"
378
+ },
379
+ {
380
+ "inputs": [],
381
+ "name": "groupCount",
382
+ "outputs": [
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "",
386
+ "type": "uint256"
387
+ }
388
+ ],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [
394
+ {
395
+ "internalType": "bytes32",
396
+ "name": "_groupId",
397
+ "type": "bytes32"
398
+ }
399
+ ],
400
+ "name": "groupExists",
401
+ "outputs": [
402
+ {
403
+ "internalType": "bool",
404
+ "name": "",
405
+ "type": "bool"
406
+ }
407
+ ],
408
+ "stateMutability": "view",
409
+ "type": "function"
410
+ },
411
+ {
412
+ "inputs": [
413
+ {
414
+ "internalType": "bytes32",
415
+ "name": "_groupId",
416
+ "type": "bytes32"
417
+ },
418
+ {
419
+ "internalType": "address",
420
+ "name": "_account",
421
+ "type": "address"
422
+ }
423
+ ],
424
+ "name": "isMember",
425
+ "outputs": [
426
+ {
427
+ "internalType": "bool",
428
+ "name": "",
429
+ "type": "bool"
430
+ }
431
+ ],
432
+ "stateMutability": "view",
433
+ "type": "function"
434
+ },
435
+ {
436
+ "inputs": [
437
+ {
438
+ "internalType": "bytes32",
439
+ "name": "_groupId",
440
+ "type": "bytes32"
441
+ }
442
+ ],
443
+ "name": "joinGroup",
444
+ "outputs": [],
445
+ "stateMutability": "nonpayable",
446
+ "type": "function"
447
+ },
448
+ {
449
+ "inputs": [
450
+ {
451
+ "internalType": "bytes32",
452
+ "name": "_groupId",
453
+ "type": "bytes32"
454
+ }
455
+ ],
456
+ "name": "leaveGroup",
457
+ "outputs": [],
458
+ "stateMutability": "nonpayable",
459
+ "type": "function"
460
+ },
461
+ {
462
+ "inputs": [
463
+ {
464
+ "internalType": "bytes32",
465
+ "name": "",
466
+ "type": "bytes32"
467
+ },
468
+ {
469
+ "internalType": "address",
470
+ "name": "",
471
+ "type": "address"
472
+ }
473
+ ],
474
+ "name": "members",
475
+ "outputs": [
476
+ {
477
+ "internalType": "bool",
478
+ "name": "",
479
+ "type": "bool"
480
+ }
481
+ ],
482
+ "stateMutability": "view",
483
+ "type": "function"
484
+ },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "internalType": "bytes32",
489
+ "name": "_groupId",
490
+ "type": "bytes32"
491
+ },
492
+ {
493
+ "internalType": "address[]",
494
+ "name": "_members",
495
+ "type": "address[]"
496
+ }
497
+ ],
498
+ "name": "removeMembers",
499
+ "outputs": [],
500
+ "stateMutability": "nonpayable",
501
+ "type": "function"
502
+ },
503
+ {
504
+ "inputs": [
505
+ {
506
+ "internalType": "bytes32",
507
+ "name": "_groupId",
508
+ "type": "bytes32"
509
+ },
510
+ {
511
+ "internalType": "bool",
512
+ "name": "_isPublic",
513
+ "type": "bool"
514
+ }
515
+ ],
516
+ "name": "setGroupVisibility",
517
+ "outputs": [],
518
+ "stateMutability": "nonpayable",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "bytes32",
525
+ "name": "_groupId",
526
+ "type": "bytes32"
527
+ },
528
+ {
529
+ "internalType": "address",
530
+ "name": "_resolver",
531
+ "type": "address"
532
+ }
533
+ ],
534
+ "name": "setResolver",
535
+ "outputs": [],
536
+ "stateMutability": "nonpayable",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [
541
+ {
542
+ "internalType": "bytes32",
543
+ "name": "_groupId",
544
+ "type": "bytes32"
545
+ },
546
+ {
547
+ "internalType": "address",
548
+ "name": "_newCurator",
549
+ "type": "address"
550
+ }
551
+ ],
552
+ "name": "transferGroupCurator",
553
+ "outputs": [],
554
+ "stateMutability": "nonpayable",
555
+ "type": "function"
556
+ }
557
+ ];
558
+ module.exports = data;
559
+ module.exports.default = data;