Skip to content

[SDK][Typescript] Fix mismatch errors with Subgraph#3616

Merged
flopez7 merged 13 commits intocontracts-v2from
feat/typescript/subgraph-mismatch
Oct 22, 2025
Merged

[SDK][Typescript] Fix mismatch errors with Subgraph#3616
flopez7 merged 13 commits intocontracts-v2from
feat/typescript/subgraph-mismatch

Conversation

@flopez7
Copy link
Copy Markdown
Contributor

@flopez7 flopez7 commented Oct 14, 2025

Issue tracking

N/A

Context behind the change

  • Created proper Subgraph types and cast values to the interfaces we have for SDK
  • Refactor EscrowUtils, TransactionUtils and WorkerUtils methods to fix mismatch types with Subgraph.

How has this been tested?

Ran unit tests. Launched some examples

Release plan

Deploy new SDK version and update docs

Potential risks; What to monitor; Rollback plan

None

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
human-app Ready Ready Preview Comment Oct 22, 2025 10:20am
human-dashboard-frontend Ready Ready Preview Comment Oct 22, 2025 10:20am
staking-dashboard Ready Ready Preview Comment Oct 22, 2025 10:20am
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
faucet-frontend Ignored Ignored Preview Oct 22, 2025 10:20am
faucet-server Ignored Ignored Preview Oct 22, 2025 10:20am

@vercel vercel bot temporarily deployed to Preview – staking-dashboard October 14, 2025 15:59 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend October 14, 2025 15:59 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app October 14, 2025 15:59 Inactive
…s and timestamps in Python SDK and solve some issues with default values
@vercel vercel bot temporarily deployed to Preview – staking-dashboard October 20, 2025 09:41 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend October 20, 2025 09:41 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app October 20, 2025 09:41 Inactive
@flopez7 flopez7 requested a review from dnechay October 20, 2025 10:02
Copy link
Copy Markdown
Collaborator

@dnechay dnechay left a comment

Choose a reason for hiding this comment

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

LGTM, one comment on HUMAN App changes

Comment thread packages/sdk/typescript/human-protocol-sdk/src/escrow.ts Outdated
Comment thread packages/sdk/python/human-protocol-sdk/human_protocol_sdk/escrow/escrow_utils.py Outdated
…e string instead of int and parse values inside constructor; improve nullability handling in various models.
Comment thread packages/sdk/python/human-protocol-sdk/human_protocol_sdk/escrow/escrow_utils.py Outdated
…nt, block, and timestamp and convert to int in constructor.
@flopez7 flopez7 merged commit 6862c7a into contracts-v2 Oct 22, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Core-tech - 2025 Oct 22, 2025
@dnechay dnechay deleted the feat/typescript/subgraph-mismatch branch October 24, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants