diff --git a/docs/src/components/contract-addresses.astro b/docs/src/components/contract-addresses.astro index a4b24990..c1e3227e 100644 --- a/docs/src/components/contract-addresses.astro +++ b/docs/src/components/contract-addresses.astro @@ -33,12 +33,15 @@ const contractOrder = [ 'endorsements', ] as const +// biome-ignore lint/correctness/noUnusedVariables: astro... const rows = contractOrder .filter((key) => { + // @ts-expect-error - chain.contracts is a record of ChainContract const contract = chain.contracts[key] return contract?.address && contract.address !== '0x0000000000000000000000000000000000000000' }) .map((key) => { + // @ts-expect-error - chain.contracts is a record of ChainContract const contract = chain.contracts[key] const address = contract.address return { diff --git a/packages/synapse-core/src/sp/sp.ts b/packages/synapse-core/src/sp/sp.ts index 4220b98f..0ca7a499 100644 --- a/packages/synapse-core/src/sp/sp.ts +++ b/packages/synapse-core/src/sp/sp.ts @@ -5,7 +5,7 @@ import { AddPiecesError, CreateDataSetError, DeletePieceError, - DownloadPieceError, + type DownloadPieceError, FindPieceError, InvalidUploadSizeError, LocationHeaderError, @@ -16,7 +16,6 @@ import type { PieceCID } from '../piece/piece.ts' import * as Piece from '../piece/piece.ts' import type * as TypedData from '../typed-data/index.ts' import { RETRY_CONSTANTS, SIZE_CONSTANTS } from '../utils/constants.ts' -import { createPieceUrlPDP } from '../utils/piece-url.ts' import { isUint8Array } from '../utils/streams.ts' export namespace createDataSet { diff --git a/packages/synapse-core/test/download-piece.ts b/packages/synapse-core/test/download-piece.ts index 9430c7fc..665e24e4 100644 --- a/packages/synapse-core/test/download-piece.ts +++ b/packages/synapse-core/test/download-piece.ts @@ -4,7 +4,6 @@ import { HttpResponse, http } from 'msw' import { DownloadPieceError } from '../src/errors/pdp.ts' import { downloadAndValidate } from '../src/piece/download.ts' import * as Piece from '../src/piece/piece.ts' -import {} from '../src/sp/sp.ts' describe('Piece download and validation', () => { const server = setup() diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 83f97687..b6fc42e4 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -14,7 +14,7 @@ allowBuilds: blockExoticSubdeps: true catalog: - '@biomejs/biome': 2.3.14 + '@biomejs/biome': 2.4.4 '@types/mocha': ^10.0.10 '@types/node': ^25.1.0 '@types/react': ^19.2.7 diff --git a/utils/data-sets-viewer.html b/utils/data-sets-viewer.html index 2ea02a3d..5283a6d0 100644 --- a/utils/data-sets-viewer.html +++ b/utils/data-sets-viewer.html @@ -271,7 +271,7 @@

Data Sets Viewer

Connection

- +
@@ -285,9 +285,9 @@

View Data Sets

- - - + + +
diff --git a/utils/payment-apis-demo.html b/utils/payment-apis-demo.html index a33ad489..7d4b3cb5 100644 --- a/utils/payment-apis-demo.html +++ b/utils/payment-apis-demo.html @@ -121,7 +121,7 @@

Synapse SDK - Enhanced Payment APIs Demo

Connection

- +
@@ -129,16 +129,16 @@

Warm Storage Contract Configuration

- +
Storage cost functions require Warm Storage contract to be configured

Account Information

- - - + + +
@@ -158,7 +158,7 @@

Storage Cost Calculator

- +
- - + +
diff --git a/utils/payments-demo.html b/utils/payments-demo.html index 3e7c508f..784a16d7 100644 --- a/utils/payments-demo.html +++ b/utils/payments-demo.html @@ -232,7 +232,7 @@

Synapse Payments Demo

Connection Status

Not connected to MetaMask

- +
- + @@ -300,7 +300,7 @@

Check Allowance

Default: Payments Contract - +
@@ -316,7 +316,7 @@

Approve Token Spending

- +
@@ -339,7 +339,7 @@

Check Service Approval

Warm Storage address - +
@@ -363,7 +363,7 @@

Approve Service

Default: 86400 epochs (30 days)
- +
@@ -372,7 +372,7 @@

Revoke Service

- +
diff --git a/utils/pdp-auth-demo.html b/utils/pdp-auth-demo.html index 58b41c60..908c8ee0 100644 --- a/utils/pdp-auth-demo.html +++ b/utils/pdp-auth-demo.html @@ -145,7 +145,7 @@

PDP Auth Signature Demo

Not connected to MetaMask
- +
@@ -178,7 +178,7 @@

1. Create Data Set

- +
@@ -196,9 +196,9 @@

2. Add Pieces

Piece Data Entries

- +
- +
@@ -213,7 +213,7 @@

3. Schedule Removals

- +
@@ -223,7 +223,7 @@

4. Delete Data Set

- +
diff --git a/utils/pdp-tool-test.html b/utils/pdp-tool-test.html index 25b00808..14cf3437 100644 --- a/utils/pdp-tool-test.html +++ b/utils/pdp-tool-test.html @@ -197,7 +197,7 @@

Synapse PDP Testing Tool

- +
Click to connect your MetaMask wallet for signing
@@ -214,7 +214,7 @@

Synapse PDP Testing Tool

Service Providers

- +
View all service providers approved to use this Warm Storage service
@@ -246,9 +246,10 @@

Create Data Set

Whether to enable CDN services for faster retrieval
- - - + + +
@@ -294,10 +295,11 @@

Piece Entry 1

- +
- +
@@ -309,7 +311,7 @@

Monitor Data Set

Enter a data set creation transaction hash to monitor its status
- +
diff --git a/utils/service-provider-tool.html b/utils/service-provider-tool.html index 1f7855b0..b257fc23 100644 --- a/utils/service-provider-tool.html +++ b/utils/service-provider-tool.html @@ -179,8 +179,9 @@

Service Provider Tool

- - + +
Network: Connect wallet to detect network @@ -194,14 +195,14 @@

Authentication

- +
@@ -253,29 +254,29 @@

Register as Service Provider

Note: Registration requires a 5 FIL fee. Make sure your wallet has sufficient balance.
- +

Query Provider Information

- - - + + +
- - - + + +
- +