Skip to content
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

chore: rename XDEFI Wallet to Ctrl Wallet #2277

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/example/src/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
coinbaseWallet,
compassWallet,
coreWallet,
ctrlWallet,
dawnWallet,
desigWallet,
enkryptWallet,
Expand Down Expand Up @@ -57,7 +58,6 @@ import {
valoraWallet,
walletConnectWallet,
wigwamWallet,
xdefiWallet,
zealWallet,
zerionWallet,
} from '@rainbow-me/rainbowkit/wallets';
Expand Down Expand Up @@ -221,6 +221,7 @@ export const config = getDefaultConfig({
coin98Wallet,
compassWallet,
coreWallet,
ctrlWallet,
dawnWallet,
desigWallet,
enkryptWallet,
Expand Down Expand Up @@ -259,7 +260,6 @@ export const config = getDefaultConfig({
uniswapWallet,
valoraWallet,
wigwamWallet,
xdefiWallet,
zealWallet,
zerionWallet,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('<WalletButton />', () => {
});

it('should throw error for non ready connectors', () => {
for (const connector of ['argent', 'xdefi', 'uniswap']) {
for (const connector of ['argent', 'ctrl', 'uniswap']) {
expect(() =>
renderWithProviders(<WalletButton wallet={connector} />, {
chains: [mainnet],
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/ar_AR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "قم بتثبيت إضافة XDEFI Wallet",
"description": "نوصي بتثبيت XDEFI Wallet على شريط المهام للوصول الأسرع إلى محفظتك."
"title": "قم بتثبيت إضافة Ctrl Wallet",
"description": "نوصي بتثبيت Ctrl Wallet على شريط المهام للوصول الأسرع إلى محفظتك."
},
"step2": {
"title": "أنشئ محفظة أو استورد محفظة",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/de_DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Installieren Sie die XDEFI Wallet-Erweiterung",
"description": "Wir empfehlen, die XDEFI Wallet an Ihre Taskleiste anzuheften, um schnelleren Zugriff auf Ihre Wallet zu haben."
"title": "Installieren Sie die Ctrl Wallet-Erweiterung",
"description": "Wir empfehlen, die Ctrl Wallet an Ihre Taskleiste anzuheften, um schnelleren Zugriff auf Ihre Wallet zu haben."
},
"step2": {
"title": "Erstellen oder importieren Sie ein Wallet",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1199,11 +1199,11 @@
}
},

"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Install the XDEFI Wallet extension",
"description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."
"title": "Install the Ctrl Wallet extension",
"description": "We recommend pinning Ctrl Wallet to your taskbar for quicker access to your wallet."
},
"step2": {
"title": "Create or Import a Wallet",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/es_419.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Instala la extensión de la billetera XDEFI",
"description": "Recomendamos anclar XDEFI Wallet a su barra de tareas para un acceso más rápido a su billetera."
"title": "Instala la extensión de la billetera Ctrl",
"description": "Recomendamos anclar Ctrl Wallet a su barra de tareas para un acceso más rápido a su billetera."
},
"step2": {
"title": "Crear o Importar una Billetera",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/fr_FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Installez l'extension du portefeuille XDEFI",
"description": "Nous vous recommandons d'épingler XDEFI Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."
"title": "Installez l'extension du portefeuille Ctrl",
"description": "Nous vous recommandons d'épingler Ctrl Wallet à votre barre des tâches pour un accès plus rapide à votre portefeuille."
},
"step2": {
"title": "Créer ou Importer un portefeuille",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/hi_IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "XDEFI वॉलेट एक्सटेंशन स्थापित करें",
"description": "हम आपकी वॉलेट की जल्दी से पहुँच के लिए XDEFI Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"
"title": "Ctrl वॉलेट एक्सटेंशन स्थापित करें",
"description": "हम आपकी वॉलेट की जल्दी से पहुँच के लिए Ctrl Wallet को अपने टास्कबार में पिन करने की सलाह देते हैं।"
},
"step2": {
"title": "एक वॉलेट बनाएं या आयात करें",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/id_ID.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Instal ekstensi Dompet XDEFI",
"description": "Kami merekomendasikan menempelkan XDEFI Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."
"title": "Instal ekstensi Dompet Ctrl",
"description": "Kami merekomendasikan menempelkan Ctrl Wallet ke taskbar Anda untuk akses lebih cepat ke dompet Anda."
},
"step2": {
"title": "Buat atau Impor Dompet",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "XDEFI Wallet拡張機能をインストールする",
"description": "XDEFI Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。"
"title": "Ctrl Wallet拡張機能をインストールする",
"description": "Ctrl Walletをタスクバーにピン留めすることで、ウォレットへのアクセスが速くなることをお勧めします。"
},
"step2": {
"title": "ウォレットの作成またはインポート",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/ko_KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "XDEFI 지갑 확장 프로그램을 설치하세요",
"description": "지갑에 빠르게 액세스하기 위해 작업 표시줄에 XDEFI Wallet을 고정하는 것을 권장합니다."
"title": "Ctrl 지갑 확장 프로그램을 설치하세요",
"description": "지갑에 빠르게 액세스하기 위해 작업 표시줄에 Ctrl Wallet을 고정하는 것을 권장합니다."
},
"step2": {
"title": "지갑을 만들거나 가져오기",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/ms_MY.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Pasang sambungan XDEFI Wallet",
"description": "Kami mengesyorkan anda pin XDEFI Wallet ke taskbar anda untuk akses lebih cepat ke dompet anda."
"title": "Pasang sambungan Ctrl Wallet",
"description": "Kami mengesyorkan anda pin Ctrl Wallet ke taskbar anda untuk akses lebih cepat ke dompet anda."
},
"step2": {
"title": "Cipta atau Import Dompet",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Instale a extensão XDEFI Wallet",
"description": "Recomendamos fixar a Carteira XDEFI na sua barra de tarefas para um acesso mais rápido à sua carteira."
"title": "Instale a extensão Ctrl Wallet",
"description": "Recomendamos fixar a Carteira Ctrl na sua barra de tarefas para um acesso mais rápido à sua carteira."
},
"step2": {
"title": "Criar ou Importar uma Carteira",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/ru_RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Установите расширение кошелька XDEFI",
"description": "Мы рекомендуем закрепить XDEFI Wallet на панели задач для более быстрого доступа к вашему кошельку."
"title": "Установите расширение кошелька Ctrl",
"description": "Мы рекомендуем закрепить Ctrl Wallet на панели задач для более быстрого доступа к вашему кошельку."
},
"step2": {
"title": "Создать или Импортировать кошелек",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/th_TH.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "ติดตั้งส่วนขยาย XDEFI Wallet",
"description": "เราแนะนำให้คุณตรา XDEFI Wallet ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"
"title": "ติดตั้งส่วนขยาย Ctrl Wallet",
"description": "เราแนะนำให้คุณตรา Ctrl Wallet ไว้ที่แถบงานเพื่อเข้าถึงกระเป๋าเงินของคุณได้เร็วขึ้น"
},
"step2": {
"title": "สร้างหรือนำเข้ากระเป๋าเงิน",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/tr_TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "XDEFI Cüzdan eklentisini yükleyin",
"description": "Cüzdanınıza daha hızlı erişim için XDEFI Wallet'ı görev çubuğunuza sabitlemenizi öneririz."
"title": "Ctrl Cüzdan eklentisini yükleyin",
"description": "Cüzdanınıza daha hızlı erişim için Ctrl Wallet'ı görev çubuğunuza sabitlemenizi öneririz."
},
"step2": {
"title": "Bir Cüzdan Oluşturun veya İçe Aktarın",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/uk_UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Встановіть розширення гаманця XDEFI",
"description": "Ми рекомендуємо закріпити гаманець XDEFI на панелі задач для швидшого доступу до вашого гаманця."
"title": "Встановіть розширення гаманця Ctrl",
"description": "Ми рекомендуємо закріпити гаманець Ctrl на панелі задач для швидшого доступу до вашого гаманця."
},
"step2": {
"title": "Створити або Імпортувати Гаманець",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/vi_VN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "Cài đặt tiện ích mở rộng XDEFI Wallet",
"description": "Chúng tôi khuyên bạn nên ghim XDEFI Wallet vào thanh tác vụ để truy cập ví nhanh hơn."
"title": "Cài đặt tiện ích mở rộng Ctrl Wallet",
"description": "Chúng tôi khuyên bạn nên ghim Ctrl Wallet vào thanh tác vụ để truy cập ví nhanh hơn."
},
"step2": {
"title": "Tạo hoặc Nhập ví",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "安装 XDEFI 钱包扩展程序",
"description": "我们建议将XDEFI钱包固定到您的任务栏,以便更快地访问您的钱包。"
"title": "安装 Ctrl 钱包扩展程序",
"description": "我们建议将Ctrl钱包固定到您的任务栏,以便更快地访问您的钱包。"
},
"step2": {
"title": "创建或导入钱包",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/zh_HK.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "安裝 XDEFI Wallet 擴充功能",
"description": "我們建議把 XDEFI Wallet 釘在工作列上,以便更快捷地進入你的錢包。"
"title": "安裝 Ctrl Wallet 擴充功能",
"description": "我們建議把 Ctrl Wallet 釘在工作列上,以便更快捷地進入你的錢包。"
},
"step2": {
"title": "創建或導入錢包",
Expand Down
6 changes: 3 additions & 3 deletions packages/rainbowkit/src/locales/zh_TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -1130,11 +1130,11 @@
}
}
},
"xdefi": {
"ctrl": {
"extension": {
"step1": {
"title": "安裝 XDEFI Wallet 擴展程序",
"description": "我們建議將 XDEFI Wallet 釘選到您的任務欄,以便更快訪問錢包。"
"title": "安裝 Ctrl Wallet 擴展程序",
"description": "我們建議將 Ctrl Wallet 釘選到您的任務欄,以便更快訪問錢包。"
},
"step2": {
"title": "創建或導入錢包",
Expand Down
2 changes: 1 addition & 1 deletion packages/rainbowkit/src/types/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export type WalletProviderFlags =
| 'isTokenary'
| 'isTrust'
| 'isTrustWallet'
| 'isXDEFI'
| 'isCtrl'
| 'isZerion'
| 'isTalisman'
| 'isZeal'
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import type { Wallet } from '../../Wallet';
import {
getInjectedConnector,
hasInjectedProvider,
} from '../../getInjectedConnector';

export const ctrlWallet = (): Wallet => {
return {
id: 'ctrl',
name: 'Ctrl Wallet',
rdns: 'ctrl.xyz',
installed: hasInjectedProvider({ namespace: 'xfi.ethereum' }),
iconUrl: async () => (await import('./ctrlWallet.svg')).default,
iconBackground: '#fff',
downloadUrls: {
chrome:
'https://chromewebstore.google.com/detail/ctrl-wallet/hmeobnfnfcmdkdcmlblgagmfpfboieaf',
browserExtension: 'https://ctrl.xyz',
},
extension: {
instructions: {
learnMoreUrl: 'https://ctrl.xyz',
steps: [
{
description: 'wallet_connectors.ctrl.extension.step1.description',
step: 'install',
title: 'wallet_connectors.ctrl.extension.step1.title',
},
{
description: 'wallet_connectors.ctrl.extension.step2.description',
step: 'create',
title: 'wallet_connectors.ctrl.extension.step2.title',
},
{
description: 'wallet_connectors.ctrl.extension.step3.description',
step: 'refresh',
title: 'wallet_connectors.ctrl.extension.step3.title',
},
],
},
},
createConnector: getInjectedConnector({ namespace: 'xfi.ethereum' }),
};
};
Loading