@sonarwatch/portfolio-plugins 0.14.1 → 0.14.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/CHANGELOG.md +1595 -1574
  2. package/README.md +3 -3
  3. package/package.json +2 -2
  4. package/src/index.js +4 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/debridge/airdropFetcher.js +6 -0
  8. package/src/plugins/debridge/airdropFetcher.js.map +1 -1
  9. package/src/plugins/debridge/constants.d.ts +3 -1
  10. package/src/plugins/debridge/constants.js +4 -2
  11. package/src/plugins/debridge/constants.js.map +1 -1
  12. package/src/plugins/debridge/dlmmVaultsFetcher.d.ts +3 -0
  13. package/src/plugins/debridge/dlmmVaultsFetcher.js +158 -0
  14. package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -0
  15. package/src/plugins/debridge/dlmmVaultsJob.d.ts +3 -0
  16. package/src/plugins/debridge/dlmmVaultsJob.js +42 -0
  17. package/src/plugins/debridge/dlmmVaultsJob.js.map +1 -0
  18. package/src/plugins/debridge/index.js +7 -2
  19. package/src/plugins/debridge/index.js.map +1 -1
  20. package/src/plugins/deepbook/airdropFetcher.js +36 -14
  21. package/src/plugins/deepbook/airdropFetcher.js.map +1 -1
  22. package/src/plugins/jupiter/exchange/custodiesJob.js +2 -2
  23. package/src/plugins/jupiter/exchange/custodiesJob.js.map +1 -1
  24. package/src/plugins/jupiter/exchange/filters.d.ts +1 -0
  25. package/src/plugins/jupiter/exchange/filters.js +10 -1
  26. package/src/plugins/jupiter/exchange/filters.js.map +1 -1
  27. package/src/plugins/jupiter/launchpad/constants.js +1 -1
  28. package/src/plugins/kamino/{s2AirdropFetcher.js → s2AirdropFetcher.old.js} +1 -1
  29. package/src/plugins/kamino/s2AirdropFetcher.old.js.map +1 -0
  30. package/src/plugins/native-stake/solana/constants.js +0 -1
  31. package/src/plugins/native-stake/solana/constants.js.map +1 -1
  32. package/src/plugins/native-stake/solana/solanaFetcher.js +11 -7
  33. package/src/plugins/native-stake/solana/solanaFetcher.js.map +1 -1
  34. package/src/plugins/nxfinance/positionsFetcher.js +1 -1
  35. package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
  36. package/src/plugins/scallop/cnyAirdropFetcher.js +1 -1
  37. package/src/plugins/scallop/cnyAirdropFetcher.js.map +1 -1
  38. package/src/plugins/scallop/constants.d.ts +9 -16
  39. package/src/plugins/scallop/constants.js +28 -44
  40. package/src/plugins/scallop/constants.js.map +1 -1
  41. package/src/plugins/scallop/index.js +7 -1
  42. package/src/plugins/scallop/index.js.map +1 -1
  43. package/src/plugins/scallop/lendingsFetcher.js +149 -79
  44. package/src/plugins/scallop/lendingsFetcher.js.map +1 -1
  45. package/src/plugins/scallop/marketJob.js.map +1 -1
  46. package/src/plugins/scallop/obligationsFetcher.js +2 -2
  47. package/src/plugins/scallop/obligationsFetcher.js.map +1 -1
  48. package/src/plugins/scallop/poolsJob.js +14 -5
  49. package/src/plugins/scallop/poolsJob.js.map +1 -1
  50. package/src/plugins/scallop/sCoinJob.js +2 -1
  51. package/src/plugins/scallop/sCoinJob.js.map +1 -1
  52. package/src/plugins/scallop/types/address.d.ts +1 -0
  53. package/src/plugins/scallop/types/basic.d.ts +4 -0
  54. package/src/plugins/scallop/types/coin.d.ts +18 -8
  55. package/src/plugins/scallop/types/coin.js +50 -2
  56. package/src/plugins/scallop/types/coin.js.map +1 -1
  57. package/src/plugins/scallop/types/data.d.ts +7 -5
  58. package/src/plugins/scallop/types/index.d.ts +2 -0
  59. package/src/plugins/scallop/types/index.js +2 -0
  60. package/src/plugins/scallop/types/index.js.map +1 -1
  61. package/src/plugins/scallop/types/spool.d.ts +10 -0
  62. package/src/plugins/scallop/types/spool.js +3 -0
  63. package/src/plugins/scallop/types/spool.js.map +1 -0
  64. package/src/plugins/scallop/types/sui.d.ts +2 -0
  65. package/src/plugins/scallop/types/sui.js +3 -0
  66. package/src/plugins/scallop/types/sui.js.map +1 -0
  67. package/src/plugins/scallop/types/vesca.d.ts +9 -12
  68. package/src/plugins/scallop/veScaFetcher.js +1 -1
  69. package/src/plugins/scallop/veScaFetcher.js.map +1 -1
  70. package/src/plugins/sushiswap/helpers.js +24 -24
  71. package/src/plugins/uniswap-v2/helpers.js +22 -22
  72. package/src/plugins/vaultka/constants.d.ts +8 -0
  73. package/src/plugins/vaultka/constants.js +31 -0
  74. package/src/plugins/vaultka/constants.js.map +1 -0
  75. package/src/plugins/vaultka/index.d.ts +6 -0
  76. package/src/plugins/vaultka/index.js +15 -0
  77. package/src/plugins/vaultka/index.js.map +1 -0
  78. package/src/plugins/vaultka/lendingFetcher.d.ts +3 -0
  79. package/src/plugins/vaultka/lendingFetcher.js +58 -0
  80. package/src/plugins/vaultka/lendingFetcher.js.map +1 -0
  81. package/src/plugins/vaultka/lendingJob.d.ts +3 -0
  82. package/src/plugins/vaultka/lendingJob.js +32 -0
  83. package/src/plugins/vaultka/lendingJob.js.map +1 -0
  84. package/src/plugins/vaultka/strategyFetcher.d.ts +3 -0
  85. package/src/plugins/vaultka/strategyFetcher.js +63 -0
  86. package/src/plugins/vaultka/strategyFetcher.js.map +1 -0
  87. package/src/plugins/vaultka/strategyJob.d.ts +3 -0
  88. package/src/plugins/vaultka/strategyJob.js +32 -0
  89. package/src/plugins/vaultka/strategyJob.js.map +1 -0
  90. package/src/plugins/vaultka/structs.d.ts +59 -0
  91. package/src/plugins/vaultka/structs.js +58 -0
  92. package/src/plugins/vaultka/structs.js.map +1 -0
  93. package/src/plugins/zeta/airdropFetcher.js +14 -14
  94. package/src/utils/sei/constants.js +8 -8
  95. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  96. package/src/utils/sui/types.d.ts +4 -0
  97. package/src/plugins/kamino/s2AirdropFetcher.js.map +0 -1
  98. /package/src/plugins/kamino/{s2AirdropFetcher.d.ts → s2AirdropFetcher.old.d.ts} +0 -0
@@ -40,4 +40,4 @@ const airdropFetcher = {
40
40
  exports.airdropFetcher = airdropFetcher;
41
41
  const fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(airdropFetcher, constants_1.platform.id, `${constants_1.platform.id}-airdrop-s2`, constants_1.airdropStaticsS2.claimEnd);
42
42
  exports.fetcher = fetcher;
43
- //# sourceMappingURL=s2AirdropFetcher.js.map
43
+ //# sourceMappingURL=s2AirdropFetcher.old.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s2AirdropFetcher.old.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/s2AirdropFetcher.old.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,yDAK8B;AAC9B,2CAAmE;AAGnE,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAC9B,kDAAkD,KAAK,6BAA6B,EACpF,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB,CAAC;IAEF,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CACrC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,iBAAiB,CACpC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;IAEvB,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,4BAAgB;QACzB,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;gBACxB,SAAS,EAAE,IAAI;gBACf,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,oBAAQ;aAClB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,cAAc,GAAmB;IACrC,EAAE,EAAE,4BAAgB,CAAC,EAAE;IACvB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AASO,wCAAc;AAPvB,MAAM,OAAO,GAAG,IAAA,wCAAuB,EACrC,cAAc,EACd,oBAAQ,CAAC,EAAE,EACX,GAAG,oBAAQ,CAAC,EAAE,aAAa,EAC3B,4BAAgB,CAAC,QAAQ,CAC1B,CAAC;AAEuB,0BAAO"}
@@ -8,6 +8,5 @@ exports.stakewizApi = 'https://api.stakewiz.com/validators';
8
8
  exports.marinadeManagerAddresses = [
9
9
  'stWirqFCf2Uts1JBL1Jsd3r6VBWhgnpdPxCTe1MFjrq',
10
10
  'noMa7dN4cHQLV4ZonXrC29HTKFpxrpFbDLK5Gub8W8t',
11
- 'noMa7dN4cHQLV4ZonXrC29HTKFpxrpFbDLK5Gub8W8t',
12
11
  ];
13
12
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,WAAW,GAAG,qCAAqC,CAAC;AACpD,QAAA,wBAAwB,GAAG;IACtC,6CAA6C;IAC7C,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,WAAW,GAAG,qCAAqC,CAAC;AACpD,QAAA,wBAAwB,GAAG;IACtC,6CAA6C;IAC7C,6CAA6C;CAC9C,CAAC"}
@@ -52,18 +52,20 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
52
52
  for (let i = 0; i < stakeAccounts.length; i += 1) {
53
53
  const stakeAccount = stakeAccounts[i];
54
54
  const validator = validators.get(stakeAccount.voter.toString());
55
- mevRewards += new bignumber_js_1.default(stakeAccount.lamports)
56
- .minus(stakeAccount.rentExemptReserve)
57
- .minus(stakeAccount.stake)
58
- .dividedBy(Math.pow(10, 9))
59
- .toNumber();
55
+ const { deactivationEpoch, activationEpoch, staker } = stakeAccount;
56
+ const isMarinade = constants_4.marinadeManagerAddresses.includes(staker.toString());
57
+ if (!activationEpoch.isZero() && !isMarinade)
58
+ mevRewards += new bignumber_js_1.default(stakeAccount.lamports)
59
+ .minus(stakeAccount.rentExemptReserve)
60
+ .minus(stakeAccount.stake)
61
+ .dividedBy(Math.pow(10, 9))
62
+ .toNumber();
60
63
  const amount = new bignumber_js_1.default(stakeAccount.lamports)
61
64
  .minus(stakeAccount.rentExemptReserve)
62
65
  .dividedBy(Math.pow(10, 9))
63
66
  .toNumber();
64
67
  if (amount <= 0)
65
68
  continue;
66
- const isMarinade = constants_4.marinadeManagerAddresses.includes(stakeAccount.staker.toString());
67
69
  if (isMarinade) {
68
70
  marinadeSolAmount += amount;
69
71
  nMarinadeAccounts += 1;
@@ -72,7 +74,6 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
72
74
  else
73
75
  solAmount += amount;
74
76
  // Status tags
75
- const { deactivationEpoch, activationEpoch } = stakeAccount;
76
77
  const tags = [];
77
78
  if (epoch &&
78
79
  activationEpoch.isEqualTo(epoch) &&
@@ -88,6 +89,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
88
89
  else if (epoch && deactivationEpoch.isEqualTo(epoch)) {
89
90
  tags.push('Unstaking');
90
91
  }
92
+ else if (deactivationEpoch.isZero() && activationEpoch.isZero()) {
93
+ tags.push('Initialized');
94
+ }
91
95
  else {
92
96
  tags.push('Active');
93
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"solanaFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/solanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC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,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;YAC9D,IAAI,EAAE;gBACJ,MAAM,EAAE;oDAED,IAAA,gCAAsB,EACvB,8BAAa,CAAC,MAAM,CAAC,OAAO,EAC5B,UAAU,EACV,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,KACD,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;iBAEpC;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AACF,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":"solanaFetcher.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/native-stake/solana/solanaFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AACpC,gEAAqC;AAIrC,4CAA8E;AAC9E,oDAAyD;AACzD,kDAAiE;AACjE,uCAAgD;AAChD,uCAA+C;AAC/C,wGAAgF;AAChF,wDAA4E;AAC5E,oDAAoE;AACpE,2CAIqB;AACrB,qEAAkE;AAElE,+DAA4D;AAE5D,MAAM,cAAc,GAAG,IAAI,6BAAa,CACtC,yBAAa,EACb;IACE,MAAM,EAAE,sBAAU;IAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;CAC5B,EACD,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,uBAAU,EAAC,GAAG,IAAI,EAAE,EAAE,OAAO,CAAC,CACxC,CAAC;AAEF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IA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AC,MAAM,EAChB,aAAa,CACd,KACD,UAAU,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;iBAEpC;aACF;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CAAC;AACF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -57,7 +57,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
57
57
  const amount = new bignumber_js_1.default(deposit.depositNote).multipliedBy(supplyNoteRate);
58
58
  const asset = {
59
59
  address: deposit.tokenMint,
60
- amount: amount,
60
+ amount,
61
61
  };
62
62
  if (constants_1.leverageVaultsMints.includes(deposit.tokenMint)) {
63
63
  elementBorrowlend.addSuppliedAsset(asset);
@@ -1 +1 @@
1
- {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AAEvE,uCAAiE;AACjE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,sBAAsB,GAAG,mBAAS,CAAC,sBAAsB,CAC7D;QACE,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,cAAE,CAAC,QAAQ,EAAE,CAAC,EACf,+BAAmB,CACpB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACf,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;QAC/B,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;KACvB,EACD,+BA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,OAAO;QACxB,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG;YAAE,OAAO;QAElC,MAAM,cAAc,GAAG,IAAA,2BAAiB,EAAC,UAAU,CAAC,CAAC;QAErD,iBAAiB,CAAC,gBAAgB,CAAC;YACjC,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,MAAM,EAAE,IAAI,sBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC;SAClE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"positionsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/nxfinance/positionsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DASoC;AACpC,6CAA4C;AAC5C,gEAAqC;AAErC,2CAMqB;AAErB,iDAAsD;AACtD,+CAAuE;AAEvE,uCAAiE;AACjE,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,sBAAsB,GAAG,mBAAS,CAAC,sBAAsB,CAC7D;QACE,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,cAAE,CAAC,QAAQ,EAAE,CAAC,EACf,+BAAmB,CACpB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACf,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;QAC/B,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;KACvB,EACD,+BAAmB,CACpB,CAAC,CAAC,CAA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KAAK,GAAG;YAAE,OAAO;QAElC,MAAM,cAAc,GAAG,IAAA,2BAAiB,EAAC,UAAU,CAAC,CAAC;QAErD,iBAAiB,CAAC,gBAAgB,CAAC;YACjC,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,MAAM,EAAE,IAAI,sBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAAc,CAAC;SAClE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,YAAY;IAC7B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -50,7 +50,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
50
50
  type: 'address',
51
51
  value: owner,
52
52
  },
53
- parentId: constants_1.tableId,
53
+ parentId: constants_1.cnyTableId,
54
54
  });
55
55
  if (claimStatus.data)
56
56
  return [];
@@ -1 +1 @@
1
- {"version":3,"file":"cnyAirdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/cnyAirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,qCAAoD;AACpD,gEAAqC;AACrC,kDAA6C;AAG7C,2CAA8D;AAC9D,iFAA8E;AAE9E,qGAA6E;AAC7E,iDAA6C;AAC7C,iDAAmD;AAEnD,SAAS,SAAS,CAAC,SAAiB;IAClC,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IAEjC,MAAM,GAAG,GAAG,IAAI,SAAG,CAAC,IAAA,sBAAgB,GAAE,CAAC,CAAC;IACxC,GAAG,CAAC,kBAAkB,CAAC,YAAY,EAAE;QACnC,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE,SAAS;QACl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,EACT,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,KAAK;YACX,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,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,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"cnyAirdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/cnyAirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,qCAAoD;AACpD,gEAAqC;AACrC,kDAA6C;AAG7C,2CAAiE;AACjE,iFAA8E;AAE9E,qGAA6E;AAC7E,iDAA6C;AAC7C,iDAAmD;AAEnD,SAAS,SAAS,CAAC,SAAiB;IAClC,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IAEjC,MAAM,GAAG,GAAG,IAAI,SAAG,CAAC,IAAA,sBAAgB,GAAE,CAAC,CAAC;IACxC,GAAG,CAAC,kBAAkB,CAAC,YAAY,EAAE;QACnC,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,KAAK;KACd,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,GAAG,CAAC,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9D,OAAO,IAAA,sBAAS,EAAC,WAAW,CAAC,MAAM,CAAC;SACjC,SAAS,CAAC,CAAC,CAAC,GA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V,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,cAAc;IAC/B,SAAS,EAAE,0BAAS,CAAC,GAAG;IACxB,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -6,28 +6,21 @@ export declare const marketPrefix = "scallop-market";
6
6
  export declare const scoinPrefix = "scallop-scoin";
7
7
  export declare const poolsPrefix = "scallop-pools";
8
8
  export declare const spoolsPrefix = "scallop-spoolsmarket";
9
- export declare const addressEndpoint = "https://sui.apis.scallop.io/addresses/664dfe22898c36c159e28bc8";
9
+ export declare const addressEndpoint = "https://sui.apis.scallop.io/addresses/66f8e7ed9bb9e07fdfb86bbb";
10
10
  export declare const addressKey = "scallop-address-key";
11
11
  export declare const marketKey = "scallop-market-key";
12
12
  export declare const poolsKey = "scallop-pools-key";
13
13
  export declare const scoinKey = "scallop-scoin-key";
14
14
  export declare const spoolsKey = "scallop-spoolsmarket-key";
15
- export declare const spoolAccountPackageId = "0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a::spool_account::SpoolAccount";
16
- export declare const marketCoinPackageId = "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::reserve::MarketCoin";
17
- export declare const obligationKeyPackageId = "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::obligation::ObligationKey";
15
+ export declare const sPoolAccountType = "0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a::spool_account::SpoolAccount";
16
+ export declare const veScaKeyType = "0xcfe2d87aa5712b67cad2732edb6a2201bfdf592377e5c0968b7cb02099bd8e21::ve_sca::VeScaKey";
17
+ export declare const marketCoinType = "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::reserve::MarketCoin";
18
+ export declare const obligationKeyType = "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf::obligation::ObligationKey";
18
19
  export declare const baseIndexRate = 1000000000;
19
20
  export declare const scaAddress = "0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA";
20
21
  export declare const scaDecimals = 9;
21
- export declare const tableId = "0xbfbbbdf1fe9b70cdd1ebd1444ca273000177f81a405935f6007b7727d2ff90c2";
22
+ export declare const cnyTableId = "0xbfbbbdf1fe9b70cdd1ebd1444ca273000177f81a405935f6007b7727d2ff90c2";
22
23
  export declare const airdropUrl = "https://airdrop.apis.scallop.io/cny-campaign/claim-signature/";
23
- export declare const SCOIN_NAMES: readonly ["scallop_sui", "scallop_cetus", "scallop_sca", "scallop_wormhole_usdc", "scallop_wormhole_usdt", "scallop_wormhole_eth", "scallop_af_sui", "scallop_ha_sui", "scallop_v_sui"];
24
- export declare const COIN_NAMES: readonly ["eth", "btc", "usdc", "usdt", "sui", "apt", "sol", "cetus", "sca", "afsui", "hasui", "vsui"];
25
- export declare const MARKET_COIN_NAMES: readonly ["seth", "sbtc", "susdc", "susdt", "ssui", "sapt", "ssol", "scetus", "ssca", "safsui", "shasui", "svsui"];
26
- export declare const sCoinTypesMap: {
27
- [T in sCoinNames]: string;
28
- };
29
- export type sCoinNames = (typeof SCOIN_NAMES)[number];
30
- export type CoinNames = (typeof COIN_NAMES)[number];
31
- export declare const sCoinToCoinName: {
32
- [T in sCoinNames]: CoinNames;
33
- };
24
+ export declare const scoinNames: readonly ["scallop_sui", "scallop_cetus", "scallop_sca", "scallop_wormhole_usdc", "scallop_wormhole_usdt", "scallop_wormhole_eth", "scallop_wormhole_btc", "scallop_wormhole_sol", "scallop_af_sui", "scallop_ha_sui", "scallop_v_sui", "scallop_usdc"];
25
+ export declare const coinNames: readonly ["weth", "wbtc", "wusdc", "wusdt", "sui", "wapt", "wsol", "cetus", "sca", "afsui", "hasui", "vsui", "usdc"];
26
+ export declare const marketCoinNames: readonly ["sweth", "swbtc", "swusdc", "swusdt", "ssui", "swapt", "swsol", "scetus", "ssca", "safsui", "shasui", "svsui", "susdc"];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sCoinToCoinName = exports.sCoinTypesMap = exports.MARKET_COIN_NAMES = exports.COIN_NAMES = exports.SCOIN_NAMES = exports.airdropUrl = exports.tableId = exports.scaDecimals = exports.scaAddress = exports.baseIndexRate = exports.obligationKeyPackageId = exports.marketCoinPackageId = exports.spoolAccountPackageId = exports.spoolsKey = exports.scoinKey = exports.poolsKey = exports.marketKey = exports.addressKey = exports.addressEndpoint = exports.spoolsPrefix = exports.poolsPrefix = exports.scoinPrefix = exports.marketPrefix = exports.addressPrefix = exports.platform = exports.platformId = void 0;
3
+ exports.marketCoinNames = exports.coinNames = exports.scoinNames = exports.airdropUrl = exports.cnyTableId = exports.scaDecimals = exports.scaAddress = exports.baseIndexRate = exports.obligationKeyType = exports.marketCoinType = exports.veScaKeyType = exports.sPoolAccountType = exports.spoolsKey = exports.scoinKey = exports.poolsKey = exports.marketKey = exports.addressKey = exports.addressEndpoint = exports.spoolsPrefix = exports.poolsPrefix = exports.scoinPrefix = exports.marketPrefix = exports.addressPrefix = exports.platform = exports.platformId = void 0;
4
4
  exports.platformId = 'scallop';
5
5
  exports.platform = {
6
6
  id: exports.platformId,
@@ -14,80 +14,64 @@ exports.marketPrefix = `${exports.platformId}-market`;
14
14
  exports.scoinPrefix = `${exports.platformId}-scoin`;
15
15
  exports.poolsPrefix = `${exports.platformId}-pools`;
16
16
  exports.spoolsPrefix = `${exports.platformId}-spoolsmarket`;
17
- exports.addressEndpoint = 'https://sui.apis.scallop.io/addresses/664dfe22898c36c159e28bc8';
17
+ exports.addressEndpoint = 'https://sui.apis.scallop.io/addresses/66f8e7ed9bb9e07fdfb86bbb';
18
18
  exports.addressKey = 'scallop-address-key';
19
19
  exports.marketKey = 'scallop-market-key';
20
20
  exports.poolsKey = 'scallop-pools-key';
21
21
  exports.scoinKey = 'scallop-scoin-key';
22
22
  exports.spoolsKey = 'scallop-spoolsmarket-key';
23
- exports.spoolAccountPackageId = `0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a::spool_account::SpoolAccount`;
24
- const PROTOCOL_OBJECT_ID = '0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf';
25
- exports.marketCoinPackageId = `${PROTOCOL_OBJECT_ID}::reserve::MarketCoin`;
26
- exports.obligationKeyPackageId = `${PROTOCOL_OBJECT_ID}::obligation::ObligationKey`;
23
+ exports.sPoolAccountType = `0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a::spool_account::SpoolAccount`;
24
+ exports.veScaKeyType = '0xcfe2d87aa5712b67cad2732edb6a2201bfdf592377e5c0968b7cb02099bd8e21::ve_sca::VeScaKey';
25
+ const scallopPackageId = '0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf';
26
+ exports.marketCoinType = `${scallopPackageId}::reserve::MarketCoin`;
27
+ exports.obligationKeyType = `${scallopPackageId}::obligation::ObligationKey`;
27
28
  exports.baseIndexRate = 1000000000;
28
29
  exports.scaAddress = '0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA';
29
30
  exports.scaDecimals = 9;
30
- exports.tableId = '0xbfbbbdf1fe9b70cdd1ebd1444ca273000177f81a405935f6007b7727d2ff90c2';
31
+ exports.cnyTableId = '0xbfbbbdf1fe9b70cdd1ebd1444ca273000177f81a405935f6007b7727d2ff90c2';
31
32
  exports.airdropUrl = 'https://airdrop.apis.scallop.io/cny-campaign/claim-signature/';
32
- exports.SCOIN_NAMES = [
33
+ exports.scoinNames = [
33
34
  'scallop_sui',
34
35
  'scallop_cetus',
35
36
  'scallop_sca',
36
37
  'scallop_wormhole_usdc',
37
38
  'scallop_wormhole_usdt',
38
39
  'scallop_wormhole_eth',
40
+ 'scallop_wormhole_btc',
41
+ 'scallop_wormhole_sol',
39
42
  'scallop_af_sui',
40
43
  'scallop_ha_sui',
41
44
  'scallop_v_sui',
45
+ 'scallop_usdc',
42
46
  ];
43
- exports.COIN_NAMES = [
44
- 'eth',
45
- 'btc',
46
- 'usdc',
47
- 'usdt',
47
+ exports.coinNames = [
48
+ 'weth',
49
+ 'wbtc',
50
+ 'wusdc',
51
+ 'wusdt',
48
52
  'sui',
49
- 'apt',
50
- 'sol',
53
+ 'wapt',
54
+ 'wsol',
51
55
  'cetus',
52
56
  'sca',
53
57
  'afsui',
54
58
  'hasui',
55
59
  'vsui',
60
+ 'usdc',
56
61
  ];
57
- exports.MARKET_COIN_NAMES = [
58
- 'seth',
59
- 'sbtc',
60
- 'susdc',
61
- 'susdt',
62
+ exports.marketCoinNames = [
63
+ 'sweth',
64
+ 'swbtc',
65
+ 'swusdc',
66
+ 'swusdt',
62
67
  'ssui',
63
- 'sapt',
64
- 'ssol',
68
+ 'swapt',
69
+ 'swsol',
65
70
  'scetus',
66
71
  'ssca',
67
72
  'safsui',
68
73
  'shasui',
69
74
  'svsui',
75
+ 'susdc',
70
76
  ];
71
- exports.sCoinTypesMap = {
72
- scallop_sui: '0xaafc4f740de0dd0dde642a31148fb94517087052f19afb0f7bed1dc41a50c77b::scallop_sui::SCALLOP_SUI',
73
- scallop_cetus: '0xea346ce428f91ab007210443efcea5f5cdbbb3aae7e9affc0ca93f9203c31f0c::scallop_cetus::SCALLOP_CETUS',
74
- scallop_sca: '0x5ca17430c1d046fae9edeaa8fd76c7b4193a00d764a0ecfa9418d733ad27bc1e::scallop_sca::SCALLOP_SCA',
75
- scallop_wormhole_usdc: '0xad4d71551d31092230db1fd482008ea42867dbf27b286e9c70a79d2a6191d58d::scallop_wormhole_usdc::SCALLOP_WORMHOLE_USDC',
76
- scallop_wormhole_usdt: '0xe6e5a012ec20a49a3d1d57bd2b67140b96cd4d3400b9d79e541f7bdbab661f95::scallop_wormhole_usdt::SCALLOP_WORMHOLE_USDT',
77
- scallop_wormhole_eth: '0x67540ceb850d418679e69f1fb6b2093d6df78a2a699ffc733f7646096d552e9b::scallop_wormhole_eth::SCALLOP_WORMHOLE_ETH',
78
- scallop_af_sui: '0x00671b1fa2a124f5be8bdae8b91ee711462c5d9e31bda232e70fd9607b523c88::scallop_af_sui::SCALLOP_AF_SUI',
79
- scallop_ha_sui: '0x9a2376943f7d22f88087c259c5889925f332ca4347e669dc37d54c2bf651af3c::scallop_ha_sui::SCALLOP_HA_SUI',
80
- scallop_v_sui: '0xe1a1cc6bcf0001a015eab84bcc6713393ce20535f55b8b6f35c142e057a25fbe::scallop_v_sui::SCALLOP_V_SUI',
81
- };
82
- exports.sCoinToCoinName = {
83
- scallop_sui: 'sui',
84
- scallop_cetus: 'cetus',
85
- scallop_sca: 'sca',
86
- scallop_wormhole_usdc: 'usdc',
87
- scallop_wormhole_usdt: 'usdt',
88
- scallop_wormhole_eth: 'eth',
89
- scallop_af_sui: 'afsui',
90
- scallop_ha_sui: 'hasui',
91
- scallop_v_sui: 'vsui',
92
- };
93
77
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,WAAW,GAAG,GAAG,kBAAU,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AChG,aAAa,EACX,kGAAkG;IACpG,WAAW,EACT,8FAA8F;IAChG,qBAAqB,EACnB,kHAAkH;IACpH,qBAAqB,EACnB,kHAAkH;IACpH,oBAAoB,EAClB,gHAAgH;IAClH,cAAc,EACZ,oGAAoG;IACtG,cAAc,EACZ,oGAAoG;IACtG,aAAa,EACX,kGAAkG;CAC5F,CAAC;AAOE,QAAA,eAAe,GAAqC;IAC/D,WAAW,EAAE,KAAK;IAClB,aAAa,EAAE,OAAO;IACtB,WAAW,EAAE,KAAK;IAClB,qBAAqB,EAAE,MAAM;IAC7B,qBAAqB,EAAE,MAAM;IAC7B,oBAAoB,EAAE,KAAK;IAC3B,cAAc,EAAE,OAAO;IACvB,cAAc,EAAE,OAAO;IACvB,aAAa,EAAE,MAAM;CACtB,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qCAAqC,kBAAU,OAAO;IAC7D,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,yBAAyB;CACnC,CAAC;AAEW,QAAA,aAAa,GAAG,GAAG,kBAAU,UAAU,CAAC;AACxC,QAAA,YAAY,GAAG,GAAG,kBAAU,SAAS,CAAC;AACtC,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,WAAW,GAAG,GAAG,kBAAU,QAAQ,CAAC;AACpC,QAAA,YAAY,GAAG,GAAG,kBAAU,eAAe,CAAC;AAE5C,QAAA,eAAe,GAC1B,gEAAgE,CAAC;AACtD,QAAA,UAAU,GAAG,qBAAqB,CAAC;AACnC,QAAA,SAAS,GAAG,oBAAoB,CAAC;AACjC,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,SAAS,GAAG,0BAA0B,CAAC;AAEvC,QAAA,gBAAgB,GAAG,iGAAiG,CAAC;AACrH,QAAA,YAAY,GACvB,sFAAsF,CAAC;AAEzF,MAAM,gBAAgB,GACpB,oEAAoE,CAAC;AAC1D,QAAA,cAAc,GAAG,GAAG,gBAAgB,uBAAuB,CAAC;AAC5D,QAAA,iBAAiB,GAAG,GAAG,gBAAgB,6BAA6B,CAAC;AAErE,QAAA,aAAa,GAAG,UAAa,CAAC;AAC9B,QAAA,UAAU,GACrB,8EAA8E,CAAC;AACpE,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,UAAU,GACrB,oEAAoE,CAAC;AAC1D,QAAA,UAAU,GACrB,+DAA+D,CAAC;AAErD,QAAA,UAAU,GAAG;IACxB,aAAa;IACb,eAAe;IACf,aAAa;IACb,uBAAuB;IACvB,uBAAuB;IACvB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,cAAc;CACN,CAAC;AAEE,QAAA,SAAS,GAAG;IACvB,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;CACE,CAAC;AAEE,QAAA,eAAe,GAAG;IAC7B,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,OAAO;CACC,CAAC"}
@@ -14,7 +14,13 @@ const veScaFetcher_1 = __importDefault(require("./veScaFetcher"));
14
14
  const obligationsFetcher_1 = __importDefault(require("./obligationsFetcher"));
15
15
  const cnyAirdropFetcher_1 = __importDefault(require("./cnyAirdropFetcher"));
16
16
  const constants_1 = require("./constants");
17
- exports.jobs = [addressJob_1.default, sCoinJob_1.default, poolsJob_1.default, marketJob_1.default, spoolsMarketJob_1.default];
17
+ exports.jobs = [
18
+ addressJob_1.default,
19
+ sCoinJob_1.default,
20
+ poolsJob_1.default,
21
+ marketJob_1.default,
22
+ spoolsMarketJob_1.default,
23
+ ];
18
24
  exports.fetchers = [
19
25
  lendingsFetcher_1.default,
20
26
  obligationsFetcher_1.default,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,8DAAsC;AACtC,4DAAoC;AACpC,wEAAgD;AAChD,0DAAkC;AAElC,wEAAgD;AAChD,kEAA0C;AAC1C,8EAAsD;AACtD,4EAAmD;AACnD,2CAAuC;AAE1B,QAAA,IAAI,GAAU,CAAC,oBAAU,EAAE,kBAAQ,EAAE,kBAAQ,EAAE,mBAAS,EAAE,yBAAe,CAAC,CAAC;AAC3E,QAAA,QAAQ,GAAc;IACjC,yBAAe;IACf,4BAAkB;IAClB,sBAAY;IACZ,2BAAgB;CACjB,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/scallop/index.ts"],"names":[],"mappings":";;;;;;AAGA,0DAAkC;AAClC,8DAAsC;AACtC,4DAAoC;AACpC,wEAAgD;AAChD,0DAAkC;AAElC,wEAAgD;AAChD,kEAA0C;AAC1C,8EAAsD;AACtD,4EAAmD;AACnD,2CAAuC;AAE1B,QAAA,IAAI,GAAU;IACzB,oBAAU;IACV,kBAAQ;IACR,kBAAQ;IACR,mBAAS;IACT,yBAAe;CAChB,CAAC;AACW,QAAA,QAAQ,GAAc;IACjC,yBAAe;IACf,4BAAkB;IAClB,sBAAY;IACZ,2BAAgB;CACjB,CAAC;AACW,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}