Skip to content

feat(transfer): add pay password support for BioForest Chain - #95

Merged
Gaubee merged 1 commit into
mainfrom
feat/bioforest-transfer-complete
Dec 23, 2025
Merged

Gaubee merged 1 commit into
mainfrom
feat/bioforest-transfer-complete

Conversation

@Gaubee

@Gaubee Gaubee commented Dec 23, 2025

Copy link
Copy Markdown
Contributor

Summary

This PR adds pay password (二次签名/second signature) support for BioForest Chain transfers.

Changes

SDK Enhancements (src/services/bioforest-sdk/index.ts)

  • Add setPayPassword - Create and broadcast signature transaction to set pay password
  • Add createSignatureTransaction - Create signature transaction using SDK
  • Add getSignatureTransactionMinFee - Get minimum fee for setting pay password

New UI Component (SetPayPasswordJob.tsx)

  • Three-step flow: input password → confirm → wallet password
  • Fee display before confirmation
  • Success/error states with proper i18n

Helper Functions (use-send.bioforest.ts)

  • submitSetPayPassword - Full flow to set pay password
  • getSetPayPasswordFee - Get fee for setting pay password
  • hasPayPasswordSet - Check if address has pay password

i18n

  • Added translations for zh-CN and en locales

Testing

  • Added e2e test spec for BioForest transfer flow
  • Added API test script for debugging

Testing Notes

The network API was not reachable during development (proxy issues), but all TypeScript types check and unit tests pass. Real network testing should be done when network access is restored.

Related Issues

  • Part of BioForest Chain transfer complete implementation

- Add setPayPassword, createSignatureTransaction, getSignatureTransactionMinFee to SDK
- Create SetPayPasswordJob sheet for setting pay password UI
- Add submitSetPayPassword, getSetPayPasswordFee, hasPayPasswordSet helpers
- Add i18n translations for pay password UI (zh-CN, en)
- Create e2e test for BioForest transfer flow
- Add API test script for debugging
@Gaubee
Gaubee merged commit d9fa31e into main Dec 23, 2025
5 checks passed
@Gaubee
Gaubee deleted the feat/bioforest-transfer-complete branch January 4, 2026 07:22
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.

1 participant