@sonarwatch/portfolio-plugins 0.12.47 → 0.12.48

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/index.js +4 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/01/constants.js +2 -1
  6. package/src/plugins/01/constants.js.map +1 -1
  7. package/src/plugins/hedgehog/ammJob.js +5 -5
  8. package/src/plugins/hedgehog/ammJob.js.map +1 -1
  9. package/src/plugins/hedgehog/constants.d.ts +0 -2
  10. package/src/plugins/hedgehog/constants.js +1 -3
  11. package/src/plugins/hedgehog/constants.js.map +1 -1
  12. package/src/plugins/mango/redeemFetcher.js +1 -1
  13. package/src/plugins/mango/redeemFetcher.js.map +1 -1
  14. package/src/plugins/nxfinance/constants.d.ts +8 -0
  15. package/src/plugins/nxfinance/constants.js +22 -0
  16. package/src/plugins/nxfinance/constants.js.map +1 -0
  17. package/src/plugins/nxfinance/idl.d.ts +166 -0
  18. package/src/plugins/nxfinance/idl.js +2169 -0
  19. package/src/plugins/nxfinance/idl.js.map +1 -0
  20. package/src/plugins/nxfinance/index.d.ts +6 -0
  21. package/src/plugins/nxfinance/index.js +12 -0
  22. package/src/plugins/nxfinance/index.js.map +1 -0
  23. package/src/plugins/nxfinance/positionsFetcher.d.ts +3 -0
  24. package/src/plugins/nxfinance/positionsFetcher.js +92 -0
  25. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -0
  26. package/src/plugins/nxfinance/structs.d.ts +19 -0
  27. package/src/plugins/nxfinance/structs.js +22 -0
  28. package/src/plugins/nxfinance/structs.js.map +1 -0
  29. package/src/plugins/nxfinance/types.d.ts +21 -0
  30. package/src/plugins/nxfinance/types.js +3 -0
  31. package/src/plugins/nxfinance/types.js.map +1 -0
  32. package/src/plugins/parcl/constants.d.ts +0 -2
  33. package/src/plugins/parcl/constants.js +1 -3
  34. package/src/plugins/parcl/constants.js.map +1 -1
  35. package/src/plugins/parcl/marginFetcher.js +2 -2
  36. package/src/plugins/parcl/marginFetcher.js.map +1 -1
  37. package/src/plugins/zeta/constants.d.ts +0 -1
  38. package/src/plugins/zeta/constants.js +1 -2
  39. package/src/plugins/zeta/constants.js.map +1 -1
  40. package/src/plugins/zeta/depositsFetcher.js +2 -2
  41. package/src/plugins/zeta/depositsFetcher.js.map +1 -1
  42. package/src/utils/misc/checkComputeAndStoreTokensPrices.js +2 -1
  43. package/src/utils/misc/checkComputeAndStoreTokensPrices.js.map +1 -1
  44. package/src/utils/misc/getLpUnderlyingTokenSource.js +2 -1
  45. package/src/utils/misc/getLpUnderlyingTokenSource.js.map +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.12.48](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.47...plugins-0.12.48) (2024-07-05)
6
+
7
+
8
+
9
+ ## [0.12.47](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.46...plugins-0.12.47) (2024-07-05)
10
+
11
+
12
+
5
13
  ## [0.12.47](https://github.com/sonarwatch/portfolio/compare/plugins-0.12.46...plugins-0.12.47) (2024-07-05)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.12.47",
3
+ "version": "0.12.48",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/index.js CHANGED
@@ -125,6 +125,7 @@ const citrus_1 = require("./plugins/citrus");
125
125
  const sharky_1 = require("./plugins/sharky");
126
126
  const sanctum_1 = require("./plugins/sanctum");
127
127
  const allbridge_1 = require("./plugins/allbridge");
128
+ const nxfinance_1 = require("./plugins/nxfinance");
128
129
  var constants_1 = require("./plugins/tokens/constants");
129
130
  Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
130
131
  Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
@@ -243,6 +244,7 @@ exports.platforms = [
243
244
  ...sharky_1.platforms,
244
245
  ...sanctum_1.platforms,
245
246
  ...allbridge_1.platforms,
247
+ ...nxfinance_1.platforms,
246
248
  ];
247
249
  // JOBS //
248
250
  exports.jobs = [
@@ -344,6 +346,7 @@ exports.jobs = [
344
346
  ...sharky_1.jobs,
345
347
  ...sanctum_1.jobs,
346
348
  ...allbridge_1.jobs,
349
+ ...nxfinance_1.jobs,
347
350
  ];
348
351
  // FETCHERS //
349
352
  exports.fetchers = [
@@ -447,6 +450,7 @@ exports.fetchers = [
447
450
  ...sharky_1.fetchers,
448
451
  ...sanctum_1.fetchers,
449
452
  ...allbridge_1.fetchers,
453
+ ...nxfinance_1.fetchers,
450
454
  ];
451
455
  exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
452
456
  exports.airdropFetchers = [
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+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ACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAKyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAI6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAI2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,yCAIwB;AACxB,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAI8B;AAC9B,2CAIyB;AACzB,2CAKyB;AACzB,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,2CAIyB;AACzB,uDAI+B;AAC/B,6DAIkC;AAClC,2CAIyB;AACzB,yCAIwB;AACxB,mDAI6B;AAC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B;IACpB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,cAAW;IACd,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,uBAAoB;IACvB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,iBAAc;IACjB,GAAG,iBAAc;IACjB,GAAG,kBAAe;IAClB,GAAG,oBAAiB;IACpB,GAAG,oBAAiB;CACrB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,sBAAmB;IACnB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mints = exports.service = exports.config = exports.contract = exports.programId = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
6
+ const solana_1 = require("../../utils/solana");
6
7
  exports.platformId = '01';
7
8
  exports.platform = {
8
9
  id: exports.platformId,
@@ -30,7 +31,7 @@ exports.service = {
30
31
  configs: [exports.config],
31
32
  };
32
33
  exports.mints = [
33
- 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
34
+ solana_1.usdcSolanaMint,
34
35
  'So11111111111111111111111111111111111111112',
35
36
  '9n4nbM75f5Ui33ZbPYXn59EwSgE8CGsHtAeTH5YFeJ9E',
36
37
  'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/01/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,+DAMoC;AAEvB,QAAA,UAAU,GAAG,IAAI,CAAC;AAClB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,0CAA0C;IACjD,WAAW,EAAE,IAAI,EAAE,sCAAsC;IACzD,OAAO,EAAE,iBAAiB;IAC1B,6CAA6C;CAC9C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAa;IAChC,OAAO,EAAE,iBAAS,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,0BAAS,CAAC,MAAM;CAC1B,CAAC;AAEW,QAAA,MAAM,GAAkB;IACnC,YAAY,EAAE,aAAa;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,SAAS,EAAE,CAAC,gBAAQ,CAAC;CACtB,CAAC;AAEW,QAAA,OAAO,GAAY;IAC9B,EAAE,EAAE,GAAG,kBAAU,UAAU;IAC3B,UAAU,EAAV,kBAAU;IACV,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,CAAC,cAAM,CAAC;CAClB,CAAC;AAEW,QAAA,KAAK,GAAG;IACnB,8CAA8C;IAC9C,6CAA6C;IAC7C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7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7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
@@ -16,7 +16,7 @@ const solana_1 = require("../../utils/solana");
16
16
  const structs_1 = require("./structs");
17
17
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
18
18
  const client = (0, clients_1.getClientSolana)();
19
- const usdcTokenPrice = yield cache.getTokenPrice(constants_1.usdcMint, portfolio_core_1.NetworkId.solana);
19
+ const usdcTokenPrice = yield cache.getTokenPrice(solana_1.usdcSolanaMint, portfolio_core_1.NetworkId.solana);
20
20
  if (!usdcTokenPrice)
21
21
  return;
22
22
  const accounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.swapStruct, constants_1.ammPid, [
@@ -120,9 +120,9 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
120
120
  price: shareA * usdcTokenPrice.price,
121
121
  underlyings: [
122
122
  {
123
- address: constants_1.usdcMint,
123
+ address: solana_1.usdcSolanaMint,
124
124
  amountPerLp: shareA,
125
- decimals: constants_1.usdcDecimals,
125
+ decimals: solana_1.usdcSolanaDecimals,
126
126
  networkId: portfolio_core_1.NetworkId.solana,
127
127
  price: usdcTokenPrice.price,
128
128
  },
@@ -144,9 +144,9 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
144
144
  price: shareB * usdcTokenPrice.price,
145
145
  underlyings: [
146
146
  {
147
- address: constants_1.usdcMint,
147
+ address: solana_1.usdcSolanaMint,
148
148
  amountPerLp: shareB,
149
- decimals: constants_1.usdcDecimals,
149
+ decimals: solana_1.usdcSolanaDecimals,
150
150
  networkId: portfolio_core_1.NetworkId.solana,
151
151
  price: usdcTokenPrice.price,
152
152
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ammJ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AChC,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,EAAE,EAAE,sBAAU;YACd,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,WAAW,EAAE,cAAc;YAC3B,aAAa,EAAE,cAAc;YAC7B,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC,KAAK;YACpC,WAAW,EAAE;gBACX;oBACE,OAAO,EAAE,uBAAc;oBACvB,WAAW,EAAE,MAAM;oBACnB,QAAQ,EAAE,2BAAkB;oBAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;oBAC3B,KAAK,EAAE,cAAc,CAAC,KAAK;iBAC5B;aACF;SACF,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,MAAM;IACvB,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -4,5 +4,3 @@ export declare const platformId = "hedgehog";
4
4
  export declare const platform: Platform;
5
5
  export declare const ammPid: PublicKey;
6
6
  export declare const swapPid: PublicKey;
7
- export declare const usdcMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
8
- export declare const usdcDecimals = 6;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usdcDecimals = exports.usdcMint = exports.swapPid = exports.ammPid = exports.platform = exports.platformId = void 0;
3
+ exports.swapPid = exports.ammPid = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'hedgehog';
6
6
  exports.platform = {
@@ -13,6 +13,4 @@ exports.platform = {
13
13
  };
14
14
  exports.ammPid = new web3_js_1.PublicKey('Hr4whNgXr3yZsJvx3TVSwfsFgXuSEPB1xKmvgrtLhsrM');
15
15
  exports.swapPid = new web3_js_1.PublicKey('2ZznCMfx2XP43zaPw9R9wKnjXWiEeEexyhdBPv3UqDtD');
16
- exports.usdcMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
17
- exports.usdcDecimals = 6;
18
16
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hedgehog/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,oCAAoC;IAC7C,qEAAqE;CACtE,CAAC;AACW,QAAA,MAAM,GAAG,IAAI,mBAAS,CACjC,8CAA8C,CAC/C,CAAC;AACW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC;AACW,QAAA,QAAQ,GAAG,8CAA8C,CAAC;AAC1D,QAAA,YAAY,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/hedgehog/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,0BAA0B;IACnC,OAAO,EAAE,oCAAoC;IAC7C,qEAAqE;CACtE,CAAC;AACW,QAAA,MAAM,GAAG,IAAI,mBAAS,CACjC,8CAA8C,CAC/C,CAAC;AACW,QAAA,OAAO,GAAG,IAAI,mBAAS,CAClC,8CAA8C,CAC/C,CAAC"}
@@ -36,7 +36,7 @@ const mints = [
36
36
  'KgV1GvrHQmRBY8sHQQeUKwTm2r2h8t4C8qt12Cw1HVE',
37
37
  '11111111111111111111111111111111',
38
38
  '7i5KKsX2weiTkry7jA4ZwSuXGhs5eJBEjY8vVxR4pfRx',
39
- 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
39
+ solana_1.usdcSolanaMint,
40
40
  ];
41
41
  const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
42
42
  const client = (0, clients_1.getClientSolana)();
@@ -1 +1 @@
1
- {"version":3,"file":"redeemFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/redeemFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AAGpC,2CAKqB;AACrB,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAyC;AACzC,qCAAqE;AACrE,6EAAqD;AACrD,qGAA6E;AAE7E,MAAM,KAAK,GAAG;IACZ,6CAA6C;IAC7C,8CAA8C;IAC9C,8CAA8C;IAC9C,6CAA6C;IAC7C,8CAA8C;IAC9C,6CAA6C;IAC7C,8CAA8C;IAC9C,kCAAkC;IAClC,8CAA8C;IAC9C,kCAAkC;IAClC,6CAA6C;IAC7C,8CAA8C;IAC9C,6CAA6C;IAC7C,kCAAkC;IAClC,8CAA8C;IAC9C,8CAA8C;CAC/C,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,cAAc,GAAG,MAAM,IAAA,iCAAwB,EACnD,MAAM,EACN,6BAAoB,EACpB,2BAAe,EACf,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB,CAAC;IAEF,IAAI,cA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,EAAE,YAAY,EAAE,CAAC,CAAC;IAE5E,QAAQ,CAAC,IAAI,CAAC;QACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;QACD,IAAI,EAAE,WAAW;KAClB,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"redeemFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/mango/redeemFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AAGpC,2CAKqB;AACrB,iDAAsD;AACtD,+CAA8E;AAC9E,uCAAyC;AACzC,qCAAqE;AACrE,6EAAqD;AACrD,qGAA6E;AAE7E,MAAM,KAAK,GAAG;IACZ,6CAA6C;IAC7C,8CAA8C;IAC9C,8CAA8C;IAC9C,6CAA6C;IAC7C,8CAA8C;IAC9C,6CAA6C;IAC7C,8CAA8C;IAC9C,kCAAkC;IAClC,8CAA8C;IAC9C,kCAAkC;IAClC,6CAA6C;IAC7C,8CAA8C;IAC9C,6CAA6C;IAC7C,kCAAkC;IAClC,8CAA8C;IAC9C,uBAAc;CACf,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,cAAc,GAAG,MAAM,I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AAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,GACrE,IAAA,wCAAuB,EAAC,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;IAE5E,QAAQ,CAAC,IAAI,CAAC;QACZ,IAAI,EAAE,qCAAoB,CAAC,UAAU;QACrC,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAV,sBAAU;QACV,KAAK,EAAE,SAAS;QAChB,KAAK;QACL,IAAI,EAAE;YACJ,cAAc;YACd,aAAa;YACb,cAAc;YACd,cAAc;YACd,aAAa;YACb,cAAc;YACd,WAAW;YACX,YAAY;YACZ,WAAW;YACX,KAAK;SACN;QACD,IAAI,EAAE,WAAW;KAClB,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { IdlItem } from '@solanafm/explorer-kit-idls';
3
+ import { PublicKey } from '@solana/web3.js';
4
+ export declare const platformId = "nxfinance";
5
+ export declare const platform: Platform;
6
+ export declare const ID: PublicKey;
7
+ export declare const leverageFiProgramID: PublicKey;
8
+ export declare const nxfinanceLeverageIdlItem: IdlItem;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nxfinanceLeverageIdlItem = exports.leverageFiProgramID = exports.ID = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
+ const idl_1 = require("./idl");
6
+ exports.platformId = 'nxfinance';
7
+ exports.platform = {
8
+ id: exports.platformId,
9
+ name: 'NX Finance',
10
+ image: 'https://sonar.watch/img/platforms/nxfinance.webp',
11
+ website: 'https://nxfinance.io/',
12
+ twitter: 'https://twitter.com/NX_Finance',
13
+ defiLlamaId: 'nx-finance', // from https://defillama.com/docs/api
14
+ };
15
+ exports.ID = new web3_js_1.PublicKey('RaXcyfW8jK295UAU1XN2uLMTHnTWEaeCcNWLeDB4iD6');
16
+ exports.leverageFiProgramID = new web3_js_1.PublicKey('EHBN9YKtMmrZhj8JZqyBQRGqyyeHw5xUB1Q5eAHszuMt');
17
+ exports.nxfinanceLeverageIdlItem = {
18
+ programId: exports.leverageFiProgramID.toString(),
19
+ idl: idl_1.NxfinanceLeverageIDL,
20
+ idlType: 'anchor',
21
+ };
22
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/constants.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,+BAA6C;AAEhC,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,gCAAgC;IACzC,WAAW,EAAE,YAAY,EAAE,sCAAsC;CAClE,CAAC;AAEW,QAAA,EAAE,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AAElE,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,SAAS,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IACzC,GAAG,EAAE,0BAAoB;IACzB,OAAO,EAAE,QAAQ;CACP,CAAC"}
@@ -0,0 +1,166 @@
1
+ export declare const NxfinanceLeverageIDL: {
2
+ version: string;
3
+ name: string;
4
+ constants: ({
5
+ name: string;
6
+ type: string;
7
+ value: string;
8
+ } | {
9
+ name: string;
10
+ type: {
11
+ array: (string | number)[];
12
+ };
13
+ value: string;
14
+ })[];
15
+ instructions: ({
16
+ name: string;
17
+ accounts: ({
18
+ name: string;
19
+ isMut: boolean;
20
+ isSigner: boolean;
21
+ docs?: undefined;
22
+ } | {
23
+ name: string;
24
+ isMut: boolean;
25
+ isSigner: boolean;
26
+ docs: string[];
27
+ })[];
28
+ args: {
29
+ name: string;
30
+ type: string;
31
+ }[];
32
+ docs?: undefined;
33
+ } | {
34
+ name: string;
35
+ docs: string[];
36
+ accounts: ({
37
+ name: string;
38
+ isMut: boolean;
39
+ isSigner: boolean;
40
+ docs: string[];
41
+ } | {
42
+ name: string;
43
+ isMut: boolean;
44
+ isSigner: boolean;
45
+ docs?: undefined;
46
+ })[];
47
+ args: {
48
+ name: string;
49
+ type: string;
50
+ }[];
51
+ })[];
52
+ accounts: ({
53
+ name: string;
54
+ docs: string[];
55
+ type: {
56
+ kind: string;
57
+ fields: ({
58
+ name: string;
59
+ docs: string[];
60
+ type: string;
61
+ } | {
62
+ name: string;
63
+ docs: string[];
64
+ type: {
65
+ vec: {
66
+ defined: string;
67
+ };
68
+ };
69
+ })[];
70
+ };
71
+ } | {
72
+ name: string;
73
+ type: {
74
+ kind: string;
75
+ fields: ({
76
+ name: string;
77
+ type: string;
78
+ docs?: undefined;
79
+ } | {
80
+ name: string;
81
+ type: {
82
+ vec: string;
83
+ defined?: undefined;
84
+ };
85
+ docs?: undefined;
86
+ } | {
87
+ name: string;
88
+ docs: string[];
89
+ type: string;
90
+ } | {
91
+ name: string;
92
+ type: {
93
+ defined: string;
94
+ vec?: undefined;
95
+ };
96
+ docs?: undefined;
97
+ })[];
98
+ };
99
+ docs?: undefined;
100
+ })[];
101
+ types: ({
102
+ name: string;
103
+ docs: string[];
104
+ type: {
105
+ kind: string;
106
+ fields: {
107
+ name: string;
108
+ docs: string[];
109
+ type: string;
110
+ }[];
111
+ variants?: undefined;
112
+ };
113
+ } | {
114
+ name: string;
115
+ docs: string[];
116
+ type: {
117
+ kind: string;
118
+ fields: ({
119
+ name: string;
120
+ type: {
121
+ defined: string;
122
+ };
123
+ } | {
124
+ name: string;
125
+ type: string;
126
+ })[];
127
+ variants?: undefined;
128
+ };
129
+ } | {
130
+ name: string;
131
+ type: {
132
+ kind: string;
133
+ fields: {
134
+ name: string;
135
+ type: string;
136
+ }[];
137
+ variants?: undefined;
138
+ };
139
+ docs?: undefined;
140
+ } | {
141
+ name: string;
142
+ type: {
143
+ kind: string;
144
+ variants: {
145
+ name: string;
146
+ }[];
147
+ fields?: undefined;
148
+ };
149
+ docs?: undefined;
150
+ } | {
151
+ name: string;
152
+ docs: string[];
153
+ type: {
154
+ kind: string;
155
+ variants: {
156
+ name: string;
157
+ }[];
158
+ fields?: undefined;
159
+ };
160
+ })[];
161
+ errors: {
162
+ code: number;
163
+ name: string;
164
+ msg: string;
165
+ }[];
166
+ };