@enclave-e3/contracts 0.1.11 → 0.1.13

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 (257) hide show
  1. package/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +3 -3
  2. package/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/artifacts.d.ts +3 -3
  3. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.json +1 -1
  4. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +3 -3
  5. package/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/artifacts.d.ts +4 -4
  6. package/artifacts/build-info/{solc-0_8_28-c77ac33099bb85c15f46d194dd2b735e036cb799.json → solc-0_8_28-e60a5d7c133605edcf61acdd5ba43ab44ee0928e.json} +27 -12
  7. package/artifacts/build-info/solc-0_8_28-e60a5d7c133605edcf61acdd5ba43ab44ee0928e.output.json +1 -0
  8. package/artifacts/contracts/E3RefundManager.sol/E3RefundManager.json +684 -0
  9. package/artifacts/contracts/E3RefundManager.sol/artifacts.d.ts +27 -0
  10. package/artifacts/contracts/Enclave.sol/Enclave.json +530 -182
  11. package/artifacts/contracts/Enclave.sol/artifacts.d.ts +4 -4
  12. package/artifacts/contracts/interfaces/IBondingRegistry.sol/IBondingRegistry.json +14 -1
  13. package/artifacts/contracts/interfaces/IBondingRegistry.sol/artifacts.d.ts +2 -2
  14. package/artifacts/contracts/interfaces/ICiphernodeRegistry.sol/ICiphernodeRegistry.json +55 -5
  15. package/artifacts/contracts/interfaces/ICiphernodeRegistry.sol/artifacts.d.ts +2 -2
  16. package/artifacts/contracts/interfaces/IComputeProvider.sol/IComputeProvider.json +1 -1
  17. package/artifacts/contracts/interfaces/IComputeProvider.sol/artifacts.d.ts +1 -1
  18. package/artifacts/contracts/interfaces/IDecryptionVerifier.sol/IDecryptionVerifier.json +1 -1
  19. package/artifacts/contracts/interfaces/IDecryptionVerifier.sol/artifacts.d.ts +1 -1
  20. package/artifacts/contracts/interfaces/IE3Program.sol/IE3Program.json +19 -24
  21. package/artifacts/contracts/interfaces/IE3Program.sol/artifacts.d.ts +2 -2
  22. package/artifacts/contracts/interfaces/IE3RefundManager.sol/IE3RefundManager.json +470 -0
  23. package/artifacts/contracts/interfaces/IE3RefundManager.sol/artifacts.d.ts +27 -0
  24. package/artifacts/contracts/interfaces/IEnclave.sol/IEnclave.json +383 -128
  25. package/artifacts/contracts/interfaces/IEnclave.sol/artifacts.d.ts +2 -2
  26. package/artifacts/contracts/interfaces/ISlashVerifier.sol/ISlashVerifier.json +1 -1
  27. package/artifacts/contracts/interfaces/ISlashVerifier.sol/artifacts.d.ts +1 -1
  28. package/artifacts/contracts/interfaces/ISlashingManager.sol/ISlashingManager.json +1 -1
  29. package/artifacts/contracts/interfaces/ISlashingManager.sol/artifacts.d.ts +1 -1
  30. package/artifacts/contracts/lib/ExitQueueLib.sol/ExitQueueLib.json +1 -1
  31. package/artifacts/contracts/lib/ExitQueueLib.sol/artifacts.d.ts +1 -1
  32. package/artifacts/contracts/registry/BondingRegistry.sol/BondingRegistry.json +16 -3
  33. package/artifacts/contracts/registry/BondingRegistry.sol/artifacts.d.ts +4 -4
  34. package/artifacts/contracts/registry/CiphernodeRegistryOwnable.sol/CiphernodeRegistryOwnable.json +91 -25
  35. package/artifacts/contracts/registry/CiphernodeRegistryOwnable.sol/artifacts.d.ts +6 -6
  36. package/artifacts/contracts/slashing/SlashingManager.sol/SlashingManager.json +3 -3
  37. package/artifacts/contracts/slashing/SlashingManager.sol/artifacts.d.ts +3 -3
  38. package/artifacts/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistry.json +57 -7
  39. package/artifacts/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistryEmptyKey.json +57 -7
  40. package/artifacts/contracts/test/MockCiphernodeRegistry.sol/artifacts.d.ts +8 -8
  41. package/artifacts/contracts/test/MockComputeProvider.sol/MockComputeProvider.json +3 -3
  42. package/artifacts/contracts/test/MockComputeProvider.sol/artifacts.d.ts +3 -3
  43. package/artifacts/contracts/test/MockDecryptionVerifier.sol/MockDecryptionVerifier.json +1 -1
  44. package/artifacts/contracts/test/MockDecryptionVerifier.sol/artifacts.d.ts +1 -1
  45. package/artifacts/contracts/test/MockE3Program.sol/MockE3Program.json +21 -26
  46. package/artifacts/contracts/test/MockE3Program.sol/artifacts.d.ts +4 -4
  47. package/artifacts/contracts/test/MockSlashingVerifier.sol/MockSlashingVerifier.json +1 -1
  48. package/artifacts/contracts/test/MockSlashingVerifier.sol/artifacts.d.ts +1 -1
  49. package/artifacts/contracts/test/MockStableToken.sol/MockUSDC.json +3 -3
  50. package/artifacts/contracts/test/MockStableToken.sol/artifacts.d.ts +3 -3
  51. package/artifacts/contracts/token/EnclaveTicketToken.sol/EnclaveTicketToken.json +14 -22
  52. package/artifacts/contracts/token/EnclaveTicketToken.sol/artifacts.d.ts +4 -4
  53. package/artifacts/contracts/token/EnclaveToken.sol/EnclaveToken.json +10 -10
  54. package/artifacts/contracts/token/EnclaveToken.sol/artifacts.d.ts +4 -4
  55. package/artifacts/contracts/verifier/DkgPkVerifier.sol/BaseZKHonkVerifier.json +89 -0
  56. package/artifacts/contracts/verifier/DkgPkVerifier.sol/CommitmentSchemeLib.json +13 -0
  57. package/artifacts/contracts/verifier/DkgPkVerifier.sol/DkgPkVerifier.json +186 -0
  58. package/artifacts/contracts/verifier/DkgPkVerifier.sol/FrLib.json +13 -0
  59. package/artifacts/contracts/verifier/DkgPkVerifier.sol/Honk.json +13 -0
  60. package/artifacts/contracts/verifier/DkgPkVerifier.sol/HonkVerificationKey.json +13 -0
  61. package/artifacts/contracts/verifier/DkgPkVerifier.sol/IVerifier.json +38 -0
  62. package/artifacts/contracts/verifier/DkgPkVerifier.sol/RelationsLib.json +13 -0
  63. package/artifacts/contracts/verifier/DkgPkVerifier.sol/ZKTranscriptLib.json +400 -0
  64. package/artifacts/contracts/verifier/DkgPkVerifier.sol/artifacts.d.ts +155 -0
  65. package/artifacts/poseidon-solidity/PoseidonT3.sol/PoseidonT3.json +1 -1
  66. package/artifacts/poseidon-solidity/PoseidonT3.sol/artifacts.d.ts +1 -1
  67. package/contracts/E3RefundManager.sol +365 -0
  68. package/contracts/Enclave.sol +426 -119
  69. package/contracts/interfaces/IBondingRegistry.sol +6 -0
  70. package/contracts/interfaces/ICiphernodeRegistry.sol +29 -7
  71. package/contracts/interfaces/IE3.sol +2 -6
  72. package/contracts/interfaces/IE3Program.sol +3 -7
  73. package/contracts/interfaces/IE3RefundManager.sol +150 -0
  74. package/contracts/interfaces/IEnclave.sol +186 -64
  75. package/contracts/registry/BondingRegistry.sol +9 -0
  76. package/contracts/registry/CiphernodeRegistryOwnable.sol +89 -42
  77. package/contracts/test/MockCiphernodeRegistry.sol +20 -6
  78. package/contracts/test/MockE3Program.sol +3 -8
  79. package/contracts/verifier/DkgPkVerifier.sol +3140 -0
  80. package/dist/hardhat.config.d.ts.map +1 -1
  81. package/dist/hardhat.config.js +4 -4
  82. package/dist/ignition/modules/dkgPkVerifier.d.ts +3 -0
  83. package/dist/ignition/modules/dkgPkVerifier.d.ts.map +1 -0
  84. package/dist/ignition/modules/dkgPkVerifier.js +10 -0
  85. package/dist/ignition/modules/e3RefundManager.d.ts +3 -0
  86. package/dist/ignition/modules/e3RefundManager.d.ts.map +1 -0
  87. package/dist/ignition/modules/e3RefundManager.js +23 -0
  88. package/dist/ignition/modules/enclave.d.ts.map +1 -1
  89. package/dist/ignition/modules/enclave.js +10 -0
  90. package/dist/scripts/deployAndSave/e3RefundManager.d.ts +20 -0
  91. package/dist/scripts/deployAndSave/e3RefundManager.d.ts.map +1 -0
  92. package/dist/scripts/deployAndSave/e3RefundManager.js +55 -0
  93. package/dist/scripts/deployAndSave/enclave.d.ts +13 -1
  94. package/dist/scripts/deployAndSave/enclave.d.ts.map +1 -1
  95. package/dist/scripts/deployAndSave/enclave.js +8 -1
  96. package/dist/scripts/deployAndSave/verifiers.d.ts +29 -0
  97. package/dist/scripts/deployAndSave/verifiers.d.ts.map +1 -0
  98. package/dist/scripts/deployAndSave/verifiers.js +109 -0
  99. package/dist/scripts/deployEnclave.d.ts.map +1 -1
  100. package/dist/scripts/deployEnclave.js +36 -0
  101. package/dist/scripts/deployVerifiers.d.ts +2 -0
  102. package/dist/scripts/deployVerifiers.d.ts.map +1 -0
  103. package/dist/scripts/deployVerifiers.js +33 -0
  104. package/dist/scripts/index.d.ts +1 -0
  105. package/dist/scripts/index.d.ts.map +1 -1
  106. package/dist/scripts/index.js +1 -0
  107. package/dist/tasks/enclave.d.ts +0 -2
  108. package/dist/tasks/enclave.d.ts.map +1 -1
  109. package/dist/tasks/enclave.js +8 -72
  110. package/dist/tasks/program.d.ts +2 -0
  111. package/dist/tasks/program.d.ts.map +1 -0
  112. package/dist/tasks/program.js +55 -0
  113. package/dist/test/E3Lifecycle/E3Integration.spec.d.ts +2 -0
  114. package/dist/test/E3Lifecycle/E3Integration.spec.d.ts.map +1 -0
  115. package/dist/test/E3Lifecycle/E3Integration.spec.js +757 -0
  116. package/dist/test/Enclave.spec.js +83 -406
  117. package/dist/test/Registry/CiphernodeRegistryOwnable.spec.js +133 -59
  118. package/dist/types/contracts/E3RefundManager.d.ts +379 -0
  119. package/dist/types/contracts/E3RefundManager.d.ts.map +1 -0
  120. package/dist/types/contracts/E3RefundManager.js +24 -0
  121. package/dist/types/contracts/Enclave.d.ts +325 -73
  122. package/dist/types/contracts/Enclave.d.ts.map +1 -1
  123. package/dist/types/contracts/Enclave.js +27 -3
  124. package/dist/types/contracts/index.d.ts +3 -0
  125. package/dist/types/contracts/index.d.ts.map +1 -1
  126. package/dist/types/contracts/interfaces/IBondingRegistry.d.ts +11 -1
  127. package/dist/types/contracts/interfaces/IBondingRegistry.d.ts.map +1 -1
  128. package/dist/types/contracts/interfaces/ICiphernodeRegistry.d.ts +35 -7
  129. package/dist/types/contracts/interfaces/ICiphernodeRegistry.d.ts.map +1 -1
  130. package/dist/types/contracts/interfaces/ICiphernodeRegistry.js +4 -0
  131. package/dist/types/contracts/interfaces/IE3Program.d.ts +16 -18
  132. package/dist/types/contracts/interfaces/IE3Program.d.ts.map +1 -1
  133. package/dist/types/contracts/interfaces/IE3RefundManager.d.ts +238 -0
  134. package/dist/types/contracts/interfaces/IE3RefundManager.d.ts.map +1 -0
  135. package/dist/types/contracts/interfaces/IE3RefundManager.js +16 -0
  136. package/dist/types/contracts/interfaces/IEnclave.d.ts +290 -62
  137. package/dist/types/contracts/interfaces/IEnclave.d.ts.map +1 -1
  138. package/dist/types/contracts/interfaces/IEnclave.js +27 -3
  139. package/dist/types/contracts/interfaces/index.d.ts +1 -0
  140. package/dist/types/contracts/interfaces/index.d.ts.map +1 -1
  141. package/dist/types/contracts/registry/BondingRegistry.d.ts +11 -1
  142. package/dist/types/contracts/registry/BondingRegistry.d.ts.map +1 -1
  143. package/dist/types/contracts/registry/CiphernodeRegistryOwnable.d.ts +35 -7
  144. package/dist/types/contracts/registry/CiphernodeRegistryOwnable.d.ts.map +1 -1
  145. package/dist/types/contracts/registry/CiphernodeRegistryOwnable.js +4 -0
  146. package/dist/types/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistry.d.ts +35 -7
  147. package/dist/types/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistry.d.ts.map +1 -1
  148. package/dist/types/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistry.js +4 -0
  149. package/dist/types/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistryEmptyKey.d.ts +35 -7
  150. package/dist/types/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistryEmptyKey.d.ts.map +1 -1
  151. package/dist/types/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistryEmptyKey.js +4 -0
  152. package/dist/types/contracts/test/MockE3Program.d.ts +16 -18
  153. package/dist/types/contracts/test/MockE3Program.d.ts.map +1 -1
  154. package/dist/types/contracts/verifier/DkgPkVerifier.sol/BaseZKHonkVerifier.d.ts +36 -0
  155. package/dist/types/contracts/verifier/DkgPkVerifier.sol/BaseZKHonkVerifier.d.ts.map +1 -0
  156. package/dist/types/contracts/verifier/DkgPkVerifier.sol/BaseZKHonkVerifier.js +1 -0
  157. package/dist/types/contracts/verifier/DkgPkVerifier.sol/DkgPkVerifier.d.ts +36 -0
  158. package/dist/types/contracts/verifier/DkgPkVerifier.sol/DkgPkVerifier.d.ts.map +1 -0
  159. package/dist/types/contracts/verifier/DkgPkVerifier.sol/DkgPkVerifier.js +1 -0
  160. package/dist/types/contracts/verifier/DkgPkVerifier.sol/IVerifier.d.ts +36 -0
  161. package/dist/types/contracts/verifier/DkgPkVerifier.sol/IVerifier.d.ts.map +1 -0
  162. package/dist/types/contracts/verifier/DkgPkVerifier.sol/IVerifier.js +1 -0
  163. package/dist/types/contracts/verifier/DkgPkVerifier.sol/ZKTranscriptLib.d.ts +138 -0
  164. package/dist/types/contracts/verifier/DkgPkVerifier.sol/ZKTranscriptLib.d.ts.map +1 -0
  165. package/dist/types/contracts/verifier/DkgPkVerifier.sol/ZKTranscriptLib.js +1 -0
  166. package/dist/types/contracts/verifier/DkgPkVerifier.sol/index.d.ts +5 -0
  167. package/dist/types/contracts/verifier/DkgPkVerifier.sol/index.d.ts.map +1 -0
  168. package/dist/types/contracts/verifier/DkgPkVerifier.sol/index.js +1 -0
  169. package/dist/types/contracts/verifier/index.d.ts +3 -0
  170. package/dist/types/contracts/verifier/index.d.ts.map +1 -0
  171. package/dist/types/contracts/verifier/index.js +1 -0
  172. package/dist/types/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts +1 -1
  173. package/dist/types/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.d.ts.map +1 -1
  174. package/dist/types/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.js +1 -1
  175. package/dist/types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.d.ts +1 -1
  176. package/dist/types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.d.ts.map +1 -1
  177. package/dist/types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.js +1 -1
  178. package/dist/types/factories/contracts/E3RefundManager__factory.d.ts +540 -0
  179. package/dist/types/factories/contracts/E3RefundManager__factory.d.ts.map +1 -0
  180. package/dist/types/factories/contracts/E3RefundManager__factory.js +706 -0
  181. package/dist/types/factories/contracts/Enclave__factory.d.ts +412 -143
  182. package/dist/types/factories/contracts/Enclave__factory.d.ts.map +1 -1
  183. package/dist/types/factories/contracts/Enclave__factory.js +528 -180
  184. package/dist/types/factories/contracts/index.d.ts +2 -0
  185. package/dist/types/factories/contracts/index.d.ts.map +1 -1
  186. package/dist/types/factories/contracts/index.js +2 -0
  187. package/dist/types/factories/contracts/interfaces/IBondingRegistry__factory.d.ts +10 -0
  188. package/dist/types/factories/contracts/interfaces/IBondingRegistry__factory.d.ts.map +1 -1
  189. package/dist/types/factories/contracts/interfaces/IBondingRegistry__factory.js +13 -0
  190. package/dist/types/factories/contracts/interfaces/ICiphernodeRegistry__factory.d.ts +42 -4
  191. package/dist/types/factories/contracts/interfaces/ICiphernodeRegistry__factory.d.ts.map +1 -1
  192. package/dist/types/factories/contracts/interfaces/ICiphernodeRegistry__factory.js +54 -4
  193. package/dist/types/factories/contracts/interfaces/IE3Program__factory.d.ts +14 -18
  194. package/dist/types/factories/contracts/interfaces/IE3Program__factory.d.ts.map +1 -1
  195. package/dist/types/factories/contracts/interfaces/IE3Program__factory.js +18 -23
  196. package/dist/types/factories/contracts/interfaces/IE3RefundManager__factory.d.ts +358 -0
  197. package/dist/types/factories/contracts/interfaces/IE3RefundManager__factory.d.ts.map +1 -0
  198. package/dist/types/factories/contracts/interfaces/IE3RefundManager__factory.js +471 -0
  199. package/dist/types/factories/contracts/interfaces/IEnclave__factory.d.ts +303 -103
  200. package/dist/types/factories/contracts/interfaces/IEnclave__factory.d.ts.map +1 -1
  201. package/dist/types/factories/contracts/interfaces/IEnclave__factory.js +382 -127
  202. package/dist/types/factories/contracts/interfaces/index.d.ts +1 -0
  203. package/dist/types/factories/contracts/interfaces/index.d.ts.map +1 -1
  204. package/dist/types/factories/contracts/interfaces/index.js +1 -0
  205. package/dist/types/factories/contracts/registry/BondingRegistry__factory.d.ts +11 -1
  206. package/dist/types/factories/contracts/registry/BondingRegistry__factory.d.ts.map +1 -1
  207. package/dist/types/factories/contracts/registry/BondingRegistry__factory.js +14 -1
  208. package/dist/types/factories/contracts/registry/CiphernodeRegistryOwnable__factory.d.ts +62 -12
  209. package/dist/types/factories/contracts/registry/CiphernodeRegistryOwnable__factory.d.ts.map +1 -1
  210. package/dist/types/factories/contracts/registry/CiphernodeRegistryOwnable__factory.js +79 -13
  211. package/dist/types/factories/contracts/slashing/SlashingManager__factory.d.ts +1 -1
  212. package/dist/types/factories/contracts/slashing/SlashingManager__factory.d.ts.map +1 -1
  213. package/dist/types/factories/contracts/slashing/SlashingManager__factory.js +1 -1
  214. package/dist/types/factories/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistryEmptyKey__factory.d.ts +43 -5
  215. package/dist/types/factories/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistryEmptyKey__factory.d.ts.map +1 -1
  216. package/dist/types/factories/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistryEmptyKey__factory.js +55 -5
  217. package/dist/types/factories/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistry__factory.d.ts +43 -5
  218. package/dist/types/factories/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistry__factory.d.ts.map +1 -1
  219. package/dist/types/factories/contracts/test/MockCiphernodeRegistry.sol/MockCiphernodeRegistry__factory.js +55 -5
  220. package/dist/types/factories/contracts/test/MockComputeProvider__factory.d.ts +1 -1
  221. package/dist/types/factories/contracts/test/MockComputeProvider__factory.d.ts.map +1 -1
  222. package/dist/types/factories/contracts/test/MockComputeProvider__factory.js +1 -1
  223. package/dist/types/factories/contracts/test/MockE3Program__factory.d.ts +15 -19
  224. package/dist/types/factories/contracts/test/MockE3Program__factory.d.ts.map +1 -1
  225. package/dist/types/factories/contracts/test/MockE3Program__factory.js +19 -24
  226. package/dist/types/factories/contracts/test/MockStableToken.sol/MockUSDC__factory.d.ts +1 -1
  227. package/dist/types/factories/contracts/test/MockStableToken.sol/MockUSDC__factory.d.ts.map +1 -1
  228. package/dist/types/factories/contracts/test/MockStableToken.sol/MockUSDC__factory.js +1 -1
  229. package/dist/types/factories/contracts/token/EnclaveTicketToken__factory.d.ts +1 -1
  230. package/dist/types/factories/contracts/token/EnclaveTicketToken__factory.d.ts.map +1 -1
  231. package/dist/types/factories/contracts/token/EnclaveTicketToken__factory.js +1 -1
  232. package/dist/types/factories/contracts/token/EnclaveToken__factory.d.ts +1 -1
  233. package/dist/types/factories/contracts/token/EnclaveToken__factory.d.ts.map +1 -1
  234. package/dist/types/factories/contracts/token/EnclaveToken__factory.js +1 -1
  235. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/BaseZKHonkVerifier__factory.d.ts +66 -0
  236. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/BaseZKHonkVerifier__factory.d.ts.map +1 -0
  237. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/BaseZKHonkVerifier__factory.js +90 -0
  238. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/DkgPkVerifier__factory.d.ts +87 -0
  239. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/DkgPkVerifier__factory.d.ts.map +1 -0
  240. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/DkgPkVerifier__factory.js +122 -0
  241. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/IVerifier__factory.d.ts +26 -0
  242. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/IVerifier__factory.d.ts.map +1 -0
  243. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/IVerifier__factory.js +39 -0
  244. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/ZKTranscriptLib__factory.d.ts +323 -0
  245. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/ZKTranscriptLib__factory.d.ts.map +1 -0
  246. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/ZKTranscriptLib__factory.js +422 -0
  247. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/index.d.ts +5 -0
  248. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/index.d.ts.map +1 -0
  249. package/dist/types/factories/contracts/verifier/DkgPkVerifier.sol/index.js +7 -0
  250. package/dist/types/factories/contracts/verifier/index.d.ts +2 -0
  251. package/dist/types/factories/contracts/verifier/index.d.ts.map +1 -0
  252. package/dist/types/factories/contracts/verifier/index.js +4 -0
  253. package/dist/types/index.d.ts +12 -0
  254. package/dist/types/index.d.ts.map +1 -1
  255. package/dist/types/index.js +6 -0
  256. package/package.json +17 -3
  257. package/artifacts/build-info/solc-0_8_28-c77ac33099bb85c15f46d194dd2b735e036cb799.output.json +0 -1
@@ -4,9 +4,7 @@ export type E3Struct = {
4
4
  seed: BigNumberish;
5
5
  threshold: [BigNumberish, BigNumberish];
6
6
  requestBlock: BigNumberish;
7
- startWindow: [BigNumberish, BigNumberish];
8
- duration: BigNumberish;
9
- expiration: BigNumberish;
7
+ inputWindow: [BigNumberish, BigNumberish];
10
8
  encryptionSchemeId: BytesLike;
11
9
  e3Program: AddressLike;
12
10
  e3ProgramParams: BytesLike;
@@ -17,13 +15,11 @@ export type E3Struct = {
17
15
  plaintextOutput: BytesLike;
18
16
  requester: AddressLike;
19
17
  };
20
- export type E3StructOutput = [seed: bigint, threshold: [bigint, bigint], requestBlock: bigint, startWindow: [bigint, bigint], duration: bigint, expiration: bigint, encryptionSchemeId: string, e3Program: string, e3ProgramParams: string, customParams: string, decryptionVerifier: string, committeePublicKey: string, ciphertextOutput: string, plaintextOutput: string, requester: string] & {
18
+ export type E3StructOutput = [seed: bigint, threshold: [bigint, bigint], requestBlock: bigint, inputWindow: [bigint, bigint], encryptionSchemeId: string, e3Program: string, e3ProgramParams: string, customParams: string, decryptionVerifier: string, committeePublicKey: string, ciphertextOutput: string, plaintextOutput: string, requester: string] & {
21
19
  seed: bigint;
22
20
  threshold: [bigint, bigint];
23
21
  requestBlock: bigint;
24
- startWindow: [bigint, bigint];
25
- duration: bigint;
26
- expiration: bigint;
22
+ inputWindow: [bigint, bigint];
27
23
  encryptionSchemeId: string;
28
24
  e3Program: string;
29
25
  e3ProgramParams: string;
@@ -35,19 +31,39 @@ export type E3StructOutput = [seed: bigint, threshold: [bigint, bigint], request
35
31
  requester: string;
36
32
  };
37
33
  export declare namespace IEnclave {
34
+ type E3TimeoutConfigStruct = {
35
+ dkgWindow: BigNumberish;
36
+ computeWindow: BigNumberish;
37
+ decryptionWindow: BigNumberish;
38
+ gracePeriod: BigNumberish;
39
+ };
40
+ type E3TimeoutConfigStructOutput = [dkgWindow: bigint, computeWindow: bigint, decryptionWindow: bigint, gracePeriod: bigint] & {
41
+ dkgWindow: bigint;
42
+ computeWindow: bigint;
43
+ decryptionWindow: bigint;
44
+ gracePeriod: bigint;
45
+ };
46
+ type E3DeadlinesStruct = {
47
+ dkgDeadline: BigNumberish;
48
+ computeDeadline: BigNumberish;
49
+ decryptionDeadline: BigNumberish;
50
+ };
51
+ type E3DeadlinesStructOutput = [dkgDeadline: bigint, computeDeadline: bigint, decryptionDeadline: bigint] & {
52
+ dkgDeadline: bigint;
53
+ computeDeadline: bigint;
54
+ decryptionDeadline: bigint;
55
+ };
38
56
  type E3RequestParamsStruct = {
39
57
  threshold: [BigNumberish, BigNumberish];
40
- startWindow: [BigNumberish, BigNumberish];
41
- duration: BigNumberish;
58
+ inputWindow: [BigNumberish, BigNumberish];
42
59
  e3Program: AddressLike;
43
60
  e3ProgramParams: BytesLike;
44
61
  computeProviderParams: BytesLike;
45
62
  customParams: BytesLike;
46
63
  };
47
- type E3RequestParamsStructOutput = [threshold: [bigint, bigint], startWindow: [bigint, bigint], duration: bigint, e3Program: string, e3ProgramParams: string, computeProviderParams: string, customParams: string] & {
64
+ type E3RequestParamsStructOutput = [threshold: [bigint, bigint], inputWindow: [bigint, bigint], e3Program: string, e3ProgramParams: string, computeProviderParams: string, customParams: string] & {
48
65
  threshold: [bigint, bigint];
49
- startWindow: [bigint, bigint];
50
- duration: bigint;
66
+ inputWindow: [bigint, bigint];
51
67
  e3Program: string;
52
68
  e3ProgramParams: string;
53
69
  computeProviderParams: string;
@@ -55,18 +71,27 @@ export declare namespace IEnclave {
55
71
  };
56
72
  }
57
73
  export interface IEnclaveInterface extends Interface {
58
- getFunction(nameOrSignature: "activate" | "disableE3Program" | "disableEncryptionScheme" | "enableE3Program" | "feeToken" | "getDecryptionVerifier" | "getE3" | "getE3Quote" | "publishCiphertextOutput" | "publishInput" | "publishPlaintextOutput" | "request" | "setBondingRegistry" | "setCiphernodeRegistry" | "setDecryptionVerifier" | "setE3ProgramsParams" | "setFeeToken" | "setMaxDuration"): FunctionFragment;
59
- getEvent(nameOrSignatureOrTopic: "AllowedE3ProgramsParamsSet" | "BondingRegistrySet" | "CiphernodeRegistrySet" | "CiphertextOutputPublished" | "E3Activated" | "E3ProgramDisabled" | "E3ProgramEnabled" | "E3Requested" | "EncryptionSchemeDisabled" | "EncryptionSchemeEnabled" | "FeeTokenSet" | "InputPublished" | "MaxDurationSet" | "PlaintextOutputPublished" | "RewardsDistributed"): EventFragment;
60
- encodeFunctionData(functionFragment: 'activate', values: [BigNumberish]): string;
74
+ getFunction(nameOrSignature: "bondingRegistry" | "checkFailureCondition" | "disableE3Program" | "disableEncryptionScheme" | "enableE3Program" | "feeToken" | "getDeadlines" | "getDecryptionVerifier" | "getE3" | "getE3Quote" | "getE3Stage" | "getFailureReason" | "getRequester" | "getTimeoutConfig" | "markE3Failed" | "onCommitteeFinalized" | "onCommitteePublished" | "onE3Failed" | "publishCiphertextOutput" | "publishPlaintextOutput" | "request" | "setBondingRegistry" | "setCiphernodeRegistry" | "setDecryptionVerifier" | "setE3ProgramsParams" | "setFeeToken" | "setMaxDuration" | "setTimeoutConfig"): FunctionFragment;
75
+ getEvent(nameOrSignatureOrTopic: "AllowedE3ProgramsParamsSet" | "BondingRegistrySet" | "CiphernodeRegistrySet" | "CiphertextOutputPublished" | "CommitteeFinalized" | "CommitteeFormed" | "E3Failed" | "E3FailureProcessed" | "E3ProgramDisabled" | "E3ProgramEnabled" | "E3RefundManagerSet" | "E3Requested" | "E3StageChanged" | "EncryptionSchemeDisabled" | "EncryptionSchemeEnabled" | "FeeTokenSet" | "InputPublished" | "MaxDurationSet" | "PlaintextOutputPublished" | "RewardsDistributed" | "TimeoutConfigUpdated"): EventFragment;
76
+ encodeFunctionData(functionFragment: 'bondingRegistry', values?: undefined): string;
77
+ encodeFunctionData(functionFragment: 'checkFailureCondition', values: [BigNumberish]): string;
61
78
  encodeFunctionData(functionFragment: 'disableE3Program', values: [AddressLike]): string;
62
79
  encodeFunctionData(functionFragment: 'disableEncryptionScheme', values: [BytesLike]): string;
63
80
  encodeFunctionData(functionFragment: 'enableE3Program', values: [AddressLike]): string;
64
81
  encodeFunctionData(functionFragment: 'feeToken', values?: undefined): string;
82
+ encodeFunctionData(functionFragment: 'getDeadlines', values: [BigNumberish]): string;
65
83
  encodeFunctionData(functionFragment: 'getDecryptionVerifier', values: [BytesLike]): string;
66
84
  encodeFunctionData(functionFragment: 'getE3', values: [BigNumberish]): string;
67
85
  encodeFunctionData(functionFragment: 'getE3Quote', values: [IEnclave.E3RequestParamsStruct]): string;
86
+ encodeFunctionData(functionFragment: 'getE3Stage', values: [BigNumberish]): string;
87
+ encodeFunctionData(functionFragment: 'getFailureReason', values: [BigNumberish]): string;
88
+ encodeFunctionData(functionFragment: 'getRequester', values: [BigNumberish]): string;
89
+ encodeFunctionData(functionFragment: 'getTimeoutConfig', values?: undefined): string;
90
+ encodeFunctionData(functionFragment: 'markE3Failed', values: [BigNumberish]): string;
91
+ encodeFunctionData(functionFragment: 'onCommitteeFinalized', values: [BigNumberish]): string;
92
+ encodeFunctionData(functionFragment: 'onCommitteePublished', values: [BigNumberish, BytesLike]): string;
93
+ encodeFunctionData(functionFragment: 'onE3Failed', values: [BigNumberish, BigNumberish]): string;
68
94
  encodeFunctionData(functionFragment: 'publishCiphertextOutput', values: [BigNumberish, BytesLike, BytesLike]): string;
69
- encodeFunctionData(functionFragment: 'publishInput', values: [BigNumberish, BytesLike]): string;
70
95
  encodeFunctionData(functionFragment: 'publishPlaintextOutput', values: [BigNumberish, BytesLike, BytesLike]): string;
71
96
  encodeFunctionData(functionFragment: 'request', values: [IEnclave.E3RequestParamsStruct]): string;
72
97
  encodeFunctionData(functionFragment: 'setBondingRegistry', values: [AddressLike]): string;
@@ -75,16 +100,26 @@ export interface IEnclaveInterface extends Interface {
75
100
  encodeFunctionData(functionFragment: 'setE3ProgramsParams', values: [BytesLike[]]): string;
76
101
  encodeFunctionData(functionFragment: 'setFeeToken', values: [AddressLike]): string;
77
102
  encodeFunctionData(functionFragment: 'setMaxDuration', values: [BigNumberish]): string;
78
- decodeFunctionResult(functionFragment: 'activate', data: BytesLike): Result;
103
+ encodeFunctionData(functionFragment: 'setTimeoutConfig', values: [IEnclave.E3TimeoutConfigStruct]): string;
104
+ decodeFunctionResult(functionFragment: 'bondingRegistry', data: BytesLike): Result;
105
+ decodeFunctionResult(functionFragment: 'checkFailureCondition', data: BytesLike): Result;
79
106
  decodeFunctionResult(functionFragment: 'disableE3Program', data: BytesLike): Result;
80
107
  decodeFunctionResult(functionFragment: 'disableEncryptionScheme', data: BytesLike): Result;
81
108
  decodeFunctionResult(functionFragment: 'enableE3Program', data: BytesLike): Result;
82
109
  decodeFunctionResult(functionFragment: 'feeToken', data: BytesLike): Result;
110
+ decodeFunctionResult(functionFragment: 'getDeadlines', data: BytesLike): Result;
83
111
  decodeFunctionResult(functionFragment: 'getDecryptionVerifier', data: BytesLike): Result;
84
112
  decodeFunctionResult(functionFragment: 'getE3', data: BytesLike): Result;
85
113
  decodeFunctionResult(functionFragment: 'getE3Quote', data: BytesLike): Result;
114
+ decodeFunctionResult(functionFragment: 'getE3Stage', data: BytesLike): Result;
115
+ decodeFunctionResult(functionFragment: 'getFailureReason', data: BytesLike): Result;
116
+ decodeFunctionResult(functionFragment: 'getRequester', data: BytesLike): Result;
117
+ decodeFunctionResult(functionFragment: 'getTimeoutConfig', data: BytesLike): Result;
118
+ decodeFunctionResult(functionFragment: 'markE3Failed', data: BytesLike): Result;
119
+ decodeFunctionResult(functionFragment: 'onCommitteeFinalized', data: BytesLike): Result;
120
+ decodeFunctionResult(functionFragment: 'onCommitteePublished', data: BytesLike): Result;
121
+ decodeFunctionResult(functionFragment: 'onE3Failed', data: BytesLike): Result;
86
122
  decodeFunctionResult(functionFragment: 'publishCiphertextOutput', data: BytesLike): Result;
87
- decodeFunctionResult(functionFragment: 'publishInput', data: BytesLike): Result;
88
123
  decodeFunctionResult(functionFragment: 'publishPlaintextOutput', data: BytesLike): Result;
89
124
  decodeFunctionResult(functionFragment: 'request', data: BytesLike): Result;
90
125
  decodeFunctionResult(functionFragment: 'setBondingRegistry', data: BytesLike): Result;
@@ -93,6 +128,7 @@ export interface IEnclaveInterface extends Interface {
93
128
  decodeFunctionResult(functionFragment: 'setE3ProgramsParams', data: BytesLike): Result;
94
129
  decodeFunctionResult(functionFragment: 'setFeeToken', data: BytesLike): Result;
95
130
  decodeFunctionResult(functionFragment: 'setMaxDuration', data: BytesLike): Result;
131
+ decodeFunctionResult(functionFragment: 'setTimeoutConfig', data: BytesLike): Result;
96
132
  }
97
133
  export declare namespace AllowedE3ProgramsParamsSetEvent {
98
134
  type InputTuple = [e3ProgramParams: BytesLike[]];
@@ -139,13 +175,48 @@ export declare namespace CiphertextOutputPublishedEvent {
139
175
  type Log = TypedEventLog<Event>;
140
176
  type LogDescription = TypedLogDescription<Event>;
141
177
  }
142
- export declare namespace E3ActivatedEvent {
143
- type InputTuple = [e3Id: BigNumberish, expiration: BigNumberish, committeePublicKey: BytesLike];
144
- type OutputTuple = [e3Id: bigint, expiration: bigint, committeePublicKey: string];
178
+ export declare namespace CommitteeFinalizedEvent {
179
+ type InputTuple = [e3Id: BigNumberish];
180
+ type OutputTuple = [e3Id: bigint];
181
+ interface OutputObject {
182
+ e3Id: bigint;
183
+ }
184
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
185
+ type Filter = TypedDeferredTopicFilter<Event>;
186
+ type Log = TypedEventLog<Event>;
187
+ type LogDescription = TypedLogDescription<Event>;
188
+ }
189
+ export declare namespace CommitteeFormedEvent {
190
+ type InputTuple = [e3Id: BigNumberish];
191
+ type OutputTuple = [e3Id: bigint];
192
+ interface OutputObject {
193
+ e3Id: bigint;
194
+ }
195
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
196
+ type Filter = TypedDeferredTopicFilter<Event>;
197
+ type Log = TypedEventLog<Event>;
198
+ type LogDescription = TypedLogDescription<Event>;
199
+ }
200
+ export declare namespace E3FailedEvent {
201
+ type InputTuple = [e3Id: BigNumberish, failedAtStage: BigNumberish, reason: BigNumberish];
202
+ type OutputTuple = [e3Id: bigint, failedAtStage: bigint, reason: bigint];
145
203
  interface OutputObject {
146
204
  e3Id: bigint;
147
- expiration: bigint;
148
- committeePublicKey: string;
205
+ failedAtStage: bigint;
206
+ reason: bigint;
207
+ }
208
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
209
+ type Filter = TypedDeferredTopicFilter<Event>;
210
+ type Log = TypedEventLog<Event>;
211
+ type LogDescription = TypedLogDescription<Event>;
212
+ }
213
+ export declare namespace E3FailureProcessedEvent {
214
+ type InputTuple = [e3Id: BigNumberish, paymentAmount: BigNumberish, honestNodeCount: BigNumberish];
215
+ type OutputTuple = [e3Id: bigint, paymentAmount: bigint, honestNodeCount: bigint];
216
+ interface OutputObject {
217
+ e3Id: bigint;
218
+ paymentAmount: bigint;
219
+ honestNodeCount: bigint;
149
220
  }
150
221
  type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
151
222
  type Filter = TypedDeferredTopicFilter<Event>;
@@ -174,6 +245,17 @@ export declare namespace E3ProgramEnabledEvent {
174
245
  type Log = TypedEventLog<Event>;
175
246
  type LogDescription = TypedLogDescription<Event>;
176
247
  }
248
+ export declare namespace E3RefundManagerSetEvent {
249
+ type InputTuple = [e3RefundManager: AddressLike];
250
+ type OutputTuple = [e3RefundManager: string];
251
+ interface OutputObject {
252
+ e3RefundManager: string;
253
+ }
254
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
255
+ type Filter = TypedDeferredTopicFilter<Event>;
256
+ type Log = TypedEventLog<Event>;
257
+ type LogDescription = TypedLogDescription<Event>;
258
+ }
177
259
  export declare namespace E3RequestedEvent {
178
260
  type InputTuple = [e3Id: BigNumberish, e3: E3Struct, e3Program: AddressLike];
179
261
  type OutputTuple = [e3Id: bigint, e3: E3StructOutput, e3Program: string];
@@ -187,6 +269,19 @@ export declare namespace E3RequestedEvent {
187
269
  type Log = TypedEventLog<Event>;
188
270
  type LogDescription = TypedLogDescription<Event>;
189
271
  }
272
+ export declare namespace E3StageChangedEvent {
273
+ type InputTuple = [e3Id: BigNumberish, previousStage: BigNumberish, newStage: BigNumberish];
274
+ type OutputTuple = [e3Id: bigint, previousStage: bigint, newStage: bigint];
275
+ interface OutputObject {
276
+ e3Id: bigint;
277
+ previousStage: bigint;
278
+ newStage: bigint;
279
+ }
280
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
281
+ type Filter = TypedDeferredTopicFilter<Event>;
282
+ type Log = TypedEventLog<Event>;
283
+ type LogDescription = TypedLogDescription<Event>;
284
+ }
190
285
  export declare namespace EncryptionSchemeDisabledEvent {
191
286
  type InputTuple = [encryptionSchemeId: BytesLike];
192
287
  type OutputTuple = [encryptionSchemeId: string];
@@ -270,6 +365,17 @@ export declare namespace RewardsDistributedEvent {
270
365
  type Log = TypedEventLog<Event>;
271
366
  type LogDescription = TypedLogDescription<Event>;
272
367
  }
368
+ export declare namespace TimeoutConfigUpdatedEvent {
369
+ type InputTuple = [config: IEnclave.E3TimeoutConfigStruct];
370
+ type OutputTuple = [config: IEnclave.E3TimeoutConfigStructOutput];
371
+ interface OutputObject {
372
+ config: IEnclave.E3TimeoutConfigStructOutput;
373
+ }
374
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
375
+ type Filter = TypedDeferredTopicFilter<Event>;
376
+ type Log = TypedEventLog<Event>;
377
+ type LogDescription = TypedLogDescription<Event>;
378
+ }
273
379
  export interface IEnclave extends BaseContract {
274
380
  connect(runner?: ContractRunner | null): IEnclave;
275
381
  waitForDeployment(): Promise<this>;
@@ -283,30 +389,42 @@ export interface IEnclave extends BaseContract {
283
389
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
284
390
  listeners(eventName?: string): Promise<Array<Listener>>;
285
391
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
286
- activate: TypedContractMethod<[
392
+ bondingRegistry: TypedContractMethod<[
393
+ ], [
394
+ string
395
+ ], 'view'>;
396
+ checkFailureCondition: TypedContractMethod<[
287
397
  e3Id: BigNumberish
288
398
  ], [
289
- boolean
290
- ], 'nonpayable'>;
399
+ [boolean, bigint] & {
400
+ canFail: boolean;
401
+ reason: bigint;
402
+ }
403
+ ], 'view'>;
291
404
  disableE3Program: TypedContractMethod<[
292
405
  e3Program: AddressLike
293
406
  ], [
294
- boolean
407
+ void
295
408
  ], 'nonpayable'>;
296
409
  disableEncryptionScheme: TypedContractMethod<[
297
410
  encryptionSchemeId: BytesLike
298
411
  ], [
299
- boolean
412
+ void
300
413
  ], 'nonpayable'>;
301
414
  enableE3Program: TypedContractMethod<[
302
415
  e3Program: AddressLike
303
416
  ], [
304
- boolean
417
+ void
305
418
  ], 'nonpayable'>;
306
419
  feeToken: TypedContractMethod<[
307
420
  ], [
308
421
  string
309
422
  ], 'view'>;
423
+ getDeadlines: TypedContractMethod<[
424
+ e3Id: BigNumberish
425
+ ], [
426
+ IEnclave.E3DeadlinesStructOutput
427
+ ], 'view'>;
310
428
  getDecryptionVerifier: TypedContractMethod<[
311
429
  encryptionSchemeId: BytesLike
312
430
  ], [
@@ -322,16 +440,51 @@ export interface IEnclave extends BaseContract {
322
440
  ], [
323
441
  bigint
324
442
  ], 'view'>;
325
- publishCiphertextOutput: TypedContractMethod<[
443
+ getE3Stage: TypedContractMethod<[
444
+ e3Id: BigNumberish
445
+ ], [
446
+ bigint
447
+ ], 'view'>;
448
+ getFailureReason: TypedContractMethod<[
449
+ e3Id: BigNumberish
450
+ ], [
451
+ bigint
452
+ ], 'view'>;
453
+ getRequester: TypedContractMethod<[
454
+ e3Id: BigNumberish
455
+ ], [
456
+ string
457
+ ], 'view'>;
458
+ getTimeoutConfig: TypedContractMethod<[
459
+ ], [
460
+ IEnclave.E3TimeoutConfigStructOutput
461
+ ], 'view'>;
462
+ markE3Failed: TypedContractMethod<[
463
+ e3Id: BigNumberish
464
+ ], [
465
+ bigint
466
+ ], 'nonpayable'>;
467
+ onCommitteeFinalized: TypedContractMethod<[
468
+ e3Id: BigNumberish
469
+ ], [
470
+ void
471
+ ], 'nonpayable'>;
472
+ onCommitteePublished: TypedContractMethod<[
326
473
  e3Id: BigNumberish,
327
- ciphertextOutput: BytesLike,
328
- proof: BytesLike
474
+ committeePublicKeyHash: BytesLike
329
475
  ], [
330
- boolean
476
+ void
331
477
  ], 'nonpayable'>;
332
- publishInput: TypedContractMethod<[
478
+ onE3Failed: TypedContractMethod<[
479
+ e3Id: BigNumberish,
480
+ reason: BigNumberish
481
+ ], [
482
+ void
483
+ ], 'nonpayable'>;
484
+ publishCiphertextOutput: TypedContractMethod<[
333
485
  e3Id: BigNumberish,
334
- data: BytesLike
486
+ ciphertextOutput: BytesLike,
487
+ proof: BytesLike
335
488
  ], [
336
489
  boolean
337
490
  ], 'nonpayable'>;
@@ -353,59 +506,76 @@ export interface IEnclave extends BaseContract {
353
506
  setBondingRegistry: TypedContractMethod<[
354
507
  _bondingRegistry: AddressLike
355
508
  ], [
356
- boolean
509
+ void
357
510
  ], 'nonpayable'>;
358
511
  setCiphernodeRegistry: TypedContractMethod<[
359
512
  _ciphernodeRegistry: AddressLike
360
513
  ], [
361
- boolean
514
+ void
362
515
  ], 'nonpayable'>;
363
516
  setDecryptionVerifier: TypedContractMethod<[
364
517
  encryptionSchemeId: BytesLike,
365
518
  decryptionVerifier: AddressLike
366
519
  ], [
367
- boolean
520
+ void
368
521
  ], 'nonpayable'>;
369
522
  setE3ProgramsParams: TypedContractMethod<[
370
523
  _e3ProgramsParams: BytesLike[]
371
524
  ], [
372
- boolean
525
+ void
373
526
  ], 'nonpayable'>;
374
527
  setFeeToken: TypedContractMethod<[
375
528
  _feeToken: AddressLike
376
529
  ], [
377
- boolean
530
+ void
378
531
  ], 'nonpayable'>;
379
532
  setMaxDuration: TypedContractMethod<[
380
533
  _maxDuration: BigNumberish
381
534
  ], [
382
- boolean
535
+ void
536
+ ], 'nonpayable'>;
537
+ setTimeoutConfig: TypedContractMethod<[
538
+ config: IEnclave.E3TimeoutConfigStruct
539
+ ], [
540
+ void
383
541
  ], 'nonpayable'>;
384
542
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
385
- getFunction(nameOrSignature: 'activate'): TypedContractMethod<[
543
+ getFunction(nameOrSignature: 'bondingRegistry'): TypedContractMethod<[
544
+ ], [
545
+ string
546
+ ], 'view'>;
547
+ getFunction(nameOrSignature: 'checkFailureCondition'): TypedContractMethod<[
386
548
  e3Id: BigNumberish
387
549
  ], [
388
- boolean
389
- ], 'nonpayable'>;
550
+ [boolean, bigint] & {
551
+ canFail: boolean;
552
+ reason: bigint;
553
+ }
554
+ ], 'view'>;
390
555
  getFunction(nameOrSignature: 'disableE3Program'): TypedContractMethod<[
391
556
  e3Program: AddressLike
392
557
  ], [
393
- boolean
558
+ void
394
559
  ], 'nonpayable'>;
395
560
  getFunction(nameOrSignature: 'disableEncryptionScheme'): TypedContractMethod<[
396
561
  encryptionSchemeId: BytesLike
397
562
  ], [
398
- boolean
563
+ void
399
564
  ], 'nonpayable'>;
400
565
  getFunction(nameOrSignature: 'enableE3Program'): TypedContractMethod<[
401
566
  e3Program: AddressLike
402
567
  ], [
403
- boolean
568
+ void
404
569
  ], 'nonpayable'>;
405
570
  getFunction(nameOrSignature: 'feeToken'): TypedContractMethod<[
406
571
  ], [
407
572
  string
408
573
  ], 'view'>;
574
+ getFunction(nameOrSignature: 'getDeadlines'): TypedContractMethod<[
575
+ e3Id: BigNumberish
576
+ ], [
577
+ IEnclave.E3DeadlinesStructOutput
578
+ ], 'view'>;
409
579
  getFunction(nameOrSignature: 'getDecryptionVerifier'): TypedContractMethod<[
410
580
  encryptionSchemeId: BytesLike
411
581
  ], [
@@ -421,16 +591,51 @@ export interface IEnclave extends BaseContract {
421
591
  ], [
422
592
  bigint
423
593
  ], 'view'>;
424
- getFunction(nameOrSignature: 'publishCiphertextOutput'): TypedContractMethod<[
594
+ getFunction(nameOrSignature: 'getE3Stage'): TypedContractMethod<[
595
+ e3Id: BigNumberish
596
+ ], [
597
+ bigint
598
+ ], 'view'>;
599
+ getFunction(nameOrSignature: 'getFailureReason'): TypedContractMethod<[
600
+ e3Id: BigNumberish
601
+ ], [
602
+ bigint
603
+ ], 'view'>;
604
+ getFunction(nameOrSignature: 'getRequester'): TypedContractMethod<[
605
+ e3Id: BigNumberish
606
+ ], [
607
+ string
608
+ ], 'view'>;
609
+ getFunction(nameOrSignature: 'getTimeoutConfig'): TypedContractMethod<[
610
+ ], [
611
+ IEnclave.E3TimeoutConfigStructOutput
612
+ ], 'view'>;
613
+ getFunction(nameOrSignature: 'markE3Failed'): TypedContractMethod<[
614
+ e3Id: BigNumberish
615
+ ], [
616
+ bigint
617
+ ], 'nonpayable'>;
618
+ getFunction(nameOrSignature: 'onCommitteeFinalized'): TypedContractMethod<[
619
+ e3Id: BigNumberish
620
+ ], [
621
+ void
622
+ ], 'nonpayable'>;
623
+ getFunction(nameOrSignature: 'onCommitteePublished'): TypedContractMethod<[
425
624
  e3Id: BigNumberish,
426
- ciphertextOutput: BytesLike,
427
- proof: BytesLike
625
+ committeePublicKeyHash: BytesLike
428
626
  ], [
429
- boolean
627
+ void
430
628
  ], 'nonpayable'>;
431
- getFunction(nameOrSignature: 'publishInput'): TypedContractMethod<[
629
+ getFunction(nameOrSignature: 'onE3Failed'): TypedContractMethod<[
432
630
  e3Id: BigNumberish,
433
- data: BytesLike
631
+ reason: BigNumberish
632
+ ], [
633
+ void
634
+ ], 'nonpayable'>;
635
+ getFunction(nameOrSignature: 'publishCiphertextOutput'): TypedContractMethod<[
636
+ e3Id: BigNumberish,
637
+ ciphertextOutput: BytesLike,
638
+ proof: BytesLike
434
639
  ], [
435
640
  boolean
436
641
  ], 'nonpayable'>;
@@ -452,42 +657,52 @@ export interface IEnclave extends BaseContract {
452
657
  getFunction(nameOrSignature: 'setBondingRegistry'): TypedContractMethod<[
453
658
  _bondingRegistry: AddressLike
454
659
  ], [
455
- boolean
660
+ void
456
661
  ], 'nonpayable'>;
457
662
  getFunction(nameOrSignature: 'setCiphernodeRegistry'): TypedContractMethod<[
458
663
  _ciphernodeRegistry: AddressLike
459
664
  ], [
460
- boolean
665
+ void
461
666
  ], 'nonpayable'>;
462
667
  getFunction(nameOrSignature: 'setDecryptionVerifier'): TypedContractMethod<[
463
668
  encryptionSchemeId: BytesLike,
464
669
  decryptionVerifier: AddressLike
465
670
  ], [
466
- boolean
671
+ void
467
672
  ], 'nonpayable'>;
468
673
  getFunction(nameOrSignature: 'setE3ProgramsParams'): TypedContractMethod<[
469
674
  _e3ProgramsParams: BytesLike[]
470
675
  ], [
471
- boolean
676
+ void
472
677
  ], 'nonpayable'>;
473
678
  getFunction(nameOrSignature: 'setFeeToken'): TypedContractMethod<[
474
679
  _feeToken: AddressLike
475
680
  ], [
476
- boolean
681
+ void
477
682
  ], 'nonpayable'>;
478
683
  getFunction(nameOrSignature: 'setMaxDuration'): TypedContractMethod<[
479
684
  _maxDuration: BigNumberish
480
685
  ], [
481
- boolean
686
+ void
687
+ ], 'nonpayable'>;
688
+ getFunction(nameOrSignature: 'setTimeoutConfig'): TypedContractMethod<[
689
+ config: IEnclave.E3TimeoutConfigStruct
690
+ ], [
691
+ void
482
692
  ], 'nonpayable'>;
483
693
  getEvent(key: 'AllowedE3ProgramsParamsSet'): TypedContractEvent<AllowedE3ProgramsParamsSetEvent.InputTuple, AllowedE3ProgramsParamsSetEvent.OutputTuple, AllowedE3ProgramsParamsSetEvent.OutputObject>;
484
694
  getEvent(key: 'BondingRegistrySet'): TypedContractEvent<BondingRegistrySetEvent.InputTuple, BondingRegistrySetEvent.OutputTuple, BondingRegistrySetEvent.OutputObject>;
485
695
  getEvent(key: 'CiphernodeRegistrySet'): TypedContractEvent<CiphernodeRegistrySetEvent.InputTuple, CiphernodeRegistrySetEvent.OutputTuple, CiphernodeRegistrySetEvent.OutputObject>;
486
696
  getEvent(key: 'CiphertextOutputPublished'): TypedContractEvent<CiphertextOutputPublishedEvent.InputTuple, CiphertextOutputPublishedEvent.OutputTuple, CiphertextOutputPublishedEvent.OutputObject>;
487
- getEvent(key: 'E3Activated'): TypedContractEvent<E3ActivatedEvent.InputTuple, E3ActivatedEvent.OutputTuple, E3ActivatedEvent.OutputObject>;
697
+ getEvent(key: 'CommitteeFinalized'): TypedContractEvent<CommitteeFinalizedEvent.InputTuple, CommitteeFinalizedEvent.OutputTuple, CommitteeFinalizedEvent.OutputObject>;
698
+ getEvent(key: 'CommitteeFormed'): TypedContractEvent<CommitteeFormedEvent.InputTuple, CommitteeFormedEvent.OutputTuple, CommitteeFormedEvent.OutputObject>;
699
+ getEvent(key: 'E3Failed'): TypedContractEvent<E3FailedEvent.InputTuple, E3FailedEvent.OutputTuple, E3FailedEvent.OutputObject>;
700
+ getEvent(key: 'E3FailureProcessed'): TypedContractEvent<E3FailureProcessedEvent.InputTuple, E3FailureProcessedEvent.OutputTuple, E3FailureProcessedEvent.OutputObject>;
488
701
  getEvent(key: 'E3ProgramDisabled'): TypedContractEvent<E3ProgramDisabledEvent.InputTuple, E3ProgramDisabledEvent.OutputTuple, E3ProgramDisabledEvent.OutputObject>;
489
702
  getEvent(key: 'E3ProgramEnabled'): TypedContractEvent<E3ProgramEnabledEvent.InputTuple, E3ProgramEnabledEvent.OutputTuple, E3ProgramEnabledEvent.OutputObject>;
703
+ getEvent(key: 'E3RefundManagerSet'): TypedContractEvent<E3RefundManagerSetEvent.InputTuple, E3RefundManagerSetEvent.OutputTuple, E3RefundManagerSetEvent.OutputObject>;
490
704
  getEvent(key: 'E3Requested'): TypedContractEvent<E3RequestedEvent.InputTuple, E3RequestedEvent.OutputTuple, E3RequestedEvent.OutputObject>;
705
+ getEvent(key: 'E3StageChanged'): TypedContractEvent<E3StageChangedEvent.InputTuple, E3StageChangedEvent.OutputTuple, E3StageChangedEvent.OutputObject>;
491
706
  getEvent(key: 'EncryptionSchemeDisabled'): TypedContractEvent<EncryptionSchemeDisabledEvent.InputTuple, EncryptionSchemeDisabledEvent.OutputTuple, EncryptionSchemeDisabledEvent.OutputObject>;
492
707
  getEvent(key: 'EncryptionSchemeEnabled'): TypedContractEvent<EncryptionSchemeEnabledEvent.InputTuple, EncryptionSchemeEnabledEvent.OutputTuple, EncryptionSchemeEnabledEvent.OutputObject>;
493
708
  getEvent(key: 'FeeTokenSet'): TypedContractEvent<FeeTokenSetEvent.InputTuple, FeeTokenSetEvent.OutputTuple, FeeTokenSetEvent.OutputObject>;
@@ -495,6 +710,7 @@ export interface IEnclave extends BaseContract {
495
710
  getEvent(key: 'MaxDurationSet'): TypedContractEvent<MaxDurationSetEvent.InputTuple, MaxDurationSetEvent.OutputTuple, MaxDurationSetEvent.OutputObject>;
496
711
  getEvent(key: 'PlaintextOutputPublished'): TypedContractEvent<PlaintextOutputPublishedEvent.InputTuple, PlaintextOutputPublishedEvent.OutputTuple, PlaintextOutputPublishedEvent.OutputObject>;
497
712
  getEvent(key: 'RewardsDistributed'): TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
713
+ getEvent(key: 'TimeoutConfigUpdated'): TypedContractEvent<TimeoutConfigUpdatedEvent.InputTuple, TimeoutConfigUpdatedEvent.OutputTuple, TimeoutConfigUpdatedEvent.OutputObject>;
498
714
  filters: {
499
715
  'AllowedE3ProgramsParamsSet(bytes[])': TypedContractEvent<AllowedE3ProgramsParamsSetEvent.InputTuple, AllowedE3ProgramsParamsSetEvent.OutputTuple, AllowedE3ProgramsParamsSetEvent.OutputObject>;
500
716
  AllowedE3ProgramsParamsSet: TypedContractEvent<AllowedE3ProgramsParamsSetEvent.InputTuple, AllowedE3ProgramsParamsSetEvent.OutputTuple, AllowedE3ProgramsParamsSetEvent.OutputObject>;
@@ -504,14 +720,24 @@ export interface IEnclave extends BaseContract {
504
720
  CiphernodeRegistrySet: TypedContractEvent<CiphernodeRegistrySetEvent.InputTuple, CiphernodeRegistrySetEvent.OutputTuple, CiphernodeRegistrySetEvent.OutputObject>;
505
721
  'CiphertextOutputPublished(uint256,bytes)': TypedContractEvent<CiphertextOutputPublishedEvent.InputTuple, CiphertextOutputPublishedEvent.OutputTuple, CiphertextOutputPublishedEvent.OutputObject>;
506
722
  CiphertextOutputPublished: TypedContractEvent<CiphertextOutputPublishedEvent.InputTuple, CiphertextOutputPublishedEvent.OutputTuple, CiphertextOutputPublishedEvent.OutputObject>;
507
- 'E3Activated(uint256,uint256,bytes32)': TypedContractEvent<E3ActivatedEvent.InputTuple, E3ActivatedEvent.OutputTuple, E3ActivatedEvent.OutputObject>;
508
- E3Activated: TypedContractEvent<E3ActivatedEvent.InputTuple, E3ActivatedEvent.OutputTuple, E3ActivatedEvent.OutputObject>;
723
+ 'CommitteeFinalized(uint256)': TypedContractEvent<CommitteeFinalizedEvent.InputTuple, CommitteeFinalizedEvent.OutputTuple, CommitteeFinalizedEvent.OutputObject>;
724
+ CommitteeFinalized: TypedContractEvent<CommitteeFinalizedEvent.InputTuple, CommitteeFinalizedEvent.OutputTuple, CommitteeFinalizedEvent.OutputObject>;
725
+ 'CommitteeFormed(uint256)': TypedContractEvent<CommitteeFormedEvent.InputTuple, CommitteeFormedEvent.OutputTuple, CommitteeFormedEvent.OutputObject>;
726
+ CommitteeFormed: TypedContractEvent<CommitteeFormedEvent.InputTuple, CommitteeFormedEvent.OutputTuple, CommitteeFormedEvent.OutputObject>;
727
+ 'E3Failed(uint256,uint8,uint8)': TypedContractEvent<E3FailedEvent.InputTuple, E3FailedEvent.OutputTuple, E3FailedEvent.OutputObject>;
728
+ E3Failed: TypedContractEvent<E3FailedEvent.InputTuple, E3FailedEvent.OutputTuple, E3FailedEvent.OutputObject>;
729
+ 'E3FailureProcessed(uint256,uint256,uint256)': TypedContractEvent<E3FailureProcessedEvent.InputTuple, E3FailureProcessedEvent.OutputTuple, E3FailureProcessedEvent.OutputObject>;
730
+ E3FailureProcessed: TypedContractEvent<E3FailureProcessedEvent.InputTuple, E3FailureProcessedEvent.OutputTuple, E3FailureProcessedEvent.OutputObject>;
509
731
  'E3ProgramDisabled(address)': TypedContractEvent<E3ProgramDisabledEvent.InputTuple, E3ProgramDisabledEvent.OutputTuple, E3ProgramDisabledEvent.OutputObject>;
510
732
  E3ProgramDisabled: TypedContractEvent<E3ProgramDisabledEvent.InputTuple, E3ProgramDisabledEvent.OutputTuple, E3ProgramDisabledEvent.OutputObject>;
511
733
  'E3ProgramEnabled(address)': TypedContractEvent<E3ProgramEnabledEvent.InputTuple, E3ProgramEnabledEvent.OutputTuple, E3ProgramEnabledEvent.OutputObject>;
512
734
  E3ProgramEnabled: TypedContractEvent<E3ProgramEnabledEvent.InputTuple, E3ProgramEnabledEvent.OutputTuple, E3ProgramEnabledEvent.OutputObject>;
735
+ 'E3RefundManagerSet(address)': TypedContractEvent<E3RefundManagerSetEvent.InputTuple, E3RefundManagerSetEvent.OutputTuple, E3RefundManagerSetEvent.OutputObject>;
736
+ E3RefundManagerSet: TypedContractEvent<E3RefundManagerSetEvent.InputTuple, E3RefundManagerSetEvent.OutputTuple, E3RefundManagerSetEvent.OutputObject>;
513
737
  'E3Requested(uint256,tuple,address)': TypedContractEvent<E3RequestedEvent.InputTuple, E3RequestedEvent.OutputTuple, E3RequestedEvent.OutputObject>;
514
738
  E3Requested: TypedContractEvent<E3RequestedEvent.InputTuple, E3RequestedEvent.OutputTuple, E3RequestedEvent.OutputObject>;
739
+ 'E3StageChanged(uint256,uint8,uint8)': TypedContractEvent<E3StageChangedEvent.InputTuple, E3StageChangedEvent.OutputTuple, E3StageChangedEvent.OutputObject>;
740
+ E3StageChanged: TypedContractEvent<E3StageChangedEvent.InputTuple, E3StageChangedEvent.OutputTuple, E3StageChangedEvent.OutputObject>;
515
741
  'EncryptionSchemeDisabled(bytes32)': TypedContractEvent<EncryptionSchemeDisabledEvent.InputTuple, EncryptionSchemeDisabledEvent.OutputTuple, EncryptionSchemeDisabledEvent.OutputObject>;
516
742
  EncryptionSchemeDisabled: TypedContractEvent<EncryptionSchemeDisabledEvent.InputTuple, EncryptionSchemeDisabledEvent.OutputTuple, EncryptionSchemeDisabledEvent.OutputObject>;
517
743
  'EncryptionSchemeEnabled(bytes32)': TypedContractEvent<EncryptionSchemeEnabledEvent.InputTuple, EncryptionSchemeEnabledEvent.OutputTuple, EncryptionSchemeEnabledEvent.OutputObject>;
@@ -526,6 +752,8 @@ export interface IEnclave extends BaseContract {
526
752
  PlaintextOutputPublished: TypedContractEvent<PlaintextOutputPublishedEvent.InputTuple, PlaintextOutputPublishedEvent.OutputTuple, PlaintextOutputPublishedEvent.OutputObject>;
527
753
  'RewardsDistributed(uint256,address[],uint256[])': TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
528
754
  RewardsDistributed: TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
755
+ 'TimeoutConfigUpdated(tuple)': TypedContractEvent<TimeoutConfigUpdatedEvent.InputTuple, TimeoutConfigUpdatedEvent.OutputTuple, TimeoutConfigUpdatedEvent.OutputObject>;
756
+ TimeoutConfigUpdated: TypedContractEvent<TimeoutConfigUpdatedEvent.InputTuple, TimeoutConfigUpdatedEvent.OutputTuple, TimeoutConfigUpdatedEvent.OutputObject>;
529
757
  };
530
758
  }
531
759
  //# sourceMappingURL=IEnclave.d.ts.map