Skip to content

feat: 新增 Charm Hyper 余额查询适配器 - #28

Merged
Hotakus merged 1 commit into
Hotakus:masterfrom
huahai0202:feat/hyper-balance-provider
Aug 23, 2026
Merged

feat: 新增 Charm Hyper 余额查询适配器#28
Hotakus merged 1 commit into
Hotakus:masterfrom
huahai0202:feat/hyper-balance-provider

Conversation

@huahai0202

Copy link
Copy Markdown
Contributor

说明

Charm Hyper(providerID: hyper)新增余额查询适配器。

接口

  • 端点:GET https://hyper.charm.land/v1/credits
  • 请求头:Authorization: Bearer <apiKey>
  • 响应:{ "balance": 98 }(积分余额)

换算

Hyper 的余额为积分(credits),非货币金额。按官方规则 100 积分 = $5,即 1 积分 = $0.05,适配器将积分换算为 USD 返回(98 → $4.90)。

验证

  • 已通过 npm run typecheck
  • 本地实测 fetchBalance 返回 [{ currency: "USD", total: "4.85" }]

@Hotakus Hotakus added the feat new feature label Aug 23, 2026
@Hotakus

Hotakus commented Aug 23, 2026

Copy link
Copy Markdown
Owner

感谢你的适配器添加,代码合并后,我会尽快发布新版本,感谢你的支持

@Hotakus
Hotakus merged commit eb94b47 into Hotakus:master Aug 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants