Skip to content
Merged
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@vueform/toggle": "^2.1.4",
"@vueuse/core": "^14.2.1",
"@walletconnect/core": "^2.23.5",
"cashconnect": "^0.0.20",
"cashconnect": "0.0.25",
"chota": "^0.9.2",
"electron-store": "^11.0.2",
"mainnet-js": "^3.1.6",
Expand Down
2 changes: 1 addition & 1 deletion src/components/cashconnect/CCSessions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<div>{{ session.peer.metadata.description }}</div>
</div>
<div class="cc-session-item-action-container">
<div class="cc-session-item-action-icon" @click="cashconnectStore.cashConnectWallet.disconnectSession(topic)">
<div class="cc-session-item-action-icon" @click="cashconnectStore.disconnectSession(topic)">
<img :src="settingsStore.darkMode? 'images/trashLightGrey.svg': 'images/trash.svg'" style="max-width: none" />
</div>
</div>
Expand Down
11 changes: 3 additions & 8 deletions src/components/connectDapp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
const { _wallet } = storeToRefs(store);
const walletconnectStore = useWalletconnectStore(_wallet as Ref<Wallet>)
const web3wallet = walletconnectStore.web3wallet
const isHDWallet = settingsStore.getWalletType(store.activeWalletName) === 'hd';
const hasCashConnect = !isHDWallet && !!(_wallet.value as Wallet | null)?.privateKey;
const cashconnectStore = hasCashConnect ? useCashconnectStore(_wallet as Ref<Wallet>) : undefined;
const cashconnectStore = useCashconnectStore(_wallet as Ref<Wallet>);

// Props.
const props = defineProps<{
Expand Down Expand Up @@ -71,7 +69,7 @@
try {
// Promise will wait for state indicating whether WC and CC are initialized
const { isWcAndCcInitialized } = storeToRefs(store);
await waitForInitialized(isWcAndCcInitialized);
await waitForInitialized(isWcAndCcInitialized);

// If the URI begins with "wc:" (walletconnect)...
if(dappUri.startsWith('wc:')) {
Expand All @@ -80,9 +78,6 @@

// Otherwise, if the URI begins with "cc:" (cashconnect)...
else if (dappUri.startsWith('cc:')) {
if (!hasCashConnect) {
throw new Error(t('dapp.errors.cashConnectNotSupported'));
}
await cashconnectRef.value?.connectDappUriInput(dappUri);
}

Expand Down Expand Up @@ -140,7 +135,7 @@
</fieldset>

<WCSessions ref="walletconnectRef"/>
<CCSessions v-if="hasCashConnect" ref="cashconnectRef" />
<CCSessions ref="cashconnectRef" />

<div v-if="showQrCodeDialog">
<QrCodeDialog @hide="() => showQrCodeDialog = false" @decode="qrDecode" :filter="qrFilter"/>
Expand Down
3 changes: 0 additions & 3 deletions src/components/settings/addWallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@
{{ walletType === 'hd' ? t('onboarding.walletType.hdDescription') : t('onboarding.walletType.singleDescription') }}
</div>
</div>
<div v-if="walletType === 'hd'" style="font-size: smaller; color: grey;">
{{ t('addWallet.hdNote') }}
</div>
<div style="margin-top:10px; margin-bottom: 15px;">
<div style="font-size: smaller; color: grey; margin-bottom: 10px;">
{{ t('addWallet.createNew.hint') }}
Expand Down
3 changes: 0 additions & 3 deletions src/components/walletOnboarding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@
<div style="margin-top: 5px;">
{{ walletType === 'hd' ? t('onboarding.walletType.hdDescription') : t('onboarding.walletType.singleDescription') }}
</div>
<div v-if="walletType === 'hd'" style="margin-top: 5px; font-size: smaller; color: grey;">
{{ t('onboarding.walletType.hdNote') }}
</div>
</div>
<div style="font-size: smaller; color: grey; margin: 10px 0;">
{{ t('onboarding.create.seedPhraseNote') }}
Expand Down
15 changes: 9 additions & 6 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
"single": "Single address",
"hdDescription": "Uses a new address for each transaction. Better privacy, but requires selecting an address when connecting to dApps.",
"singleDescription": "Uses one fixed address for all transactions. All assets in one place, but less private.",
"singleAddressNote": "Note: Only the first address from your seed phrase will be used. If you've used this seed with other wallets, funds on other addresses won't appear.",
"hdNote": "Note: CashConnect is currently not supported with HD wallets."
"singleAddressNote": "Note: Only the first address from your seed phrase will be used. If you've used this seed with other wallets, funds on other addresses won't appear."
},
"derivationPath": {
"label": "Derivation path:",
Expand Down Expand Up @@ -349,8 +348,7 @@
"connectButton": "Connect New dApp",
"errors": {
"invalidUri": "Invalid WalletConnect or CashConnect URI",
"notValidUri": "Not a valid WalletConnect or CashConnect URI",
"cashConnectNotSupported": "CashConnect is currently not supported with HD wallets"
"notValidUri": "Not a valid WalletConnect or CashConnect URI"
}
},
"history": {
Expand Down Expand Up @@ -473,7 +471,6 @@
"bitcoindotcom": "Bitcoin.com wallet"
},
"singleAddressNote": "Note: Only the first address from your seed phrase will be used. If you've used this seed with other wallets, funds on other addresses won't appear.",
"hdNote": "Note: CashConnect is currently not supported with HD wallets.",
"importButton": "Import"
},
"walletsOverview": {
Expand Down Expand Up @@ -716,7 +713,13 @@
"notifications": {
"sessionApproved": "Session approved",
"successfullySignedTransaction": "Successfully signed transaction",
"networkMismatch": "This Dapp requires wallet to be on {network}. Please navigate to settings and change network to use this Dapp."
"networkMismatch": "This Dapp requires wallet to be on {network}. Please navigate to settings and change network to use this Dapp.",
"notStarted": "CashConnect is not started.",
"privateKeyNotFound": "Private key could not be found for address: {address}",
"failedToConvertCashAddr": "Failed to convert CashAddr to Locking Bytecode",
"invalidDerivationPath": "Invalid derivation path for CashConnect: expected at least 4 components, got {length}.",
"failedToDeriveHdNode": "Failed to derive HDNode from seed",
"walletTypeNotSupported": "WalletType not supported: Must be a Single Address (WIF) Wallet or HDWallet."
}
},
"walletConnect": {
Expand Down
15 changes: 9 additions & 6 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
"single": "Dirección única",
"hdDescription": "Usa una nueva dirección para cada transacción. Mayor privacidad, pero requiere seleccionar una dirección al conectarse a dApps.",
"singleDescription": "Usa una dirección fija para todas las transacciones. Todos los activos en un solo lugar, pero menos privado.",
"singleAddressNote": "Nota: Solo se usará la primera dirección de tu frase semilla. Si has usado esta semilla con otras billeteras, los fondos en otras direcciones no aparecerán.",
"hdNote": "Nota: CashConnect actualmente no es compatible con billeteras HD."
"singleAddressNote": "Nota: Solo se usará la primera dirección de tu frase semilla. Si has usado esta semilla con otras billeteras, los fondos en otras direcciones no aparecerán."
},
"derivationPath": {
"label": "Ruta de derivación:",
Expand Down Expand Up @@ -349,8 +348,7 @@
"connectButton": "Conectar nueva dApp",
"errors": {
"invalidUri": "URI de WalletConnect o CashConnect inválida",
"notValidUri": "No es una URI válida de WalletConnect o CashConnect",
"cashConnectNotSupported": "CashConnect actualmente no es compatible con billeteras HD"
"notValidUri": "No es una URI válida de WalletConnect o CashConnect"
}
},
"history": {
Expand Down Expand Up @@ -473,7 +471,6 @@
"bitcoindotcom": "Billetera Bitcoin.com"
},
"singleAddressNote": "Nota: Solo se usará la primera dirección de tu frase semilla. Si has usado esta semilla con otras billeteras, los fondos en otras direcciones no aparecerán.",
"hdNote": "Nota: CashConnect actualmente no es compatible con billeteras HD.",
"importButton": "Importar"
},
"walletsOverview": {
Expand Down Expand Up @@ -716,7 +713,13 @@
"notifications": {
"sessionApproved": "Sesión aprobada",
"successfullySignedTransaction": "Transacción firmada exitosamente",
"networkMismatch": "Esta dApp requiere que la billetera esté en {network}. Por favor navega a configuración y cambia la red para usar esta dApp."
"networkMismatch": "Esta dApp requiere que la billetera esté en {network}. Por favor navega a configuración y cambia la red para usar esta dApp.",
"notStarted": "CashConnect no está iniciado.",
"privateKeyNotFound": "No se pudo encontrar la clave privada para la dirección: {address}",
"failedToConvertCashAddr": "Error al convertir CashAddr a Locking Bytecode",
"invalidDerivationPath": "Ruta de derivación inválida para CashConnect: se esperaban al menos 4 componentes, se recibieron {length}.",
"failedToDeriveHdNode": "Error al derivar el HDNode a partir de la semilla",
"walletTypeNotSupported": "Tipo de billetera no compatible: debe ser una billetera de dirección única (WIF) o una HDWallet."
}
},
"walletConnect": {
Expand Down
15 changes: 9 additions & 6 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
"single": "Adresse unique",
"hdDescription": "Utilise une nouvelle adresse pour chaque transaction. Meilleure confidentialité, mais nécessite de sélectionner une adresse lors de la connexion aux dApps.",
"singleDescription": "Utilise une seule adresse fixe pour toutes les transactions. Tous les actifs au même endroit, mais moins privé.",
"singleAddressNote": "Remarque : Seule la première adresse de votre phrase de récupération sera utilisée. Si vous avez utilisé cette phrase avec d'autres portefeuilles, les fonds sur d'autres adresses n'apparaîtront pas.",
"hdNote": "Remarque : CashConnect n'est actuellement pas pris en charge avec les portefeuilles HD."
"singleAddressNote": "Remarque : Seule la première adresse de votre phrase de récupération sera utilisée. Si vous avez utilisé cette phrase avec d'autres portefeuilles, les fonds sur d'autres adresses n'apparaîtront pas."
},
"derivationPath": {
"label": "Chemin de dérivation :",
Expand Down Expand Up @@ -349,8 +348,7 @@
"connectButton": "Connecter nouvelle dApp",
"errors": {
"invalidUri": "URI WalletConnect ou CashConnect invalide",
"notValidUri": "Ce n'est pas une URI WalletConnect ou CashConnect valide",
"cashConnectNotSupported": "CashConnect n'est actuellement pas pris en charge avec les portefeuilles HD"
"notValidUri": "Ce n'est pas une URI WalletConnect ou CashConnect valide"
}
},
"history": {
Expand Down Expand Up @@ -473,7 +471,6 @@
"bitcoindotcom": "Portefeuille Bitcoin.com"
},
"singleAddressNote": "Remarque : Seule la première adresse de votre phrase de récupération sera utilisée. Si vous avez utilisé cette phrase avec d'autres portefeuilles, les fonds sur d'autres adresses n'apparaîtront pas.",
"hdNote": "Remarque : CashConnect n'est actuellement pas pris en charge avec les portefeuilles HD.",
"importButton": "Importer"
},
"walletsOverview": {
Expand Down Expand Up @@ -716,7 +713,13 @@
"notifications": {
"sessionApproved": "Session approuvée",
"successfullySignedTransaction": "Transaction signée avec succès",
"networkMismatch": "Cette dApp nécessite que le portefeuille soit sur {network}. Veuillez aller dans les paramètres et changer de réseau pour utiliser cette dApp."
"networkMismatch": "Cette dApp nécessite que le portefeuille soit sur {network}. Veuillez aller dans les paramètres et changer de réseau pour utiliser cette dApp.",
"notStarted": "CashConnect n'est pas démarré.",
"privateKeyNotFound": "La clé privée est introuvable pour l'adresse : {address}",
"failedToConvertCashAddr": "Échec de la conversion de CashAddr en Locking Bytecode",
"invalidDerivationPath": "Chemin de dérivation invalide pour CashConnect : au moins 4 composants attendus, {length} reçu(s).",
"failedToDeriveHdNode": "Échec de la dérivation du HDNode à partir de la seed",
"walletTypeNotSupported": "Type de portefeuille non pris en charge : doit être un portefeuille à adresse unique (WIF) ou un HDWallet."
}
},
"walletConnect": {
Expand Down
Loading