@sonarwatch/portfolio-plugins 0.14.132 → 0.14.134
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 +8 -0
- package/package.json +1 -1
- package/src/plugins/citrus/loansFetcher.js +34 -68
- package/src/plugins/citrus/loansFetcher.js.map +1 -1
- package/src/plugins/debridge/dlmmVaultsFetcher.js +1 -0
- package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -0
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +3 -0
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/perpetualFetcher.js +1 -0
- package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js +2 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
- package/src/plugins/rain/banksFetcher.js +47 -0
- package/src/plugins/rain/banksFetcher.js.map +1 -0
- package/src/plugins/rain/collectionsJob.js +9 -7
- package/src/plugins/rain/collectionsJob.js.map +1 -1
- package/src/plugins/rain/constants.d.ts +7 -2
- package/src/plugins/rain/constants.js +11 -3
- package/src/plugins/rain/constants.js.map +1 -1
- package/src/plugins/rain/defiBorrowsFetcher.d.ts +3 -0
- package/src/plugins/rain/defiBorrowsFetcher.js +52 -0
- package/src/plugins/rain/defiBorrowsFetcher.js.map +1 -0
- package/src/plugins/rain/index.js +10 -3
- package/src/plugins/rain/index.js.map +1 -1
- package/src/plugins/rain/nftBorrowsFetcher.d.ts +3 -0
- package/src/plugins/rain/nftBorrowsFetcher.js +76 -0
- package/src/plugins/rain/nftBorrowsFetcher.js.map +1 -0
- package/src/plugins/rain/poolsFetcher.js +79 -42
- package/src/plugins/rain/poolsFetcher.js.map +1 -1
- package/src/plugins/rain/structs.d.ts +455 -0
- package/src/plugins/rain/structs.js +425 -0
- package/src/plugins/rain/structs.js.map +1 -0
- package/src/plugins/rain/types.d.ts +18 -144
- package/src/plugins/sharky/loansFetcher.js +38 -73
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/utils/elementbuilder/AssetCollectibleBuilder.d.ts +10 -0
- package/src/utils/elementbuilder/AssetCollectibleBuilder.js +53 -0
- package/src/utils/elementbuilder/AssetCollectibleBuilder.js.map +1 -0
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.d.ts +9 -1
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js +41 -3
- package/src/utils/elementbuilder/ElementBorrowlendBuilder.js.map +1 -1
- package/src/utils/elementbuilder/ElementRegistry.js +9 -1
- package/src/utils/elementbuilder/ElementRegistry.js.map +1 -1
- package/src/utils/elementbuilder/Params.d.ts +15 -0
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js +3 -2
- package/src/utils/solana/das/heliusAssetToAssetCollectible.js.map +1 -1
- package/src/plugins/rain/filters.d.ts +0 -7
- package/src/plugins/rain/filters.js +0 -53
- package/src/plugins/rain/filters.js.map +0 -1
- package/src/plugins/rain/helpers.d.ts +0 -9
- package/src/plugins/rain/helpers.js +0 -66
- package/src/plugins/rain/helpers.js.map +0 -1
- package/src/plugins/rain/loansFetcher.js +0 -139
- package/src/plugins/rain/loansFetcher.js.map +0 -1
- package/src/plugins/rain/structs/loan.d.ts +0 -86
- package/src/plugins/rain/structs/loan.js +0 -86
- package/src/plugins/rain/structs/loan.js.map +0 -1
- package/src/plugins/rain/structs/pool.d.ts +0 -79
- package/src/plugins/rain/structs/pool.js +0 -76
- package/src/plugins/rain/structs/pool.js.map +0 -1
- /package/src/plugins/rain/{loansFetcher.d.ts → banksFetcher.d.ts} +0 -0
@@ -0,0 +1,76 @@
|
|
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 web3_js_1 = require("@solana/web3.js");
|
17
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
18
|
+
const constants_1 = require("./constants");
|
19
|
+
const clients_1 = require("../../utils/clients");
|
20
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
21
|
+
const ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
|
22
|
+
const structs_1 = require("./structs");
|
23
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
+
const client = (0, clients_1.getClientSolana)();
|
25
|
+
const loans = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.nftLoanStruct, constants_1.nftLendingProgramId)
|
26
|
+
.addFilter('accountDiscriminator', [20, 195, 70, 117, 165, 227, 182, 1])
|
27
|
+
.addFilter('borrower', new web3_js_1.PublicKey(owner))
|
28
|
+
.run();
|
29
|
+
if (!loans.length)
|
30
|
+
return [];
|
31
|
+
const [collections, solTokenPrice] = yield Promise.all([
|
32
|
+
constants_1.collectionsMemo.getItem(cache),
|
33
|
+
cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana),
|
34
|
+
]);
|
35
|
+
if (!collections.length)
|
36
|
+
throw new Error('Collections not cached');
|
37
|
+
if (!solTokenPrice)
|
38
|
+
throw new Error('Sol price not cached');
|
39
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
40
|
+
loans.forEach((loan) => {
|
41
|
+
if (loan.status !== structs_1.LoanStatus.Ongoing)
|
42
|
+
return;
|
43
|
+
const collection = collections.find((c) => c.collectionId === loan.collection);
|
44
|
+
if (!collection)
|
45
|
+
return;
|
46
|
+
const element = elementRegistry.addElementBorrowlend({
|
47
|
+
label: 'Lending',
|
48
|
+
ref: loan.pubkey,
|
49
|
+
link: `https://app.rain.fi/dashboard/loans?address=${loan.pubkey}`,
|
50
|
+
});
|
51
|
+
element.setFixedTerms(false, loan.expiredAt.multipliedBy(1000));
|
52
|
+
element.addSuppliedCollectibleAsset({
|
53
|
+
address: loan.collateral.toString(),
|
54
|
+
collection: {
|
55
|
+
name: collection.name,
|
56
|
+
floorPrice: new bignumber_js_1.default(collection.floorPrice)
|
57
|
+
.shiftedBy(-solTokenPrice.decimals)
|
58
|
+
.multipliedBy(solTokenPrice.price),
|
59
|
+
imageUri: collection.metadata.thumbnail,
|
60
|
+
},
|
61
|
+
attributes: { tags: [portfolio_core_1.collectibleFreezedTag] },
|
62
|
+
});
|
63
|
+
element.addBorrowedAsset({
|
64
|
+
address: loan.principal,
|
65
|
+
amount: loan.borrowedAmount,
|
66
|
+
});
|
67
|
+
});
|
68
|
+
return elementRegistry.getElements(cache);
|
69
|
+
});
|
70
|
+
const fetcher = {
|
71
|
+
id: `${constants_1.platformId}-nft-borrows`,
|
72
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
73
|
+
executor,
|
74
|
+
};
|
75
|
+
exports.default = fetcher;
|
76
|
+
//# sourceMappingURL=nftBorrowsFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nftBorrowsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rain/nft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AM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -13,54 +13,91 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const web3_js_1 = require("@solana/web3.js");
|
17
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
16
18
|
const constants_1 = require("./constants");
|
17
19
|
const clients_1 = require("../../utils/clients");
|
18
|
-
const
|
19
|
-
const
|
20
|
-
const
|
21
|
-
const getParsedAccountInfo_1 = require("../../utils/solana/getParsedAccountInfo");
|
20
|
+
const ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
|
21
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
22
|
+
const structs_1 = require("./structs");
|
22
23
|
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
24
|
const client = (0, clients_1.getClientSolana)();
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
const pools = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.poolStruct, constants_1.defiLendingProgramId)
|
26
|
+
.addFilter('accountDiscriminator', [241, 154, 109, 4, 17, 177, 109, 188])
|
27
|
+
.addFilter('owner', new web3_js_1.PublicKey(owner))
|
28
|
+
.run();
|
29
|
+
if (!pools.length)
|
27
30
|
return [];
|
28
|
-
const
|
29
|
-
|
31
|
+
const allDefiLoans = yield Promise.all(pools.map((pool) => ParsedGpa_1.ParsedGpa.build(client, structs_1.defiLoanStruct, constants_1.defiLendingProgramId)
|
32
|
+
.addFilter('accountDiscriminator', [20, 195, 70, 117, 165, 227, 182, 1])
|
33
|
+
.addFilter('pool', pool.pubkey)
|
34
|
+
.run()));
|
35
|
+
const allNftsLoans = yield Promise.all(pools.map((pool) => ParsedGpa_1.ParsedGpa.build(client, structs_1.nftLoanStruct, constants_1.nftLendingProgramId)
|
36
|
+
.addFilter('accountDiscriminator', [20, 195, 70, 117, 165, 227, 182, 1])
|
37
|
+
.addFilter('pool', pool.pubkey)
|
38
|
+
.run()));
|
39
|
+
if (allDefiLoans.flat().length === 0 && allNftsLoans.flat().length === 0)
|
30
40
|
return [];
|
31
|
-
const
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
41
|
+
const [collections, solTokenPrice] = yield Promise.all([
|
42
|
+
constants_1.collectionsMemo.getItem(cache),
|
43
|
+
cache.getTokenPrice(portfolio_core_1.solanaNativeAddress, portfolio_core_1.NetworkId.solana),
|
44
|
+
]);
|
45
|
+
if (!collections.length)
|
46
|
+
throw new Error('Collections not cached');
|
47
|
+
if (!solTokenPrice)
|
48
|
+
throw new Error('Sol price not cached');
|
49
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
50
|
+
pools.forEach((pool, i) => {
|
51
|
+
const defiLoans = allDefiLoans[i];
|
52
|
+
const nftLoans = allNftsLoans[i];
|
53
|
+
defiLoans.forEach((loan) => {
|
54
|
+
if (loan.status !== structs_1.LoanStatus.Ongoing)
|
55
|
+
return;
|
56
|
+
const element = elementRegistry.addElementBorrowlend({
|
57
|
+
label: 'Lending',
|
58
|
+
ref: loan.pubkey,
|
59
|
+
link: `https://app.rain.fi/dashboard/loans?address=${loan.pubkey}`,
|
60
|
+
});
|
61
|
+
element.setFixedTerms(true, loan.expiredAt.multipliedBy(1000));
|
62
|
+
element.addSuppliedAsset({
|
63
|
+
address: loan.principal,
|
64
|
+
amount: loan.borrowedAmount,
|
65
|
+
});
|
66
|
+
element.addBorrowedAsset({
|
67
|
+
address: loan.collateral,
|
68
|
+
amount: loan.collateralAmount,
|
69
|
+
});
|
70
|
+
});
|
71
|
+
nftLoans.forEach((loan) => {
|
72
|
+
if (loan.status !== structs_1.LoanStatus.Ongoing)
|
73
|
+
return;
|
74
|
+
const collection = collections.find((c) => c.collectionId === loan.collection);
|
75
|
+
if (!collection)
|
76
|
+
return;
|
77
|
+
const element = elementRegistry.addElementBorrowlend({
|
78
|
+
label: 'Lending',
|
79
|
+
ref: loan.pubkey,
|
80
|
+
link: `https://app.rain.fi/dashboard/loans?address=${loan.pubkey}`,
|
81
|
+
});
|
82
|
+
element.setFixedTerms(false, loan.expiredAt.multipliedBy(1000));
|
83
|
+
element.addBorrowedCollectibleAsset({
|
84
|
+
address: loan.collateral.toString(),
|
85
|
+
collection: {
|
86
|
+
name: collection.name,
|
87
|
+
floorPrice: new bignumber_js_1.default(collection.floorPrice)
|
88
|
+
.shiftedBy(-solTokenPrice.decimals)
|
89
|
+
.multipliedBy(solTokenPrice.price),
|
90
|
+
imageUri: collection.metadata.thumbnail,
|
91
|
+
},
|
92
|
+
attributes: { tags: [portfolio_core_1.collectibleFreezedTag] },
|
93
|
+
});
|
94
|
+
element.addSuppliedAsset({
|
95
|
+
address: loan.principal,
|
96
|
+
amount: loan.borrowedAmount,
|
97
|
+
});
|
98
|
+
});
|
99
|
+
});
|
100
|
+
return elementRegistry.getElements(cache);
|
64
101
|
});
|
65
102
|
const fetcher = {
|
66
103
|
id: `${constants_1.platformId}-pools`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poolsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rain/poolsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"poolsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/rain/poolsFetcher.ts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