gate-evm-tools 1.0.25 → 1.0.27

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 (352) hide show
  1. package/README.md +33 -11
  2. package/bin/workflow.cjs +19 -0
  3. package/dist/commands/check.d.ts.map +1 -1
  4. package/dist/commands/check.js +21 -57
  5. package/dist/commands/check.js.map +1 -1
  6. package/dist/commands/checkBatch.d.ts +4 -0
  7. package/dist/commands/checkBatch.d.ts.map +1 -0
  8. package/dist/commands/checkBatch.js +57 -0
  9. package/dist/commands/checkBatch.js.map +1 -0
  10. package/dist/commands/checkOptions.d.ts +3 -0
  11. package/dist/commands/checkOptions.d.ts.map +1 -1
  12. package/dist/commands/checkOptions.js +10 -1
  13. package/dist/commands/checkOptions.js.map +1 -1
  14. package/dist/commands/prepare.d.ts +1 -2
  15. package/dist/commands/prepare.d.ts.map +1 -1
  16. package/dist/commands/prepare.js +2 -17
  17. package/dist/commands/prepare.js.map +1 -1
  18. package/dist/commands/sync.d.ts.map +1 -1
  19. package/dist/commands/sync.js +2 -17
  20. package/dist/commands/sync.js.map +1 -1
  21. package/dist/commands/validate.d.ts.map +1 -1
  22. package/dist/commands/validate.js +2 -17
  23. package/dist/commands/validate.js.map +1 -1
  24. package/dist/core/BytecodeChecker.d.ts.map +1 -1
  25. package/dist/core/BytecodeChecker.js +16 -1
  26. package/dist/core/BytecodeChecker.js.map +1 -1
  27. package/dist/core/legacyProxyArtifact.d.ts +6 -0
  28. package/dist/core/legacyProxyArtifact.d.ts.map +1 -0
  29. package/dist/core/legacyProxyArtifact.js +36 -0
  30. package/dist/core/legacyProxyArtifact.js.map +1 -0
  31. package/dist/index.js +3 -3
  32. package/dist/index.js.map +1 -1
  33. package/dist/types.d.ts +2 -2
  34. package/dist/types.d.ts.map +1 -1
  35. package/dist/utils/hardhat.d.ts +4 -0
  36. package/dist/utils/hardhat.d.ts.map +1 -0
  37. package/dist/utils/hardhat.js +9 -0
  38. package/dist/utils/hardhat.js.map +1 -0
  39. package/dist-runtime/config/hardhatAdapters.d.ts +5 -0
  40. package/dist-runtime/config/hardhatAdapters.js +53 -0
  41. package/dist-runtime/config/hardhatAdapters.js.map +1 -0
  42. package/dist-runtime/config/networks.d.ts +8 -0
  43. package/dist-runtime/config/networks.js +269 -0
  44. package/dist-runtime/config/networks.js.map +1 -0
  45. package/dist-runtime/config/openzeppelin.d.ts +28 -0
  46. package/dist-runtime/config/openzeppelin.js +144 -0
  47. package/dist-runtime/config/openzeppelin.js.map +1 -0
  48. package/dist-runtime/config/rpc.d.ts +7 -0
  49. package/dist-runtime/config/rpc.js +19 -0
  50. package/dist-runtime/config/rpc.js.map +1 -0
  51. package/dist-runtime/config/zksyncSolcPath.d.ts +1 -0
  52. package/dist-runtime/config/zksyncSolcPath.js +61 -0
  53. package/dist-runtime/config/zksyncSolcPath.js.map +1 -0
  54. package/dist-runtime/migrate.d.ts +13 -0
  55. package/dist-runtime/migrate.js +208 -0
  56. package/dist-runtime/migrate.js.map +1 -0
  57. package/dist-runtime/package.json +1 -0
  58. package/dist-runtime/projectHardhat.d.ts +4 -0
  59. package/dist-runtime/projectHardhat.js +16 -0
  60. package/dist-runtime/projectHardhat.js.map +1 -0
  61. package/dist-runtime/runtime-identity.json +4 -0
  62. package/dist-runtime/template-migration.json +293 -0
  63. package/dist-runtime/workflow/checkCode.d.ts +1 -0
  64. package/dist-runtime/workflow/checkCode.js +16 -0
  65. package/dist-runtime/workflow/checkCode.js.map +1 -0
  66. package/dist-runtime/workflow/checkCodeFinalize.d.ts +1 -0
  67. package/dist-runtime/workflow/checkCodeFinalize.js +11 -0
  68. package/dist-runtime/workflow/checkCodeFinalize.js.map +1 -0
  69. package/dist-runtime/workflow/checkCodePlan.d.ts +1 -0
  70. package/dist-runtime/workflow/checkCodePlan.js +11 -0
  71. package/dist-runtime/workflow/checkCodePlan.js.map +1 -0
  72. package/dist-runtime/workflow/cli.d.ts +1 -0
  73. package/dist-runtime/workflow/cli.js +302 -0
  74. package/dist-runtime/workflow/cli.js.map +1 -0
  75. package/dist-runtime/workflow/commitContractInfo.d.ts +1 -0
  76. package/dist-runtime/workflow/commitContractInfo.js +64 -0
  77. package/dist-runtime/workflow/commitContractInfo.js.map +1 -0
  78. package/dist-runtime/workflow/create2Hashes.d.ts +1 -0
  79. package/dist-runtime/workflow/create2Hashes.js +76 -0
  80. package/dist-runtime/workflow/create2Hashes.js.map +1 -0
  81. package/dist-runtime/workflow/forkSourceProxy.d.ts +1 -0
  82. package/dist-runtime/workflow/forkSourceProxy.js +151 -0
  83. package/dist-runtime/workflow/forkSourceProxy.js.map +1 -0
  84. package/dist-runtime/workflow/importState.d.ts +1 -0
  85. package/dist-runtime/workflow/importState.js +193 -0
  86. package/dist-runtime/workflow/importState.js.map +1 -0
  87. package/dist-runtime/workflow/lib/authority.d.ts +28 -0
  88. package/dist-runtime/workflow/lib/authority.js +122 -0
  89. package/dist-runtime/workflow/lib/authority.js.map +1 -0
  90. package/dist-runtime/workflow/lib/calldata.d.ts +2 -0
  91. package/dist-runtime/workflow/lib/calldata.js +8 -0
  92. package/dist-runtime/workflow/lib/calldata.js.map +1 -0
  93. package/dist-runtime/workflow/lib/calls.d.ts +23 -0
  94. package/dist-runtime/workflow/lib/calls.js +316 -0
  95. package/dist-runtime/workflow/lib/calls.js.map +1 -0
  96. package/dist-runtime/workflow/lib/checkCode/args.d.ts +2 -0
  97. package/dist-runtime/workflow/lib/checkCode/args.js +68 -0
  98. package/dist-runtime/workflow/lib/checkCode/args.js.map +1 -0
  99. package/dist-runtime/workflow/lib/checkCode/command.d.ts +5 -0
  100. package/dist-runtime/workflow/lib/checkCode/command.js +35 -0
  101. package/dist-runtime/workflow/lib/checkCode/command.js.map +1 -0
  102. package/dist-runtime/workflow/lib/checkCode/dependencies.d.ts +6 -0
  103. package/dist-runtime/workflow/lib/checkCode/dependencies.js +125 -0
  104. package/dist-runtime/workflow/lib/checkCode/dependencies.js.map +1 -0
  105. package/dist-runtime/workflow/lib/checkCode/finalize.d.ts +17 -0
  106. package/dist-runtime/workflow/lib/checkCode/finalize.js +174 -0
  107. package/dist-runtime/workflow/lib/checkCode/finalize.js.map +1 -0
  108. package/dist-runtime/workflow/lib/checkCode/index.d.ts +3 -0
  109. package/dist-runtime/workflow/lib/checkCode/index.js +20 -0
  110. package/dist-runtime/workflow/lib/checkCode/index.js.map +1 -0
  111. package/dist-runtime/workflow/lib/checkCode/plan.d.ts +22 -0
  112. package/dist-runtime/workflow/lib/checkCode/plan.js +145 -0
  113. package/dist-runtime/workflow/lib/checkCode/plan.js.map +1 -0
  114. package/dist-runtime/workflow/lib/checkCodeReport.d.ts +25 -0
  115. package/dist-runtime/workflow/lib/checkCodeReport.js +102 -0
  116. package/dist-runtime/workflow/lib/checkCodeReport.js.map +1 -0
  117. package/dist-runtime/workflow/lib/checkCodeRunner.d.ts +87 -0
  118. package/dist-runtime/workflow/lib/checkCodeRunner.js +964 -0
  119. package/dist-runtime/workflow/lib/checkCodeRunner.js.map +1 -0
  120. package/dist-runtime/workflow/lib/cliTool.d.ts +10 -0
  121. package/dist-runtime/workflow/lib/cliTool.js +25 -0
  122. package/dist-runtime/workflow/lib/cliTool.js.map +1 -0
  123. package/dist-runtime/workflow/lib/config.d.ts +33 -0
  124. package/dist-runtime/workflow/lib/config.js +100 -0
  125. package/dist-runtime/workflow/lib/config.js.map +1 -0
  126. package/dist-runtime/workflow/lib/contractInfoCandidates.d.ts +82 -0
  127. package/dist-runtime/workflow/lib/contractInfoCandidates.js +441 -0
  128. package/dist-runtime/workflow/lib/contractInfoCandidates.js.map +1 -0
  129. package/dist-runtime/workflow/lib/create2.d.ts +49 -0
  130. package/dist-runtime/workflow/lib/create2.js +194 -0
  131. package/dist-runtime/workflow/lib/create2.js.map +1 -0
  132. package/dist-runtime/workflow/lib/create2Hashes.d.ts +22 -0
  133. package/dist-runtime/workflow/lib/create2Hashes.js +57 -0
  134. package/dist-runtime/workflow/lib/create2Hashes.js.map +1 -0
  135. package/dist-runtime/workflow/lib/deploymentInfo.d.ts +40 -0
  136. package/dist-runtime/workflow/lib/deploymentInfo.js +240 -0
  137. package/dist-runtime/workflow/lib/deploymentInfo.js.map +1 -0
  138. package/dist-runtime/workflow/lib/deploymentRecords.d.ts +137 -0
  139. package/dist-runtime/workflow/lib/deploymentRecords.js +374 -0
  140. package/dist-runtime/workflow/lib/deploymentRecords.js.map +1 -0
  141. package/dist-runtime/workflow/lib/deployments.d.ts +21 -0
  142. package/dist-runtime/workflow/lib/deployments.js +240 -0
  143. package/dist-runtime/workflow/lib/deployments.js.map +1 -0
  144. package/dist-runtime/workflow/lib/erc1967.d.ts +5 -0
  145. package/dist-runtime/workflow/lib/erc1967.js +29 -0
  146. package/dist-runtime/workflow/lib/erc1967.js.map +1 -0
  147. package/dist-runtime/workflow/lib/errors.d.ts +6 -0
  148. package/dist-runtime/workflow/lib/errors.js +77 -0
  149. package/dist-runtime/workflow/lib/errors.js.map +1 -0
  150. package/dist-runtime/workflow/lib/executionId.d.ts +7 -0
  151. package/dist-runtime/workflow/lib/executionId.js +26 -0
  152. package/dist-runtime/workflow/lib/executionId.js.map +1 -0
  153. package/dist-runtime/workflow/lib/executionPlan.d.ts +85 -0
  154. package/dist-runtime/workflow/lib/executionPlan.js +450 -0
  155. package/dist-runtime/workflow/lib/executionPlan.js.map +1 -0
  156. package/dist-runtime/workflow/lib/executionProgress.d.ts +5 -0
  157. package/dist-runtime/workflow/lib/executionProgress.js +100 -0
  158. package/dist-runtime/workflow/lib/executionProgress.js.map +1 -0
  159. package/dist-runtime/workflow/lib/external.d.ts +62 -0
  160. package/dist-runtime/workflow/lib/external.js +282 -0
  161. package/dist-runtime/workflow/lib/external.js.map +1 -0
  162. package/dist-runtime/workflow/lib/externalExecutionScanner.d.ts +64 -0
  163. package/dist-runtime/workflow/lib/externalExecutionScanner.js +638 -0
  164. package/dist-runtime/workflow/lib/externalExecutionScanner.js.map +1 -0
  165. package/dist-runtime/workflow/lib/forkSnapshot.d.ts +34 -0
  166. package/dist-runtime/workflow/lib/forkSnapshot.js +167 -0
  167. package/dist-runtime/workflow/lib/forkSnapshot.js.map +1 -0
  168. package/dist-runtime/workflow/lib/gateTool.d.ts +16 -0
  169. package/dist-runtime/workflow/lib/gateTool.js +177 -0
  170. package/dist-runtime/workflow/lib/gateTool.js.map +1 -0
  171. package/dist-runtime/workflow/lib/gateToolSync.d.ts +22 -0
  172. package/dist-runtime/workflow/lib/gateToolSync.js +253 -0
  173. package/dist-runtime/workflow/lib/gateToolSync.js.map +1 -0
  174. package/dist-runtime/workflow/lib/lock.d.ts +52 -0
  175. package/dist-runtime/workflow/lib/lock.js +269 -0
  176. package/dist-runtime/workflow/lib/lock.js.map +1 -0
  177. package/dist-runtime/workflow/lib/migrationState.d.ts +103 -0
  178. package/dist-runtime/workflow/lib/migrationState.js +920 -0
  179. package/dist-runtime/workflow/lib/migrationState.js.map +1 -0
  180. package/dist-runtime/workflow/lib/operatorExecution.d.ts +28 -0
  181. package/dist-runtime/workflow/lib/operatorExecution.js +134 -0
  182. package/dist-runtime/workflow/lib/operatorExecution.js.map +1 -0
  183. package/dist-runtime/workflow/lib/parameters.d.ts +58 -0
  184. package/dist-runtime/workflow/lib/parameters.js +322 -0
  185. package/dist-runtime/workflow/lib/parameters.js.map +1 -0
  186. package/dist-runtime/workflow/lib/pendingDeploymentReuse.d.ts +29 -0
  187. package/dist-runtime/workflow/lib/pendingDeploymentReuse.js +277 -0
  188. package/dist-runtime/workflow/lib/pendingDeploymentReuse.js.map +1 -0
  189. package/dist-runtime/workflow/lib/proxy.d.ts +18 -0
  190. package/dist-runtime/workflow/lib/proxy.js +19 -0
  191. package/dist-runtime/workflow/lib/proxy.js.map +1 -0
  192. package/dist-runtime/workflow/lib/registryCommit.d.ts +33 -0
  193. package/dist-runtime/workflow/lib/registryCommit.js +319 -0
  194. package/dist-runtime/workflow/lib/registryCommit.js.map +1 -0
  195. package/dist-runtime/workflow/lib/release.d.ts +57 -0
  196. package/dist-runtime/workflow/lib/release.js +256 -0
  197. package/dist-runtime/workflow/lib/release.js.map +1 -0
  198. package/dist-runtime/workflow/lib/releaseFinalize.d.ts +14 -0
  199. package/dist-runtime/workflow/lib/releaseFinalize.js +571 -0
  200. package/dist-runtime/workflow/lib/releaseFinalize.js.map +1 -0
  201. package/dist-runtime/workflow/lib/releaseParameters.d.ts +43 -0
  202. package/dist-runtime/workflow/lib/releaseParameters.js +184 -0
  203. package/dist-runtime/workflow/lib/releaseParameters.js.map +1 -0
  204. package/dist-runtime/workflow/lib/reporter.d.ts +39 -0
  205. package/dist-runtime/workflow/lib/reporter.js +452 -0
  206. package/dist-runtime/workflow/lib/reporter.js.map +1 -0
  207. package/dist-runtime/workflow/lib/resultPaths.d.ts +17 -0
  208. package/dist-runtime/workflow/lib/resultPaths.js +29 -0
  209. package/dist-runtime/workflow/lib/resultPaths.js.map +1 -0
  210. package/dist-runtime/workflow/lib/runtimeVersion.d.ts +10 -0
  211. package/dist-runtime/workflow/lib/runtimeVersion.js +46 -0
  212. package/dist-runtime/workflow/lib/runtimeVersion.js.map +1 -0
  213. package/dist-runtime/workflow/lib/signer.d.ts +10 -0
  214. package/dist-runtime/workflow/lib/signer.js +105 -0
  215. package/dist-runtime/workflow/lib/signer.js.map +1 -0
  216. package/dist-runtime/workflow/lib/signerIdentity.d.ts +1 -0
  217. package/dist-runtime/workflow/lib/signerIdentity.js +23 -0
  218. package/dist-runtime/workflow/lib/signerIdentity.js.map +1 -0
  219. package/dist-runtime/workflow/lib/simulation.d.ts +35 -0
  220. package/dist-runtime/workflow/lib/simulation.js +282 -0
  221. package/dist-runtime/workflow/lib/simulation.js.map +1 -0
  222. package/dist-runtime/workflow/lib/simulationCallers.d.ts +44 -0
  223. package/dist-runtime/workflow/lib/simulationCallers.js +260 -0
  224. package/dist-runtime/workflow/lib/simulationCallers.js.map +1 -0
  225. package/dist-runtime/workflow/lib/sourceRpcPolicy.d.ts +1 -0
  226. package/dist-runtime/workflow/lib/sourceRpcPolicy.js +43 -0
  227. package/dist-runtime/workflow/lib/sourceRpcPolicy.js.map +1 -0
  228. package/dist-runtime/workflow/lib/state.d.ts +6 -0
  229. package/dist-runtime/workflow/lib/state.js +25 -0
  230. package/dist-runtime/workflow/lib/state.js.map +1 -0
  231. package/dist-runtime/workflow/lib/staticValidation.d.ts +22 -0
  232. package/dist-runtime/workflow/lib/staticValidation.js +124 -0
  233. package/dist-runtime/workflow/lib/staticValidation.js.map +1 -0
  234. package/dist-runtime/workflow/lib/zksyncForkCapability.d.ts +27 -0
  235. package/dist-runtime/workflow/lib/zksyncForkCapability.js +52 -0
  236. package/dist-runtime/workflow/lib/zksyncForkCapability.js.map +1 -0
  237. package/dist-runtime/workflow/lib/zksyncForkRunner.d.ts +57 -0
  238. package/dist-runtime/workflow/lib/zksyncForkRunner.js +344 -0
  239. package/dist-runtime/workflow/lib/zksyncForkRunner.js.map +1 -0
  240. package/dist-runtime/workflow/reconcileExternal.d.ts +1 -0
  241. package/dist-runtime/workflow/reconcileExternal.js +87 -0
  242. package/dist-runtime/workflow/reconcileExternal.js.map +1 -0
  243. package/dist-runtime/workflow/reconcileExternalRun.d.ts +1 -0
  244. package/dist-runtime/workflow/reconcileExternalRun.js +77 -0
  245. package/dist-runtime/workflow/reconcileExternalRun.js.map +1 -0
  246. package/dist-runtime/workflow/releaseFinalize.d.ts +1 -0
  247. package/dist-runtime/workflow/releaseFinalize.js +11 -0
  248. package/dist-runtime/workflow/releaseFinalize.js.map +1 -0
  249. package/dist-runtime/workflow/run.d.ts +40 -0
  250. package/dist-runtime/workflow/run.js +858 -0
  251. package/dist-runtime/workflow/run.js.map +1 -0
  252. package/dist-runtime/workflow/staticValidate.d.ts +1 -0
  253. package/dist-runtime/workflow/staticValidate.js +26 -0
  254. package/dist-runtime/workflow/staticValidate.js.map +1 -0
  255. package/dist-runtime/workflow/steps/call.d.ts +3 -0
  256. package/dist-runtime/workflow/steps/call.js +9 -0
  257. package/dist-runtime/workflow/steps/call.js.map +1 -0
  258. package/dist-runtime/workflow/steps/check.d.ts +3 -0
  259. package/dist-runtime/workflow/steps/check.js +9 -0
  260. package/dist-runtime/workflow/steps/check.js.map +1 -0
  261. package/dist-runtime/workflow/steps/custom.d.ts +3 -0
  262. package/dist-runtime/workflow/steps/custom.js +33 -0
  263. package/dist-runtime/workflow/steps/custom.js.map +1 -0
  264. package/dist-runtime/workflow/steps/deploy.d.ts +3 -0
  265. package/dist-runtime/workflow/steps/deploy.js +595 -0
  266. package/dist-runtime/workflow/steps/deploy.js.map +1 -0
  267. package/dist-runtime/workflow/steps/upgrade.d.ts +3 -0
  268. package/dist-runtime/workflow/steps/upgrade.js +465 -0
  269. package/dist-runtime/workflow/steps/upgrade.js.map +1 -0
  270. package/dist-runtime/workflow/steps/view.d.ts +3 -0
  271. package/dist-runtime/workflow/steps/view.js +9 -0
  272. package/dist-runtime/workflow/steps/view.js.map +1 -0
  273. package/package.json +26 -5
  274. package/runtime/config/hardhatAdapters.ts +50 -0
  275. package/runtime/config/networks.ts +296 -0
  276. package/runtime/config/openzeppelin.ts +173 -0
  277. package/runtime/config/rpc.ts +27 -0
  278. package/runtime/config/zksyncSolcPath.ts +59 -0
  279. package/runtime/hardhat-types.d.ts +2 -0
  280. package/runtime/migrate.ts +154 -0
  281. package/runtime/projectHardhat.ts +10 -0
  282. package/runtime/template-migration.json +293 -0
  283. package/runtime/workflow/checkCode.ts +13 -0
  284. package/runtime/workflow/checkCodeFinalize.ts +8 -0
  285. package/runtime/workflow/checkCodePlan.ts +8 -0
  286. package/runtime/workflow/cli.ts +356 -0
  287. package/runtime/workflow/commitContractInfo.ts +63 -0
  288. package/runtime/workflow/create2Hashes.ts +79 -0
  289. package/runtime/workflow/forkSourceProxy.ts +193 -0
  290. package/runtime/workflow/importState.ts +190 -0
  291. package/runtime/workflow/lib/authority.ts +170 -0
  292. package/runtime/workflow/lib/calldata.ts +9 -0
  293. package/runtime/workflow/lib/calls.ts +407 -0
  294. package/runtime/workflow/lib/checkCode/args.ts +76 -0
  295. package/runtime/workflow/lib/checkCode/command.ts +36 -0
  296. package/runtime/workflow/lib/checkCode/dependencies.ts +112 -0
  297. package/runtime/workflow/lib/checkCode/finalize.ts +198 -0
  298. package/runtime/workflow/lib/checkCode/index.ts +18 -0
  299. package/runtime/workflow/lib/checkCode/plan.ts +163 -0
  300. package/runtime/workflow/lib/checkCodeReport.ts +133 -0
  301. package/runtime/workflow/lib/checkCodeRunner.ts +1225 -0
  302. package/runtime/workflow/lib/cliTool.ts +31 -0
  303. package/runtime/workflow/lib/config.ts +130 -0
  304. package/runtime/workflow/lib/contractInfoCandidates.ts +690 -0
  305. package/runtime/workflow/lib/create2.ts +278 -0
  306. package/runtime/workflow/lib/create2Hashes.ts +83 -0
  307. package/runtime/workflow/lib/deploymentInfo.ts +286 -0
  308. package/runtime/workflow/lib/deploymentRecords.ts +576 -0
  309. package/runtime/workflow/lib/deployments.ts +276 -0
  310. package/runtime/workflow/lib/erc1967.ts +57 -0
  311. package/runtime/workflow/lib/errors.ts +95 -0
  312. package/runtime/workflow/lib/executionId.ts +35 -0
  313. package/runtime/workflow/lib/executionPlan.ts +550 -0
  314. package/runtime/workflow/lib/executionProgress.ts +127 -0
  315. package/runtime/workflow/lib/external.ts +372 -0
  316. package/runtime/workflow/lib/externalExecutionScanner.ts +892 -0
  317. package/runtime/workflow/lib/forkSnapshot.ts +231 -0
  318. package/runtime/workflow/lib/gateTool.ts +261 -0
  319. package/runtime/workflow/lib/gateToolSync.ts +398 -0
  320. package/runtime/workflow/lib/lock.ts +388 -0
  321. package/runtime/workflow/lib/migrationState.ts +1246 -0
  322. package/runtime/workflow/lib/operatorExecution.ts +174 -0
  323. package/runtime/workflow/lib/parameters.ts +437 -0
  324. package/runtime/workflow/lib/pendingDeploymentReuse.ts +428 -0
  325. package/runtime/workflow/lib/proxy.ts +45 -0
  326. package/runtime/workflow/lib/registryCommit.ts +455 -0
  327. package/runtime/workflow/lib/release.ts +329 -0
  328. package/runtime/workflow/lib/releaseFinalize.ts +711 -0
  329. package/runtime/workflow/lib/releaseParameters.ts +248 -0
  330. package/runtime/workflow/lib/reporter.ts +502 -0
  331. package/runtime/workflow/lib/resultPaths.ts +49 -0
  332. package/runtime/workflow/lib/runtimeVersion.ts +28 -0
  333. package/runtime/workflow/lib/signer.ts +124 -0
  334. package/runtime/workflow/lib/signerIdentity.ts +22 -0
  335. package/runtime/workflow/lib/simulation.ts +415 -0
  336. package/runtime/workflow/lib/simulationCallers.ts +335 -0
  337. package/runtime/workflow/lib/sourceRpcPolicy.ts +41 -0
  338. package/runtime/workflow/lib/state.ts +25 -0
  339. package/runtime/workflow/lib/staticValidation.ts +142 -0
  340. package/runtime/workflow/lib/zksyncForkCapability.ts +80 -0
  341. package/runtime/workflow/lib/zksyncForkRunner.ts +505 -0
  342. package/runtime/workflow/reconcileExternal.ts +86 -0
  343. package/runtime/workflow/reconcileExternalRun.ts +88 -0
  344. package/runtime/workflow/releaseFinalize.ts +8 -0
  345. package/runtime/workflow/run.ts +1072 -0
  346. package/runtime/workflow/staticValidate.ts +23 -0
  347. package/runtime/workflow/steps/call.ts +10 -0
  348. package/runtime/workflow/steps/check.ts +10 -0
  349. package/runtime/workflow/steps/custom.ts +43 -0
  350. package/runtime/workflow/steps/deploy.ts +771 -0
  351. package/runtime/workflow/steps/upgrade.ts +598 -0
  352. package/runtime/workflow/steps/view.ts +10 -0
@@ -0,0 +1,154 @@
1
+ import { satisfies, validRange } from 'semver';
2
+ import fs from 'node:fs';
3
+ import path from 'node:path';
4
+ import { createHash } from 'node:crypto';
5
+ import { createRequire } from 'node:module';
6
+
7
+ interface Entry { sha256: string; replacement: string }
8
+ interface Change { path: string; status: 'current' | 'remove' | 'update' | 'conflict'; reason?: string }
9
+ const commands: Record<string, string> = {
10
+ cli: 'run', checkCode: 'checkcode', checkCodePlan: 'checkcode-plan',
11
+ checkCodeFinalize: 'checkcode-finalize', staticValidate: 'static-validate',
12
+ create2Hashes: 'create2-hashes', releaseFinalize: 'release-finalize',
13
+ importState: 'import-state', reconcileExternal: 'reconcile-external',
14
+ commitContractInfo: 'commit-contract-info',
15
+ };
16
+
17
+ /** Plan first; preserve custom files/state. Only known sources/shims are removable. */
18
+ export function migrateTemplate(projectRoot: string, apply = false) {
19
+ const root = fs.realpathSync(projectRoot);
20
+ const baseline: { templateVersion: string; files: Record<string, Entry> } = JSON.parse(
21
+ fs.readFileSync(path.join(__dirname, 'template-migration.json'), 'utf8'),
22
+ );
23
+ const plan: Change[] = [];
24
+ const edits = new Map<string, string>();
25
+ const originals = new Map<string, string>();
26
+ const conflict = (relative: string, reason: string) => plan.push({ path: relative, status: 'conflict', reason });
27
+ const unsafe = (relative: string) => {
28
+ const file = path.resolve(root, relative);
29
+ if (!file.startsWith(root + path.sep)) return true;
30
+ return relative.split('/').some((_, i, parts) => {
31
+ try { return fs.lstatSync(path.join(root, ...parts.slice(0, i + 1))).isSymbolicLink(); }
32
+ catch (error) { if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false; throw error; }
33
+ });
34
+ };
35
+
36
+ for (const [relative, entry] of Object.entries(baseline.files)) {
37
+ const file = path.join(root, relative);
38
+ if (unsafe(relative)) { conflict(relative, 'Symlinked or unconfined runtime path'); continue; }
39
+ if (!fs.existsSync(file)) { plan.push({ path: relative, status: 'current' }); continue; }
40
+ if (!fs.statSync(file).isFile()) { conflict(relative, 'Runtime path must be a regular file'); continue; }
41
+ const source = fs.readFileSync(file, 'utf8');
42
+ if (source !== entry.replacement && createHash('sha256').update(source).digest('hex') !== entry.sha256) {
43
+ conflict(relative, 'Customized runtime file requires manual merge'); continue;
44
+ }
45
+ originals.set(relative, source);
46
+ plan.push({ path: relative, status: 'remove' });
47
+ }
48
+
49
+ const packagePath = path.join(root, 'package.json');
50
+ if (unsafe('package.json') || !fs.existsSync(packagePath)) conflict('package.json', 'Project package.json must exist and be a regular local file');
51
+ else {
52
+ const source = fs.readFileSync(packagePath, 'utf8');
53
+ const pkg = JSON.parse(source);
54
+ try {
55
+ if (!(pkg.devDependencies?.['gate-evm-tools'] ?? pkg.dependencies?.['gate-evm-tools'])) throw new Error('gate-evm-tools is not declared');
56
+ const projectRequire = createRequire(packagePath);
57
+ const installedRoot = path.resolve(path.dirname(projectRequire.resolve('gate-evm-tools/runtime/cli')), '../..');
58
+ const installed = JSON.parse(fs.readFileSync(path.join(installedRoot, 'package.json'), 'utf8'));
59
+ const declared = pkg.devDependencies?.['gate-evm-tools'] ?? pkg.dependencies?.['gate-evm-tools'];
60
+ if (typeof declared !== 'string' || (!declared.startsWith('file:') && (!validRange(declared) || !satisfies(installed.version, declared)))) throw new Error('Install a version satisfying the declared dependency range first');
61
+ const lockPath = path.join(root, 'package-lock.json');
62
+ if (fs.existsSync(lockPath)) {
63
+ const lock = JSON.parse(fs.readFileSync(lockPath, 'utf8'));
64
+ const locked = lock.packages?.['node_modules/gate-evm-tools'] ?? lock.dependencies?.['gate-evm-tools'];
65
+ if (locked?.version !== installed.version) throw new Error('Lockfile version differs from installation');
66
+ }
67
+ for (const entry of Object.values(baseline.files)) {
68
+ const specifier = entry.replacement.match(/export \* from "([^"]+)"/)?.[1];
69
+ if (!specifier || !fs.statSync(projectRequire.resolve(specifier)).isFile()) throw new Error('Missing packaged runtime export');
70
+ }
71
+ } catch {
72
+ conflict('package.json', 'Install the approved GateTool package and existing lockfile with all runtime exports before removing scripts');
73
+ }
74
+ let changed = false;
75
+ for (const [name, command] of Object.entries(pkg.scripts ?? {})) {
76
+ if (typeof command !== 'string') continue;
77
+ const match = command.match(/^ts-node scripts\/workflow\/([A-Za-z0-9]+)\.ts(?=\s|$)/);
78
+ if (match && commands[match[1]!]) {
79
+ pkg.scripts[name] = command.replace(match[0], `gate-workflow ${commands[match[1]!]}`);
80
+ changed = true;
81
+ }
82
+ }
83
+ const next = changed ? JSON.stringify(pkg, null, source.match(/\n(\s+)"/)?.[1] ?? 2) + '\n' : source;
84
+ if (next.includes('scripts/workflow') || next.includes('scripts\\\\workflow')) conflict('package.json', 'Unrecognized workflow command/reference; update manually');
85
+ else if (changed) { originals.set('package.json', source); edits.set('package.json', next); plan.push({ path: 'package.json', status: 'update' }); }
86
+ }
87
+
88
+ const moduleTarget = (file: string, specifier: string): string | undefined => {
89
+ if (!specifier.startsWith('.')) return undefined;
90
+ const absolute = path.resolve(path.dirname(file), specifier).replace(/\.(?:ts|js)$/, '') + '.ts';
91
+ const relative = path.relative(root, absolute).split(path.sep).join('/');
92
+ return baseline.files[relative]?.replacement.match(/export \* from "([^"]+)"/)?.[1];
93
+ };
94
+ const ignored = new Set(['node_modules', '.git', '.gateflow', '.codex', 'dist', 'build', 'out', 'results', 'runtime-bindings', 'calldata', 'tx-requests']);
95
+ const visit = (directory: string) => {
96
+ for (const item of fs.readdirSync(directory, { withFileTypes: true })) {
97
+ if (ignored.has(item.name) || /^(?:artifacts|cache|typechain|\.openzeppelin|\.gate-workflow-backup)/.test(item.name)) continue;
98
+ const file = path.join(directory, item.name);
99
+ const relative = path.relative(root, file).split(path.sep).join('/');
100
+ if (baseline.files[relative] || relative === 'package.json') continue;
101
+ if (item.isSymbolicLink()) { conflict(relative, 'Cannot inspect symlink for legacy runtime references'); continue; }
102
+ if (item.isDirectory()) { visit(file); continue; }
103
+ if (relative.startsWith('scripts/workflow/')) { conflict(relative, 'Unrecognized custom workflow file'); continue; }
104
+ if (!item.isFile() || !/\.(?:[cm]?[jt]sx?|json|ya?ml|sh|toml)$/.test(item.name) || item.name.endsWith('.lock.json') || /(?:package-lock|yarn.lock|pnpm-lock)/.test(item.name)) continue;
105
+ const source = fs.readFileSync(file, 'utf8');
106
+ let next = source;
107
+ if (/\.[cm]?[jt]sx?$/.test(item.name)) {
108
+ // Only static module specifiers are rewritten; filesystem paths/commands require review.
109
+ next = source.replace(/(\bfrom\s*|\b(?:require|import)\s*\(\s*|\bimport\s*)(["'])(\.[^"'\n]+)\2/g,
110
+ (all, prefix: string, quote: string, specifier: string) => {
111
+ const target = moduleTarget(file, specifier);
112
+ return target ? `${prefix}${quote}${target}${quote}` : all;
113
+ });
114
+ }
115
+ const unresolvedModule = [...next.matchAll(/["'](\.[^"'\n]+)["']/g)].some(match => moduleTarget(file, match[1]!) !== undefined);
116
+ if (unresolvedModule || /scripts[\\/]workflow|scripts[\\/]config[\\/](?:rpc|openzeppelin|zksyncSolcPath)/.test(next)) {
117
+ conflict(relative, 'Unresolved runtime path/reference; update manually before removal'); continue;
118
+ }
119
+ if (next !== source) { originals.set(relative, source); edits.set(relative, next); plan.push({ path: relative, status: 'update' }); }
120
+ }
121
+ };
122
+ visit(root);
123
+ const conflicts = plan.filter(item => item.status === 'conflict');
124
+ if (apply && conflicts.length) throw new Error('Runtime migration requires manual merge: ' + conflicts.map(item => `${item.path}: ${item.reason}`).join('; '));
125
+ let backup: string | undefined;
126
+ if (apply && originals.size > 0) {
127
+ // Recheck every input before creating the backup or applying changes.
128
+ for (const [relative, source] of originals) {
129
+ if (unsafe(relative) || fs.readFileSync(path.join(root, relative), 'utf8') !== source) throw new Error(`Migration input changed: ${relative}`);
130
+ }
131
+ backup = fs.mkdtempSync(path.join(root, '.gate-workflow-backup-'));
132
+ for (const [relative, source] of originals) {
133
+ const saved = path.join(backup, relative);
134
+ fs.mkdirSync(path.dirname(saved), { recursive: true });
135
+ fs.writeFileSync(saved, source);
136
+ }
137
+ try {
138
+ // Rewrite consumers first, then remove the now-unreferenced known files.
139
+ for (const [relative, source] of edits) fs.writeFileSync(path.join(root, relative), source);
140
+ for (const item of plan.filter(item => item.status === 'remove')) fs.unlinkSync(path.join(root, item.path));
141
+ } catch (error) {
142
+ for (const [relative, source] of originals) fs.writeFileSync(path.join(root, relative), source);
143
+ throw error;
144
+ }
145
+ const prune = (directory: string) => {
146
+ if (!fs.existsSync(directory) || fs.lstatSync(directory).isSymbolicLink()) return;
147
+ for (const item of fs.readdirSync(directory, { withFileTypes: true })) if (item.isDirectory()) prune(path.join(directory, item.name));
148
+ if (fs.readdirSync(directory).length === 0) fs.rmdirSync(directory);
149
+ };
150
+ prune(path.join(root, 'scripts/workflow'));
151
+ prune(path.join(root, 'scripts/config'));
152
+ }
153
+ return { applied: apply, baselineVersion: baseline.templateVersion, backup, plan };
154
+ }
@@ -0,0 +1,10 @@
1
+ import path from 'node:path';
2
+ import { createRequire } from 'node:module';
3
+ // Runtime modules must use the selected project's HRE, not a package/global HRE.
4
+ const projectRequire = createRequire(path.join(process.cwd(), 'package.json'));
5
+ projectRequire('hardhat/register');
6
+ const hre: typeof import('hardhat') = projectRequire('hardhat');
7
+ export default hre;
8
+ export const { ethers, artifacts, network, config, upgrades } = hre;
9
+
10
+ export const run = hre.run.bind(hre);
@@ -0,0 +1,293 @@
1
+ {
2
+ "templateVersion": "2.1.21",
3
+ "files": {
4
+ "scripts/workflow/checkCodeFinalize.ts": {
5
+ "sha256": "e1b49b9c824588a39e4760d58336ce5e57e7b2a6f0d1f1f1d9e014b21e4d0564",
6
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/checkCodeFinalize\";\n"
7
+ },
8
+ "scripts/workflow/importState.ts": {
9
+ "sha256": "af3f3a45a362e71b6a692b17da84303ff56b2aabf401ed30924113eb512c33a2",
10
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/importState\";\n"
11
+ },
12
+ "scripts/workflow/reconcileExternalRun.ts": {
13
+ "sha256": "8070927b4f9049abf93981beafa806c0840c9c035b784d69248d4d16de6fc42d",
14
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/reconcileExternalRun\";\n"
15
+ },
16
+ "scripts/workflow/cli.ts": {
17
+ "sha256": "9a917b5f909eeaa6a2f9623286d3e29413a6fe9cb9fa8a5b1be1f950d77853c4",
18
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/cli\";\n"
19
+ },
20
+ "scripts/workflow/commitContractInfo.ts": {
21
+ "sha256": "ccd38dfc780eb3654d62a5ea742273f835c1d183b44499a2c7e59fd120e00184",
22
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/commitContractInfo\";\n"
23
+ },
24
+ "scripts/workflow/checkCode.ts": {
25
+ "sha256": "67e08273b9d1c6f03b616f39b5c875647a1085a8c19f3043d33caa1f0ca355ba",
26
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/checkCode\";\n"
27
+ },
28
+ "scripts/workflow/create2Hashes.ts": {
29
+ "sha256": "3d3b6792bbb9524e82adfb555e78e9a6d62cc79d8c9dd51931da7fbdaf4ab6a9",
30
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/create2Hashes\";\n"
31
+ },
32
+ "scripts/workflow/staticValidate.ts": {
33
+ "sha256": "322aa439d18a124c0ffc86dd51c106b545eaa78491e3004373daee1ab0dc8158",
34
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/staticValidate\";\n"
35
+ },
36
+ "scripts/workflow/checkCodePlan.ts": {
37
+ "sha256": "807804e3240af7089818099a4fe31948aaa1580402523b433a80dec5c4fbe838",
38
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/checkCodePlan\";\n"
39
+ },
40
+ "scripts/workflow/forkSourceProxy.ts": {
41
+ "sha256": "a9727a9b4810ecfc0486f1db434515014b6c2e8e5a92d154656ff7a445f6ec9e",
42
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/forkSourceProxy\";\n"
43
+ },
44
+ "scripts/workflow/run.ts": {
45
+ "sha256": "80f099d13f54b17ab5ae83251062eac155d561afc6dc2f460198cc35526baebc",
46
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/run\";\n"
47
+ },
48
+ "scripts/workflow/reconcileExternal.ts": {
49
+ "sha256": "d47d4b654a16c6f834288ea013d640486bac89846339d7b7b32641ca46c14ca5",
50
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/reconcileExternal\";\n"
51
+ },
52
+ "scripts/workflow/releaseFinalize.ts": {
53
+ "sha256": "667c08ddd16275ad34c91e06690ae2a3cfa948abf3e71f6381332a06fbfc6a9b",
54
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/releaseFinalize\";\n"
55
+ },
56
+ "scripts/workflow/steps/call.ts": {
57
+ "sha256": "234fc6083e09918784a184001836661be978a1e0e4e20074911f148d0b796835",
58
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/steps/call\";\n"
59
+ },
60
+ "scripts/workflow/steps/view.ts": {
61
+ "sha256": "64cea8472e96786c8ca498d13c2e2ef3882149381dae54fb872928258383573e",
62
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/steps/view\";\n"
63
+ },
64
+ "scripts/workflow/steps/upgrade.ts": {
65
+ "sha256": "f0f9cbe665f8d063c3fc62b7bb208e780cb7a7b7a39ba45e1d53ff9a107385a9",
66
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/steps/upgrade\";\n"
67
+ },
68
+ "scripts/workflow/steps/custom.ts": {
69
+ "sha256": "f52af4ef5a30af9411e0f4e40027218f48d2361731929875cdee4f4f59362f9a",
70
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/steps/custom\";\n"
71
+ },
72
+ "scripts/workflow/steps/deploy.ts": {
73
+ "sha256": "57c54bbdaf7fbf05aecb5f35a63e81e0414f141a27c1f3f7a0ef17a81680f599",
74
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/steps/deploy\";\n"
75
+ },
76
+ "scripts/workflow/steps/check.ts": {
77
+ "sha256": "6acd1ac039a61c09d5c0cfe29e76d85fc95564a03b9a6cc374e80c8f9e2632b3",
78
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/steps/check\";\n"
79
+ },
80
+ "scripts/workflow/lib/executionProgress.ts": {
81
+ "sha256": "5f595a3b5f1d697b3832d20a83a9489338ba7b703f843b00162ac306ef1bb356",
82
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/executionProgress\";\n"
83
+ },
84
+ "scripts/workflow/lib/externalExecutionScanner.ts": {
85
+ "sha256": "8deeae99765f8e75e5aae209d4d67125b8b4e83495ee1aa579904b790abea5a7",
86
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/externalExecutionScanner\";\n"
87
+ },
88
+ "scripts/workflow/lib/gateTool.ts": {
89
+ "sha256": "d32df22fbf21ed288953cb58911f3936b50ddd63f9b9b67c9ceaea3768fe6cd8",
90
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/gateTool\";\n"
91
+ },
92
+ "scripts/workflow/lib/state.ts": {
93
+ "sha256": "697883f3290707960b1ebee39202a4bcc39caa26195ec7d0c5aa81ce56e0db30",
94
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/state\";\n"
95
+ },
96
+ "scripts/workflow/lib/sourceRpcPolicy.ts": {
97
+ "sha256": "20c7152ed1a569e5a761b7c28129427957e260bf1f594feff22fa504a27f2f5f",
98
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/sourceRpcPolicy\";\n"
99
+ },
100
+ "scripts/workflow/lib/calls.ts": {
101
+ "sha256": "8fea7b66b675f7e5c9a502b03a17e79b7f69cbe5538c341176e4cfa19ab505b9",
102
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/calls\";\n"
103
+ },
104
+ "scripts/workflow/lib/operatorExecution.ts": {
105
+ "sha256": "9047e7bf2c8782048c212e868d23c96be6eef5c47571264956a3898837e1f4f8",
106
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/operatorExecution\";\n"
107
+ },
108
+ "scripts/workflow/lib/external.ts": {
109
+ "sha256": "0c20dc8ed20e5f006f3ff25ac74f1737330f789321d29e7ce4b73099ea51dd0c",
110
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/external\";\n"
111
+ },
112
+ "scripts/workflow/lib/signer.ts": {
113
+ "sha256": "2a087fe4bd2cee9c88fd3c2369614f7e78f21dd6daa02c3b059089bc1610fff1",
114
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/signer\";\n"
115
+ },
116
+ "scripts/workflow/lib/pendingDeploymentReuse.ts": {
117
+ "sha256": "32547f0acda5e8fb540fb92c968943fba23ef21549aa714e7c57577d86907706",
118
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/pendingDeploymentReuse\";\n"
119
+ },
120
+ "scripts/workflow/lib/migrationState.ts": {
121
+ "sha256": "34f048ce919c90b35baaaf660dfba6e5ed02494850fce13e6fef017af3208e3d",
122
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/migrationState\";\n"
123
+ },
124
+ "scripts/workflow/lib/signerIdentity.ts": {
125
+ "sha256": "2ff5510bea0bb34f8dae7045a9ed89d3cbc9c3aa601f964f791e0d4d471c79e8",
126
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/signerIdentity\";\n"
127
+ },
128
+ "scripts/workflow/lib/checkCodeReport.ts": {
129
+ "sha256": "868a1fe34702bee1f9b8a7eb64e91ee104ee9239ab4c7e7a6d8351a737541557",
130
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/checkCodeReport\";\n"
131
+ },
132
+ "scripts/workflow/lib/errors.ts": {
133
+ "sha256": "43ca35a3c858d62e7ddfda620fb976997f66b24d90a9d29378099935514a5c55",
134
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/errors\";\n"
135
+ },
136
+ "scripts/workflow/lib/deployments.ts": {
137
+ "sha256": "ff4792e2bf0920e24d3dadb9f10870e38c29fe2de96cfdb9d9bcc49992c2f9b6",
138
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/deployments\";\n"
139
+ },
140
+ "scripts/workflow/lib/parameters.ts": {
141
+ "sha256": "fb35cfb88366abb922b7fcafc8ddc8442dbfaa6cf5d28b20ac3a1590c5c5c5dc",
142
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/parameters\";\n"
143
+ },
144
+ "scripts/workflow/lib/authority.ts": {
145
+ "sha256": "bf6f239e9f0b39cbb98b68c7dfbf2ae15c5e53b7768c116be81f0febc7bcae73",
146
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/authority\";\n"
147
+ },
148
+ "scripts/workflow/lib/registryCommit.ts": {
149
+ "sha256": "b414d779b60d5f24bc00de035f72b8b32e084c9d590e2df602fdfda6d160758a",
150
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/registryCommit\";\n"
151
+ },
152
+ "scripts/workflow/lib/lock.ts": {
153
+ "sha256": "c06259f2f15d33e36e77c0385349ed85e53eaba070be2691454338f73ac1e065",
154
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/lock\";\n"
155
+ },
156
+ "scripts/workflow/lib/executionPlan.ts": {
157
+ "sha256": "3ee88d53b65967ab486f5a389a28b1a23c8d1a626e36c1ec1929dac5c99133f3",
158
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/executionPlan\";\n"
159
+ },
160
+ "scripts/workflow/lib/forkSnapshot.ts": {
161
+ "sha256": "7696cea4d2c3083751702472c4dbb79d46d164414f8994a13242299113ffd243",
162
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/forkSnapshot\";\n"
163
+ },
164
+ "scripts/workflow/lib/simulationCallers.ts": {
165
+ "sha256": "1f5bacb13cbdfe715d4de386494b90e15e5870ea5a7a9d8f9632f4bdc4fad079",
166
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/simulationCallers\";\n"
167
+ },
168
+ "scripts/workflow/lib/create2.ts": {
169
+ "sha256": "e2f10d28bf146ea34e0725cf264c2ce2760be7189fe00d432c2d2846044532e1",
170
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/create2\";\n"
171
+ },
172
+ "scripts/workflow/lib/deploymentRecords.ts": {
173
+ "sha256": "dbfbd807c8145509be20b7a6fc348f4a10efd110f4c3fc32ac0e0b28cb1de69e",
174
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/deploymentRecords\";\n"
175
+ },
176
+ "scripts/workflow/lib/calldata.ts": {
177
+ "sha256": "719ff73b01076ce2208f37ebedbec021c221ce1a8cb1298a322a964620b8f479",
178
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/calldata\";\n"
179
+ },
180
+ "scripts/workflow/lib/staticValidation.ts": {
181
+ "sha256": "190495f4f4351d4171db2d352f024f904a84f345029fafe8fbcdd187c5be3928",
182
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/staticValidation\";\n"
183
+ },
184
+ "scripts/workflow/lib/zksyncForkRunner.ts": {
185
+ "sha256": "9085e54653a8d0f4326f496c3a4c43e2214b62f4378680b2a50368f449bab250",
186
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/zksyncForkRunner\";\n"
187
+ },
188
+ "scripts/workflow/lib/reporter.ts": {
189
+ "sha256": "b6a13433516b54532e48cee74330ae03ddcfecc206d7aad57c91230c161e47e3",
190
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/reporter\";\n"
191
+ },
192
+ "scripts/workflow/lib/proxy.ts": {
193
+ "sha256": "7535524e1cc40c07add9ebaf7d7e648a51be897a61f74bf9b17e92bcc1ee4c2a",
194
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/proxy\";\n"
195
+ },
196
+ "scripts/workflow/lib/cliTool.ts": {
197
+ "sha256": "387745f187193dce14c57242b388b956bc1c8abea060cd961f6d1cc49a480666",
198
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/cliTool\";\n"
199
+ },
200
+ "scripts/workflow/lib/contractInfoCandidates.ts": {
201
+ "sha256": "da8f29aa4bcab642ac427f9e2da5f0b179821afab7c59d170b95249457e30c13",
202
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/contractInfoCandidates\";\n"
203
+ },
204
+ "scripts/workflow/lib/resultPaths.ts": {
205
+ "sha256": "1c8bb134fd5f0f9e0e3367a6f900cc9dcd8d852a66a14dc3a3b2daabad9d3788",
206
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/resultPaths\";\n"
207
+ },
208
+ "scripts/workflow/lib/releaseParameters.ts": {
209
+ "sha256": "1203f9f04672760b77a1efaa3dd7de65eca9abb5e3d5ab75e0822690207f4961",
210
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/releaseParameters\";\n"
211
+ },
212
+ "scripts/workflow/lib/create2Hashes.ts": {
213
+ "sha256": "2e033317c016d14f71b41ba1f122f75b2f140f146e4517dc3e07ecaa32ba4d9c",
214
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/create2Hashes\";\n"
215
+ },
216
+ "scripts/workflow/lib/executionId.ts": {
217
+ "sha256": "1a66bdc10c596f27d2fcf52d33c3d38b0066ded464732b9d561757f52d0d1d85",
218
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/executionId\";\n"
219
+ },
220
+ "scripts/workflow/lib/checkCodeRunner.ts": {
221
+ "sha256": "455a6bd825c101b2217e5e9201491590e5c70bb0391cb2b5f22d55f5346ac8e7",
222
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/checkCodeRunner\";\n"
223
+ },
224
+ "scripts/workflow/lib/config.ts": {
225
+ "sha256": "bf2412e1731834f9612e318a7331207dc5cde946c354efe7bc65ba8f1d997a84",
226
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/config\";\n"
227
+ },
228
+ "scripts/workflow/lib/release.ts": {
229
+ "sha256": "bbb14bf3614a3568b9d2c0b6b21d74ba9da8f936432f88a4290a94b7a4bebf67",
230
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/release\";\n"
231
+ },
232
+ "scripts/workflow/lib/erc1967.ts": {
233
+ "sha256": "1d94061d282914ec5bd3f0bc0f9f3ea18c95e983c012c55d4772a926b5fab34c",
234
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/erc1967\";\n"
235
+ },
236
+ "scripts/workflow/lib/zksyncForkCapability.ts": {
237
+ "sha256": "a839c5dea3c9086ddfce6eb91ce61d09d207cdfa0864c645f3818d577dd902fd",
238
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/zksyncForkCapability\";\n"
239
+ },
240
+ "scripts/workflow/lib/gateToolSync.ts": {
241
+ "sha256": "e60eadc9f6cd9dfea5e37b440e4c720ffbbe11d968a5aa7f414692c0ba8818c7",
242
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/gateToolSync\";\n"
243
+ },
244
+ "scripts/workflow/lib/deploymentInfo.ts": {
245
+ "sha256": "d415f01d40d49a176ec01de4f178566a51e2a80c7b256316673555710052c2f1",
246
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/deploymentInfo\";\n"
247
+ },
248
+ "scripts/workflow/lib/simulation.ts": {
249
+ "sha256": "80b4e28737b23f89cc0daef8af6dcffea15eb8760876f4defc91d89c7c3d6f8b",
250
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/simulation\";\n"
251
+ },
252
+ "scripts/workflow/lib/releaseFinalize.ts": {
253
+ "sha256": "723e83c56a4aef7a46a575d452da5976c68899c2aa9933f28e087accf73f9a92",
254
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/releaseFinalize\";\n"
255
+ },
256
+ "scripts/workflow/lib/checkCode/dependencies.ts": {
257
+ "sha256": "e99b4d3e5503bf2d5f4f51647624b66fc4a6de2cd1a0c723fccec2e441df0243",
258
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/checkCode/dependencies\";\n"
259
+ },
260
+ "scripts/workflow/lib/checkCode/args.ts": {
261
+ "sha256": "163c78dae13b9e9b30cfd55f3400995ca4073c1e7eabd7586222132b4c667105",
262
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/checkCode/args\";\n"
263
+ },
264
+ "scripts/workflow/lib/checkCode/finalize.ts": {
265
+ "sha256": "1007b9c680a13efd0527f750d5cc2b94328df84fa9ef4e68233beb8ac03c9c0f",
266
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/checkCode/finalize\";\n"
267
+ },
268
+ "scripts/workflow/lib/checkCode/index.ts": {
269
+ "sha256": "73c6140ff67535e83fdc83d532c4647c61cb7d3ebf407c50a5755612ab76b9f1",
270
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/checkCode/index\";\n"
271
+ },
272
+ "scripts/workflow/lib/checkCode/command.ts": {
273
+ "sha256": "d3c5dd581261c9c7a5b33a76b75052173223a374ff98d0c22eb3127ebb51703e",
274
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/checkCode/command\";\n"
275
+ },
276
+ "scripts/workflow/lib/checkCode/plan.ts": {
277
+ "sha256": "8c239eb1c1bed485c096d9f769f8a62f32e483244fc7f2c5a50f01dcc9b69b00",
278
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime/lib/checkCode/plan\";\n"
279
+ },
280
+ "scripts/config/openzeppelin.ts": {
281
+ "sha256": "04281ccaa0b2c2fb134d76c1df2d6d746e05ef4d3fe9b3689b598b4696447add",
282
+ "replacement": "// Shared manifest policy is owned by GateTool.\nexport * from \"gate-evm-tools/runtime-config/openzeppelin\";\n"
283
+ },
284
+ "scripts/config/rpc.ts": {
285
+ "sha256": "019833e499a3b0e68290416fbdaaac29589e0297e4a0cf88f73460bbdfc6ce7c",
286
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime-config/rpc\";\n"
287
+ },
288
+ "scripts/config/zksyncSolcPath.ts": {
289
+ "sha256": "5eba5d47d773de75624f84f41841a7079780907b4635dabbd089d9875a620add",
290
+ "replacement": "// Compatibility entrypoint; implementation is owned by GateTool.\nexport * from \"gate-evm-tools/runtime-config/zksyncSolcPath\";\n"
291
+ }
292
+ }
293
+ }
@@ -0,0 +1,13 @@
1
+ import { runCheckCodeWorkflow } from "./lib/checkCode";
2
+
3
+ void runCheckCodeWorkflow().then((report) => {
4
+ console.log(JSON.stringify({
5
+ status: report.status,
6
+ runId: report.runId,
7
+ reportPath: report.reportPath,
8
+ }));
9
+ if (report.status !== "succeeded") process.exitCode = 1;
10
+ }).catch((error) => {
11
+ console.error(error instanceof Error ? error.message : String(error));
12
+ process.exitCode = 1;
13
+ });
@@ -0,0 +1,8 @@
1
+ import { runDevelopmentCheckCodeFinalizeCli } from "./lib/checkCode/finalize";
2
+
3
+ try {
4
+ console.log(JSON.stringify(runDevelopmentCheckCodeFinalizeCli(process.argv.slice(2))));
5
+ } catch (error) {
6
+ console.error(error instanceof Error ? error.message : String(error));
7
+ process.exitCode = 1;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { runCheckCodePlanCli } from "./lib/checkCode/plan";
2
+
3
+ try {
4
+ console.log(JSON.stringify(runCheckCodePlanCli(process.argv.slice(2))));
5
+ } catch (error) {
6
+ console.error(error instanceof Error ? error.message : String(error));
7
+ process.exitCode = 1;
8
+ }