Skip to content

Commit

Permalink
use backfilled zkbridge entity
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Jun 10, 2024
1 parent e6892bb commit f94f820
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 35 deletions.
32 changes: 1 addition & 31 deletions src/data/bridgeNetworkData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1194,38 +1194,9 @@ export default [
"x layer": "xlayer",
},
},
{
id: 63,
displayName: "zkBridge",
bridgeDbName: "zkbridge",
iconLink: "icons:zkbridge",
largeTxThreshold: 10000,
url: "https://www.zkbridge.com/token",
chains: [
"Ethereum",
"BSC",
"Polygon",
"Optimism",
"Arbitrum",
"Linea",
"Mantle",
"Base",
"Scroll",
"opBNB",
"Combo",
"Bouncebit",
"Bitlayer",
],
chainMapping: {
combo: "combo-mainnet",
bouncebit: "bouncebit-mainnet",
opbnb: "op_bnb",
bitlayer: "btr",
},
},
{
id: 9999,
displayName: "zkBridge111",
displayName: "zkBridge",
bridgeDbName: "zkbridge111",
iconLink: "icons:zkbridge",
largeTxThreshold: 10000,
Expand All @@ -1251,6 +1222,5 @@ export default [
opbnb: "op_bnb",
bitlayer: "btr",
},
remove: true, // this is a temporary bridge
},
] as BridgeNetwork[];
3 changes: 1 addition & 2 deletions src/data/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ export type BridgeNetwork = {
[chain: string]: string;
}; // used when overwriting adapter key (adapter key is always the chain volume counts for, can be overwritten to query blocks/contracts on a different chain)
destinationChain?: string; // used to specify the destination chain when contracts on only 1 chain are tracked
remove?: boolean; // temporary, remove
};
};
4 changes: 2 additions & 2 deletions src/handlers/getBridges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { normalizeChain } from "../utils/normalizeChain";
const getBridges = async () => {
const response = (
await Promise.all(
bridgeNetworks.filter((bridgeNetwork) => bridgeNetwork?.remove !== true) .map(async (bridgeNetwork) => {
bridgeNetworks.map(async (bridgeNetwork) => {
const { id, bridgeDbName, url, displayName, iconLink, chains, destinationChain } = bridgeNetwork;
// can use chains to give chain breakdown, but not needed at this time (put in getBridge to reduce queries?)

Expand Down Expand Up @@ -99,7 +99,7 @@ const getBridges = async () => {
monthlyVolume: monthlyVolume ?? 0,
chains: chains.sort((a, b) => chainDailyVolumes[b] - chainDailyVolumes[a]),
destinationChain: destinationChain ?? "false",
url
url,
} as any;
return dataToReturn;
})
Expand Down

0 comments on commit f94f820

Please sign in to comment.