From d0c4278f8454aa44861f24a3ff27527281730121 Mon Sep 17 00:00:00 2001 From: showlizi Date: Fri, 14 Jun 2024 17:26:14 +0800 Subject: [PATCH] feat: add side --- chains/mainnet/side.json | 81 ++++++++++++++++++ src/layouts/components/NavBarWallet.vue | 20 ++++- src/modules/wallet/keplr.vue | 1 + src/modules/wallet/unisat.vue | 104 ++++++++++++++++++++++++ src/router/index.ts | 2 +- src/stores/useWalletStore.ts | 7 +- 6 files changed, 211 insertions(+), 4 deletions(-) create mode 100644 chains/mainnet/side.json create mode 100644 src/modules/wallet/unisat.vue diff --git a/chains/mainnet/side.json b/chains/mainnet/side.json new file mode 100644 index 0000000000..cbfc804184 --- /dev/null +++ b/chains/mainnet/side.json @@ -0,0 +1,81 @@ +{ + "chain_name": "SIDE-Testnet", + "api": [], + "rpc": [ + "https://testnet-rpc.side.one", + "https://testnet-rpc2.side.one" + ], + "faucet": "https://testnet.side.one/faucet", + "snapshot_provider": "", + "sdk_version": "0.45.6", + "coin_type": "118", + "min_tx_fee": "800", + "addr_prefix": "side", + "logo": "/logos/side.png", + "theme_color": "#161723", + "assets": [ + { + "base": "uside", + "symbol": "SIDE", + "name": "Side protocol", + "exponent": "6", + "coingecko_id": "usd-coin", + "logo": "side-SIDE", + "precision": 6 + }, + { + "base": "abtct", + "symbol": "BTCT", + "name": "Bitcoin Token", + "exponent": "8", + "coingecko_id": "bitcoin", + "logo": "", + "precision": 8 + }, + { + "base": "uusdc", + "symbol": "USDC", + "name": "USD Coin", + "exponent": "6", + "coingecko_id": "usd-coin", + "logo": "side-USDC", + "precision": 6 + }, + { + "base": "uusdt", + "symbol": "USDT", + "name": "Tether USD", + "exponent": "6", + "coingecko_id": "usd-coin", + "logo": "data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMzkuNDMgMjk1LjI3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base": "uwbtc", + "coingecko_id": "bitcoin", + "exponent": "8", + "logo": "", + "name": "Wrapped BTC", + "precision": 8, + "symbol": "wBTC" + }, + { + "base": "ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349", + "symbol": "USDC", + "name": "USD Coin (ibc)", + "exponent": "6", + "coingecko_id": "usd-coin", + "logo": "side-USDC", + "precision": 6 + }, + { + "base": "ibc/4BDF2D63B8FFE3454AF30E9BC10D2D7979BD3A938D989889ABC94FC5B86F1E2D", + "symbol": "aUSDC", + "name": "aUSDC.axl (ibc)", + "exponent": "6", + "coingecko_id": "usd-coin", + "logo": "https://testnet.satellite.money/assets/tokens/uausdc.logo.svg", + "precision": 6 + } + ] +} diff --git a/src/layouts/components/NavBarWallet.vue b/src/layouts/components/NavBarWallet.vue index 2d0c69d535..98e1c0385a 100644 --- a/src/layouts/components/NavBarWallet.vue +++ b/src/layouts/components/NavBarWallet.vue @@ -1,8 +1,10 @@