@stabilitydao/stability 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ name: Publish Package to GitHub Packages
2
+ on:
3
+ release:
4
+ types: [published]
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ permissions:
9
+ contents: read
10
+ packages: write
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ # Setup .npmrc file to publish to npm
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: '20.x'
17
+ registry-url: 'https://npm.pkg.github.com'
18
+ - run: yarn
19
+ - run: yarn build
20
+ - run: yarn publish
21
+ env:
22
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,19 @@
1
+ name: Publish Package to npmjs
2
+ on:
3
+ release:
4
+ types: [published]
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v4
10
+ # Setup .npmrc file to publish to npm
11
+ - uses: actions/setup-node@v4
12
+ with:
13
+ node-version: '20.x'
14
+ registry-url: 'https://registry.npmjs.org'
15
+ - run: yarn
16
+ - run: yarn build
17
+ - run: yarn publish --access public
18
+ env:
19
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Stability
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # Stability Integration Pack
2
+
3
+ This is library for integrating the platform into Node.js applications.
4
+
5
+ ## Usage
6
+
7
+ ### Deployments
8
+
9
+ Core contracts deployment addresses.
10
+
11
+ ```typescript
12
+ import {deployments} from "@stabilitydao/stability";
13
+ console.log('Platform address on Polygon', deployments["137"].platform)
14
+ ```
15
+
16
+ ### Strategies
17
+
18
+ Comprehensive information about platform strategies for managing DeFi assets. Includes developed strategies and those currently in development or awaiting development.
19
+
20
+ ### Networks
21
+
22
+ Blockchains known to the platform and their integration statuses.
23
+
24
+ ### Integrations
25
+
26
+ DeFi organizations, protocols, their integration statuses, usage and other information.
27
+
28
+ ## Develop
29
+
30
+ ```shell
31
+ yarn overview
32
+ ```
package/out/index.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntegrationStatus = exports.DefiCategory = exports.StrategyState = exports.StrategyShortId = exports.integrations = exports.strategies = exports.networks = exports.deployments = void 0;
4
+ const deployments_1 = require("./deployments");
5
+ Object.defineProperty(exports, "deployments", { enumerable: true, get: function () { return deployments_1.deployments; } });
6
+ const networks_1 = require("./networks");
7
+ Object.defineProperty(exports, "networks", { enumerable: true, get: function () { return networks_1.networks; } });
8
+ const strategies_1 = require("./strategies");
9
+ Object.defineProperty(exports, "strategies", { enumerable: true, get: function () { return strategies_1.strategies; } });
10
+ Object.defineProperty(exports, "StrategyShortId", { enumerable: true, get: function () { return strategies_1.StrategyShortId; } });
11
+ Object.defineProperty(exports, "StrategyState", { enumerable: true, get: function () { return strategies_1.StrategyState; } });
12
+ const integrations_1 = require("./integrations");
13
+ Object.defineProperty(exports, "integrations", { enumerable: true, get: function () { return integrations_1.integrations; } });
14
+ Object.defineProperty(exports, "DefiCategory", { enumerable: true, get: function () { return integrations_1.DefiCategory; } });
15
+ Object.defineProperty(exports, "IntegrationStatus", { enumerable: true, get: function () { return integrations_1.IntegrationStatus; } });
16
+ //# sourceMappingURL=index.js.map
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@stabilitydao/stability",
3
+ "version": "0.1.2",
4
+ "description": "Stability Integration Pack",
5
+ "main": "out/index.js",
6
+ "repository": "https://github.com/stabilitydao/stability.git",
7
+ "author": "stabilitydao",
8
+ "license": "MIT",
9
+ "private": false,
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "overview": "ts-node tools/overview.ts"
13
+ },
14
+ "devDependencies": {
15
+ "ts-node": "^10.9.2",
16
+ "typescript": "^5.4.5"
17
+ }
18
+ }
@@ -0,0 +1,23 @@
1
+ export type CoreContracts = {
2
+ platform: `0x${string}`,
3
+ factory: `0x${string}`,
4
+ priceReader: `0x${string}`,
5
+ swapper: `0x${string}`,
6
+ hardWorker: `0x${string}`,
7
+ vaultManager: `0x${string}`,
8
+ strategyLogic: `0x${string}`,
9
+ zap: `0x${string}`,
10
+ }
11
+
12
+ export const deployments: {[chainId:string]:CoreContracts} = {
13
+ "137": {
14
+ platform: "0xb2a0737ef27b5Cc474D24c779af612159b1c3e60",
15
+ factory: "0xa14EaAE76890595B3C7ea308dAEBB93863480EAD",
16
+ priceReader: "0xcCef9C4459d73F9A997ff50AC34364555A3274Aa",
17
+ swapper: "0xD84E894A6646C7407b8CD1273Ea1EFc53A423762",
18
+ hardWorker: "0x6DBFfd2846d4a556349a3bc53297700d89a94034",
19
+ vaultManager: "0x6008b366058B42792A2497972A3312274DC5e1A8",
20
+ strategyLogic: "0xD16b60E39284190D9201f0eaD42c4674C310e905",
21
+ zap: "0xEA3fABD8cC14705d7E66D1833a547D31882aEA9b",
22
+ },
23
+ }
package/src/index.ts ADDED
@@ -0,0 +1,21 @@
1
+ import {deployments, CoreContracts} from "./deployments";
2
+ import {networks, NetworkId, Network} from "./networks";
3
+ import {strategies, StrategyShortId, StrategyState, Strategy} from "./strategies";
4
+ import {integrations, DefiCategory, DeFiOrganization, DeFiProtocol, IntegrationStatus} from "./integrations";
5
+
6
+ export {
7
+ deployments,
8
+ networks,
9
+ strategies,
10
+ integrations,
11
+ CoreContracts,
12
+ Network,
13
+ NetworkId,
14
+ Strategy,
15
+ StrategyShortId,
16
+ StrategyState,
17
+ DefiCategory,
18
+ DeFiOrganization,
19
+ DeFiProtocol,
20
+ IntegrationStatus,
21
+ }
@@ -0,0 +1,576 @@
1
+ import {StrategyShortId} from "./strategies";
2
+ import {NetworkId} from "./networks";
3
+
4
+ export type DeFiOrganization = {
5
+ status: IntegrationStatus
6
+ name: string
7
+ website: string
8
+ protocols: { [protocolId: string]: DeFiProtocol }
9
+ defiLlama: string
10
+ github?: string
11
+ }
12
+
13
+ export type DeFiProtocol = {
14
+ name: string
15
+ category: DefiCategory
16
+ networks: NetworkId[],
17
+ strategies?: StrategyShortId[]
18
+ adapters?: string[]
19
+ coreContracts?: string[]
20
+ }
21
+
22
+ export enum IntegrationStatus {
23
+ LIVE = 'Live',
24
+ USE_VIA_LIVE = 'Use via live',
25
+ AWAITING_DEPLOYMENT = 'Awaiting Deployment',
26
+ DEVELOPMENT = 'Development',
27
+ ROADMAP = 'In Roadmap',
28
+ POSSIBLE = 'Possible',
29
+ PROPOSED = 'Proposed integration',
30
+ DECLINED = 'Declined',
31
+ }
32
+
33
+ export enum DefiCategory {
34
+ AMM = 'AMM',
35
+ ALM = 'ALM',
36
+ LENDING = 'Lending',
37
+ DEX_AGG = 'DeX agg',
38
+ YIELD_AGG = 'Yield agg',
39
+ VE_AGG = 'Boost VE-agg',
40
+ ORACLE = 'Oracle',
41
+ REWARDING = 'Rewarding',
42
+ VAULTS_ERC4626 = 'Vaults ERC-4626',
43
+ BRIDGE = 'Bridge',
44
+ LST = 'Liquid staking',
45
+ }
46
+
47
+ export const integrations: { [org: string]: DeFiOrganization } = {
48
+ // oracle
49
+ chainlink: {
50
+ status: IntegrationStatus.LIVE,
51
+ name: 'ChainLink',
52
+ website: 'https://chain.link',
53
+ protocols: {
54
+ chainlink: {
55
+ name: 'Chainlink',
56
+ category: DefiCategory.ORACLE,
57
+ networks: [
58
+ NetworkId.ETHEREUM,
59
+ NetworkId.BASE,
60
+ NetworkId.ARBITRUM,
61
+ NetworkId.POLYGON,
62
+ NetworkId.AVALANCHE,
63
+ NetworkId.BSC,
64
+ NetworkId.CELO,
65
+ NetworkId.FANTOM,
66
+ NetworkId.LINEA,
67
+ NetworkId.GNOSIS,
68
+ NetworkId.OPTIMISM,
69
+ NetworkId.MOONBEAM,
70
+ NetworkId.MOONRIVER,
71
+ NetworkId.POLYGON_ZKEVM,
72
+ NetworkId.ZKSYNC,
73
+ NetworkId.METIS,
74
+ NetworkId.SCROLL,
75
+ ],
76
+ coreContracts: ['PriceReader'],
77
+ adapters: ['ChainLinkAdapter',],
78
+ },
79
+ },
80
+ defiLlama: 'chainlink',
81
+ github: 'smartcontractkit',
82
+ },
83
+ // Rewarding
84
+ angle: {
85
+ status: IntegrationStatus.LIVE,
86
+ name: 'Angle',
87
+ website: 'https://angle.money',
88
+ protocols: {
89
+ merkl: {
90
+ name: 'Merkl',
91
+ category: DefiCategory.REWARDING,
92
+ // networks with active rewards
93
+ networks: [
94
+ NetworkId.ETHEREUM,
95
+ NetworkId.BASE,
96
+ NetworkId.ARBITRUM,
97
+ NetworkId.POLYGON,
98
+ NetworkId.OPTIMISM,
99
+ NetworkId.POLYGON_ZKEVM,
100
+ NetworkId.SCROLL,
101
+ NetworkId.LINEA,
102
+ NetworkId.BLAST,
103
+ NetworkId.IMMUTABLE_ZKEVM,
104
+ ],
105
+ strategies: [StrategyShortId.QSMF, StrategyShortId.DQMF, StrategyShortId.GQMF, StrategyShortId.IRMF, StrategyShortId.GRMF],
106
+ },
107
+ },
108
+ defiLlama: 'angle',
109
+ github: 'AngleProtocol',
110
+ },
111
+ // DeX agg
112
+ oneInch: {
113
+ status: IntegrationStatus.LIVE,
114
+ name: '1inch',
115
+ website: 'https://1inch.io',
116
+ protocols: {
117
+ oneInch: {
118
+ name: '1inch',
119
+ category: DefiCategory.DEX_AGG,
120
+ networks: [
121
+ NetworkId.ETHEREUM,
122
+ NetworkId.BASE,
123
+ NetworkId.ARBITRUM,
124
+ NetworkId.POLYGON,
125
+ NetworkId.OPTIMISM,
126
+ NetworkId.ZKSYNC,
127
+ NetworkId.BSC,
128
+ NetworkId.GNOSIS,
129
+ NetworkId.AVALANCHE,
130
+ NetworkId.FANTOM,
131
+ NetworkId.KLAYTN,
132
+ NetworkId.AURORA,
133
+ ],
134
+ coreContracts: ['Zap'],
135
+ strategies: [StrategyShortId.AS1BLS,],
136
+ },
137
+ },
138
+ defiLlama: '1inch-network',
139
+ github: '1inch',
140
+ },
141
+ // DeX
142
+ uniswap: {
143
+ status: IntegrationStatus.LIVE,
144
+ name: "Uniswap",
145
+ website: 'https://uniswap.org',
146
+ protocols: {
147
+ uniswapV3: {
148
+ name: 'Uniswap V3',
149
+ category: DefiCategory.AMM,
150
+ networks: [
151
+ NetworkId.ETHEREUM,
152
+ NetworkId.BASE,
153
+ NetworkId.ARBITRUM,
154
+ NetworkId.POLYGON,
155
+ NetworkId.OPTIMISM,
156
+ NetworkId.BSC,
157
+ NetworkId.AVALANCHE,
158
+ NetworkId.CELO,
159
+ NetworkId.BLAST,
160
+ ],
161
+ adapters: ['UniswapV3Adapter'],
162
+ },
163
+ },
164
+ defiLlama: 'uniswap',
165
+ github: 'Uniswap,,'
166
+ },
167
+ quickswap: {
168
+ status: IntegrationStatus.LIVE,
169
+ name: 'QuickSwap',
170
+ website: 'https://quickswap.exchange',
171
+ protocols: {
172
+ quickswapV3: {
173
+ name: 'QuickSwap V3',
174
+ category: DefiCategory.AMM,
175
+ networks: [
176
+ NetworkId.POLYGON,
177
+ NetworkId.POLYGON_ZKEVM,
178
+ NetworkId.MANTA,
179
+ NetworkId.IMMUTABLE_ZKEVM,
180
+ NetworkId.ASTAR_ZKEVM,
181
+ NetworkId.DOGECHAIN,
182
+ NetworkId.X_LAYER,
183
+ NetworkId.KAVA,
184
+ ],
185
+ strategies: [StrategyShortId.QSMF, StrategyShortId.DQMF, StrategyShortId.GQMF],
186
+ adapters: ['AlgebraAdapter',],
187
+ },
188
+ },
189
+ defiLlama: 'quickswap',
190
+ github: 'QuickSwap',
191
+ },
192
+ retro: {
193
+ status: IntegrationStatus.LIVE,
194
+ name: 'Retro',
195
+ website: 'https://retro.finance',
196
+ protocols: {
197
+ retro: {
198
+ name: 'Retro',
199
+ category: DefiCategory.AMM,
200
+ networks: [NetworkId.POLYGON,],
201
+ strategies: [StrategyShortId.IRMF, StrategyShortId.GRMF],
202
+ adapters: ['UniswapV3Adapter',],
203
+ },
204
+ },
205
+ defiLlama: 'retro',
206
+ },
207
+ curve: {
208
+ status: IntegrationStatus.LIVE,
209
+ name: 'Curve',
210
+ website: 'https://curve.fi',
211
+ protocols: {
212
+ stableSwapNg: {
213
+ name: 'StableSwapNG',
214
+ category: DefiCategory.AMM,
215
+ networks: [
216
+ NetworkId.ETHEREUM,
217
+ NetworkId.BASE,
218
+ NetworkId.ARBITRUM,
219
+ NetworkId.POLYGON,
220
+ NetworkId.AVALANCHE,
221
+ NetworkId.AURORA,
222
+ NetworkId.BSC,
223
+ NetworkId.CELO,
224
+ NetworkId.FANTOM,
225
+ NetworkId.GNOSIS,
226
+ NetworkId.KAVA,
227
+ NetworkId.MOONBEAM,
228
+ NetworkId.OPTIMISM,
229
+ NetworkId.X_LAYER,
230
+ NetworkId.FRAXTAL,
231
+ ],
232
+ strategies: [StrategyShortId.CCF],
233
+ adapters: ['CurveAdapter',],
234
+ },
235
+ },
236
+ defiLlama: 'curve-finance',
237
+ github: 'curvefi',
238
+ },
239
+ gyroscope: {
240
+ status: IntegrationStatus.POSSIBLE,
241
+ name: 'Gyroscope',
242
+ website: 'https://gyro.finance',
243
+ protocols: {
244
+ eclp: {
245
+ name: 'E-CLP',
246
+ category: DefiCategory.AMM,
247
+ networks: [
248
+ NetworkId.ETHEREUM,
249
+ NetworkId.BASE,
250
+ NetworkId.ARBITRUM,
251
+ NetworkId.POLYGON,
252
+ NetworkId.OPTIMISM,
253
+ NetworkId.GNOSIS,
254
+ NetworkId.POLYGON_ZKEVM,
255
+ ],
256
+ },
257
+ },
258
+ defiLlama: 'gyroscope-protocol',
259
+ github: 'gyrostable',
260
+ },
261
+ // ALM
262
+ gamma: {
263
+ status: IntegrationStatus.LIVE,
264
+ name: 'Gamma',
265
+ website: 'https://gamma.xyz',
266
+ protocols: {
267
+ defiEdge: {
268
+ name: 'Gamma',
269
+ category: DefiCategory.ALM,
270
+ networks: [
271
+ NetworkId.ETHEREUM,
272
+ NetworkId.BASE,
273
+ NetworkId.ARBITRUM,
274
+ NetworkId.POLYGON,
275
+ NetworkId.POLYGON_ZKEVM,
276
+ NetworkId.MANTA,
277
+ NetworkId.IMMUTABLE_ZKEVM,
278
+ NetworkId.ASTAR_ZKEVM,
279
+ NetworkId.BSC,
280
+ NetworkId.MANTLE,
281
+ NetworkId.LINEA,
282
+ NetworkId.MOONBEAM,
283
+ NetworkId.ROLLUX,
284
+ NetworkId.AVALANCHE,
285
+ NetworkId.GNOSIS,
286
+ NetworkId.METIS,
287
+ NetworkId.BLAST,
288
+ ],
289
+ strategies: [StrategyShortId.GQMF, StrategyShortId.GRMF],
290
+ },
291
+ },
292
+ defiLlama: 'gamma',
293
+ github: 'GammaStrategies',
294
+ },
295
+ defiEdge: {
296
+ status: IntegrationStatus.LIVE,
297
+ name: 'DefiEdge',
298
+ website: 'https://www.defiedge.io',
299
+ protocols: {
300
+ defiEdge: {
301
+ name: 'DefiEdge',
302
+ category: DefiCategory.ALM,
303
+ networks: [
304
+ NetworkId.ETHEREUM,
305
+ NetworkId.BASE,
306
+ NetworkId.ARBITRUM,
307
+ NetworkId.POLYGON,
308
+ NetworkId.AVALANCHE,
309
+ NetworkId.BSC,
310
+ NetworkId.OPTIMISM,
311
+ NetworkId.LINEA,
312
+ NetworkId.X_LAYER,
313
+ NetworkId.POLYGON_ZKEVM,
314
+ NetworkId.ZKSYNC,
315
+ ],
316
+ strategies: [StrategyShortId.DQMF],
317
+ },
318
+ },
319
+ defiLlama: 'defiedge',
320
+ github: 'defiedge',
321
+ },
322
+ ichi: {
323
+ status: IntegrationStatus.LIVE,
324
+ name: 'Ichi',
325
+ website: 'https://www.ichi.org',
326
+ protocols: {
327
+ ichi: {
328
+ name: 'Ichi',
329
+ category: DefiCategory.ALM,
330
+ networks: [
331
+ NetworkId.ETHEREUM,
332
+ NetworkId.ARBITRUM,
333
+ NetworkId.POLYGON,
334
+ NetworkId.BSC,
335
+ NetworkId.CELO,
336
+ ],
337
+ strategies: [StrategyShortId.IQMF, StrategyShortId.IRMF],
338
+ },
339
+ },
340
+ defiLlama: 'ichi',
341
+ github: 'ichifarm',
342
+ },
343
+ steer: {
344
+ status: IntegrationStatus.DEVELOPMENT,
345
+ name: 'Steer',
346
+ website: 'https://steer.finance',
347
+ protocols: {
348
+ steer: {
349
+ name: 'Steer',
350
+ category: DefiCategory.ALM,
351
+ networks: [
352
+ NetworkId.BASE,
353
+ NetworkId.ARBITRUM,
354
+ NetworkId.POLYGON,
355
+ NetworkId.OPTIMISM,
356
+ NetworkId.AVALANCHE,
357
+ NetworkId.KAVA,
358
+ NetworkId.BSC,
359
+ NetworkId.CELO,
360
+ NetworkId.POLYGON_ZKEVM,
361
+ NetworkId.METIS,
362
+ NetworkId.LINEA,
363
+ NetworkId.SCROLL,
364
+ NetworkId.FANTOM,
365
+ NetworkId.MANTLE,
366
+ NetworkId.MANTA,
367
+ NetworkId.ASTAR_ZKEVM,
368
+ NetworkId.BLAST,
369
+ NetworkId.X_LAYER,
370
+ NetworkId.EVMOS,
371
+ NetworkId.MODE,
372
+ NetworkId.TELOS,
373
+ ],
374
+ strategies: [StrategyShortId.SQMF],
375
+ },
376
+ },
377
+ defiLlama: 'steer-protocol',
378
+ github: 'steerprotocol',
379
+ },
380
+ charm: {
381
+ status: IntegrationStatus.ROADMAP,
382
+ name: 'Charm',
383
+ website: 'https://www.charm.fi',
384
+ protocols: {
385
+ alphaVaults: {
386
+ name: 'Charm Alpha Vaults',
387
+ category: DefiCategory.ALM,
388
+ networks: [
389
+ NetworkId.ETHEREUM,
390
+ NetworkId.ARBITRUM,
391
+ NetworkId.OPTIMISM,
392
+ NetworkId.BASE,
393
+ NetworkId.POLYGON,
394
+ NetworkId.BLAST,
395
+ NetworkId.SCROLL,
396
+ NetworkId.LINEA,
397
+ ],
398
+ strategies: [StrategyShortId.CUMF],
399
+ },
400
+ },
401
+ defiLlama: 'charm-finance',
402
+ github: 'charmfinance',
403
+ },
404
+ // Lending
405
+ compound: {
406
+ status: IntegrationStatus.LIVE,
407
+ name: 'Compound',
408
+ website: 'https://compound.finance',
409
+ protocols: {
410
+ compoundV3: {
411
+ name: 'Compound 3',
412
+ category: DefiCategory.LENDING,
413
+ networks: [
414
+ NetworkId.ETHEREUM,
415
+ NetworkId.BASE,
416
+ NetworkId.ARBITRUM,
417
+ NetworkId.POLYGON,
418
+ NetworkId.OPTIMISM,
419
+ NetworkId.SCROLL,
420
+ ],
421
+ strategies: [StrategyShortId.CF],
422
+ },
423
+ },
424
+ defiLlama: 'compound-finance',
425
+ github: 'compound-finance',
426
+ },
427
+ aave: {
428
+ status: IntegrationStatus.USE_VIA_LIVE,
429
+ name: 'Aave',
430
+ website: 'https://aave.com',
431
+ protocols: {
432
+ aaveV3: {
433
+ name: 'Aave V3',
434
+ category: DefiCategory.LENDING,
435
+ networks: [
436
+ NetworkId.ETHEREUM,
437
+ NetworkId.BASE,
438
+ NetworkId.ARBITRUM,
439
+ NetworkId.POLYGON,
440
+ NetworkId.AVALANCHE,
441
+ NetworkId.FANTOM,
442
+ NetworkId.OPTIMISM,
443
+ NetworkId.METIS,
444
+ NetworkId.GNOSIS,
445
+ NetworkId.BSC,
446
+ NetworkId.SCROLL,
447
+ ],
448
+ strategies: [StrategyShortId.Y],
449
+ },
450
+ },
451
+ defiLlama: 'aave',
452
+ github: 'aave',
453
+ },
454
+ // Boost aggregator
455
+ convex: {
456
+ status: IntegrationStatus.LIVE,
457
+ name: 'Convex',
458
+ website: 'https://www.convexfinance.com',
459
+ protocols: {
460
+ convex: {
461
+ name: 'Convex',
462
+ category: DefiCategory.VE_AGG,
463
+ networks: [NetworkId.ETHEREUM, NetworkId.ARBITRUM, NetworkId.POLYGON,],
464
+ strategies: [StrategyShortId.CCF],
465
+ },
466
+ },
467
+ defiLlama: 'convex-finance',
468
+ github: 'convex-eth',
469
+ },
470
+ aura: {
471
+ status: IntegrationStatus.POSSIBLE,
472
+ name: 'Aura',
473
+ website: 'https://aura.finance',
474
+ protocols: {
475
+ aura: {
476
+ name: 'Aura',
477
+ category: DefiCategory.VE_AGG,
478
+ networks: [NetworkId.ETHEREUM, NetworkId.ARBITRUM, NetworkId.POLYGON,],
479
+ },
480
+ },
481
+ defiLlama: 'aura',
482
+ github: 'aurafinance',
483
+ },
484
+ // ERC-4626
485
+ yearn: {
486
+ status: IntegrationStatus.AWAITING_DEPLOYMENT,
487
+ name: 'Yearn',
488
+ website: 'https://yearn.fi',
489
+ protocols: {
490
+ yearnV3: {
491
+ name: 'Yearn V3',
492
+ category: DefiCategory.VAULTS_ERC4626,
493
+ networks: [NetworkId.ETHEREUM, NetworkId.ARBITRUM, NetworkId.POLYGON,],
494
+ strategies: [StrategyShortId.Y],
495
+ },
496
+ },
497
+ defiLlama: 'yearn-finance',
498
+ github: 'yearn',
499
+ },
500
+ tetu: {
501
+ status: IntegrationStatus.POSSIBLE,
502
+ name: 'Tetu',
503
+ website: 'https://tetu.io',
504
+ protocols: {
505
+ tetuV2: {
506
+ name: 'Tetu V2',
507
+ category: DefiCategory.VAULTS_ERC4626,
508
+ networks: [NetworkId.BASE, NetworkId.POLYGON,],
509
+ },
510
+ },
511
+ defiLlama: 'tetu',
512
+ github: 'tetu-io',
513
+ },
514
+ // Index
515
+ dhedge: {
516
+ status: IntegrationStatus.POSSIBLE,
517
+ name: 'dHEDGE',
518
+ website: 'https://dhedge.org',
519
+ protocols: {
520
+ dhedge: {
521
+ name: 'dHEDGE',
522
+ category: DefiCategory.YIELD_AGG,
523
+ networks: [NetworkId.ETHEREUM, NetworkId.BASE, NetworkId.ARBITRUM, NetworkId.POLYGON,],
524
+ },
525
+ },
526
+ defiLlama: 'dhedge',
527
+ github: 'dhedge',
528
+ },
529
+ // Bridge (liquidity transport etc)
530
+ stargate: {
531
+ status: IntegrationStatus.USE_VIA_LIVE,
532
+ name: 'Stargate',
533
+ website: 'https://stargate.finance',
534
+ protocols: {
535
+ stargate: {
536
+ name: 'Stargate',
537
+ category: DefiCategory.BRIDGE,
538
+ networks: [NetworkId.ETHEREUM, NetworkId.BASE, NetworkId.ARBITRUM, NetworkId.POLYGON,],
539
+ strategies: [StrategyShortId.Y],
540
+ },
541
+ },
542
+ github: 'stargate-protocol',
543
+ defiLlama: 'stargate',
544
+ },
545
+ // Liquid staking
546
+ lido: {
547
+ status: IntegrationStatus.USE_VIA_LIVE,
548
+ name: 'Lido',
549
+ website: 'https://lido.fi',
550
+ protocols: {
551
+ lido: {
552
+ name: 'Lido Staked MATIC',
553
+ category: DefiCategory.LST,
554
+ networks: [NetworkId.ETHEREUM, NetworkId.POLYGON,],
555
+ strategies: [StrategyShortId.Y,],
556
+ },
557
+ },
558
+ github: 'lidofinance',
559
+ defiLlama: 'lido',
560
+ },
561
+ stader: {
562
+ status: IntegrationStatus.POSSIBLE,
563
+ name: 'Stader Labs',
564
+ website: 'https://www.staderlabs.com',
565
+ protocols: {
566
+ stader: {
567
+ name: 'Stader Liquid Staking',
568
+ category: DefiCategory.LST,
569
+ networks: [NetworkId.ETHEREUM, NetworkId.POLYGON,],
570
+ strategies: [StrategyShortId.AS1BLS,],
571
+ },
572
+ },
573
+ github: 'stader-labs',
574
+ defiLlama: 'stader',
575
+ },
576
+ };
@@ -0,0 +1,211 @@
1
+ import {IntegrationStatus} from "./integrations";
2
+
3
+ export type Network = {
4
+ id: NetworkId,
5
+ chainId: number|string,
6
+ status: IntegrationStatus,
7
+ }
8
+
9
+ export const enum NetworkId {
10
+ ETHEREUM = 'Ethereum',
11
+ ARBITRUM = 'Arbitrum One',
12
+ BASE = 'Base',
13
+ POLYGON = 'Polygon',
14
+ AVALANCHE = 'Avalanche C-Chain',
15
+ BSC = 'Binance Smart Chain',
16
+ CELO = 'Celo',
17
+ FANTOM = 'Fantom',
18
+ LINEA = 'Linea',
19
+ GNOSIS = 'Gnosis',
20
+ METIS = 'Metis Andromeda',
21
+ MOONBEAM = 'Moonbeam',
22
+ MOONRIVER = 'Moonriver',
23
+ OPTIMISM = 'Optimism',
24
+ POLYGON_ZKEVM = 'Polygon zkEVM',
25
+ IMMUTABLE_ZKEVM = 'Immutable zkEVM',
26
+ ASTAR_ZKEVM = 'Astar zkEVM',
27
+ SCROLL = 'Scroll',
28
+ ZKSYNC = 'zkSync',
29
+ BLAST = 'Blast',
30
+ MANTA = 'Manta Pacific',
31
+ MANTLE = 'Mantle',
32
+ MODE = 'Mode',
33
+ BOBA = 'Boba',
34
+ KLAYTN = 'Klaytn Cypress',
35
+ AURORA = 'Aurora',
36
+ DOGECHAIN = 'Dogechain',
37
+ X_LAYER = 'X Layer',
38
+ KAVA = 'Kava',
39
+ FRAXTAL = 'Fraxtal',
40
+ ROLLUX = 'Rollux',
41
+ EVMOS = 'Evmos',
42
+ TELOS = 'Telos EVM',
43
+ }
44
+
45
+ export const networks: {[chainId: string]: Network} = {
46
+ "1": {
47
+ id: NetworkId.ETHEREUM,
48
+ chainId: 1,
49
+ status: IntegrationStatus.PROPOSED,
50
+ },
51
+ "10": {
52
+ id: NetworkId.OPTIMISM,
53
+ chainId: 10,
54
+ status: IntegrationStatus.PROPOSED,
55
+ },
56
+ "40": {
57
+ id: NetworkId.TELOS,
58
+ chainId: 40,
59
+ status: IntegrationStatus.PROPOSED,
60
+ },
61
+ "56": {
62
+ id: NetworkId.BSC,
63
+ chainId: 56,
64
+ status: IntegrationStatus.PROPOSED,
65
+ },
66
+ "100": {
67
+ id: NetworkId.GNOSIS,
68
+ chainId: 100,
69
+ status: IntegrationStatus.PROPOSED,
70
+ },
71
+ "137": {
72
+ id: NetworkId.POLYGON,
73
+ chainId: 137,
74
+ status: IntegrationStatus.LIVE,
75
+ },
76
+ "169": {
77
+ id: NetworkId.MANTA,
78
+ chainId: 169,
79
+ status: IntegrationStatus.PROPOSED,
80
+ },
81
+ "196": {
82
+ id: NetworkId.X_LAYER,
83
+ chainId: 196,
84
+ status: IntegrationStatus.PROPOSED,
85
+ },
86
+ "238": {
87
+ id: NetworkId.BLAST,
88
+ chainId: 238,
89
+ status: IntegrationStatus.PROPOSED,
90
+ },
91
+ "250": {
92
+ id: NetworkId.FANTOM,
93
+ chainId: 250,
94
+ status: IntegrationStatus.PROPOSED,
95
+ },
96
+ "252": {
97
+ id: NetworkId.FRAXTAL,
98
+ chainId: 252,
99
+ status: IntegrationStatus.PROPOSED,
100
+ },
101
+ "288": {
102
+ id: NetworkId.BOBA,
103
+ chainId: 288,
104
+ status: IntegrationStatus.PROPOSED,
105
+ },
106
+ "324": {
107
+ id: NetworkId.ZKSYNC,
108
+ chainId: 324,
109
+ status: IntegrationStatus.PROPOSED,
110
+ },
111
+ "570": {
112
+ id: NetworkId.ROLLUX,
113
+ chainId: 570,
114
+ status: IntegrationStatus.PROPOSED,
115
+ },
116
+ "3776": {
117
+ id: NetworkId.ASTAR_ZKEVM,
118
+ chainId: 3776,
119
+ status: IntegrationStatus.PROPOSED,
120
+ },
121
+ "1088": {
122
+ id: NetworkId.METIS,
123
+ chainId: 1088,
124
+ status: IntegrationStatus.PROPOSED,
125
+ },
126
+ "1101": {
127
+ id: NetworkId.POLYGON_ZKEVM,
128
+ chainId: 1101,
129
+ status: IntegrationStatus.PROPOSED,
130
+ },
131
+ "1284": {
132
+ id: NetworkId.MOONBEAM,
133
+ chainId: 1284,
134
+ status: IntegrationStatus.PROPOSED,
135
+ },
136
+ "1285": {
137
+ id: NetworkId.MOONRIVER,
138
+ chainId: 1285,
139
+ status: IntegrationStatus.PROPOSED,
140
+ },
141
+ "2000": {
142
+ id: NetworkId.DOGECHAIN,
143
+ chainId: 2000,
144
+ status: IntegrationStatus.PROPOSED,
145
+ },
146
+ "2222": {
147
+ id: NetworkId.KAVA,
148
+ chainId: 2222,
149
+ status: IntegrationStatus.PROPOSED,
150
+ },
151
+ "5000": {
152
+ id: NetworkId.MANTLE,
153
+ chainId: 5000,
154
+ status: IntegrationStatus.PROPOSED,
155
+ },
156
+ "8217": {
157
+ id: NetworkId.KLAYTN,
158
+ chainId: 8217,
159
+ status: IntegrationStatus.PROPOSED,
160
+ },
161
+ "8453": {
162
+ id: NetworkId.BASE,
163
+ chainId: 8453,
164
+ status: IntegrationStatus.DEVELOPMENT,
165
+ },
166
+ "9001": {
167
+ id: NetworkId.EVMOS,
168
+ chainId: 9001,
169
+ status: IntegrationStatus.PROPOSED,
170
+ },
171
+ "13371": {
172
+ id: NetworkId.IMMUTABLE_ZKEVM,
173
+ chainId: 13371,
174
+ status: IntegrationStatus.PROPOSED,
175
+ },
176
+ "34443": {
177
+ id: NetworkId.MODE,
178
+ chainId: 34443,
179
+ status: IntegrationStatus.PROPOSED,
180
+ },
181
+ "42161": {
182
+ id: NetworkId.ARBITRUM,
183
+ chainId: 42161,
184
+ status: IntegrationStatus.ROADMAP,
185
+ },
186
+ "42220": {
187
+ id: NetworkId.CELO,
188
+ chainId: 42220,
189
+ status: IntegrationStatus.PROPOSED,
190
+ },
191
+ "43114": {
192
+ id: NetworkId.AVALANCHE,
193
+ chainId: 43114,
194
+ status: IntegrationStatus.PROPOSED,
195
+ },
196
+ "59144": {
197
+ id: NetworkId.LINEA,
198
+ chainId: 59144,
199
+ status: IntegrationStatus.PROPOSED,
200
+ },
201
+ "534352": {
202
+ id: NetworkId.SCROLL,
203
+ chainId: 534352,
204
+ status: IntegrationStatus.PROPOSED,
205
+ },
206
+ "1313161554": {
207
+ id: NetworkId.AURORA,
208
+ chainId: 1313161554,
209
+ status: IntegrationStatus.PROPOSED,
210
+ },
211
+ }
@@ -0,0 +1,175 @@
1
+ export type Strategy = {
2
+ id: string
3
+ shortId: StrategyShortId
4
+ state: StrategyState
5
+ contractGithubId: number
6
+ color: string
7
+ bgColor: string
8
+ }
9
+
10
+ export enum StrategyShortId {
11
+ QSMF = 'QSMF',
12
+ DQMF = 'DQMF',
13
+ IQMF = 'IQMF',
14
+ GQMF = 'GQMF',
15
+ IRMF = 'IRMF',
16
+ GRMF = 'GRMF',
17
+ CF = 'CF',
18
+ CCF = 'CCF',
19
+ Y = 'Y',
20
+ SQMF = 'SQMF',
21
+ RSBMF = 'RSBMF',
22
+ DRBMF = 'DRBMF',
23
+ IRBMF = 'IRBMF',
24
+ GAF = 'GAF',
25
+ AS1BLS = 'AS1BLS',
26
+ GUMF = 'GUMF',
27
+ CUMF = 'CUMF',
28
+ }
29
+
30
+ export enum StrategyState {
31
+ LIVE = 'Live',
32
+ AWAITING_DEPLOYMENT = 'Awaiting deployment',
33
+ DEVELOPMENT = 'Development',
34
+ PROPOSED = 'Proposed',
35
+ }
36
+
37
+ export const strategies: {[shortId in StrategyShortId]?:Strategy} = {
38
+ [StrategyShortId.QSMF]: {
39
+ id: 'QuickSwap Static Merkl Farm',
40
+ shortId: StrategyShortId.QSMF,
41
+ state: StrategyState.LIVE,
42
+ contractGithubId: 101,
43
+ color: "#558ac5",
44
+ bgColor: "#000000",
45
+ },
46
+ [StrategyShortId.DQMF]: {
47
+ id: 'DefiEdge QuickSwap Merkl Farm',
48
+ shortId: StrategyShortId.DQMF,
49
+ state: StrategyState.LIVE,
50
+ contractGithubId: 80,
51
+ color: "#a5c2ff",
52
+ bgColor: "#000000",
53
+ },
54
+ [StrategyShortId.IQMF]: {
55
+ id: 'Ichi QuickSwap Merkl Farm',
56
+ shortId: StrategyShortId.IQMF,
57
+ state: StrategyState.LIVE,
58
+ contractGithubId: 81,
59
+ color: "#965fff",
60
+ bgColor: "#000000",
61
+ },
62
+ [StrategyShortId.GQMF]: {
63
+ id: 'Gamma QuickSwap Merkl Farm',
64
+ shortId: StrategyShortId.GQMF,
65
+ state: StrategyState.LIVE,
66
+ contractGithubId: 90,
67
+ color: "#de43ff",
68
+ bgColor: "#140414",
69
+ },
70
+ [StrategyShortId.IRMF]: {
71
+ id: 'Ichi Retro Merkl Farm',
72
+ shortId: StrategyShortId.IRMF,
73
+ state: StrategyState.LIVE,
74
+ contractGithubId: 95,
75
+ color: "#28fffb",
76
+ bgColor: "#000000",
77
+ },
78
+ [StrategyShortId.GRMF]: {
79
+ id: 'Gamma Retro Merkl Farm',
80
+ shortId: StrategyShortId.GRMF,
81
+ state: StrategyState.LIVE,
82
+ contractGithubId: 99,
83
+ color: "#ff0000",
84
+ bgColor: "#000000",
85
+ },
86
+ [StrategyShortId.CF]: {
87
+ id: 'Compound Farm',
88
+ shortId: StrategyShortId.CF,
89
+ state: StrategyState.LIVE,
90
+ contractGithubId: 79,
91
+ color: "#00d395",
92
+ bgColor: "#000000",
93
+ },
94
+ [StrategyShortId.CCF]: {
95
+ id: 'Curve Convex Farm',
96
+ shortId: StrategyShortId.CCF,
97
+ state: StrategyState.LIVE,
98
+ contractGithubId: 110,
99
+ color: "#dddddd",
100
+ bgColor: "#000000",
101
+ },
102
+ [StrategyShortId.Y]: {
103
+ id: 'Yearn',
104
+ shortId: StrategyShortId.Y,
105
+ state: StrategyState.LIVE,
106
+ contractGithubId: 114,
107
+ color: "#dc568a",
108
+ bgColor: "#000000",
109
+ },
110
+ [StrategyShortId.SQMF]: {
111
+ id: 'Steer QuickSwap Merkl Farm',
112
+ shortId: StrategyShortId.SQMF,
113
+ state: StrategyState.DEVELOPMENT,
114
+ contractGithubId: 85,
115
+ color: "#8587ff",
116
+ bgColor: "#000000",
117
+ },
118
+ [StrategyShortId.GAF]: {
119
+ id: 'Gyroscope Aura Farm',
120
+ shortId: StrategyShortId.GAF,
121
+ state: StrategyState.DEVELOPMENT,
122
+ contractGithubId: 121,
123
+ color: "#f2fea6",
124
+ bgColor: "#2e005f",
125
+ },
126
+ [StrategyShortId.RSBMF]: {
127
+ id: 'Retro Static Boosted Merkl Farm',
128
+ shortId: StrategyShortId.RSBMF,
129
+ state: StrategyState.PROPOSED,
130
+ contractGithubId: 122,
131
+ color: "#ff0000",
132
+ bgColor: "#420060",
133
+ },
134
+ [StrategyShortId.DRBMF]: {
135
+ id: 'DefiEdge Retro Boosted Merkl Farm',
136
+ shortId: StrategyShortId.DRBMF,
137
+ state: StrategyState.PROPOSED,
138
+ contractGithubId: 98,
139
+ color: "#ff0000",
140
+ bgColor: "#420060",
141
+ },
142
+ [StrategyShortId.IRBMF]: {
143
+ id: 'Ichi Retro Boosted Merkl Farm',
144
+ shortId: StrategyShortId.IRBMF,
145
+ state: StrategyState.PROPOSED,
146
+ contractGithubId: 91,
147
+ color: "#e1d1ff",
148
+ bgColor: "#420060",
149
+ },
150
+ [StrategyShortId.AS1BLS]: {
151
+ id: 'Aave Stader 1inch Balancer',
152
+ shortId: StrategyShortId.AS1BLS,
153
+ state: StrategyState.PROPOSED,
154
+ contractGithubId: 127,
155
+ color: "#07a658",
156
+ bgColor: "#1a024d",
157
+ },
158
+
159
+ [StrategyShortId.GUMF]: {
160
+ id: 'Gamma UniswapV3 Merkl Farm',
161
+ shortId: StrategyShortId.GUMF,
162
+ state: StrategyState.PROPOSED,
163
+ contractGithubId: 145,
164
+ color: "#ff0000",
165
+ bgColor: "#000000",
166
+ },
167
+ [StrategyShortId.CUMF]: {
168
+ id: 'Charm UniswapV3 Merkl Farm',
169
+ shortId: StrategyShortId.CUMF,
170
+ state: StrategyState.PROPOSED,
171
+ contractGithubId: 144,
172
+ color: "#ff2299",
173
+ bgColor: "#000000",
174
+ },
175
+ };
@@ -0,0 +1,18 @@
1
+ import {integrations, networks, strategies, deployments} from "../src";
2
+ import {StrategyShortId} from "../src";
3
+
4
+ console.log('== Stability Integration Pack ======')
5
+ console.log('')
6
+ console.log(`=== Deployments (${Object.keys(deployments).length}) ===`)
7
+ console.log(`${Object.keys(deployments).map(chainId => `Platform on ${networks[chainId].id} [${chainId}]: ${deployments[chainId].platform}`)}`)
8
+ console.log('')
9
+ console.log(`=== Strategies: ${Object.keys(strategies).length} ===`)
10
+ for (let strategyShortId in StrategyShortId) {
11
+ // @ts-ignore
12
+ console.log(`[${strategies[strategyShortId].state}] ${strategyShortId} | ${strategies[strategyShortId].id}`)
13
+ }
14
+ console.log('')
15
+ console.log(`=== Networks (${Object.keys(networks).length}) ===`)
16
+ console.log(`${Object.keys(networks).map(n => `${networks[n].id} [${n}]`).join(', ')}`)
17
+ console.log('')
18
+ console.log(`DeFi organizations: ${Object.keys(integrations).length}`)
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "node16",
4
+ "target": "es2020", // set to the *lowest* target you support
5
+ "strict": true,
6
+ // "verbatimModuleSyntax": true,
7
+ "declaration": true,
8
+ "sourceMap": true,
9
+ "declarationMap": true,
10
+ "outDir": "./out",
11
+ "rootDir": "./src"
12
+ },
13
+ "include": ["src/**/*", "tests/**/*"]
14
+ }