Skip to content

Commit

Permalink
Merge pull request #332 from bob-collective/feat/logos
Browse files Browse the repository at this point in the history
feat: add logos
  • Loading branch information
gregdhill authored Sep 2, 2024
2 parents f4d5f24 + e838f30 commit 8344450
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 10 deletions.
25 changes: 25 additions & 0 deletions assets/solvBTC.BBN.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions assets/solvBTC.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/uniBTC.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions sdk/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -39,4 +39,4 @@
"bitcoinjs-lib": "^6.1.6",
"ethers": "^6.13.2"
}
}
}
12 changes: 6 additions & 6 deletions sdk/src/gateway/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
});
Expand Down
21 changes: 19 additions & 2 deletions sdk/src/gateway/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,62 +7,79 @@ const TOKENS = [
decimals: 18,
bob: "0xBBa2eF945D523C4e2608C9E1214C2Cc64D4fc2e2",
bobSepolia: "0x6744bAbDf02DCF578EA173A9F0637771A9e1c4d0",
logoURI: "https://ethereum-optimism.github.io/data/tBTC/logo.svg",
},
{
name: "Wrapped BTC",
symbol: "WBTC",
decimals: 8,
bob: "0x03C7054BCB39f7b2e5B2c7AcB37583e32D70Cfa3",
bobSepolia: "0xe51e40e15e6e1496a0981f90Ca1D632545bdB519",
logoURI: "https://ethereum-optimism.github.io/data/WBTC/logo.svg",
},
{
name: "sb tBTC v2",
symbol: "sbtBTC",
decimals: 8,
bob: "0x2925dF9Eb2092B53B06A06353A7249aF3a8B139e",
bobSepolia: "",
logoURI: "https://ethereum-optimism.github.io/data/tBTC/logo.svg",
},
{
name: "sb Wrapped BTC",
symbol: "sbWBTC",
decimals: 8,
bob: "0x5c46D274ed8AbCAe2964B63c0360ad3Ccc384dAa",
bobSepolia: "",
logoURI: "https://ethereum-optimism.github.io/data/WBTC/logo.svg",
},
{
name: "Segment TBTC",
symbol: "seTBTC",
decimals: 8,
bob: "0xD30288EA9873f376016A0250433b7eA375676077",
bobSepolia: "",
logoURI: "https://ethereum-optimism.github.io/data/tBTC/logo.svg",
},
{
name: "Segment WBTC",
symbol: "seWBTC",
decimals: 8,
bob: "0x6265C05158f672016B771D6Fb7422823ed2CbcDd",
bobSepolia: "",
logoURI: "https://ethereum-optimism.github.io/data/WBTC/logo.svg",
},
{
name: "Staked mtBTC",
symbol: "stmtBTC",
decimals: 18,
bob: "",
bobSepolia: "0xc4229678b65e2D9384FDf96F2E5D512d6eeC0C77",
logoURI: "https://ethereum-optimism.github.io/data/tBTC/logo.svg",
},
{
name: "Solv BTC",
symbol: "SolvBTC",
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",
symbol: "uniBTC",
decimals: 8,
bob: "0x236f8c0a61dA474dB21B693fB2ea7AAB0c803894",
bobSepolia: "",
logoURI: "https://raw.githubusercontent.com/bob-collective/bob/master/assets/uniBTC.svg",
},
];

Expand All @@ -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();
Expand All @@ -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;
Expand Down

0 comments on commit 8344450

Please sign in to comment.