@sonarwatch/portfolio-plugins 0.8.35 → 0.8.36
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 +4 -0
- package/package.json +2 -2
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/plugins/compound/constants.d.ts +1 -1
- package/src/plugins/compound/constants.js +2 -2
- package/src/plugins/compound/constants.js.map +1 -1
- package/src/plugins/compound/index.js +1 -1
- package/src/plugins/compound/index.js.map +1 -1
- package/src/plugins/curve/constants.d.ts +1 -1
- package/src/plugins/curve/constants.js +2 -2
- package/src/plugins/curve/constants.js.map +1 -1
- package/src/plugins/curve/index.js +1 -1
- package/src/plugins/curve/index.js.map +1 -1
- package/src/plugins/foo/constants.d.ts +1 -1
- package/src/plugins/foo/constants.js +2 -2
- package/src/plugins/foo/constants.js.map +1 -1
- package/src/plugins/foo/index.js +1 -1
- package/src/plugins/foo/index.js.map +1 -1
- package/src/plugins/lido/constants.d.ts +1 -1
- package/src/plugins/lido/constants.js +2 -2
- package/src/plugins/lido/constants.js.map +1 -1
- package/src/plugins/lido/index.js +1 -1
- package/src/plugins/lido/index.js.map +1 -1
- package/src/plugins/rocket-pool/constants.d.ts +1 -1
- package/src/plugins/rocket-pool/constants.js +2 -2
- package/src/plugins/rocket-pool/constants.js.map +1 -1
- package/src/plugins/rocket-pool/index.js +1 -1
- package/src/plugins/rocket-pool/index.js.map +1 -1
- package/src/plugins/stader/constants.d.ts +3 -0
- package/src/plugins/stader/constants.js +11 -0
- package/src/plugins/stader/constants.js.map +1 -0
- package/src/plugins/stader/index.d.ts +6 -0
- package/src/plugins/stader/index.js +8 -0
- package/src/plugins/stader/index.js.map +1 -0
- package/src/plugins/top-tokens/forcedAddresses.js +4 -2
- package/src/plugins/top-tokens/forcedAddresses.js.map +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.8.36](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.35...plugins-0.8.36) (2023-10-21)
|
6
|
+
|
7
|
+
|
8
|
+
|
5
9
|
## [0.8.35](https://github.com/sonarwatch/portfolio/compare/plugins-0.8.34...plugins-0.8.35) (2023-10-21)
|
6
10
|
|
7
11
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.36",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"web3-v1": "npm:web3@^1.5.0"
|
38
38
|
},
|
39
39
|
"peerDependencies": {
|
40
|
-
"@sonarwatch/portfolio-core": "0.8.
|
40
|
+
"@sonarwatch/portfolio-core": "0.8.36"
|
41
41
|
},
|
42
42
|
"main": "./src/index.js",
|
43
43
|
"types": "./src/index.d.ts"
|
package/src/index.js
CHANGED
@@ -54,6 +54,7 @@ const lido_1 = require("./plugins/lido");
|
|
54
54
|
const curve_1 = require("./plugins/curve");
|
55
55
|
const compound_1 = require("./plugins/compound");
|
56
56
|
const stargate_1 = require("./plugins/stargate");
|
57
|
+
const stader_1 = require("./plugins/stader");
|
57
58
|
var constants_1 = require("./plugins/tokens/constants");
|
58
59
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
59
60
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -99,6 +100,7 @@ exports.platforms = [
|
|
99
100
|
...curve_1.platforms,
|
100
101
|
...compound_1.platforms,
|
101
102
|
...stargate_1.platforms,
|
103
|
+
...stader_1.platforms,
|
102
104
|
];
|
103
105
|
// JOBS //
|
104
106
|
exports.jobs = [
|
@@ -130,6 +132,7 @@ exports.jobs = [
|
|
130
132
|
...curve_1.jobs,
|
131
133
|
...compound_1.jobs,
|
132
134
|
...stargate_1.jobs,
|
135
|
+
...stader_1.jobs,
|
133
136
|
];
|
134
137
|
// FETCHERS //
|
135
138
|
exports.fetchers = [
|
@@ -159,6 +162,7 @@ exports.fetchers = [
|
|
159
162
|
...maker_1.fetchers,
|
160
163
|
...compound_1.fetchers,
|
161
164
|
...lido_1.fetchers,
|
165
|
+
...stader_1.fetchers,
|
162
166
|
];
|
163
167
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
164
168
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,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,2CAIyB;AACzB,6CAG0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA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AChB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;CAClB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { EvmNetworkIdType, Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { MarketDetail } from './types';
|
3
3
|
export declare const platformId = "compound";
|
4
|
-
export declare const
|
4
|
+
export declare const compoundPlatform: Platform;
|
5
5
|
export declare const comethTokenPricesPrefix = "cometh-token-prices";
|
6
6
|
export declare const marketDetails: Map<EvmNetworkIdType, MarketDetail[]>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.marketDetails = exports.comethTokenPricesPrefix = exports.
|
3
|
+
exports.marketDetails = exports.comethTokenPricesPrefix = exports.compoundPlatform = exports.platformId = void 0;
|
4
4
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
5
5
|
exports.platformId = 'compound';
|
6
|
-
exports.
|
6
|
+
exports.compoundPlatform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Compound',
|
9
9
|
image: 'https://sonar.watch/img/platforms/compound.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/constants.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AAGvB,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/constants.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AAGvB,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,gBAAgB,GAAa;IACxC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,K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EAAE,CAAC;gBACpB,MAAM,EAAE;oBACN;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,CAAC;qBACZ;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;oBACD;wBACE,OAAO,EAAE,4CAA4C;wBACrD,QAAQ,EAAE,EAAE;qBACb;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
@@ -8,7 +8,7 @@ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
|
8
8
|
const constants_1 = require("./constants");
|
9
9
|
const marketsJob_1 = __importDefault(require("./marketsJob"));
|
10
10
|
const getPositionsV3Fetcher_1 = __importDefault(require("./getPositionsV3Fetcher"));
|
11
|
-
exports.platforms = [constants_1.
|
11
|
+
exports.platforms = [constants_1.compoundPlatform];
|
12
12
|
exports.jobs = [marketsJob_1.default];
|
13
13
|
exports.fetchers = [
|
14
14
|
(0, getPositionsV3Fetcher_1.default)(portfolio_core_1.NetworkId.ethereum),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/compound/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAiE;AAGjE,2CAA+C;AAC/C,8DAAsC;AACtC,oFAA4D;AAE/C,QAAA,SAAS,GAAe,CAAC,4BAAgB,CAAC,CAAC;AAC3C,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc;IACjC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,QAAQ,CAAC;IACzC,IAAA,+BAAqB,EAAC,0BAAS,CAAC,OAAO,CAAC;CACzC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { EvmNetworkIdType, Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
export declare const platformId = "curve";
|
3
|
-
export declare const
|
3
|
+
export declare const curvePlatform: Platform;
|
4
4
|
export declare const poolsCachePrefix: string;
|
5
5
|
export declare const gaugesCachePrefix: string;
|
6
6
|
export declare const poolsByAddressPrefix: string;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.crvNetworkIdBySwNetworkId = exports.crvNetworkIds = exports.crvDecimals = exports.crvAddress = exports.CrvNetworkId = exports.vestingEscrowAddress = exports.votingEscrowAddress = exports.apiBaseUrl = exports.gaugesAddresesCachePrefix = exports.poolsByAddressPrefix = exports.gaugesCachePrefix = exports.poolsCachePrefix = exports.
|
3
|
+
exports.crvNetworkIdBySwNetworkId = exports.crvNetworkIds = exports.crvDecimals = exports.crvAddress = exports.CrvNetworkId = exports.vestingEscrowAddress = exports.votingEscrowAddress = exports.apiBaseUrl = exports.gaugesAddresesCachePrefix = exports.poolsByAddressPrefix = exports.gaugesCachePrefix = exports.poolsCachePrefix = exports.curvePlatform = exports.platformId = void 0;
|
4
4
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
5
5
|
exports.platformId = 'curve';
|
6
|
-
exports.
|
6
|
+
exports.curvePlatform = {
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Curve Finance',
|
9
9
|
image: 'https://sonar.watch/img/platforms/curve.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/curve/constants.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AAEvB,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/curve/constants.ts"],"names":[],"mappings":";;;AAAA,+DAIoC;AAEvB,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,aAAa,GAAa;IACrC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,6CAA6C;IACpD,WAAW,EAAE,sBAAsB;CACpC,CAAC;AACW,QAAA,gBAAgB,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACzC,QAAA,iBAAiB,GAAG,GAAG,kBAAU,SAAS,CAAC;AAC3C,QAAA,oBAAoB,GAAG,GAAG,kBAAU,mBAAmB,CAAC;AACxD,QAAA,yBAAyB,GAAG,GAAG,kBAAU,mBAAmB,CAAC;AAE7D,QAAA,UAAU,GAAG,0BAA0B,CAAC;AAExC,QAAA,mBAAmB,GAAG,4CAA4C,CAAC;AACnE,QAAA,oBAAoB,GAC/B,4CAA4C,CAAC;AAE/C,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;AACzB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAEY,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAC1D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE5C,QAAA,yBAAyB,GACpC;IACE,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,0BAAS,CAAC,QAAQ;IAC3C,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,0BAAS,CAAC,OAAO;IACzC,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,0BAAS,CAAC,SAAS;CAC9C,CAAC"}
|
@@ -10,7 +10,7 @@ const gaugesJob_1 = __importDefault(require("./gaugesJob"));
|
|
10
10
|
const getPositionsFetcher_1 = require("./getPositionsFetcher");
|
11
11
|
const votingEscrowFetcher_1 = __importDefault(require("./votingEscrowFetcher"));
|
12
12
|
const vestingEscrowFetcher_1 = __importDefault(require("./vestingEscrowFetcher"));
|
13
|
-
exports.platforms = [constants_1.
|
13
|
+
exports.platforms = [constants_1.curvePlatform];
|
14
14
|
exports.jobs = [poolsJob_1.default, gaugesJob_1.default];
|
15
15
|
exports.fetchers = [
|
16
16
|
(0, getPositionsFetcher_1.getPositionsFetcher)(constants_1.CrvNetworkId.ethereum),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/curve/index.ts"],"names":[],"mappings":";;;;;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/curve/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA0D;AAC1D,0DAAkC;AAClC,4DAAoC;AACpC,+DAA4D;AAC5D,gFAAwD;AACxD,kFAA0D;AAE7C,QAAA,SAAS,GAAe,CAAC,yBAAa,CAAC,CAAC;AACxC,QAAA,IAAI,GAAU,CAAC,kBAAQ,EAAE,mBAAS,CAAC,CAAC;AACpC,QAAA,QAAQ,GAAc;IACjC,IAAA,yCAAmB,EAAC,wBAAY,CAAC,QAAQ,CAAC;IAC1C,IAAA,yCAAmB,EAAC,wBAAY,CAAC,OAAO,CAAC;IACzC,IAAA,yCAAmB,EAAC,wBAAY,CAAC,SAAS,CAAC;IAC3C,6BAAmB;IACnB,8BAAoB;CACrB,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.marketsCachePrefix = exports.
|
3
|
+
exports.marketsCachePrefix = exports.platform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'foo';
|
5
|
-
exports.
|
5
|
+
exports.platform = {
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Foo Finanace',
|
8
8
|
image: 'https://sonar.watch/img/platforms/foo.png',
|
@@ -1 +1 @@
|
|
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,
|
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,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,2CAA2C;IAClD,WAAW,EAAE,aAAa,EAAE,sCAAsC;CACnE,CAAC;AACW,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC"}
|
package/src/plugins/foo/index.js
CHANGED
@@ -7,7 +7,7 @@ exports.fetchers = exports.jobs = exports.platforms = void 0;
|
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const marketsJob_1 = __importDefault(require("./marketsJob"));
|
9
9
|
const positionFetcher_1 = __importDefault(require("./positionFetcher"));
|
10
|
-
exports.platforms = [constants_1.
|
10
|
+
exports.platforms = [constants_1.platform];
|
11
11
|
exports.jobs = [marketsJob_1.default];
|
12
12
|
exports.fetchers = [positionFetcher_1.default];
|
13
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/index.ts"],"names":[],"mappings":";;;;;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/foo/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,8DAAsC;AACtC,wEAAgD;AAEnC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,oBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
export declare const platformId = "lido";
|
3
|
-
export declare const
|
3
|
+
export declare const lidoPlatform: Platform;
|
4
4
|
export declare const withdrawlQueueAddress = "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1";
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.withdrawlQueueAddress = exports.
|
3
|
+
exports.withdrawlQueueAddress = exports.lidoPlatform = exports.platformId = void 0;
|
4
4
|
exports.platformId = 'lido';
|
5
|
-
exports.
|
5
|
+
exports.lidoPlatform = {
|
6
6
|
id: exports.platformId,
|
7
7
|
name: 'Lido',
|
8
8
|
image: 'https://sonar.watch/img/platforms/lido.png',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lido/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lido/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,4CAA4C;IACnD,WAAW,EAAE,MAAM;CACpB,CAAC;AAEW,QAAA,qBAAqB,GAChC,4CAA4C,CAAC"}
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const withdrawlFetcher_1 = __importDefault(require("./withdrawlFetcher"));
|
9
|
-
exports.platforms = [constants_1.
|
9
|
+
exports.platforms = [constants_1.lidoPlatform];
|
10
10
|
exports.jobs = [];
|
11
11
|
exports.fetchers = [withdrawlFetcher_1.default];
|
12
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lido/index.ts"],"names":[],"mappings":";;;;;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/lido/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAA2C;AAC3C,0EAAkD;AAErC,QAAA,SAAS,GAAe,CAAC,wBAAY,CAAC,CAAC;AACvC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,0BAAgB,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import BigNumber from 'bignumber.js';
|
3
3
|
export declare const platformId = "rocketpool";
|
4
|
-
export declare const
|
4
|
+
export declare const rocketPoolPlatform: Platform;
|
5
5
|
export declare const marketsCachePrefix: string;
|
6
6
|
export declare const minipoolManagerAddress = "0x6293B8abC1F36aFB22406Be5f96D893072A8cF3a";
|
7
7
|
export declare const nodeStakingAddress = "0x0d8D8f8541B12A0e1194B7CC4b6D954b90AB82ec";
|
@@ -3,10 +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.rplFactor = exports.rplDecimals = exports.rplAddress = exports.nodeStakingAddress = exports.minipoolManagerAddress = exports.marketsCachePrefix = exports.
|
6
|
+
exports.rplFactor = exports.rplDecimals = exports.rplAddress = exports.nodeStakingAddress = exports.minipoolManagerAddress = exports.marketsCachePrefix = exports.rocketPoolPlatform = exports.platformId = void 0;
|
7
7
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
8
8
|
exports.platformId = 'rocketpool';
|
9
|
-
exports.
|
9
|
+
exports.rocketPoolPlatform = {
|
10
10
|
id: exports.platformId,
|
11
11
|
name: 'Rocket Pool',
|
12
12
|
defiLlamaId: 'rocket-pool',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/constants.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAExB,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/constants.ts"],"names":[],"mappings":";;;;;;AACA,gEAAqC;AAExB,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,kBAAkB,GAAa;IAC1C,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE,kDAAkD;CAC1D,CAAC;AACW,QAAA,kBAAkB,GAAG,GAAG,kBAAU,UAAU,CAAC;AAC7C,QAAA,sBAAsB,GACjC,4CAA4C,CAAC;AAClC,QAAA,kBAAkB,GAAG,4CAA4C,CAAC;AAClE,QAAA,UAAU,GAAG,4CAA4C,CAAC;AAC1D,QAAA,WAAW,GAAG,EAAE,CAAC;AACjB,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,mBAAW,CAAA,CAAC,CAAC"}
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const positionFetcher_1 = __importDefault(require("./positionFetcher"));
|
9
|
-
exports.platforms = [constants_1.
|
9
|
+
exports.platforms = [constants_1.rocketPoolPlatform];
|
10
10
|
exports.jobs = [];
|
11
11
|
exports.fetchers = [positionFetcher_1.default];
|
12
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/index.ts"],"names":[],"mappings":";;;;;;AAGA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rocket-pool/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAiD;AACjD,wEAAgD;AAEnC,QAAA,SAAS,GAAe,CAAC,8BAAkB,CAAC,CAAC;AAC7C,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,CAAC,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.staderPlatform = exports.platformId = void 0;
|
4
|
+
exports.platformId = 'stader';
|
5
|
+
exports.staderPlatform = {
|
6
|
+
id: exports.platformId,
|
7
|
+
name: 'Stader',
|
8
|
+
image: 'https://sonar.watch/img/platforms/stader.png',
|
9
|
+
defiLlamaId: 'stader', // from https://defillama.com/docs/api
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stader/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,8CAA8C;IACrD,WAAW,EAAE,QAAQ,EAAE,sCAAsC;CAC9D,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
4
|
+
const constants_1 = require("./constants");
|
5
|
+
exports.platforms = [constants_1.staderPlatform];
|
6
|
+
exports.jobs = [];
|
7
|
+
exports.fetchers = [];
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stader/index.ts"],"names":[],"mappings":";;;AAGA,2CAA6C;AAEhC,QAAA,SAAS,GAAe,CAAC,0BAAc,CAAC,CAAC;AACzC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -19,7 +19,8 @@ const forcedAddresses = new Map([
|
|
19
19
|
'0xBe9895146f7AF43049ca1c1AE358B0541Ea49704',
|
20
20
|
'0xa2E3356610840701BDf5611a53974510Ae27E2e1',
|
21
21
|
'0x25eC98773D7b4ceD4cAFaB96A2A1c0945f145e10',
|
22
|
-
'0xA35b1B31Ce002FBF2058D22F30f95D405200A15b',
|
22
|
+
'0xA35b1B31Ce002FBF2058D22F30f95D405200A15b',
|
23
|
+
'0xf03A7Eb46d01d9EcAA104558C732Cf82f6B6B645', // MaticX Stader
|
23
24
|
],
|
24
25
|
],
|
25
26
|
[
|
@@ -29,7 +30,8 @@ const forcedAddresses = new Map([
|
|
29
30
|
'0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',
|
30
31
|
'0x3c499c542cef5e3811e1192ce70d8cc03d5c3359',
|
31
32
|
'0xc2132D05D31c914a87C6611C10748AEb04B58e8F',
|
32
|
-
'0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063',
|
33
|
+
'0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063',
|
34
|
+
'0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6', // MaticX Stader
|
33
35
|
],
|
34
36
|
],
|
35
37
|
[portfolio_core_1.NetworkId.avalanche, ['0x152b9d0FdC40C096757F570A51E494bd4b943E50']],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"forcedAddresses.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/top-tokens/forcedAddresses.ts"],"names":[],"mappings":";;AAAA,+DAAsE;AAEtE,MAAM,eAAe,GAAiC,IAAI,GAAG,CAAC;IAC5D;QACE,0BAAS,CAAC,QAAQ;QAClB;YACE,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C,EAAE,
|
1
|
+
{"version":3,"file":"forcedAddresses.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/top-tokens/forcedAddresses.ts"],"names":[],"mappings":";;AAAA,+DAAsE;AAEtE,MAAM,eAAe,GAAiC,IAAI,GAAG,CAAC;IAC5D;QACE,0BAAS,CAAC,QAAQ;QAClB;YACE,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C,EAAE,gBAAgB;SAC/D;KACF;IACD;QACE,0BAAS,CAAC,OAAO;QACjB;YACE,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C;YAC5C,4CAA4C,EAAE,gBAAgB;SAC/D;KACF;IACD,CAAC,0BAAS,CAAC,SAAS,EAAE,CAAC,4CAA4C,CAAC,CAAC;CACtE,CAAC,CAAC;AACH,kBAAe,eAAe,CAAC"}
|