Skip to content

Conversation

@hugomrdias
Copy link
Member

@hugomrdias hugomrdias commented Feb 10, 2026

  • changes most services to options object
  • removes deprecated methods
  • migration guide

@hugomrdias hugomrdias requested a review from rvagg as a code owner February 10, 2026 15:19
@github-project-automation github-project-automation bot moved this to 📌 Triage in FOC Feb 10, 2026
@hugomrdias hugomrdias self-assigned this Feb 10, 2026
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 10, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
synapse-dev 004977b Commit Preview URL

Branch Preview URL
Feb 10 2026, 07:24 PM

@rjan90 rjan90 moved this from 📌 Triage to 🔎 Awaiting review in FOC Feb 10, 2026
@rjan90 rjan90 added this to the M4.0: mainnet staged milestone Feb 10, 2026
@hugomrdias hugomrdias force-pushed the hugomrdias/obj-params branch from e124516 to 30ae9b8 Compare February 10, 2026 17:08
Base automatically changed from hugomrdias/pdp-server-out to master February 10, 2026 18:27
@hugomrdias hugomrdias force-pushed the hugomrdias/obj-params branch from 831d2a8 to cdd7473 Compare February 10, 2026 18:28
@hugomrdias hugomrdias linked an issue Feb 10, 2026 that may be closed by this pull request
11 tasks
@hugomrdias hugomrdias removed a link to an issue Feb 10, 2026
11 tasks
@hugomrdias hugomrdias linked an issue Feb 10, 2026 that may be closed by this pull request
This was referenced Feb 10, 2026

const amount = parseUnits("100");
const hash = await synapse.payments.depositWithPermit(amount);
const hash = await synapse.payments.depositWithPermit({amount});
Copy link
Collaborator

Choose a reason for hiding this comment

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

we don't have a lint rule on mdx files? this should be spaced to be consistent with the rest of the docs and with the linter rules for the code I think, 3 instances of {amount} here, docs/src/content/docs/developer-guides/payments/rails-settlement.mdx has the same problem, the others look fine I think

// ---cut---
// Check current USDFC balance
const walletBalance = await synapse.payments.walletBalance(TOKENS.USDFC);
const walletBalance = await synapse.payments.walletBalance({token:TOKENS.USDFC});
Copy link
Collaborator

Choose a reason for hiding this comment

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

'nother one


// Download from this context
const downloaded = await context.download(result.pieceCid);
const downloaded = await context.download({pieceCid: result.pieceCid});
Copy link
Collaborator

Choose a reason for hiding this comment

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

and another

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not convinced about address here, its the client whose data sets we are looking for, an address could be anything - SP address, contract address, ..

Copy link
Collaborator

Choose a reason for hiding this comment

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

it could be wallet to align with some of the payments terminology

}

const deadline = options.deadline ?? BigInt(Math.floor(Date.now() / 1000) + 3600) // 1 hour
const deadline = options.deadline ?? BigInt(Math.floor(Date.now() / 1000) + TIME_CONSTANTS.PERMIT_DEADLINE_DURATION)
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

const filBalance = await synapse.payments.walletBalance()
const usdfcBalance = await synapse.payments.walletBalance('USDFC')
const usdfcBalance = await synapse.payments.walletBalance({
token: 'USDFC',
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe we should be using the constant for this one, easy to mistype as USDC

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

Labels

None yet

Projects

Status: 🔎 Awaiting review

Development

Successfully merging this pull request may close these issues.

Migration Guide / Docs - Mainnet Ready Synapse Release

3 participants