Skip to content

Conversation

@bajtos
Copy link
Contributor

@bajtos bajtos commented Jul 17, 2025

While troubleshooting failed retrievals caused by the retrieval worker not
ignoring providers not approved for Pandora, I wrote two scripts to inspect
on-chain state.

Let's discuss where would be a good home for them and in what form. (I can
imagine converting them into a static website hosted on GH pages.)

feat: add inspect-proofset helper

❯ node inspect-proofset.js 442
PROOF SET PANDORA INFO: {
  railId: 172n,
  payer: '0xCe340D9A71b2aa8F7FAa2f989158f14BEDE3E1b2',
  payee: '0xe9bc394383B67aBcEbe86FD9843F53d8B4a2E981',
  commissionBps: 4000n,
  metadata: '',
  clientDataSetId: 2n,
  withCDN: true
}
OWNER ADDRESS: 0xe9bc394383B67aBcEbe86FD9843F53d8B4a2E981
PANDORA APPROVED PROVIDER INFO: {
  owner: '0xe9bc394383B67aBcEbe86FD9843F53d8B4a2E981',
  pdpUrl: 'https://polynomial.computer/',
  pieceRetrievalUrl: 'https://polynomial.computer/',
  registeredAt: 2740187n,
  approvedAt: 2740187n
}

feat: script to list approved providers

❯ node list-approved-providers.js
{
  owner: '0xe9bc394383b67abcebe86fd9843f53d8b4a2e981',
  pdpUrl: 'https://polynomial.computer/',
  pieceRetrievalUrl: 'https://polynomial.computer/',
  registeredAt: 2740187n,
  approvedAt: 2740187n
}
{
  owner: '0x4a628ebaecc32b8779a934ebcefff1646f517756',
  pdpUrl: 'https://pdp.zapto.org/',
  pieceRetrievalUrl: 'https://pdp.zapto.org/',
  registeredAt: 2751328n,
  approvedAt: 2751328n
}
{
  owner: '0x9f5087a1821eb3ed8a137be368e5e451166efaae',
  pdpUrl: 'https://yablu.net',
  pieceRetrievalUrl: 'https://yablu.net',
  registeredAt: 2751328n,
  approvedAt: 2751328n
}

Signed-off-by: Miroslav Bajtoš <[email protected]>
Comment on lines +49 to +50
registeredAt: providerInfo.registeredAt,
approvedAt: providerInfo.approvedAt,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we present these two timestamps as ISO date strings?

Comment on lines +30 to +31
registeredAt: providerInfo.registeredAt,
approvedAt: providerInfo.approvedAt,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we present these two timestamps as ISO date strings?

@@ -0,0 +1,51 @@
import { ethers } from 'ethers'
Copy link
Member

Choose a reason for hiding this comment

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

This information would be cool to be exposed by the PDP explorer. That is the default place for checking out a proof set. Either in the UI, or in their UI. I suggest opening an issue in https://github.com/FilOzone/pdp-explorer, listening which properties were missing

Copy link
Member

Choose a reason for hiding this comment

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

@@ -0,0 +1,33 @@
import { ethers } from 'ethers'
Copy link
Member

Choose a reason for hiding this comment

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

As above, this should be covered by https://pdp.vxb.ai/calibration/providers really

@bajtos bajtos marked this pull request as draft August 5, 2025 11:12
@bajtos bajtos removed the request for review from pyropy August 5, 2025 11:12
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.

3 participants