Skip to content

feat(target_chains/sui): Use Turbo for Commands #2469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 12, 2025
Merged

Conversation

darunrs
Copy link
Contributor

@darunrs darunrs commented Mar 11, 2025

Summary

Updated SUI JS SDK and CLI to use Turbo to help with dependency management. Updated the README to reflect this. Also fixed the relay example to use feed ids as string instead of number.

Rationale

There were a litany of issues getting the SUI JS SDK and CLI to work at all. I got help from Connor to figure out what is wrong and how to fix it. Now, the examples should work out of box and without too much trouble.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Manually tested by cleaning up repo locally using git clean -fdx and then installing with pnpm in root. Then, running examples and cli commands using turbo successfully.

Copy link

vercel bot commented Mar 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:52pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:52pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 3:52pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Mar 12, 2025 3:52pm
entropy-debugger ⬜️ Ignored (Inspect) Visit Preview Mar 12, 2025 3:52pm
insights ⬜️ Ignored (Inspect) Visit Preview Mar 12, 2025 3:52pm

@@ -49,7 +50,8 @@ async function run() {

// Fetch the latest price feed update data from the Price Service
const connection = new SuiPriceServiceConnection(argv["hermes"]);
const feeds = argv["feed-id"] as string[];
const feeds = argv["feed-id"];
if (!Array.isArray(feeds)) { throw new Error("Not a valid input!"); }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will fail prettier, try running pnpm turbo fix

Copy link
Contributor Author

@darunrs darunrs Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran the command in root and it surprisingly did not complain about or change anything. Also in the two packages I changed, and no changes.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right this package has the legacy pre-commit based prettier config, instead run pre-commit run --all

@darunrs darunrs merged commit f5850b2 into main Mar 12, 2025
4 of 10 checks passed
@darunrs darunrs deleted the get-sui-working branch March 12, 2025 15:49
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.

2 participants