Skip to content

[Core] Rename transaction ID to payout ID in BulkPayout#3403

Closed
flopez7 wants to merge 6 commits intofeat/escrow-cancellationfrom
feat/core/payoutId
Closed

[Core] Rename transaction ID to payout ID in BulkPayout#3403
flopez7 wants to merge 6 commits intofeat/escrow-cancellationfrom
feat/core/payoutId

Conversation

@flopez7
Copy link
Copy Markdown
Contributor

@flopez7 flopez7 commented Jun 19, 2025

Issue tracking

#3400

Context behind the change

  • Updated the EscrowClient class to replace txId with payoutId in method signatures and internal logic.
  • Modified the GraphQL schema to reflect the change from bulkPayoutTxId to payoutId.
  • Adjusted the subgraph mapping functions to handle the new payout ID format.
  • Updated test cases to use the new payout ID instead of transaction ID.
  • Ensured consistency across all related files, including constants and event handling.

How has this been tested?

Ran unit tests
Deploy fortune locally

Release plan

Deploy new SDK version and smart contracts

Potential risks; What to monitor; Rollback plan

Check bulkpayout method is working properly

…ted tests

- Updated the EscrowClient class to replace `txId` with `payoutId` in method signatures and internal logic.
- Modified the GraphQL schema to reflect the change from `bulkPayoutTxId` to `payoutId`.
- Adjusted the subgraph mapping functions to handle the new payout ID format.
- Updated test cases to use the new payout ID instead of transaction ID.
- Ensured consistency across all related files, including constants and event handling.
@vercel
Copy link
Copy Markdown

vercel bot commented Jun 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
human-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 1:23pm
human-dashboard-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 1:23pm
staking-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 1:23pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
faucet-frontend ⬜️ Ignored (Inspect) Visit Preview Jul 8, 2025 1:23pm
faucet-server ⬜️ Ignored (Inspect) Visit Preview Jul 8, 2025 1:23pm

@vercel vercel bot temporarily deployed to Preview – staking-dashboard June 19, 2025 12:54 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend June 19, 2025 12:54 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app June 19, 2025 12:54 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard June 19, 2025 14:46 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app June 19, 2025 14:46 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend June 19, 2025 14:46 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard June 19, 2025 16:19 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend June 19, 2025 16:19 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app June 19, 2025 16:19 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard June 19, 2025 16:21 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app June 19, 2025 16:21 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend June 19, 2025 16:21 Inactive
@flopez7 flopez7 requested a review from portuu3 June 23, 2025 15:41
@flopez7 flopez7 self-assigned this Jun 23, 2025
exchangeOracleFee
);
eventRecipients[i] = _recipients[i];
netAmounts[i] =
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This can be before the transfer and then user netAmounts[i] as the amount for the transfer instead of calculating twice

:param final_results_hash: Final results file hash
:param txId: Serial number of the bulks
:param payout_id: Payout ID for the transaction
:param force_complete: (Optional) Indicates if remaining balance should be transferred to the escrow
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
:param force_complete: (Optional) Indicates if remaining balance should be transferred to the escrow
:param force_complete: (Optional) Indicates if remaining balance should be transferred to the escrow creator

escrowCompletionEntity.finalResultsUrl as string,
escrowCompletionEntity.finalResultsHash as string,
DEFAULT_BULK_PAYOUT_TX_ID,
uuidv4(),
Copy link
Copy Markdown
Collaborator

@portuu3 portuu3 Jun 25, 2025

Choose a reason for hiding this comment

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

This should be obtained from intermediate results. Intermediate results still does not contain this info, but maybe we should add a TODO here

@portuu3
Copy link
Copy Markdown
Collaborator

portuu3 commented Aug 29, 2025

Changes applied in #3482

@portuu3 portuu3 closed this Aug 29, 2025
@portuu3 portuu3 deleted the feat/core/payoutId branch August 29, 2025 08:35
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.

2 participants