From 8593ea4ffc3386328ccedad2577ea53a9e1fc96d Mon Sep 17 00:00:00 2001 From: Alien Deployer Date: Tue, 17 Sep 2024 03:40:17 +0300 Subject: [PATCH] 0.12.2: add chains, protocols --- package.json | 2 +- src/integrations.ts | 70 ++++++++++++++++++++++++++++++++++++++------- src/networks.ts | 12 ++++++++ tools/overview.ts | 2 +- 4 files changed, 74 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index d3ba9af..addc5bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stabilitydao/stability", - "version": "0.12.1", + "version": "0.12.2", "description": "Stability Integration Library", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/integrations.ts b/src/integrations.ts index 753eada..1ef20bc 100644 --- a/src/integrations.ts +++ b/src/integrations.ts @@ -40,19 +40,19 @@ export enum DefiCategory { ORACLE = 'Oracle', REWARDING = 'Rewarding', VAULTS_ERC4626 = 'Vaults ERC-4626', - BRIDGE = 'Bridge', LST = 'Liquid staking', + INTEROPERABILITY = 'Interoperability', } export const integrations: { [org: string]: DeFiOrganization } = { - // oracle + // oracle, cross-chain chainlink: { name: 'ChainLink', img: 'Chainlink.svg', website: 'https://chain.link', protocols: { chainlink: { - name: 'Chainlink', + name: 'Data Feeds', category: DefiCategory.ORACLE, networks: [ NetworkId.ETHEREUM, @@ -76,6 +76,27 @@ export const integrations: { [org: string]: DeFiOrganization } = { coreContracts: ['PriceReader'], adapters: ['ChainLinkAdapter',], }, + ccip: { + name: 'CCIP', + category: DefiCategory.INTEROPERABILITY, + networks: [ + NetworkId.ARBITRUM, + NetworkId.AVALANCHE, + NetworkId.BASE, + NetworkId.BLAST, + NetworkId.BSC, + NetworkId.CELO, + NetworkId.ETHEREUM, + NetworkId.GNOSIS, + NetworkId.KROMA, + NetworkId.METIS, + NetworkId.MODE, + NetworkId.OPTIMISM, + NetworkId.POLYGON, + NetworkId.WEMIX, + NetworkId.ZKSYNC, + ], + }, }, defiLlama: 'chainlink', github: 'smartcontractkit', @@ -248,6 +269,14 @@ export const integrations: { [org: string]: DeFiOrganization } = { strategies: [StrategyShortId.CCF], adapters: ['CurveAdapter',], }, + llamalend: { + name: 'LlamaLend', + category: DefiCategory.LENDING, + networks: [ + NetworkId.ETHEREUM, + NetworkId.ARBITRUM, + ], + }, }, defiLlama: 'curve-finance', github: 'curvefi', @@ -698,16 +727,32 @@ export const integrations: { [org: string]: DeFiOrganization } = { defiLlama: 'dhedge', github: 'dhedge', }, - // Bridge (liquidity transport etc) + // INTEROPERABILITY (liquidity transport, cross-chain messaging etc) stargate: { name: 'Stargate', img: 'Stargate.svg', website: 'https://stargate.finance', protocols: { - stargate: { - name: 'Stargate', - category: DefiCategory.BRIDGE, - networks: [NetworkId.ETHEREUM, NetworkId.BASE, NetworkId.ARBITRUM, NetworkId.POLYGON,], + stargateV2: { + name: 'Stargate V2', + category: DefiCategory.INTEROPERABILITY, + networks: [ + NetworkId.ETHEREUM, + NetworkId.BSC, + NetworkId.AVALANCHE, + NetworkId.POLYGON, + NetworkId.ARBITRUM, + NetworkId.OPTIMISM, + NetworkId.METIS, + NetworkId.LINEA, + NetworkId.MANTLE, + NetworkId.BASE, + NetworkId.KAVA, + NetworkId.SCROLL, + NetworkId.AURORA, + NetworkId.SEI, + // NetworkId.ZKSYNC, coming soon + ], intermediaryStrategies: [StrategyShortId.Y], }, }, @@ -720,8 +765,13 @@ export const integrations: { [org: string]: DeFiOrganization } = { img: 'Lido.svg', website: 'https://lido.fi', protocols: { - lido: { - name: 'Lido Staked MATIC', + stEth: { + name: 'stETH', + category: DefiCategory.LST, + networks: [NetworkId.ETHEREUM,], + }, + stMatic: { + name: 'stMATIC', category: DefiCategory.LST, networks: [NetworkId.ETHEREUM, NetworkId.POLYGON,], strategies: [StrategyShortId.Y,], diff --git a/src/networks.ts b/src/networks.ts index 39cbecc..5b91e02 100644 --- a/src/networks.ts +++ b/src/networks.ts @@ -61,6 +61,8 @@ export const enum NetworkId { HAQQ = 'Haqq', ROOTSTOCK = 'Rootstock', THUNDERCORE = 'ThunderCore', + KROMA = 'Kroma', + WEMIX = 'WEMIX3.0', } export const networks: { [chainId: string]: Network } = { @@ -139,6 +141,11 @@ export const networks: { [chainId: string]: Network } = { chainId: 252, status: NetworkStatus.NOT_SUPPORTED, }, + "255": { + id: NetworkId.KROMA, + chainId: 255, + status: NetworkStatus.NOT_SUPPORTED, + }, "288": { id: NetworkId.BOBA, chainId: 288, @@ -169,6 +176,11 @@ export const networks: { [chainId: string]: Network } = { chainId: 1101, status: NetworkStatus.NOT_SUPPORTED, }, + "1111" : { + id: NetworkId.WEMIX, + chainId: 1111, + status: NetworkStatus.NOT_SUPPORTED, + }, "1116": { id: NetworkId.CORE, chainId: 1116, diff --git a/tools/overview.ts b/tools/overview.ts index 239f10c..55bd15f 100644 --- a/tools/overview.ts +++ b/tools/overview.ts @@ -25,6 +25,6 @@ let protocolsTotal = 0 for (const defiOrgCode of Object.keys(integrations)) { protocolsTotal += Object.keys(integrations[defiOrgCode].protocols).length } -console.log(`DeFi protocols: ${protocolsTotal}`) +console.log(`DeFi organizations: ${Object.keys(integrations).length}. Protocols: ${protocolsTotal}.`) console.log(`Seed nodes: ${seeds.length}`) console.log(``)