From e838f305ac3f82118424281e16a1afd519438fa9 Mon Sep 17 00:00:00 2001 From: Gregory Hill Date: Mon, 2 Sep 2024 14:16:49 +0100 Subject: [PATCH] feat: add logos Signed-off-by: Gregory Hill --- assets/solvBTC.BBN.svg | 25 +++++++++++++++++++++++++ assets/solvBTC.svg | 15 +++++++++++++++ assets/uniBTC.svg | 10 ++++++++++ sdk/package.json | 4 ++-- sdk/src/gateway/client.ts | 12 ++++++------ sdk/src/gateway/tokens.ts | 21 +++++++++++++++++++-- 6 files changed, 77 insertions(+), 10 deletions(-) create mode 100644 assets/solvBTC.BBN.svg create mode 100644 assets/solvBTC.svg create mode 100644 assets/uniBTC.svg diff --git a/assets/solvBTC.BBN.svg b/assets/solvBTC.BBN.svg new file mode 100644 index 00000000..179965b6 --- /dev/null +++ b/assets/solvBTC.BBN.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/solvBTC.svg b/assets/solvBTC.svg new file mode 100644 index 00000000..f9a5d18f --- /dev/null +++ b/assets/solvBTC.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/assets/uniBTC.svg b/assets/uniBTC.svg new file mode 100644 index 00000000..f4bd0a9d --- /dev/null +++ b/assets/uniBTC.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/sdk/package.json b/sdk/package.json index cdef9f33..0c6ebc6e 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@gobob/bob-sdk", - "version": "2.2.0", + "version": "2.2.1", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { @@ -39,4 +39,4 @@ "bitcoinjs-lib": "^6.1.6", "ethers": "^6.13.2" } -} +} \ No newline at end of file diff --git a/sdk/src/gateway/client.ts b/sdk/src/gateway/client.ts index b45e09c2..da15ff54 100644 --- a/sdk/src/gateway/client.ts +++ b/sdk/src/gateway/client.ts @@ -282,12 +282,12 @@ export class GatewayApiClient { }, outputToken: outputToken ? { - symbol: outputToken.symbol, - address: outputToken.address, - logo: outputToken.logoURI, - decimals: outputToken.decimals, - chain: chainName, - } + symbol: outputToken.symbol, + address: outputToken.address, + logo: outputToken.logoURI, + decimals: outputToken.decimals, + chain: chainName, + } : null, }; }); diff --git a/sdk/src/gateway/tokens.ts b/sdk/src/gateway/tokens.ts index 979bff24..6ca573f6 100644 --- a/sdk/src/gateway/tokens.ts +++ b/sdk/src/gateway/tokens.ts @@ -7,6 +7,7 @@ const TOKENS = [ decimals: 18, bob: "0xBBa2eF945D523C4e2608C9E1214C2Cc64D4fc2e2", bobSepolia: "0x6744bAbDf02DCF578EA173A9F0637771A9e1c4d0", + logoURI: "https://ethereum-optimism.github.io/data/tBTC/logo.svg", }, { name: "Wrapped BTC", @@ -14,6 +15,7 @@ const TOKENS = [ decimals: 8, bob: "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3", bobSepolia: "0xe51e40e15e6e1496a0981f90Ca1D632545bdB519", + logoURI: "https://ethereum-optimism.github.io/data/WBTC/logo.svg", }, { name: "sb tBTC v2", @@ -21,6 +23,7 @@ const TOKENS = [ decimals: 8, bob: "0x2925dF9Eb2092B53B06A06353A7249aF3a8B139e", bobSepolia: "", + logoURI: "https://ethereum-optimism.github.io/data/tBTC/logo.svg", }, { name: "sb Wrapped BTC", @@ -28,6 +31,7 @@ const TOKENS = [ decimals: 8, bob: "0x5c46D274ed8AbCAe2964B63c0360ad3Ccc384dAa", bobSepolia: "", + logoURI: "https://ethereum-optimism.github.io/data/WBTC/logo.svg", }, { name: "Segment TBTC", @@ -35,6 +39,7 @@ const TOKENS = [ decimals: 8, bob: "0xD30288EA9873f376016A0250433b7eA375676077", bobSepolia: "", + logoURI: "https://ethereum-optimism.github.io/data/tBTC/logo.svg", }, { name: "Segment WBTC", @@ -42,6 +47,7 @@ const TOKENS = [ decimals: 8, bob: "0x6265C05158f672016B771D6Fb7422823ed2CbcDd", bobSepolia: "", + logoURI: "https://ethereum-optimism.github.io/data/WBTC/logo.svg", }, { name: "Staked mtBTC", @@ -49,6 +55,7 @@ const TOKENS = [ decimals: 18, bob: "", bobSepolia: "0xc4229678b65e2D9384FDf96F2E5D512d6eeC0C77", + logoURI: "https://ethereum-optimism.github.io/data/tBTC/logo.svg", }, { name: "Solv BTC", @@ -56,6 +63,15 @@ const TOKENS = [ decimals: 18, bob: "0x541FD749419CA806a8bc7da8ac23D346f2dF8B77", bobSepolia: "", + logoURI: "https://raw.githubusercontent.com/bob-collective/bob/master/assets/solvBTC.svg", + }, + { + name: "SolvBTC Babylon", + symbol: "SolvBTC.BBN", + decimals: 18, + bob: "0xCC0966D8418d412c599A6421b760a847eB169A8c", + bobSepolia: "", + logoURI: "https://raw.githubusercontent.com/bob-collective/bob/master/assets/solvBTC.BBN.svg", }, { name: "uniBTC", @@ -63,6 +79,7 @@ const TOKENS = [ decimals: 8, bob: "0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894", bobSepolia: "", + logoURI: "https://raw.githubusercontent.com/bob-collective/bob/master/assets/uniBTC.svg", }, ]; @@ -82,7 +99,7 @@ for (const token of TOKENS) { name: token.name, symbol: token.symbol, decimals: token.decimals, - logoURI: "", + logoURI: token.logoURI, }; const lowerAddressBobSepolia = token.bobSepolia.toLowerCase(); @@ -92,7 +109,7 @@ for (const token of TOKENS) { name: token.name, symbol: token.symbol, decimals: token.decimals, - logoURI: "", + logoURI: token.logoURI, }; SYMBOL_LOOKUP[ChainId.BOB][lowerTokenBob.symbol.toLowerCase()] = lowerTokenBob;