Skip to content
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

feat: standalone fuels node #3813

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

petertonysmith94
Copy link
Contributor

Release notes

In this release, we:

  • Enabled fuels node to start a fuel-core instance without configuration.

Summary

We can now run a fuel-core node anywhere:

bunx fuels node --fuel-core-port 4000

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@petertonysmith94 petertonysmith94 added the feat Issue is a feature label Mar 27, 2025
@petertonysmith94 petertonysmith94 self-assigned this Mar 27, 2025
Copy link

vercel bot commented Mar 27, 2025

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

Name Status Preview Comments Updated (UTC)
fuels-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2025 0:27am
ts-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2025 0:27am
ts-docs-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 28, 2025 0:27am

Copy link
Contributor

Temporary PR

This PR is published in AWS CodeArtifact with version: pr-3813

Install using the below commands — create-fuels variations are commented out.

PNPM

pnpm config set registry https://npm-packages.fuel.network/ --global
pnpm install fuels@pr-3813
# pnpm create fuels@pr-3813

NPM

npm --registry=https://npm-packages.fuel.network/ install fuels@pr-3813
# npm --registry=https://npm-packages.fuel.network/ create fuels@pr-3813

Bun

npm_config_registry=https://npm-packages.fuel.network/ bun install fuels@pr-3813
# npm_config_registry=https://npm-packages.fuel.network/ bun create fuels@pr-3813

Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
77.35%(+0%) 70.98%(-0.02%) 75.38%(-0.05%) 77.35%(-0.01%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 packages/account/src/providers/resource-cache.ts 97.95%
(+0%)
90%
(-5%)
100%
(+0%)
97.95%
(+0%)
🔴 packages/fuels/src/cli/commands/node/index.ts 92.3%
(+4.3%)
83.33%
(-16.67%)
100%
(+0%)
92.3%
(+3.42%)

"fuels": patch
---

feat: standalone `fuels node`
Copy link
Member

@arboleya arboleya Mar 28, 2025

Choose a reason for hiding this comment

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

I think the idea was that this command would start fuel-core using the default configs that the TS SDK uses internally, but without watching files or re-compiling and re-deploying contracts, etc.

However, now we have forc node (docs), introduced via:

Docs:

Examples:

forc node local
forc node testnet
forc node ignition

Because of all the above, I wonder if we still need a fuels node command.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or proxy to the forc command?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, let's remove it and focus on more important stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Issue is a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make fuels node to work without a fuels.config.ts file
2 participants