@sonarwatch/portfolio-plugins 0.14.65 → 0.14.66

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/src/index.js +2 -0
  4. package/src/index.js.map +1 -1
  5. package/src/plugins/magiceden/airdropFetcher.d.ts +3 -0
  6. package/src/plugins/magiceden/airdropFetcher.js +67 -0
  7. package/src/plugins/magiceden/airdropFetcher.js.map +1 -0
  8. package/src/plugins/magiceden/constants.d.ts +3 -0
  9. package/src/plugins/magiceden/constants.js +11 -1
  10. package/src/plugins/magiceden/constants.js.map +1 -1
  11. package/src/plugins/magiceden/index.d.ts +2 -0
  12. package/src/plugins/magiceden/index.js +3 -1
  13. package/src/plugins/magiceden/index.js.map +1 -1
  14. package/src/plugins/magiceden/types.d.ts +15 -0
  15. package/src/plugins/magiceden/types.js +3 -0
  16. package/src/plugins/magiceden/types.js.map +1 -0
  17. package/src/plugins/streamflow/airdropFetcher.d.ts +5 -0
  18. package/src/plugins/streamflow/airdropFetcher.js +46 -0
  19. package/src/plugins/streamflow/airdropFetcher.js.map +1 -0
  20. package/src/plugins/streamflow/constants.d.ts +4 -0
  21. package/src/plugins/streamflow/constants.js +12 -1
  22. package/src/plugins/streamflow/constants.js.map +1 -1
  23. package/src/plugins/streamflow/helpers.d.ts +3 -0
  24. package/src/plugins/streamflow/helpers.js +83 -0
  25. package/src/plugins/streamflow/helpers.js.map +1 -0
  26. package/src/plugins/streamflow/index.d.ts +2 -0
  27. package/src/plugins/streamflow/index.js +8 -1
  28. package/src/plugins/streamflow/index.js.map +1 -1
  29. package/src/plugins/streamflow/types.d.ts +13 -0
  30. package/src/plugins/streamflow/types.js +3 -0
  31. package/src/plugins/streamflow/types.js.map +1 -0
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.14.66](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.65...plugins-0.14.66) (2024-12-13)
6
+
7
+
8
+
5
9
  ## [0.14.65](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.64...plugins-0.14.65) (2024-12-13)
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonarwatch/portfolio-plugins",
3
- "version": "0.14.65",
3
+ "version": "0.14.66",
4
4
  "type": "commonjs",
5
5
  "types": "./src/index.d.ts",
6
6
  "peerDependencies": {
package/src/index.js CHANGED
@@ -594,6 +594,8 @@ exports.airdropFetchers = [
594
594
  suilend_1.airdropFetcher,
595
595
  bluefin_1.airdropFetcher,
596
596
  grass_1.airdropFetcher,
597
+ ...streamflow_1.airdropFetchers,
598
+ magiceden_1.airdropFetcher,
597
599
  ];
598
600
  exports.airdropFetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.airdropFetchers);
599
601
  //# 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":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+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,6CAK0B;AAC1B,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sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;IAC1B,wBAAqB;IACrB,wBAAqB;IACrB,sBAAmB;CACpB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugins/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,wFAAqF;AACrF,wEAAgD;AAChD,6CAI0B;AAC1B,yDAIgC;AAChC,uDAAgE;AAChE,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,yCAIwB;AACxB,+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,6CAK0B;AAC1B,6CAI0B;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,yCAIwB;AACxB,iDAI4B;AAC5B,+CAK2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACtB,+CAI2B;AAC3B,yCAIwB;AACxB,iDAI4B;AAC5B,yCAIwB;AACxB,mDAI6B;AAC7B,qDAK8B;AAC9B,2CAIyB;AACzB,2CAKyB;AACzB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;IAClB,GAAG,iBAAc;IACjB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,oBAAiB;IACpB,GAAG,mBAAgB;IACnB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,eAAY;IACf,GAAG,gBAAa;IAChB,GAAG,qBAAgB;IACnB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;IACjB,GAAG,wBAAqB;IACxB,GAAG,mBAAgB;IACnB,GAAG,sBAAmB;CACvB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC;AAE/D,QAAA,eAAe,GAAqB;IAC/C,GAAG,yBAAsB;IACzB,GAAG,wBAAqB;IACxB,GAAG,yBAAsB;IACzB,sBAAmB;IACnB,sBAAmB;IACnB,yBAAsB;IACtB,sBAAmB;IACnB,GAAG,0BAAuB;IAC1B,wBAAqB;IACrB,wBAAqB;IACrB,sBAAmB;IACnB,GAAG,4BAAyB;IAC5B,0BAAuB;CACxB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
+ export declare const airdropFetcher: AirdropFetcher;
3
+ export declare const fetcher: import("../..").Fetcher;
@@ -0,0 +1,67 @@
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.fetcher = exports.airdropFetcher = void 0;
16
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
17
+ const axios_1 = __importDefault(require("axios"));
18
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
19
+ const AirdropFetcher_1 = require("../../AirdropFetcher");
20
+ const constants_1 = require("./constants");
21
+ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
22
+ const input = JSON.stringify({
23
+ json: {
24
+ claimWallet: owner,
25
+ token: constants_1.meMint,
26
+ allocationEvent: 'tge-airdrop-final',
27
+ },
28
+ });
29
+ const encodedInput = encodeURIComponent(input);
30
+ const res = yield axios_1.default.get(constants_1.airdropApi + encodedInput);
31
+ if (!res.data)
32
+ return (0, AirdropFetcher_1.getAirdropRaw)({
33
+ statics: constants_1.airdropStatics,
34
+ items: [
35
+ {
36
+ amount: 0,
37
+ isClaimed: false,
38
+ label: 'ME',
39
+ address: constants_1.meMint,
40
+ },
41
+ ],
42
+ });
43
+ const isClaimed = res.data.result.data.json.claimStatus === 'claimed';
44
+ const amount = new bignumber_js_1.default(res.data.result.data.json.availableTokenAmount)
45
+ .dividedBy(Math.pow(10, 6))
46
+ .toNumber();
47
+ return (0, AirdropFetcher_1.getAirdropRaw)({
48
+ statics: constants_1.airdropStatics,
49
+ items: [
50
+ {
51
+ // We have no way to know if a user was eligible and claimed
52
+ // We can only know if user claimed, or didn't claimed + amount.
53
+ amount,
54
+ isClaimed,
55
+ label: 'ME',
56
+ address: constants_1.meMint,
57
+ },
58
+ ],
59
+ });
60
+ });
61
+ exports.airdropFetcher = {
62
+ id: constants_1.airdropStatics.id,
63
+ networkId: portfolio_core_1.NetworkId.solana,
64
+ executor,
65
+ };
66
+ exports.fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.airdropFetcher, constants_1.platform.id, 'magiceden-airdrop', constants_1.airdropStatics.claimEnd);
67
+ //# sourceMappingURL=airdropFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,kDAA6C;AAC7C,gEAAqC;AACrC,yDAK8B;AAE9B,2CAA2E;AAG3E,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;QAC3B,IAAI,EAAE;YACJ,WAAW,EAAE,KAAK;YAClB,KAAK,EAAE,kBAAM;YACb,eAAe,EAAE,mBAAmB;SACrC;KACF,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAmC,MAAM,eAAK,CAAC,GAAG,CACzD,sBAAU,GAAG,YAAY,CAC1B,CAAC;IAEF,IAAI,CAAC,GAAG,CAAC,IAAI;QACX,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,CAAC;oBACT,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,IAAI;oBACX,OAAO,EAAE,kBAAM;iBAChB;aACF;SACF,CAAC,CAAC;IAEL,MAAM,SAAS,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC;IACtE,MAAM,MAAM,GAAG,IAAI,sBAAS,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC;SACzE,SAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC;SAClB,QAAQ,EAAE,CAAC;IAEd,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,4DAA4D;gBAC5D,gEAAgE;gBAChE,MAAM;gBACN,SAAS;gBACT,KAAK,EAAE,IAAI;gBACX,OAAO,EAAE,kBAAM;aAChB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,wCAAuB,EAC5C,sBAAc,EACd,oBAAQ,CAAC,EAAE,EACX,mBAAmB,EACnB,0BAAc,CAAC,QAAQ,CACxB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
2
2
  import { PublicKey } from '@solana/web3.js';
3
3
  import { Platform } from '@sonarwatch/portfolio-core';
4
+ import { AirdropStatics } from '../../AirdropFetcher';
4
5
  export declare const platformId = "magiceden";
5
6
  export declare const platform: Platform;
6
7
  export declare const m2Prefix = "m2";
@@ -8,3 +9,5 @@ export declare const m2Program: PublicKey;
8
9
  export declare const m2AuctionHouse: PublicKey;
9
10
  export declare const stakingPid: PublicKey;
10
11
  export declare const meMint = "MEFNBXixkEbait3xn9bkm8WsJzXtVsaJEn4c8Sam21u";
12
+ export declare const airdropApi = "https://mefoundation.com/api/trpc/allocation.queryClaimStatus?input=";
13
+ export declare const airdropStatics: AirdropStatics;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.meMint = exports.stakingPid = exports.m2AuctionHouse = exports.m2Program = exports.m2Prefix = exports.platform = exports.platformId = void 0;
3
+ exports.airdropStatics = exports.airdropApi = exports.meMint = exports.stakingPid = exports.m2AuctionHouse = exports.m2Program = exports.m2Prefix = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'magiceden';
6
6
  exports.platform = {
@@ -15,4 +15,14 @@ exports.m2Program = new web3_js_1.PublicKey('M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5
15
15
  exports.m2AuctionHouse = new web3_js_1.PublicKey('E8cU1WiRWjanGxmn96ewBgk9vPTcL6AEZ1t6F6fkgUWe');
16
16
  exports.stakingPid = new web3_js_1.PublicKey('veTbq5fF2HWYpgmkwjGKTYLVpY6miWYYmakML7R7LRf');
17
17
  exports.meMint = 'MEFNBXixkEbait3xn9bkm8WsJzXtVsaJEn4c8Sam21u';
18
+ exports.airdropApi = 'https://mefoundation.com/api/trpc/allocation.queryClaimStatus?input=';
19
+ exports.airdropStatics = {
20
+ claimLink: 'https://mefoundation.com/link',
21
+ emitterLink: 'https://mefoundation.com/',
22
+ emitterName: 'MagicEden',
23
+ id: 'magiceden-airdrop',
24
+ image: 'https://sonar.watch/img/platforms/magiceden.webp',
25
+ claimStart: 1733839200000,
26
+ claimEnd: 1738368000000,
27
+ };
18
28
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,+BAA+B;CACzC,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AACW,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,6CAA6C,CAC9C,CAAC;AACW,QAAA,MAAM,GAAG,6CAA6C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,kDAAkD;IACzD,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,+BAA+B;CACzC,CAAC;AAEW,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,cAAc,GAAG,IAAI,mBAAS,CACzC,8CAA8C,CAC/C,CAAC;AACW,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,6CAA6C,CAC9C,CAAC;AACW,QAAA,MAAM,GAAG,6CAA6C,CAAC;AACvD,QAAA,UAAU,GACrB,sEAAsE,CAAC;AAE5D,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,+BAA+B;IAC1C,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,WAAW;IACxB,EAAE,EAAE,mBAAmB;IACvB,KAAK,EAAE,kDAAkD;IACzD,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  import { Fetcher } from '../../Fetcher';
3
3
  import { Job } from '../../Job';
4
+ import { airdropFetcher } from './airdropFetcher';
4
5
  export declare const platforms: Platform[];
5
6
  export declare const jobs: Job[];
6
7
  export declare const fetchers: Fetcher[];
8
+ export { airdropFetcher };
@@ -3,10 +3,12 @@ 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 = exports.platforms = void 0;
6
+ exports.airdropFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const escrowFetcher_1 = __importDefault(require("./escrowFetcher"));
9
9
  const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
10
+ const airdropFetcher_1 = require("./airdropFetcher");
11
+ Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
10
12
  exports.platforms = [constants_1.platform];
11
13
  exports.jobs = [];
12
14
  exports.fetchers = [escrowFetcher_1.default, stakingFetcher_1.default];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,oEAA4C;AAC5C,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,wBAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,oEAA4C;AAC5C,sEAA8C;AAC9C,qDAAkD;AAKzC,+FALA,+BAAc,OAKA;AAHV,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,uBAAa,EAAE,wBAAc,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ export type AirdropResponse = {
2
+ result: Result;
3
+ };
4
+ export type Result = {
5
+ data: Data;
6
+ };
7
+ export type Data = {
8
+ json: JSON;
9
+ };
10
+ export type JSON = {
11
+ claimWallet: string;
12
+ token: string;
13
+ claimStatus: string;
14
+ availableTokenAmount: number;
15
+ };
@@ -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/magiceden/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { AirdropFetcher } from '../../AirdropFetcher';
2
+ export declare const airdropFetcherSolana: AirdropFetcher;
3
+ export declare const airdropFetcherAptos: AirdropFetcher;
4
+ export declare const airdropFetcherSui: AirdropFetcher;
5
+ export declare const airdropFetcherEthereum: AirdropFetcher;
@@ -0,0 +1,46 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.airdropFetcherEthereum = exports.airdropFetcherSui = exports.airdropFetcherAptos = exports.airdropFetcherSolana = void 0;
13
+ const portfolio_core_1 = require("@sonarwatch/portfolio-core");
14
+ const helpers_1 = require("./helpers");
15
+ const constants_1 = require("./constants");
16
+ const solanaExecutor = (owner) => __awaiter(void 0, void 0, void 0, function* () { return (0, helpers_1.getAirdropItems)(owner, portfolio_core_1.NetworkId.solana); });
17
+ const aptosExecutor = (owner) => __awaiter(void 0, void 0, void 0, function* () { return (0, helpers_1.getAirdropItems)(owner, portfolio_core_1.NetworkId.aptos); });
18
+ const suiExecutor = (owner) => __awaiter(void 0, void 0, void 0, function* () { return (0, helpers_1.getAirdropItems)(owner, portfolio_core_1.NetworkId.sui); });
19
+ const ethereumExecutor = (owner) => __awaiter(void 0, void 0, void 0, function* () { return (0, helpers_1.getAirdropItems)(owner, portfolio_core_1.NetworkId.ethereum); });
20
+ exports.airdropFetcherSolana = {
21
+ id: `${constants_1.airdropStatics.id}-${portfolio_core_1.NetworkId.solana}`,
22
+ networkId: portfolio_core_1.NetworkId.solana,
23
+ executor: solanaExecutor,
24
+ };
25
+ exports.airdropFetcherAptos = {
26
+ id: `${constants_1.airdropStatics.id}-${portfolio_core_1.NetworkId.aptos}`,
27
+ networkId: portfolio_core_1.NetworkId.aptos,
28
+ executor: aptosExecutor,
29
+ };
30
+ exports.airdropFetcherSui = {
31
+ id: `${constants_1.airdropStatics.id}-${portfolio_core_1.NetworkId.sui}`,
32
+ networkId: portfolio_core_1.NetworkId.sui,
33
+ executor: suiExecutor,
34
+ };
35
+ exports.airdropFetcherEthereum = {
36
+ id: `${constants_1.airdropStatics.id}-${portfolio_core_1.NetworkId.ethereum}`,
37
+ networkId: portfolio_core_1.NetworkId.ethereum,
38
+ executor: ethereumExecutor,
39
+ };
40
+ // export const fetcher = airdropFetcherToFetcher(
41
+ // airdropFetcher,
42
+ // platform.id,
43
+ // 'suilend-airdrop',
44
+ // airdropStatics.claimEnd
45
+ // );
46
+ //# sourceMappingURL=airdropFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAuD;AAOvD,uCAA4C;AAC5C,2CAA6C;AAE7C,MAAM,cAAc,GAA2B,CAAO,KAAa,EAAE,E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AAEF,kDAAkD;AAClD,oBAAoB;AACpB,iBAAiB;AACjB,uBAAuB;AACvB,4BAA4B;AAC5B,KAAK"}
@@ -1,6 +1,10 @@
1
1
  /// <reference types="jito-ts/node_modules/@solana/web3.js" />
2
2
  import { PublicKey } from '@solana/web3.js';
3
3
  import { Platform } from '@sonarwatch/portfolio-core';
4
+ import { AirdropStatics } from '../../AirdropFetcher';
4
5
  export declare const platformId = "streamflow";
5
6
  export declare const platform: Platform;
7
+ export declare const streamMint: undefined;
6
8
  export declare const streamflowProgramId: PublicKey;
9
+ export declare const airdropApi = "https://api.streamflow.foundation/v2/api/airdrop-recipients/check-eligibility";
10
+ export declare const airdropStatics: AirdropStatics;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.streamflowProgramId = exports.platform = exports.platformId = void 0;
3
+ exports.airdropStatics = exports.airdropApi = exports.streamflowProgramId = exports.streamMint = exports.platform = exports.platformId = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'streamflow';
6
6
  exports.platform = {
@@ -11,5 +11,16 @@ exports.platform = {
11
11
  website: 'https://app.streamflow.finance/',
12
12
  twitter: 'https://twitter.com/streamflow_fi',
13
13
  };
14
+ exports.streamMint = undefined;
14
15
  exports.streamflowProgramId = new web3_js_1.PublicKey('strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m');
16
+ exports.airdropApi = 'https://api.streamflow.foundation/v2/api/airdrop-recipients/check-eligibility';
17
+ exports.airdropStatics = {
18
+ claimLink: 'https://streamflow.foundation/',
19
+ emitterLink: 'https://streamflow.foundation/',
20
+ emitterName: 'Streamflow',
21
+ id: 'streamflow-airdrop',
22
+ image: 'https://sonar.watch/img/platforms/streamflow.webp',
23
+ claimEnd: 1765512000000,
24
+ claimStart: 1742216400000,
25
+ };
15
26
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AAEW,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,6CAA6C,CAC9C,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EAAE,YAAY,EAAE,sCAAsC;IACjE,OAAO,EAAE,iCAAiC;IAC1C,OAAO,EAAE,mCAAmC;CAC7C,CAAC;AACW,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,mBAAmB,GAAG,IAAI,mBAAS,CAC9C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,UAAU,GACrB,+EAA+E,CAAC;AAErE,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,gCAAgC;IAC3C,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE,YAAY;IACzB,EAAE,EAAE,oBAAoB;IACxB,KAAK,EAAE,mDAAmD;IAC1D,QAAQ,EAAE,aAAa;IACvB,UAAU,EAAE,aAAa;CAC1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AirdropRaw, NetworkIdType } from '@sonarwatch/portfolio-core';
2
+ export declare function getAirdropApiUrlFromNetworkId(owner: string, networkId: NetworkIdType): string | undefined;
3
+ export declare function getAirdropItems(owner: string, networdkId: NetworkIdType): Promise<AirdropRaw>;
@@ -0,0 +1,83 @@
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.getAirdropItems = exports.getAirdropApiUrlFromNetworkId = void 0;
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
18
+ const constants_1 = require("./constants");
19
+ const AirdropFetcher_1 = require("../../AirdropFetcher");
20
+ function getAirdropApiUrlFromNetworkId(owner, networkId) {
21
+ switch (networkId) {
22
+ case 'aptos':
23
+ return `${constants_1.airdropApi}?address=${owner}&chain=Aptos`;
24
+ case 'ethereum':
25
+ return `${constants_1.airdropApi}?address=${owner}&chain=Ethereum`;
26
+ case 'solana':
27
+ return `${constants_1.airdropApi}?address=${owner}&chain=Solana`;
28
+ case 'sui':
29
+ return `${constants_1.airdropApi}?address=${owner}&chain=Sui`;
30
+ default:
31
+ return undefined;
32
+ }
33
+ }
34
+ exports.getAirdropApiUrlFromNetworkId = getAirdropApiUrlFromNetworkId;
35
+ function getAirdropItems(owner, networdkId) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const link = getAirdropApiUrlFromNetworkId(owner, networdkId);
38
+ if (!link)
39
+ return (0, AirdropFetcher_1.getAirdropRaw)({
40
+ statics: constants_1.airdropStatics,
41
+ items: [
42
+ {
43
+ amount: 0,
44
+ isClaimed: false,
45
+ label: 'STREAM',
46
+ address: constants_1.streamMint,
47
+ imageUri: constants_1.platform.image,
48
+ },
49
+ ],
50
+ });
51
+ const res = yield axios_1.default.get(link);
52
+ if (!res.data.isEligible)
53
+ return (0, AirdropFetcher_1.getAirdropRaw)({
54
+ statics: constants_1.airdropStatics,
55
+ items: [
56
+ {
57
+ amount: 0,
58
+ isClaimed: false,
59
+ label: 'STREAM',
60
+ address: constants_1.streamMint,
61
+ imageUri: constants_1.platform.image,
62
+ },
63
+ ],
64
+ });
65
+ const amount = (0, bignumber_js_1.default)(res.data.data.allocation)
66
+ .dividedBy(Math.pow(10, 6))
67
+ .toNumber();
68
+ return (0, AirdropFetcher_1.getAirdropRaw)({
69
+ statics: constants_1.airdropStatics,
70
+ items: [
71
+ {
72
+ amount,
73
+ isClaimed: false,
74
+ label: 'STREAM',
75
+ address: constants_1.streamMint,
76
+ imageUri: constants_1.platform.image,
77
+ },
78
+ ],
79
+ });
80
+ });
81
+ }
82
+ exports.getAirdropItems = getAirdropItems;
83
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAA6C;AAC7C,gEAAqC;AACrC,2CAA+E;AAC/E,yDAAqD;AAGrD,SAAgB,6BAA6B,CAC3C,KAAa,EACb,SAAwB;IAExB,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,OAAO;YACV,OAAO,GAAG,sBAAU,YAAY,KAAK,cAAc,CAAC;QACtD,KAAK,UAAU;YACb,OAAO,GAAG,sBAAU,YAAY,KAAK,iBAAiB,CAAC;QACzD,KAAK,QAAQ;YACX,OAAO,GAAG,sBAAU,YAAY,KAAK,eAAe,CAAC;QACvD,KAAK,KAAK;YACR,OA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E,oBAAQ,CAAC,KAAK;iBACzB;aACF;SACF,CAAC,CAAC;IACL,CAAC;CAAA;AAnDD,0CAmDC"}
@@ -1,6 +1,8 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
2
  import { Fetcher } from '../../Fetcher';
3
3
  import { Job } from '../../Job';
4
+ import { AirdropFetcher } from '../../AirdropFetcher';
4
5
  export declare const platforms: Platform[];
5
6
  export declare const jobs: Job[];
6
7
  export declare const fetchers: Fetcher[];
8
+ export declare const airdropFetchers: AirdropFetcher[];
@@ -3,10 +3,17 @@ 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 = exports.platforms = void 0;
6
+ exports.airdropFetchers = exports.fetchers = exports.jobs = exports.platforms = void 0;
7
7
  const constants_1 = require("./constants");
8
8
  const vestingFetcher_1 = __importDefault(require("./vestingFetcher"));
9
+ const airdropFetcher_1 = require("./airdropFetcher");
9
10
  exports.platforms = [constants_1.platform];
10
11
  exports.jobs = [];
11
12
  exports.fetchers = [vestingFetcher_1.default];
13
+ exports.airdropFetchers = [
14
+ airdropFetcher_1.airdropFetcherAptos,
15
+ airdropFetcher_1.airdropFetcherEthereum,
16
+ airdropFetcher_1.airdropFetcherSolana,
17
+ airdropFetcher_1.airdropFetcherSui,
18
+ ];
12
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAC9C,qDAK0B;AAGb,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC;AACvC,QAAA,eAAe,GAAqB;IAC/C,oCAAmB;IACnB,uCAAsB;IACtB,qCAAoB;IACpB,kCAAiB;CAClB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export type AirdropResponse = {
2
+ isEligible: boolean;
3
+ data: Data;
4
+ };
5
+ export type Data = {
6
+ chain: string;
7
+ walletAddress: string;
8
+ solanaAddress: null;
9
+ cexName: null;
10
+ cexAccountId: null;
11
+ cexWalletAddress: null;
12
+ allocation: string;
13
+ };
@@ -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/streamflow/types.ts"],"names":[],"mappings":""}