@sonarwatch/portfolio-plugins 0.11.178 → 0.11.180
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/orphanPlatorms.js +0 -7
- package/src/orphanPlatorms.js.map +1 -1
- package/src/plugins/jupiter/launchpad/constants.js +6 -0
- package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
- package/src/plugins/kamino/airdropFetcher.js +10 -8
- package/src/plugins/kamino/airdropFetcher.js.map +1 -1
- package/src/plugins/magiceden/constants.d.ts +7 -0
- package/src/plugins/magiceden/constants.js +17 -0
- package/src/plugins/magiceden/constants.js.map +1 -0
- package/src/plugins/magiceden/escrowFetcher.d.ts +3 -0
- package/src/plugins/magiceden/escrowFetcher.js +47 -0
- package/src/plugins/magiceden/escrowFetcher.js.map +1 -0
- package/src/plugins/magiceden/helpers.d.ts +2 -0
- package/src/plugins/magiceden/helpers.js +14 -0
- package/src/plugins/magiceden/helpers.js.map +1 -0
- package/src/plugins/magiceden/index.d.ts +6 -0
- package/src/plugins/magiceden/index.js +12 -0
- package/src/plugins/magiceden/index.js.map +1 -0
- package/src/utils/name-service/nameServices.js +2 -0
- package/src/utils/name-service/nameServices.js.map +1 -1
- package/src/utils/name-service/services/sui.d.ts +2 -0
- package/src/utils/name-service/services/sui.js +31 -0
- package/src/utils/name-service/services/sui.js.map +1 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
+
## [0.11.180](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.179...plugins-0.11.180) (2024-04-16)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
## [0.11.179](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.178...plugins-0.11.179) (2024-04-15)
|
10
|
+
|
11
|
+
|
12
|
+
|
5
13
|
## [0.11.178](https://github.com/sonarwatch/portfolio/compare/plugins-0.11.177...plugins-0.11.178) (2024-04-15)
|
6
14
|
|
7
15
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sonarwatch/portfolio-plugins",
|
3
|
-
"version": "0.11.
|
3
|
+
"version": "0.11.180",
|
4
4
|
"type": "commonjs",
|
5
5
|
"generators": "./generators.json",
|
6
6
|
"dependencies": {
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"web3-v1": "npm:web3@^1.5.0"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@sonarwatch/portfolio-core": "0.11.
|
44
|
+
"@sonarwatch/portfolio-core": "0.11.177"
|
45
45
|
},
|
46
46
|
"main": "./src/index.js",
|
47
47
|
"types": "./src/index.d.ts"
|
package/src/index.js
CHANGED
@@ -104,6 +104,7 @@ const wormhole_1 = require("./plugins/wormhole");
|
|
104
104
|
const banx_1 = require("./plugins/banx");
|
105
105
|
const nosana_1 = require("./plugins/nosana");
|
106
106
|
const jito_1 = require("./plugins/jito");
|
107
|
+
const magiceden_1 = require("./plugins/magiceden");
|
107
108
|
var constants_1 = require("./plugins/tokens/constants");
|
108
109
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
109
110
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -201,6 +202,7 @@ exports.platforms = [
|
|
201
202
|
...banx_1.platforms,
|
202
203
|
...nosana_1.platforms,
|
203
204
|
...jito_1.platforms,
|
205
|
+
...magiceden_1.platforms,
|
204
206
|
];
|
205
207
|
// JOBS //
|
206
208
|
exports.jobs = [
|
@@ -281,6 +283,7 @@ exports.jobs = [
|
|
281
283
|
...banx_1.jobs,
|
282
284
|
...nosana_1.jobs,
|
283
285
|
...jito_1.jobs,
|
286
|
+
...magiceden_1.jobs,
|
284
287
|
];
|
285
288
|
// FETCHERS //
|
286
289
|
exports.fetchers = [
|
@@ -363,6 +366,7 @@ exports.fetchers = [
|
|
363
366
|
...banx_1.fetchers,
|
364
367
|
...nosana_1.fetchers,
|
365
368
|
...jito_1.fetchers,
|
369
|
+
...magiceden_1.fetchers,
|
366
370
|
];
|
367
371
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
368
372
|
//# 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":";;;;;;;;;;;;;;;;;;;;AAGA,wFAAqF;AACrF,sEAA8C;AAC9C,6CAI0B;AAC1B,yDAIgC;AAChC,iDAG4B;AAC5B,iDAI4B;AAC5B,2CAGyB;AACzB,6CAI0B;AAC1B,+CAI2B;AAC3B,yCAIwB;AACxB,+CAI2B;AAC3B,2CAIyB;AACzB,6CAI0B;AAC1B,2CAIyB;AACzB,6CAG0B;AAC1B,6CAI0B;AAC1B,yCAIwB;AACxB,2DAGiC;AACjC,6CAI0B;AAC1B,2CAIyB;AACzB,2CAIyB;AACzB,qDAA6D;AAC7D,qEAIsC;AACtC,uDAI+B;AAC/B,mDAG6B;AAC7B,qDAG8B;AAC9B,uDAG+B;AAC/B,2CAIyB;AACzB,6CAI0B;AAC1B,6CAG0B;AAC1B,yCAIwB;AACxB,+CAI2B;AAC3B,uDAG+B;AAC/B,yCAGwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,6CAI0B;AAC1B,+CAI2B;AAC3B,qDAG8B;AAC9B,iDAI4B;AAC5B,iDAI4B;AAC5B,mDAG6B;AAC7B,yCAIwB;AACxB,2CAIyB;AACzB,iDAI4B;AAC5B,iDAI4B;AAC5B,+CAI2B;AAC3B,yCAIwB;AACxB,2CAIyB;AACzB,mDAI6B;AAC7B,2CAIyB;AACzB,2CAIyB;AACzB,sCAIsB;AACt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gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,cAAe;IAClB,GAAG,kBAAe;IAClB,GAAG,eAAY;IACf,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,kBAAe;IAClB,GAAG,qBAAkB;IACrB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,kBAAe;IAClB,GAAG,gBAAa;IAChB,GAAG,gBAAa;IAChB,GAAG,sBAAmB;IACtB,GAAG,yBAAsB;IACzB,GAAG,gBAAa;IAChB,GAAG,eAAY;IACf,GAAG,oBAAiB;IACpB,GAAG,iBAAc;IACjB,GAAG,2BAAsB;IACzB,GAAG,yBAAkB;IACrB,GAAG,eAAY;IACf,GAAG,cAAW;IACd,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,oBAAiB;IACpB,GAAG,gBAAa;IAChB,GAAG,kBAAe;IAClB,GAAG,cAAW;IACd,GAAG,mBAAgB;IACnB,GAAG,eAAY;IACf,GAAG,iBAAc;IACjB,GAAG,eAAY;IACf,GAAG,oBAAiB;CACrB,CAAC;AACW,QAAA,uBAAuB,GAAG,IAAA,uDAA0B,EAAC,gBAAQ,CAAC,CAAC"}
|
package/src/orphanPlatorms.js
CHANGED
@@ -36,13 +36,6 @@ const otphanPlatforms = [
|
|
36
36
|
image: 'https://sonar.watch/img/platforms/coinbasestakedeth.png',
|
37
37
|
website: 'https://www.coinbase.com/price/coinbase-wrapped-staked-eth',
|
38
38
|
},
|
39
|
-
{
|
40
|
-
id: 'jito',
|
41
|
-
defiLlamaId: 'jito',
|
42
|
-
name: 'Jito',
|
43
|
-
image: 'https://sonar.watch/img/platforms/jito.png',
|
44
|
-
website: 'https://jito.network/',
|
45
|
-
},
|
46
39
|
{
|
47
40
|
id: 'blaze',
|
48
41
|
defiLlamaId: 'blazestake',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,kBAAkB;QACtB,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,wDAAwD;QAC/D,OAAO,EAAE,kCAAkC;KAC5C;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,8CAA8C;QACrD,OAAO,EAAE,0BAA0B;KACpC;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,yDAAyD;QAChE,OAAO,EAAE,4DAA4D;KACtE;IACD;QACE,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"orphanPlatorms.js","sourceRoot":"","sources":["../../../../packages/plugins/src/orphanPlatorms.ts"],"names":[],"mappings":";;AAEA,MAAM,eAAe,GAAe;IAClC;QACE,EAAE,EAAE,SAAS;QACb,WAAW,EAAE,SAAS,EAAE,sCAAsC;QAC9D,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,+CAA+C;QACtD,OAAO,EAAE,8BAA8B;KACxC;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,6CAA6C;QACpD,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,EAAE,EAAE,kBA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|
|
34
34
|
claimUntilTs: 1728086400000,
|
35
35
|
distributorProgram: 'DiSLRwcSFvtwvMWSs7ubBMvYRaYNYupa76ZSuYLe6D7j',
|
36
36
|
},
|
37
|
+
{
|
38
|
+
mint: 'SHARKSYJjqaNyxVfrpnBN9pjgkhwDhatnMyicWPnr1s',
|
39
|
+
decimals: 6,
|
40
|
+
claimUntilTs: 1714435200000,
|
41
|
+
distributorProgram: 'DiSLRwcSFvtwvMWSs7ubBMvYRaYNYupa76ZSuYLe6D7j',
|
42
|
+
},
|
37
43
|
];
|
38
44
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAC7C,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,8BAAsB;IAC1B,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,SAAS,GAAG,uCAAuC,CAAC;AAQpD,QAAA,YAAY,GAAkB;IACzC;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,6CAA6C;KAClE;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,8CAA8C;KACnE;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,8CAA8C;KACnE;CACF,CAAC"}
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/jupiter/launchpad/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAC7C,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,8BAAsB;IAC1B,IAAI,EAAE,mBAAmB;IACzB,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,qCAAqC;CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,IAAI,mBAAS,CACxC,6CAA6C,CAC9C,CAAC;AACW,QAAA,YAAY,GAAG,IAAI,mBAAS,CACvC,8CAA8C,CAC/C,CAAC;AACW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,WAAW,GAAG,CAAC,CAAC;AAEhB,QAAA,SAAS,GAAG,uCAAuC,CAAC;AAQpD,QAAA,YAAY,GAAkB;IACzC;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,6CAA6C;KAClE;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,8CAA8C;KACnE;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,8CAA8C;KACnE;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,YAAY,EAAE,aAAa;QAC3B,kBAAkB,EAAE,8CAA8C;KACnE;CACF,CAAC"}
|
@@ -20,14 +20,16 @@ const common_1 = require("./helpers/common");
|
|
20
20
|
const oneDayInMs = 24 * 60 * 60 * 1000;
|
21
21
|
const kmnkoPreMarketPriceKey = `${constants_2.preMarketPriceKey}-KMNO`;
|
22
22
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
|
-
const premarketPrice = yield
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
23
|
+
const [premarketPrice, cachedAllocation] = yield Promise.all([
|
24
|
+
cache.getItem(kmnkoPreMarketPriceKey, {
|
25
|
+
prefix: constants_2.driftPlatform.id,
|
26
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
27
|
+
}),
|
28
|
+
cache.getItem(owner, {
|
29
|
+
prefix: constants_1.allocationPrefix,
|
30
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
31
|
+
}),
|
32
|
+
]);
|
31
33
|
let amount;
|
32
34
|
if (cachedAllocation) {
|
33
35
|
amount = new bignumber_js_1.default(cachedAllocation);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,gEAAqC;AAGrC,2CAA2E;AAC3E,kDAAsE;AACtE,6CAA0D;AAE1D,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AACvC,MAAM,sBAAsB,GAAG,GAAG,6BAAiB,OAAO,CAAC;AAE3D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,OAAO,CAAS,sBAAsB,EAAE;
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/kamino/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,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xB,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,GAAG,EAAE,UAAU;aAChB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IACD,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAmB;QAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;QACvE,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE;YACzB,KAAK,EAAE,cAAc,IAAI,IAAI;YAC7B,QAAQ,EAAE,0BAAc,CAAC,KAAK;SAC/B;QACD,UAAU,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;KACnC,CAAC;IACF,OAAO;QACL;YACE,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,qBAAqB;YAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;SAC1B;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
2
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
export declare const platformId = "magiceden";
|
4
|
+
export declare const magicEdenPlatform: Platform;
|
5
|
+
export declare const m2Prefix = "m2";
|
6
|
+
export declare const m2Program: PublicKey;
|
7
|
+
export declare const m2AuctionHouse: PublicKey;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.m2AuctionHouse = exports.m2Program = exports.m2Prefix = exports.magicEdenPlatform = exports.platformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.platformId = 'magiceden';
|
6
|
+
exports.magicEdenPlatform = {
|
7
|
+
id: exports.platformId,
|
8
|
+
name: 'MagicEden',
|
9
|
+
image: 'https://sonar.watch/img/platforms/magiceden.png',
|
10
|
+
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
11
|
+
website: 'https://magiceden.io/',
|
12
|
+
twitter: 'https://twitter.com/MagicEden',
|
13
|
+
};
|
14
|
+
exports.m2Prefix = 'm2';
|
15
|
+
exports.m2Program = new web3_js_1.PublicKey('M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K');
|
16
|
+
exports.m2AuctionHouse = new web3_js_1.PublicKey('E8cU1WiRWjanGxmn96ewBgk9vPTcL6AEZ1t6F6fkgUWe');
|
17
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +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,iBAAiB,GAAa;IACzC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,qEAAqE;IACrE,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"}
|
@@ -0,0 +1,47 @@
|
|
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
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
+
const constants_1 = require("./constants");
|
18
|
+
const helpers_1 = require("./helpers");
|
19
|
+
const clients_1 = require("../../utils/clients");
|
20
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
21
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
|
+
const pda = (0, helpers_1.getEscrowAccount)(owner);
|
23
|
+
const client = (0, clients_1.getClientSolana)();
|
24
|
+
const amount = yield client.getBalance(pda);
|
25
|
+
if (!amount)
|
26
|
+
return [];
|
27
|
+
const solTokenPrice = yield cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana);
|
28
|
+
const asset = (0, tokenPriceToAssetToken_1.default)(portfolio_core_1.solanaNativeAddress, new bignumber_js_1.default(amount).dividedBy(Math.pow(10, portfolio_core_1.solanaNativeDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, solTokenPrice);
|
29
|
+
return [
|
30
|
+
{
|
31
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
32
|
+
label: 'Deposit',
|
33
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
34
|
+
platformId: constants_1.platformId,
|
35
|
+
name: 'Escrow',
|
36
|
+
value: asset.value,
|
37
|
+
data: { assets: [asset] },
|
38
|
+
},
|
39
|
+
];
|
40
|
+
});
|
41
|
+
const fetcher = {
|
42
|
+
id: `${constants_1.platformId}-escrow`,
|
43
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
44
|
+
executor,
|
45
|
+
};
|
46
|
+
exports.default = fetcher;
|
47
|
+
//# sourceMappingURL=escrowFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"escrowFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/escrowFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAyC;AACzC,uCAA6C;AAC7C,iDAAsD;AACtD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,GAAG,GAAG,IAAA,0BAAgB,EAAC,KAAK,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC5C,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAC7C,oCAAmB,EACnB,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oCAAmB,EACnB,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,qCAAoB,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtE,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,CAAC;IAEF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE;SAC1B;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,SAAS;IAC1B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getEscrowAccount = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
const constants_1 = require("./constants");
|
6
|
+
function getEscrowAccount(owner) {
|
7
|
+
return web3_js_1.PublicKey.findProgramAddressSync([
|
8
|
+
Buffer.from(constants_1.m2Prefix),
|
9
|
+
constants_1.m2AuctionHouse.toBuffer(),
|
10
|
+
new web3_js_1.PublicKey(owner).toBuffer(),
|
11
|
+
], constants_1.m2Program)[0];
|
12
|
+
}
|
13
|
+
exports.getEscrowAccount = getEscrowAccount;
|
14
|
+
//# sourceMappingURL=helpers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,2CAAkE;AAElE,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,oBAAQ,CAAC;QACrB,0BAAc,CAAC,QAAQ,EAAE;QACzB,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;KAChC,EACD,qBAAS,CACV,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AATD,4CASC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
|
+
const constants_1 = require("./constants");
|
8
|
+
const escrowFetcher_1 = __importDefault(require("./escrowFetcher"));
|
9
|
+
exports.platforms = [constants_1.magicEdenPlatform];
|
10
|
+
exports.jobs = [];
|
11
|
+
exports.fetchers = [escrowFetcher_1.default];
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/magiceden/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAgD;AAChD,oEAA4C;AAE/B,QAAA,SAAS,GAAe,CAAC,6BAAiB,CAAC,CAAC;AAC5C,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,uBAAa,CAAC,CAAC"}
|
@@ -4,11 +4,13 @@ exports.nameServices = void 0;
|
|
4
4
|
const bonfida_1 = require("./services/bonfida");
|
5
5
|
const avalanche_1 = require("./services/avalanche");
|
6
6
|
const ens_1 = require("./services/ens");
|
7
|
+
const sui_1 = require("./services/sui");
|
7
8
|
const allDomains_1 = require("./services/allDomains");
|
8
9
|
exports.nameServices = [
|
9
10
|
bonfida_1.nameService,
|
10
11
|
avalanche_1.nameService,
|
11
12
|
ens_1.nameService,
|
13
|
+
sui_1.nameService,
|
12
14
|
// Please leave allDomainsNameService at the end.
|
13
15
|
allDomains_1.nameService,
|
14
16
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nameServices.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/name-service/nameServices.ts"],"names":[],"mappings":";;;AACA,gDAAuE;AACvE,oDAA2E;AAC3E,wCAA+D;AAC/D,sDAA6E;AAEhE,QAAA,YAAY,GAAkB;IACzC,qBAAkB;IAClB,uBAAoB;IACpB,iBAAc;IACd,iDAAiD;IACjD,wBAAqB;CACtB,CAAC"}
|
1
|
+
{"version":3,"file":"nameServices.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/name-service/nameServices.ts"],"names":[],"mappings":";;;AACA,gDAAuE;AACvE,oDAA2E;AAC3E,wCAA+D;AAC/D,wCAA+D;AAC/D,sDAA6E;AAEhE,QAAA,YAAY,GAAkB;IACzC,qBAAkB;IAClB,uBAAoB;IACpB,iBAAc;IACd,iBAAc;IACd,iDAAiD;IACjD,wBAAqB;CACtB,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
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.nameService = void 0;
|
13
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
14
|
+
const clients_1 = require("../../clients");
|
15
|
+
function getOwner(name) {
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
17
|
+
return (0, clients_1.getClientSui)().resolveNameServiceAddress({ name });
|
18
|
+
});
|
19
|
+
}
|
20
|
+
function getNames(address) {
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
return (0, clients_1.getClientSui)().resolveNameServiceNames({ address }).then((res) => res.data);
|
23
|
+
});
|
24
|
+
}
|
25
|
+
exports.nameService = {
|
26
|
+
id: 'sui',
|
27
|
+
checker: portfolio_core_1.suiNameChecker,
|
28
|
+
getNames,
|
29
|
+
getOwner,
|
30
|
+
};
|
31
|
+
//# sourceMappingURL=sui.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sui.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/utils/name-service/services/sui.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA4D;AAE5D,2CAA6C;AAE7C,SAAe,QAAQ,CAAC,IAAY;;QAClC,OAAO,IAAA,sBAAY,GAAE,CAAC,yBAAyB,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5D,CAAC;CAAA;AAED,SAAe,QAAQ,CAAC,OAAe;;QACrC,OAAO,IAAA,sBAAY,GAAE,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrF,CAAC;CAAA;AAEY,QAAA,WAAW,GAAgB;IACtC,EAAE,EAAE,KAAK;IACT,OAAO,EAAE,+BAAc;IACvB,QAAQ;IACR,QAAQ;CACT,CAAC"}
|