-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "Update id and name of the alephium provider" #254
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 15a66e3.
Walkthrough此次更改主要集中在 Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ProviderAlph
Client->>ProviderAlph: 请求连接
ProviderAlph-->>Client: 返回连接状态
Client->>ProviderAlph: 请求账户变更
ProviderAlph-->>Client: 返回账户信息
Client->>ProviderAlph: 请求断开连接
ProviderAlph-->>Client: 返回断开状态
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)packages/providers/onekey-alph-provider/src/OnekeyAlphProvider.ts (2)
建议更新图标URL以保持一致性 当前图标URL仍然指向OneKey的资源域名。为了保持提供者标识的一致性,建议更新图标URL。 建议修改如下: - icon = 'https://uni.onekey-asset.com/static/logo/onekey.png';
+ icon = 'https://alephium.org/static/logo/alephium.png';
修改 id 和 name 属性回到 'alephium' 和 'Alephium' 的变更是正确的,这确保了与现有实现的兼容性。 运行以下脚本验证相关依赖项是否都已更新: ✅ Verification successful属性修改已验证,无需其他更改 经过代码库扫描,将 OnekeyAlphProvider 的 id 和 name 属性修改为 'alephium' 和 'Alephium' 是安全的。没有发现其他组件依赖这些特定的标识符值。 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# 描述:检查代码库中是否还有使用旧标识符的地方
# 搜索可能使用旧提供者ID的文件
rg -l "onekey" --type ts
# 搜索可能使用旧提供者名称的文件
rg -l "OneKey" --type ts
# 检查包依赖关系中的引用
fd -e json -x jq -r '.dependencies' {}
Length of output: 26192 Script: #!/bin/bash
# 检查 OnekeyAlphProvider 的具体实现和依赖关系
ast-grep --pattern 'class OnekeyAlphProvider {
$$$
}'
# 检查是否有其他文件引用 'onekey' 作为 provider ID
rg -l "id\s*=\s*['\"]onekey['\"]" --type ts
# 检查是否有其他文件引用 'OneKey' 作为 provider name
rg -l "name\s*=\s*['\"]OneKey['\"]" --type ts
# 检查是否有测试文件引用这些标识符
fd -e test.ts -e spec.ts -x rg -l "onekey|OneKey" {}
Length of output: 534 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This reverts commit 15a66e3.
As discussed, we need to use the
alephium
as wallet name and id for backward compatibility.Summary by CodeRabbit