@sonarwatch/portfolio-plugins 0.14.77 → 0.14.78
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 +5 -1
- package/package.json +1 -1
- package/src/index.js +5 -0
- package/src/index.js.map +1 -1
- package/src/plugins/perena/constants.d.ts +6 -0
- package/src/plugins/perena/constants.js +14 -0
- package/src/plugins/perena/constants.js.map +1 -0
- package/src/plugins/perena/index.d.ts +6 -0
- package/src/plugins/perena/index.js +12 -0
- package/src/plugins/perena/index.js.map +1 -0
- package/src/plugins/perena/poolsJob.d.ts +3 -0
- package/src/plugins/perena/poolsJob.js +69 -0
- package/src/plugins/perena/poolsJob.js.map +1 -0
- package/src/plugins/perena/structs.d.ts +47 -0
- package/src/plugins/perena/structs.js +47 -0
- package/src/plugins/perena/structs.js.map +1 -0
- package/src/plugins/perena/types.d.ts +5 -0
- package/src/plugins/perena/types.js +3 -0
- package/src/plugins/perena/types.js.map +1 -0
- package/src/plugins/tensor/constants.d.ts +3 -0
- package/src/plugins/tensor/constants.js +19 -1
- package/src/plugins/tensor/constants.js.map +1 -1
- package/src/plugins/tensor/index.d.ts +2 -0
- package/src/plugins/tensor/index.js +10 -3
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/tensor/powerUserAirdropFetcher.d.ts +3 -0
- package/src/plugins/tensor/powerUserAirdropFetcher.js +98 -0
- package/src/plugins/tensor/powerUserAirdropFetcher.js.map +1 -0
- package/src/plugins/tensor/season4AirdropFetcher.d.ts +3 -0
- package/src/plugins/tensor/season4AirdropFetcher.js +44 -0
- package/src/plugins/tensor/season4AirdropFetcher.js.map +1 -0
- package/src/plugins/tensor/season4Alloc.d.ts +6 -0
- package/src/plugins/tensor/season4Alloc.js +86167 -0
- package/src/plugins/tensor/season4Alloc.js.map +1 -0
- package/src/plugins/zeta/airdropFetcher.js +14 -14
package/CHANGELOG.md
CHANGED
@@ -2,10 +2,14 @@
|
|
2
2
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
4
4
|
|
5
|
-
## [0.14.
|
5
|
+
## [0.14.78](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.77...plugins-0.14.78) (2024-12-24)
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
## [0.14.77](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.76...plugins-0.14.77) (2024-12-23)
|
10
|
+
|
11
|
+
|
12
|
+
|
9
13
|
## [0.14.76](https://github.com/sonarwatch/portfolio/compare/plugins-0.14.75...plugins-0.14.76) (2024-12-20)
|
10
14
|
|
11
15
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -161,6 +161,7 @@ const photofinish_1 = require("./plugins/photofinish");
|
|
161
161
|
const pudgypenguins_1 = require("./plugins/pudgypenguins");
|
162
162
|
const gpool_1 = require("./plugins/gpool");
|
163
163
|
const defiland_1 = require("./plugins/defiland");
|
164
|
+
const perena_1 = require("./plugins/perena");
|
164
165
|
var constants_1 = require("./plugins/tokens/constants");
|
165
166
|
Object.defineProperty(exports, "walletTokensPlatform", { enumerable: true, get: function () { return constants_1.walletTokensPlatform; } });
|
166
167
|
Object.defineProperty(exports, "walletNftsPlatform", { enumerable: true, get: function () { return constants_1.walletNftsPlatform; } });
|
@@ -315,6 +316,7 @@ exports.platforms = [
|
|
315
316
|
...pudgypenguins_1.platforms,
|
316
317
|
...gpool_1.platforms,
|
317
318
|
...defiland_1.platforms,
|
319
|
+
...perena_1.platforms,
|
318
320
|
];
|
319
321
|
// JOBS //
|
320
322
|
exports.jobs = [
|
@@ -453,6 +455,7 @@ exports.jobs = [
|
|
453
455
|
...pudgypenguins_1.jobs,
|
454
456
|
...gpool_1.jobs,
|
455
457
|
...defiland_1.jobs,
|
458
|
+
...perena_1.jobs,
|
456
459
|
];
|
457
460
|
// FETCHERS //
|
458
461
|
exports.fetchers = [
|
@@ -592,6 +595,7 @@ exports.fetchers = [
|
|
592
595
|
...pudgypenguins_1.fetchers,
|
593
596
|
...gpool_1.fetchers,
|
594
597
|
...defiland_1.fetchers,
|
598
|
+
...perena_1.fetchers,
|
595
599
|
];
|
596
600
|
exports.fetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.fetchers);
|
597
601
|
exports.airdropFetchers = [
|
@@ -610,6 +614,7 @@ exports.airdropFetchers = [
|
|
610
614
|
magiceden_1.airdropFetcher,
|
611
615
|
// pudgypenguinsAirdropFetcher,
|
612
616
|
zeta_1.airdropFetcher,
|
617
|
+
...tensor_1.tensorAirdropFetchers,
|
613
618
|
];
|
614
619
|
exports.airdropFetchersByAddressSystem = (0, getFetchersByAddressSystem_1.getFetchersByAddressSystem)(exports.airdropFetchers);
|
615
620
|
//# 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,
|
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,6CAI0B;AAC1B,6CAI0B;AAC1B,yCAIwB;A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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;IACtB,GAAG,wBAAqB;IACxB,GAAG,gBAAa;IAChB,GAAG,mBAAgB;IACnB,GAAG,iBAAc;CAClB,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;IACvB,+BAA+B;IAC/B,qBAAkB;IAClB,GAAG,8BAAqB;CACzB,CAAC;AACW,QAAA,8BAA8B,GACzC,IAAA,uDAA0B,EAAC,uBAAe,CAAC,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
2
|
+
import { PublicKey } from '@solana/web3.js';
|
3
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
4
|
+
export declare const platformId = "perena";
|
5
|
+
export declare const platform: Platform;
|
6
|
+
export declare const pid: PublicKey;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.pid = exports.platform = exports.platformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.platformId = 'perena';
|
6
|
+
exports.platform = {
|
7
|
+
id: exports.platformId,
|
8
|
+
name: 'Perena',
|
9
|
+
image: 'https://sonar.watch/img/platforms/perena.webp',
|
10
|
+
website: 'https://perena.org/numeraire',
|
11
|
+
twitter: 'https://x.com/Perena__',
|
12
|
+
};
|
13
|
+
exports.pid = new web3_js_1.PublicKey('NUMERUNsFCP3kuNmWZuXtm1AaQCPj9uw6Guv2Ekoi5P');
|
14
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/perena/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,wBAAwB;CAClC,CAAC;AAEW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC"}
|
@@ -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 poolsJob_1 = __importDefault(require("./poolsJob"));
|
9
|
+
exports.platforms = [constants_1.platform];
|
10
|
+
exports.jobs = [poolsJob_1.default];
|
11
|
+
exports.fetchers = [];
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/perena/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,0DAAoC;AAEvB,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,CAAC,kBAAU,CAAC,CAAC;AAC3B,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -0,0 +1,69 @@
|
|
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
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
13
|
+
const constants_1 = require("./constants");
|
14
|
+
const clients_1 = require("../../utils/clients");
|
15
|
+
const solana_1 = require("../../utils/solana");
|
16
|
+
const structs_1 = require("./structs");
|
17
|
+
const getLpTokenSourceRaw_1 = require("../../utils/misc/getLpTokenSourceRaw");
|
18
|
+
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
19
|
+
const client = (0, clients_1.getClientSolana)();
|
20
|
+
const lpAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.liquidityStruct, constants_1.pid, [{ dataSize: structs_1.liquidityStruct.byteSize }]);
|
21
|
+
if (!lpAccounts)
|
22
|
+
return;
|
23
|
+
const [lpMintAccounts, tokenPriceById] = yield Promise.all([
|
24
|
+
(0, solana_1.getParsedMultipleAccountsInfo)(client, solana_1.mintAccountStruct, lpAccounts.map((lp) => lp.lp_mint)),
|
25
|
+
cache.getTokenPricesAsMap(lpAccounts.map((acc) => acc.pairs.map((p) => p.x_mint.toString())).flat(), portfolio_core_1.NetworkId.solana),
|
26
|
+
]);
|
27
|
+
const sources = [];
|
28
|
+
for (let n = 0; n < lpAccounts.length; n += 1) {
|
29
|
+
const lpAccount = lpAccounts[n];
|
30
|
+
const lpMintAccount = lpMintAccounts[n];
|
31
|
+
if (!lpMintAccount)
|
32
|
+
continue;
|
33
|
+
const underlyings = lpAccount.pairs
|
34
|
+
.map((pair, index) => {
|
35
|
+
if (pair.pair_authority.toString() === portfolio_core_1.solanaNativeAddress)
|
36
|
+
return [];
|
37
|
+
const tokenPrice = tokenPriceById.get(pair.x_mint.toString());
|
38
|
+
return {
|
39
|
+
address: pair.x_mint.toString(),
|
40
|
+
reserveAmountRaw: pair.x_reserve_amount,
|
41
|
+
weight: lpAccount.weights[index] / 10000,
|
42
|
+
decimals: pair.decimals,
|
43
|
+
tokenPrice,
|
44
|
+
};
|
45
|
+
})
|
46
|
+
.flat();
|
47
|
+
const lpSources = (0, getLpTokenSourceRaw_1.getLpTokenSourceRaw)({
|
48
|
+
lpDetails: {
|
49
|
+
address: lpAccount.lp_mint.toString(),
|
50
|
+
decimals: lpAccount.decimals,
|
51
|
+
supplyRaw: lpMintAccount.supply,
|
52
|
+
},
|
53
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
54
|
+
platformId: constants_1.platformId,
|
55
|
+
poolUnderlyingsRaw: underlyings,
|
56
|
+
sourceId: lpAccount.pubkey.toString(),
|
57
|
+
priceUnderlyings: true,
|
58
|
+
});
|
59
|
+
sources.push(...lpSources);
|
60
|
+
}
|
61
|
+
yield cache.setTokenPriceSources(sources);
|
62
|
+
});
|
63
|
+
const job = {
|
64
|
+
id: `${constants_1.platformId}-pools`,
|
65
|
+
executor,
|
66
|
+
label: 'normal',
|
67
|
+
};
|
68
|
+
exports.default = job;
|
69
|
+
//# sourceMappingURL=poolsJob.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/perena/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAIoC;AAGpC,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solana/web3.js" />
|
3
|
+
import { BeetStruct } from '@metaplex-foundation/beet';
|
4
|
+
import { PublicKey } from '@solana/web3.js';
|
5
|
+
import BigNumber from 'bignumber.js';
|
6
|
+
export type VirtualStablePair = {
|
7
|
+
pair_authority: PublicKey;
|
8
|
+
x_reserve_amount: BigNumber;
|
9
|
+
y_reserve: BigNumber;
|
10
|
+
curve_Amp: BigNumber;
|
11
|
+
curve_a: BigNumber;
|
12
|
+
curve_b: BigNumber;
|
13
|
+
inv_L: BigNumber;
|
14
|
+
owner: PublicKey;
|
15
|
+
x_mint: PublicKey;
|
16
|
+
x_vault: PublicKey;
|
17
|
+
curve_alpha: BigNumber;
|
18
|
+
curve_beta: BigNumber;
|
19
|
+
newest_rate_num: number;
|
20
|
+
newest_rate_denom: number;
|
21
|
+
decimals: number;
|
22
|
+
pair_index: number;
|
23
|
+
x_is_2022: number;
|
24
|
+
_padding: number[];
|
25
|
+
padding: number[];
|
26
|
+
};
|
27
|
+
export declare const virtualStablePairStruct: BeetStruct<VirtualStablePair, Partial<VirtualStablePair>>;
|
28
|
+
export type Liquidity = {
|
29
|
+
buffer: Buffer;
|
30
|
+
pool_seed: PublicKey;
|
31
|
+
lp_mint: PublicKey;
|
32
|
+
whitelisted_adder: PublicKey;
|
33
|
+
owner: PublicKey;
|
34
|
+
inv_T: BigNumber;
|
35
|
+
inv_T_max: BigNumber;
|
36
|
+
pairs: VirtualStablePair[];
|
37
|
+
weights: number[];
|
38
|
+
total_weight: BigNumber;
|
39
|
+
status: number;
|
40
|
+
fee_num: number;
|
41
|
+
fee_denom: number;
|
42
|
+
decimals: number;
|
43
|
+
num_stables: number;
|
44
|
+
_padding: number[];
|
45
|
+
padding: number[];
|
46
|
+
};
|
47
|
+
export declare const liquidityStruct: BeetStruct<Liquidity, Partial<Liquidity>>;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.liquidityStruct = exports.virtualStablePairStruct = void 0;
|
4
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
|
+
const solana_1 = require("../../utils/solana");
|
7
|
+
exports.virtualStablePairStruct = new beet_1.BeetStruct([
|
8
|
+
['pair_authority', beet_solana_1.publicKey],
|
9
|
+
['x_reserve_amount', solana_1.u64],
|
10
|
+
['y_reserve', solana_1.u64],
|
11
|
+
['curve_Amp', solana_1.u128],
|
12
|
+
['curve_a', solana_1.u128],
|
13
|
+
['curve_b', solana_1.u128],
|
14
|
+
['inv_L', solana_1.u128],
|
15
|
+
['owner', beet_solana_1.publicKey],
|
16
|
+
['x_mint', beet_solana_1.publicKey],
|
17
|
+
['x_vault', beet_solana_1.publicKey],
|
18
|
+
['curve_alpha', solana_1.u64],
|
19
|
+
['curve_beta', solana_1.u64],
|
20
|
+
['newest_rate_num', beet_1.u32],
|
21
|
+
['newest_rate_denom', beet_1.u32],
|
22
|
+
['decimals', beet_1.u8],
|
23
|
+
['pair_index', beet_1.u8],
|
24
|
+
['x_is_2022', beet_1.u8],
|
25
|
+
['_padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 5)],
|
26
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
|
27
|
+
], (args) => args);
|
28
|
+
exports.liquidityStruct = new beet_1.BeetStruct([
|
29
|
+
['buffer', (0, solana_1.blob)(8)],
|
30
|
+
['pool_seed', beet_solana_1.publicKey],
|
31
|
+
['lp_mint', beet_solana_1.publicKey],
|
32
|
+
['whitelisted_adder', beet_solana_1.publicKey],
|
33
|
+
['owner', beet_solana_1.publicKey],
|
34
|
+
['inv_T', solana_1.u64],
|
35
|
+
['inv_T_max', solana_1.u64],
|
36
|
+
['pairs', (0, beet_1.uniformFixedSizeArray)(exports.virtualStablePairStruct, 10)],
|
37
|
+
['weights', (0, beet_1.uniformFixedSizeArray)(beet_1.u32, 10)],
|
38
|
+
['total_weight', solana_1.u64],
|
39
|
+
['status', beet_1.u32],
|
40
|
+
['fee_num', beet_1.u32],
|
41
|
+
['fee_denom', beet_1.u32],
|
42
|
+
['decimals', beet_1.u8],
|
43
|
+
['num_stables', beet_1.u8],
|
44
|
+
['_padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 2)],
|
45
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 128)],
|
46
|
+
], (args) => args);
|
47
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/perena/structs.ts"],"names":[],"mappings":";;;AAAA,oDAKmC;AACnC,kEAA6D;AAG7D,+CAAqD;AAwBxC,QAAA,uBAAuB,GAAG,IAAI,iBAAU,CACnD;IACE,CAAC,gBAAgB,EAAE,uBAAS,CAAC;IAC7B,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,WAAW,EAAE,aAAI,CAAC;IACnB,CAAC,SAAS,EAAE,aAAI,CAAC;IACjB,CAAC,SAAS,EAAE,aAAI,CAAC;IACjB,CAAC,OAAO,EAAE,aAAI,CAAC;IACf,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,SAAS,EAAE,uBAAS,CAAC;IACtB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,mBAAmB,EAAE,UAAG,CAAC;IAC1B,CAAC,UAAU,EAAE,SAAE,CAAC;IAChB,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,WAAW,EAAE,SAAE,CAAC;IACjB,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,GAAG,CAAC,CAAC;CAC5C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAyB,CACpC,CAAC;AAsBW,QAAA,eAAe,GAAG,IAAI,iBAAU,CAC3C;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,SAAS,EAAE,uBAAS,CAAC;IACtB,CAAC,mBAAmB,EAAE,uBAAS,CAAC;IAChC,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,OAAO,EAAE,YAAG,CAAC;IACd,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,OAAO,EAAE,IAAA,4BAAqB,EAAC,+BAAuB,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,UAAG,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,QAAQ,EAAE,UAAG,CAAC;IACf,CAAC,SAAS,EAAE,UAAG,CAAC;IAChB,CAAC,WAAW,EAAE,UAAG,CAAC;IAClB,CAAC,UAAU,EAAE,SAAE,CAAC;IAChB,CAAC,aAAa,EAAE,SAAE,CAAC;IACnB,CAAC,UAAU,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,GAAG,CAAC,CAAC;CAC5C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/perena/types.ts"],"names":[],"mappings":""}
|
@@ -1,8 +1,11 @@
|
|
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 = "tensor";
|
5
6
|
export declare const platform: Platform;
|
6
7
|
export declare const tensorPid: PublicKey;
|
7
8
|
export declare const tnsrMint = "TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6";
|
8
9
|
export declare const magmaProgramId = "3zK38YBP6u3BpLUpaa6QhRHh4VXdv3J8cmD24fFpuyqy";
|
10
|
+
export declare const s4Statics: AirdropStatics;
|
11
|
+
export declare const powerUsersStatics: AirdropStatics;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.magmaProgramId = exports.tnsrMint = exports.tensorPid = exports.platform = exports.platformId = void 0;
|
3
|
+
exports.powerUsersStatics = exports.s4Statics = exports.magmaProgramId = exports.tnsrMint = exports.tensorPid = exports.platform = exports.platformId = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
exports.platformId = 'tensor';
|
6
6
|
exports.platform = {
|
@@ -13,4 +13,22 @@ exports.platform = {
|
|
13
13
|
exports.tensorPid = new web3_js_1.PublicKey('TSWAPaqyCSx2KABk68Shruf4rp7CxcNi8hAsbdwmHbN');
|
14
14
|
exports.tnsrMint = 'TNSRxcUxoT9xBG3de7PiJyTDYu7kskLqcpddxnEJAS6';
|
15
15
|
exports.magmaProgramId = '3zK38YBP6u3BpLUpaa6QhRHh4VXdv3J8cmD24fFpuyqy';
|
16
|
+
exports.s4Statics = {
|
17
|
+
claimStart: 1738281600000,
|
18
|
+
claimEnd: undefined,
|
19
|
+
id: 'tensor-s4',
|
20
|
+
emitterName: 'Tensor',
|
21
|
+
emitterLink: 'https://www.tensor.trade/',
|
22
|
+
claimLink: 'https://tensor.foundation/season4',
|
23
|
+
image: 'https://sonar.watch/img/platforms/tensor.webp',
|
24
|
+
};
|
25
|
+
exports.powerUsersStatics = {
|
26
|
+
claimStart: 1730851200000,
|
27
|
+
claimEnd: 1746489600000,
|
28
|
+
id: 'tensor-power-user',
|
29
|
+
emitterName: 'Tensor',
|
30
|
+
emitterLink: 'https://www.tensor.trade/',
|
31
|
+
claimLink: 'https://www.tensor.foundation/powerusers',
|
32
|
+
image: 'https://sonar.watch/img/platforms/tensor.webp',
|
33
|
+
};
|
16
34
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAI/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,+CAA+C;IACtD,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,2BAA2B;CACrC,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AAEzD,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAEhE,QAAA,SAAS,GAAmB;IACvC,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,SAAS;IACnB,EAAE,EAAE,WAAW;IACf,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,mCAAmC;IAC9C,KAAK,EAAE,+CAA+C;CACvD,CAAC;AAEW,QAAA,iBAAiB,GAAmB;IAC/C,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;IACvB,EAAE,EAAE,mBAAmB;IACvB,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,2BAA2B;IACxC,SAAS,EAAE,0CAA0C;IACrD,KAAK,EAAE,+CAA+C;CACvD,CAAC"}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { Fetcher } from '../../Fetcher';
|
3
|
+
import { AirdropFetcher } from '../../AirdropFetcher';
|
3
4
|
export declare const platforms: Platform[];
|
4
5
|
export declare const fetchers: Fetcher[];
|
6
|
+
export declare const tensorAirdropFetchers: AirdropFetcher[];
|
@@ -3,15 +3,22 @@ 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.platforms = void 0;
|
6
|
+
exports.tensorAirdropFetchers = exports.fetchers = exports.platforms = void 0;
|
7
7
|
const constants_1 = require("./constants");
|
8
8
|
const bidsFetcher_1 = __importDefault(require("./bidsFetcher"));
|
9
|
-
|
9
|
+
// import powerUserAirdropFetcher from './airdropPowerUsersFetcher';
|
10
10
|
const sharedEscrowFetcher_1 = __importDefault(require("./sharedEscrowFetcher"));
|
11
|
+
const powerUserAirdropFetcher_1 = require("./powerUserAirdropFetcher");
|
12
|
+
const season4AirdropFetcher_1 = require("./season4AirdropFetcher");
|
11
13
|
exports.platforms = [constants_1.platform];
|
12
14
|
exports.fetchers = [
|
13
15
|
bidsFetcher_1.default,
|
14
|
-
|
16
|
+
powerUserAirdropFetcher_1.powerUserFetcher,
|
17
|
+
season4AirdropFetcher_1.s4Fetcher,
|
15
18
|
sharedEscrowFetcher_1.default,
|
16
19
|
];
|
20
|
+
exports.tensorAirdropFetchers = [
|
21
|
+
powerUserAirdropFetcher_1.powerUserAirdropFetcher,
|
22
|
+
season4AirdropFetcher_1.airdropS4Fetcher,
|
23
|
+
];
|
17
24
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/index.ts"],"names":[],"mappings":";;;;;;AAIA,2CAAuC;AACvC,gEAAwC;AACxC,oEAAoE;AACpE,gFAAwD;AACxD,uEAGmC;AACnC,mEAAsE;AAGzD,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,QAAQ,GAAc;IACjC,qBAAW;IACX,0CAAgB;IAChB,iCAAS;IACT,6BAAmB;CACpB,CAAC;AAEW,QAAA,qBAAqB,GAAqB;IACrD,iDAAuB;IACvB,wCAAgB;CACjB,CAAC"}
|
@@ -0,0 +1,98 @@
|
|
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.powerUserFetcher = exports.powerUserAirdropFetcher = void 0;
|
16
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
17
|
+
const web3_js_1 = require("@solana/web3.js");
|
18
|
+
const constants_1 = require("./constants");
|
19
|
+
const clients_1 = require("../../utils/clients");
|
20
|
+
const solana_1 = require("../../utils/solana");
|
21
|
+
const struct_1 = require("./struct");
|
22
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
23
|
+
const filters_1 = require("./filters");
|
24
|
+
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
25
|
+
const powerUsers_json_1 = __importDefault(require("./powerUsers.json"));
|
26
|
+
const powerUserAllocations = powerUsers_json_1.default;
|
27
|
+
const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
28
|
+
const alloc = powerUserAllocations[owner];
|
29
|
+
if (!alloc)
|
30
|
+
return (0, AirdropFetcher_1.getAirdropRaw)({
|
31
|
+
statics: constants_1.powerUsersStatics,
|
32
|
+
items: [
|
33
|
+
{
|
34
|
+
amount: 0,
|
35
|
+
isClaimed: false,
|
36
|
+
label: 'TNSR',
|
37
|
+
address: constants_1.tnsrMint,
|
38
|
+
},
|
39
|
+
],
|
40
|
+
});
|
41
|
+
const connection = (0, clients_1.getClientSolana)();
|
42
|
+
const accounts = yield (0, solana_1.getParsedProgramAccounts)(connection, struct_1.vestingAccountStruct, new web3_js_1.PublicKey(constants_1.magmaProgramId), (0, filters_1.vestingFilter)(owner), 1);
|
43
|
+
if (!accounts.length)
|
44
|
+
return (0, AirdropFetcher_1.getAirdropRaw)({
|
45
|
+
statics: constants_1.powerUsersStatics,
|
46
|
+
items: [
|
47
|
+
{
|
48
|
+
amount: 0,
|
49
|
+
isClaimed: false,
|
50
|
+
label: 'TNSR',
|
51
|
+
address: constants_1.tnsrMint,
|
52
|
+
},
|
53
|
+
],
|
54
|
+
});
|
55
|
+
const tokenAccounts = yield connection.getParsedTokenAccountsByOwner(accounts[0].pubkey, { mint: new web3_js_1.PublicKey(constants_1.tnsrMint) });
|
56
|
+
if (!tokenAccounts.value[0])
|
57
|
+
return (0, AirdropFetcher_1.getAirdropRaw)({
|
58
|
+
statics: constants_1.powerUsersStatics,
|
59
|
+
items: [
|
60
|
+
{
|
61
|
+
amount: 0,
|
62
|
+
isClaimed: false,
|
63
|
+
label: 'TNSR',
|
64
|
+
address: constants_1.tnsrMint,
|
65
|
+
},
|
66
|
+
],
|
67
|
+
});
|
68
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
69
|
+
const element = elementRegistry.addElementMultiple({
|
70
|
+
label: 'Airdrop',
|
71
|
+
name: 'Power User',
|
72
|
+
});
|
73
|
+
element.addAsset({
|
74
|
+
address: tokenAccounts.value[0].account.data.parsed.info.mint,
|
75
|
+
amount: tokenAccounts.value[0].account.data.parsed.info.tokenAmount.uiAmount,
|
76
|
+
alreadyShifted: true,
|
77
|
+
});
|
78
|
+
const isClaimedFully = alloc ===
|
79
|
+
tokenAccounts.value[0].account.data.parsed.info.tokenAmount.uiAmount;
|
80
|
+
return (0, AirdropFetcher_1.getAirdropRaw)({
|
81
|
+
statics: constants_1.powerUsersStatics,
|
82
|
+
items: [
|
83
|
+
{
|
84
|
+
amount: alloc,
|
85
|
+
isClaimed: isClaimedFully,
|
86
|
+
label: 'TNSR',
|
87
|
+
address: constants_1.tnsrMint,
|
88
|
+
},
|
89
|
+
],
|
90
|
+
});
|
91
|
+
});
|
92
|
+
exports.powerUserAirdropFetcher = {
|
93
|
+
id: constants_1.powerUsersStatics.id,
|
94
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
95
|
+
executor,
|
96
|
+
};
|
97
|
+
exports.powerUserFetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.powerUserAirdropFetcher, constants_1.platform.id, 'tensor-s4', constants_1.powerUsersStatics.claimEnd);
|
98
|
+
//# sourceMappingURL=powerUserAirdropFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"powerUserAirdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/powerUserAirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAA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C;AAEW,QAAA,gBAAgB,GAAG,IAAA,wCAAuB,EACrD,+BAAuB,EACvB,oBAAQ,CAAC,EAAE,EACX,WAAW,EACX,6BAAiB,CAAC,QAAQ,CAC3B,CAAC"}
|
@@ -0,0 +1,44 @@
|
|
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.s4Fetcher = exports.airdropS4Fetcher = void 0;
|
13
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
14
|
+
const constants_1 = require("./constants");
|
15
|
+
const season4Alloc_1 = require("./season4Alloc");
|
16
|
+
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
17
|
+
const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
18
|
+
const baseAlloc = season4Alloc_1.season4Allocations[owner];
|
19
|
+
const vectorAlloc = season4Alloc_1.vectorBonusAllocations[owner];
|
20
|
+
return (0, AirdropFetcher_1.getAirdropRaw)({
|
21
|
+
statics: constants_1.s4Statics,
|
22
|
+
items: [
|
23
|
+
{
|
24
|
+
amount: baseAlloc !== null && baseAlloc !== void 0 ? baseAlloc : 0,
|
25
|
+
isClaimed: false,
|
26
|
+
label: 'TNSR',
|
27
|
+
address: constants_1.tnsrMint,
|
28
|
+
},
|
29
|
+
{
|
30
|
+
amount: vectorAlloc !== null && vectorAlloc !== void 0 ? vectorAlloc : 0,
|
31
|
+
isClaimed: false,
|
32
|
+
label: 'TNSR',
|
33
|
+
address: constants_1.tnsrMint,
|
34
|
+
},
|
35
|
+
],
|
36
|
+
});
|
37
|
+
});
|
38
|
+
exports.airdropS4Fetcher = {
|
39
|
+
id: constants_1.s4Statics.id,
|
40
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
41
|
+
executor,
|
42
|
+
};
|
43
|
+
exports.s4Fetcher = (0, AirdropFetcher_1.airdropFetcherToFetcher)(exports.airdropS4Fetcher, constants_1.platform.id, 'tensor-s4', constants_1.s4Statics.claimEnd);
|
44
|
+
//# sourceMappingURL=season4AirdropFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"season4AirdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/season4AirdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAuD;AACvD,2CAA4D;AAC5D,iDAA4E;AAC5E,yDAK8B;AAE9B,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,SAAS,GAAG,iCAAkB,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,qCAAsB,CAAC,KAAK,CAAC,CAAC;IAElD,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,qBAAS;QAClB,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,CAAC;gBACtB,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,oBAAQ;aAClB;YACD;gBACE,MAAM,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,CAAC;gBACxB,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE,oBAAQ;aAClB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,gBAAgB,GAAmB;IAC9C,EAAE,EAAE,qBAAS,CAAC,EAAE;IAChB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,wCAAuB,EAC9C,wBAAgB,EAChB,oBAAQ,CAAC,EAAE,EACX,WAAW,EACX,qBAAS,CAAC,QAAQ,CACnB,CAAC"}
|