@sonarwatch/portfolio-plugins 0.14.64 → 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.
- package/CHANGELOG.md +1856 -1848
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/magiceden/airdropFetcher.d.ts +3 -0
- package/src/plugins/magiceden/airdropFetcher.js +67 -0
- package/src/plugins/magiceden/airdropFetcher.js.map +1 -0
- package/src/plugins/magiceden/constants.d.ts +3 -0
- package/src/plugins/magiceden/constants.js +11 -1
- package/src/plugins/magiceden/constants.js.map +1 -1
- package/src/plugins/magiceden/index.d.ts +2 -0
- package/src/plugins/magiceden/index.js +3 -1
- package/src/plugins/magiceden/index.js.map +1 -1
- package/src/plugins/magiceden/types.d.ts +15 -0
- package/src/plugins/magiceden/types.js +3 -0
- package/src/plugins/magiceden/types.js.map +1 -0
- package/src/plugins/sandglass/marketsJob.js +0 -1
- package/src/plugins/sandglass/marketsJob.js.map +1 -1
- package/src/plugins/streamflow/airdropFetcher.d.ts +5 -0
- package/src/plugins/streamflow/airdropFetcher.js +46 -0
- package/src/plugins/streamflow/airdropFetcher.js.map +1 -0
- package/src/plugins/streamflow/constants.d.ts +4 -0
- package/src/plugins/streamflow/constants.js +12 -1
- package/src/plugins/streamflow/constants.js.map +1 -1
- package/src/plugins/streamflow/helpers.d.ts +3 -0
- package/src/plugins/streamflow/helpers.js +83 -0
- package/src/plugins/streamflow/helpers.js.map +1 -0
- package/src/plugins/streamflow/index.d.ts +2 -0
- package/src/plugins/streamflow/index.js +8 -1
- package/src/plugins/streamflow/index.js.map +1 -1
- package/src/plugins/streamflow/types.d.ts +13 -0
- package/src/plugins/streamflow/types.js +3 -0
- package/src/plugins/streamflow/types.js.map +1 -0
- package/src/plugins/suilend/airdropFetcher.d.ts +1 -0
- package/src/plugins/suilend/airdropFetcher.js +66 -34
- package/src/plugins/suilend/airdropFetcher.js.map +1 -1
- package/src/plugins/suilend/burnEventsJob.d.ts +3 -0
- package/src/plugins/suilend/burnEventsJob.js +68 -0
- package/src/plugins/suilend/burnEventsJob.js.map +1 -0
- package/src/plugins/suilend/constants.d.ts +2 -1
- package/src/plugins/suilend/constants.js +5 -4
- package/src/plugins/suilend/constants.js.map +1 -1
- package/src/plugins/suilend/index.js +2 -1
- package/src/plugins/suilend/index.js.map +1 -1
- package/src/plugins/suilend/types.d.ts +23 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
package/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# @sonarwatch/portfolio-plugins
|
2
|
-
|
3
|
-
This library is @sonarwatch/portfolio-plugins
|
1
|
+
# @sonarwatch/portfolio-plugins
|
2
|
+
|
3
|
+
This library is @sonarwatch/portfolio-plugins
|
package/package.json
CHANGED
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,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,
|
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;AA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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"}
|
@@ -36,27 +36,27 @@ exports.getBalancerPoolsV2 = void 0;
|
|
36
36
|
const graphql_request_1 = __importStar(require("graphql-request"));
|
37
37
|
function getBalancerPoolsV2(url) {
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
39
|
-
const query = (0, graphql_request_1.gql) `
|
40
|
-
query pools {
|
41
|
-
pools(
|
42
|
-
first: 1000
|
43
|
-
orderBy: totalLiquidity
|
44
|
-
orderDirection: desc
|
45
|
-
where: { totalLiquidity_gt: "500" }
|
46
|
-
) {
|
47
|
-
id
|
48
|
-
address
|
49
|
-
symbol
|
50
|
-
totalLiquidity
|
51
|
-
totalShares
|
52
|
-
tokens {
|
53
|
-
balance
|
54
|
-
decimals
|
55
|
-
symbol
|
56
|
-
address
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
39
|
+
const query = (0, graphql_request_1.gql) `
|
40
|
+
query pools {
|
41
|
+
pools(
|
42
|
+
first: 1000
|
43
|
+
orderBy: totalLiquidity
|
44
|
+
orderDirection: desc
|
45
|
+
where: { totalLiquidity_gt: "500" }
|
46
|
+
) {
|
47
|
+
id
|
48
|
+
address
|
49
|
+
symbol
|
50
|
+
totalLiquidity
|
51
|
+
totalShares
|
52
|
+
tokens {
|
53
|
+
balance
|
54
|
+
decimals
|
55
|
+
symbol
|
56
|
+
address
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
60
|
`;
|
61
61
|
const res = yield (0, graphql_request_1.default)(url, query);
|
62
62
|
const pools = res.pools;
|
@@ -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;YAC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}
|
@@ -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;
|
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;
|
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 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/types.ts"],"names":[],"mappings":""}
|
@@ -49,7 +49,6 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
49
49
|
if (!baseTokenPrice &&
|
50
50
|
constants_1.tokenWrappers[market.tokenSyMintAddress.toString()]) {
|
51
51
|
baseTokenPrice = baseTokenPriceById.get(constants_1.tokenWrappers[market.tokenSyMintAddress.toString()]);
|
52
|
-
console.log(market);
|
53
52
|
}
|
54
53
|
if (!baseTokenPrice)
|
55
54
|
continue;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAyE;AAGzE,iDAAsD;AACtD,+CAM4B;AAC5B,2CAKqB;AACrB,uCAAyC;AACzC,uCAAiD;AAEjD,mDAA2D;AAC3D,kFAA+E;AAE/E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG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AAE,CACrC,CAAC;QACF,IACE,CAAC,cAAc;YACf,yBAAa,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,EACnD,CAAC;YACD,cAAc,GAAG,kBAAkB,CAAC,GAAG,CACrC,yBAAa,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CACpD,CAAC;
|
1
|
+
{"version":3,"file":"marketsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sandglass/marketsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,+DAAyE;AAGzE,iDAAsD;AACtD,+CAM4B;AAC5B,2CAKqB;AACrB,uCAAyC;AACzC,uCAAiD;AAEjD,mDAA2D;AAC3D,kFAA+E;AAE/E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,OAAO,GAAG,MAAM,IAAA,iCAAwB,EAC5C,MAAM,EACN,sBAAY,EACZ,qBAAS,EACT,8BAAoB,CACrB,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO;SAClB,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;QACf,MAAM,CAAC,kBAAkB;QACzB,MAAM,CAAC,kBAAkB;QACzB,MAAM,CAAC,kBAAkB;QACzB,MAAM,CAAC,kBAAkB;KAC1B,CAAC;SACD,IAAI,EAAE,CAAC;IAEV,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACvC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CACrC,CAAC;IACF,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,yBAAa,CAAC,CAAC,CAAC;IAChD,MAAM,kBAAkB,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACxD,SAAS,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,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C5B,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AAEF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,QAAQ;IACR,KAAK,EAAE,QAAQ;CAChB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -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.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AC,EAAE,IAAI,0BAAS,CAAC,QAAQ,EAAE;IAChD,SAAS,EAAE,0BAAS,CAAC,QAAQ;IAC7B,QAAQ,EAAE,gBAAgB;CAC3B,CAAC;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;
|
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/streamfl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oBAAQ,CAAC,KAAK;qBACzB;iBACF;aACF,CAAC,CAAC;QAEL,MAAM,MAAM,GAAG,IAAA,sBAAS,EAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;aAC/C,SAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC;aAClB,QAAQ,EAAE,CAAC;QACd,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,KAAK,EAAE;gBACL;oBACE,MAAM;oBACN,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,QAAQ;oBACf,OAAO,EAAE,sBAAU;oBACnB,QAAQ,EAAE,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;
|
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 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/streamflow/types.ts"],"names":[],"mappings":""}
|