Skip to content

Filecoin Beam ("withCdn") support #61

@SgtPooki

Description

@SgtPooki

Purpose

This issue is a placeholder for tracking the work and notes about adding Filecoin Beam / withCDN support.

This issue is intended to cover all filecoin-pin areas including:

  • CLI command arguments
  • CLI status ouptut denoting whether a pieceCid has Filecoin Beam support
  • CLI output providing download links using Filecoin Beam CDN
  • Changes to pricing

Notes on pricing

Problem

The current payment system only considers storageInfo.pricing.noCDN.perTiBPerEpoch pricing, but CDN storage has different costs. However, @jennijuju has recently indicated this should NOT be implemented now because Filcdn is changing their billing model from fixed fees to egress-based fees.

Current State

The codebase hardcodes noCDN pricing in multiple payment calculation functions.

Where Changes Would Be Needed

  • src/synapse/payments.ts
  • src/payments/status.ts
  • src/payments/interactive.ts
  • src/payments/setup.ts
  • src/payments/auto.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions