Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸŽ‡ draw integrations | 🌐 add ProtocolStatusInfo to Integrations | β›“ add chain Hela | 🌐 add Cytoswap #84

Merged
merged 11 commits into from
Oct 27, 2024
Merged
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ import { tokenlist } from "@stabilitydao/stability";
yarn overview
yarn overview-full
yarn draw-chains
yarn draw-integrations
yarn contests-maker
yarn test
yarn coverage
Expand Down
Binary file modified chains.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added integrations.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stabilitydao/stability",
"version": "0.20.2",
"version": "0.21.0",
"description": "Stability Integration Library",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand All @@ -22,6 +22,7 @@
"overview-full": "ts-node tools/overview-full.ts",
"postbuild": "shx cp src/*.tokenlist.json out/",
"draw-chains": "ts-node tools/draw-chains.ts",
"draw-integrations": "ts-node tools/draw-integrations.ts",
"issue": "ts-node tools/issue.ts",
"contests-maker": "ts-node tools/contests-maker.ts"
},
Expand Down
12 changes: 12 additions & 0 deletions src/bridges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const enum BridgeName {
// official, native multi
SUPERBRIDGE = "Superbridge",
BRIDGG = "Brid.gg",
HELA = "HeLa Bridge",

// official, native
ARBITRUM = "Arbitrum",
Expand Down Expand Up @@ -378,6 +379,17 @@ export const bridges: Bridge[] = [
ChainName.SCROLL,
],
},
{
name: BridgeName.HELA,
dapp: "https://bridge.helachain.com/",
img: `chains/${chains["8668"].img}`,
chains: [
ChainName.ETHEREUM,
ChainName.BSC,
ChainName.POLYGON,
ChainName.HELA,
],
},
];

export const getChainBridges = (chainName: ChainName): Bridge[] => {
Expand Down
7 changes: 7 additions & 0 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const enum ChainName {
XPLA = "Xpla",
BEVM = "BEVM",
DYMENSION = "Dymension",
HELA = "Hela",
}

export const chains: { [chainId: string]: Chain } = {
Expand Down Expand Up @@ -519,6 +520,12 @@ export const chains: { [chainId: string]: Chain } = {
status: ChainStatus.NOT_SUPPORTED,
img: "skale-europa.png",
},
"8668": {
name: ChainName.HELA,
chainId: 8668,
status: ChainStatus.NOT_SUPPORTED,
img: "hela.png",
},
};

export const chainStatusInfo: { [status in ChainStatus]: ChainStatusInfo } = {
Expand Down
84 changes: 76 additions & 8 deletions src/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,69 @@ export type DeFiProtocol = {
};

export const enum IntegrationStatus {
LIVE = "Live",
IN_USE = "In use",
BEING_DEPLOYED = "Being deployed",
DEVELOPMENT = "Development",
AWAITING = "Awaiting", // awaiting development
POSSIBLE = "Possible",
PROPOSED = "Proposed",
LIVE = "LIVE",
IN_USE = "IN_USE",
BEING_DEPLOYED = "BEING_DEPLOYED",
DEVELOPMENT = "DEVELOPMENT",
AWAITING = "AWAITING", // awaiting development
POSSIBLE = "POSSIBLE",
PROPOSED = "PROPOSED",
}

export type ProtocolStatusInfo = {
title: string;
description: string;
color: string;
bgColor: string;
};

export const protocolStatusInfo: {
[status in IntegrationStatus]: ProtocolStatusInfo;
} = {
[IntegrationStatus.LIVE]: {
title: "Live",
description: "Integration is live",
color: "#4ade80", // green-400
bgColor: "#00521f",
},
[IntegrationStatus.IN_USE]: {
title: "In use",
description: "Protocol in use by other integration",
color: "#59f5ff",
bgColor: "#215d60",
},
[IntegrationStatus.BEING_DEPLOYED]: {
title: "Being deployed",
description: "Integration is being deployed",
color: "#a78bfa", // violet-400
bgColor: "#55009d",
},
[IntegrationStatus.DEVELOPMENT]: {
title: "Development",
description: "Integration is under development",
color: "#60a5fa", // blue-400
bgColor: "#1d3f6c",
},
[IntegrationStatus.AWAITING]: {
title: "Awaiting development",
description: "We awaiting developer to solve integration issue",
color: "#fef08a", // yellow-200
bgColor: "#796e00",
},
[IntegrationStatus.POSSIBLE]: {
title: "Possible",
description: "Protocols for integration are live at supported chain",
color: "#ff4646",
bgColor: "#7c0000",
},
[IntegrationStatus.PROPOSED]: {
title: "Proposed",
description: "There are proposed strategies to integrate protocol",
color: "#eeeeee",
bgColor: "#2c2c2c",
},
};

export enum DefiCategory {
AMM = "AMM",
ALM = "ALM",
Expand Down Expand Up @@ -730,7 +784,7 @@ export const integrations: { [org: string]: DeFiOrganization } = {
},
aura: {
name: "Aura",
img: "aura.svg",
img: "aura1.png",
website: "https://aura.finance",
protocols: {
aura: {
Expand Down Expand Up @@ -1139,6 +1193,20 @@ export const integrations: { [org: string]: DeFiOrganization } = {
github: "Meta-DesynLab",
defiLlama: "desyn-liquid-strategy",
},
cytoswap: {
name: "Cytoswap",
img: "Cytoswap.svg",
website: "https://cytoswap.com/",
protocols: {
cytoswap: {
name: "Cytoswap",
category: DefiCategory.AMM,
chains: [ChainName.HELA],
},
},
github: "Meta-DesynLab",
defiLlama: "cytoswap",
},
};

export const getIntegrationStatus = (p: DeFiProtocol): IntegrationStatus => {
Expand Down
Loading
Loading