Skip to content

Commit

Permalink
Merge pull request #27 from stabilitydao/dev
Browse files Browse the repository at this point in the history
0.13.7
  • Loading branch information
a17 authored Sep 22, 2024
2 parents b5a5858 + dacc09e commit 7ed589f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stabilitydao/stability",
"version": "0.13.6",
"version": "0.13.7",
"description": "Stability Integration Library",
"main": "out/index.js",
"types": "out/index.d.ts",
Expand Down
20 changes: 17 additions & 3 deletions src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type Chain = {
name: ChainName,
chainId: number | string,
status: ChainStatus,
img?: string,
img: string,
multisig?: `0x${string}`,
chainLibGithubId?: number,
}
Expand Down Expand Up @@ -55,11 +55,11 @@ export const enum ChainName {
TELOS = 'Telos EVM',
ZETA = 'ZetaChain',
MERLIN = 'Merlin',
SKALE_EUROPA = 'SKALE Europa Hub',
SKALE_EUROPA = 'SKALE Europa',
SEI = 'Sei',
ARBITRUM_NOVA = 'Arbitrum Nova',
BITTORRENT = 'BitTorrent Chain',
CORE = 'Core Blockchain',
CORE = 'Core',
FILECOIN = 'Filecoin',
FUSE = 'Fuse',
HAQQ = 'Haqq',
Expand Down Expand Up @@ -133,11 +133,13 @@ export const chains: { [chainId: string]: Chain } = {
name: ChainName.MANTA,
chainId: 169,
status: ChainStatus.NOT_SUPPORTED,
img: 'manta.png',
},
"196": {
name: ChainName.X_LAYER,
chainId: 196,
status: ChainStatus.NOT_SUPPORTED,
img: 'x-layer.webp',
},
"199": {
name: ChainName.BITTORRENT,
Expand All @@ -149,26 +151,31 @@ export const chains: { [chainId: string]: Chain } = {
name: ChainName.BLAST,
chainId: 238,
status: ChainStatus.NOT_SUPPORTED,
img: 'blast.png',
},
"250": {
name: ChainName.FANTOM,
chainId: 250,
status: ChainStatus.NOT_SUPPORTED,
img: 'fantom.png',
},
"252": {
name: ChainName.FRAXTAL,
chainId: 252,
status: ChainStatus.NOT_SUPPORTED,
img: 'fraxtal.webp',
},
"255": {
name: ChainName.KROMA,
chainId: 255,
status: ChainStatus.NOT_SUPPORTED,
img: 'kroma.png',
},
"288": {
name: ChainName.BOBA,
chainId: 288,
status: ChainStatus.NOT_SUPPORTED,
img: 'boba.svg',
},
"295": {
name: ChainName.HEDERA,
Expand All @@ -180,11 +187,13 @@ export const chains: { [chainId: string]: Chain } = {
name: ChainName.FILECOIN,
chainId: 314,
status: ChainStatus.NOT_SUPPORTED,
img: 'filecoin.png',
},
"324": {
name: ChainName.ZKSYNC,
chainId: 324,
status: ChainStatus.NOT_SUPPORTED,
img: 'zksync.png',
},
"570": {
name: ChainName.ROLLUX,
Expand All @@ -196,6 +205,7 @@ export const chains: { [chainId: string]: Chain } = {
name: ChainName.METIS,
chainId: 1088,
status: ChainStatus.NOT_SUPPORTED,
img: 'metis.png',
},
"1101": {
name: ChainName.POLYGON_ZKEVM,
Expand All @@ -219,11 +229,13 @@ export const chains: { [chainId: string]: Chain } = {
name: ChainName.MOONBEAM,
chainId: 1284,
status: ChainStatus.NOT_SUPPORTED,
img: 'moonbeam.png',
},
"1285": {
name: ChainName.MOONRIVER,
chainId: 1285,
status: ChainStatus.NOT_SUPPORTED,
img: 'moonriver.webp',
},
"1329": {
name: ChainName.SEI,
Expand All @@ -241,6 +253,7 @@ export const chains: { [chainId: string]: Chain } = {
name: ChainName.KAVA,
chainId: 2222,
status: ChainStatus.NOT_SUPPORTED,
img: 'kava.png',
},
"3776": {
name: ChainName.ASTAR_ZKEVM,
Expand Down Expand Up @@ -302,6 +315,7 @@ export const chains: { [chainId: string]: Chain } = {
name: ChainName.MODE,
chainId: 34443,
status: ChainStatus.NOT_SUPPORTED,
img: 'mode.png',
},
"42161": {
name: ChainName.ARBITRUM,
Expand Down
6 changes: 1 addition & 5 deletions tools/overview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,17 @@ for (const defiOrgCode of Object.keys(integrations)) {
protocolsTotal += Object.keys(integrations[defiOrgCode].protocols).length
}
let multisigsTotal = 0
let chainImgs = 0
for (const chain of Object.keys(chains)) {
if (chains[chain].multisig) {
multisigsTotal++
}
if (chains[chain].img) {
chainImgs++
}
}

console.log(`## Stability Integration Library v${version}`)
console.log(``)
console.log(`Deployments: ${Object.keys(deployments).length} (${getSupportedChainNames().join(', ')})`)
console.log(`Strategies: ${Object.keys(strategies).length}. Live: ${strategiesTotal.LIVE}, deploying: ${strategiesTotal.DEPLOYMENT}, development: ${strategiesTotal.DEVELOPMENT}, awaiting: ${strategiesTotal.AWAITING}, blocked: ${strategiesTotal.BLOCKED}, possible: ${strategiesTotal.POSSIBLE}, proposal: ${strategiesTotal.PROPOSAL}.`)
console.log(`Chains: ${Object.keys(chains).length}. ChainLib: ${networkTotal.AWAITING_DEPLOYMENT + networkTotal.SUPPORTED} available, ${networkTotal.CHAINLIB_DEVELOPMENT} development, ${networkTotal.AWAITING_DEVELOPER} awaiting dev. ${networkTotal.AWAITING_ISSUE_CREATION} awaiting creation. Multisigs: ${multisigsTotal}. Images: ${chainImgs}.`)
console.log(`Chains: ${Object.keys(chains).length}. ChainLib: ${networkTotal.AWAITING_DEPLOYMENT + networkTotal.SUPPORTED} available, ${networkTotal.CHAINLIB_DEVELOPMENT} development, ${networkTotal.AWAITING_DEVELOPER} awaiting dev. ${networkTotal.AWAITING_ISSUE_CREATION} awaiting creation. Multisigs: ${multisigsTotal}.`)
console.log(`DeFi organizations: ${Object.keys(integrations).length}. Protocols: ${protocolsTotal}.`)
console.log(`Assets: ${assets.length}`)
console.log(`Tokenlist ${tokenlist.version.major}.${tokenlist.version.minor}.${tokenlist.version.patch}: ${tokenlist.tokens.length} tokens for ${tokenlist.tokens.map(t => t.chainId).filter((value, index, array) => array.indexOf(value) === index).length} networks.`)
Expand Down

0 comments on commit 7ed589f

Please sign in to comment.