Skip to content

Releases: nksazonov/forge-create

v0.3.1

Choose a tag to compare

@nksazonov nksazonov released this 21 May 13:13

Summary

save-script skip guards

Transactions with a null hash (simulated, never broadcast) or no transaction.to (direct CREATE without factory) are now skipped instead of saved as incomplete artifacts.

Incomplete deployment report

Skipped incomplete deployments are listed by name at the end of the command output so you know exactly what was missed:

  Saved 4 artifact(s), skipped 1 non-deployment transaction(s).
  Skipped 2 incomplete deployment(s) (null hash or null tx.to):                                                                                                              
    - SimulatedToken                                                                                                                                                         
    - DirectDeploy                                                                                                                                                           

./ path normalization

save and the default forge create wrapper now strip a leading ./ from the contract path before storing it in the artifact, matching the behaviour of save-script.

v0.3.0

Choose a tag to compare

@nksazonov nksazonov released this 21 May 10:13
51f246d

Summary

  • New save-script subcommand — batch-saves deployment artifacts from a Foundry script run file (broadcast/**/<chainId>/run-latest.json) with no blockchain calls. Reads every CREATE/CREATE2 transaction, resolves the .sol contract path locally, and writes one JSON artifact per contract using the same schema and filename-collision algorithm as the existing save command.
  • Fix colon characters in save output paths — forge-create-save.sh was producing directory names like Counter.sol:Counter and timestamps like 2024-01-15T14:30:45 with literal colons. Fixed to use _ in the directory name (Counter.sol_Counter) and - in the timestamp (2024-01-15T14-30-45), consistent with how forge-create-create.sh and forge-create-script.sh already behave.
  • Version bumped to v0.3.0 in forge-create.sh.

v0.2.0

Choose a tag to compare

@nksazonov nksazonov released this 18 May 16:42
80fcf35

New

  • --file-prefix TEXT flag for both create and save — prepends a string to the deployment filename (e.g. v1-2025-05-21T12-00-00.json)

Fixed

  • Collision counter no longer misreads the timestamp's seconds field as an existing counter value
  • Compatible with Foundry ≥0.3 JSON output format — deployedTo is derived from deployer + nonce, transactionHash is fetched from the mined block

Internal

  • 8 BATS integration tests covering all flags and edge cases, running against a local Anvil instance with per-test chain state isolation
  • test/ excluded from release tarballs via .gitattributes

v0.1.2

Choose a tag to compare

@nksazonov nksazonov released this 22 May 10:16

Fixed:

  • invalid --rpc-url parsing in save command

v0.1.1

Choose a tag to compare

@nksazonov nksazonov released this 22 May 09:13

Fixes:

  • --rpc-url flag not passed to forge

v0.1.0

Choose a tag to compare

@nksazonov nksazonov released this 21 May 09:14

Initial release of the forge-create helper command.