@stabilitydao/stability 0.1.2 → 0.2.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 +9 -0
- package/out/deployments.d.ts +14 -0
- package/out/deployments.d.ts.map +1 -0
- package/out/deployments.js +26 -0
- package/out/deployments.js.map +1 -0
- package/out/index.d.ts +6 -0
- package/out/index.d.ts.map +1 -0
- package/out/index.js.map +1 -0
- package/out/integrations.d.ts +47 -0
- package/out/integrations.d.ts.map +1 -0
- package/out/integrations.js +600 -0
- package/out/integrations.js.map +1 -0
- package/out/networks.d.ts +45 -0
- package/out/networks.d.ts.map +1 -0
- package/out/networks.js +172 -0
- package/out/networks.js.map +1 -0
- package/out/strategies.d.ts +39 -0
- package/out/strategies.d.ts.map +1 -0
- package/out/strategies.js +187 -0
- package/out/strategies.js.map +1 -0
- package/package.json +3 -1
- package/.github/workflows/github.yml +0 -22
- package/.github/workflows/npm.yml +0 -19
- package/src/deployments.ts +0 -23
- package/src/index.ts +0 -21
- package/src/integrations.ts +0 -576
- package/src/networks.ts +0 -211
- package/src/strategies.ts +0 -175
- package/tools/overview.ts +0 -18
- package/tsconfig.json +0 -14
package/src/networks.ts
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
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
|
-
}
|
package/src/strategies.ts
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
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
|
-
};
|
package/tools/overview.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|