@sonarwatch/portfolio-plugins 0.8.9 → 0.8.11
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/CHANGELOG.md +14 -1
- package/package.json +2 -2
- package/src/index.d.ts +1 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/plugins/aave/constants.js +1 -0
- package/src/plugins/aave/constants.js.map +1 -1
- package/src/plugins/aftermath/constants.js +1 -0
- package/src/plugins/aftermath/constants.js.map +1 -1
- package/src/plugins/auxexchange/constants.js +1 -0
- package/src/plugins/auxexchange/constants.js.map +1 -1
- package/src/plugins/bucket/constants.js +1 -0
- package/src/plugins/bucket/constants.js.map +1 -1
- package/src/plugins/cetus/constants.js +1 -0
- package/src/plugins/cetus/constants.js.map +1 -1
- package/src/plugins/drift/constants.js +1 -0
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/foo/constants.d.ts +2 -0
- package/src/plugins/foo/constants.js +5 -1
- package/src/plugins/foo/constants.js.map +1 -1
- package/src/plugins/foo/index.d.ts +2 -0
- package/src/plugins/foo/index.js +3 -1
- package/src/plugins/foo/index.js.map +1 -1
- package/src/plugins/kamino/constants.js +1 -0
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/liquiditypools-sei/constants.js +2 -0
- package/src/plugins/liquiditypools-sei/constants.js.map +1 -1
- package/src/plugins/liquidswap/constants.js +1 -0
- package/src/plugins/liquidswap/constants.js.map +1 -1
- package/src/plugins/llama-protocols/constants.d.ts +2 -0
- package/src/plugins/llama-protocols/constants.js +6 -0
- package/src/plugins/llama-protocols/constants.js.map +1 -0
- package/src/plugins/llama-protocols/getLlamaProtocolsJob.d.ts +3 -0
- package/src/plugins/llama-protocols/getLlamaProtocolsJob.js +54 -0
- package/src/plugins/llama-protocols/getLlamaProtocolsJob.js.map +1 -0
- package/src/plugins/llama-protocols/helpers.d.ts +2 -0
- package/src/plugins/llama-protocols/helpers.js +21 -0
- package/src/plugins/llama-protocols/helpers.js.map +1 -0
- package/src/plugins/llama-protocols/index.d.ts +3 -0
- package/src/plugins/llama-protocols/index.js +22 -0
- package/src/plugins/llama-protocols/index.js.map +1 -0
- package/src/plugins/llama-protocols/types.d.ts +60 -0
- package/src/plugins/llama-protocols/types.js +3 -0
- package/src/plugins/llama-protocols/types.js.map +1 -0
- package/src/plugins/maker/constants.d.ts +2 -0
- package/src/plugins/maker/constants.js +7 -1
- package/src/plugins/maker/constants.js.map +1 -1
- package/src/plugins/maker/index.d.ts +2 -0
- package/src/plugins/maker/index.js +3 -1
- package/src/plugins/maker/index.js.map +1 -1
- package/src/plugins/mango/constants.js +1 -0
- package/src/plugins/mango/constants.js.map +1 -1
- package/src/plugins/marginfi/constants.js +1 -0
- package/src/plugins/marginfi/constants.js.map +1 -1
- package/src/plugins/marinade/constants.js +1 -0
- package/src/plugins/marinade/constants.js.map +1 -1
- package/src/plugins/meteora/constants.js +1 -0
- package/src/plugins/meteora/constants.js.map +1 -1
- package/src/plugins/morpho/constants.js +1 -0
- package/src/plugins/morpho/constants.js.map +1 -1
- package/src/plugins/navi/constants.js +1 -0
- package/src/plugins/navi/constants.js.map +1 -1
- package/src/plugins/orca/constants.js +1 -0
- package/src/plugins/orca/constants.js.map +1 -1
- package/src/plugins/orders/clobs-solana/constants.js +2 -0
- package/src/plugins/orders/clobs-solana/constants.js.map +1 -1
- package/src/plugins/orders/jupiter/constants.js +1 -0
- package/src/plugins/orders/jupiter/constants.js.map +1 -1
- package/src/plugins/pancakeswap/constants.js +1 -0
- package/src/plugins/pancakeswap/constants.js.map +1 -1
- package/src/plugins/raydium/constants.js +1 -0
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/saber/constants.js +1 -0
- package/src/plugins/saber/constants.js.map +1 -1
- package/src/plugins/solend/constants.js +1 -0
- package/src/plugins/solend/constants.js.map +1 -1
- package/src/plugins/thala/constants.js +1 -0
- package/src/plugins/thala/constants.js.map +1 -1
- package/src/plugins/turbos/constants.js +1 -0
- package/src/plugins/turbos/constants.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,10 +2,23 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.8.
|
5
|
+
## [0.8.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.10...plugins-0.8.11) (2023-10-13)
|
6
6
|
|
7
7
|
|
8
|
+
### Reverts
|
8
9
|
|
10
|
+
* Revert "fix" ([75a2d85](https://github.com/sonarwatch/portfolio/commit/75a2d85230c10109f052c903700899308a48e72c))
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [0.8.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.9...plugins-0.8.10) (2023-10-12)
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
## [0.8.9](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.8...plugins-0.8.9) (2023-10-12)
|
19
|
+
|
20
|
+
|
21
|
+
|
9
22
|
## [0.8.8](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.7...plugins-0.8.8) (2023-10-10)
|
10
23
|
|
11
24
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.11",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -36,7 +36,7 @@
|
|
36
36
|
"web3-v1": "npm:web3@^1.5.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
|
-
"@sonarwatch/portfolio-core": "0.8.
|
39
|
+
"@sonarwatch/portfolio-core": "0.8.11"
|
40
40
|
},
|
41
41
|
"main": "./src/index.js",
|
42
42
|
"types": "./src/index.d.ts"
|
package/src/index.d.ts
CHANGED
@@ -7,6 +7,7 @@ export * from './Fetcher';
|
|
7
7
|
export * from './Job';
|
8
8
|
export * from './utils/name-service';
|
9
9
|
export * from './utils/blank';
|
10
|
+
export * from './plugins/llama-protocols';
|
10
11
|
export declare const platforms: Platform[];
|
11
12
|
export declare const jobs: Job[];
|
12
13
|
export declare const fetchers: Fetcher[];
|
package/src/index.js
CHANGED
@@ -53,6 +53,7 @@ __exportStar(require("./Fetcher"), exports);
|
|
53
53
|
__exportStar(require("./Job"), exports);
|
54
54
|
__exportStar(require("./utils/name-service"), exports);
|
55
55
|
__exportStar(require("./utils/blank"), exports);
|
56
|
+
__exportStar(require("./plugins/llama-protocols"), exports);
|
56
57
|
// PLATFORMS //
|
57
58
|
exports.platforms = [
|
58
59
|
...aave_1.platforms,
|
@@ -82,6 +83,7 @@ exports.platforms = [
|
|
82
83
|
...kamino_1.platforms,
|
83
84
|
...bucket_1.platforms,
|
84
85
|
...navi_1.platforms,
|
86
|
+
...maker_1.platforms,
|
85
87
|
];
|
86
88
|
// JOBS //
|
87
89
|
exports.jobs = [
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAG2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAG+B;AAC/B,mDAG6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAGA,6CAI0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,GAAU;IACzB,GAAG,aAAU;IACb,GAAG,mBAAe;IAClB,GAAG,YAAS;IACZ,GAAG,eAAY;IACf,GAAG,cAAW;IACd,GAAG,aAAU;IACb,GAAG,cAAW;IACd,GAAG,WAAQ;IACX,GAAG,YAAS;IACZ,GAAG,YAAS;IACZ,GAAG,YAAS;IACZ,GAAG,aAAU;IACb,GAAG,iBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,YAAS;IACZ,GAAG,WAAQ;IACX,GAAG,aAAU;IACb,GAAG,aAAU;IACb,GAAG,YAAS;IACZ,GAAG,yBAAqB;IACxB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,aAAU;IACb,GAAG,WAAQ;CACZ,CAAC;AAEF,cAAc;AACD,QAAA,QAAQ,GAAc;IACjC,GAAG,iBAAc;IACjB,GAAG,uBAAmB;IACtB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,wBAAoB;IACvB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,6BAAyB;IAC5B,GAAG,iBAAc;IACjB,GAAG,eAAY;CAChB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aave/constants.ts"],"names":[],"mappings":";;;AAAA,+DAKoC;AAGvB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,kDAAkD;
|
1
|
+
{"version":3,"file":"constants.js","source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QACE,0BAAS,CAAC,QAAQ;QAClB;YACE;gBACE,OAAO,EAAE,yBAAQ,CAAC,QAAQ,CAAC,OAAO;gBAClC,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,WAAW,EAAE,cAAc;gBAC3B,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;YACD;gBACE,OAAO,EAAE,yBAAQ,CAAC,QAAQ,CAAC,OAAO;gBAClC,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,WAAW,EAAE,aAAa;gBAC1B,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;YACD;gBACE,OAAO,EAAE,yBAAQ,CAAC,QAAQ,CAAC,OAAO;gBAClC,SAAS,EAAE,0BAAS,CAAC,QAAQ;gBAC7B,WAAW,EAAE,aAAa;gBAC1B,0BAA0B,EACxB,4CAA4C;gBAC9C,8BAA8B,EAC5B,4CAA4C;gBAC9C,yBAAyB,EAAE,4CAA4C;aACxE;SACF;KACF;CACF,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,MAAM,CAAC"}
|
@@ -6,6 +6,7 @@ exports.aftermathPlatform = {
|
|
6
6
|
id: 'aftermath',
|
7
7
|
name: 'Aftermath',
|
8
8
|
image: 'https://alpha.sonar.watch/img/platforms/aftermath.png',
|
9
|
+
defiLlamaId: 'aftermath-finance',
|
9
10
|
};
|
10
11
|
exports.lpCoinsTable = '0x7f3bb65251feccacc7f48461239be1008233b85594114f7bf304e5e5b340bf59';
|
11
12
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AAEzB,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,uDAAuD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/aftermath/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,WAAW,CAAC;AAEzB,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,uDAAuD;IAC9D,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,YAAY,GACvB,oEAAoE,CAAC"}
|
@@ -7,6 +7,7 @@ exports.auxExchangePlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Aux Exchange',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/auxexchange.png',
|
10
|
+
defiLlamaId: 'aux-exchange',
|
10
11
|
};
|
11
12
|
exports.programAddress = '0xbd35135844473187163ca197ca93b2ab014370587bb0ed3befff9e902d6bb541';
|
12
13
|
exports.lpTypePrefix = `${exports.programAddress}::amm::LP<`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,aAAa,CAAC;AAC3B,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,yDAAyD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/auxexchange/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,aAAa,CAAC;AAC3B,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,yDAAyD;IAChE,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAC1D,QAAA,YAAY,GAAG,GAAG,sBAAc,YAAY,CAAC;AAC7C,QAAA,oBAAoB,GAAG,GAAG,gBAAQ,IAAI,oBAAY,EAAE,CAAC"}
|
@@ -6,6 +6,7 @@ exports.bucketPlatform = {
|
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Bucket',
|
8
8
|
image: 'https://alpha.sonar.watch/img/platforms/bucket.png',
|
9
|
+
defiLlamaId: 'bucket-protocol',
|
9
10
|
};
|
10
11
|
exports.bottleType = '0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::bottle::Bottle';
|
11
12
|
exports.buckId = '0xce7ff77a83ea0cb6fd39bd8748e2ec89a3f41e8efdc3f4eb123e0ca37b184db2::buck::BUCK';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bucket/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bucket/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;IAC3D,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AAEW,QAAA,UAAU,GACrB,oFAAoF,CAAC;AAC1E,QAAA,MAAM,GACjB,gFAAgF,CAAC;AAEtE,QAAA,WAAW,GAAG;IACzB;QACE,OAAO,EAAE,eAAe;QACxB,QAAQ,EACN,oEAAoE;KACvE;IACD;QACE,OAAO,EACL,gFAAgF;QAClF,QAAQ,EACN,oEAAoE;KACvE;IACD;QACE,OAAO,EACL,gFAAgF;QAClF,QAAQ,EACN,oEAAoE;KACvE;IACD;QACE,OAAO,EACL,gFAAgF;QAClF,QAAQ,EACN,oEAAoE;KACvE;CACF,CAAC"}
|
@@ -6,6 +6,7 @@ exports.cetusPlatform = {
|
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Cetus',
|
8
8
|
image: 'https://alpha.sonar.watch/img/platforms/cetus.png',
|
9
|
+
defiLlamaId: 'cetus',
|
9
10
|
};
|
10
11
|
exports.clmmPoolsPrefix = `${exports.platformId}-clmmPools`;
|
11
12
|
exports.clmmPoolPackageId = '0x1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/cetus/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,OAAO;CACrB,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,QAAQ,GAAG,GAAG,yBAAiB,sBAAsB,CAAC;AAEtD,QAAA,eAAe,GAAG,GAAG,yBAAiB,4BAA4B,CAAC"}
|
@@ -7,6 +7,7 @@ exports.driftPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Drift',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/drift.png',
|
10
|
+
defiLlamaId: 'drift',
|
10
11
|
};
|
11
12
|
exports.prefixSpotMarkets = `${exports.platformId}-spotMarkets`;
|
12
13
|
exports.DriftProgram = new web3_js_1.PublicKey('dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/drift/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,OAAO;CACrB,CAAC;AACW,QAAA,iBAAiB,GAAG,GAAG,kBAAU,cAAc,CAAC;AAEhD,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC"}
|
@@ -1,6 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.marketsCachePrefix = exports.platformId = void 0;
|
3
|
+
exports.marketsCachePrefix = exports.fooPlatform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'foo';
|
5
|
+
exports.fooPlatform = {
|
6
|
+
id: exports.platformId,
|
7
|
+
name: 'Foo Finanace',
|
8
|
+
};
|
5
9
|
exports.marketsCachePrefix = `${exports.platformId}-markets`;
|
6
10
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,WAAW,GAAa;IACnC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;CACrB,CAAC;AACW,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC"}
|
package/src/plugins/foo/index.js
CHANGED
@@ -3,9 +3,11 @@ 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.fetchers = exports.jobs = void 0;
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
|
+
const constants_1 = require("./constants");
|
7
8
|
const marketsJob_1 = __importDefault(require("./marketsJob"));
|
8
9
|
const positionFetcher_1 = __importDefault(require("./positionFetcher"));
|
10
|
+
exports.platforms = [constants_1.fooPlatform];
|
9
11
|
exports.jobs = [marketsJob_1.default];
|
10
12
|
exports.fetchers = [positionFetcher_1.default];
|
11
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/index.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA0C;AAC1C,8DAAsC;AACtC,wEAAgD;AAEnC,QAAA,SAAS,GAAe,CAAC,uBAAW,CAAC,CAAC;AACtC,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
|
@@ -7,6 +7,7 @@ exports.kaminoPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Kamino',
|
9
9
|
image: `https://alpha.sonar.watch/img/platforms/${exports.platformId}.png`,
|
10
|
+
defiLlamaId: 'kamino',
|
10
11
|
};
|
11
12
|
exports.programId = new web3_js_1.PublicKey('6LtLpnUFNByNXLyCoK9wA2MykKAmQNZKBdY8s47dehDc');
|
12
13
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,2CAA2C,kBAAU,MAAM;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,2CAA2C,kBAAU,MAAM;IAClE,WAAW,EAAE,QAAQ;CACtB,CAAC;AACW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC"}
|
@@ -7,11 +7,13 @@ exports.fuzioPlatform = {
|
|
7
7
|
id: 'fuzio',
|
8
8
|
name: 'Fuzio',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/fuzio.png',
|
10
|
+
defiLlamaId: 'fuzio',
|
10
11
|
};
|
11
12
|
exports.seaswapPlatform = {
|
12
13
|
id: 'seaswap',
|
13
14
|
name: 'Seaswap',
|
14
15
|
image: 'https://alpha.sonar.watch/img/platforms/seaswap.png',
|
16
|
+
defiLlamaId: 'seaswap',
|
15
17
|
};
|
16
18
|
exports.astroportPlatform = {
|
17
19
|
id: 'astroport',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/liquiditypools-sei/constants.ts"],"names":[],"mappings":";;;AACA,uCAImB;AAEN,QAAA,QAAQ,GAAG,oBAAoB,CAAC;AAChC,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/liquiditypools-sei/constants.ts"],"names":[],"mappings":";;;AACA,uCAImB;AAEN,QAAA,QAAQ,GAAG,oBAAoB,CAAC;AAChC,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,OAAO;CACrB,CAAC;AACW,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qDAAqD;IAC5D,WAAW,EAAE,SAAS;CACvB,CAAC;AACW,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,uDAAuD;CAC/D,CAAC;AAEW,QAAA,mBAAmB,GAAyB;IACvD;QACE,UAAU,EAAE,yBAAiB,CAAC,EAAE;QAChC,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;QACf,MAAM,EAAE,0BAAgB;KACzB;IACD;QACE,UAAU,EAAE,uBAAe,CAAC,EAAE;QAC9B,KAAK,EAAE,CAAC,EAAE,CAAC;QACX,YAAY,EAAE,CAAC,yBAAyB,CAAC;QACzC,MAAM,EAAE,0BAAgB;KACzB;IACD;QACE,UAAU,EAAE,qBAAa,CAAC,EAAE;QAC5B,KAAK,EAAE,CAAC,EAAE,CAAC;QACX,MAAM,EAAE,0BAAgB;KACzB;CACF,CAAC"}
|
@@ -7,6 +7,7 @@ exports.liquidswapPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Liquidswap',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/liquidswap.png',
|
10
|
+
defiLlamaId: 'liquidswap',
|
10
11
|
};
|
11
12
|
exports.programAddress = '0x5a97986a9d031c4567e15b797be516910cfcb4156312482efc6a19c0a30c948';
|
12
13
|
exports.resourceAddress = '0x190d44266241744264b964a37b8f09863167a12d3e70cda39376cfb4e3561e12';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/liquidswap/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,kBAAkB,GAAa;IAC1C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,wDAAwD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/liquidswap/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,kBAAkB,GAAa;IAC1C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,wDAAwD;IAC/D,WAAW,EAAE,YAAY;CAC1B,CAAC;AACW,QAAA,cAAc,GACzB,mEAAmE,CAAC;AAEzD,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAC1D,QAAA,YAAY,GAAG,GAAG,sBAAc,gBAAgB,CAAC;AAEjD,QAAA,oBAAoB,GAAG,GAAG,gBAAQ,IAAI,oBAAY,EAAE,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.llamaProtocolsCachePrefix = exports.llamaProtocolsCacheKey = void 0;
|
4
|
+
exports.llamaProtocolsCacheKey = 'llama-protocols';
|
5
|
+
exports.llamaProtocolsCachePrefix = 'llama-protocols';
|
6
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/llama-protocols/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AAC3C,QAAA,yBAAyB,GAAG,iBAAiB,CAAC"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.getLlamaProtocolsJob = void 0;
|
16
|
+
const axios_1 = __importDefault(require("axios"));
|
17
|
+
const helpers_1 = require("./helpers");
|
18
|
+
const constants_1 = require("./constants");
|
19
|
+
const llamaUrl = 'https://api.llama.fi/protocols';
|
20
|
+
function getLlamaProtocolsJob(platforms) {
|
21
|
+
return (cache) => __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const llamaProtocolsResponse = yield axios_1.default.get(llamaUrl);
|
23
|
+
const platformIdByLlamaId = new Map();
|
24
|
+
platforms.forEach((platform) => {
|
25
|
+
if (!platform.defiLlamaId)
|
26
|
+
return;
|
27
|
+
platformIdByLlamaId.set(platform.defiLlamaId, platform.id);
|
28
|
+
});
|
29
|
+
const protocols = {};
|
30
|
+
const llamaProtocols = llamaProtocolsResponse.data;
|
31
|
+
for (let i = 0; i < llamaProtocols.length; i++) {
|
32
|
+
const llamaProtocol = llamaProtocols[i];
|
33
|
+
const platformId = platformIdByLlamaId.get(llamaProtocol.slug);
|
34
|
+
if (platformId) {
|
35
|
+
protocols[platformId] = (0, helpers_1.shrinkLlamaProtocol)(llamaProtocol);
|
36
|
+
continue;
|
37
|
+
}
|
38
|
+
if (!llamaProtocol.parentProtocol)
|
39
|
+
continue;
|
40
|
+
const platformId2 = platformIdByLlamaId.get(llamaProtocol.parentProtocol);
|
41
|
+
if (platformId2) {
|
42
|
+
if (!protocols[platformId2]) {
|
43
|
+
protocols[platformId2] = Object.assign(Object.assign({}, (0, helpers_1.shrinkLlamaProtocol)(llamaProtocol)), { tvl: 0 });
|
44
|
+
}
|
45
|
+
protocols[platformId2].tvl += llamaProtocol.tvl;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
yield cache.setItem(constants_1.llamaProtocolsCacheKey, JSON.stringify(protocols), {
|
49
|
+
prefix: constants_1.llamaProtocolsCachePrefix,
|
50
|
+
});
|
51
|
+
});
|
52
|
+
}
|
53
|
+
exports.getLlamaProtocolsJob = getLlamaProtocolsJob;
|
54
|
+
//# sourceMappingURL=getLlamaProtocolsJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getLlamaProtocolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/llama-protocols/getLlamaProtocolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;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,GAAG,EAAE,CAAC,GACP,CAAC;iBACH;gBACD,SAAS,CAAC,WAAW,CAAC,CAAC,GAAG,IAAI,aAAa,CAAC,GAAG,CAAC;aACjD;SACF;QACD,MAAM,KAAK,CAAC,OAAO,CAAC,kCAAsB,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE;YACrE,MAAM,EAAE,qCAAyB;SAClC,CAAC,CAAC;IACL,CAAC,CAAA,CAAC;AACJ,CAAC;AApCD,oDAoCC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.shrinkLlamaProtocol = void 0;
|
4
|
+
function shrinkLlamaProtocol(protocol) {
|
5
|
+
return {
|
6
|
+
id: protocol.id,
|
7
|
+
logo: protocol.logo,
|
8
|
+
name: protocol.name,
|
9
|
+
slug: protocol.slug,
|
10
|
+
tvl: protocol.tvl,
|
11
|
+
url: protocol.url,
|
12
|
+
deadUrl: protocol.deadUrl,
|
13
|
+
openSource: protocol.openSource,
|
14
|
+
rugged: protocol.rugged,
|
15
|
+
twitter: protocol.twitter
|
16
|
+
? `https://twitter.com/${protocol.twitter}`
|
17
|
+
: undefined,
|
18
|
+
};
|
19
|
+
}
|
20
|
+
exports.shrinkLlamaProtocol = shrinkLlamaProtocol;
|
21
|
+
//# sourceMappingURL=helpers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/llama-protocols/helpers.ts"],"names":[],"mappings":";;;AAEA,SAAgB,mBAAmB,CACjC,QAA2B;IAE3B,OAAO;QACL,EAAE,EAAE,QAAQ,CAAC,EAAE;QACf,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACvB,CAAC,CAAC,uBAAuB,QAAQ,CAAC,OAAO,EAAE;YAC3C,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC;AAjBD,kDAiBC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
exports.getLlamaProtocolsJob = void 0;
|
18
|
+
var getLlamaProtocolsJob_1 = require("./getLlamaProtocolsJob");
|
19
|
+
Object.defineProperty(exports, "getLlamaProtocolsJob", { enumerable: true, get: function () { return getLlamaProtocolsJob_1.getLlamaProtocolsJob; } });
|
20
|
+
__exportStar(require("./types"), exports);
|
21
|
+
__exportStar(require("./constants"), exports);
|
22
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/llama-protocols/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,0CAAwB;AACxB,8CAA4B"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
export type LlamaProtocolFull = {
|
2
|
+
id: string;
|
3
|
+
name: string;
|
4
|
+
address: null | string;
|
5
|
+
symbol: string;
|
6
|
+
url: string;
|
7
|
+
description: null | string;
|
8
|
+
chain: string;
|
9
|
+
logo: string;
|
10
|
+
audits: null | string;
|
11
|
+
audit_note?: null | string;
|
12
|
+
gecko_id: null | string;
|
13
|
+
cmcId: null | string;
|
14
|
+
category: string;
|
15
|
+
chains: string[];
|
16
|
+
module: string;
|
17
|
+
twitter?: null | string;
|
18
|
+
forkedFrom?: string[];
|
19
|
+
oracles?: string[];
|
20
|
+
listedAt?: number;
|
21
|
+
slug: string;
|
22
|
+
tvl: number;
|
23
|
+
chainTvls: {
|
24
|
+
[key: string]: number;
|
25
|
+
};
|
26
|
+
change_1h: number | null;
|
27
|
+
change_1d: number | null;
|
28
|
+
change_7d: number | null;
|
29
|
+
mcap: number | null;
|
30
|
+
referralUrl?: string;
|
31
|
+
treasury?: string;
|
32
|
+
audit_links?: string[];
|
33
|
+
openSource?: boolean;
|
34
|
+
governanceID?: string[];
|
35
|
+
github?: string[];
|
36
|
+
stablecoins?: string[];
|
37
|
+
parentProtocol?: string;
|
38
|
+
wrongLiquidity?: boolean;
|
39
|
+
staking?: number;
|
40
|
+
pool2?: number;
|
41
|
+
language?: string;
|
42
|
+
assetToken?: string;
|
43
|
+
oraclesByChain?: {
|
44
|
+
[key: string]: string[];
|
45
|
+
};
|
46
|
+
deadUrl?: boolean;
|
47
|
+
rugged?: boolean;
|
48
|
+
};
|
49
|
+
export type LlamaProtocol = {
|
50
|
+
id: string;
|
51
|
+
name: string;
|
52
|
+
url: string;
|
53
|
+
logo: string;
|
54
|
+
twitter?: null | string;
|
55
|
+
slug: string;
|
56
|
+
tvl: number;
|
57
|
+
openSource?: boolean;
|
58
|
+
deadUrl?: boolean;
|
59
|
+
rugged?: boolean;
|
60
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/llama-protocols/types.ts"],"names":[],"mappings":""}
|
@@ -1,4 +1,6 @@
|
|
1
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
1
2
|
export declare const platformId = "maker";
|
3
|
+
export declare const makerPlatform: Platform;
|
2
4
|
export declare const daiAddress = "0x6B175474E89094C44Da98b954EedeAC495271d0F";
|
3
5
|
export declare const daiDecimals = 18;
|
4
6
|
export declare const sDaiAddress = "0x83F20F44975D03b1b09e64809B757c47f942BEeA";
|
@@ -1,7 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.potAddress = exports.chaiDecimals = exports.chaiAddress = exports.sDaiDecimals = exports.sDaiAddress = exports.daiDecimals = exports.daiAddress = exports.platformId = void 0;
|
3
|
+
exports.potAddress = exports.chaiDecimals = exports.chaiAddress = exports.sDaiDecimals = exports.sDaiAddress = exports.daiDecimals = exports.daiAddress = exports.makerPlatform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'maker';
|
5
|
+
exports.makerPlatform = {
|
6
|
+
id: exports.platformId,
|
7
|
+
name: 'Maker DAO',
|
8
|
+
image: 'https://alpha.sonar.watch/img/platforms/mango.png',
|
9
|
+
defiLlamaId: 'makerdao',
|
10
|
+
};
|
5
11
|
exports.daiAddress = '0x6B175474E89094C44Da98b954EedeAC495271d0F';
|
6
12
|
exports.daiDecimals = 18;
|
7
13
|
exports.sDaiAddress = '0x83F20F44975D03b1b09e64809B757c47f942BEeA';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maker/constants.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maker/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,UAAU;CACxB,CAAC;AAEW,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAC1D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,WAAW,GAAG,4CAA4C,CAAC;AAC3D,QAAA,YAAY,GAAG,EAAE,CAAC;AAClB,QAAA,WAAW,GAAG,4CAA4C,CAAC;AAC3D,QAAA,YAAY,GAAG,EAAE,CAAC;AAClB,QAAA,UAAU,GAAG,4CAA4C,CAAC"}
|
@@ -3,8 +3,10 @@ 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.fetchers = exports.jobs = void 0;
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const sdaiJob_1 = __importDefault(require("./sdaiJob"));
|
8
|
+
const constants_1 = require("./constants");
|
9
|
+
exports.platforms = [constants_1.makerPlatform];
|
8
10
|
exports.jobs = [sdaiJob_1.default];
|
9
11
|
exports.fetchers = [];
|
10
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maker/index.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/maker/index.ts"],"names":[],"mappings":";;;;;;AAGA,wDAAgC;AAChC,2CAA4C;AAE/B,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,iBAAO,CAAC,CAAC;AACxB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -7,6 +7,7 @@ exports.mangoPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Mango',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/mango.png',
|
10
|
+
defiLlamaId: 'parent#mango-markets',
|
10
11
|
};
|
11
12
|
exports.banksPrefix = `${exports.platformId}-banks`;
|
12
13
|
exports.rootBankPrefix = `${exports.platformId}-rootBank`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,sBAAsB;CACpC,CAAC;AACW,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAC1C,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AAEpC,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,6CAA6C,CAC9C,CAAC"}
|
@@ -13,6 +13,7 @@ exports.marginfiPlatform = {
|
|
13
13
|
id: exports.platformId,
|
14
14
|
name: 'Marginfi',
|
15
15
|
image: 'https://alpha.sonar.watch/img/platforms/marginfi.png',
|
16
|
+
defiLlamaId: 'parent#marginfi',
|
16
17
|
};
|
17
18
|
exports.MarginfiProgram = new web3_js_1.PublicKey('MFv2hWf31Z9kbCa1snEPYctwafyhdvnV7FZnsebVacA');
|
18
19
|
exports.MarginfiAccountAddress = '4qp6Fx6tnZkY5Wropq9wUYgtFxXKwE6viZxFHg3rdAG8';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marginfi/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,+DAAqE;AACrE,gEAAqC;AAExB,QAAA,MAAM,GAAG,gBAAgB,CAAC;AAC1B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marginfi/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,+DAAqE;AACrE,gEAAqC;AAExB,QAAA,MAAM,GAAG,gBAAgB,CAAC;AAC1B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;IAC7D,WAAW,EAAE,iBAAiB;CAC/B,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,sBAAsB,GACjC,8CAA8C,CAAC;AAEpC,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,8BAAa,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC,CAAC"}
|
@@ -12,6 +12,7 @@ exports.marinadePlatform = {
|
|
12
12
|
id: exports.platformId,
|
13
13
|
name: 'Marinade',
|
14
14
|
image: 'https://alpha.sonar.watch/img/platforms/marinade.png',
|
15
|
+
defiLlamaId: 'marinade-finance',
|
15
16
|
};
|
16
17
|
exports.cachePrefix = 'marinade';
|
17
18
|
exports.marinadeTicketProgramId = new web3_js_1.PublicKey('MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marinade/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,+DAAqE;AACrE,gEAAqC;AAExB,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/marinade/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,+DAAqE;AACrE,gEAAqC;AAExB,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;IAC7D,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEW,QAAA,WAAW,GAAG,UAAU,CAAC;AACzB,QAAA,uBAAuB,GAAG,IAAI,mBAAS,CAClD,6CAA6C,CAC9C,CAAC;AACW,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,8BAAa,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC,CAAC"}
|
@@ -7,6 +7,7 @@ exports.meteoraPlatform = {
|
|
7
7
|
id: 'meteora',
|
8
8
|
name: 'Meteora',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/meteora.png',
|
10
|
+
defiLlamaId: 'parent#meteora',
|
10
11
|
};
|
11
12
|
exports.prefixVaults = `${exports.platformId}-vaults`;
|
12
13
|
exports.vaultsProgramId = new web3_js_1.PublicKey('24Uqj9JCLxUeoC3hGfh5W3s9FM9uCHDS2SG3LYwBpyTi');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qDAAqD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qDAAqD;IAC5D,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AAEtC,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC"}
|
@@ -6,6 +6,7 @@ exports.morphoPlatform = {
|
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Morpho',
|
8
8
|
image: 'https://alpha.sonar.watch/img/platforms/morpho.png',
|
9
|
+
defiLlamaId: 'parent#morpho',
|
9
10
|
};
|
10
11
|
exports.updatedIndexesPrefix = `${exports.platformId}-updated-indexes`;
|
11
12
|
exports.morphoAaveV3Address = '0x33333aea097c193e66081E930c33020272b33333';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/morpho/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/morpho/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;IAC3D,WAAW,EAAE,eAAe;CAC7B,CAAC;AACW,QAAA,oBAAoB,GAAG,GAAG,kBAAU,kBAAkB,CAAC;AACvD,QAAA,mBAAmB,GAAG,4CAA4C,CAAC;AACnE,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAElE,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,4CAA4C;IAClD,GAAG,EAAE,4CAA4C;IACjD,IAAI,EAAE,4CAA4C;IAClD,MAAM,EAAE,4CAA4C;IACpD,KAAK,EAAE,4CAA4C;IACnD,GAAG,EAAE,4CAA4C;IACjD,IAAI,EAAE,4CAA4C;IAClD,IAAI,EAAE,4CAA4C;IAClD,IAAI,EAAE,4CAA4C;IAClD,KAAK,EAAE,4CAA4C;CACpD,CAAC;AAEW,QAAA,WAAW,GAAG,4CAA4C,CAAC;AAC3D,QAAA,YAAY,GAAG,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,2CAA2C,kBAAU,MAAM;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/navi/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,2CAA2C,kBAAU,MAAM;IAClE,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEW,QAAA,cAAc,GAAG,kBAAU,CAAC;AAC5B,QAAA,WAAW,GAAG,UAAU,CAAC;AAEzB,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAE1D,QAAA,UAAU,GAAG;IACxB;QACE,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,8EAA8E;QACpF,WAAW,EACT,oEAAoE;QACtE,IAAI,EAAE,oEAAoE;QAC1E,qBAAqB,EACnB,oEAAoE;QACtE,qBAAqB,EACnB,oEAAoE;KACvE;IACD;QACE,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gFAAgF;QACtF,WAAW,EACT,oEAAoE;QACtE,IAAI,EAAE,oEAAoE;QAC1E,qBAAqB,EACnB,oEAAoE;QACtE,qBAAqB,EACnB,oEAAoE;KACvE;IACD;QACE,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gFAAgF;QACtF,WAAW,EACT,oEAAoE;QACtE,IAAI,EAAE,EAAE;QACR,qBAAqB,EACnB,oEAAoE;QACtE,qBAAqB,EACnB,oEAAoE;KACvE;IACD;QACE,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gFAAgF;QACtF,IAAI,EAAE,oEAAoE;QAC1E,WAAW,EACT,oEAAoE;QACtE,qBAAqB,EACnB,oEAAoE;QACtE,qBAAqB,EACnB,oEAAoE;KACvE;CACF,CAAC"}
|
@@ -7,6 +7,7 @@ exports.orcaPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Orca',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/orca.png',
|
10
|
+
defiLlamaId: 'orca',
|
10
11
|
};
|
11
12
|
exports.poolsProgram = new web3_js_1.PublicKey('9W959DqEETiGZocYWCQPaJ6sBmUzgfxXfqGeTEdp3aQP');
|
12
13
|
exports.aquafarmsProgram = new web3_js_1.PublicKey('82yxjeMsvaURa4MbZZ7WZZHfobirZYkH1zF8fmeGtyaQ');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,kDAAkD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/orca/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,YAAY,GAAa;IACpC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,kDAAkD;IACzD,WAAW,EAAE,MAAM;CACpB,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,mBAAmB,GAAG,yBAAyB,CAAC;AAChD,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAC5C,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,8CAA8C,CAC/C,CAAC;AACW,QAAA,YAAY,GAAG,+CAA+C,CAAC"}
|
@@ -7,11 +7,13 @@ exports.openbookPlatform = {
|
|
7
7
|
id: 'openbook',
|
8
8
|
name: 'OpenBook',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/openbook.png',
|
10
|
+
defiLlamaId: 'openbook',
|
10
11
|
};
|
11
12
|
exports.serumPlatform = {
|
12
13
|
id: 'serum',
|
13
14
|
name: 'Serum',
|
14
15
|
image: 'https://alpha.sonar.watch/img/platforms/serum.png',
|
16
|
+
defiLlamaId: 'serum',
|
15
17
|
};
|
16
18
|
exports.clobVersions = {
|
17
19
|
serumV1: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/clobs-solana/constants.ts"],"names":[],"mappings":";;;AACA,uCAKmB;AAEnB,iEAAsE;AAEzD,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/clobs-solana/constants.ts"],"names":[],"mappings":";;;AACA,uCAKmB;AAEnB,iEAAsE;AAEzD,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,sDAAsD;IAC7D,WAAW,EAAE,UAAU;CACxB,CAAC;AACW,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,OAAO;IACX,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,OAAO;CACrB,CAAC;AACW,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE;QACP,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,8CAA8C;QACzD,MAAM,EAAE,6BAAmB;QAC3B,WAAW,EAAE,+BAAkB;QAC/B,MAAM,EAAE,GAAG,qBAAa,CAAC,EAAE,YAAY;KACzB;IAChB,OAAO,EAAE;QACP,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,8CAA8C;QACzD,MAAM,EAAE,6BAAmB;QAC3B,WAAW,EAAE,4BAAkB;QAC/B,MAAM,EAAE,GAAG,qBAAa,CAAC,EAAE,YAAY;KACzB;IAChB,OAAO,EAAE;QACP,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,8CAA8C;QACzD,MAAM,EAAE,6BAAmB;QAC3B,WAAW,EAAE,4BAAkB;QAC/B,MAAM,EAAE,GAAG,qBAAa,CAAC,EAAE,YAAY;KACzB;IAChB,UAAU,EAAE;QACV,IAAI,EAAE,aAAa;QACnB,SAAS,EAAE,6CAA6C;QACxD,MAAM,EAAE,6BAAmB;QAC3B,WAAW,EAAE,4BAAkB;QAC/B,MAAM,EAAE,GAAG,wBAAgB,CAAC,EAAE,UAAU;KAC1B;IAChB,gBAAgB;IAChB,8DAA8D;IAC9D,oCAAoC;IACpC,qCAAqC;IACrC,mCAAmC;IACnC,wBAAwB;CACzB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qDAAqD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/orders/jupiter/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qDAAqD;IAC5D,WAAW,EAAE,oBAAoB;CAClC,CAAC"}
|
@@ -7,6 +7,7 @@ exports.pancakeswapPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'PancakeSwap',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/pancakeswap.png',
|
10
|
+
defiLlamaId: 'parent#pancakeswap',
|
10
11
|
};
|
11
12
|
exports.programAddress = '0xc7efb4076dbe143cbcd98cfaaa929ecfc8f299203dfff63b95ccb6bfe19850fa';
|
12
13
|
exports.lpTypePrefix = `${exports.programAddress}::swap::LPToken<`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pancakeswap/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,aAAa,CAAC;AAC3B,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,yDAAyD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pancakeswap/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,aAAa,CAAC;AAC3B,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,yDAAyD;IAChE,WAAW,EAAE,oBAAoB;CAClC,CAAC;AACW,QAAA,cAAc,GACzB,oEAAoE,CAAC;AAE1D,QAAA,YAAY,GAAG,GAAG,sBAAc,kBAAkB,CAAC;AACnD,QAAA,oBAAoB,GAAG,GAAG,gBAAQ,IAAI,oBAAY,EAAE,CAAC"}
|
@@ -7,6 +7,7 @@ exports.raydiumPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Raydium',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/raydium.png',
|
10
|
+
defiLlamaId: 'raydium',
|
10
11
|
};
|
11
12
|
exports.AMM_PROGRAM_ID_V4 = new web3_js_1.PublicKey('675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8');
|
12
13
|
exports.AMM_PROGRAM_ID_V5 = new web3_js_1.PublicKey('5quBtoiQqxF9Jv6KYKctB59NT3gtJD2Y65kdnB1Uev3h');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qDAAqD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/raydium/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,eAAe,GAAa;IACvC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qDAAqD;IAC5D,WAAW,EAAE,SAAS;CACvB,CAAC;AACW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,mBAAmB,GAAG,gCAAgC,CAAC"}
|
@@ -6,6 +6,7 @@ exports.saberPlatform = {
|
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Saber',
|
8
8
|
image: 'https://alpha.sonar.watch/img/platforms/saber.png',
|
9
|
+
defiLlamaId: 'saber',
|
9
10
|
};
|
10
11
|
exports.SABER_SWAPS = 'https://raw.githubusercontent.com/saber-hq/saber-registry-dist/master/data/swaps.mainnet.json';
|
11
12
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/saber/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,OAAO;CACrB,CAAC;AACW,QAAA,WAAW,GACtB,+FAA+F,CAAC"}
|
@@ -7,6 +7,7 @@ exports.solendPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Solend',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/solend.png',
|
10
|
+
defiLlamaId: 'solend',
|
10
11
|
};
|
11
12
|
exports.marketsPrefix = `${exports.platformId}-markets`;
|
12
13
|
exports.reservesPrefix = `${exports.platformId}-reserves`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solend/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;IAC3D,WAAW,EAAE,QAAQ;CACtB,CAAC;AACW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,cAAc,GAAG,GAAG,kBAAU,WAAW,CAAC;AAE1C,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,eAAe,GAAG,0CAA0C,CAAC;AAC7D,QAAA,eAAe,GAAG,yCAAyC,CAAC;AAC5D,QAAA,WAAW,GAAG,EAAE,CAAC"}
|
@@ -7,6 +7,7 @@ exports.thalaPlatform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Thala',
|
9
9
|
image: 'https://alpha.sonar.watch/img/platforms/thala.png',
|
10
|
+
defiLlamaId: 'parent#thala-labs',
|
10
11
|
};
|
11
12
|
exports.programAdressThala = '0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01';
|
12
13
|
const stabilityModule = 'stability_pool';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"names":[],"mappings":";;;AACA,6CAA6C;AAEhC,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,mBAAmB;CACjC,CAAC;AACW,QAAA,kBAAkB,GAC7B,oEAAoE,CA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,QAAQ,EAAE,kBAAkB;IAC5B,cAAc,EAAE,EAAE;IAClB,SAAS,EAAE,CAAC,KAAK,CAAC;CACnB,CAAC,CAAC;AAJU,QAAA,yBAAyB,6BAInC"}
|
@@ -6,6 +6,7 @@ exports.turbosPlatform = {
|
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Turbos',
|
8
8
|
image: 'https://alpha.sonar.watch/img/platforms/turbos.png',
|
9
|
+
defiLlamaId: 'turbos',
|
9
10
|
};
|
10
11
|
exports.clmmPoolsPrefix = `${exports.platformId}-clmmPools`;
|
11
12
|
exports.poolTableId = '0x08984ed8705f44b6403705dc248896e56ab7961447820ae29be935ce0d32198b';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/turbos/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,cAAc,GAAa;IACtC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oDAAoD;IAC3D,WAAW,EAAE,QAAQ;CACtB,CAAC;AACW,QAAA,eAAe,GAAG,GAAG,kBAAU,YAAY,CAAC;AAE5C,QAAA,WAAW,GACtB,oEAAoE,CAAC;AAE1D,QAAA,iBAAiB,GAC5B,oEAAoE,CAAC;AAE1D,QAAA,WAAW,GAAG,GAAG,yBAAiB,mCAAmC,CAAC"}
|