@stabilitydao/stability 0.49.1 โ 0.51.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 +22 -30
- package/out/activity/builder.d.ts +95 -0
- package/out/activity/builder.d.ts.map +1 -0
- package/out/activity/builder.js +3 -0
- package/out/activity/builder.js.map +1 -0
- package/out/agents.d.ts +5 -119
- package/out/agents.d.ts.map +1 -1
- package/out/agents.js +5 -46
- package/out/agents.js.map +1 -1
- package/out/index.d.ts +3 -2
- package/out/index.d.ts.map +1 -1
- package/out/index.js +3 -4
- package/out/index.js.map +1 -1
- package/out/integrations.d.ts.map +1 -1
- package/out/integrations.js.map +1 -1
- package/out/os.d.ts +119 -0
- package/out/os.d.ts.map +1 -0
- package/out/os.js +410 -0
- package/out/os.js.map +1 -0
- package/package.json +4 -4
- package/out/builder.d.ts +0 -3
- package/out/builder.d.ts.map +0 -1
- package/out/builder.js +0 -250
- package/out/builder.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ๐ฆ Stability
|
|
1
|
+
# ๐ฆ Stability Operating System Library
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|

|
|
@@ -11,55 +11,47 @@
|
|
|
11
11
|
|
|
12
12
|
[](https://codecov.io/github/stabilitydao/stability)
|
|
13
13
|
|
|
14
|
-
This is library for integrating Stability
|
|
15
|
-
|
|
16
|
-

|
|
17
|
-

|
|
14
|
+
This is library for integrating Stability OS into Node.js applications.
|
|
18
15
|
|
|
19
16
|
## ๐ Usage
|
|
20
17
|
|
|
21
|
-
Add
|
|
18
|
+
Add this package to your project:
|
|
22
19
|
|
|
23
20
|
```shell
|
|
24
21
|
yarn add @stabilitydao/stability
|
|
25
22
|
```
|
|
26
23
|
|
|
24
|
+
and use it
|
|
25
|
+
|
|
26
|
+
```javascript
|
|
27
|
+
import { daos } from "@stabilitydao/stability";
|
|
28
|
+
console.log(`Names of DAOs: ${daos.map((dao) => dao.name).join(", ")}`);
|
|
29
|
+
```
|
|
30
|
+
|
|
27
31
|
## ๐ท Develop
|
|
28
32
|
|
|
29
33
|
### How to
|
|
30
34
|
|
|
31
35
|
```shell
|
|
32
|
-
yarn
|
|
33
|
-
yarn overview-full
|
|
34
|
-
yarn draw-chains
|
|
35
|
-
yarn draw-integrations
|
|
36
|
-
yarn contests-maker
|
|
36
|
+
yarn os
|
|
37
37
|
yarn test
|
|
38
38
|
yarn coverage
|
|
39
|
-
yarn prettier . --check
|
|
40
39
|
yarn prettier . --write
|
|
41
40
|
```
|
|
42
41
|
|
|
43
|
-
###
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
### Commit and PR prefix
|
|
43
|
+
|
|
44
|
+
- ๐ฆ New version
|
|
45
|
+
- ๐ Knowledge (๐ช assets, ๐ protocols, โ๏ธ chains)
|
|
46
|
+
- ๐จ Types, refactor
|
|
47
|
+
- โป๏ธ Update data (DAOs, strats, integrations, etc)
|
|
48
|
+
- ๐๏ธ DAO
|
|
49
|
+
- ๐งโ๐ Docs
|
|
50
|
+
- ๐ DeFi Strategies
|
|
51
|
+
- ๐ MEV Strategies
|
|
52
|
+
- โจ Epic
|
|
53
53
|
- ๐ค Agents
|
|
54
54
|
- ๐ก API
|
|
55
|
-
- ๐ Strategies
|
|
56
|
-
- ๐ช Assets
|
|
57
|
-
- โ๏ธ Chains
|
|
58
55
|
- ๐ฆ Lending
|
|
59
56
|
- ๐งบ Products
|
|
60
|
-
- ๐ DeFi, integrations
|
|
61
|
-
- โป๏ธ Sync
|
|
62
57
|
- ๐ Content generator
|
|
63
|
-
- ๐ฆ Library
|
|
64
|
-
- #๏ธโฃ Lint, format
|
|
65
|
-
- ๐ Docs
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { UnitComponentCategory } from "../os";
|
|
2
|
+
export interface ILabel {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IGithubUser {
|
|
8
|
+
username: string;
|
|
9
|
+
img: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IIssue {
|
|
12
|
+
repo: string;
|
|
13
|
+
id: number;
|
|
14
|
+
title: string;
|
|
15
|
+
labels: ILabel[];
|
|
16
|
+
assignees: IGithubUser;
|
|
17
|
+
body?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IBuilderMemory {
|
|
20
|
+
openIssues: {
|
|
21
|
+
total: {
|
|
22
|
+
[repo: string]: number;
|
|
23
|
+
};
|
|
24
|
+
pools: {
|
|
25
|
+
[poolName: string]: IIssue[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
conveyors: {
|
|
29
|
+
[conveyorName: string]: {
|
|
30
|
+
[taskId: string]: {
|
|
31
|
+
[stepName: string]: IIssue[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Pool of development tasks.
|
|
38
|
+
* @interface
|
|
39
|
+
*/
|
|
40
|
+
export interface IPool {
|
|
41
|
+
unitIds: string[];
|
|
42
|
+
name: string;
|
|
43
|
+
label: ILabel;
|
|
44
|
+
productTypes?: string[];
|
|
45
|
+
artifacts?: ArtifactType[];
|
|
46
|
+
}
|
|
47
|
+
export interface IConveyor {
|
|
48
|
+
unitId: string;
|
|
49
|
+
componentCategory: UnitComponentCategory;
|
|
50
|
+
name: string;
|
|
51
|
+
symbol: string;
|
|
52
|
+
type: string;
|
|
53
|
+
label: ILabel;
|
|
54
|
+
description: string;
|
|
55
|
+
issueTitleTemplate: string;
|
|
56
|
+
taskIdIs: string;
|
|
57
|
+
steps: IConveyorStep[];
|
|
58
|
+
}
|
|
59
|
+
export declare const enum ArtifactType {
|
|
60
|
+
LIBRARY_RELEASE_TAG = "Library release tag",
|
|
61
|
+
DEPLOYMENT_ADDRESSES = "Deployment addresses",
|
|
62
|
+
URL_UI = "URL to UI page",
|
|
63
|
+
URL_API = "API endpoint",
|
|
64
|
+
URL_STATIC = "Static content URL",
|
|
65
|
+
CONTRACT_ADDRESS = "Address of deployed contract"
|
|
66
|
+
}
|
|
67
|
+
export interface IConveyorStep {
|
|
68
|
+
name: string;
|
|
69
|
+
issues: {
|
|
70
|
+
repo: string;
|
|
71
|
+
taskList?: string[];
|
|
72
|
+
issueTemplate?: string;
|
|
73
|
+
body?: string;
|
|
74
|
+
generator?: string;
|
|
75
|
+
}[];
|
|
76
|
+
artifacts?: ArtifactType[];
|
|
77
|
+
result?: string;
|
|
78
|
+
guide?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface IBuilderActivity {
|
|
81
|
+
/** Safe multisig account of dev team */
|
|
82
|
+
multisig: string[];
|
|
83
|
+
/** Tracked Github repositories where development going on */
|
|
84
|
+
repo: string[];
|
|
85
|
+
burnRate: {
|
|
86
|
+
period: string;
|
|
87
|
+
usdAmount: number;
|
|
88
|
+
}[];
|
|
89
|
+
workers: string[];
|
|
90
|
+
/** Conveyors of unit components. */
|
|
91
|
+
conveyors: IConveyor[];
|
|
92
|
+
/** Pools of development tasks. */
|
|
93
|
+
pools: IPool[];
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/activity/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,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OAAO,iBAAiB;IACxB,UAAU,uBAAuB;IACjC,gBAAgB,iCAAiC;CAClD;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,6DAA6D;IAC7D,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;IACJ,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,oCAAoC;IACpC,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,kCAAkC;IAClC,KAAK,EAAE,KAAK,EAAE,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../src/activity/builder.ts"],"names":[],"mappings":""}
|
package/out/agents.d.ts
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
BUILDER = "BUILDER"
|
|
4
|
-
}
|
|
5
|
-
export declare const enum AgentTokenizationState {
|
|
6
|
-
LIVE = "LIVE",
|
|
7
|
-
UNDER_CONSTRUCTION = "UNDER_CONSTRUCTION",
|
|
8
|
-
INITIAL_FUNDING = "INITIAL_FUNDING"
|
|
9
|
-
}
|
|
10
|
-
export interface IAgentBase {
|
|
1
|
+
export interface IAgent {
|
|
2
|
+
api: string[];
|
|
11
3
|
roles: AgentRole[];
|
|
12
|
-
tokenization: {
|
|
13
|
-
state: AgentTokenizationState;
|
|
14
|
-
eta?: string;
|
|
15
|
-
tokenSymbol: string;
|
|
16
|
-
xSymbol: string;
|
|
17
|
-
daoSymbol: string;
|
|
18
|
-
};
|
|
19
4
|
name: string;
|
|
20
5
|
directives?: string[];
|
|
21
6
|
image?: string;
|
|
22
7
|
telegram?: `@${string}`;
|
|
23
8
|
}
|
|
9
|
+
export declare const enum AgentRole {
|
|
10
|
+
OPERATOR = "OPERATOR"
|
|
11
|
+
}
|
|
24
12
|
export interface IAgentRuntime {
|
|
25
13
|
machineIDs: string[];
|
|
26
14
|
providers: {
|
|
@@ -30,106 +18,4 @@ export interface IAgentRuntime {
|
|
|
30
18
|
}[];
|
|
31
19
|
}
|
|
32
20
|
export declare const emptyRuntime: IAgentRuntime;
|
|
33
|
-
export interface IOperatorAgent extends IAgentBase, IAgentRuntime {
|
|
34
|
-
api: string[];
|
|
35
|
-
}
|
|
36
|
-
export interface IOperatorData {
|
|
37
|
-
units: Unit[];
|
|
38
|
-
}
|
|
39
|
-
export interface Unit {
|
|
40
|
-
name: string;
|
|
41
|
-
share: number;
|
|
42
|
-
}
|
|
43
|
-
export interface IBuilderAgent extends IAgentBase, IAgentRuntime {
|
|
44
|
-
builderData: IBuilderData;
|
|
45
|
-
}
|
|
46
|
-
export interface IBuilderData {
|
|
47
|
-
repo: string[];
|
|
48
|
-
burnRate: {
|
|
49
|
-
period: string;
|
|
50
|
-
usdAmount: number;
|
|
51
|
-
}[];
|
|
52
|
-
workers: string[];
|
|
53
|
-
conveyors: IConveyor[];
|
|
54
|
-
pools: IPool[];
|
|
55
|
-
}
|
|
56
|
-
export interface IPool {
|
|
57
|
-
name: string;
|
|
58
|
-
label: ILabel;
|
|
59
|
-
productTypes?: string[];
|
|
60
|
-
artifacts?: IArtifact[];
|
|
61
|
-
}
|
|
62
|
-
export interface IConveyor {
|
|
63
|
-
name: string;
|
|
64
|
-
symbol: string;
|
|
65
|
-
type: string;
|
|
66
|
-
label: ILabel;
|
|
67
|
-
description: string;
|
|
68
|
-
issueTitleTemplate: string;
|
|
69
|
-
taskIdIs: string;
|
|
70
|
-
steps: IConveyorStep[];
|
|
71
|
-
}
|
|
72
|
-
export declare const enum ArtifactType {
|
|
73
|
-
LIBRARY_RELEASE_TAG = "Library release tag",
|
|
74
|
-
DEPLOYMENT_ADDRESSES = "Deployment addresses",
|
|
75
|
-
URL_UI = "URL to UI page",
|
|
76
|
-
URL_API = "API endpoint",
|
|
77
|
-
URL_STATIC = "Static content URL",
|
|
78
|
-
CONTRACT_ADDRESS = "Address of deployed contract"
|
|
79
|
-
}
|
|
80
|
-
export interface IArtifact {
|
|
81
|
-
type: ArtifactType;
|
|
82
|
-
name?: string;
|
|
83
|
-
value?: any;
|
|
84
|
-
}
|
|
85
|
-
export interface IConveyorStep {
|
|
86
|
-
name: string;
|
|
87
|
-
issues: {
|
|
88
|
-
repo: string;
|
|
89
|
-
taskList?: string[];
|
|
90
|
-
issueTemplate?: string;
|
|
91
|
-
body?: string;
|
|
92
|
-
generator?: string;
|
|
93
|
-
}[];
|
|
94
|
-
artifacts?: IArtifact[];
|
|
95
|
-
result?: string;
|
|
96
|
-
guide?: string;
|
|
97
|
-
}
|
|
98
|
-
export interface ILabel {
|
|
99
|
-
name: string;
|
|
100
|
-
description: string;
|
|
101
|
-
color: string;
|
|
102
|
-
}
|
|
103
|
-
export interface IGithubUser {
|
|
104
|
-
username: string;
|
|
105
|
-
img: string;
|
|
106
|
-
}
|
|
107
|
-
export interface IIssue {
|
|
108
|
-
repo: string;
|
|
109
|
-
id: number;
|
|
110
|
-
title: string;
|
|
111
|
-
labels: ILabel[];
|
|
112
|
-
assignees: IGithubUser;
|
|
113
|
-
body?: string;
|
|
114
|
-
}
|
|
115
|
-
export interface IBuilderMemory {
|
|
116
|
-
openIssues: {
|
|
117
|
-
total: {
|
|
118
|
-
[repo: string]: number;
|
|
119
|
-
};
|
|
120
|
-
pools: {
|
|
121
|
-
[poolName: string]: IIssue[];
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
conveyors: {
|
|
125
|
-
[conveyorName: string]: {
|
|
126
|
-
[taskId: string]: {
|
|
127
|
-
[stepName: string]: IIssue[];
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
export type Agent = IOperatorAgent | IBuilderAgent;
|
|
133
|
-
export declare const agents: Agent[];
|
|
134
|
-
export declare const getAgents: (role: AgentRole) => Agent[];
|
|
135
21
|
//# sourceMappingURL=agents.d.ts.map
|
package/out/agents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,IAAI,MAAM,EAAE,CAAC;CACzB;AAED,0BAAkB,SAAS;IACzB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL;AAED,eAAO,MAAM,YAAY,EAAE,aAG1B,CAAC"}
|
package/out/agents.js
CHANGED
|
@@ -1,53 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Stability Agent is highly abstract and high-level entity that follow role directives.
|
|
4
|
+
* Agents are owned by DAOs built on Stability OS.
|
|
5
|
+
*/
|
|
2
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const builder_1 = require("./builder");
|
|
7
|
+
exports.emptyRuntime = void 0;
|
|
5
8
|
exports.emptyRuntime = {
|
|
6
9
|
machineIDs: [],
|
|
7
10
|
providers: [],
|
|
8
11
|
};
|
|
9
|
-
exports.agents = [
|
|
10
|
-
{
|
|
11
|
-
roles: ["OPERATOR" /* AgentRole.OPERATOR */],
|
|
12
|
-
name: "Stability Operator",
|
|
13
|
-
tokenization: {
|
|
14
|
-
state: "LIVE" /* AgentTokenizationState.LIVE */,
|
|
15
|
-
tokenSymbol: "STBL",
|
|
16
|
-
xSymbol: "xSTBL",
|
|
17
|
-
daoSymbol: "STBL_DAO",
|
|
18
|
-
},
|
|
19
|
-
telegram: "@stability_dao_bot",
|
|
20
|
-
image: "OPERATOR.png",
|
|
21
|
-
...exports.emptyRuntime,
|
|
22
|
-
api: ["https://api.stability.farm", "https://api.stabilitydao.org"],
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
roles: ["BUILDER" /* AgentRole.BUILDER */],
|
|
26
|
-
name: "Stability Builder",
|
|
27
|
-
tokenization: {
|
|
28
|
-
eta: "2026",
|
|
29
|
-
state: "UNDER_CONSTRUCTION" /* AgentTokenizationState.UNDER_CONSTRUCTION */,
|
|
30
|
-
tokenSymbol: "BUILDER",
|
|
31
|
-
xSymbol: "xBUILDER",
|
|
32
|
-
daoSymbol: "BUILDER_DAO",
|
|
33
|
-
},
|
|
34
|
-
image: "BUILDER.png",
|
|
35
|
-
...exports.emptyRuntime,
|
|
36
|
-
builderData: builder_1.stabilityBuilderData,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
roles: ["OPERATOR" /* AgentRole.OPERATOR */, "BUILDER" /* AgentRole.BUILDER */],
|
|
40
|
-
name: "MEV Fighter",
|
|
41
|
-
tokenization: {
|
|
42
|
-
state: "INITIAL_FUNDING" /* AgentTokenizationState.INITIAL_FUNDING */,
|
|
43
|
-
tokenSymbol: "MEVBOT",
|
|
44
|
-
xSymbol: "xMEVBOT",
|
|
45
|
-
daoSymbol: "MEVBOTDAO",
|
|
46
|
-
},
|
|
47
|
-
...exports.emptyRuntime,
|
|
48
|
-
api: [],
|
|
49
|
-
},
|
|
50
|
-
];
|
|
51
|
-
const getAgents = (role) => exports.agents.filter((a) => a.roles.includes(role));
|
|
52
|
-
exports.getAgents = getAgents;
|
|
53
12
|
//# sourceMappingURL=agents.js.map
|
package/out/agents.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAwBU,QAAA,YAAY,GAAkB;IACzC,UAAU,EAAE,EAAE;IACd,SAAS,EAAE,EAAE;CACd,CAAC"}
|
package/out/index.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ import { contests, YieldContest, Reward, RewardType, getContestGemsReward, getCo
|
|
|
12
12
|
import { AssetOracle, assetOracles, vaultOracles } from "./oracles";
|
|
13
13
|
import { IlDetails, getIL } from "./risk";
|
|
14
14
|
import { Severity, status } from "./status";
|
|
15
|
-
import { AgentRole,
|
|
15
|
+
import { AgentRole, IAgent } from "./agents";
|
|
16
|
+
import { daos, IDAO, UnitStatus, UnitType } from "./os";
|
|
16
17
|
import { ILendingMarket, IReserve, lendingMarkets } from "./lending";
|
|
17
|
-
export { deployments, chains, chainStatusInfo, strategies, integrations, Deployment, Chain, ChainName, ChainStatus, ChainStatusInfo, Strategy, StrategyShortId, StrategyState, DefiCategory, DeFiOrganization, DeFiProtocol, IntegrationStatus, ApiMainReply, ApiAggSwapData, ApiPostBody, ApiPostReply, InteractionType, tokenlist, almFactories, getMerklStrategies, getStrategyShortId, getStrategyProtocols, getIntegrationStatus, getChainProtocols, getChainStrategies, getSupportedChainNames, getChainByName, assets, Asset, getAsset, strategyStateDescription, baseStrategyContracts, getChainsTotals, getStrategiesTotals, seeds, bridges, status, Severity, Bridge, BridgeName, getChainBridges, contests, YieldContest, Reward, RewardType, AssetOracle, assetOracles, vaultOracles, getALMStrategies, getContestReward, getContestRewards, getContestGemsReward, getTokenData, TokenData, sonicWhitelistedAssets, getIL, IlDetails, AgentRole,
|
|
18
|
+
export { deployments, chains, chainStatusInfo, strategies, integrations, Deployment, Chain, ChainName, ChainStatus, ChainStatusInfo, Strategy, StrategyShortId, StrategyState, DefiCategory, DeFiOrganization, DeFiProtocol, IntegrationStatus, ApiMainReply, ApiAggSwapData, ApiPostBody, ApiPostReply, InteractionType, tokenlist, almFactories, getMerklStrategies, getStrategyShortId, getStrategyProtocols, getIntegrationStatus, getChainProtocols, getChainStrategies, getSupportedChainNames, getChainByName, assets, Asset, getAsset, strategyStateDescription, baseStrategyContracts, getChainsTotals, getStrategiesTotals, seeds, bridges, status, Severity, Bridge, BridgeName, getChainBridges, contests, YieldContest, Reward, RewardType, AssetOracle, assetOracles, vaultOracles, getALMStrategies, getContestReward, getContestRewards, getContestGemsReward, getTokenData, TokenData, sonicWhitelistedAssets, getIL, IlDetails, AgentRole, IDAO, IAgent, daos, lendingMarkets, ILendingMarket, IReserve, UnitType, UnitStatus, };
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EACL,MAAM,EACN,eAAe,EACf,SAAS,EACT,WAAW,EACX,KAAK,EACL,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,cAA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AAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAErE,OAAO,EACL,WAAW,EACX,MAAM,EACN,eAAe,EACf,UAAU,EACV,YAAY,EACZ,UAAU,EACV,KAAK,EACL,SAAS,EACT,WAAW,EACX,eAAe,EACf,QAAQ,EACR,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,WAAW,EACX,YAAY,EACZ,eAAe,EACf,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EACd,MAAM,EACN,KAAK,EACL,QAAQ,EACR,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,MAAM,EACN,UAAU,EACV,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,SAAS,EACT,sBAAsB,EACtB,KAAK,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,cAAc,EACd,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,UAAU,GACX,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.lendingMarkets = exports.
|
|
6
|
+
exports.lendingMarkets = exports.daos = exports.getIL = exports.sonicWhitelistedAssets = exports.getTokenData = exports.getContestGemsReward = exports.getContestRewards = exports.getContestReward = exports.getALMStrategies = exports.vaultOracles = exports.assetOracles = exports.RewardType = exports.contests = exports.getChainBridges = exports.Severity = exports.status = exports.bridges = exports.seeds = exports.getStrategiesTotals = exports.getChainsTotals = exports.baseStrategyContracts = exports.strategyStateDescription = exports.getAsset = exports.assets = exports.getChainByName = exports.getSupportedChainNames = exports.getChainStrategies = exports.getChainProtocols = exports.getIntegrationStatus = exports.getStrategyProtocols = exports.getStrategyShortId = exports.getMerklStrategies = exports.almFactories = exports.tokenlist = exports.InteractionType = exports.DefiCategory = exports.StrategyState = exports.integrations = exports.strategies = exports.chainStatusInfo = exports.chains = exports.deployments = void 0;
|
|
7
7
|
const deployments_1 = require("./deployments");
|
|
8
8
|
Object.defineProperty(exports, "deployments", { enumerable: true, get: function () { return deployments_1.deployments; } });
|
|
9
9
|
const chains_1 = require("./chains");
|
|
@@ -58,9 +58,8 @@ Object.defineProperty(exports, "getIL", { enumerable: true, get: function () { r
|
|
|
58
58
|
const status_1 = require("./status");
|
|
59
59
|
Object.defineProperty(exports, "Severity", { enumerable: true, get: function () { return status_1.Severity; } });
|
|
60
60
|
Object.defineProperty(exports, "status", { enumerable: true, get: function () { return status_1.status; } });
|
|
61
|
-
const
|
|
62
|
-
Object.defineProperty(exports, "
|
|
63
|
-
Object.defineProperty(exports, "getAgents", { enumerable: true, get: function () { return agents_1.getAgents; } });
|
|
61
|
+
const os_1 = require("./os");
|
|
62
|
+
Object.defineProperty(exports, "daos", { enumerable: true, get: function () { return os_1.daos; } });
|
|
64
63
|
const lending_1 = require("./lending");
|
|
65
64
|
Object.defineProperty(exports, "lendingMarkets", { enumerable: true, get: function () { return lending_1.lendingMarkets; } });
|
|
66
65
|
//# 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,+CAAwD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAwD;AAuEtD,4FAvEO,yBAAW,OAuEP;AAtEb,qCAUkB;AA6DhB,uFAtEA,eAAM,OAsEA;AACN,gGAtEA,wBAAe,OAsEA;AA4Bf,uGA7FA,+BAAsB,OA6FA;AAOtB,gGAnGA,wBAAe,OAmGA;AANf,+FA5FA,uBAAc,OA4FA;AA1FhB,6CAasB;AAiDpB,2FA7DA,uBAAU,OA6DA;AASV,8FApEA,0BAAa,OAoEA;AAYb,mGA9EA,+BAAkB,OA8EA;AAClB,mGA9EA,+BAAkB,OA8EA;AAUlB,yGAvFA,qCAAwB,OAuFA;AAGxB,oGAzFA,gCAAmB,OAyFA;AAFnB,sGAtFA,kCAAqB,OAsFA;AAVrB,qGA3EA,iCAAoB,OA2EA;AAGpB,mGA7EA,+BAAkB,OA6EA;AAwBlB,iGApGA,6BAAgB,OAoGA;AAlGlB,iDAQwB;AAyCtB,6FAhDA,2BAAY,OAgDA;AASZ,6FAxDA,2BAAY,OAwDA;AAcZ,qGAlEA,mCAAoB,OAkEA;AACpB,kGAlEA,gCAAiB,OAkEA;AAhEnB,2CAMqB;AAmDnB,gGApDA,2BAAe,OAoDA;AAlDjB,0FAAmD;AAmDjD,oBAnDK,kCAAS,CAmDL;AAlDX,2CAA2C;AAmDzC,6FAnDO,wBAAY,OAmDP;AAlDd,qCAOkB;AAoDhB,uFA1DA,eAAM,OA0DA;AAEN,yFAzDA,iBAAQ,OAyDA;AAuBR,6FA/EA,qBAAY,OA+EA;AAEZ,uGAhFA,+BAAsB,OAgFA;AA9ExB,mCAAgC;AA0D9B,sFA1DO,aAAK,OA0DP;AAzDP,uCAAyE;AA0DvE,wFA1DO,iBAAO,OA0DP;AAKP,gGA/DoC,yBAAe,OA+DpC;AA9DjB,yCAQoB;AAuDlB,yFA9DA,mBAAQ,OA8DA;AAGR,2FA9DA,qBAAU,OA8DA;AAOV,qGApEA,+BAAoB,OAoEA;AAFpB,iGAjEA,2BAAgB,OAiEA;AAChB,kGAjEA,4BAAiB,OAiEA;AA/DnB,uCAAoE;AA2DlE,6FA3DoB,sBAAY,OA2DpB;AACZ,6FA5DkC,sBAAY,OA4DlC;AA3Dd,iCAA0C;AAmExC,sFAnEkB,YAAK,OAmElB;AAlEP,qCAA4C;AAgD1C,yFAhDO,iBAAQ,OAgDP;AADR,uFA/CiB,eAAM,OA+CjB;AA7CR,6BAAwD;AAqEtD,qFArEO,SAAI,OAqEP;AApEN,uCAAqE;AAqEnE,+FArEiC,wBAAc,OAqEjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,eAAe,EAAiB,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,eAAe,EAAiB,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAU,MAAM,UAAU,CAAC;AAE7C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,CAAA;KAAE,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM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