@stabilitydao/host 0.2.1 → 0.2.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.
- package/out/activity/builder.d.ts +135 -0
- package/out/activity/builder.d.ts.map +1 -0
- package/out/activity/builder.js +17 -0
- package/out/activity/builder.js.map +1 -0
- package/out/activity/index.d.ts +18 -0
- package/out/activity/index.d.ts.map +1 -0
- package/out/activity/index.js +31 -0
- package/out/activity/index.js.map +1 -0
- package/out/agents.d.ts +21 -0
- package/out/agents.d.ts.map +1 -0
- package/out/agents.js +16 -0
- package/out/agents.js.map +1 -0
- package/out/api.d.ts +47 -0
- package/out/api.d.ts.map +1 -0
- package/out/api.js +3 -0
- package/out/api.js.map +1 -0
- package/out/assets.d.ts +13 -0
- package/out/assets.d.ts.map +1 -0
- package/out/assets.js +1515 -0
- package/out/assets.js.map +1 -0
- package/out/chains.d.ts +105 -0
- package/out/chains.d.ts.map +1 -0
- package/out/chains.js +591 -0
- package/out/chains.js.map +1 -0
- package/out/host.d.ts +407 -0
- package/out/host.d.ts.map +1 -0
- package/out/host.js +765 -0
- package/out/host.js.map +1 -0
- package/out/index.d.ts +10 -0
- package/out/index.d.ts.map +1 -0
- package/out/index.js.map +1 -0
- package/out/storage/daoMetaData.d.ts +5 -0
- package/out/storage/daoMetaData.d.ts.map +1 -0
- package/out/storage/daoMetaData.js +311 -0
- package/out/storage/daoMetaData.js.map +1 -0
- package/out/storage/daos.d.ts +3 -0
- package/out/storage/daos.d.ts.map +1 -0
- package/out/storage/daos.js +303 -0
- package/out/storage/daos.js.map +1 -0
- package/package.json +7 -1
- package/.github/workflows/npm.yml +0 -19
- package/.github/workflows/prettier.yml +0 -25
- package/.github/workflows/test.yml +0 -29
- package/.prettierignore +0 -4
- package/.prettierrc +0 -1
- package/jest.config.js +0 -9
- package/logo.png +0 -0
- package/src/activity/builder.ts +0 -141
- package/src/activity/index.ts +0 -34
- package/src/agents.ts +0 -31
- package/src/api.ts +0 -51
- package/src/assets.ts +0 -1579
- package/src/chains.ts +0 -604
- package/src/host.ts +0 -1212
- package/src/index.ts +0 -36
- package/src/storage/daoMetaData.ts +0 -312
- package/src/storage/daos.ts +0 -306
- package/tests/assets.test.ts +0 -61
- package/tests/chains.test.ts +0 -22
- package/tests/host.test.ts +0 -811
- package/tsconfig.json +0 -18
- /package/{src → out}/tokenlist.json +0 -0
package/src/index.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
chains,
|
|
3
|
-
chainStatusInfo,
|
|
4
|
-
ChainName,
|
|
5
|
-
ChainStatus,
|
|
6
|
-
IChain,
|
|
7
|
-
ChainStatusInfo,
|
|
8
|
-
getChainByName,
|
|
9
|
-
} from "./chains";
|
|
10
|
-
import tokenlist from "./tokenlist.json";
|
|
11
|
-
import { assets, getAsset } from "./assets";
|
|
12
|
-
import { Activity } from "./activity";
|
|
13
|
-
import { LifecyclePhase, Host, UnitStatus, UnitType, getDAOUnit } from "./host";
|
|
14
|
-
import { daos } from "./storage/daos";
|
|
15
|
-
import { daoMetaData } from "./storage/daoMetaData";
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
chains,
|
|
19
|
-
chainStatusInfo,
|
|
20
|
-
ChainName,
|
|
21
|
-
ChainStatus,
|
|
22
|
-
getChainByName,
|
|
23
|
-
tokenlist,
|
|
24
|
-
assets,
|
|
25
|
-
getAsset,
|
|
26
|
-
Activity,
|
|
27
|
-
LifecyclePhase,
|
|
28
|
-
Host,
|
|
29
|
-
UnitStatus,
|
|
30
|
-
UnitType,
|
|
31
|
-
daos,
|
|
32
|
-
daoMetaData,
|
|
33
|
-
getDAOUnit,
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export type { IChain, ChainStatusInfo };
|
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import { IDAOMetaData, UnitComponentCategory } from "../host";
|
|
2
|
-
import { ArtifactType } from "../activity/builder";
|
|
3
|
-
import { AgentRole, emptyRuntime } from "../agents";
|
|
4
|
-
|
|
5
|
-
export const daoMetaData: { [symbol: string]: IDAOMetaData } = {
|
|
6
|
-
host: {
|
|
7
|
-
builderActivity: {
|
|
8
|
-
multisig: [
|
|
9
|
-
"matic:0x36780E69D38c8b175761c6C5F8eD42E61ee490E9",
|
|
10
|
-
"sonic:0xF564EBaC1182578398E94868bea1AbA6ba339652",
|
|
11
|
-
"avax:0x06111E02BEb85B57caebEf15F5f90Bc82D54da3A",
|
|
12
|
-
],
|
|
13
|
-
repo: [
|
|
14
|
-
"stabilitydao/stability",
|
|
15
|
-
"stabilitydao/stability-contracts",
|
|
16
|
-
"stabilitydao/stability-ui",
|
|
17
|
-
"stabilitydao/stability-subgraph",
|
|
18
|
-
"stabilitydao/lending-deploy",
|
|
19
|
-
"stabilitydao/stability-node-pro",
|
|
20
|
-
"stabilitydao/host",
|
|
21
|
-
"stabilitydao/host-contracts",
|
|
22
|
-
"stabilitydao/host-agent",
|
|
23
|
-
"stabilitydao/host-ui",
|
|
24
|
-
],
|
|
25
|
-
burnRate: [
|
|
26
|
-
{
|
|
27
|
-
period: "Sep, 2025",
|
|
28
|
-
usdAmount: 32200,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
period: "Oct, 2025",
|
|
32
|
-
usdAmount: 31100,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
period: "Nov, 2025",
|
|
36
|
-
usdAmount: 31345,
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
workers: [
|
|
40
|
-
{
|
|
41
|
-
github: "a17",
|
|
42
|
-
rate: 65,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
github: "iammrjude",
|
|
46
|
-
rate: 20,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
github: "omriss",
|
|
50
|
-
rate: 50,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
github: "DevTeaLeaf",
|
|
54
|
-
rate: 25,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
github: "nikita-dogil",
|
|
58
|
-
rate: 26,
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
conveyors: [
|
|
62
|
-
{
|
|
63
|
-
unitId: "stability:stabilityFarm",
|
|
64
|
-
componentCategory: UnitComponentCategory.DEFI_STRATEGY,
|
|
65
|
-
name: "Strategies",
|
|
66
|
-
symbol: "📜",
|
|
67
|
-
type: "Task",
|
|
68
|
-
label: {
|
|
69
|
-
name: "conveyor:STRATEGY",
|
|
70
|
-
description:
|
|
71
|
-
"Developing and deploying a new DeFi asset management strategy on the **Strategies** conveyor belt.",
|
|
72
|
-
color: "#cc02ff",
|
|
73
|
-
},
|
|
74
|
-
issueTitleTemplate:
|
|
75
|
-
"📜 %STRATEGY_SHORT_ID% | %STRATEGY_ID%: %STEP_NAME%",
|
|
76
|
-
taskIdIs: "%STRATEGY_SHORT_ID%",
|
|
77
|
-
description: "Implement and integrate new strategy smart contract",
|
|
78
|
-
steps: [
|
|
79
|
-
{
|
|
80
|
-
name: "Prepare",
|
|
81
|
-
issues: [
|
|
82
|
-
{
|
|
83
|
-
repo: "stabilitydao/stability",
|
|
84
|
-
issueTemplate: "strategy.md",
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
artifacts: [ArtifactType.URL_RELEASE],
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: "Contract",
|
|
91
|
-
issues: [
|
|
92
|
-
{
|
|
93
|
-
repo: "stabilitydao/stability-contracts",
|
|
94
|
-
generator: "yarn issue",
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
artifacts: [ArtifactType.CONTRACT_ADDRESS],
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: "Integrate",
|
|
101
|
-
issues: [
|
|
102
|
-
{
|
|
103
|
-
repo: "stabilitydao/stability",
|
|
104
|
-
taskList: [
|
|
105
|
-
"Setup platform in chains",
|
|
106
|
-
"Add farms / strategy init params",
|
|
107
|
-
"Deploy vaults",
|
|
108
|
-
"Do post setup (toggleDistributorOperator, etc)",
|
|
109
|
-
"Add all necessary tokens to `src/stability.tokenlist.json`, `src/assets.ts`",
|
|
110
|
-
"Set status READY to strategy in `src/strategies.ts`",
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
artifacts: [ArtifactType.URL_RELEASE],
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: "Backend",
|
|
118
|
-
issues: [
|
|
119
|
-
{
|
|
120
|
-
repo: "stabilitydao/stability-node-pro",
|
|
121
|
-
taskList: ["Update library"],
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: "Frontend",
|
|
127
|
-
issues: [
|
|
128
|
-
{
|
|
129
|
-
repo: "stabilitydao/stability-ui",
|
|
130
|
-
taskList: [
|
|
131
|
-
"Update library",
|
|
132
|
-
"Generate and fill new vault OG images",
|
|
133
|
-
],
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
unitId: "stability:stabilityFarm",
|
|
141
|
-
componentCategory: UnitComponentCategory.CHAIN_SUPPORT,
|
|
142
|
-
name: "Chains",
|
|
143
|
-
symbol: "⛓️",
|
|
144
|
-
type: "Task",
|
|
145
|
-
label: {
|
|
146
|
-
name: "conveyor:CHAIN",
|
|
147
|
-
description: "Chain integration by Chains conveyor",
|
|
148
|
-
color: "#b1dc13",
|
|
149
|
-
},
|
|
150
|
-
issueTitleTemplate: "⛓️ %CHAIN_NAME% [%CHAIN_ID%]: %STEP_NAME%",
|
|
151
|
-
taskIdIs: "%CHAIN_NAME%",
|
|
152
|
-
description: "Add chain support",
|
|
153
|
-
steps: [
|
|
154
|
-
{
|
|
155
|
-
name: "Prepare",
|
|
156
|
-
issues: [
|
|
157
|
-
{
|
|
158
|
-
repo: "stabilitydao/stability",
|
|
159
|
-
taskList: [
|
|
160
|
-
"Add chain image to static repo",
|
|
161
|
-
"add new chain to `src/chains.ts` with status `ChainStatus.DEVELOPMENT`",
|
|
162
|
-
"fill multisig",
|
|
163
|
-
"fill assets",
|
|
164
|
-
"fill integrations",
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
artifacts: [ArtifactType.URL_RELEASE],
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
name: "Contracts",
|
|
172
|
-
issues: [
|
|
173
|
-
{
|
|
174
|
-
repo: "stabilitydao/stability-contracts",
|
|
175
|
-
generator:
|
|
176
|
-
"🎇 Run `yarn issue` in library repo, fill issue id to `src/chains.ts`.",
|
|
177
|
-
},
|
|
178
|
-
],
|
|
179
|
-
artifacts: [ArtifactType.CONTRACT_ADDRESS],
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: "Subgraph",
|
|
183
|
-
issues: [
|
|
184
|
-
{
|
|
185
|
-
repo: "stabilitydao/stability-subgraph",
|
|
186
|
-
taskList: ["add chain support", "deploy subgraph"],
|
|
187
|
-
},
|
|
188
|
-
],
|
|
189
|
-
result: "subgraph endpoint url",
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
name: "Deployment",
|
|
193
|
-
issues: [
|
|
194
|
-
{
|
|
195
|
-
repo: "stabilitydao/stability",
|
|
196
|
-
taskList: ["Add chain to `src/deployments.ts`"],
|
|
197
|
-
},
|
|
198
|
-
],
|
|
199
|
-
artifacts: [ArtifactType.URL_RELEASE],
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
name: "Backend",
|
|
203
|
-
issues: [
|
|
204
|
-
{
|
|
205
|
-
repo: "stabilitydao/stability-node-pro",
|
|
206
|
-
taskList: ["Show chain in API", "Setup TxSender"],
|
|
207
|
-
},
|
|
208
|
-
],
|
|
209
|
-
result: "API reply has chain data",
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
name: "Frontend",
|
|
213
|
-
issues: [
|
|
214
|
-
{
|
|
215
|
-
repo: "stabilitydao/stability-ui",
|
|
216
|
-
taskList: [
|
|
217
|
-
"add chain support to dapp",
|
|
218
|
-
"show chain in vaults filter",
|
|
219
|
-
],
|
|
220
|
-
},
|
|
221
|
-
],
|
|
222
|
-
result: "beta UI show chain",
|
|
223
|
-
},
|
|
224
|
-
],
|
|
225
|
-
},
|
|
226
|
-
],
|
|
227
|
-
pools: [
|
|
228
|
-
{
|
|
229
|
-
// deprecated
|
|
230
|
-
unitIds: ["stability:stabilityFarm"],
|
|
231
|
-
// deprecated
|
|
232
|
-
name: "VaaS",
|
|
233
|
-
label: {
|
|
234
|
-
// symbol:unitName
|
|
235
|
-
name: "STBL:VaaS",
|
|
236
|
-
description: "New Stability VaaS product request / feature",
|
|
237
|
-
color: "#02a3fc",
|
|
238
|
-
},
|
|
239
|
-
//description: "Build CVault, MetaVault, Lending market",
|
|
240
|
-
artifacts: [ArtifactType.URL_UI],
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
// deprecated
|
|
244
|
-
unitIds: ["stability:stabilityMarket"],
|
|
245
|
-
// deprecated
|
|
246
|
-
name: "Lending",
|
|
247
|
-
label: {
|
|
248
|
-
name: "STBL:Lending",
|
|
249
|
-
description:
|
|
250
|
-
"Lending feature, product request or maintenance issue",
|
|
251
|
-
color: "#3b15d2",
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
unitIds: ["core"],
|
|
256
|
-
name: "Host",
|
|
257
|
-
label: {
|
|
258
|
-
name: "HOST:dao.host",
|
|
259
|
-
description: "Building Host",
|
|
260
|
-
color: "#00b243",
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
],
|
|
264
|
-
},
|
|
265
|
-
agents: [
|
|
266
|
-
{
|
|
267
|
-
roles: [AgentRole.OPERATOR],
|
|
268
|
-
name: "Host Operator",
|
|
269
|
-
image: "BUILDER.png",
|
|
270
|
-
...emptyRuntime,
|
|
271
|
-
api: [],
|
|
272
|
-
},
|
|
273
|
-
],
|
|
274
|
-
},
|
|
275
|
-
stbl: {
|
|
276
|
-
agents: [
|
|
277
|
-
{
|
|
278
|
-
roles: [AgentRole.OPERATOR],
|
|
279
|
-
name: "Stability Operator",
|
|
280
|
-
telegram: "@stability_dao_bot",
|
|
281
|
-
image: "OPERATOR.png",
|
|
282
|
-
...emptyRuntime,
|
|
283
|
-
api: ["https://api.stability.farm", "https://api.stabilitydao.org"],
|
|
284
|
-
},
|
|
285
|
-
],
|
|
286
|
-
},
|
|
287
|
-
mevbot: {
|
|
288
|
-
builderActivity: {
|
|
289
|
-
multisig: [],
|
|
290
|
-
repo: ["stabilitydao/mevbot"],
|
|
291
|
-
pools: [],
|
|
292
|
-
conveyors: [],
|
|
293
|
-
burnRate: [],
|
|
294
|
-
workers: [
|
|
295
|
-
{
|
|
296
|
-
github: "a17",
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
github: "iammrjude",
|
|
300
|
-
},
|
|
301
|
-
],
|
|
302
|
-
},
|
|
303
|
-
agents: [
|
|
304
|
-
{
|
|
305
|
-
roles: [AgentRole.OPERATOR],
|
|
306
|
-
name: "MEV Earner",
|
|
307
|
-
...emptyRuntime,
|
|
308
|
-
api: [],
|
|
309
|
-
},
|
|
310
|
-
],
|
|
311
|
-
},
|
|
312
|
-
};
|
package/src/storage/daos.ts
DELETED
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FundingType,
|
|
3
|
-
IDAOData,
|
|
4
|
-
LifecyclePhase,
|
|
5
|
-
UnitStatus,
|
|
6
|
-
UnitType,
|
|
7
|
-
} from "../host";
|
|
8
|
-
import { ChainName } from "../chains";
|
|
9
|
-
import { Activity } from "../activity";
|
|
10
|
-
|
|
11
|
-
export const daos: IDAOData[] = [
|
|
12
|
-
{
|
|
13
|
-
phase: LifecyclePhase.DRAFT,
|
|
14
|
-
name: "Host Dev",
|
|
15
|
-
symbol: "HOST",
|
|
16
|
-
socials: ["https://t.me/dao_host"],
|
|
17
|
-
activity: [Activity.BUILDER, Activity.DEFI],
|
|
18
|
-
images: {
|
|
19
|
-
token: "/builder.png",
|
|
20
|
-
},
|
|
21
|
-
deployments: {},
|
|
22
|
-
chainSettings: {
|
|
23
|
-
bbRate: 10,
|
|
24
|
-
},
|
|
25
|
-
initialChain: ChainName.ETHEREUM,
|
|
26
|
-
units: [
|
|
27
|
-
{
|
|
28
|
-
unitId: "core",
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
params: {
|
|
32
|
-
vePeriod: 180,
|
|
33
|
-
pvpFee: 100,
|
|
34
|
-
},
|
|
35
|
-
funding: [
|
|
36
|
-
{
|
|
37
|
-
type: FundingType.SEED,
|
|
38
|
-
start: 1772323200, // Sunday, 1 March 2026
|
|
39
|
-
end: 1776211200, // Wednesday, 15 April 2026
|
|
40
|
-
minRaise: 40000,
|
|
41
|
-
maxRaise: 500000,
|
|
42
|
-
raised: 0,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
type: FundingType.TGE,
|
|
46
|
-
start: 1793577600, // Monday, 2 November 2026
|
|
47
|
-
end: 1794182399, // Sunday, 8 November 2026, 23:59:59
|
|
48
|
-
claim: 1794268800, // Tuesday, 10 November 2026
|
|
49
|
-
minRaise: 400000,
|
|
50
|
-
maxRaise: 1200000,
|
|
51
|
-
raised: 0,
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
vesting: [],
|
|
55
|
-
governanceSettings: {},
|
|
56
|
-
deployer: "0x0",
|
|
57
|
-
daoMetaDataLocation: "local",
|
|
58
|
-
unitsMetaData: [
|
|
59
|
-
{
|
|
60
|
-
name: "dao.host",
|
|
61
|
-
status: UnitStatus.BUILDING,
|
|
62
|
-
revenueShare: 100,
|
|
63
|
-
type: UnitType.DEFI_PROTOCOL,
|
|
64
|
-
//components: {},
|
|
65
|
-
emoji: "🍀",
|
|
66
|
-
ui: [
|
|
67
|
-
{
|
|
68
|
-
href: "https://dao.host",
|
|
69
|
-
title: "dao.host",
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
phase: LifecyclePhase.LIVE_VESTING,
|
|
77
|
-
name: "Stability",
|
|
78
|
-
symbol: "STBL",
|
|
79
|
-
socials: [
|
|
80
|
-
"https://x.com/stabilitydao",
|
|
81
|
-
"https://discord.com/invite/R3nnetWzC9",
|
|
82
|
-
"https://t.me/stabilitydao",
|
|
83
|
-
],
|
|
84
|
-
activity: [Activity.DEFI],
|
|
85
|
-
images: {
|
|
86
|
-
token: "/stbl.svg",
|
|
87
|
-
xToken: "/xstbl.png",
|
|
88
|
-
daoToken: "/STBL_DAO.png",
|
|
89
|
-
},
|
|
90
|
-
deployments: {
|
|
91
|
-
["146"]: {
|
|
92
|
-
tgeToken: "0x4D61CB8553bB5Db02DF3bdc6CDa88AA85b32224b",
|
|
93
|
-
token: "0x78a76316F66224CBaCA6e70acB24D5ee5b2Bd2c7",
|
|
94
|
-
xToken: "0x902215dd96a291b256a3aef6c4dee62d2a9b80cb",
|
|
95
|
-
staking: "0x17a7cf838a7c91de47552a9f65822b547f9a6997",
|
|
96
|
-
daoToken: "0x77773Cb473aD1bfE991bA299a127F64b45C17777",
|
|
97
|
-
revenueRouter: "0x23b8cc22c4c82545f4b451b11e2f17747a730810",
|
|
98
|
-
recovery: "0xB8d6019eD82a9e6216c9Bf87cAf145fFe4439b40",
|
|
99
|
-
vesting: {
|
|
100
|
-
["Investors"]: "0x1a125ff7efdB54dc9EFB4Ad90C552C4C8822b212",
|
|
101
|
-
["Foundation"]: "0x8C42C261A3104cEEFBb388CFd6C1f0E7c9F22062",
|
|
102
|
-
["Community"]: "0xEF2CE83527FAE22E0012Efc4d64987C1a51448c5",
|
|
103
|
-
["Team"]: "0xe6C2AA6e67EF1B806B9Daec7147b113051a445E8",
|
|
104
|
-
},
|
|
105
|
-
tokenBridge: "0xD6a8b05f08834Ed2f205E3d591CD6D1A84b7C19B",
|
|
106
|
-
xTokenBridge: "0x533A0c7869e36D1640D4058Bac4604DB6b4d7AD5",
|
|
107
|
-
},
|
|
108
|
-
["9745"]: {
|
|
109
|
-
token: "0xfdf91362B7E9330F232e500c0236a02B0DE3e492",
|
|
110
|
-
xToken: "0xF40D0724599282CaF9dfb66feB630e936bC0CFBE",
|
|
111
|
-
staking: "0x601572b91DC054Be500392A6d3e15c690140998D",
|
|
112
|
-
revenueRouter: "0x5AC5b2740F77200CCe6562795cFcf4c3c2aC3745",
|
|
113
|
-
daoToken: "0x87C51aa090587790A5298ea4C2d0DBbcCD0026A6",
|
|
114
|
-
tokenBridge: "0xfdf91362B7E9330F232e500c0236a02B0DE3e492",
|
|
115
|
-
xTokenBridge: "0x4E3F0A27bbF443Ba81FCf17E28F4100f35b1b51B",
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
chainSettings: {
|
|
119
|
-
bbRate: 100,
|
|
120
|
-
},
|
|
121
|
-
initialChain: ChainName.SONIC,
|
|
122
|
-
units: [
|
|
123
|
-
{
|
|
124
|
-
unitId: "xstbl",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
unitId: "stability:stabilityFarm",
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
unitId: "stability:stabilityMarket",
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
params: {
|
|
134
|
-
vePeriod: 180,
|
|
135
|
-
pvpFee: 80,
|
|
136
|
-
minPower: 4000,
|
|
137
|
-
recoveryShare: 10,
|
|
138
|
-
},
|
|
139
|
-
funding: [
|
|
140
|
-
{
|
|
141
|
-
type: FundingType.TGE,
|
|
142
|
-
start: 1740700800,
|
|
143
|
-
end: 1741132800,
|
|
144
|
-
minRaise: 250000,
|
|
145
|
-
maxRaise: 500000,
|
|
146
|
-
raised: 500000,
|
|
147
|
-
claim: 1741167300,
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
vesting: [
|
|
151
|
-
{
|
|
152
|
-
name: "Investors",
|
|
153
|
-
allocation: 20000000,
|
|
154
|
-
start: 1756954800,
|
|
155
|
-
end: 1788490800,
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: "Foundation",
|
|
159
|
-
allocation: 30000000,
|
|
160
|
-
start: 1756954800,
|
|
161
|
-
end: 1883098800,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
name: "Community",
|
|
165
|
-
allocation: 19972000,
|
|
166
|
-
start: 1756954800,
|
|
167
|
-
end: 1883098800,
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: "Team",
|
|
171
|
-
allocation: 20000000,
|
|
172
|
-
start: 1756954800,
|
|
173
|
-
end: 1883098800,
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
governanceSettings: {
|
|
177
|
-
proposalThreshold: 100_000,
|
|
178
|
-
ttBribe: 10,
|
|
179
|
-
},
|
|
180
|
-
deployer: "0x0",
|
|
181
|
-
daoMetaDataLocation: "local",
|
|
182
|
-
unitsMetaData: [
|
|
183
|
-
{
|
|
184
|
-
name: "PVP",
|
|
185
|
-
status: UnitStatus.LIVE,
|
|
186
|
-
revenueShare: 100,
|
|
187
|
-
type: UnitType.PVP,
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: "VaaS",
|
|
191
|
-
status: UnitStatus.LIVE,
|
|
192
|
-
revenueShare: 100,
|
|
193
|
-
type: UnitType.DEFI_PROTOCOL,
|
|
194
|
-
/*components: {
|
|
195
|
-
[UnitComponentCategory.DEFI_STRATEGY]: Object.keys(strategies).filter(
|
|
196
|
-
(s) =>
|
|
197
|
-
strategies[s as StrategyShortId].state !==
|
|
198
|
-
StrategyState.CANCELLED,
|
|
199
|
-
) as StrategyShortId[],
|
|
200
|
-
[UnitComponentCategory.CHAIN_SUPPORT]: [
|
|
201
|
-
ChainName.SONIC,
|
|
202
|
-
ChainName.AVALANCHE,
|
|
203
|
-
ChainName.PLASMA,
|
|
204
|
-
],
|
|
205
|
-
},*/
|
|
206
|
-
emoji: "🧊",
|
|
207
|
-
ui: [
|
|
208
|
-
{
|
|
209
|
-
href: "https://stability.farm/vaults",
|
|
210
|
-
title: "All Vaults",
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
href: "https://stability.farm/metavaults",
|
|
214
|
-
title: "Meta Vaults",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
href: "https://stability.farm/leverage-vaults",
|
|
218
|
-
title: "Leverage Vaults",
|
|
219
|
-
},
|
|
220
|
-
],
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: "Lending",
|
|
224
|
-
status: UnitStatus.LIVE,
|
|
225
|
-
revenueShare: 25,
|
|
226
|
-
type: UnitType.DEFI_PROTOCOL,
|
|
227
|
-
/*components: {
|
|
228
|
-
[UnitComponentCategory.ENGINE_SUPPORT]: [
|
|
229
|
-
LendingEngine.AAVE_3_0_2,
|
|
230
|
-
LendingEngine.AAVE_3_5,
|
|
231
|
-
],
|
|
232
|
-
},*/
|
|
233
|
-
emoji: "🏦",
|
|
234
|
-
ui: [
|
|
235
|
-
{
|
|
236
|
-
href: "https://stability.farm/lending",
|
|
237
|
-
title: "Markets",
|
|
238
|
-
},
|
|
239
|
-
],
|
|
240
|
-
},
|
|
241
|
-
],
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
phase: LifecyclePhase.DRAFT,
|
|
245
|
-
name: "MEV Fighter",
|
|
246
|
-
symbol: "MEVBOT",
|
|
247
|
-
socials: [],
|
|
248
|
-
activity: [Activity.BUILDER, Activity.MEV],
|
|
249
|
-
images: {
|
|
250
|
-
token: "/mevbot.jpg",
|
|
251
|
-
},
|
|
252
|
-
deployments: {},
|
|
253
|
-
chainSettings: {
|
|
254
|
-
bbRate: 50,
|
|
255
|
-
},
|
|
256
|
-
initialChain: ChainName.ETHEREUM,
|
|
257
|
-
units: [
|
|
258
|
-
{
|
|
259
|
-
unitId: "mevbot:liquidation",
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
unitId: "mevbot:arb",
|
|
263
|
-
},
|
|
264
|
-
],
|
|
265
|
-
params: {
|
|
266
|
-
vePeriod: 120,
|
|
267
|
-
pvpFee: 100,
|
|
268
|
-
},
|
|
269
|
-
funding: [
|
|
270
|
-
{
|
|
271
|
-
type: FundingType.SEED,
|
|
272
|
-
start: 1772323200, // Sunday, 1 March 2026
|
|
273
|
-
end: 1780185600, // Sunday, 31 May 2026
|
|
274
|
-
minRaise: 50000,
|
|
275
|
-
maxRaise: 250000,
|
|
276
|
-
raised: 0,
|
|
277
|
-
},
|
|
278
|
-
],
|
|
279
|
-
vesting: [],
|
|
280
|
-
governanceSettings: {},
|
|
281
|
-
deployer: "0x0",
|
|
282
|
-
daoMetaDataLocation: "local",
|
|
283
|
-
unitsMetaData: [
|
|
284
|
-
{
|
|
285
|
-
name: "Liquidator",
|
|
286
|
-
status: UnitStatus.RESEARCH,
|
|
287
|
-
revenueShare: 100,
|
|
288
|
-
type: UnitType.MEV_SEARCHER,
|
|
289
|
-
/*components: {
|
|
290
|
-
[UnitComponentCategory.MEV_STRATEGY]: [],
|
|
291
|
-
},*/
|
|
292
|
-
emoji: "🐺",
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
name: "Arbitrager",
|
|
296
|
-
status: UnitStatus.RESEARCH,
|
|
297
|
-
revenueShare: 100,
|
|
298
|
-
type: UnitType.MEV_SEARCHER,
|
|
299
|
-
/*components: {
|
|
300
|
-
[UnitComponentCategory.MEV_STRATEGY]: [],
|
|
301
|
-
},*/
|
|
302
|
-
emoji: "🦄",
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
},
|
|
306
|
-
];
|
package/tests/assets.test.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { getAsset, assets } from "../src";
|
|
2
|
-
import { tokenlist } from "../src";
|
|
3
|
-
|
|
4
|
-
describe("testing assets", () => {
|
|
5
|
-
test("getAsset", () => {
|
|
6
|
-
expect(
|
|
7
|
-
getAsset("137", "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619")?.symbol,
|
|
8
|
-
).toBe("WETH");
|
|
9
|
-
expect(
|
|
10
|
-
getAsset("555", "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619")?.symbol,
|
|
11
|
-
).toBe(undefined);
|
|
12
|
-
expect(
|
|
13
|
-
getAsset("8453", "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913")?.symbol,
|
|
14
|
-
).toBe("USDC");
|
|
15
|
-
});
|
|
16
|
-
test("check if assets addresses exist in tokenlist.json", () => {
|
|
17
|
-
const _tokenlist = tokenlist.tokens;
|
|
18
|
-
|
|
19
|
-
for (const asset of assets) {
|
|
20
|
-
for (const address of Object.values(asset.addresses).flat()) {
|
|
21
|
-
const matchingToken = _tokenlist.find(
|
|
22
|
-
(token) => token.address.toLowerCase() === address.toLowerCase(),
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
expect(matchingToken).toBeDefined();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
test("check if tokens from tokenlist exist in assets.ts", () => {
|
|
30
|
-
const _tokenlist = tokenlist.tokens;
|
|
31
|
-
|
|
32
|
-
//PROFIT and SDIV
|
|
33
|
-
const addressesToSkip = [
|
|
34
|
-
"0x48469a0481254d5945e7e56c1eb9861429c02f44",
|
|
35
|
-
"0x9844a1c30462b55cd383a2c06f90bb4171f9d4bb",
|
|
36
|
-
];
|
|
37
|
-
|
|
38
|
-
for (const token of _tokenlist) {
|
|
39
|
-
if (addressesToSkip.includes(token.address.toLowerCase())) {
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
let addressFound = false;
|
|
44
|
-
|
|
45
|
-
for (const asset of assets) {
|
|
46
|
-
for (const address of Object.values(asset.addresses).flat()) {
|
|
47
|
-
if (token.address.toLowerCase() === address.toLowerCase()) {
|
|
48
|
-
addressFound = true;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (addressFound) {
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
expect(addressFound).toBe(true);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
});
|