@stabilitydao/stability 0.3.0 → 0.5.0
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.
- package/README.md +15 -0
- package/out/index.js +1 -3
- package/out/index.js.map +1 -1
- package/out/integrations.d.ts +2 -2
- package/out/integrations.d.ts.map +1 -1
- package/out/integrations.js +84 -94
- package/out/integrations.js.map +1 -1
- package/out/networks.js +33 -34
- package/out/networks.js.map +1 -1
- package/out/stability.tokenlist.json +168 -0
- package/out/strategies.d.ts +4 -2
- package/out/strategies.d.ts.map +1 -1
- package/out/strategies.js +57 -61
- package/out/strategies.js.map +1 -1
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -26,6 +26,11 @@ console.log('Platform address on Polygon', deployments["137"].platform)
|
|
|
26
26
|
|
|
27
27
|
Comprehensive information about platform strategies for managing DeFi assets. Includes developed strategies and those currently in development or awaiting development.
|
|
28
28
|
|
|
29
|
+
#### Methods
|
|
30
|
+
|
|
31
|
+
* `getMerklStrategies()`
|
|
32
|
+
* `getStrategyShortId(id: string): StrategyShortId|undefined`
|
|
33
|
+
|
|
29
34
|
### Networks
|
|
30
35
|
|
|
31
36
|
Blockchains known to the platform and their integration statuses.
|
|
@@ -34,9 +39,19 @@ Blockchains known to the platform and their integration statuses.
|
|
|
34
39
|
|
|
35
40
|
DeFi organizations, protocols, their integration statuses, usage and other information.
|
|
36
41
|
|
|
42
|
+
#### Methods
|
|
43
|
+
|
|
44
|
+
* `getIntegrationStatus(p: DeFiProtocol): IntegrationStatus`
|
|
45
|
+
|
|
46
|
+
### Tokenlist
|
|
47
|
+
|
|
48
|
+
`stability.tokenlist.json`
|
|
49
|
+
|
|
37
50
|
## Develop
|
|
38
51
|
|
|
39
52
|
```shell
|
|
40
53
|
yarn overview
|
|
41
54
|
yarn overview-full
|
|
55
|
+
yarn test
|
|
56
|
+
yarn coverage
|
|
42
57
|
```
|
package/out/index.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DefiCategory = exports.StrategyState = exports.integrations = exports.strategies = exports.networks = exports.deployments = void 0;
|
|
4
4
|
const deployments_1 = require("./deployments");
|
|
5
5
|
Object.defineProperty(exports, "deployments", { enumerable: true, get: function () { return deployments_1.deployments; } });
|
|
6
6
|
const networks_1 = require("./networks");
|
|
7
7
|
Object.defineProperty(exports, "networks", { enumerable: true, get: function () { return networks_1.networks; } });
|
|
8
8
|
const strategies_1 = require("./strategies");
|
|
9
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
10
|
Object.defineProperty(exports, "StrategyState", { enumerable: true, get: function () { return strategies_1.StrategyState; } });
|
|
12
11
|
const integrations_1 = require("./integrations");
|
|
13
12
|
Object.defineProperty(exports, "integrations", { enumerable: true, get: function () { return integrations_1.integrations; } });
|
|
14
13
|
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
14
|
//# sourceMappingURL=index.js.map
|
package/out/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+CAAyD;AAMvD,4FANM,yBAAW,OAMN;AALb,yCAAwD;AAMtD,yFANM,mBAAQ,OAMN;AALV,6CAAkF;AAMhF,2FANM,uBAAU,OAMN;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+CAAyD;AAMvD,4FANM,yBAAW,OAMN;AALb,yCAAwD;AAMtD,yFANM,mBAAQ,OAMN;AALV,6CAAkF;AAMhF,2FANM,uBAAU,OAMN;AAOV,8FAbmC,0BAAa,OAanC;AAZf,iDAA6G;AAM3G,6FANM,2BAAY,OAMN;AAOZ,6FAboB,2BAAY,OAapB"}
|
package/out/integrations.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type DeFiProtocol = {
|
|
|
18
18
|
adapters?: string[];
|
|
19
19
|
coreContracts?: string[];
|
|
20
20
|
};
|
|
21
|
-
export declare enum IntegrationStatus {
|
|
21
|
+
export declare const enum IntegrationStatus {
|
|
22
22
|
LIVE = "Live",
|
|
23
23
|
IN_USE = "In use",
|
|
24
24
|
BEING_DEPLOYED = "Being deployed",
|
|
@@ -40,8 +40,8 @@ export declare enum DefiCategory {
|
|
|
40
40
|
BRIDGE = "Bridge",
|
|
41
41
|
LST = "Liquid staking"
|
|
42
42
|
}
|
|
43
|
-
export declare const getIntegrationStatus: (p: DeFiProtocol) => IntegrationStatus;
|
|
44
43
|
export declare const integrations: {
|
|
45
44
|
[org: string]: DeFiOrganization;
|
|
46
45
|
};
|
|
46
|
+
export declare const getIntegrationStatus: (p: DeFiProtocol) => IntegrationStatus;
|
|
47
47
|
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAgB,MAAM,cAAc,CAAC;AACxE,OAAO,EAAC,SAAS,EAAW,MAAM,YAAY,CAAC;AAG/C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,CAAA;KAAE,CAAA;IACjD,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IAC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AG,QAAQ;IACX,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,iBAAiB;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,cAAc,oBAAoB;IAClC,MAAM,WAAW;IACjB,GAAG,mBAAmB;CACvB;AAED,eAAO,MAAM,YAAY,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAkjB3D,CAAC;AAEF,eAAO,MAAM,oBAAoB,MAAO,YAAY,KAAG,iBA8CtD,CAAA"}
|
package/out/integrations.js
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getIntegrationStatus = exports.integrations = exports.DefiCategory = void 0;
|
|
4
4
|
const strategies_1 = require("./strategies");
|
|
5
5
|
const networks_1 = require("./networks");
|
|
6
6
|
const deployments_1 = require("./deployments");
|
|
7
|
-
var IntegrationStatus;
|
|
8
|
-
(function (IntegrationStatus) {
|
|
9
|
-
IntegrationStatus["LIVE"] = "Live";
|
|
10
|
-
IntegrationStatus["IN_USE"] = "In use";
|
|
11
|
-
IntegrationStatus["BEING_DEPLOYED"] = "Being deployed";
|
|
12
|
-
IntegrationStatus["DEVELOPMENT"] = "Development";
|
|
13
|
-
IntegrationStatus["AWAITING"] = "Awaiting";
|
|
14
|
-
IntegrationStatus["POSSIBLE"] = "Possible";
|
|
15
|
-
IntegrationStatus["PROPOSED"] = "Proposed";
|
|
16
|
-
})(IntegrationStatus || (exports.IntegrationStatus = IntegrationStatus = {}));
|
|
17
7
|
var DefiCategory;
|
|
18
8
|
(function (DefiCategory) {
|
|
19
9
|
DefiCategory["AMM"] = "AMM";
|
|
@@ -28,54 +18,6 @@ var DefiCategory;
|
|
|
28
18
|
DefiCategory["BRIDGE"] = "Bridge";
|
|
29
19
|
DefiCategory["LST"] = "Liquid staking";
|
|
30
20
|
})(DefiCategory || (exports.DefiCategory = DefiCategory = {}));
|
|
31
|
-
const getIntegrationStatus = (p) => {
|
|
32
|
-
if (p.coreContracts && p.coreContracts.length > 0) {
|
|
33
|
-
return IntegrationStatus.LIVE;
|
|
34
|
-
}
|
|
35
|
-
if (p.adapters && p.adapters.length > 0) {
|
|
36
|
-
return IntegrationStatus.LIVE;
|
|
37
|
-
}
|
|
38
|
-
if (p.strategies) {
|
|
39
|
-
for (const strategy of p.strategies) {
|
|
40
|
-
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.LIVE) {
|
|
41
|
-
return IntegrationStatus.LIVE;
|
|
42
|
-
}
|
|
43
|
-
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.AWAITING_DEPLOYMENT) {
|
|
44
|
-
return IntegrationStatus.BEING_DEPLOYED;
|
|
45
|
-
}
|
|
46
|
-
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.DEVELOPMENT) {
|
|
47
|
-
return IntegrationStatus.DEVELOPMENT;
|
|
48
|
-
}
|
|
49
|
-
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.PROPOSED) {
|
|
50
|
-
return IntegrationStatus.AWAITING;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
if (p.intermediaryStrategies) {
|
|
55
|
-
for (const strategy of p.intermediaryStrategies) {
|
|
56
|
-
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.LIVE) {
|
|
57
|
-
return IntegrationStatus.IN_USE;
|
|
58
|
-
}
|
|
59
|
-
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.AWAITING_DEPLOYMENT) {
|
|
60
|
-
return IntegrationStatus.BEING_DEPLOYED;
|
|
61
|
-
}
|
|
62
|
-
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.DEVELOPMENT) {
|
|
63
|
-
return IntegrationStatus.DEVELOPMENT;
|
|
64
|
-
}
|
|
65
|
-
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.PROPOSED) {
|
|
66
|
-
return IntegrationStatus.AWAITING;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
const supportedNetWorkIds = Object.keys(deployments_1.deployments).map(chainIdString => networks_1.networks[chainIdString].id);
|
|
71
|
-
for (const protocolNetworkId of p.networks) {
|
|
72
|
-
if (supportedNetWorkIds.includes(protocolNetworkId)) {
|
|
73
|
-
return IntegrationStatus.POSSIBLE;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return IntegrationStatus.PROPOSED;
|
|
77
|
-
};
|
|
78
|
-
exports.getIntegrationStatus = getIntegrationStatus;
|
|
79
21
|
exports.integrations = {
|
|
80
22
|
// oracle
|
|
81
23
|
chainlink: {
|
|
@@ -133,20 +75,20 @@ exports.integrations = {
|
|
|
133
75
|
"Immutable zkEVM" /* NetworkId.IMMUTABLE_ZKEVM */,
|
|
134
76
|
],
|
|
135
77
|
strategies: [
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
78
|
+
"QSMF" /* StrategyShortId.QSMF */,
|
|
79
|
+
"DQMF" /* StrategyShortId.DQMF */,
|
|
80
|
+
"IQMF" /* StrategyShortId.IQMF */,
|
|
81
|
+
"GQMF" /* StrategyShortId.GQMF */,
|
|
82
|
+
"IRMF" /* StrategyShortId.IRMF */,
|
|
83
|
+
"GRMF" /* StrategyShortId.GRMF */,
|
|
84
|
+
"SQMF" /* StrategyShortId.SQMF */,
|
|
85
|
+
"RSBMF" /* StrategyShortId.RSBMF */,
|
|
86
|
+
"DRBMF" /* StrategyShortId.DRBMF */,
|
|
87
|
+
"IRBMF" /* StrategyShortId.IRBMF */,
|
|
88
|
+
"GUMF" /* StrategyShortId.GUMF */,
|
|
89
|
+
"ABMF" /* StrategyShortId.ABMF */,
|
|
90
|
+
"CBMF" /* StrategyShortId.CBMF */,
|
|
91
|
+
"CUMF" /* StrategyShortId.CUMF */,
|
|
150
92
|
],
|
|
151
93
|
},
|
|
152
94
|
},
|
|
@@ -176,7 +118,7 @@ exports.integrations = {
|
|
|
176
118
|
"Aurora" /* NetworkId.AURORA */,
|
|
177
119
|
],
|
|
178
120
|
coreContracts: ['Zap'],
|
|
179
|
-
strategies: [
|
|
121
|
+
strategies: ["AS1BLS" /* StrategyShortId.AS1BLS */,],
|
|
180
122
|
},
|
|
181
123
|
},
|
|
182
124
|
defiLlama: '1inch-network',
|
|
@@ -202,7 +144,7 @@ exports.integrations = {
|
|
|
202
144
|
"Blast" /* NetworkId.BLAST */,
|
|
203
145
|
],
|
|
204
146
|
adapters: ['UniswapV3Adapter'],
|
|
205
|
-
strategies: [
|
|
147
|
+
strategies: ["CUMF" /* StrategyShortId.CUMF */, "GUMF" /* StrategyShortId.GUMF */,]
|
|
206
148
|
},
|
|
207
149
|
},
|
|
208
150
|
defiLlama: 'uniswap',
|
|
@@ -225,7 +167,7 @@ exports.integrations = {
|
|
|
225
167
|
"X Layer" /* NetworkId.X_LAYER */,
|
|
226
168
|
"Kava" /* NetworkId.KAVA */,
|
|
227
169
|
],
|
|
228
|
-
strategies: [
|
|
170
|
+
strategies: ["QSMF" /* StrategyShortId.QSMF */, "DQMF" /* StrategyShortId.DQMF */, "GQMF" /* StrategyShortId.GQMF */],
|
|
229
171
|
adapters: ['AlgebraAdapter',],
|
|
230
172
|
},
|
|
231
173
|
},
|
|
@@ -240,7 +182,7 @@ exports.integrations = {
|
|
|
240
182
|
name: 'Retro',
|
|
241
183
|
category: DefiCategory.AMM,
|
|
242
184
|
networks: ["Polygon" /* NetworkId.POLYGON */,],
|
|
243
|
-
strategies: [
|
|
185
|
+
strategies: ["IRMF" /* StrategyShortId.IRMF */, "GRMF" /* StrategyShortId.GRMF */],
|
|
244
186
|
adapters: ['UniswapV3Adapter',],
|
|
245
187
|
},
|
|
246
188
|
},
|
|
@@ -270,7 +212,7 @@ exports.integrations = {
|
|
|
270
212
|
"X Layer" /* NetworkId.X_LAYER */,
|
|
271
213
|
"Fraxtal" /* NetworkId.FRAXTAL */,
|
|
272
214
|
],
|
|
273
|
-
strategies: [
|
|
215
|
+
strategies: ["CCF" /* StrategyShortId.CCF */],
|
|
274
216
|
adapters: ['CurveAdapter',],
|
|
275
217
|
},
|
|
276
218
|
},
|
|
@@ -293,7 +235,7 @@ exports.integrations = {
|
|
|
293
235
|
"Gnosis" /* NetworkId.GNOSIS */,
|
|
294
236
|
"Polygon zkEVM" /* NetworkId.POLYGON_ZKEVM */,
|
|
295
237
|
],
|
|
296
|
-
strategies: [
|
|
238
|
+
strategies: ["GAF" /* StrategyShortId.GAF */,],
|
|
297
239
|
},
|
|
298
240
|
},
|
|
299
241
|
defiLlama: 'gyroscope-protocol',
|
|
@@ -307,7 +249,7 @@ exports.integrations = {
|
|
|
307
249
|
name: 'BaseSwap',
|
|
308
250
|
category: DefiCategory.AMM,
|
|
309
251
|
networks: ["Base" /* NetworkId.BASE */,],
|
|
310
|
-
strategies: [
|
|
252
|
+
strategies: ["ABMF" /* StrategyShortId.ABMF */, "CBMF" /* StrategyShortId.CBMF */],
|
|
311
253
|
adapters: ['UniswapV3Adapter',],
|
|
312
254
|
},
|
|
313
255
|
},
|
|
@@ -340,7 +282,7 @@ exports.integrations = {
|
|
|
340
282
|
"Metis Andromeda" /* NetworkId.METIS */,
|
|
341
283
|
"Blast" /* NetworkId.BLAST */,
|
|
342
284
|
],
|
|
343
|
-
strategies: [
|
|
285
|
+
strategies: ["GQMF" /* StrategyShortId.GQMF */, "GRMF" /* StrategyShortId.GRMF */],
|
|
344
286
|
},
|
|
345
287
|
},
|
|
346
288
|
defiLlama: 'gamma',
|
|
@@ -366,7 +308,7 @@ exports.integrations = {
|
|
|
366
308
|
"Polygon zkEVM" /* NetworkId.POLYGON_ZKEVM */,
|
|
367
309
|
"zkSync" /* NetworkId.ZKSYNC */,
|
|
368
310
|
],
|
|
369
|
-
strategies: [
|
|
311
|
+
strategies: ["DQMF" /* StrategyShortId.DQMF */],
|
|
370
312
|
},
|
|
371
313
|
},
|
|
372
314
|
defiLlama: 'defiedge',
|
|
@@ -386,7 +328,7 @@ exports.integrations = {
|
|
|
386
328
|
"Binance Smart Chain" /* NetworkId.BSC */,
|
|
387
329
|
"Celo" /* NetworkId.CELO */,
|
|
388
330
|
],
|
|
389
|
-
strategies: [
|
|
331
|
+
strategies: ["IQMF" /* StrategyShortId.IQMF */, "IRMF" /* StrategyShortId.IRMF */],
|
|
390
332
|
},
|
|
391
333
|
},
|
|
392
334
|
defiLlama: 'ichi',
|
|
@@ -422,7 +364,7 @@ exports.integrations = {
|
|
|
422
364
|
"Mode" /* NetworkId.MODE */,
|
|
423
365
|
"Telos EVM" /* NetworkId.TELOS */,
|
|
424
366
|
],
|
|
425
|
-
strategies: [
|
|
367
|
+
strategies: ["SQMF" /* StrategyShortId.SQMF */],
|
|
426
368
|
},
|
|
427
369
|
},
|
|
428
370
|
defiLlama: 'steer-protocol',
|
|
@@ -445,7 +387,7 @@ exports.integrations = {
|
|
|
445
387
|
"Scroll" /* NetworkId.SCROLL */,
|
|
446
388
|
"Linea" /* NetworkId.LINEA */,
|
|
447
389
|
],
|
|
448
|
-
strategies: [
|
|
390
|
+
strategies: ["CUMF" /* StrategyShortId.CUMF */, "CBMF" /* StrategyShortId.CBMF */,],
|
|
449
391
|
},
|
|
450
392
|
},
|
|
451
393
|
defiLlama: 'charm-finance',
|
|
@@ -469,7 +411,7 @@ exports.integrations = {
|
|
|
469
411
|
"Polygon zkEVM" /* NetworkId.POLYGON_ZKEVM */,
|
|
470
412
|
"Manta Pacific" /* NetworkId.MANTA */,
|
|
471
413
|
],
|
|
472
|
-
strategies: [
|
|
414
|
+
strategies: ["ABMF" /* StrategyShortId.ABMF */],
|
|
473
415
|
},
|
|
474
416
|
},
|
|
475
417
|
defiLlama: 'a51-finance',
|
|
@@ -491,7 +433,7 @@ exports.integrations = {
|
|
|
491
433
|
"Optimism" /* NetworkId.OPTIMISM */,
|
|
492
434
|
"Scroll" /* NetworkId.SCROLL */,
|
|
493
435
|
],
|
|
494
|
-
strategies: [
|
|
436
|
+
strategies: ["CF" /* StrategyShortId.CF */],
|
|
495
437
|
},
|
|
496
438
|
},
|
|
497
439
|
defiLlama: 'compound-finance',
|
|
@@ -517,7 +459,7 @@ exports.integrations = {
|
|
|
517
459
|
"Binance Smart Chain" /* NetworkId.BSC */,
|
|
518
460
|
"Scroll" /* NetworkId.SCROLL */,
|
|
519
461
|
],
|
|
520
|
-
intermediaryStrategies: [
|
|
462
|
+
intermediaryStrategies: ["Y" /* StrategyShortId.Y */],
|
|
521
463
|
},
|
|
522
464
|
},
|
|
523
465
|
defiLlama: 'aave',
|
|
@@ -532,7 +474,7 @@ exports.integrations = {
|
|
|
532
474
|
name: 'Convex',
|
|
533
475
|
category: DefiCategory.VE_AGG,
|
|
534
476
|
networks: ["Ethereum" /* NetworkId.ETHEREUM */, "Arbitrum One" /* NetworkId.ARBITRUM */, "Polygon" /* NetworkId.POLYGON */,],
|
|
535
|
-
strategies: [
|
|
477
|
+
strategies: ["CCF" /* StrategyShortId.CCF */],
|
|
536
478
|
},
|
|
537
479
|
},
|
|
538
480
|
defiLlama: 'convex-finance',
|
|
@@ -546,7 +488,7 @@ exports.integrations = {
|
|
|
546
488
|
name: 'Aura',
|
|
547
489
|
category: DefiCategory.VE_AGG,
|
|
548
490
|
networks: ["Ethereum" /* NetworkId.ETHEREUM */, "Arbitrum One" /* NetworkId.ARBITRUM */, "Polygon" /* NetworkId.POLYGON */,],
|
|
549
|
-
strategies: [
|
|
491
|
+
strategies: ["GAF" /* StrategyShortId.GAF */,],
|
|
550
492
|
},
|
|
551
493
|
},
|
|
552
494
|
defiLlama: 'aura',
|
|
@@ -561,7 +503,7 @@ exports.integrations = {
|
|
|
561
503
|
name: 'Yearn V3',
|
|
562
504
|
category: DefiCategory.VAULTS_ERC4626,
|
|
563
505
|
networks: ["Ethereum" /* NetworkId.ETHEREUM */, "Arbitrum One" /* NetworkId.ARBITRUM */, "Polygon" /* NetworkId.POLYGON */,],
|
|
564
|
-
strategies: [
|
|
506
|
+
strategies: ["Y" /* StrategyShortId.Y */],
|
|
565
507
|
},
|
|
566
508
|
},
|
|
567
509
|
defiLlama: 'yearn-finance',
|
|
@@ -603,7 +545,7 @@ exports.integrations = {
|
|
|
603
545
|
name: 'Stargate',
|
|
604
546
|
category: DefiCategory.BRIDGE,
|
|
605
547
|
networks: ["Ethereum" /* NetworkId.ETHEREUM */, "Base" /* NetworkId.BASE */, "Arbitrum One" /* NetworkId.ARBITRUM */, "Polygon" /* NetworkId.POLYGON */,],
|
|
606
|
-
intermediaryStrategies: [
|
|
548
|
+
intermediaryStrategies: ["Y" /* StrategyShortId.Y */],
|
|
607
549
|
},
|
|
608
550
|
},
|
|
609
551
|
github: 'stargate-protocol',
|
|
@@ -618,7 +560,7 @@ exports.integrations = {
|
|
|
618
560
|
name: 'Lido Staked MATIC',
|
|
619
561
|
category: DefiCategory.LST,
|
|
620
562
|
networks: ["Ethereum" /* NetworkId.ETHEREUM */, "Polygon" /* NetworkId.POLYGON */,],
|
|
621
|
-
strategies: [
|
|
563
|
+
strategies: ["Y" /* StrategyShortId.Y */,],
|
|
622
564
|
},
|
|
623
565
|
},
|
|
624
566
|
github: 'lidofinance',
|
|
@@ -632,11 +574,59 @@ exports.integrations = {
|
|
|
632
574
|
name: 'Stader Liquid Staking',
|
|
633
575
|
category: DefiCategory.LST,
|
|
634
576
|
networks: ["Ethereum" /* NetworkId.ETHEREUM */, "Polygon" /* NetworkId.POLYGON */,],
|
|
635
|
-
strategies: [
|
|
577
|
+
strategies: ["AS1BLS" /* StrategyShortId.AS1BLS */,],
|
|
636
578
|
},
|
|
637
579
|
},
|
|
638
580
|
github: 'stader-labs',
|
|
639
581
|
defiLlama: 'stader',
|
|
640
582
|
},
|
|
641
583
|
};
|
|
584
|
+
const getIntegrationStatus = (p) => {
|
|
585
|
+
if (p.coreContracts && p.coreContracts.length > 0) {
|
|
586
|
+
return "Live" /* IntegrationStatus.LIVE */;
|
|
587
|
+
}
|
|
588
|
+
if (p.adapters && p.adapters.length > 0) {
|
|
589
|
+
return "Live" /* IntegrationStatus.LIVE */;
|
|
590
|
+
}
|
|
591
|
+
if (p.strategies) {
|
|
592
|
+
for (const strategy of p.strategies) {
|
|
593
|
+
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.LIVE) {
|
|
594
|
+
return "Live" /* IntegrationStatus.LIVE */;
|
|
595
|
+
}
|
|
596
|
+
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.AWAITING_DEPLOYMENT) {
|
|
597
|
+
return "Being deployed" /* IntegrationStatus.BEING_DEPLOYED */;
|
|
598
|
+
}
|
|
599
|
+
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.DEVELOPMENT) {
|
|
600
|
+
return "Development" /* IntegrationStatus.DEVELOPMENT */;
|
|
601
|
+
}
|
|
602
|
+
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.PROPOSED) {
|
|
603
|
+
return "Awaiting" /* IntegrationStatus.AWAITING */;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
if (p.intermediaryStrategies) {
|
|
608
|
+
for (const strategy of p.intermediaryStrategies) {
|
|
609
|
+
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.LIVE) {
|
|
610
|
+
return "In use" /* IntegrationStatus.IN_USE */;
|
|
611
|
+
}
|
|
612
|
+
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.AWAITING_DEPLOYMENT) {
|
|
613
|
+
return "Being deployed" /* IntegrationStatus.BEING_DEPLOYED */;
|
|
614
|
+
}
|
|
615
|
+
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.DEVELOPMENT) {
|
|
616
|
+
return "Development" /* IntegrationStatus.DEVELOPMENT */;
|
|
617
|
+
}
|
|
618
|
+
if (strategies_1.strategies[strategy]?.state == strategies_1.StrategyState.PROPOSED) {
|
|
619
|
+
return "Awaiting" /* IntegrationStatus.AWAITING */;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
const supportedNetWorkIds = Object.keys(deployments_1.deployments).map(chainIdString => networks_1.networks[chainIdString].id);
|
|
624
|
+
for (const protocolNetworkId of p.networks) {
|
|
625
|
+
if (supportedNetWorkIds.includes(protocolNetworkId)) {
|
|
626
|
+
return "Possible" /* IntegrationStatus.POSSIBLE */;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return "Proposed" /* IntegrationStatus.PROPOSED */;
|
|
630
|
+
};
|
|
631
|
+
exports.getIntegrationStatus = getIntegrationStatus;
|
|
642
632
|
//# sourceMappingURL=integrations.js.map
|
package/out/integrations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":";;;AAAA,6CAAwE;AACxE,yCAA+C;AAC/C,+CAA0C;
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":";;;AAAA,6CAAwE;AACxE,yCAA+C;AAC/C,+CAA0C;AA8B1C,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;IACvB,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACvB,kDAAkC,CAAA;IAClC,iCAAiB,CAAA;IACjB,sCAAsB,CAAA;AACxB,CAAC,EAZW,YAAY,4BAAZ,YAAY,QAYvB;AAEY,QAAA,YAAY,GAAwC;IAC/D,SAAS;IACT,SAAS,EAAE;QACT,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,oBAAo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,sBAAsB,EAAE,CAAC;YAChD,IAAI,uBAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,0BAAa,CAAC,IAAI,EAAE,CAAC;gBACtD,+CAA+B;YACjC,CAAC;YACD,IAAI,uBAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,0BAAa,CAAC,mBAAmB,EAAE,CAAC;gBACrE,+DAAuC;YACzC,CAAC;YACD,IAAI,uBAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,0BAAa,CAAC,WAAW,EAAE,CAAC;gBAC7D,yDAAoC;YACtC,CAAC;YACD,IAAI,uBAAU,CAAC,QAAQ,CAAC,EAAE,KAAK,IAAI,0BAAa,CAAC,QAAQ,EAAE,CAAC;gBAC1D,mDAAiC;YACnC,CAAC;QACH,CAAC;IACH,CAAC;IACD,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,yBAAW,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,mBAAQ,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAA;IACrG,KAAK,MAAM,iBAAiB,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC3C,IAAI,mBAAmB,CAAC,QAAQ,CAAC,iBAA8B,CAAC,EAAE,CAAC;YACjE,mDAAiC;QACnC,CAAC;IACH,CAAC;IACD,mDAAiC;AACnC,CAAC,CAAA;AA9CY,QAAA,oBAAoB,wBA8ChC"}
|
package/out/networks.js
CHANGED
|
@@ -1,172 +1,171 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.networks = void 0;
|
|
4
|
-
const integrations_1 = require("./integrations");
|
|
5
4
|
exports.networks = {
|
|
6
5
|
"1": {
|
|
7
6
|
id: "Ethereum" /* NetworkId.ETHEREUM */,
|
|
8
7
|
chainId: 1,
|
|
9
|
-
status:
|
|
8
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
10
9
|
},
|
|
11
10
|
"10": {
|
|
12
11
|
id: "Optimism" /* NetworkId.OPTIMISM */,
|
|
13
12
|
chainId: 10,
|
|
14
|
-
status:
|
|
13
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
15
14
|
},
|
|
16
15
|
"40": {
|
|
17
16
|
id: "Telos EVM" /* NetworkId.TELOS */,
|
|
18
17
|
chainId: 40,
|
|
19
|
-
status:
|
|
18
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
20
19
|
},
|
|
21
20
|
"56": {
|
|
22
21
|
id: "Binance Smart Chain" /* NetworkId.BSC */,
|
|
23
22
|
chainId: 56,
|
|
24
|
-
status:
|
|
23
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
25
24
|
},
|
|
26
25
|
"100": {
|
|
27
26
|
id: "Gnosis" /* NetworkId.GNOSIS */,
|
|
28
27
|
chainId: 100,
|
|
29
|
-
status:
|
|
28
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
30
29
|
},
|
|
31
30
|
"137": {
|
|
32
31
|
id: "Polygon" /* NetworkId.POLYGON */,
|
|
33
32
|
chainId: 137,
|
|
34
|
-
status:
|
|
33
|
+
status: "Live" /* IntegrationStatus.LIVE */,
|
|
35
34
|
},
|
|
36
35
|
"169": {
|
|
37
36
|
id: "Manta Pacific" /* NetworkId.MANTA */,
|
|
38
37
|
chainId: 169,
|
|
39
|
-
status:
|
|
38
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
40
39
|
},
|
|
41
40
|
"196": {
|
|
42
41
|
id: "X Layer" /* NetworkId.X_LAYER */,
|
|
43
42
|
chainId: 196,
|
|
44
|
-
status:
|
|
43
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
45
44
|
},
|
|
46
45
|
"238": {
|
|
47
46
|
id: "Blast" /* NetworkId.BLAST */,
|
|
48
47
|
chainId: 238,
|
|
49
|
-
status:
|
|
48
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
50
49
|
},
|
|
51
50
|
"250": {
|
|
52
51
|
id: "Fantom" /* NetworkId.FANTOM */,
|
|
53
52
|
chainId: 250,
|
|
54
|
-
status:
|
|
53
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
55
54
|
},
|
|
56
55
|
"252": {
|
|
57
56
|
id: "Fraxtal" /* NetworkId.FRAXTAL */,
|
|
58
57
|
chainId: 252,
|
|
59
|
-
status:
|
|
58
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
60
59
|
},
|
|
61
60
|
"288": {
|
|
62
61
|
id: "Boba" /* NetworkId.BOBA */,
|
|
63
62
|
chainId: 288,
|
|
64
|
-
status:
|
|
63
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
65
64
|
},
|
|
66
65
|
"324": {
|
|
67
66
|
id: "zkSync" /* NetworkId.ZKSYNC */,
|
|
68
67
|
chainId: 324,
|
|
69
|
-
status:
|
|
68
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
70
69
|
},
|
|
71
70
|
"570": {
|
|
72
71
|
id: "Rollux" /* NetworkId.ROLLUX */,
|
|
73
72
|
chainId: 570,
|
|
74
|
-
status:
|
|
73
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
75
74
|
},
|
|
76
75
|
"3776": {
|
|
77
76
|
id: "Astar zkEVM" /* NetworkId.ASTAR_ZKEVM */,
|
|
78
77
|
chainId: 3776,
|
|
79
|
-
status:
|
|
78
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
80
79
|
},
|
|
81
80
|
"1088": {
|
|
82
81
|
id: "Metis Andromeda" /* NetworkId.METIS */,
|
|
83
82
|
chainId: 1088,
|
|
84
|
-
status:
|
|
83
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
85
84
|
},
|
|
86
85
|
"1101": {
|
|
87
86
|
id: "Polygon zkEVM" /* NetworkId.POLYGON_ZKEVM */,
|
|
88
87
|
chainId: 1101,
|
|
89
|
-
status:
|
|
88
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
90
89
|
},
|
|
91
90
|
"1284": {
|
|
92
91
|
id: "Moonbeam" /* NetworkId.MOONBEAM */,
|
|
93
92
|
chainId: 1284,
|
|
94
|
-
status:
|
|
93
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
95
94
|
},
|
|
96
95
|
"1285": {
|
|
97
96
|
id: "Moonriver" /* NetworkId.MOONRIVER */,
|
|
98
97
|
chainId: 1285,
|
|
99
|
-
status:
|
|
98
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
100
99
|
},
|
|
101
100
|
"2000": {
|
|
102
101
|
id: "Dogechain" /* NetworkId.DOGECHAIN */,
|
|
103
102
|
chainId: 2000,
|
|
104
|
-
status:
|
|
103
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
105
104
|
},
|
|
106
105
|
"2222": {
|
|
107
106
|
id: "Kava" /* NetworkId.KAVA */,
|
|
108
107
|
chainId: 2222,
|
|
109
|
-
status:
|
|
108
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
110
109
|
},
|
|
111
110
|
"5000": {
|
|
112
111
|
id: "Mantle" /* NetworkId.MANTLE */,
|
|
113
112
|
chainId: 5000,
|
|
114
|
-
status:
|
|
113
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
115
114
|
},
|
|
116
115
|
"8217": {
|
|
117
116
|
id: "Klaytn Cypress" /* NetworkId.KLAYTN */,
|
|
118
117
|
chainId: 8217,
|
|
119
|
-
status:
|
|
118
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
120
119
|
},
|
|
121
120
|
"8453": {
|
|
122
121
|
id: "Base" /* NetworkId.BASE */,
|
|
123
122
|
chainId: 8453,
|
|
124
|
-
status:
|
|
123
|
+
status: "Live" /* IntegrationStatus.LIVE */,
|
|
125
124
|
},
|
|
126
125
|
"9001": {
|
|
127
126
|
id: "Evmos" /* NetworkId.EVMOS */,
|
|
128
127
|
chainId: 9001,
|
|
129
|
-
status:
|
|
128
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
130
129
|
},
|
|
131
130
|
"13371": {
|
|
132
131
|
id: "Immutable zkEVM" /* NetworkId.IMMUTABLE_ZKEVM */,
|
|
133
132
|
chainId: 13371,
|
|
134
|
-
status:
|
|
133
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
135
134
|
},
|
|
136
135
|
"34443": {
|
|
137
136
|
id: "Mode" /* NetworkId.MODE */,
|
|
138
137
|
chainId: 34443,
|
|
139
|
-
status:
|
|
138
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
140
139
|
},
|
|
141
140
|
"42161": {
|
|
142
141
|
id: "Arbitrum One" /* NetworkId.ARBITRUM */,
|
|
143
142
|
chainId: 42161,
|
|
144
|
-
status:
|
|
143
|
+
status: "Development" /* IntegrationStatus.DEVELOPMENT */,
|
|
145
144
|
},
|
|
146
145
|
"42220": {
|
|
147
146
|
id: "Celo" /* NetworkId.CELO */,
|
|
148
147
|
chainId: 42220,
|
|
149
|
-
status:
|
|
148
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
150
149
|
},
|
|
151
150
|
"43114": {
|
|
152
151
|
id: "Avalanche C-Chain" /* NetworkId.AVALANCHE */,
|
|
153
152
|
chainId: 43114,
|
|
154
|
-
status:
|
|
153
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
155
154
|
},
|
|
156
155
|
"59144": {
|
|
157
156
|
id: "Linea" /* NetworkId.LINEA */,
|
|
158
157
|
chainId: 59144,
|
|
159
|
-
status:
|
|
158
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
160
159
|
},
|
|
161
160
|
"534352": {
|
|
162
161
|
id: "Scroll" /* NetworkId.SCROLL */,
|
|
163
162
|
chainId: 534352,
|
|
164
|
-
status:
|
|
163
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
165
164
|
},
|
|
166
165
|
"1313161554": {
|
|
167
166
|
id: "Aurora" /* NetworkId.AURORA */,
|
|
168
167
|
chainId: 1313161554,
|
|
169
|
-
status:
|
|
168
|
+
status: "Proposed" /* IntegrationStatus.PROPOSED */,
|
|
170
169
|
},
|
|
171
170
|
};
|
|
172
171
|
//# sourceMappingURL=networks.js.map
|
package/out/networks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networks.js","sourceRoot":"","sources":["../src/networks.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"networks.js","sourceRoot":"","sources":["../src/networks.ts"],"names":[],"mappings":";;;AA4Ca,QAAA,QAAQ,GAAiC;IACpD,GAAG,EAAE;QACH,EAAE,qCAAoB;QACtB,OAAO,EAAE,CAAC;QACV,MAAM,6CAA4B;KACnC;IACD,IAAI,EAAE;QACJ,EAAE,qCAAoB;QACtB,OAAO,EAAE,EAAE;QACX,MAAM,6CAA4B;KACnC;IACD,IAAI,EAAE;QACJ,EAAE,mCAAiB;QACnB,OAAO,EAAE,EAAE;QACX,MAAM,6CAA4B;KACnC;IACD,IAAI,EAAE;QACJ,EAAE,2CAAe;QACjB,OAAO,EAAE,EAAE;QACX,MAAM,6CAA4B;KACnC;IACD,KAAK,EAAE;QACL,EAAE,iCAAkB;QACpB,OAAO,EAAE,GAAG;QACZ,MAAM,6CAA4B;KACnC;IACD,KAAK,EAAE;QACL,EAAE,mCAAmB;QACrB,OAAO,EAAE,GAAG;QACZ,MAAM,qCAAwB;KAC/B;IACD,KAAK,EAAE;QACL,EAAE,uCAAiB;QACnB,OAAO,EAAE,GAAG;QACZ,MAAM,6CAA4B;KACnC;IACD,KAAK,EAAE;QACL,EAAE,mCAAmB;QACrB,OAAO,EAAE,GAAG;QACZ,MAAM,6CAA4B;KACnC;IACD,KAAK,EAAE;QACL,EAAE,+BAAiB;QACnB,OAAO,EAAE,GAAG;QAC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MAAM,EAAE;QACN,EAAE,6BAAgB;QAClB,OAAO,EAAE,IAAI;QACb,MAAM,qCAAwB;KAC/B;IACD,MAAM,EAAE;QACN,EAAE,+BAAiB;QACnB,OAAO,EAAE,IAAI;QACb,MAAM,6CAA4B;KACnC;IACD,OAAO,EAAE;QACP,EAAE,mDAA2B;QAC7B,OAAO,EAAE,KAAK;QACd,MAAM,6CAA4B;KACnC;IACD,OAAO,EAAE;QACP,EAAE,6BAAgB;QAClB,OAAO,EAAE,KAAK;QACd,MAAM,6CAA4B;KACnC;IACD,OAAO,EAAE;QACP,EAAE,yCAAoB;QACtB,OAAO,EAAE,KAAK;QACd,MAAM,mDAA+B;KACtC;IACD,OAAO,EAAE;QACP,EAAE,6BAAgB;QAClB,OAAO,EAAE,KAAK;QACd,MAAM,6CAA4B;KACnC;IACD,OAAO,EAAE;QACP,EAAE,+CAAqB;QACvB,OAAO,EAAE,KAAK;QACd,MAAM,6CAA4B;KACnC;IACD,OAAO,EAAE;QACP,EAAE,+BAAiB;QACnB,OAAO,EAAE,KAAK;QACd,MAAM,6CAA4B;KACnC;IACD,QAAQ,EAAE;QACR,EAAE,iCAAkB;QACpB,OAAO,EAAE,MAAM;QACf,MAAM,6CAA4B;KACnC;IACD,YAAY,EAAE;QACZ,EAAE,iCAAkB;QACpB,OAAO,EAAE,UAAU;QACnB,MAAM,6CAA4B;KACnC;CACF,CAAA"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Stability Token List",
|
|
3
|
+
"logoURI": "https://stability.farm/logo.svg",
|
|
4
|
+
"keywords": [],
|
|
5
|
+
"timestamp": "2024-06-10T00:00:00+00:00",
|
|
6
|
+
"version": {
|
|
7
|
+
"major": 1,
|
|
8
|
+
"minor": 2,
|
|
9
|
+
"patch": 0
|
|
10
|
+
},
|
|
11
|
+
"tags": {
|
|
12
|
+
"stablecoin": {
|
|
13
|
+
"name": "Stablecoin",
|
|
14
|
+
"description": "Tokens that are fixed to an external asset, e.g. the US dollar"
|
|
15
|
+
},
|
|
16
|
+
"bridged": {
|
|
17
|
+
"name": "Bridged",
|
|
18
|
+
"description": "Tokens that are bridged to current chain from another"
|
|
19
|
+
},
|
|
20
|
+
"lst": {
|
|
21
|
+
"name": "Liquid Staking",
|
|
22
|
+
"description": "Liquid staking token"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"tokens": [
|
|
26
|
+
{
|
|
27
|
+
"chainId": 137,
|
|
28
|
+
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
|
|
29
|
+
"symbol": "USDC.e",
|
|
30
|
+
"name": "Bridged USDC",
|
|
31
|
+
"decimals": 6,
|
|
32
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/usdc.jpg",
|
|
33
|
+
"tags": ["stablecoin", "bridged"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"chainId": 137,
|
|
37
|
+
"address": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
|
|
38
|
+
"symbol": "USDC",
|
|
39
|
+
"name": "USD Coin",
|
|
40
|
+
"decimals": 6,
|
|
41
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/usdc.jpg",
|
|
42
|
+
"tags": ["stablecoin"]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"chainId": 137,
|
|
46
|
+
"address": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
|
|
47
|
+
"symbol": "USDT",
|
|
48
|
+
"name": "(PoS) Tether USD",
|
|
49
|
+
"decimals": 6,
|
|
50
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/usdt.jpg",
|
|
51
|
+
"tags": ["stablecoin", "bridged"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"chainId": 137,
|
|
55
|
+
"address": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
|
|
56
|
+
"symbol": "DAI",
|
|
57
|
+
"name": "Dai Stablecoin",
|
|
58
|
+
"decimals": 18,
|
|
59
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/dai.jpg",
|
|
60
|
+
"tags": ["stablecoin", "bridged"]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"chainId": 137,
|
|
64
|
+
"address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
|
|
65
|
+
"symbol": "WMATIC",
|
|
66
|
+
"name": "Wrapped Matic",
|
|
67
|
+
"decimals": 18,
|
|
68
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/polygon.jpg"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"chainId": 137,
|
|
72
|
+
"address": "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
|
|
73
|
+
"symbol": "WETH",
|
|
74
|
+
"name": "Wrapped Ether",
|
|
75
|
+
"decimals": 18,
|
|
76
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/eth.jpg",
|
|
77
|
+
"tags": ["bridged"]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"chainId": 137,
|
|
81
|
+
"address": "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6",
|
|
82
|
+
"symbol": "WBTC",
|
|
83
|
+
"name": "(PoS) Wrapped BTC",
|
|
84
|
+
"decimals": 8,
|
|
85
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/btc.jpg",
|
|
86
|
+
"tags": ["bridged"]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"chainId": 137,
|
|
90
|
+
"address": "0x48469a0481254d5945e7e56c1eb9861429c02f44",
|
|
91
|
+
"symbol": "PROFIT",
|
|
92
|
+
"name": "Stability",
|
|
93
|
+
"decimals": 18,
|
|
94
|
+
"logoURI": "https://stabilitydao.org/profit.png"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"chainId": 137,
|
|
98
|
+
"address": "0x9844a1c30462b55cd383a2c06f90bb4171f9d4bb",
|
|
99
|
+
"symbol": "SDIV",
|
|
100
|
+
"name": "Stability Dividend",
|
|
101
|
+
"decimals": 18,
|
|
102
|
+
"logoURI": "https://stabilitydao.org/SDIV.svg"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"chainId": 137,
|
|
106
|
+
"address": "0xc4ce1d6f5d98d65ee25cf85e9f2e9dcfee6cb5d6",
|
|
107
|
+
"symbol": "crvUSD",
|
|
108
|
+
"name": "Curve.Fi USD",
|
|
109
|
+
"decimals": 18,
|
|
110
|
+
"logoURI": "https://polygonscan.com/token/images/crvusd_32.png",
|
|
111
|
+
"tags": ["stablecoin", "bridged"]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"chainId": 8453,
|
|
115
|
+
"address": "0x4200000000000000000000000000000000000006",
|
|
116
|
+
"symbol": "WETH",
|
|
117
|
+
"name": "Wrapped Ether",
|
|
118
|
+
"decimals": 18,
|
|
119
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/eth.jpg",
|
|
120
|
+
"tags": ["bridged"]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"chainId": 8453,
|
|
124
|
+
"address": "0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452",
|
|
125
|
+
"symbol": "wstETH",
|
|
126
|
+
"name": "Wrapped Liquid Staked Ether 2.0",
|
|
127
|
+
"decimals": 18,
|
|
128
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/wsteth.jpg",
|
|
129
|
+
"tags": ["lst","bridged"]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"chainId": 8453,
|
|
133
|
+
"address": "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22",
|
|
134
|
+
"symbol": "cbETH",
|
|
135
|
+
"name": "Coinbase Wrapped Staked ETH",
|
|
136
|
+
"decimals": 18,
|
|
137
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/network/ethereum/0xBe9895146f7AF43049ca1c1AE358B0541Ea49704.jpg",
|
|
138
|
+
"tags": ["lst"]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"chainId": 8453,
|
|
142
|
+
"address": "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2",
|
|
143
|
+
"symbol": "USDT",
|
|
144
|
+
"name": "Tether USD",
|
|
145
|
+
"decimals": 6,
|
|
146
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/usdt.jpg",
|
|
147
|
+
"tags": ["stablecoin"]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"chainId": 8453,
|
|
151
|
+
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
152
|
+
"symbol": "USDC",
|
|
153
|
+
"name": "USDC",
|
|
154
|
+
"decimals": 6,
|
|
155
|
+
"logoURI": "https://raw.githubusercontent.com/sushiswap/list/master/logos/token-logos/token/usdc.jpg",
|
|
156
|
+
"tags": ["stablecoin"]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"chainId": 8453,
|
|
160
|
+
"address": "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",
|
|
161
|
+
"symbol": "USDbC",
|
|
162
|
+
"name": "USD Base Coin",
|
|
163
|
+
"decimals": 6,
|
|
164
|
+
"logoURI": "https://basescan.org/token/images/usdbc_ofc_32.png",
|
|
165
|
+
"tags": ["stablecoin", "bridged"]
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
package/out/strategies.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type Strategy = {
|
|
|
6
6
|
color: string;
|
|
7
7
|
bgColor: string;
|
|
8
8
|
};
|
|
9
|
-
export declare enum StrategyShortId {
|
|
9
|
+
export declare const enum StrategyShortId {
|
|
10
10
|
QSMF = "QSMF",
|
|
11
11
|
DQMF = "DQMF",
|
|
12
12
|
IQMF = "IQMF",
|
|
@@ -34,6 +34,8 @@ export declare enum StrategyState {
|
|
|
34
34
|
PROPOSED = "Proposed"
|
|
35
35
|
}
|
|
36
36
|
export declare const strategies: {
|
|
37
|
-
[shortId in StrategyShortId]
|
|
37
|
+
[shortId in StrategyShortId]: Strategy;
|
|
38
38
|
};
|
|
39
|
+
export declare const getMerklStrategies: () => string[];
|
|
40
|
+
export declare const getStrategyShortId: (strategyId: string) => StrategyShortId | undefined;
|
|
39
41
|
//# sourceMappingURL=strategies.d.ts.map
|
package/out/strategies.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strategies.d.ts","sourceRoot":"","sources":["../src/strategies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"strategies.d.ts","sourceRoot":"","sources":["../src/strategies.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,eAAe,CAAA;IACxB,KAAK,EAAE,aAAa,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,0BAAkB,eAAe;IAC/B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,EAAE,OAAO;IACT,GAAG,QAAQ;IACX,CAAC,MAAM;IACP,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,mBAAmB,wBAAwB;IAC3C,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,UAAU,EAAE;KAAE,OAAO,IAAI,eAAe,GAAE,QAAQ;CAyJ9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAO,MAAM,EAM3C,CAAA;AAED,eAAO,MAAM,kBAAkB,eAAgB,MAAM,KAAG,eAAe,GAAC,SAOvE,CAAA"}
|
package/out/strategies.js
CHANGED
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
(function (StrategyShortId) {
|
|
6
|
-
StrategyShortId["QSMF"] = "QSMF";
|
|
7
|
-
StrategyShortId["DQMF"] = "DQMF";
|
|
8
|
-
StrategyShortId["IQMF"] = "IQMF";
|
|
9
|
-
StrategyShortId["GQMF"] = "GQMF";
|
|
10
|
-
StrategyShortId["IRMF"] = "IRMF";
|
|
11
|
-
StrategyShortId["GRMF"] = "GRMF";
|
|
12
|
-
StrategyShortId["CF"] = "CF";
|
|
13
|
-
StrategyShortId["CCF"] = "CCF";
|
|
14
|
-
StrategyShortId["Y"] = "Y";
|
|
15
|
-
StrategyShortId["SQMF"] = "SQMF";
|
|
16
|
-
StrategyShortId["RSBMF"] = "RSBMF";
|
|
17
|
-
StrategyShortId["DRBMF"] = "DRBMF";
|
|
18
|
-
StrategyShortId["IRBMF"] = "IRBMF";
|
|
19
|
-
StrategyShortId["GAF"] = "GAF";
|
|
20
|
-
StrategyShortId["AS1BLS"] = "AS1BLS";
|
|
21
|
-
StrategyShortId["GUMF"] = "GUMF";
|
|
22
|
-
StrategyShortId["CUMF"] = "CUMF";
|
|
23
|
-
StrategyShortId["CBMF"] = "CBMF";
|
|
24
|
-
StrategyShortId["ABMF"] = "ABMF";
|
|
25
|
-
})(StrategyShortId || (exports.StrategyShortId = StrategyShortId = {}));
|
|
3
|
+
exports.getStrategyShortId = exports.getMerklStrategies = exports.strategies = exports.StrategyState = void 0;
|
|
4
|
+
const integrations_1 = require("./integrations");
|
|
26
5
|
var StrategyState;
|
|
27
6
|
(function (StrategyState) {
|
|
28
7
|
StrategyState["LIVE"] = "Live";
|
|
@@ -31,157 +10,174 @@ var StrategyState;
|
|
|
31
10
|
StrategyState["PROPOSED"] = "Proposed";
|
|
32
11
|
})(StrategyState || (exports.StrategyState = StrategyState = {}));
|
|
33
12
|
exports.strategies = {
|
|
34
|
-
[StrategyShortId.QSMF]: {
|
|
13
|
+
["QSMF" /* StrategyShortId.QSMF */]: {
|
|
35
14
|
id: 'QuickSwap Static Merkl Farm',
|
|
36
|
-
shortId: StrategyShortId.QSMF
|
|
15
|
+
shortId: "QSMF" /* StrategyShortId.QSMF */,
|
|
37
16
|
state: StrategyState.LIVE,
|
|
38
17
|
contractGithubId: 101,
|
|
39
18
|
color: "#558ac5",
|
|
40
19
|
bgColor: "#000000",
|
|
41
20
|
},
|
|
42
|
-
[StrategyShortId.DQMF]: {
|
|
21
|
+
["DQMF" /* StrategyShortId.DQMF */]: {
|
|
43
22
|
id: 'DefiEdge QuickSwap Merkl Farm',
|
|
44
|
-
shortId: StrategyShortId.DQMF
|
|
23
|
+
shortId: "DQMF" /* StrategyShortId.DQMF */,
|
|
45
24
|
state: StrategyState.LIVE,
|
|
46
25
|
contractGithubId: 80,
|
|
47
26
|
color: "#a5c2ff",
|
|
48
27
|
bgColor: "#000000",
|
|
49
28
|
},
|
|
50
|
-
[StrategyShortId.IQMF]: {
|
|
29
|
+
["IQMF" /* StrategyShortId.IQMF */]: {
|
|
51
30
|
id: 'Ichi QuickSwap Merkl Farm',
|
|
52
|
-
shortId: StrategyShortId.IQMF
|
|
31
|
+
shortId: "IQMF" /* StrategyShortId.IQMF */,
|
|
53
32
|
state: StrategyState.LIVE,
|
|
54
33
|
contractGithubId: 81,
|
|
55
34
|
color: "#965fff",
|
|
56
35
|
bgColor: "#000000",
|
|
57
36
|
},
|
|
58
|
-
[StrategyShortId.GQMF]: {
|
|
37
|
+
["GQMF" /* StrategyShortId.GQMF */]: {
|
|
59
38
|
id: 'Gamma QuickSwap Merkl Farm',
|
|
60
|
-
shortId: StrategyShortId.GQMF
|
|
39
|
+
shortId: "GQMF" /* StrategyShortId.GQMF */,
|
|
61
40
|
state: StrategyState.LIVE,
|
|
62
41
|
contractGithubId: 90,
|
|
63
42
|
color: "#de43ff",
|
|
64
43
|
bgColor: "#140414",
|
|
65
44
|
},
|
|
66
|
-
[StrategyShortId.IRMF]: {
|
|
45
|
+
["IRMF" /* StrategyShortId.IRMF */]: {
|
|
67
46
|
id: 'Ichi Retro Merkl Farm',
|
|
68
|
-
shortId: StrategyShortId.IRMF
|
|
47
|
+
shortId: "IRMF" /* StrategyShortId.IRMF */,
|
|
69
48
|
state: StrategyState.LIVE,
|
|
70
49
|
contractGithubId: 95,
|
|
71
50
|
color: "#28fffb",
|
|
72
51
|
bgColor: "#000000",
|
|
73
52
|
},
|
|
74
|
-
[StrategyShortId.GRMF]: {
|
|
53
|
+
["GRMF" /* StrategyShortId.GRMF */]: {
|
|
75
54
|
id: 'Gamma Retro Merkl Farm',
|
|
76
|
-
shortId: StrategyShortId.GRMF
|
|
55
|
+
shortId: "GRMF" /* StrategyShortId.GRMF */,
|
|
77
56
|
state: StrategyState.LIVE,
|
|
78
57
|
contractGithubId: 99,
|
|
79
58
|
color: "#ff0000",
|
|
80
59
|
bgColor: "#000000",
|
|
81
60
|
},
|
|
82
|
-
[StrategyShortId.CF]: {
|
|
61
|
+
["CF" /* StrategyShortId.CF */]: {
|
|
83
62
|
id: 'Compound Farm',
|
|
84
|
-
shortId: StrategyShortId.CF
|
|
63
|
+
shortId: "CF" /* StrategyShortId.CF */,
|
|
85
64
|
state: StrategyState.LIVE,
|
|
86
65
|
contractGithubId: 79,
|
|
87
66
|
color: "#00d395",
|
|
88
67
|
bgColor: "#000000",
|
|
89
68
|
},
|
|
90
|
-
[StrategyShortId.CCF]: {
|
|
69
|
+
["CCF" /* StrategyShortId.CCF */]: {
|
|
91
70
|
id: 'Curve Convex Farm',
|
|
92
|
-
shortId: StrategyShortId.CCF
|
|
71
|
+
shortId: "CCF" /* StrategyShortId.CCF */,
|
|
93
72
|
state: StrategyState.LIVE,
|
|
94
73
|
contractGithubId: 110,
|
|
95
74
|
color: "#dddddd",
|
|
96
75
|
bgColor: "#000000",
|
|
97
76
|
},
|
|
98
|
-
[StrategyShortId.Y]: {
|
|
77
|
+
["Y" /* StrategyShortId.Y */]: {
|
|
99
78
|
id: 'Yearn',
|
|
100
|
-
shortId: StrategyShortId.Y
|
|
79
|
+
shortId: "Y" /* StrategyShortId.Y */,
|
|
101
80
|
state: StrategyState.LIVE,
|
|
102
81
|
contractGithubId: 114,
|
|
103
82
|
color: "#dc568a",
|
|
104
83
|
bgColor: "#000000",
|
|
105
84
|
},
|
|
106
|
-
[StrategyShortId.SQMF]: {
|
|
85
|
+
["SQMF" /* StrategyShortId.SQMF */]: {
|
|
107
86
|
id: 'Steer QuickSwap Merkl Farm',
|
|
108
|
-
shortId: StrategyShortId.SQMF
|
|
87
|
+
shortId: "SQMF" /* StrategyShortId.SQMF */,
|
|
109
88
|
state: StrategyState.DEVELOPMENT,
|
|
110
89
|
contractGithubId: 85,
|
|
111
90
|
color: "#8587ff",
|
|
112
91
|
bgColor: "#000000",
|
|
113
92
|
},
|
|
114
|
-
[StrategyShortId.GAF]: {
|
|
93
|
+
["GAF" /* StrategyShortId.GAF */]: {
|
|
115
94
|
id: 'Gyroscope Aura Farm',
|
|
116
|
-
shortId: StrategyShortId.GAF
|
|
95
|
+
shortId: "GAF" /* StrategyShortId.GAF */,
|
|
117
96
|
state: StrategyState.DEVELOPMENT,
|
|
118
97
|
contractGithubId: 121,
|
|
119
98
|
color: "#f2fea6",
|
|
120
99
|
bgColor: "#2e005f",
|
|
121
100
|
},
|
|
122
|
-
[StrategyShortId.RSBMF]: {
|
|
101
|
+
["RSBMF" /* StrategyShortId.RSBMF */]: {
|
|
123
102
|
id: 'Retro Static Boosted Merkl Farm',
|
|
124
|
-
shortId: StrategyShortId.RSBMF
|
|
103
|
+
shortId: "RSBMF" /* StrategyShortId.RSBMF */,
|
|
125
104
|
state: StrategyState.PROPOSED,
|
|
126
105
|
contractGithubId: 122,
|
|
127
106
|
color: "#ff0000",
|
|
128
107
|
bgColor: "#420060",
|
|
129
108
|
},
|
|
130
|
-
[StrategyShortId.DRBMF]: {
|
|
109
|
+
["DRBMF" /* StrategyShortId.DRBMF */]: {
|
|
131
110
|
id: 'DefiEdge Retro Boosted Merkl Farm',
|
|
132
|
-
shortId: StrategyShortId.DRBMF
|
|
111
|
+
shortId: "DRBMF" /* StrategyShortId.DRBMF */,
|
|
133
112
|
state: StrategyState.PROPOSED,
|
|
134
113
|
contractGithubId: 98,
|
|
135
114
|
color: "#ff0000",
|
|
136
115
|
bgColor: "#420060",
|
|
137
116
|
},
|
|
138
|
-
[StrategyShortId.IRBMF]: {
|
|
117
|
+
["IRBMF" /* StrategyShortId.IRBMF */]: {
|
|
139
118
|
id: 'Ichi Retro Boosted Merkl Farm',
|
|
140
|
-
shortId: StrategyShortId.IRBMF
|
|
119
|
+
shortId: "IRBMF" /* StrategyShortId.IRBMF */,
|
|
141
120
|
state: StrategyState.PROPOSED,
|
|
142
121
|
contractGithubId: 91,
|
|
143
122
|
color: "#e1d1ff",
|
|
144
123
|
bgColor: "#420060",
|
|
145
124
|
},
|
|
146
|
-
[StrategyShortId.AS1BLS]: {
|
|
125
|
+
["AS1BLS" /* StrategyShortId.AS1BLS */]: {
|
|
147
126
|
id: 'Aave Stader 1inch Balancer',
|
|
148
|
-
shortId: StrategyShortId.AS1BLS
|
|
127
|
+
shortId: "AS1BLS" /* StrategyShortId.AS1BLS */,
|
|
149
128
|
state: StrategyState.PROPOSED,
|
|
150
129
|
contractGithubId: 127,
|
|
151
130
|
color: "#07a658",
|
|
152
131
|
bgColor: "#1a024d",
|
|
153
132
|
},
|
|
154
|
-
[StrategyShortId.GUMF]: {
|
|
133
|
+
["GUMF" /* StrategyShortId.GUMF */]: {
|
|
155
134
|
id: 'Gamma UniswapV3 Merkl Farm',
|
|
156
|
-
shortId: StrategyShortId.GUMF
|
|
135
|
+
shortId: "GUMF" /* StrategyShortId.GUMF */,
|
|
157
136
|
state: StrategyState.PROPOSED,
|
|
158
137
|
contractGithubId: 145,
|
|
159
138
|
color: "#ff0000",
|
|
160
139
|
bgColor: "#000000",
|
|
161
140
|
},
|
|
162
|
-
[StrategyShortId.CUMF]: {
|
|
141
|
+
["CUMF" /* StrategyShortId.CUMF */]: {
|
|
163
142
|
id: 'Charm UniswapV3 Merkl Farm',
|
|
164
|
-
shortId: StrategyShortId.CUMF
|
|
143
|
+
shortId: "CUMF" /* StrategyShortId.CUMF */,
|
|
165
144
|
state: StrategyState.PROPOSED,
|
|
166
145
|
contractGithubId: 144,
|
|
167
146
|
color: "#ff2299",
|
|
168
147
|
bgColor: "#000000",
|
|
169
148
|
},
|
|
170
|
-
[StrategyShortId.CBMF]: {
|
|
149
|
+
["CBMF" /* StrategyShortId.CBMF */]: {
|
|
171
150
|
id: 'Charm BaseSwap Merkl Farm',
|
|
172
|
-
shortId: StrategyShortId.CBMF
|
|
151
|
+
shortId: "CBMF" /* StrategyShortId.CBMF */,
|
|
173
152
|
state: StrategyState.PROPOSED,
|
|
174
153
|
contractGithubId: 148,
|
|
175
154
|
color: "#2238ff",
|
|
176
155
|
bgColor: "#000000",
|
|
177
156
|
},
|
|
178
|
-
[StrategyShortId.ABMF]: {
|
|
157
|
+
["ABMF" /* StrategyShortId.ABMF */]: {
|
|
179
158
|
id: 'A51 BaseSwap Merkl Farm',
|
|
180
|
-
shortId: StrategyShortId.ABMF
|
|
159
|
+
shortId: "ABMF" /* StrategyShortId.ABMF */,
|
|
181
160
|
state: StrategyState.PROPOSED,
|
|
182
161
|
contractGithubId: 147,
|
|
183
162
|
color: "#e74c3c",
|
|
184
163
|
bgColor: "#000000",
|
|
185
164
|
},
|
|
186
165
|
};
|
|
166
|
+
const getMerklStrategies = () => {
|
|
167
|
+
const strategyShortIds = integrations_1.integrations.angle.protocols.merkl.strategies;
|
|
168
|
+
return strategyShortIds.map(shortId => {
|
|
169
|
+
const strategy = exports.strategies[shortId];
|
|
170
|
+
return strategy.id;
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
exports.getMerklStrategies = getMerklStrategies;
|
|
174
|
+
const getStrategyShortId = (strategyId) => {
|
|
175
|
+
for (const strategyShortId of Object.keys(exports.strategies)) {
|
|
176
|
+
if (exports.strategies[strategyShortId].id === strategyId) {
|
|
177
|
+
return strategyShortId;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return undefined;
|
|
181
|
+
};
|
|
182
|
+
exports.getStrategyShortId = getStrategyShortId;
|
|
187
183
|
//# sourceMappingURL=strategies.js.map
|
package/out/strategies.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strategies.js","sourceRoot":"","sources":["../src/strategies.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"strategies.js","sourceRoot":"","sources":["../src/strategies.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAiC5C,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,4DAA2C,CAAA;IAC3C,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;AACvB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAEY,QAAA,UAAU,GAA4C;IACjE,mCAAsB,EAAE;QACtB,EAAE,EAAE,6BAA6B;QACjC,OAAO,mCAAsB;QAC7B,KAAK,EAAE,aAAa,CAAC,IAAI;QACzB,gBAAgB,EAAE,GAAG;QACrB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,SAAS;KACnB;IACD,mCAAsB,EAAE;QACtB,EAAE,EAAE,+BAA+B;QACnC,OAAO,mCAAsB;QAC7B,KAAK,EAAE,aAAa,CAAC,IAAI;QACzB,gBAAgB,EAAE,EAAE;QACpB,KAAK,EAAE,SAAS;Q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eAAkC,CAAC,CAAC,EAAE,KAAK,UAAU,EAAE,CAAC;YACrE,OAAO,eAAkC,CAAC;QAC5C,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AAPY,QAAA,kBAAkB,sBAO9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stabilitydao/stability",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Stability Integration Library",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -16,12 +16,19 @@
|
|
|
16
16
|
"private": false,
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "tsc",
|
|
19
|
+
"test": "jest",
|
|
20
|
+
"coverage": "jest --collect-coverage",
|
|
19
21
|
"overview": "ts-node tools/overview.ts",
|
|
20
|
-
"overview-full": "ts-node tools/overview-full.ts"
|
|
22
|
+
"overview-full": "ts-node tools/overview-full.ts",
|
|
23
|
+
"postbuild": "shx cp src/*.tokenlist.json out/"
|
|
21
24
|
},
|
|
22
25
|
"devDependencies": {
|
|
26
|
+
"@types/jest": "^29.5.12",
|
|
23
27
|
"ansis": "^3.2.0",
|
|
24
28
|
"console-table-printer": "^2.12.0",
|
|
29
|
+
"jest": "^29.7.0",
|
|
30
|
+
"shx": "^0.3.4",
|
|
31
|
+
"ts-jest": "^29.1.4",
|
|
25
32
|
"ts-node": "^10.9.2",
|
|
26
33
|
"typescript": "^5.4.5"
|
|
27
34
|
}
|