Skip to content

Commit

Permalink
wallets: add metamask; AddNetwork button
Browse files Browse the repository at this point in the history
  • Loading branch information
iquidus committed Sep 13, 2023
1 parent d7d4f70 commit 63b50b0
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 0 deletions.
47 changes: 47 additions & 0 deletions components/AddNetwork.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<template>
<v-btn color="primary" class="mt-4" @click.stop="addNetwork()"
><slot
/></v-btn>
</template>

<script>
export default {
name: 'AddNetwork',
data() {
return {
network: {
name: 'Ubiq',
chainId: 8,
chainIdHex: '0x8',
rpc: 'https://rpc.octano.dev',
explorer: 'https://ubiqscan.io',
nativeCurrency: {
name: 'ubiq',
symbol: 'UBQ',
decimals: 18,
},
},
}
},
methods: {
async addNetwork() {
try {
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [
{
chainId: this.network.chainIdHex,
chainName: this.network.name,
rpcUrls: [this.network.rpc],
blockExplorerUrls: [this.network.explorer],
nativeCurrency: this.network.nativeCurrency,
},
],
})
} catch (e) {
console.log(e)

Check warning on line 42 in components/AddNetwork.vue

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 14)

Unexpected console statement
}
},
},
}
</script>
11 changes: 11 additions & 0 deletions content/en/wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ icon: mdi-wallet
createdAt: 2021-01-01T00:00:05.966Z
---

## Add Ubiq To Existing Wallet

Adding Ubiq to an existing Web3 wallet such as MetaMask is easy. Simply click the button below.

<add-network>Add Ubiq Mainnet</add-network>

## Software

<wallet-card wallet-id="metamask" href="https://metamask.io">
MetaMask provides the simplest yet most secure way to connect to blockchain-based applications. You are always in control when interacting on the new decentralized web. MetaMask generates passwords and keys on your device, so only you have access to your accounts and data. You always choose what to share and what to keep private.
</wallet-card>

<wallet-card wallet-id="sparrow">
Sparrow equips you with a key vault, secure login and token wallet — everything you need to manage your digital assets. It is the recommended hot wallet for dApp interactions, providing the most simple and secure way to connect to blockchain-based applications. You can also use Sparrow to interact with hardware wallets such as Trezor and Ledger.
</wallet-card>
Expand All @@ -32,6 +42,7 @@ Gubiq (go-ubiq) is the core client and backbone of the Ubiq network. Used by dev
</wallet-card>

## Deprecated/Legacy

The following wallets are still supported and maintained, however, they will eventually be phased out and replaced with alternatives, therefore are unlikely to see any updates outside of network/protocol compatibility.

<wallet-card wallet-id="fusion" href="https://github.com/ubiq/fusion/releases">
Expand Down
11 changes: 11 additions & 0 deletions content/es/wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ icon: mdi-wallet
createdAt: 2021-01-01T00:00:05.966Z
---

## Agregar Ubiq a la billetera existente

Agregar Ubiq a una billetera Web3 existente como MetaMask es fácil. Simplemente haga clic en el botón de abajo.

<add-network>Agregar red principal de Ubiq</add-network>

## Software

<wallet-card wallet-id="metamask" href="https://metamask.io">
MetaMask proporciona la forma más sencilla pero segura de conectarse a aplicaciones basadas en blockchain. Siempre tienes el control cuando interactúas en la nueva web descentralizada. MetaMask genera contraseñas y claves en su dispositivo, por lo que solo usted tiene acceso a sus cuentas y datos. Tú siempre eliges qué compartir y qué mantener en privado.
</wallet-card>

<wallet-card wallet-id="sparrow">
Sparrow lo equipa con una bóveda de claves, un inicio de sesión seguro y una billetera de tokens: todo lo que necesita para administrar sus activos digitales. Es la billetera activa recomendada para las interacciones de dApp, que proporciona la forma más simple y segura de conectarse a aplicaciones basadas en blockchain. También puede usar Sparrow para interactuar con carteras de hardware como Trezor y Ledger.
</wallet-card>
Expand All @@ -32,6 +42,7 @@ Gubiq (go-ubiq) es el cliente principal y la columna vertebral de la red Ubiq. U
</wallet-card>

## Obsoleto / Legado

Las siguientes billeteras aún son compatibles y se mantienen, sin embargo, eventualmente se eliminarán gradualmente y se reemplazarán con alternativas, por lo tanto, es poco probable que vean actualizaciones fuera de la compatibilidad de red / protocolo.

<wallet-card wallet-id="fusion" href="https://github.com/ubiq/fusion/releases">
Expand Down
12 changes: 12 additions & 0 deletions content/fr/wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ icon: mdi-wallet
createdAt: 2021-01-01T00:00:05.966Z
---

## Ajouter Ubiq au portefeuille existant

Ajouter Ubiq à un portefeuille Web3 existant tel que MetaMask est simple. Cliquez simplement sur le bouton ci-dessous.

<add-network>Ajouter le réseau principal Ubiq</add-network>

## Software

<wallet-card wallet-id="metamask" href="https://metamask.io">
MetaMask fournit le moyen le plus simple mais le plus sécurisé de se connecter aux applications basées sur la blockchain. Vous avez toujours le contrôle lorsque vous interagissez sur le nouveau Web décentralisé. MetaMask génère des mots de passe et des clés sur votre appareil, de sorte que vous seul avez accès à vos comptes et données. Vous choisissez toujours ce que vous souhaitez partager et ce que vous souhaitez garder privé.
</wallet-card>

## Logiciel

<wallet-card wallet-id="sparrow">
Expand Down
13 changes: 13 additions & 0 deletions content/ru/wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ icon: mdi-wallet
createdAt: 2021-01-01T00:00:05.966Z
---

## Добавить Ubiq в существующий кошелек

Добавить Ubiq в существующий кошелек Web3, такой как MetaMask, легко. Просто нажмите кнопку ниже.

<add-network>Добавить основную сеть Ubiq</add-network>

## Software

<wallet-card wallet-id="metamask" href="https://metamask.io">
MetaMask предоставляет самый простой, но наиболее безопасный способ подключения к приложениям на основе блокчейна. Вы всегда контролируете ситуацию при взаимодействии в новой децентрализованной сети. MetaMask генерирует пароли и ключи на вашем устройстве, поэтому только у вас есть доступ к вашим учетным записям и данным. Вы всегда выбираете, чем поделиться, а что оставить приватным.
</wallet-card>

## Программное обеспечение

<wallet-card wallet-id="sparrow">
Expand Down Expand Up @@ -32,6 +44,7 @@ Gubiq (go-ubiq) - это основной клиент и магистраль
</wallet-card>

## Deprecated/Legacy

Следующие кошельки по-прежнему поддерживаются и обслуживаются, однако в конечном итоге они будут прекращены и заменены альтернативами, поэтому вряд ли увидят какие-либо обновления за пределами совместимости с сетью / протоколом.

<wallet-card wallet-id="fusion" href="https://github.com/ubiq/fusion/releases">
Expand Down
13 changes: 13 additions & 0 deletions content/zh/wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ icon: mdi-wallet
createdAt: 2021-01-01T00:00:05.966Z
---

## 将 Ubiq 添加到现有钱包

将 Ubiq 添加到现有的 Web3 钱包(例如 MetaMask)非常简单。只需点击下面的按钮即可。

<add-network>添加 Ubiq 主网</add-network>

## Software

<wallet-card wallet-id="metamask" href="https://metamask.io">
MetaMask 提供了最简单但最安全的方式来连接基于区块链的应用程序。在新的去中心化网络上进行交互时,您始终处于掌控之中。 MetaMask 在您的设备上生成密码和密钥,因此只有您才能访问您的帐户和数据。您始终可以选择分享哪些内容以及保留哪些内容。
</wallet-card>

## 软件

<wallet-card wallet-id="sparrow">
Expand Down Expand Up @@ -32,6 +44,7 @@ Gubiq(go-ubiq)是Ubiq网络的核心客户端和骨干网。 由开发人员
</wallet-card>

## Deprecated/Legacy

仍支持并维护以下钱包,但是它们最终将被淘汰并替换为其他钱包,因此,不太可能看到网络/协议兼容性以外的任何更新。

<wallet-card wallet-id="fusion" href="https://github.com/ubiq/fusion/releases">
Expand Down
Binary file added static/wallets/metamask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 63b50b0

Please sign in to comment.