Skip to content

Add tron deployment script and deploy logs#18

Merged
mirooon merged 11 commits intots-libraryfrom
tron-deployment
Apr 9, 2026
Merged

Add tron deployment script and deploy logs#18
mirooon merged 11 commits intots-libraryfrom
tron-deployment

Conversation

@mirooon
Copy link
Copy Markdown

@mirooon mirooon commented Apr 8, 2026

Linear ticket: https://linear.app/lifi-linear/issue/V2-148/deploy-tron-contracts-for-catapultar

  • Deployment script (solidity/script/tron/deploy-catapultar.ts): TypeScript script using @lifi/tron-devkit (TronWeb) to deploy CatapultarFactory, CATValidator, and IntentExecutor to Tron mainnet or Shasta testnet. Mirrors the Forge deploy.s.sol flow but adapted for the TVM.
  • Deployment logs (solidity/deployments/tron.json): Persists deployed contract addresses; updated automatically on each deploy run.
  • Dependency (@lifi/tron-devkit ^1.0.1): Added to typescript/package.json; lockfile updated.

Deployment steps

Validate first - simulates the full deploy without broadcasting

bun run solidity/script/tron/deploy-catapultar.ts --dry-run --private-key {private key without 0x}

Deploy

bun run solidity/script/tron/deploy-catapultar.ts --private-key {private key without 0x}

Deployed addresses are written automatically to solidity/deployments/tron.json. Commit that file after a successful deploy.

Re-deploying a single contract

Pass --step by name or index (1 = CatapultarFactory, 2 = CATValidator, 3 = IntentExecutor). Canonical order is always preserved:
bun run solidity/script/tron/deploy-catapultar.ts --step CATValidator
bun run solidity/script/tron/deploy-catapultar.ts --step 1 --step 3

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 8, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9959334a-cc64-475e-b9a5-94c29e8c1aab

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch tron-deployment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mirooon mirooon marked this pull request as draft April 8, 2026 18:52
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.82%. Comparing base (a74eaac) to head (32c4464).

Additional details and impacted files
@@             Coverage Diff             @@
##           ts-library      #18   +/-   ##
===========================================
  Coverage       95.82%   95.82%           
===========================================
  Files              14       14           
  Lines            2446     2446           
===========================================
  Hits             2344     2344           
  Misses            102      102           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mirooon mirooon marked this pull request as ready for review April 9, 2026 10:55
@mirooon mirooon merged commit 3630cee into ts-library Apr 9, 2026
3 of 4 checks passed
@mirooon mirooon deleted the tron-deployment branch April 9, 2026 11:08
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.

3 participants