Skip to content

Unisat Connector#4705

Merged
tomiir merged 21 commits intomainfrom
pr-4465
Jul 24, 2025
Merged

Unisat Connector#4705
tomiir merged 21 commits intomainfrom
pr-4465

Conversation

@tomiir
Copy link
Copy Markdown
Collaborator

@tomiir tomiir commented Jul 24, 2025

Description

Supersedes #4465 by @danielsimao

Added a new UnisatConnector class to support Bitcoin wallet connectivity for Unisat, Bitget, and BinanceW3W wallets (all of these use the same wallet API).

NOTE: BinanceW3W injects window value inside binance web3 app browser.

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-123 (replace with actual issue ID)
For GH issues: closes #456 (replace with actual issue number)

Showcase (Optional)

N/A - No UI changes. This is a backend connector implementation.
Demo recording: [Link to demo recording, if available]

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

@linear
Copy link
Copy Markdown

linear bot commented Jul 24, 2025

APKT-123 Project Brief

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 24, 2025

🦋 Changeset detected

Latest commit: 7bbd16b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@reown/appkit-adapter-bitcoin Patch
@reown/appkit Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit-common Patch
@reown/appkit-universal-connector Patch
@reown/appkit-ui Patch
@reown/appkit-controllers Patch
@reown/appkit-core Patch
@reown/appkit-utils Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-polyfills Patch
@reown/appkit-wallet Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-wallet-button Patch
@reown/appkit-cdn Patch
@reown/appkit-experimental Patch
@reown/appkit-testing Patch
@reown/appkit-cli Patch
@reown/appkit-pay Patch
@reown/appkit-codemod Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 24, 2025

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

Name Status Preview Comments Updated (UTC)
appkit-basic-html ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2025 3:47pm
appkit-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2025 3:47pm
appkit-gallery ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2025 3:47pm
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2025 3:47pm
10 Skipped Deployments
Name Status Preview Comments Updated (UTC)
appkit-basic-example ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
appkit-basic-sign-client-example ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
appkit-basic-up-example ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
appkit-ethers5-bera ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
appkit-nansen-demo ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
appkit-vue-solana ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
appkit-wagmi-cdn-example ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
ethereum-provider-wagmi-example ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
next-wagmi-solana-bitcoin-example ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm
vue-wagmi-example ⬜️ Ignored (Inspect) Jul 24, 2025 3:47pm

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jul 24, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
pay-test-exchange 7bbd16b Jul 24 2025, 03:37 PM

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 24, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 77.53% 31744 / 40939
🔵 Statements 77.53% 31744 / 40939
🔵 Functions 68.94% 2620 / 3800
🔵 Branches 84.41% 6685 / 7919
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/adapters/bitcoin/src/adapter.ts 85.93% 84.78% 73.33% 85.93% 68-81, 199-200, 290-291, 323-324, 336-337, 385-386, 442-445, 449-478, 482-483
packages/adapters/bitcoin/src/connectors/UnisatConnector/index.ts 94.48% 87.17% 100% 94.48% 47-49, 56-57, 177, 196, 198
packages/adapters/bitcoin/src/utils/UnisatUtil.ts 95.83% 0% 100% 95.83% 23
Generated in workflow #13733 for commit 7bbd16b by the Vitest Coverage Report Action

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 24, 2025

Deployment failed with the following error:

Failed to create deployment for team_BosQAIV33jso6YtnqhZSV5WU in project prj_7EDTGBfulhPeAHuFO8rbRb2t4Aao: FetchError: request to https://76.76.21.112/v13/now/deployments?ownerId=team_BosQAIV33jso6YtnqhZSV5WU&projectId=prj_7EDTGBfulhPeAHuFO8rbRb2t4Aao&skipAutoDetectionConfirmation=1&teamId=team_BosQAIV33jso6YtnqhZSV5WU&traceCarrier=%7B%22ot-baggage-webhookAt%22%3A%221753371219485%22%2C%22ot-baggage-senderUsername%22%3A%22gh.tomiir%22%2C%22baggage%22%3A%22webhookAt%3D1753371219485%2CsenderUsername%3Dgh.tomiir%22%2C%22x-datadog-trace-id%22%3A%221889312860596946314%22%2C%22x-datadog-parent-id%22%3A%221707660970429950055%22%2C%22x-datadog-sampling-priority%22%3A%222%22%2C%22x-datadog-tags%22%3A%22_dd.p.tid%3D6882525300000000%2C_dd.p.dm%3D-3%22%2C%22traceparent%22%3A%2200-68825253000000001a3830096575458a-17b2d49ae346a867-01%22%2C%22tracestate%22%3A%22dd%3Dt.tid%3A6882525300000000%3Bt.dm%3A-3%3Bs%3A2%3Bp%3A17b2d49ae346a867%22%7D failed, reason: socket hang up

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 24, 2025

Deployment failed with the following error:

Failed to create deployment for team_BosQAIV33jso6YtnqhZSV5WU in project prj_PdcKuwV6C4MbIbff4EBbo1PWs4f6: FetchError: request to https://76.76.21.112/v13/now/deployments?ownerId=team_BosQAIV33jso6YtnqhZSV5WU&projectId=prj_PdcKuwV6C4MbIbff4EBbo1PWs4f6&skipAutoDetectionConfirmation=1&teamId=team_BosQAIV33jso6YtnqhZSV5WU&traceCarrier=%7B%22ot-baggage-webhookAt%22%3A%221753371219485%22%2C%22ot-baggage-senderUsername%22%3A%22gh.tomiir%22%2C%22baggage%22%3A%22webhookAt%3D1753371219485%2CsenderUsername%3Dgh.tomiir%22%2C%22x-datadog-trace-id%22%3A%221889312860596946314%22%2C%22x-datadog-parent-id%22%3A%221707660970429950055%22%2C%22x-datadog-sampling-priority%22%3A%222%22%2C%22x-datadog-tags%22%3A%22_dd.p.tid%3D6882525300000000%2C_dd.p.dm%3D-3%22%2C%22traceparent%22%3A%2200-68825253000000001a3830096575458a-17b2d49ae346a867-01%22%2C%22tracestate%22%3A%22dd%3Dt.tid%3A6882525300000000%3Bt.dm%3A-3%3Bs%3A2%3Bp%3A17b2d49ae346a867%22%7D failed, reason: socket hang up

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 24, 2025

Deployment failed with the following error:

Failed to create deployment for team_BosQAIV33jso6YtnqhZSV5WU in project prj_YCSKq6wmm3c5E5fcFeqfkcmM0nud: FetchError: request to https://76.76.21.112/v13/now/deployments?ownerId=team_BosQAIV33jso6YtnqhZSV5WU&projectId=prj_YCSKq6wmm3c5E5fcFeqfkcmM0nud&skipAutoDetectionConfirmation=1&teamId=team_BosQAIV33jso6YtnqhZSV5WU&traceCarrier=%7B%22ot-baggage-webhookAt%22%3A%221753371219485%22%2C%22ot-baggage-senderUsername%22%3A%22gh.tomiir%22%2C%22baggage%22%3A%22webhookAt%3D1753371219485%2CsenderUsername%3Dgh.tomiir%22%2C%22x-datadog-trace-id%22%3A%221889312860596946314%22%2C%22x-datadog-parent-id%22%3A%221707660970429950055%22%2C%22x-datadog-sampling-priority%22%3A%222%22%2C%22x-datadog-tags%22%3A%22_dd.p.tid%3D6882525300000000%2C_dd.p.dm%3D-3%22%2C%22traceparent%22%3A%2200-68825253000000001a3830096575458a-17b2d49ae346a867-01%22%2C%22tracestate%22%3A%22dd%3Dt.tid%3A6882525300000000%3Bt.dm%3A-3%3Bs%3A2%3Bp%3A17b2d49ae346a867%22%7D failed, reason: socket hang up

@tomiir tomiir added this pull request to the merge queue Jul 24, 2025
Merged via the queue into main with commit 0ab5802 Jul 24, 2025
40 of 42 checks passed
@tomiir tomiir deleted the pr-4465 branch July 24, 2025 16:03
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.

Empty modal

4 participants