@sonarwatch/portfolio-plugins 0.8.10 → 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 CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.8.11](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.10...plugins-0.8.11) (2023-10-13)
6
+
7
+
8
+ ### Reverts
9
+
10
+ * Revert "fix" ([75a2d85](https://github.com/sonarwatch/portfolio/commit/75a2d85230c10109f052c903700899308a48e72c))
11
+
12
+
13
+
5
14
  ## [0.8.10](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.9...plugins-0.8.10) (2023-10-12)
6
15
 
7
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.8.10",
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.10"
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,
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,2CAGyB;AACzB,6CAG0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,wFAAqF;AAErF,wDAGoC;AAFlC,iHAAA,oBAAoB,OAAA;AACpB,+GAAA,kBAAkB,OAAA;AAGpB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB;AACtB,uDAAqC;AACrC,gDAA8B;AAE9B,eAAe;AACF,QAAA,SAAS,GAAe;IACnC,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,uBAAoB;IACvB,GAAG,8BAA0B;IAC7B,GAAG,sBAAmB;IACtB,GAAG,qBAAkB;IACrB,GAAG,uBAAoB;IACvB,GAAG,kBAAe;IAClB,GAAG,wBAAoB;IACvB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,yBAAqB;IACxB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,iBAAc;CAClB,CAAC;AAEF,UAAU;AACG,QAAA,IAAI,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
+ {"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,2CAGyB;AACzB,6CAG0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,wFAAqF;AAErF,wDAGoC;AAFlC,iHAAA,oBAAoB,OAAA;AACpB,+GAAA,kBAAkB,OAAA;AAGpB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB;AACtB,uDAAqC;AACrC,gDAA8B;AAC9B,4DAA0C;AAE1C,eAAe;AACF,QAAA,SAAS,GAAe;IACnC,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,uBAAoB;IACvB,GAAG,8BAA0B;IAC7B,GAAG,sBAAmB;IACtB,GAAG,qBAAkB;IACrB,GAAG,uBAAoB;IACvB,GAAG,kBAAe;IAClB,GAAG,wBAAoB;IACvB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,yBAAqB;IACxB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,iBAAc;CAClB,CAAC;AAEF,UAAU;AACG,QAAA,IAAI,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,2 +1,4 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
1
2
  export declare const platformId = "foo";
3
+ export declare const fooPlatform: Platform;
2
4
  export declare const marketsCachePrefix: string;
@@ -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":";;;AAAa,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC"}
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"}
@@ -1,4 +1,6 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
1
2
  import { Fetcher } from '../../Fetcher';
2
3
  import { Job } from '../../Job';
4
+ export declare const platforms: Platform[];
3
5
  export declare const jobs: Job[];
4
6
  export declare const fetchers: Fetcher[];
@@ -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":";;;;;;AAEA,8DAAsC;AACtC,wEAAgD;AAEnC,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
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"}
@@ -0,0 +1,2 @@
1
+ export declare const llamaProtocolsCacheKey = "llama-protocols";
2
+ export declare const llamaProtocolsCachePrefix = "llama-protocols";
@@ -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,3 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { JobExecutor } from '../../Job';
3
+ export declare function getLlamaProtocolsJob(platforms: Platform[]): JobExecutor;
@@ -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":";;;;;;;;;;;;;;;AACA,kDAA0B;AAI1B,uCAAgD;AAChD,2CAAgF;AAEhF,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AAElD,SAAgB,oBAAoB,CAAC,SAAqB;IACxD,OAAO,CAAO,KAAY,EAAE,EAAE;QAC5B,MAAM,sBAAsB,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACzD,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAkB,CAAC;QACtD,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC7B,IAAI,CAAC,QAAQ,CAAC,WAAW;gBAAE,OAAO;YAClC,mBAAmB,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QAEH,MAAM,SAAS,GAAkC,EAAE,CAAC;QACpD,MAAM,cAAc,GAAG,sBAAsB,CAAC,IAA2B,CAAC;QAE1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,aAAa,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;YACxC,MAAM,UAAU,GAAG,mBAAmB,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAC/D,IAAI,UAAU,EAAE;gBACd,SAAS,CAAC,UAAU,CAAC,GAAG,IAAA,6BAAmB,EAAC,aAAa,CAAC,CAAC;gBAC3D,SAAS;aACV;YAED,IAAI,CAAC,aAAa,CAAC,cAAc;gBAAE,SAAS;YAC5C,MAAM,WAAW,GAAG,mBAAmB,CAAC,GAAG,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;YAC1E,IAAI,WAAW,EAAE;gBACf,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE;oBAC3B,SAAS,CAAC,WAAW,CAAC,mCACjB,IAAA,6BAAmB,EAAC,aAAa,CAAC,KACrC,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,2 @@
1
+ import { LlamaProtocol, LlamaProtocolFull } from './types';
2
+ export declare function shrinkLlamaProtocol(protocol: LlamaProtocolFull): LlamaProtocol;
@@ -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,3 @@
1
+ export { getLlamaProtocolsJob } from './getLlamaProtocolsJob';
2
+ export * from './types';
3
+ export * from './constants';
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/llama-protocols/types.ts"],"names":[],"mappings":""}