@sonarwatch/portfolio-plugins 0.12.147 → 0.12.149

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/CHANGELOG.md +1388 -1375
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/aftermath/poolsJob.js +28 -14
  5. package/src/plugins/aftermath/poolsJob.js.map +1 -1
  6. package/src/plugins/aftermath/types.d.ts +7 -0
  7. package/src/plugins/balancer/helpers/pools.js +21 -21
  8. package/src/plugins/cetus/constants.d.ts +2 -0
  9. package/src/plugins/cetus/constants.js +3 -1
  10. package/src/plugins/cetus/constants.js.map +1 -1
  11. package/src/plugins/cetus/poolsJob.js +27 -19
  12. package/src/plugins/cetus/poolsJob.js.map +1 -1
  13. package/src/plugins/cetus/types.d.ts +35 -0
  14. package/src/plugins/flash/constants.js +1 -0
  15. package/src/plugins/flash/constants.js.map +1 -1
  16. package/src/plugins/jupiter/launchpad/constants.js +19 -0
  17. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  18. package/src/plugins/kamino/index.js +1 -4
  19. package/src/plugins/kamino/index.js.map +1 -1
  20. package/src/plugins/scallop/constants.d.ts +1 -1
  21. package/src/plugins/scallop/constants.js +1 -1
  22. package/src/plugins/scallop/constants.js.map +1 -1
  23. package/src/plugins/scallop/obligationsFetcher.js +1 -7
  24. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  25. package/src/plugins/sushiswap/helpers.js +24 -24
  26. package/src/plugins/uniswap-v2/helpers.js +22 -22
  27. package/src/plugins/zeta/airdropFetcher.js +16 -16
  28. package/src/plugins/zeta/airdropFetcher.js.map +1 -1
  29. package/src/utils/sei/constants.js +8 -8
  30. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  31. package/src/utils/sui/queryEvents.js +3 -1
  32. package/src/utils/sui/queryEvents.js.map +1 -1
  33. package/src/utils/sui/queryEventsSafe.js +2 -1
  34. package/src/utils/sui/queryEventsSafe.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"airdropF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AC;IACjE,MAAM,KAAK,GAAmB,UAAU;QACtC,CAAC,CAAC,IAAA,gCAAsB,EACpB,UAAU,CAAC,OAAO,EAClB,MAAM,EACN,SAAS,EACT,UAAU,EACV,SAAS,EACT,EAAE,WAAW,EAAE,aAAa,EAAE,CAC/B;QACH,CAAC,CAAC;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EACN,8HAA8H;YAChI,IAAI,EAAE,KAAK;YACX,IAAI,EAAE;gBACJ,OAAO,EAAE,mBAAO;gBAChB,MAAM;gBACN,KAAK,EAAE,IAAI;aACZ;YACD,KAAK,EAAE,IAAI;YACX,SAAS;YACT,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;SAC3C,CAAC;IAEN,OAAO;QACL;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,SAAS;YACT,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS;IACT,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAuE;AACvE,mEAA+C;AAG/C,2CAA4E;AAE5E,qGAA6E;AAC7E,iDAAsD;AACtD,gGAA6F;AAC7F,uCAAoD;AAEpD,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;CAchB,CAAC;AAEF,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAAC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,E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;YACD,KAAK,EAAE,IAAI;YACX,SAAS;YACT,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;SAC3C,CAAC;IAEN,OAAO;QACL;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,SAAS;YACT,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS;IACT,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
4
- exports.infoQueryMsg = JSON.parse(`{
5
- "info": {}
4
+ exports.infoQueryMsg = JSON.parse(`{
5
+ "info": {}
6
6
  }`);
7
- exports.tokenInfoQueryMsg = JSON.parse(`{
8
- "token_info": {}
7
+ exports.tokenInfoQueryMsg = JSON.parse(`{
8
+ "token_info": {}
9
9
  }`);
10
- exports.minterQueryMsg = JSON.parse(`{
11
- "minter": {}
10
+ exports.minterQueryMsg = JSON.parse(`{
11
+ "minter": {}
12
12
  }`);
13
- exports.poolQueryMsg = JSON.parse(`{
14
- "pool": {}
13
+ exports.poolQueryMsg = JSON.parse(`{
14
+ "pool": {}
15
15
  }`);
16
16
  //# sourceMappingURL=constants.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function getQueryBalanceByOwner(owner) {
4
- return JSON.parse(`{
5
- "balance": {
6
- "address": "${owner}"
7
- }
4
+ return JSON.parse(`{
5
+ "balance": {
6
+ "address": "${owner}"
7
+ }
8
8
  }`);
9
9
  }
10
10
  exports.default = getQueryBalanceByOwner;
@@ -15,10 +15,12 @@ function queryEvents(client, query) {
15
15
  let hasNextPage = true;
16
16
  let cursor;
17
17
  const objects = [];
18
+ let res;
18
19
  do {
19
- const res = yield client.queryEvents({
20
+ res = yield client.queryEvents({
20
21
  cursor,
21
22
  query,
23
+ limit: 50,
22
24
  });
23
25
  objects.push(...res.data);
24
26
  cursor = res.nextCursor;
@@ -1 +1 @@
1
- {"version":3,"file":"queryEvents.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,SAAsB,WAAW,CAAI,MAAiB,EAAE,KAAqB;;QAC3E,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,MAAkC,CAAC;QAEvC,MAAM,OAAO,GAAG,EAAE,CAAC;QAEnB,GAAG,CAAC;YACF,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBACnC,MAAM;gBACN,KAAK;aACN,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YACxB,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;QAChC,CAAC,QAAQ,WAAW,EAAE;QACtB,OAAO,OAAqB,CAAC;IAC/B,CAAC;CAAA;AAhBD,kCAgBC"}
1
+ {"version":3,"file":"queryEvents.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEvents.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,SAAsB,WAAW,CAAI,MAAiB,EAAE,KAAqB;;QAC3E,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,MAAkC,CAAC;QAEvC,MAAM,OAAO,GAAG,EAAE,CAAC;QAEnB,IAAI,GAAG,CAAC;QACR,GAAG,CAAC;YACF,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBAC7B,MAAM;gBACN,KAAK;gBACL,KAAK,EAAE,EAAE;aACV,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YACxB,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;QAChC,CAAC,QAAQ,WAAW,EAAE;QACtB,OAAO,OAAqB,CAAC;IAC/B,CAAC;CAAA;AAlBD,kCAkBC"}
@@ -16,9 +16,10 @@ function queryEventsSafe(client, query) {
16
16
  let page = 0;
17
17
  let hasNextPage = true;
18
18
  let cursor;
19
+ let res;
19
20
  const objects = [];
20
21
  do {
21
- const res = yield client.queryEvents({
22
+ res = yield client.queryEvents({
22
23
  cursor,
23
24
  query,
24
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"queryEventsSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEventsSafe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG,EAAE,CAAC;AAEnB,SAAsB,eAAe,CACnC,MAAiB,EACjB,KAAqB;;QAErB,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,MAAkC,CAAC;QAEvC,MAAM,OAAO,GAAG,EAAE,CAAC;QAEnB,GAAG,CAAC;YACF,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBACnC,MAAM;gBACN,KAAK;aACN,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAI,GAAG,CAAC,IAAmB,CAAC,CAAC;YAC1C,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YACxB,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;YAC9B,IAAI,IAAI,CAAC,CAAC;QACZ,CAAC,QAAQ,WAAW,IAAI,IAAI,IAAI,OAAO,EAAE;QACzC,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AArBD,0CAqBC"}
1
+ {"version":3,"file":"queryEventsSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/queryEventsSafe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG,EAAE,CAAC;AAEnB,SAAsB,eAAe,CACnC,MAAiB,EACjB,KAAqB;;QAErB,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,IAAI,MAAkC,CAAC;QACvC,IAAI,GAAG,CAAC;QACR,MAAM,OAAO,GAAG,EAAE,CAAC;QAEnB,GAAG,CAAC;YACF,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;gBAC7B,MAAM;gBACN,KAAK;aACN,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAI,GAAG,CAAC,IAAmB,CAAC,CAAC;YAC1C,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC;YACxB,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;YAC9B,IAAI,IAAI,CAAC,CAAC;QACZ,CAAC,QAAQ,WAAW,IAAI,IAAI,IAAI,OAAO,EAAE;QACzC,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AArBD,0CAqBC"}