@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/README.md
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
# Stability Integration Pack
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/gh/stabilitydao%2Fstability)
|
|
4
|
+
[](https://badge.fury.io/js/@stabilitydao%2Fstability)
|
|
5
|
+
|
|
3
6
|
This is library for integrating the platform into Node.js applications.
|
|
4
7
|
|
|
5
8
|
## Usage
|
|
6
9
|
|
|
10
|
+
Add npm package to your project:
|
|
11
|
+
|
|
12
|
+
```shell
|
|
13
|
+
yarn add @stabilitydao/stability
|
|
14
|
+
```
|
|
15
|
+
|
|
7
16
|
### Deployments
|
|
8
17
|
|
|
9
18
|
Core contracts deployment addresses.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type CoreContracts = {
|
|
2
|
+
platform: `0x${string}`;
|
|
3
|
+
factory: `0x${string}`;
|
|
4
|
+
priceReader: `0x${string}`;
|
|
5
|
+
swapper: `0x${string}`;
|
|
6
|
+
hardWorker: `0x${string}`;
|
|
7
|
+
vaultManager: `0x${string}`;
|
|
8
|
+
strategyLogic: `0x${string}`;
|
|
9
|
+
zap: `0x${string}`;
|
|
10
|
+
};
|
|
11
|
+
export declare const deployments: {
|
|
12
|
+
[chainId: string]: CoreContracts;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=deployments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../src/deployments.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAC;IACxB,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,KAAK,MAAM,EAAE,CAAC;IAC5B,aAAa,EAAE,KAAK,MAAM,EAAE,CAAC;IAC7B,GAAG,EAAE,KAAK,MAAM,EAAE,CAAC;CACpB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE;IAAC,CAAC,OAAO,EAAC,MAAM,GAAE,aAAa,CAAA;CAqBxD,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deployments = void 0;
|
|
4
|
+
exports.deployments = {
|
|
5
|
+
"137": {
|
|
6
|
+
platform: "0xb2a0737ef27b5Cc474D24c779af612159b1c3e60",
|
|
7
|
+
factory: "0xa14EaAE76890595B3C7ea308dAEBB93863480EAD",
|
|
8
|
+
priceReader: "0xcCef9C4459d73F9A997ff50AC34364555A3274Aa",
|
|
9
|
+
swapper: "0xD84E894A6646C7407b8CD1273Ea1EFc53A423762",
|
|
10
|
+
hardWorker: "0x6DBFfd2846d4a556349a3bc53297700d89a94034",
|
|
11
|
+
vaultManager: "0x6008b366058B42792A2497972A3312274DC5e1A8",
|
|
12
|
+
strategyLogic: "0xD16b60E39284190D9201f0eaD42c4674C310e905",
|
|
13
|
+
zap: "0xEA3fABD8cC14705d7E66D1833a547D31882aEA9b",
|
|
14
|
+
},
|
|
15
|
+
"8453": {
|
|
16
|
+
platform: "0x7eAeE5CfF17F7765d89F4A46b484256929C62312",
|
|
17
|
+
factory: "0xe01E62dAe952501e884624423132e50E7B77Ba3c",
|
|
18
|
+
priceReader: "0x41408b3e0f279634E3cd59E2D76EF6b149d6D418",
|
|
19
|
+
swapper: "0x67e983b3B9f55A1eaA259D58E425e418f3900872",
|
|
20
|
+
hardWorker: "0x2FfeB278BB1Fb9f3B48619AbaBe955526942ac8c",
|
|
21
|
+
vaultManager: "0x2ba8C6A519CEDB6d1C35cEb14E8642625E91F77C",
|
|
22
|
+
strategyLogic: "0xbe491A023eA61B4b027ed0f2f2400748113797b1",
|
|
23
|
+
zap: "0x00700766b0cA613D719A01eea6234eeE77592e15",
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=deployments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../src/deployments.ts"],"names":[],"mappings":";;;AAWa,QAAA,WAAW,GAAqC;IAC3D,KAAK,EAAE;QACL,QAAQ,EAAE,4CAA4C;QACtD,OAAO,EAAE,4CAA4C;QACrD,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,4CAA4C;QACrD,UAAU,EAAE,4CAA4C;QACxD,YAAY,EAAE,4CAA4C;QAC1D,aAAa,EAAE,4CAA4C;QAC3D,GAAG,EAAE,4CAA4C;KAClD;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,4CAA4C;QACtD,OAAO,EAAE,4CAA4C;QACrD,WAAW,EAAE,4CAA4C;QACzD,OAAO,EAAE,4CAA4C;QACrD,UAAU,EAAE,4CAA4C;QACxD,YAAY,EAAE,4CAA4C;QAC1D,aAAa,EAAE,4CAA4C;QAC3D,GAAG,EAAE,4CAA4C;KAClD;CACF,CAAA"}
|
package/out/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { deployments, CoreContracts } from "./deployments";
|
|
2
|
+
import { networks, NetworkId, Network } from "./networks";
|
|
3
|
+
import { strategies, StrategyShortId, StrategyState, Strategy } from "./strategies";
|
|
4
|
+
import { integrations, DefiCategory, DeFiOrganization, DeFiProtocol, IntegrationStatus } from "./integrations";
|
|
5
|
+
export { deployments, networks, strategies, integrations, CoreContracts, Network, NetworkId, Strategy, StrategyShortId, StrategyState, DefiCategory, DeFiOrganization, DeFiProtocol, IntegrationStatus, };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AACzD,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;AACxD,OAAO,EAAC,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAClF,OAAO,EAAC,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAE7G,OAAO,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,aAAa,EACb,OAAO,EACP,SAAS,EACT,QAAQ,EACR,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,GAClB,CAAA"}
|
package/out/index.js.map
ADDED
|
@@ -0,0 +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;AAMV,gGAZkB,4BAAe,OAYlB;AACf,8FAbmC,0BAAa,OAanC;AAZf,iDAA6G;AAM3G,6FANM,2BAAY,OAMN;AAOZ,6FAboB,2BAAY,OAapB;AAGZ,kGAhBkE,gCAAiB,OAgBlE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { StrategyShortId } from "./strategies";
|
|
2
|
+
import { NetworkId } from "./networks";
|
|
3
|
+
export type DeFiOrganization = {
|
|
4
|
+
status: IntegrationStatus;
|
|
5
|
+
name: string;
|
|
6
|
+
website: string;
|
|
7
|
+
protocols: {
|
|
8
|
+
[protocolId: string]: DeFiProtocol;
|
|
9
|
+
};
|
|
10
|
+
defiLlama: string;
|
|
11
|
+
github?: string;
|
|
12
|
+
};
|
|
13
|
+
export type DeFiProtocol = {
|
|
14
|
+
name: string;
|
|
15
|
+
category: DefiCategory;
|
|
16
|
+
networks: NetworkId[];
|
|
17
|
+
strategies?: StrategyShortId[];
|
|
18
|
+
adapters?: string[];
|
|
19
|
+
coreContracts?: string[];
|
|
20
|
+
};
|
|
21
|
+
export declare enum IntegrationStatus {
|
|
22
|
+
LIVE = "Live",
|
|
23
|
+
USE_VIA_LIVE = "Use via live",
|
|
24
|
+
AWAITING_DEPLOYMENT = "Awaiting Deployment",
|
|
25
|
+
DEVELOPMENT = "Development",
|
|
26
|
+
ROADMAP = "In Roadmap",
|
|
27
|
+
POSSIBLE = "Possible",
|
|
28
|
+
PROPOSED = "Proposed integration",
|
|
29
|
+
DECLINED = "Declined"
|
|
30
|
+
}
|
|
31
|
+
export declare enum DefiCategory {
|
|
32
|
+
AMM = "AMM",
|
|
33
|
+
ALM = "ALM",
|
|
34
|
+
LENDING = "Lending",
|
|
35
|
+
DEX_AGG = "DeX agg",
|
|
36
|
+
YIELD_AGG = "Yield agg",
|
|
37
|
+
VE_AGG = "Boost VE-agg",
|
|
38
|
+
ORACLE = "Oracle",
|
|
39
|
+
REWARDING = "Rewarding",
|
|
40
|
+
VAULTS_ERC4626 = "Vaults ERC-4626",
|
|
41
|
+
BRIDGE = "Bridge",
|
|
42
|
+
LST = "Liquid staking"
|
|
43
|
+
}
|
|
44
|
+
export declare const integrations: {
|
|
45
|
+
[org: string]: DeFiOrganization;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAErC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,iBAAiB,CAAA;IACzB,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;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,YAAY,CAAA;IACtB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,eAAe,EAAE,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB,CAAA;AAED,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,mBAAmB,wBAAwB;IAC3C,WAAW,gBAAgB;IAC3B,OAAO,eAAe;IACtB,QAAQ,aAAa;IACrB,QAAQ,yBAAyB;IACjC,QAAQ,aAAa;CACtB;AAED,oBAAY,YAAY;IACtB,GAAG,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;CAyjB3D,CAAC"}
|