gate-evm-tools 1.0.27 → 1.0.31
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.
- package/README.md +16 -1
- package/bin/cli.js +3 -0
- package/bin/delivery.cjs +51 -0
- package/bin/manifest-bootstrap.js +4 -15
- package/bin/workflow.cjs +1 -1
- package/dist/commands/plan/file-store.d.ts.map +1 -0
- package/dist/commands/plan/generate-deployment.d.ts +48 -0
- package/dist/commands/plan/generate-deployment.d.ts.map +1 -0
- package/dist/commands/plan/generate-deployment.js +211 -0
- package/dist/commands/plan/generate-deployment.js.map +1 -0
- package/dist/commands/plan/helpers.d.ts.map +1 -0
- package/dist/commands/plan/index.d.ts +3 -0
- package/dist/commands/plan/index.d.ts.map +1 -0
- package/dist/commands/plan/index.js +88 -0
- package/dist/commands/plan/index.js.map +1 -0
- package/dist/commands/sync.js +1 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/core/BytecodeChecker.d.ts.map +1 -1
- package/dist/core/BytecodeChecker.js +27 -8
- package/dist/core/BytecodeChecker.js.map +1 -1
- package/dist/core/preparation/artifacts.d.ts +2 -0
- package/dist/core/preparation/artifacts.d.ts.map +1 -1
- package/dist/core/preparation/artifacts.js +9 -3
- package/dist/core/preparation/artifacts.js.map +1 -1
- package/dist/core/preparation/evm.d.ts +38 -2
- package/dist/core/preparation/evm.d.ts.map +1 -1
- package/dist/core/preparation/evm.js +104 -32
- package/dist/core/preparation/evm.js.map +1 -1
- package/dist/core/preparation/evmManifestSync.d.ts +63 -0
- package/dist/core/preparation/evmManifestSync.d.ts.map +1 -0
- package/dist/core/preparation/evmManifestSync.js +146 -0
- package/dist/core/preparation/evmManifestSync.js.map +1 -0
- package/dist/core/preparation/index.d.ts +40 -2
- package/dist/core/preparation/index.d.ts.map +1 -1
- package/dist/core/preparation/index.js +3 -3
- package/dist/core/preparation/index.js.map +1 -1
- package/dist/core/preparation/manifest.d.ts +15 -3
- package/dist/core/preparation/manifest.d.ts.map +1 -1
- package/dist/core/preparation/manifest.js +21 -26
- package/dist/core/preparation/manifest.js.map +1 -1
- package/dist/core/preparation/normalize.d.ts.map +1 -1
- package/dist/core/preparation/normalize.js +14 -9
- package/dist/core/preparation/normalize.js.map +1 -1
- package/dist/core/preparation/types.d.ts +7 -2
- package/dist/core/preparation/types.d.ts.map +1 -1
- package/dist/custody/hardhat-runtime.d.ts.map +1 -1
- package/dist/custody/hardhat-runtime.js +2 -0
- package/dist/custody/hardhat-runtime.js.map +1 -1
- package/dist/custody/hardhat.d.ts +1 -0
- package/dist/custody/hardhat.d.ts.map +1 -1
- package/dist/custody/hardhat.js +1 -0
- package/dist/custody/hardhat.js.map +1 -1
- package/dist/custody/index.d.ts +1 -0
- package/dist/custody/index.d.ts.map +1 -1
- package/dist/custody/index.js +1 -0
- package/dist/custody/index.js.map +1 -1
- package/dist/custody/provider-wait.d.ts +13 -0
- package/dist/custody/provider-wait.d.ts.map +1 -0
- package/dist/custody/provider-wait.js +78 -0
- package/dist/custody/provider-wait.js.map +1 -0
- package/dist/delivery/policy.d.ts +6 -0
- package/dist/delivery/policy.d.ts.map +1 -0
- package/dist/delivery/policy.js +24 -0
- package/dist/delivery/policy.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/sync/index.d.ts +15 -0
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +8 -0
- package/dist/sync/index.js.map +1 -1
- package/dist/workflow/index.d.ts +6 -1
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +4 -0
- package/dist/workflow/index.js.map +1 -1
- package/dist-cjs/core/BytecodeChecker.js +526 -0
- package/dist-cjs/core/BytecodeChecker.js.map +1 -0
- package/dist-cjs/core/legacyProxyArtifact.js +42 -0
- package/dist-cjs/core/legacyProxyArtifact.js.map +1 -0
- package/dist-cjs/core/preparation/artifacts.js +11 -4
- package/dist-cjs/core/preparation/artifacts.js.map +1 -1
- package/dist-cjs/core/preparation/evm.js +105 -32
- package/dist-cjs/core/preparation/evm.js.map +1 -1
- package/dist-cjs/core/preparation/evmManifestSync.js +155 -0
- package/dist-cjs/core/preparation/evmManifestSync.js.map +1 -0
- package/dist-cjs/core/preparation/index.js +3 -3
- package/dist-cjs/core/preparation/index.js.map +1 -1
- package/dist-cjs/core/preparation/manifest.js +23 -28
- package/dist-cjs/core/preparation/manifest.js.map +1 -1
- package/dist-cjs/core/preparation/normalize.js +14 -9
- package/dist-cjs/core/preparation/normalize.js.map +1 -1
- package/dist-cjs/custody/hardhat-runtime.js +2 -0
- package/dist-cjs/custody/hardhat-runtime.js.map +1 -1
- package/dist-cjs/custody/hardhat.js +3 -1
- package/dist-cjs/custody/hardhat.js.map +1 -1
- package/dist-cjs/custody/index.js +3 -1
- package/dist-cjs/custody/index.js.map +1 -1
- package/dist-cjs/custody/provider-wait.js +81 -0
- package/dist-cjs/custody/provider-wait.js.map +1 -0
- package/dist-cjs/delivery/policy.js +29 -0
- package/dist-cjs/delivery/policy.js.map +1 -0
- package/dist-cjs/sync/index.js +8 -0
- package/dist-cjs/sync/index.js.map +1 -1
- package/dist-cjs/workflow/index.js +12 -1
- package/dist-cjs/workflow/index.js.map +1 -1
- package/dist-runtime/config/hardhatAdapters.d.ts +2 -0
- package/dist-runtime/config/hardhatAdapters.js +8 -0
- package/dist-runtime/config/hardhatAdapters.js.map +1 -1
- package/dist-runtime/config/networks.d.ts +25 -1
- package/dist-runtime/config/networks.js +8 -2
- package/dist-runtime/config/networks.js.map +1 -1
- package/dist-runtime/config/openzeppelin.d.ts +2 -1
- package/dist-runtime/config/openzeppelin.js +2 -19
- package/dist-runtime/config/openzeppelin.js.map +1 -1
- package/dist-runtime/delivery/abi.d.ts +14 -0
- package/dist-runtime/delivery/abi.js +161 -0
- package/dist-runtime/delivery/abi.js.map +1 -0
- package/dist-runtime/delivery/aggregate-bootstrap.d.ts +12 -0
- package/dist-runtime/delivery/aggregate-bootstrap.js +40 -0
- package/dist-runtime/delivery/aggregate-bootstrap.js.map +1 -0
- package/dist-runtime/delivery/aggregate-channel.d.ts +28 -0
- package/dist-runtime/delivery/aggregate-channel.js +155 -0
- package/dist-runtime/delivery/aggregate-channel.js.map +1 -0
- package/dist-runtime/delivery/aggregate-inputs.d.ts +168 -0
- package/dist-runtime/delivery/aggregate-inputs.js +57 -0
- package/dist-runtime/delivery/aggregate-inputs.js.map +1 -0
- package/dist-runtime/delivery/aggregate-source.d.ts +25 -0
- package/dist-runtime/delivery/aggregate-source.js +79 -0
- package/dist-runtime/delivery/aggregate-source.js.map +1 -0
- package/dist-runtime/delivery/aggregate-worker.d.ts +1 -0
- package/dist-runtime/delivery/aggregate-worker.js +191 -0
- package/dist-runtime/delivery/aggregate-worker.js.map +1 -0
- package/dist-runtime/delivery/aggregate.d.ts +51 -0
- package/dist-runtime/delivery/aggregate.js +190 -0
- package/dist-runtime/delivery/aggregate.js.map +1 -0
- package/dist-runtime/delivery/bindings.d.ts +21 -0
- package/dist-runtime/delivery/bindings.js +53 -0
- package/dist-runtime/delivery/bindings.js.map +1 -0
- package/dist-runtime/delivery/check-code.d.ts +19 -0
- package/dist-runtime/delivery/check-code.js +63 -0
- package/dist-runtime/delivery/check-code.js.map +1 -0
- package/dist-runtime/delivery/closure-format.d.ts +77 -0
- package/dist-runtime/delivery/closure-format.js +225 -0
- package/dist-runtime/delivery/closure-format.js.map +1 -0
- package/dist-runtime/delivery/codec-pin.d.ts +2 -0
- package/dist-runtime/delivery/codec-pin.js +7 -0
- package/dist-runtime/delivery/codec-pin.js.map +1 -0
- package/dist-runtime/delivery/codec.d.ts +19 -0
- package/dist-runtime/delivery/codec.js +73 -0
- package/dist-runtime/delivery/codec.js.map +1 -0
- package/dist-runtime/delivery/compiler-dependency-pins.d.ts +7 -0
- package/dist-runtime/delivery/compiler-dependency-pins.js +1689 -0
- package/dist-runtime/delivery/compiler-dependency-pins.js.map +1 -0
- package/dist-runtime/delivery/compiler-files.d.ts +40 -0
- package/dist-runtime/delivery/compiler-files.js +220 -0
- package/dist-runtime/delivery/compiler-files.js.map +1 -0
- package/dist-runtime/delivery/compiler-io.d.ts +2 -0
- package/dist-runtime/delivery/compiler-io.js +13 -0
- package/dist-runtime/delivery/compiler-io.js.map +1 -0
- package/dist-runtime/delivery/compiler-pins.d.ts +10 -0
- package/dist-runtime/delivery/compiler-pins.js +147 -0
- package/dist-runtime/delivery/compiler-pins.js.map +1 -0
- package/dist-runtime/delivery/compiler.d.ts +188 -0
- package/dist-runtime/delivery/compiler.js +850 -0
- package/dist-runtime/delivery/compiler.js.map +1 -0
- package/dist-runtime/delivery/config.d.ts +48 -0
- package/dist-runtime/delivery/config.js +99 -0
- package/dist-runtime/delivery/config.js.map +1 -0
- package/dist-runtime/delivery/configuration-definition.d.ts +22 -0
- package/dist-runtime/delivery/configuration-definition.js +316 -0
- package/dist-runtime/delivery/configuration-definition.js.map +1 -0
- package/dist-runtime/delivery/configuration-hre.d.ts +17 -0
- package/dist-runtime/delivery/configuration-hre.js +198 -0
- package/dist-runtime/delivery/configuration-hre.js.map +1 -0
- package/dist-runtime/delivery/configuration-runtime.d.ts +36 -0
- package/dist-runtime/delivery/configuration-runtime.js +248 -0
- package/dist-runtime/delivery/configuration-runtime.js.map +1 -0
- package/dist-runtime/delivery/configuration.d.ts +35 -0
- package/dist-runtime/delivery/configuration.js +83 -0
- package/dist-runtime/delivery/configuration.js.map +1 -0
- package/dist-runtime/delivery/create2.d.ts +3 -0
- package/dist-runtime/delivery/create2.js +48 -0
- package/dist-runtime/delivery/create2.js.map +1 -0
- package/dist-runtime/delivery/custom-closure.d.ts +27 -0
- package/dist-runtime/delivery/custom-closure.js +818 -0
- package/dist-runtime/delivery/custom-closure.js.map +1 -0
- package/dist-runtime/delivery/custom-format.d.ts +35 -0
- package/dist-runtime/delivery/custom-format.js +383 -0
- package/dist-runtime/delivery/custom-format.js.map +1 -0
- package/dist-runtime/delivery/custom.d.ts +32 -0
- package/dist-runtime/delivery/custom.js +158 -0
- package/dist-runtime/delivery/custom.js.map +1 -0
- package/dist-runtime/delivery/data.d.ts +7 -0
- package/dist-runtime/delivery/data.js +86 -0
- package/dist-runtime/delivery/data.js.map +1 -0
- package/dist-runtime/delivery/development.d.ts +91 -0
- package/dist-runtime/delivery/development.js +395 -0
- package/dist-runtime/delivery/development.js.map +1 -0
- package/dist-runtime/delivery/engine.d.ts +9 -0
- package/dist-runtime/delivery/engine.js +23 -0
- package/dist-runtime/delivery/engine.js.map +1 -0
- package/dist-runtime/delivery/eoa-observation.d.ts +43 -0
- package/dist-runtime/delivery/eoa-observation.js +145 -0
- package/dist-runtime/delivery/eoa-observation.js.map +1 -0
- package/dist-runtime/delivery/eoa-signed.d.ts +2 -0
- package/dist-runtime/delivery/eoa-signed.js +74 -0
- package/dist-runtime/delivery/eoa-signed.js.map +1 -0
- package/dist-runtime/delivery/eoa.d.ts +81 -0
- package/dist-runtime/delivery/eoa.js +274 -0
- package/dist-runtime/delivery/eoa.js.map +1 -0
- package/dist-runtime/delivery/execution-db.d.ts +20 -0
- package/dist-runtime/delivery/execution-db.js +153 -0
- package/dist-runtime/delivery/execution-db.js.map +1 -0
- package/dist-runtime/delivery/execution-files.d.ts +9 -0
- package/dist-runtime/delivery/execution-files.js +138 -0
- package/dist-runtime/delivery/execution-files.js.map +1 -0
- package/dist-runtime/delivery/execution-model.d.ts +56 -0
- package/dist-runtime/delivery/execution-model.js +66 -0
- package/dist-runtime/delivery/execution-model.js.map +1 -0
- package/dist-runtime/delivery/execution-store.d.ts +48 -0
- package/dist-runtime/delivery/execution-store.js +361 -0
- package/dist-runtime/delivery/execution-store.js.map +1 -0
- package/dist-runtime/delivery/existing-code.d.ts +37 -0
- package/dist-runtime/delivery/existing-code.js +75 -0
- package/dist-runtime/delivery/existing-code.js.map +1 -0
- package/dist-runtime/delivery/export.d.ts +51 -0
- package/dist-runtime/delivery/export.js +69 -0
- package/dist-runtime/delivery/export.js.map +1 -0
- package/dist-runtime/delivery/forkAudit.d.ts +119 -0
- package/dist-runtime/delivery/forkAudit.js +473 -0
- package/dist-runtime/delivery/forkAudit.js.map +1 -0
- package/dist-runtime/delivery/hardhat.d.ts +3 -0
- package/dist-runtime/delivery/hardhat.js +45 -0
- package/dist-runtime/delivery/hardhat.js.map +1 -0
- package/dist-runtime/delivery/history-registration.d.ts +2 -0
- package/dist-runtime/delivery/history-registration.js +17 -0
- package/dist-runtime/delivery/history-registration.js.map +1 -0
- package/dist-runtime/delivery/identities.d.ts +22 -0
- package/dist-runtime/delivery/identities.js +97 -0
- package/dist-runtime/delivery/identities.js.map +1 -0
- package/dist-runtime/delivery/input-files.d.ts +5 -0
- package/dist-runtime/delivery/input-files.js +70 -0
- package/dist-runtime/delivery/input-files.js.map +1 -0
- package/dist-runtime/delivery/inputs.d.ts +62 -0
- package/dist-runtime/delivery/inputs.js +187 -0
- package/dist-runtime/delivery/inputs.js.map +1 -0
- package/dist-runtime/delivery/journal.d.ts +35 -0
- package/dist-runtime/delivery/journal.js +270 -0
- package/dist-runtime/delivery/journal.js.map +1 -0
- package/dist-runtime/delivery/manifest.d.ts +14 -0
- package/dist-runtime/delivery/manifest.js +68 -0
- package/dist-runtime/delivery/manifest.js.map +1 -0
- package/dist-runtime/delivery/materialization.d.ts +20 -0
- package/dist-runtime/delivery/materialization.js +138 -0
- package/dist-runtime/delivery/materialization.js.map +1 -0
- package/dist-runtime/delivery/observations.d.ts +31 -0
- package/dist-runtime/delivery/observations.js +38 -0
- package/dist-runtime/delivery/observations.js.map +1 -0
- package/dist-runtime/delivery/parameters.d.ts +53 -0
- package/dist-runtime/delivery/parameters.js +257 -0
- package/dist-runtime/delivery/parameters.js.map +1 -0
- package/dist-runtime/delivery/pending.d.ts +70 -0
- package/dist-runtime/delivery/pending.js +99 -0
- package/dist-runtime/delivery/pending.js.map +1 -0
- package/dist-runtime/delivery/plan.d.ts +50 -0
- package/dist-runtime/delivery/plan.js +209 -0
- package/dist-runtime/delivery/plan.js.map +1 -0
- package/dist-runtime/delivery/planning.d.ts +81 -0
- package/dist-runtime/delivery/planning.js +302 -0
- package/dist-runtime/delivery/planning.js.map +1 -0
- package/dist-runtime/delivery/policy.d.ts +4 -0
- package/dist-runtime/delivery/policy.js +9 -0
- package/dist-runtime/delivery/policy.js.map +1 -0
- package/dist-runtime/delivery/preparation.d.ts +6 -0
- package/dist-runtime/delivery/preparation.js +158 -0
- package/dist-runtime/delivery/preparation.js.map +1 -0
- package/dist-runtime/delivery/production-environment.d.ts +2 -0
- package/dist-runtime/delivery/production-environment.js +12 -0
- package/dist-runtime/delivery/production-environment.js.map +1 -0
- package/dist-runtime/delivery/production-finalization.d.ts +86 -0
- package/dist-runtime/delivery/production-finalization.js +278 -0
- package/dist-runtime/delivery/production-finalization.js.map +1 -0
- package/dist-runtime/delivery/production.d.ts +461 -0
- package/dist-runtime/delivery/production.js +396 -0
- package/dist-runtime/delivery/production.js.map +1 -0
- package/dist-runtime/delivery/project-files.d.ts +8 -0
- package/dist-runtime/delivery/project-files.js +82 -0
- package/dist-runtime/delivery/project-files.js.map +1 -0
- package/dist-runtime/delivery/project.d.ts +15 -0
- package/dist-runtime/delivery/project.js +157 -0
- package/dist-runtime/delivery/project.js.map +1 -0
- package/dist-runtime/delivery/protocol.d.ts +49 -0
- package/dist-runtime/delivery/protocol.js +112 -0
- package/dist-runtime/delivery/protocol.js.map +1 -0
- package/dist-runtime/delivery/references.d.ts +19 -0
- package/dist-runtime/delivery/references.js +84 -0
- package/dist-runtime/delivery/references.js.map +1 -0
- package/dist-runtime/delivery/release-graph.d.ts +93 -0
- package/dist-runtime/delivery/release-graph.js +106 -0
- package/dist-runtime/delivery/release-graph.js.map +1 -0
- package/dist-runtime/delivery/release-history-capture.d.ts +7 -0
- package/dist-runtime/delivery/release-history-capture.js +76 -0
- package/dist-runtime/delivery/release-history-capture.js.map +1 -0
- package/dist-runtime/delivery/release-history.d.ts +43 -0
- package/dist-runtime/delivery/release-history.js +246 -0
- package/dist-runtime/delivery/release-history.js.map +1 -0
- package/dist-runtime/delivery/release.d.ts +172 -0
- package/dist-runtime/delivery/release.js +209 -0
- package/dist-runtime/delivery/release.js.map +1 -0
- package/dist-runtime/delivery/safe-manifest.d.ts +9 -0
- package/dist-runtime/delivery/safe-manifest.js +13 -0
- package/dist-runtime/delivery/safe-manifest.js.map +1 -0
- package/dist-runtime/delivery/safe-observation.d.ts +30 -0
- package/dist-runtime/delivery/safe-observation.js +487 -0
- package/dist-runtime/delivery/safe-observation.js.map +1 -0
- package/dist-runtime/delivery/safe-prepare.d.ts +13 -0
- package/dist-runtime/delivery/safe-prepare.js +81 -0
- package/dist-runtime/delivery/safe-prepare.js.map +1 -0
- package/dist-runtime/delivery/safe.d.ts +91 -0
- package/dist-runtime/delivery/safe.js +243 -0
- package/dist-runtime/delivery/safe.js.map +1 -0
- package/dist-runtime/delivery/same-fork-baseline.d.ts +8 -0
- package/dist-runtime/delivery/same-fork-baseline.js +20 -0
- package/dist-runtime/delivery/same-fork-baseline.js.map +1 -0
- package/dist-runtime/delivery/setup.d.ts +31 -0
- package/dist-runtime/delivery/setup.js +215 -0
- package/dist-runtime/delivery/setup.js.map +1 -0
- package/dist-runtime/delivery/source.d.ts +41 -0
- package/dist-runtime/delivery/source.js +137 -0
- package/dist-runtime/delivery/source.js.map +1 -0
- package/dist-runtime/delivery/target-fields.d.ts +2 -0
- package/dist-runtime/delivery/target-fields.js +11 -0
- package/dist-runtime/delivery/target-fields.js.map +1 -0
- package/dist-runtime/delivery/validation.d.ts +9 -0
- package/dist-runtime/delivery/validation.js +150 -0
- package/dist-runtime/delivery/validation.js.map +1 -0
- package/dist-runtime/delivery/verification.d.ts +16 -0
- package/dist-runtime/delivery/verification.js +65 -0
- package/dist-runtime/delivery/verification.js.map +1 -0
- package/dist-runtime/migrate.js +1 -0
- package/dist-runtime/migrate.js.map +1 -1
- package/dist-runtime/miner/binary.d.ts +2 -0
- package/dist-runtime/miner/binary.js +54 -0
- package/dist-runtime/miner/binary.js.map +1 -0
- package/dist-runtime/miner/cli.d.ts +1 -0
- package/dist-runtime/miner/cli.js +131 -0
- package/dist-runtime/miner/cli.js.map +1 -0
- package/dist-runtime/miner/index.d.ts +5 -0
- package/dist-runtime/miner/index.js +13 -0
- package/dist-runtime/miner/index.js.map +1 -0
- package/dist-runtime/miner/request.d.ts +7 -0
- package/dist-runtime/miner/request.js +73 -0
- package/dist-runtime/miner/request.js.map +1 -0
- package/dist-runtime/miner/runner.d.ts +2 -0
- package/dist-runtime/miner/runner.js +131 -0
- package/dist-runtime/miner/runner.js.map +1 -0
- package/dist-runtime/miner/types.d.ts +89 -0
- package/dist-runtime/miner/types.js +3 -0
- package/dist-runtime/miner/types.js.map +1 -0
- package/dist-runtime/miner/verify.d.ts +2 -0
- package/dist-runtime/miner/verify.js +75 -0
- package/dist-runtime/miner/verify.js.map +1 -0
- package/dist-runtime/runtime-identity.json +2 -2
- package/dist-runtime/vendor/plan-codec/index.cjs +820 -0
- package/dist-runtime/vendor/plan-codec/index.d.cts +32 -0
- package/dist-runtime/vendor/plan-codec/provenance.json +24 -0
- package/dist-runtime/workflow/engine.d.ts +14 -0
- package/dist-runtime/workflow/engine.js +160 -0
- package/dist-runtime/workflow/engine.js.map +1 -0
- package/dist-runtime/workflow/lib/authority.d.ts +6 -3
- package/dist-runtime/workflow/lib/authority.js.map +1 -1
- package/dist-runtime/workflow/lib/calls.d.ts +1 -1
- package/dist-runtime/workflow/lib/calls.js +43 -34
- package/dist-runtime/workflow/lib/calls.js.map +1 -1
- package/dist-runtime/workflow/lib/canonicalData.d.ts +8 -0
- package/dist-runtime/workflow/lib/canonicalData.js +68 -0
- package/dist-runtime/workflow/lib/canonicalData.js.map +1 -0
- package/dist-runtime/workflow/lib/config.d.ts +3 -1
- package/dist-runtime/workflow/lib/config.js.map +1 -1
- package/dist-runtime/workflow/lib/context.d.ts +76 -0
- package/dist-runtime/workflow/lib/context.js +3 -0
- package/dist-runtime/workflow/lib/context.js.map +1 -0
- package/dist-runtime/workflow/lib/controlledMulticallAbi.d.ts +2 -0
- package/dist-runtime/workflow/lib/controlledMulticallAbi.js +10 -0
- package/dist-runtime/workflow/lib/controlledMulticallAbi.js.map +1 -0
- package/dist-runtime/workflow/lib/create2.d.ts +1 -1
- package/dist-runtime/workflow/lib/create2.js +9 -12
- package/dist-runtime/workflow/lib/create2.js.map +1 -1
- package/dist-runtime/workflow/lib/deployments.d.ts +5 -5
- package/dist-runtime/workflow/lib/deployments.js +5 -13
- package/dist-runtime/workflow/lib/deployments.js.map +1 -1
- package/dist-runtime/workflow/lib/evidencePorts.d.ts +55 -0
- package/dist-runtime/workflow/lib/evidencePorts.js +3 -0
- package/dist-runtime/workflow/lib/evidencePorts.js.map +1 -0
- package/dist-runtime/workflow/lib/executionPlan.d.ts +4 -42
- package/dist-runtime/workflow/lib/executionPlan.js +15 -210
- package/dist-runtime/workflow/lib/executionPlan.js.map +1 -1
- package/dist-runtime/workflow/lib/gateTool.d.ts +6 -2
- package/dist-runtime/workflow/lib/gateTool.js +20 -10
- package/dist-runtime/workflow/lib/gateTool.js.map +1 -1
- package/dist-runtime/workflow/lib/gateToolSync.d.ts +1 -1
- package/dist-runtime/workflow/lib/gateToolSync.js +3 -2
- package/dist-runtime/workflow/lib/gateToolSync.js.map +1 -1
- package/dist-runtime/workflow/lib/operationNames.d.ts +3 -0
- package/dist-runtime/workflow/lib/operationNames.js +34 -0
- package/dist-runtime/workflow/lib/operationNames.js.map +1 -0
- package/dist-runtime/workflow/lib/parameters.d.ts +1 -1
- package/dist-runtime/workflow/lib/parameters.js +9 -24
- package/dist-runtime/workflow/lib/parameters.js.map +1 -1
- package/dist-runtime/workflow/lib/pendingDeploymentReuse.js +18 -52
- package/dist-runtime/workflow/lib/pendingDeploymentReuse.js.map +1 -1
- package/dist-runtime/workflow/lib/pendingUupsBinding.d.ts +42 -0
- package/dist-runtime/workflow/lib/pendingUupsBinding.js +39 -0
- package/dist-runtime/workflow/lib/pendingUupsBinding.js.map +1 -0
- package/dist-runtime/workflow/lib/plan.d.ts +55 -0
- package/dist-runtime/workflow/lib/plan.js +324 -0
- package/dist-runtime/workflow/lib/plan.js.map +1 -0
- package/dist-runtime/workflow/lib/planCli.d.ts +14 -0
- package/dist-runtime/workflow/lib/planCli.js +279 -0
- package/dist-runtime/workflow/lib/planCli.js.map +1 -0
- package/dist-runtime/workflow/lib/preparationEvidence.d.ts +4 -0
- package/dist-runtime/workflow/lib/preparationEvidence.js +19 -0
- package/dist-runtime/workflow/lib/preparationEvidence.js.map +1 -0
- package/dist-runtime/workflow/lib/proxy.d.ts +3 -2
- package/dist-runtime/workflow/lib/proxy.js +3 -4
- package/dist-runtime/workflow/lib/proxy.js.map +1 -1
- package/dist-runtime/workflow/lib/runtime.d.ts +6 -0
- package/dist-runtime/workflow/lib/runtime.js +48 -0
- package/dist-runtime/workflow/lib/runtime.js.map +1 -0
- package/dist-runtime/workflow/lib/signer.d.ts +3 -2
- package/dist-runtime/workflow/lib/signer.js +18 -18
- package/dist-runtime/workflow/lib/signer.js.map +1 -1
- package/dist-runtime/workflow/lib/simulation.d.ts +13 -6
- package/dist-runtime/workflow/lib/simulation.js +39 -31
- package/dist-runtime/workflow/lib/simulation.js.map +1 -1
- package/dist-runtime/workflow/lib/state.js +3 -3
- package/dist-runtime/workflow/lib/state.js.map +1 -1
- package/dist-runtime/workflow/lib/staticValidation.d.ts +28 -0
- package/dist-runtime/workflow/lib/staticValidation.js +54 -10
- package/dist-runtime/workflow/lib/staticValidation.js.map +1 -1
- package/dist-runtime/workflow/lib/transactionPlanner.d.ts +62 -0
- package/dist-runtime/workflow/lib/transactionPlanner.js +258 -0
- package/dist-runtime/workflow/lib/transactionPlanner.js.map +1 -0
- package/dist-runtime/workflow/lib/typedValue.d.ts +3 -0
- package/dist-runtime/workflow/lib/typedValue.js +76 -0
- package/dist-runtime/workflow/lib/typedValue.js.map +1 -0
- package/dist-runtime/workflow/lib/validation.d.ts +23 -0
- package/dist-runtime/workflow/lib/validation.js +15 -0
- package/dist-runtime/workflow/lib/validation.js.map +1 -0
- package/dist-runtime/workflow/planAdd.d.ts +1 -0
- package/dist-runtime/workflow/planAdd.js +11 -0
- package/dist-runtime/workflow/planAdd.js.map +1 -0
- package/dist-runtime/workflow/planRead.d.ts +1 -0
- package/dist-runtime/workflow/planRead.js +11 -0
- package/dist-runtime/workflow/planRead.js.map +1 -0
- package/dist-runtime/workflow/planStatus.d.ts +1 -0
- package/dist-runtime/workflow/planStatus.js +11 -0
- package/dist-runtime/workflow/planStatus.js.map +1 -0
- package/dist-runtime/workflow/planWrite.d.ts +1 -0
- package/dist-runtime/workflow/planWrite.js +11 -0
- package/dist-runtime/workflow/planWrite.js.map +1 -0
- package/dist-runtime/workflow/run.d.ts +1 -40
- package/dist-runtime/workflow/run.js +68 -136
- package/dist-runtime/workflow/run.js.map +1 -1
- package/dist-runtime/workflow/staticValidate.js +8 -3
- package/dist-runtime/workflow/staticValidate.js.map +1 -1
- package/dist-runtime/workflow/steps/call.d.ts +1 -1
- package/dist-runtime/workflow/steps/check.d.ts +1 -1
- package/dist-runtime/workflow/steps/custom.d.ts +1 -1
- package/dist-runtime/workflow/steps/deploy.d.ts +1 -1
- package/dist-runtime/workflow/steps/deploy.js +58 -55
- package/dist-runtime/workflow/steps/deploy.js.map +1 -1
- package/dist-runtime/workflow/steps/upgrade.d.ts +1 -1
- package/dist-runtime/workflow/steps/upgrade.js +63 -41
- package/dist-runtime/workflow/steps/upgrade.js.map +1 -1
- package/dist-runtime/workflow/steps/view.d.ts +1 -1
- package/docs/compiler-qualification.md +32 -0
- package/docs/configuration-runtime-observation.md +29 -0
- package/docs/create2-miner.md +100 -0
- package/docs/delivery-aggregate.md +27 -0
- package/docs/delivery-custom-input-closure.md +51 -0
- package/docs/delivery-development.md +32 -0
- package/docs/delivery-eoa.md +46 -0
- package/docs/delivery-evm-manifest.md +20 -0
- package/docs/delivery-execution-store.md +33 -0
- package/docs/delivery-inputs.md +46 -0
- package/docs/delivery-parameters.md +65 -0
- package/docs/delivery-planning.md +140 -0
- package/docs/delivery-release.md +65 -0
- package/docs/delivery-safe.md +72 -0
- package/docs/delivery-setup.md +146 -0
- package/docs/delivery-source.md +67 -0
- package/docs/direct-package-acceptance.md +20 -0
- package/docs/external-infrastructure-acceptance.md +33 -0
- package/docs/network-runtime-acceptance.md +18 -0
- package/docs/plans/2026-09-09-workflow-extraction.md +16 -0
- package/docs/superpowers/plans/2026-07-22-manifest-bootstrap-transaction.md +50 -0
- package/docs/superpowers/plans/2026-07-22-manifest-review-remediation.md +49 -0
- package/docs/superpowers/plans/2026-08-17-custody-hardhat-signers.md +227 -0
- package/docs/superpowers/plans/2026-09-09-remove-template-infrastructure-contracts.md +11 -0
- package/docs/superpowers/plans/2026-09-24-scheme-aware-static-validation.md +193 -0
- package/docs/superpowers/plans/2026-10-28-create2-miner.md +82 -0
- package/docs/workflow-reference.md +1181 -0
- package/docs/workflow-runtime-acceptance.md +17 -0
- package/docs/workflow-runtime.md +56 -0
- package/package.json +134 -9
- package/resources/create2/LICENSE +21 -0
- package/resources/create2/README.md +9 -0
- package/resources/create2/darwin-arm64/smartflow_miner +0 -0
- package/resources/create2/darwin-x64/smartflow_miner +0 -0
- package/resources/create2/manifest.json +27 -0
- package/runtime/config/hardhatAdapters.ts +8 -0
- package/runtime/config/networks.ts +20 -11
- package/runtime/config/openzeppelin.ts +3 -21
- package/runtime/delivery/abi.ts +225 -0
- package/runtime/delivery/aggregate-bootstrap.ts +29 -0
- package/runtime/delivery/aggregate-channel.ts +85 -0
- package/runtime/delivery/aggregate-inputs.ts +39 -0
- package/runtime/delivery/aggregate-source.ts +53 -0
- package/runtime/delivery/aggregate-worker.ts +133 -0
- package/runtime/delivery/aggregate.ts +139 -0
- package/runtime/delivery/bindings.ts +37 -0
- package/runtime/delivery/check-code.ts +38 -0
- package/runtime/delivery/closure-format.ts +350 -0
- package/runtime/delivery/codec-pin.ts +3 -0
- package/runtime/delivery/codec.ts +50 -0
- package/runtime/delivery/compiler-dependency-pins.ts +1685 -0
- package/runtime/delivery/compiler-files.ts +179 -0
- package/runtime/delivery/compiler-io.ts +10 -0
- package/runtime/delivery/compiler-pins.ts +143 -0
- package/runtime/delivery/compiler.ts +700 -0
- package/runtime/delivery/config.ts +93 -0
- package/runtime/delivery/configuration-definition.ts +133 -0
- package/runtime/delivery/configuration-hre.ts +130 -0
- package/runtime/delivery/configuration-runtime.ts +163 -0
- package/runtime/delivery/configuration.ts +64 -0
- package/runtime/delivery/create2.ts +57 -0
- package/runtime/delivery/custom-closure.ts +993 -0
- package/runtime/delivery/custom-format.ts +464 -0
- package/runtime/delivery/custom.ts +219 -0
- package/runtime/delivery/data.ts +94 -0
- package/runtime/delivery/development.ts +262 -0
- package/runtime/delivery/engine.ts +29 -0
- package/runtime/delivery/eoa-observation.ts +106 -0
- package/runtime/delivery/eoa-signed.ts +55 -0
- package/runtime/delivery/eoa.ts +288 -0
- package/runtime/delivery/execution-db.ts +131 -0
- package/runtime/delivery/execution-files.ts +135 -0
- package/runtime/delivery/execution-model.ts +102 -0
- package/runtime/delivery/execution-store.ts +411 -0
- package/runtime/delivery/existing-code.ts +44 -0
- package/runtime/delivery/export.ts +99 -0
- package/runtime/delivery/forkAudit.ts +620 -0
- package/runtime/delivery/hardhat.ts +38 -0
- package/runtime/delivery/history-registration.ts +10 -0
- package/runtime/delivery/identities.ts +132 -0
- package/runtime/delivery/input-files.ts +46 -0
- package/runtime/delivery/inputs.ts +197 -0
- package/runtime/delivery/journal.ts +201 -0
- package/runtime/delivery/manifest.ts +54 -0
- package/runtime/delivery/materialization.ts +53 -0
- package/runtime/delivery/observations.ts +60 -0
- package/runtime/delivery/parameters.ts +349 -0
- package/runtime/delivery/pending.ts +98 -0
- package/runtime/delivery/plan.ts +337 -0
- package/runtime/delivery/planning.ts +397 -0
- package/runtime/delivery/policy.ts +9 -0
- package/runtime/delivery/preparation.ts +224 -0
- package/runtime/delivery/production-environment.ts +6 -0
- package/runtime/delivery/production-finalization.ts +172 -0
- package/runtime/delivery/production.ts +375 -0
- package/runtime/delivery/project-files.ts +58 -0
- package/runtime/delivery/project.ts +117 -0
- package/runtime/delivery/protocol.ts +94 -0
- package/runtime/delivery/references.ts +106 -0
- package/runtime/delivery/release-graph.ts +49 -0
- package/runtime/delivery/release-history-capture.ts +32 -0
- package/runtime/delivery/release-history.ts +120 -0
- package/runtime/delivery/release.ts +128 -0
- package/runtime/delivery/safe-manifest.ts +11 -0
- package/runtime/delivery/safe-observation.ts +626 -0
- package/runtime/delivery/safe-prepare.ts +101 -0
- package/runtime/delivery/safe.ts +344 -0
- package/runtime/delivery/same-fork-baseline.ts +16 -0
- package/runtime/delivery/setup.ts +172 -0
- package/runtime/delivery/source.ts +130 -0
- package/runtime/delivery/target-fields.ts +7 -0
- package/runtime/delivery/validation.ts +247 -0
- package/runtime/delivery/verification.ts +47 -0
- package/runtime/migrate.ts +1 -0
- package/runtime/miner/binary.ts +41 -0
- package/runtime/miner/cli.ts +87 -0
- package/runtime/miner/index.ts +5 -0
- package/runtime/miner/request.ts +54 -0
- package/runtime/miner/runner.ts +90 -0
- package/runtime/miner/types.ts +71 -0
- package/runtime/miner/verify.ts +61 -0
- package/runtime/vendor/plan-codec/index.cjs +820 -0
- package/runtime/vendor/plan-codec/index.d.cts +32 -0
- package/runtime/vendor/plan-codec/provenance.json +24 -0
- package/runtime/workflow/engine.ts +174 -0
- package/runtime/workflow/lib/authority.ts +3 -3
- package/runtime/workflow/lib/calls.ts +46 -37
- package/runtime/workflow/lib/canonicalData.ts +45 -0
- package/runtime/workflow/lib/config.ts +1 -1
- package/runtime/workflow/lib/context.ts +76 -0
- package/runtime/workflow/lib/controlledMulticallAbi.ts +6 -0
- package/runtime/workflow/lib/create2.ts +10 -12
- package/runtime/workflow/lib/deployments.ts +6 -14
- package/runtime/workflow/lib/evidencePorts.ts +20 -0
- package/runtime/workflow/lib/executionPlan.ts +17 -268
- package/runtime/workflow/lib/gateTool.ts +20 -8
- package/runtime/workflow/lib/gateToolSync.ts +3 -3
- package/runtime/workflow/lib/operationNames.ts +32 -0
- package/runtime/workflow/lib/parameters.ts +7 -23
- package/runtime/workflow/lib/pendingDeploymentReuse.ts +4 -56
- package/runtime/workflow/lib/pendingUupsBinding.ts +43 -0
- package/runtime/workflow/lib/plan.ts +334 -0
- package/runtime/workflow/lib/planCli.ts +279 -0
- package/runtime/workflow/lib/preparationEvidence.ts +14 -0
- package/runtime/workflow/lib/proxy.ts +5 -3
- package/runtime/workflow/lib/runtime.ts +46 -0
- package/runtime/workflow/lib/signer.ts +8 -5
- package/runtime/workflow/lib/simulation.ts +41 -17
- package/runtime/workflow/lib/state.ts +3 -3
- package/runtime/workflow/lib/staticValidation.ts +92 -11
- package/runtime/workflow/lib/transactionPlanner.ts +314 -0
- package/runtime/workflow/lib/typedValue.ts +46 -0
- package/runtime/workflow/lib/validation.ts +50 -0
- package/runtime/workflow/planAdd.ts +8 -0
- package/runtime/workflow/planRead.ts +8 -0
- package/runtime/workflow/planStatus.ts +8 -0
- package/runtime/workflow/planWrite.ts +8 -0
- package/runtime/workflow/run.ts +41 -174
- package/runtime/workflow/staticValidate.ts +8 -3
- package/runtime/workflow/steps/call.ts +1 -1
- package/runtime/workflow/steps/check.ts +1 -1
- package/runtime/workflow/steps/custom.ts +1 -1
- package/runtime/workflow/steps/deploy.ts +59 -59
- package/runtime/workflow/steps/upgrade.ts +71 -47
- package/runtime/workflow/steps/view.ts +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Local workflow extraction acceptance — 2026-09-09
|
|
2
|
+
|
|
3
|
+
Implemented in EvmGateTools and EvmHardhatCli. SmartFlowAI required no source changes because legacy script entrypoints and project-owned state remain intact.
|
|
4
|
+
|
|
5
|
+
- GateTool build and tests: 123 passed, including historical proxy-artifact compatibility, runtime binding mismatch/unversioned resume rejection, and migration custom/symlink refusal.
|
|
6
|
+
- Template build and full suite: 370 passed. Existing source fixture coverage now consumes TypeScript from the installed package, including deployment, UUPS preparation/retry, external reconciliation and reporter concurrency.
|
|
7
|
+
- GateFlow existing full-template integrity and rpc.env suites: 19 passed. This is adapter regression coverage, not a complete UI SuperTask run.
|
|
8
|
+
- Installed tarball in an isolated generated full project, updated package.json/package-lock.json and completed `npm ci --ignore-scripts`.
|
|
9
|
+
- Compiled-package integration: 9 Hardhat tests passed; direct `npx --no-install gate-workflow` two-custom-step local simulation succeeded; invocation outside the project with `--project-root` resolved the correct project and custom scripts.
|
|
10
|
+
- Baseline migration: 70 files replaced with compatibility exports, every backup compared byte-for-byte, repeat apply performed no changes. Custom/missing/symlinked paths are refused.
|
|
11
|
+
- `git diff --check` passed in both modified repositories.
|
|
12
|
+
|
|
13
|
+
Local artifact and durable logs: `/Users/vector/gate/local-packages/workflow-extraction/`. `acceptance.json` records the tarball SHA256 and installed runtime digest. The fixture is `full-runtime-check`. The runtime loaded by this fixture was compared with the built runtime identity.
|
|
14
|
+
|
|
15
|
+
No npm publication, git commit/push, live SuperTask modification or remote transaction broadcast occurred. Solidity/compiler settings and implementation/proxy salt policy were preserved. Local Hardhat tests use the in-process chain; zkSync and UUPS retry coverage uses existing test fixtures, not live-network acceptance.
|
|
16
|
+
|
|
17
|
+
The template dependency is intentionally the unpublished `1.1.0-local.0` preview. Before publication or distribution, choose a released exact version and regenerate dependency locks. Existing projects require one migration of compatible script exports plus dependency/lockfile installation; subsequent compatible runtime updates use the package. Customized workflows and already-started unversioned executions require the documented manual transition.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Packaged workflow runtime (local preview)
|
|
2
|
+
|
|
3
|
+
GateTool owns the full-template workflow implementation. New templates have no `scripts/workflow` or `scripts/config` forwarding directory: npm scripts call `gate-workflow`, and Hardhat/tests import package exports directly. Existing npm command names remain supported. Contracts, config.yaml/config.json, rpc.env, task YAML, salts, business scripts and result files remain project-owned. Compiler settings and deployment/vanity behavior are unchanged.
|
|
4
|
+
|
|
5
|
+
The release version is `1.0.27`. Publish GateTool before distributing a template that depends on it. Install the built tarball with `npm install --save-dev --save-exact /path/to/gate-evm-tools-1.0.27.tgz`. Commit the resulting dependency and existing lockfile together when ready; do not change lockfile formats. Keep the tarball accessible for `npm ci`. Before npm publication, use the explicit local tarball installation above for validation; after publication, install the exact registry version and refresh the lockfile.
|
|
6
|
+
|
|
7
|
+
Commands run from the project root:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npx --no-install gate-workflow --help
|
|
11
|
+
npx --no-install gate-workflow static-validate --task TASK
|
|
12
|
+
npx --no-install gate-workflow run --task TASK --network hardhat --target hardhat --mode simulate --executionId NEW_ID --no-compile
|
|
13
|
+
npx --no-install gate-workflow migrate
|
|
14
|
+
npx --no-install gate-workflow migrate --apply
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`--project-root /absolute/project` selects another project explicitly. No manual `--require ts-node/register` is needed for the packaged CLI. Hardhat and its configuration are loaded from the selected project. The workflow runtime requires the full-template Hardhat 2 / ethers 6 plugin setup; the existing GateTool core ethers 5 support does not imply workflow support for ethers 5.
|
|
18
|
+
|
|
19
|
+
Migration defaults to a reviewable JSON plan. Apply removes recognized baseline files or exact compatibility shims, rewrites recognized npm commands and static imports to package exports, and backs up all changed files in `.gate-workflow-backup-*`. Missing helpers are already migrated. Customized files, symlinks and unresolved executable references block the entire operation before writing. The installed package exports, declared version and npm lock version are checked first. Dependency/lockfile installation is a separate explicit npm step above. Custom workflows require a manual merge. This utility does not migrate live execution state or generate project config. To roll back, restore the backup scripts and the prior package/lockfile pair, then reinstall from that lockfile.
|
|
20
|
+
|
|
21
|
+
Simulate/execute binds each target and execution ID to the package version and build digest (runtime and GateTool code). A changed build or unversioned existing execution is rejected. Finish existing tasks with their original scripts/package, or reconcile confirmed transactions and prepare a new execution. Do not delete binding records to bypass this check.
|
|
22
|
+
|
|
23
|
+
Custom steps remain in the project and export default/main/run. Migration rewrites recognized imports through project shims to package exports. Type-only imports may use `gate-evm-tools/runtime/run` (`WorkflowContext`) and `gate-evm-tools/runtime/lib/parameters` (`WorkflowStep`). Modules under runtime/lib are compatibility surfaces tied to the pinned package; upgrade them together. Runtime TypeScript sources ship for source-level regression fixtures; production invokes compiled JavaScript.
|
|
24
|
+
|
|
25
|
+
Validation is local and without broadcast. This preview is not an npm release and does not switch an active SuperTask automatically.
|
|
26
|
+
|
|
27
|
+
## Network and Hardhat adapters
|
|
28
|
+
|
|
29
|
+
The project owns its complete network list in `hardhat.config.ts`. `createNetworkHelpers({ accounts, env? })` supplies RPC routing, account injection and validated fork inputs without choosing remote networks. `env` defaults to process.env; load rpc.env/.env before calling the helper. Edit the existing `networks` entries to override fields or add a network. Keep one network list during migration, preserving confirmed custom fields and the original compiler settings.
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import { createNetworkHelpers } from 'gate-evm-tools/runtime-config/networks';
|
|
33
|
+
// After rpc.env/.env loading and project account resolution:
|
|
34
|
+
const { remoteNetwork } = createNetworkHelpers({ accounts });
|
|
35
|
+
const config = {
|
|
36
|
+
// Keep compiler settings and other network entries from your project.
|
|
37
|
+
networks: {
|
|
38
|
+
bscDev: {
|
|
39
|
+
...remoteNetwork({
|
|
40
|
+
route: 'bsc', publicFallback: 'https://bsc.drpc.org',
|
|
41
|
+
useBaseRpc: true, chainId: 56,
|
|
42
|
+
rpcUrl: process.env.BSC_DEV_RPC_URL,
|
|
43
|
+
}),
|
|
44
|
+
timeout: 60_000,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The deprecated `createTemplateNetworks` export retains historical defaults only for compatibility with already-generated projects. New templates do not load it; updating GateTool does not replace their inline network declarations.
|
|
51
|
+
|
|
52
|
+
Register `registerZkSyncSolcAdapter(subtask, TASK_COMPILE_SOLIDITY_RUN_SOLC)` with the project's Hardhat API; the package must not initialize an HRE during config loading. `withTemplateArtifactPaths(config)` selects EVM or zkSync artifact/cache directories and leaves compiler configuration unchanged. Manifest environment binding still precedes loading the upgrades plugin; rpc.env and credential resolution remain explicit in the project. Neither helper reads project env files or changes compiler versions.
|
|
53
|
+
|
|
54
|
+
The RPC resolver and zkSync solc PATH adapter are also exported under `runtime-config/rpc` and `runtime-config/zksyncSolcPath`; new templates import these exports directly. Migration now recognizes 72 baseline helper/workflow files. Migration rewrites recognized Hardhat imports but preserves compiler/settings/overrides. Merge new helper calls into older inline configs separately while retaining the old toolchain for overlay projects. Network infrastructure/config.yaml profiles and business data stay project-owned.
|
|
55
|
+
|
|
56
|
+
After this one-time migration, compatible runtime upgrades require updating the exact GateTool dependency and existing lockfile, without copying workflow scripts. Breaking configuration/API changes still require their documented migration. Finish active execution bindings on their original build before upgrading.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gate-evm-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"description": "Gate 智能合约工具集 - 字节码检查、合约升级验证、合约状态同步",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -32,7 +32,76 @@
|
|
|
32
32
|
"types": "./dist-runtime/config/*.d.ts",
|
|
33
33
|
"default": "./dist-runtime/config/*.js"
|
|
34
34
|
},
|
|
35
|
-
"./runtime-source/*": "./runtime/*.ts"
|
|
35
|
+
"./runtime-source/*": "./runtime/*.ts",
|
|
36
|
+
"./delivery-setup": {
|
|
37
|
+
"types": "./dist-runtime/delivery/setup.d.ts",
|
|
38
|
+
"default": "./dist-runtime/delivery/setup.js"
|
|
39
|
+
},
|
|
40
|
+
"./delivery-protocol": {
|
|
41
|
+
"types": "./dist-runtime/delivery/protocol.d.ts",
|
|
42
|
+
"default": "./dist-runtime/delivery/protocol.js"
|
|
43
|
+
},
|
|
44
|
+
"./delivery-hardhat": {
|
|
45
|
+
"types": "./dist-runtime/delivery/hardhat.d.ts",
|
|
46
|
+
"default": "./dist-runtime/delivery/hardhat.js"
|
|
47
|
+
},
|
|
48
|
+
"./delivery-policy": {
|
|
49
|
+
"types": "./dist/delivery/policy.d.ts",
|
|
50
|
+
"import": "./dist/delivery/policy.js",
|
|
51
|
+
"require": "./dist-cjs/delivery/policy.js"
|
|
52
|
+
},
|
|
53
|
+
"./delivery-source": {
|
|
54
|
+
"types": "./dist-runtime/delivery/source.d.ts",
|
|
55
|
+
"default": "./dist-runtime/delivery/source.js"
|
|
56
|
+
},
|
|
57
|
+
"./delivery-parameters": {
|
|
58
|
+
"types": "./dist-runtime/delivery/parameters.d.ts",
|
|
59
|
+
"default": "./dist-runtime/delivery/parameters.js"
|
|
60
|
+
},
|
|
61
|
+
"./delivery-inputs": {
|
|
62
|
+
"types": "./dist-runtime/delivery/inputs.d.ts",
|
|
63
|
+
"default": "./dist-runtime/delivery/inputs.js"
|
|
64
|
+
},
|
|
65
|
+
"./delivery-configuration": {
|
|
66
|
+
"types": "./dist-runtime/delivery/configuration.d.ts",
|
|
67
|
+
"default": "./dist-runtime/delivery/configuration.js"
|
|
68
|
+
},
|
|
69
|
+
"./delivery-aggregate": {
|
|
70
|
+
"types": "./dist-runtime/delivery/aggregate.d.ts",
|
|
71
|
+
"default": "./dist-runtime/delivery/aggregate.js"
|
|
72
|
+
},
|
|
73
|
+
"./delivery-export": {
|
|
74
|
+
"types": "./dist-runtime/delivery/export.d.ts",
|
|
75
|
+
"default": "./dist-runtime/delivery/export.js"
|
|
76
|
+
},
|
|
77
|
+
"./delivery-execution-store": {
|
|
78
|
+
"types": "./dist-runtime/delivery/execution-store.d.ts",
|
|
79
|
+
"default": "./dist-runtime/delivery/execution-store.js"
|
|
80
|
+
},
|
|
81
|
+
"./delivery-eoa": {
|
|
82
|
+
"types": "./dist-runtime/delivery/eoa.d.ts",
|
|
83
|
+
"default": "./dist-runtime/delivery/eoa.js"
|
|
84
|
+
},
|
|
85
|
+
"./delivery-development": {
|
|
86
|
+
"types": "./dist-runtime/delivery/development.d.ts",
|
|
87
|
+
"default": "./dist-runtime/delivery/development.js"
|
|
88
|
+
},
|
|
89
|
+
"./delivery-release": {
|
|
90
|
+
"types": "./dist-runtime/delivery/release.d.ts",
|
|
91
|
+
"default": "./dist-runtime/delivery/release.js"
|
|
92
|
+
},
|
|
93
|
+
"./delivery-production": {
|
|
94
|
+
"types": "./dist-runtime/delivery/production.d.ts",
|
|
95
|
+
"default": "./dist-runtime/delivery/production.js"
|
|
96
|
+
},
|
|
97
|
+
"./delivery-safe": {
|
|
98
|
+
"types": "./dist-runtime/delivery/safe.d.ts",
|
|
99
|
+
"default": "./dist-runtime/delivery/safe.js"
|
|
100
|
+
},
|
|
101
|
+
"./create2-miner": {
|
|
102
|
+
"types": "./dist-runtime/miner/index.d.ts",
|
|
103
|
+
"default": "./dist-runtime/miner/index.js"
|
|
104
|
+
}
|
|
36
105
|
},
|
|
37
106
|
"typesVersions": {
|
|
38
107
|
"*": {
|
|
@@ -53,12 +122,64 @@
|
|
|
53
122
|
],
|
|
54
123
|
"runtime-config/*": [
|
|
55
124
|
"dist-runtime/config/*.d.ts"
|
|
125
|
+
],
|
|
126
|
+
"delivery-setup": [
|
|
127
|
+
"dist-runtime/delivery/setup.d.ts"
|
|
128
|
+
],
|
|
129
|
+
"delivery-protocol": [
|
|
130
|
+
"dist-runtime/delivery/protocol.d.ts"
|
|
131
|
+
],
|
|
132
|
+
"delivery-hardhat": [
|
|
133
|
+
"dist-runtime/delivery/hardhat.d.ts"
|
|
134
|
+
],
|
|
135
|
+
"delivery-policy": [
|
|
136
|
+
"dist/delivery/policy.d.ts"
|
|
137
|
+
],
|
|
138
|
+
"delivery-source": [
|
|
139
|
+
"dist-runtime/delivery/source.d.ts"
|
|
140
|
+
],
|
|
141
|
+
"delivery-parameters": [
|
|
142
|
+
"dist-runtime/delivery/parameters.d.ts"
|
|
143
|
+
],
|
|
144
|
+
"delivery-inputs": [
|
|
145
|
+
"dist-runtime/delivery/inputs.d.ts"
|
|
146
|
+
],
|
|
147
|
+
"delivery-configuration": [
|
|
148
|
+
"dist-runtime/delivery/configuration.d.ts"
|
|
149
|
+
],
|
|
150
|
+
"delivery-aggregate": [
|
|
151
|
+
"dist-runtime/delivery/aggregate.d.ts"
|
|
152
|
+
],
|
|
153
|
+
"delivery-export": [
|
|
154
|
+
"dist-runtime/delivery/export.d.ts"
|
|
155
|
+
],
|
|
156
|
+
"delivery-execution-store": [
|
|
157
|
+
"dist-runtime/delivery/execution-store.d.ts"
|
|
158
|
+
],
|
|
159
|
+
"delivery-eoa": [
|
|
160
|
+
"dist-runtime/delivery/eoa.d.ts"
|
|
161
|
+
],
|
|
162
|
+
"delivery-development": [
|
|
163
|
+
"dist-runtime/delivery/development.d.ts"
|
|
164
|
+
],
|
|
165
|
+
"delivery-release": [
|
|
166
|
+
"dist-runtime/delivery/release.d.ts"
|
|
167
|
+
],
|
|
168
|
+
"delivery-production": [
|
|
169
|
+
"dist-runtime/delivery/production.d.ts"
|
|
170
|
+
],
|
|
171
|
+
"delivery-safe": [
|
|
172
|
+
"dist-runtime/delivery/safe.d.ts"
|
|
173
|
+
],
|
|
174
|
+
"create2-miner": [
|
|
175
|
+
"dist-runtime/miner/index.d.ts"
|
|
56
176
|
]
|
|
57
177
|
}
|
|
58
178
|
},
|
|
59
179
|
"bin": {
|
|
60
180
|
"gate-tool": "./bin/cli.js",
|
|
61
|
-
"gate-workflow": "./bin/workflow.cjs"
|
|
181
|
+
"gate-workflow": "./bin/workflow.cjs",
|
|
182
|
+
"gate-delivery": "./bin/delivery.cjs"
|
|
62
183
|
},
|
|
63
184
|
"files": [
|
|
64
185
|
"bin/",
|
|
@@ -67,15 +188,18 @@
|
|
|
67
188
|
"README.md",
|
|
68
189
|
"contractInfo.example.json",
|
|
69
190
|
"dist-runtime/",
|
|
70
|
-
"runtime/"
|
|
191
|
+
"runtime/",
|
|
192
|
+
"docs/",
|
|
193
|
+
"resources/create2/"
|
|
71
194
|
],
|
|
72
195
|
"scripts": {
|
|
73
|
-
"build": "tsc && tsc -p tsconfig.custody-cjs.json && node scripts/write-cjs-package.mjs && tsc -p tsconfig.runtime.json && node scripts/write-runtime-package.mjs",
|
|
196
|
+
"build": "tsc && tsc -p tsconfig.custody-cjs.json && node scripts/write-cjs-package.mjs && tsc -p tsconfig.runtime.json && node scripts/stage-plan-codec.mjs && node scripts/write-runtime-package.mjs",
|
|
74
197
|
"dev": "tsc --watch",
|
|
75
198
|
"start": "node bin/cli.js",
|
|
76
199
|
"pretest": "npm run build",
|
|
77
200
|
"test": "node --test test/*.test.mjs",
|
|
78
|
-
"test:custody:hardhat-v6": "npm run build && node scripts/test-custody-hardhat-v6.mjs"
|
|
201
|
+
"test:custody:hardhat-v6": "npm run build && node scripts/test-custody-hardhat-v6.mjs",
|
|
202
|
+
"test:delivery:core": "npm run build && node --test test/integration/delivery-core.test.mjs"
|
|
79
203
|
},
|
|
80
204
|
"keywords": [
|
|
81
205
|
"bytecode",
|
|
@@ -92,12 +216,14 @@
|
|
|
92
216
|
"author": "",
|
|
93
217
|
"license": "MIT",
|
|
94
218
|
"dependencies": {
|
|
219
|
+
"ajv": "8.17.1",
|
|
95
220
|
"chalk": "^5.3.0",
|
|
96
221
|
"commander": "^11.1.0",
|
|
97
222
|
"fs-extra": "^11.2.0",
|
|
98
223
|
"ora": "^7.0.1",
|
|
99
224
|
"prompts": "^2.4.2",
|
|
100
225
|
"semver": "^7.8.5",
|
|
226
|
+
"typescript": "5.9.3",
|
|
101
227
|
"yaml": "2.8.1",
|
|
102
228
|
"zksync-ethers": "6.15.0"
|
|
103
229
|
},
|
|
@@ -116,8 +242,7 @@
|
|
|
116
242
|
"ethers": "^6.15.0",
|
|
117
243
|
"ethers5": "npm:ethers@5.7.2",
|
|
118
244
|
"hardhat": "2.27.1",
|
|
119
|
-
"ts-node": "10.9.2"
|
|
120
|
-
"typescript": "^5.9.3"
|
|
245
|
+
"ts-node": "10.9.2"
|
|
121
246
|
},
|
|
122
247
|
"peerDependencies": {
|
|
123
248
|
"@matterlabs/hardhat-zksync-deploy": "1.8.0",
|
|
@@ -144,6 +269,6 @@
|
|
|
144
269
|
}
|
|
145
270
|
},
|
|
146
271
|
"engines": {
|
|
147
|
-
"node": ">=
|
|
272
|
+
"node": ">=22.13.0"
|
|
148
273
|
}
|
|
149
274
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 0age
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Bundled CREATE2 miner
|
|
2
|
+
|
|
3
|
+
`smartflow_miner` accepts a single JSON request on stdin and emits a single final JSON response. These macOS arm64 and x64 executables are copied byte-for-byte from SmartFlowAI `resources/create2`, whose last resource commit was `a31308bdbe81c02181ff4bcd2b992681c184d40f`. The original application resources are unchanged.
|
|
4
|
+
|
|
5
|
+
`manifest.json` records sizes, SHA-256 digests and provenance. The runtime also embeds the trusted digests and checks executable permissions before invoking a bundled binary. Editing the manifest cannot authorize a replacement binary.
|
|
6
|
+
|
|
7
|
+
The local create2Crunch source reference is `38b2dcd55c45cc79947fb9bf5f363222adf24ab0`. It describes the JSON protocol, but is **not a proven build revision** for these existing executable artifacts. The exact build revision is unknown. The upstream MIT license is retained in `LICENSE`.
|
|
8
|
+
|
|
9
|
+
No downloads, postinstall hooks, or application resource lookups are used. Other hosts require a compatible user-supplied build via `GATE_TOOL_CREATE2_MINER_BIN` or `binaryPath`. See [the API and CLI documentation](../../docs/create2-miner.md).
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"source": {
|
|
4
|
+
"repository": "SmartFlowAI",
|
|
5
|
+
"resourceCommit": "a31308bdbe81c02181ff4bcd2b992681c184d40f",
|
|
6
|
+
"resourceDirectory": "resources/create2"
|
|
7
|
+
},
|
|
8
|
+
"rustReference": {
|
|
9
|
+
"repository": "create2Crunch",
|
|
10
|
+
"revision": "38b2dcd55c45cc79947fb9bf5f363222adf24ab0",
|
|
11
|
+
"provenBuildRevision": false
|
|
12
|
+
},
|
|
13
|
+
"binaryBuildRevision": null,
|
|
14
|
+
"provenanceNote": "Copied byte-for-byte from the existing SmartFlowAI resources. The Rust checkout is a protocol/source reference, not a proven revision used to build these binaries.",
|
|
15
|
+
"binaries": {
|
|
16
|
+
"darwin-arm64": {
|
|
17
|
+
"path": "darwin-arm64/smartflow_miner",
|
|
18
|
+
"sha256": "9611c1ca900c24f9b14924a144b7a3ab431111b855e676f2e145e7ab8c05f954",
|
|
19
|
+
"bytes": 1297616
|
|
20
|
+
},
|
|
21
|
+
"darwin-x64": {
|
|
22
|
+
"path": "darwin-x64/smartflow_miner",
|
|
23
|
+
"sha256": "a38279143658a8849db484e248c62af6ae2db78de4251021f195efd9bf987d82",
|
|
24
|
+
"bytes": 1306112
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -48,3 +48,11 @@ export function withTemplateArtifactPaths(config: HardhatUserConfig, argv: strin
|
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
/** Include the canonical dependency in the project compilation graph without a local Solidity shim. */
|
|
53
|
+
export function registerWorkflowDependencyCompiler(subtask: typeof import("hardhat/config").subtask, taskName: string): void {
|
|
54
|
+
subtask(taskName).setAction(async (args, _hre, runSuper) => {
|
|
55
|
+
const sourceNames: string[] = await runSuper(args);
|
|
56
|
+
return [...new Set([...sourceNames, "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"])];
|
|
57
|
+
});
|
|
58
|
+
}
|
|
@@ -7,8 +7,18 @@ export interface TemplateNetworkOptions {
|
|
|
7
7
|
overrides?: NonNullable<HardhatUserConfig["networks"]>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
export interface RemoteNetworkOptions {
|
|
11
|
+
route: string;
|
|
12
|
+
publicFallback: string;
|
|
13
|
+
useBaseRpc: boolean;
|
|
14
|
+
chainId: number;
|
|
15
|
+
ethNetwork?: string;
|
|
16
|
+
zksync?: boolean;
|
|
17
|
+
rpcUrl?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Generic loaders only: network names and chain declarations belong to the project. */
|
|
21
|
+
export function createNetworkHelpers({ accounts, env = process.env }: Omit<TemplateNetworkOptions, "overrides">) {
|
|
12
22
|
const hardhatForking = env.HARDHAT_FORK_RPC_URL
|
|
13
23
|
? { url: env.HARDHAT_FORK_RPC_URL }
|
|
14
24
|
: undefined;
|
|
@@ -23,15 +33,7 @@ export function createTemplateNetworks({ accounts, env = process.env, overrides
|
|
|
23
33
|
throw new Error("HARDHAT_FORK_CHAIN_ID must be a positive safe integer");
|
|
24
34
|
}
|
|
25
35
|
|
|
26
|
-
|
|
27
|
-
route: string;
|
|
28
|
-
publicFallback: string;
|
|
29
|
-
useBaseRpc: boolean;
|
|
30
|
-
chainId: number;
|
|
31
|
-
ethNetwork?: string;
|
|
32
|
-
zksync?: boolean;
|
|
33
|
-
rpcUrl?: string;
|
|
34
|
-
}
|
|
36
|
+
|
|
35
37
|
|
|
36
38
|
const remoteNetwork = ({
|
|
37
39
|
route,
|
|
@@ -66,6 +68,13 @@ export function createTemplateNetworks({ accounts, env = process.env, overrides
|
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
return { remoteNetwork, hardhatForking, hardhatForkChainId, zkSyncForkRpcUrl };
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @deprecated Compatibility defaults for older generated projects only. New templates declare networks in hardhat.config.ts. */
|
|
75
|
+
export function createTemplateNetworks({ accounts, env = process.env, overrides = {} }: TemplateNetworkOptions): NonNullable<HardhatUserConfig["networks"]> {
|
|
76
|
+
const { remoteNetwork, hardhatForking, hardhatForkChainId, zkSyncForkRpcUrl } = createNetworkHelpers({ accounts, env });
|
|
77
|
+
|
|
69
78
|
const networks = {
|
|
70
79
|
hardhat: {
|
|
71
80
|
allowUnlimitedContractSize: false,
|
|
@@ -3,20 +3,14 @@ import path from "path";
|
|
|
3
3
|
import YAML from "yaml";
|
|
4
4
|
import { parseForkSnapshotJson } from "../workflow/lib/forkSnapshot";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import { validateManifestPolicy, type ManifestEnvironment } from "../delivery/policy";
|
|
7
|
+
export type DeploymentEnvironment = ManifestEnvironment;
|
|
7
8
|
|
|
8
9
|
export interface OpenZeppelinTargetConfig {
|
|
9
10
|
environment: DeploymentEnvironment;
|
|
10
11
|
openzeppelin?: { manifestDir?: unknown };
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const TARGET_ENVIRONMENTS = new Set<DeploymentEnvironment>([
|
|
14
|
-
"local",
|
|
15
|
-
"development",
|
|
16
|
-
"production",
|
|
17
|
-
]);
|
|
18
|
-
const SAFE_MANIFEST_DIR = /^\.openzeppelin(?:\.[a-z0-9][a-z0-9-]*)?$/;
|
|
19
|
-
|
|
20
14
|
const assertConfinedManifestDirectory = (root: string, manifestDir: string): void => {
|
|
21
15
|
const rootPath = fs.realpathSync(root);
|
|
22
16
|
const candidatePath = path.resolve(root, manifestDir);
|
|
@@ -37,19 +31,7 @@ export function resolveOpenZeppelinManifestDir(
|
|
|
37
31
|
network: string,
|
|
38
32
|
target: OpenZeppelinTargetConfig,
|
|
39
33
|
): string {
|
|
40
|
-
|
|
41
|
-
throw new Error(`Network ${network} must declare a valid deployment environment`);
|
|
42
|
-
}
|
|
43
|
-
const manifestDir = target.openzeppelin?.manifestDir;
|
|
44
|
-
if (typeof manifestDir !== "string" || !SAFE_MANIFEST_DIR.test(manifestDir)) {
|
|
45
|
-
throw new Error(`Network ${network} must declare one safe OpenZeppelin manifest directory segment`);
|
|
46
|
-
}
|
|
47
|
-
if (target.environment === "production" && manifestDir !== ".openzeppelin") {
|
|
48
|
-
throw new Error(`Production network ${network} must use exactly .openzeppelin`);
|
|
49
|
-
}
|
|
50
|
-
if (target.environment !== "production" && manifestDir === ".openzeppelin") {
|
|
51
|
-
throw new Error(`Non-production network ${network} must not use .openzeppelin`);
|
|
52
|
-
}
|
|
34
|
+
const manifestDir = validateManifestPolicy(target?.environment, target.openzeppelin?.manifestDir);
|
|
53
35
|
assertConfinedManifestDirectory(root, manifestDir);
|
|
54
36
|
return manifestDir;
|
|
55
37
|
}
|