Skip to content

fix(makefile): deploy optimized wasm and print artifact sizes (#567) - #572

Open
urielit1313-creator wants to merge 1 commit into
MergeFi:mainfrom
urielit1313-creator:fix/deploy-optimized-wasm-567
Open

urielit1313-creator wants to merge 1 commit into
MergeFi:mainfrom
urielit1313-creator:fix/deploy-optimized-wasm-567

Conversation

@urielit1313-creator

Copy link
Copy Markdown

Summary

Resolves #567.

make build runs stellar contract optimize --wasm $(WASM_DIR)/<name>.wasm. By default, stellar-cli generates <name>.optimized.wasm adjacent to the unoptimized build. Previously, the deploy-escrow, deploy-milestones, and deploy-maintenance-pool targets deployed the unoptimized $(WASM_DIR)/mergefi_<name>.wasm files, incurring unnecessary on-chain transaction/storage footprint and risking size budget limits.

Changes

  1. Makefile:
    • Updated deploy-escrow, deploy-milestones, and deploy-maintenance-pool targets to deploy $(WASM_DIR)/mergefi_<name>.optimized.wasm.
    • In make build, print optimized artifact sizes in bytes after optimization completes.

Verification

  • Inspected targets and verified file output naming matches stellar-cli convention.
  • Zero impact on contract Rust code or test suites.

Payout Address (Base USDC):
0xfE777c43e4B0A24fFA1527eD520d1E7f9ECED483

@vercel

vercel Bot commented Oct 13, 2026

Copy link
Copy Markdown

@urielit1313-creator is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

…i#567)

- Deploy .optimized.wasm files in deploy-escrow, deploy-milestones, and deploy-maintenance-pool

- Print artifact sizes in bytes upon optimization in make build

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Makefile deploy targets deploy the unoptimised .wasm — stellar contract optimize writes *.optimized.wasm

1 participant