@sonarwatch/portfolio-plugins 0.14.127 → 0.14.129
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 +2124 -2110
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +8 -1
- package/src/index.js.map +1 -1
- package/src/plugins/adrena/positionsFetcher.js +1 -0
- package/src/plugins/adrena/positionsFetcher.js.map +1 -1
- package/src/plugins/allbridge/positionsFetcher.js +9 -1
- package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
- package/src/plugins/armada-staking/stakingFetcher.js +4 -1
- package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
- package/src/plugins/aurory/stakingFetcher.js +5 -1
- package/src/plugins/aurory/stakingFetcher.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/bonfida/offersFetcher.js +30 -37
- package/src/plugins/bonfida/offersFetcher.js.map +1 -1
- package/src/plugins/bonkrewards/positionFetcher.js +16 -22
- package/src/plugins/bonkrewards/positionFetcher.js.map +1 -1
- package/src/plugins/cyberfrogs/thorDepositFetcher.js +2 -0
- package/src/plugins/cyberfrogs/thorDepositFetcher.js.map +1 -1
- package/src/plugins/daos/realmsDepositsFetcher.js +29 -43
- package/src/plugins/daos/realmsDepositsFetcher.js.map +1 -1
- package/src/plugins/debridge/dlmmVaultsFetcher.js +16 -10
- package/src/plugins/debridge/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/defiland/stakingFetcher.js +8 -1
- package/src/plugins/defiland/stakingFetcher.js.map +1 -1
- package/src/plugins/defituna/lendingFetcher.js +3 -0
- package/src/plugins/defituna/lendingFetcher.js.map +1 -1
- package/src/plugins/defituna/positionsFetcher.js +7 -1
- package/src/plugins/defituna/positionsFetcher.js.map +1 -1
- package/src/plugins/defituna/structs.d.ts +1 -0
- package/src/plugins/defituna/structs.js.map +1 -1
- package/src/plugins/divvy/constants.d.ts +1 -0
- package/src/plugins/divvy/constants.js +2 -1
- package/src/plugins/divvy/constants.js.map +1 -1
- package/src/plugins/divvy/housePoolFetcher.js +3 -0
- package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
- package/src/plugins/divvy/stakingFetcher.js +3 -1
- package/src/plugins/divvy/stakingFetcher.js.map +1 -1
- package/src/plugins/drift/depositsFetcher.js +15 -0
- package/src/plugins/drift/depositsFetcher.js.map +1 -1
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -1
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
- package/src/plugins/drift-market-maker-vault/index.js +5 -2
- package/src/plugins/drift-market-maker-vault/index.js.map +1 -1
- package/src/plugins/elemental/depositFetcher.js +3 -0
- package/src/plugins/elemental/depositFetcher.js.map +1 -1
- package/src/plugins/ensofi/solanaLoansFetcher.js +6 -0
- package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
- package/src/plugins/exponent/liquidityFetcher.js +1 -0
- package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
- package/src/plugins/exponent/tradeFetcher.js +1 -0
- package/src/plugins/exponent/tradeFetcher.js.map +1 -1
- package/src/plugins/famousfoxfederation/stakingFetcher.js +18 -22
- package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
- package/src/plugins/flash/perpetualFetcher.js +1 -1
- package/src/plugins/flash/perpetualFetcher.js.map +1 -1
- package/src/plugins/fragmetric/pricingJob.js +6 -0
- package/src/plugins/fragmetric/pricingJob.js.map +1 -1
- package/src/plugins/francium/lendingFetcher.js +1 -0
- package/src/plugins/francium/lendingFetcher.js.map +1 -1
- package/src/plugins/futarchy/daosJob.js +9 -0
- package/src/plugins/futarchy/daosJob.js.map +1 -1
- package/src/plugins/genesysgo/stakingFetcher.js +12 -25
- package/src/plugins/genesysgo/stakingFetcher.js.map +1 -1
- package/src/plugins/goosefx/stakingFetcher.js +18 -27
- package/src/plugins/goosefx/stakingFetcher.js.map +1 -1
- package/src/plugins/gpool/stakingFetcher.js +5 -1
- package/src/plugins/gpool/stakingFetcher.js.map +1 -1
- package/src/plugins/guano/constants.d.ts +8 -0
- package/src/plugins/guano/constants.js +15 -0
- package/src/plugins/guano/constants.js.map +1 -0
- package/src/plugins/guano/filters.d.ts +20 -0
- package/src/plugins/guano/filters.js +41 -0
- package/src/plugins/guano/filters.js.map +1 -0
- package/src/plugins/guano/index.d.ts +6 -0
- package/src/plugins/guano/index.js +10 -0
- package/src/plugins/guano/index.js.map +1 -0
- package/src/plugins/guano/stakingFetcher.d.ts +3 -0
- package/src/plugins/guano/stakingFetcher.js +70 -0
- package/src/plugins/guano/stakingFetcher.js.map +1 -0
- package/src/plugins/guano/structs.d.ts +34 -0
- package/src/plugins/guano/structs.js +33 -0
- package/src/plugins/guano/structs.js.map +1 -0
- package/src/plugins/guano/types.d.ts +15 -0
- package/src/plugins/guano/types.js +3 -0
- package/src/plugins/guano/types.js.map +1 -0
- package/src/plugins/hedgehog/ammJob.js +8 -0
- package/src/plugins/hedgehog/ammJob.js.map +1 -1
- package/src/plugins/hxro/stakingFetcher.js +2 -0
- package/src/plugins/hxro/stakingFetcher.js.map +1 -1
- package/src/plugins/iloop/depositsFetcher.js +8 -0
- package/src/plugins/iloop/depositsFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js +5 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +2 -0
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js +1 -0
- package/src/plugins/jupiter/exchange/valueAverageFetcher.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +6 -0
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/kamino/ordersFetcher.js +2 -0
- package/src/plugins/kamino/ordersFetcher.js.map +1 -1
- package/src/plugins/layer3/stakingFetcher.js +1 -0
- package/src/plugins/layer3/stakingFetcher.js.map +1 -1
- package/src/plugins/lifinity/lockerFetcher.js +14 -17
- package/src/plugins/lifinity/lockerFetcher.js.map +1 -1
- package/src/plugins/loverflow/airdropClaimFetcher.js +1 -0
- package/src/plugins/loverflow/airdropClaimFetcher.js.map +1 -1
- package/src/plugins/magiceden/escrowFetcher.js +12 -18
- package/src/plugins/magiceden/escrowFetcher.js.map +1 -1
- package/src/plugins/marginfi/helpers.d.ts +2 -1
- package/src/plugins/marginfi/helpers.js +8 -2
- package/src/plugins/marginfi/helpers.js.map +1 -1
- package/src/plugins/marinade/ticketsFetcher.js +14 -31
- package/src/plugins/marinade/ticketsFetcher.js.map +1 -1
- package/src/plugins/metaplex/resizableNftFetcher.js +1 -0
- package/src/plugins/metaplex/resizableNftFetcher.js.map +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js +19 -2
- package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
- package/src/plugins/orca/getWhirlpoolPositions.js +10 -1
- package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
- package/src/plugins/parcl/depositsFetcher.js +1 -1
- package/src/plugins/parcl/depositsFetcher.js.map +1 -1
- package/src/plugins/parcl/marginFetcher.js +1 -1
- package/src/plugins/parcl/marginFetcher.js.map +1 -1
- package/src/plugins/parcl/stakingFetcher.js +6 -3
- package/src/plugins/parcl/stakingFetcher.js.map +1 -1
- package/src/plugins/photofinish/stakingFetcher.js +6 -1
- package/src/plugins/photofinish/stakingFetcher.js.map +1 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js +3 -2
- package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
- package/src/plugins/pluto/earnFetcher.js +1 -1
- package/src/plugins/pluto/earnFetcher.js.map +1 -1
- package/src/plugins/pluto/leverageFetcher.js +37 -26
- package/src/plugins/pluto/leverageFetcher.js.map +1 -1
- package/src/plugins/pluto/structs.d.ts +0 -2
- package/src/plugins/pluto/structs.js +0 -2
- package/src/plugins/pluto/structs.js.map +1 -1
- package/src/plugins/quarry/calculatePositions.js +7 -1
- package/src/plugins/quarry/calculatePositions.js.map +1 -1
- package/src/plugins/quarry/positionsFetcher.js +2 -0
- package/src/plugins/quarry/positionsFetcher.js.map +1 -1
- package/src/plugins/quarry/types.d.ts +3 -0
- package/src/plugins/ratex/positionsFetcher.js +2 -0
- package/src/plugins/ratex/positionsFetcher.js.map +1 -1
- package/src/plugins/saber/lpTokensJob.js +1 -0
- package/src/plugins/saber/lpTokensJob.js.map +1 -1
- package/src/plugins/sandglass/depositFetcher.js +3 -0
- package/src/plugins/sandglass/depositFetcher.js.map +1 -1
- package/src/plugins/sharky/loansFetcher.js +1 -0
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/plugins/solayer/airdropFetcher.d.ts +3 -0
- package/src/plugins/solayer/airdropFetcher.js +55 -0
- package/src/plugins/solayer/airdropFetcher.js.map +1 -0
- package/src/plugins/solayer/constants.d.ts +5 -0
- package/src/plugins/solayer/constants.js +13 -1
- package/src/plugins/solayer/constants.js.map +1 -1
- package/src/plugins/solayer/index.d.ts +2 -0
- package/src/plugins/solayer/index.js +4 -2
- package/src/plugins/solayer/index.js.map +1 -1
- package/src/plugins/solayer/proofsFetcher.js +7 -6
- package/src/plugins/solayer/proofsFetcher.js.map +1 -1
- package/src/plugins/solayer/types.d.ts +8 -0
- package/src/plugins/solayer/types.js +3 -0
- package/src/plugins/solayer/types.js.map +1 -0
- package/src/plugins/spdr/stakingFetcher.js +3 -0
- package/src/plugins/spdr/stakingFetcher.js.map +1 -1
- package/src/plugins/stabble/poolsJob.js +1 -0
- package/src/plugins/stabble/poolsJob.js.map +1 -1
- package/src/plugins/staratlas/lockersFetcher.js +2 -0
- package/src/plugins/staratlas/lockersFetcher.js.map +1 -1
- package/src/plugins/staratlas/stakingFetcher.js +2 -1
- package/src/plugins/staratlas/stakingFetcher.js.map +1 -1
- package/src/plugins/streamflow/vestingFetcher.js +1 -1
- package/src/plugins/streamflow/vestingFetcher.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/tensor/bidsFetcher.js +1 -1
- package/src/plugins/tensor/bidsFetcher.js.map +1 -1
- package/src/plugins/texture/loansFetcher.js +2 -1
- package/src/plugins/texture/loansFetcher.js.map +1 -1
- package/src/plugins/tokens/fetchers/solana-simple.d.ts +3 -0
- package/src/plugins/tokens/fetchers/solana-simple.js +66 -0
- package/src/plugins/tokens/fetchers/solana-simple.js.map +1 -0
- package/src/plugins/tokens/getTokenListsJob.js +1 -1
- package/src/plugins/tokens/getTokenListsJob.js.map +1 -1
- package/src/plugins/tokens/index.d.ts +2 -0
- package/src/plugins/tokens/index.js +3 -1
- package/src/plugins/tokens/index.js.map +1 -1
- package/src/plugins/tulip/depositsFetcher.js +3 -1
- package/src/plugins/tulip/depositsFetcher.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/uxd/stakingFetcher.js +4 -3
- package/src/plugins/uxd/stakingFetcher.js.map +1 -1
- package/src/plugins/vaultka/lendingFetcher.js +5 -0
- package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
- package/src/plugins/vaultka/strategyFetcher.js +3 -0
- package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
- package/src/plugins/whalesmarket/depositFetcher.js +7 -5
- package/src/plugins/whalesmarket/depositFetcher.js.map +1 -1
- package/src/plugins/zelo/positionsFetcher.js +2 -0
- package/src/plugins/zelo/positionsFetcher.js.map +1 -1
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/plugins/zeta/depositsFetcher.js +5 -1
- package/src/plugins/zeta/depositsFetcher.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"proofsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/proofsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA0D;AAC1D,iDAAsD;AACtD,gFAA6E;AAC7E,+CAA8E;AAC9E,uCAAwD;AACxD,wDAA4D;AAE5D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,MAAM,EACN,qBAAW,EACX,2BAAe,EACf;QACE,GAAG,IAAA,wBAAc,EAAC,GAAG,CAAC;QACtB;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAwB,EAChD,MAAM,EACN,wBAAc,EACd,2BAAe,EACf,CAAC,GAAG,IAAA,wBAAc,EAAC,GAAG,CAAC,CAAC,CACzB,CAAC;IACF,MAAM,IAAI,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAE/B,MAAM,QAAQ,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,kBAAkB,CAAC;QAC1C,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,gBAAgB;
|
1
|
+
{"version":3,"file":"proofsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/proofsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAA0D;AAC1D,iDAAsD;AACtD,gFAA6E;AAC7E,+CAA8E;AAC9E,uCAAwD;AACxD,wDAA4D;AAE5D,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,QAAQ,GAAG,MAAM,I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AQ,EAAE;YAChC,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,UAAU,EAAE;gBACV,WAAW;gBACX,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;aAC3C;YACD,GAAG,EAAE,OAAO,CAAC,MAAM;YACnB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;SAChE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AACrC,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 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/solayer/types.ts"],"names":[],"mappings":""}
|
@@ -46,11 +46,13 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
46
46
|
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
47
47
|
const element = elementRegistry.addElementMultiple({
|
48
48
|
label: 'Staked',
|
49
|
+
link: 'https://www.spiderswap.io/staking',
|
49
50
|
});
|
50
51
|
stakeAccounts.forEach((acc) => {
|
51
52
|
element.addAsset({
|
52
53
|
address: constants_1.spdrMint,
|
53
54
|
amount: acc.depositAmount.minus(acc.multiplierAmount),
|
55
|
+
ref: acc.pubkey.toString(),
|
54
56
|
});
|
55
57
|
});
|
56
58
|
stakeLockAccounts.forEach((acc) => {
|
@@ -64,6 +66,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
64
66
|
.times(1000)
|
65
67
|
.toNumber(),
|
66
68
|
},
|
69
|
+
ref: acc.pubkey.toString(),
|
67
70
|
});
|
68
71
|
});
|
69
72
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/spdr/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAEvD,2CAAwD;AAExD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA2D;AAC3D,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,CAAC,aAAa,EAAE,iBAAiB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC3D,IAAA,iCAAwB,EAAC,UAAU,EAAE,qBAAW,EAAE,eAAG,EAAE;YACrD;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,CAAC;iBACV;aACF;SACF,CAAC;QACF,IAAA,iCAAwB,EAAC,UAAU,EAAE,2BAAiB,EAAE,eAAG,EAAE;YAC3D;gBACE,QAAQ,EAAE,GAAG;aACd;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,CAAC;iBACV;aACF;SACF,CAAC;KACH,CAAC,CAAC;IACH,IAAI,CAAC,GAAG,aAAa,EAAE,GAAG,iBAAiB,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErE,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,QAAQ;
|
1
|
+
{"version":3,"file":"stakingFetcher.js","source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GAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,WAAW,GAAG,GAAG,EACjD,CAAC,CACF;YACD,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,MAAM,EAAE,CAAC;YACT,WAAW;
|
1
|
+
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAyE;AACzE,gEAAqC;AAGrC,2CAAyE;AACzE,iDAAsD;AACtD,+CAAkE;AAClE,uCAAyD;AAEzD,8EAAgF;AAChF,oGAA4E;AAE5E,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IAEtC,MAAM,KAAK,GAAG,CACZ,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,IAAA,qCAA4B,EAC1B,UAAU,EACV,yBAAa,EACb,sBAAY,CACb;QACD,IAAA,qCAA4B,EAC1B,UAAU,EACV,2BAAe,EACf,wBAAc,CACf;KACF,CAAC,CACH,CAAC,IAAI,EAAE,CAAC;IAET,MAAM,KAAK,GAAgB,IAAI,GAAG,EAAE,CAAC;IACrC,MAAM,OAAO,GAAgB,IAAI,GAAG,EAAE,CAAC;IAEvC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC5B,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,MA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C,MAAM,CAAC,CAAC;YAErB,WAAW,CAAC,IAAI,CAAC;gBACf,OAAO,EAAE,UAAU,CAAC,OAAO;gBAC3B,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE;gBACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;gBAC3B,KAAK,EAAE,UAAU,CAAC,KAAK;aACxB,CAAC,CAAC;QACL,CAAC;QAED,OAAO,CAAC,IAAI,CAAC;YACX,OAAO,EAAE,IAAI,CAAC,IAAI;YAClB,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,QAAQ;YACzC,EAAE,EAAE,sBAAU;YACd,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,KAAK,EAAE,WAAW,CAAC,MAAM,CACvB,CAAC,GAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,WAAW,GAAG,GAAG,EACjD,CAAC,CACF;YACD,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,MAAM,EAAE,CAAC;YACT,WAAW;YACX,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SAChE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -40,6 +40,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
40
40
|
platformId: constants_1.platformId,
|
41
41
|
data: {
|
42
42
|
assets: [asset],
|
43
|
+
ref: account.pubkey.toString(),
|
44
|
+
link: 'https://govern.staratlas.com/lockers/polis',
|
43
45
|
},
|
44
46
|
value: asset.value,
|
45
47
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lockersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/lockersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAE7E,2CAAmE;AAEnE,iDAAsD;AACtD,uCAImB;AACnB,kFAA+E;AAC/E,uCAAyC;AACzC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,kBAAkB,GAAG,IAAA,+BAAqB,EAAC,KAAK,CAAC,CAAC;IACxD,MAAM,YAAY,GAAG,IAAA,yBAAe,EAAC,kBAAkB,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC;IAC3E,MAAM,aAAa,GAAG,IAAA,0BAAgB,EAAC,YAAY,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,MAAM,IAAA,2CAAoB,EACxC,UAAU,EACV,sBAAY,EACZ,aAAa,CACd,CAAC;IACF,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAEnD,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,aAAa,CAC/C,qBAAS,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE,CAAC;IAClE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,qBAAS,EACT,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,eAAe,EACf,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,KAAK,EACtB;QACE,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,IAAI;KACpD,CACF,CAAC;IACF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"lockersFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/lockersFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA6E;AAE7E,2CAAmE;AAEnE,iDAAsD;AACtD,uCAImB;AACnB,kFAA+E;AAC/E,uCAAyC;AACzC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,kBAAkB,GAAG,IAAA,+BAAqB,EAAC,KAAK,CAAC,CAAC;IACxD,MAAM,YAAY,GAAG,IAAA,yBAAe,EAAC,kBAAkB,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC;IAC3E,MAAM,aAAa,GAAG,IAAA,0BAAgB,EAAC,YAAY,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,MAAM,IAAA,2CAAoB,EACxC,UAAU,EACV,sBAAY,EACZ,aAAa,CACd,CAAC;IACF,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,CAAC;IAEnD,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,aAAa,CAC/C,qBAAS,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE,CAAC;IAClE,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,qBAAS,EACT,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,eAAe,EACf,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,KAAK,EACtB;QACE,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,IAAI;KACpD,CACF,CAAC;IACF,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM,EAAE,CAAC,KAAK,CAAC;gBACf,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC9B,IAAI,EAAE,4CAA4C;aACnD;YACD,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;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"}
|
@@ -37,7 +37,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
37
37
|
if (!account.pendingRewards.isZero()) {
|
38
38
|
asset.attributes = { isClaimable: true };
|
39
39
|
}
|
40
|
-
assets.push(asset);
|
40
|
+
assets.push(Object.assign(Object.assign({}, asset), { ref: account.pubkey.toString() }));
|
41
41
|
});
|
42
42
|
if (assets.length === 0)
|
43
43
|
return [];
|
@@ -49,6 +49,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
49
49
|
platformId: constants_1.platformId,
|
50
50
|
data: {
|
51
51
|
assets,
|
52
|
+
link: 'https://govern.staratlas.com/lockers/atlas',
|
52
53
|
},
|
53
54
|
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
54
55
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA+E;AAE/E,iDAAsD;AACtD,qGAA6E;AAC7E,+CAA8D;AAC9D,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,sBAAU,EACV;QACE,EAAE,QAAQ,EAAE,uBAAa,CAAC,QAAQ,EAAE;QACpC;YACE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE;SACpC;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,aAAa,CAC/C,qBAAS,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE;YAAE,OAAO;QAExC,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,qBAAS,EACT,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtD,0BAAS,CAAC,MAAM,EAChB,eAAe,CAChB,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,CAAC;YACrC,KAAK,CAAC,UAAU,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QAC3C,CAAC;QAED,MAAM,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA+E;AAE/E,iDAAsD;AACtD,qGAA6E;AAC7E,+CAA8D;AAC9D,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,sBAAU,EACV;QACE,EAAE,QAAQ,EAAE,uBAAa,CAAC,QAAQ,EAAE;QACpC;YACE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE;SACpC;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,aAAa,CAC/C,qBAAS,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE;YAAE,OAAO;QAExC,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,qBAAS,EACT,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtD,0BAAS,CAAC,MAAM,EAChB,eAAe,CAChB,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,CAAC;YACrC,KAAK,CAAC,UAAU,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;QAC3C,CAAC;QAED,MAAM,CAAC,IAAI,iCAAM,KAAK,KAAE,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAG,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM;gBACN,IAAI,EAAE,4CAA4C;aACnD;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;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"}
|
@@ -57,7 +57,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
57
57
|
const asset = (0, tokenPriceToAssetToken_1.default)(tokenMint, amount, portfolio_core_1.NetworkId.solana, tokenInCache);
|
58
58
|
assets.push(Object.assign(Object.assign({}, asset), { attributes: {
|
59
59
|
lockedUntil: vestingAccount.endTime.multipliedBy(1000).toNumber(),
|
60
|
-
} }));
|
60
|
+
}, ref: vestingAccount.pubkey.toString(), link: `https://app.streamflow.finance/contract/solana/mainnet/${vestingAccount.pubkey.toString()}` }));
|
61
61
|
}
|
62
62
|
if (assets.length === 0)
|
63
63
|
return [];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vestingFetcher.js","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K,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACjD,IAAI,EAAE;gBACJ,MAAM;aACP;SACF;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"}
|
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
|
|
54
54
|
}
|
55
55
|
function getV3PairsAddresses(url, length = 300) {
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
const query = (0, graphql_request_1.gql) `
|
58
|
-
{
|
59
|
-
pools(
|
60
|
-
orderBy: totalValueLockedUSD
|
61
|
-
first: ${length}
|
62
|
-
orderDirection: desc
|
63
|
-
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
-
) {
|
65
|
-
id
|
66
|
-
token0Price
|
67
|
-
token1Price
|
68
|
-
liquidity
|
69
|
-
token0 {
|
70
|
-
id
|
71
|
-
totalSupply
|
72
|
-
decimals
|
73
|
-
}
|
74
|
-
token1 {
|
75
|
-
id
|
76
|
-
totalSupply
|
77
|
-
decimals
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
57
|
+
const query = (0, graphql_request_1.gql) `
|
58
|
+
{
|
59
|
+
pools(
|
60
|
+
orderBy: totalValueLockedUSD
|
61
|
+
first: ${length}
|
62
|
+
orderDirection: desc
|
63
|
+
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
+
) {
|
65
|
+
id
|
66
|
+
token0Price
|
67
|
+
token1Price
|
68
|
+
liquidity
|
69
|
+
token0 {
|
70
|
+
id
|
71
|
+
totalSupply
|
72
|
+
decimals
|
73
|
+
}
|
74
|
+
token1 {
|
75
|
+
id
|
76
|
+
totalSupply
|
77
|
+
decimals
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
81
|
`;
|
82
82
|
const res = yield (0, graphql_request_1.default)(url, query);
|
83
83
|
const pools = res.pools;
|
@@ -46,7 +46,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
46
46
|
platformId: constants_1.platformId,
|
47
47
|
name: 'Bids',
|
48
48
|
value: asset.value,
|
49
|
-
data: { assets: [asset] },
|
49
|
+
data: { assets: [asset], link: 'https://www.tensor.trade/portfolio' },
|
50
50
|
},
|
51
51
|
];
|
52
52
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bidsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tensor/bidsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AACpC,gEAAqC;AAGrC,2CAAoD;AACpD,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAuC;AACvC,gGAA6F;AAC7F,qCAAsC;AACtC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,YAAY,GAAG,MAAM,IAAA,iCAAwB,EACjD,MAAM,EACN,mBAAU,EACV,qBAAS,EACT,IAAA,oBAAU,EAAC,KAAK,CAAC,CAClB,CAAC;IAEF,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEzC,MAAM,kBAAkB,GAAG,MAAM,IAAA,yDAA2B,EAC1D,MAAM,EACN,YAAY,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CACjD,CAAC;IACF,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE/C,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAA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AAC;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,MAAM;YACZ,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,oCAAoC,EAAE;SACtE;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,OAAO;IACxB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -43,7 +43,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
43
43
|
.div(Math.pow(10, portfolio_core_1.solanaNativeDecimals))
|
44
44
|
.toNumber();
|
45
45
|
const asset = (0, tokenPriceToAssetToken_1.default)(portfolio_core_1.solanaNativeAddress, amount, portfolio_core_1.NetworkId.solana, solTokenPrice);
|
46
|
-
assets.push(asset);
|
46
|
+
assets.push(Object.assign(Object.assign({}, asset), { ref: acc.pubkey.toString() }));
|
47
47
|
});
|
48
48
|
if (assets.length === 0)
|
49
49
|
return [];
|
@@ -55,6 +55,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
55
55
|
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
|
56
56
|
data: {
|
57
57
|
assets,
|
58
|
+
link: 'https://texture.finance/lendy/my_loans',
|
58
59
|
},
|
59
60
|
};
|
60
61
|
return [element];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/texture/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,6CAA4C;AAE5C,2CAAyC;AAEzC,iDAAsD;AACtD,+CAA8D;AAC9D,uCAA4C;AAC5C,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,yBAAe,EACf,IAAI,mBAAS,CAAC,KAAK,CAAC,EACpB;QACE;YACE,QAAQ,EAAE,yBAAe,CAAC,QAAQ;SACnC;QACD;YACE,MAAM,EAAE;gBACN,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,EAAE;aACX;SACF;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,aAAa,GAAG,MAAM,KAAK,CAAC,aAAa,CAC7C,oCAAmB,EACnB,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,IAAI,GAAG,CAAC,eAAe,CAAC,MAAM,EAAE;YAAE,OAAO;QACzC,MAAM,MAAM,GAAG,GAAG,CAAC,eAAe;aAC/B,GAAG,CAAC,SAAA,EAAE,EAAI,qCAAoB,CAAA,CAAC;aAC/B,QAAQ,EAAE,CAAC;QACd,MAAM,KAAK,GAAG,IAAA,gCAAsB,EAClC,oCAAmB,EACnB,MAAM,EACN,0BAAS,CAAC,MAAM,EAChB,aAAa,CACd,CAAC;QACF,MAAM,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"loansFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/texture/loansFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,6CAA4C;AAE5C,2CAAyC;AAEzC,iDAAsD;AACtD,+CAA8D;AAC9D,uCA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ChB,UAAU,EAAV,sBAAU;QACV,IAAI,EAAE,qCAAoB,CAAC,QAAQ;QACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,EAAE;YACJ,MAAM;YACN,IAAI,EAAE,wCAAwC;SAC/C;KACF,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,mBAAmB;IACpC,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,66 @@
|
|
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 constants_1 = require("../constants");
|
18
|
+
const clients_1 = require("../../../utils/clients");
|
19
|
+
const solana_1 = require("../../../utils/solana");
|
20
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../../utils/misc/tokenPriceToAssetToken"));
|
21
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
22
|
+
const client = yield (0, clients_1.getClientSolana)();
|
23
|
+
const promises = [
|
24
|
+
client.getParsedTokenAccountsByOwner(new web3_js_1.PublicKey(owner), {
|
25
|
+
programId: solana_1.solanaTokenPidPk,
|
26
|
+
}),
|
27
|
+
client.getParsedTokenAccountsByOwner(new web3_js_1.PublicKey(owner), {
|
28
|
+
programId: solana_1.solanaToken2022PidPk,
|
29
|
+
}),
|
30
|
+
];
|
31
|
+
const res = yield Promise.all(promises);
|
32
|
+
const accounts = [...res[0].value, ...res[1].value].filter((acc) => acc.account.data.parsed.info.tokenAmount.decimals !== 0 &&
|
33
|
+
acc.account.data.parsed.info.tokenAmount.uiAmount !== 0);
|
34
|
+
const tokenPrices = yield cache.getTokenPricesAsMap(accounts.map((a) => a.account.data.parsed.info.mint), portfolio_core_1.NetworkId.solana);
|
35
|
+
const tokenAssets = [];
|
36
|
+
accounts.forEach((acc) => {
|
37
|
+
const { mint, tokenAmount } = acc.account.data.parsed.info;
|
38
|
+
const { uiAmount: amount, decimals } = tokenAmount;
|
39
|
+
if (decimals === 0)
|
40
|
+
return;
|
41
|
+
const tokenPrice = tokenPrices.get(mint);
|
42
|
+
if (tokenPrice && tokenPrice.platformId !== constants_1.walletTokensPlatform.id)
|
43
|
+
return;
|
44
|
+
tokenAssets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(mint, amount, portfolio_core_1.NetworkId.solana, tokenPrice)), { ref: acc.pubkey.toString(), link: tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.link, sourceRefs: tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.sourceRefs }));
|
45
|
+
});
|
46
|
+
if (tokenAssets.length === 0)
|
47
|
+
return [];
|
48
|
+
const element = {
|
49
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
50
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
51
|
+
platformId: constants_1.walletTokensPlatform.id,
|
52
|
+
label: 'Wallet',
|
53
|
+
value: (0, portfolio_core_1.getUsdValueSum)(tokenAssets.map((a) => a.value)),
|
54
|
+
data: {
|
55
|
+
assets: tokenAssets,
|
56
|
+
},
|
57
|
+
};
|
58
|
+
return [element];
|
59
|
+
});
|
60
|
+
const fetcher = {
|
61
|
+
id: `${constants_1.walletTokensPlatform.id}-solana-simple`,
|
62
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
63
|
+
executor,
|
64
|
+
};
|
65
|
+
exports.default = fetcher;
|
66
|
+
//# sourceMappingURL=solana-simple.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"solana-simple.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/tokens/fetchers/solana-simple.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAEpC,6CAA4C;AAG5C,4CAAoD;AACpD,oDAAyD;AACzD,kDAA+E;AAC/E,wGAAgF;AAEhF,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,MAAM,IAAA,yBAAe,GAAE,CAAC;IAEvC,MAAM,QAAQ,GAAG;QACf,MAAM,CAAC,6BAA6B,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,EAAE;YACzD,SAAS,EAAE,yBAAgB;SAC5B,CAAC;QACF,MAAM,CAAC,6BAA6B,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,EAAE;YACzD,SAAS,EAAE,6BAAoB;SAChC,CAAC;KACH,CAAC;IACF,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CACxD,CA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AC,CAAC,CAAC;IAEH,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAExC,MAAM,OAAO,GAA6B;QACxC,IAAI,EAAE,qCAAoB,CAAC,QAAQ;QACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;QAC3B,UAAU,EAAE,gCAAoB,CAAC,EAAE;QACnC,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,IAAA,+BAAc,EAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACtD,IAAI,EAAE;YACJ,MAAM,EAAE,WAAW;SACpB;KACF,CAAC;IACF,OAAO,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,gCAAoB,CAAC,EAAE,gBAAgB;IAC9C,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -29,7 +29,7 @@ function getTokenListsJob(networkId) {
|
|
29
29
|
prefix: constants_1.tokenListsPrefix,
|
30
30
|
});
|
31
31
|
if (cachedTokenList &&
|
32
|
-
!(0, helpers_1.isLatestVersion)(
|
32
|
+
!(0, helpers_1.isLatestVersion)(tokenList.data.version, cachedTokenList.version)) {
|
33
33
|
return;
|
34
34
|
}
|
35
35
|
// for (let i = 0; i < tokenList.data.tokens.length; i++) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getTokenListsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/getTokenListsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,kDAA6C;AAG7C,2CAA+C;AAC/C,uCAA4C;AAE5C,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,SAAS;AAE9C,SAAS,gBAAgB,CAAC,SAAwB;IAChD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;QACnD,MAAM,OAAO,GAAG,yBAAQ,CAAC,SAAS,CAAC,CAAC;QACpC,MAAM,SAAS,GAAuC,MAAM,eAAK;aAC9D,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC;aACzB,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,OAAO,CAAe,SAAS,EAAE;YACnE,MAAM,EAAE,4BAAgB;SACzB,CAAC,CAAC;QAEH,IACE,eAAe;YACf,CAAC,IAAA,yBAAe,EAAC,
|
1
|
+
{"version":3,"file":"getTokenListsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/getTokenListsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAIoC;AACpC,kDAA6C;AAG7C,2CAA+C;AAC/C,uCAA4C;AAE5C,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,SAAS;AAE9C,SAAS,gBAAgB,CAAC,SAAwB;IAChD,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;QACnD,MAAM,OAAO,GAAG,yBAAQ,CAAC,SAAS,CAAC,CAAC;QACpC,MAAM,SAAS,GAAuC,MAAM,eAAK;aAC9D,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC;aACzB,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,OAAO,CAAe,SAAS,EAAE;YACnE,MAAM,EAAE,4BAAgB;SACzB,CAAC,CAAC;QAEH,IACE,eAAe;YACf,CAAC,IAAA,yBAAe,EAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,OAAO,CAAC,EACjE,CAAC;YACD,OAAO;QACT,CAAC;QAED,2DAA2D;QAC3D,4CAA4C;QAC5C,kEAAkE;QAClE,qBAAqB;QACrB,gBAAgB;QAChB,eAAe;QACf,OAAO;QACP,2CAA2C;QAC3C,uCAAuC;QACvC,iBAAiB;QACjB,WAAW;QACX,QAAQ;QACR,IAAI;QACJ,MAAM,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,IAAI,EAAE;YAC7C,MAAM,EAAE,4BAAgB;YACxB,GAAG;SACJ,CAAC,CAAC;IACL,CAAC,CAAA,CAAC;IACF,MAAM,GAAG,GAAQ;QACf,EAAE,EAAE,eAAe,SAAS,EAAE;QAC9B,QAAQ;QACR,MAAM,EAAE,CAAC,QAAQ,CAAC;KACnB,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC;AACD,kBAAe,gBAAgB,CAAC"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
2
|
import { Job } from '../../Job';
|
3
3
|
import { Fetcher } from '../../Fetcher';
|
4
|
+
import solanaSimpleFetcher from './fetchers/solana-simple';
|
4
5
|
export declare const platforms: Platform[];
|
5
6
|
export declare const jobs: Job[];
|
6
7
|
export declare const fetchers: Fetcher[];
|
8
|
+
export { solanaSimpleFetcher };
|
@@ -3,7 +3,7 @@ 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.solanaSimpleFetcher = exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
7
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
8
8
|
const constants_1 = require("./constants");
|
9
9
|
const jobGenerator_1 = __importDefault(require("./jobGenerator"));
|
@@ -17,6 +17,8 @@ const solana_native_1 = __importDefault(require("./fetchers/solana-native"));
|
|
17
17
|
const solana_nfts_underlyings_1 = __importDefault(require("./fetchers/solana-nfts-underlyings"));
|
18
18
|
const evms_1 = require("./fetchers/evms");
|
19
19
|
const getTokenListsJob_1 = __importDefault(require("./getTokenListsJob"));
|
20
|
+
const solana_simple_1 = __importDefault(require("./fetchers/solana-simple"));
|
21
|
+
exports.solanaSimpleFetcher = solana_simple_1.default;
|
20
22
|
exports.platforms = [constants_1.walletTokensPlatform, constants_1.walletNftsPlatform];
|
21
23
|
exports.jobs = [
|
22
24
|
(0, jobGenerator_1.default)(portfolio_core_1.NetworkId.bitcoin),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAIoC;AAKpC,2CAAuE;AACvE,kEAA0C;AAC1C,6DAA4C;AAC5C,yDAAwC;AACxC,mEAAiD;AACjD,yDAAwC;AACxC,iEAAgD;AAChD,+DAA8C;AAC9C,6EAA2D;AAC3D,iGAA8E;AAC9E,0CAA0D;AAC1D,0EAAkD;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tokens/index.ts"],"names":[],"mappings":";;;;;;AAAA,+DAIoC;AAKpC,2CAAuE;AACvE,kEAA0C;AAC1C,6DAA4C;AAC5C,yDAAwC;AACxC,mEAAiD;AACjD,yDAAwC;AACxC,iEAAgD;AAChD,+DAA8C;AAC9C,6EAA2D;AAC3D,iGAA8E;AAC9E,0CAA0D;AAC1D,0EAAkD;AAElD,6EAA2D;AA4BlD,8BA5BF,uBAAmB,CA4BE;AA1Bf,QAAA,SAAS,GAAe,CAAC,gCAAoB,EAAE,8BAAkB,CAAC,CAAC;AACnE,QAAA,IAAI,GAAU;IACzB,IAAA,sBAAY,EAAC,0BAAS,CAAC,OAAO,CAAC;IAC/B,IAAA,sBAAY,EAAC,0BAAS,CAAC,KAAK,CAAC;IAC7B,IAAA,sBAAY,EAAC,0BAAS,CAAC,MAAM,CAAC;IAC9B,IAAA,sBAAY,EAAC,0BAAS,CAAC,QAAQ,CAAC;IAChC,IAAA,sBAAY,EAAC,0BAAS,CAAC,SAAS,CAAC;IACjC,IAAA,sBAAY,EAAC,0BAAS,CAAC,OAAO,CAAC;IAC/B,IAAA,sBAAY,EAAC,0BAAS,CAAC,GAAG,CAAC;IAC3B,IAAA,sBAAY,EAAC,0BAAS,CAAC,GAAG,CAAC;IAC3B,IAAA,sBAAY,EAAC,0BAAS,CAAC,GAAG,CAAC;IAC3B,GAAG,gCAAe,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,0BAAgB,EAAC,OAAO,CAAC,EAAE,CAAC,CAAC;CAClE,CAAC;AAEW,QAAA,QAAQ,GAAc;IACjC,eAAY;IACZ,gBAAa;IACb,uBAAmB;IACnB,iCAA4B;IAC5B,aAAU;IACV,kBAAc;IACd,aAAU;IACV,iBAAc;IACd,GAAG,eAAW;CACf,CAAC"}
|
@@ -47,7 +47,8 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
47
47
|
const amount = userVaultsAccount.depositedBalance
|
48
48
|
.div(Math.pow(10, lpTokenPrice.decimals))
|
49
49
|
.toNumber();
|
50
|
-
|
50
|
+
const name = 'Vault';
|
51
|
+
assets.push(...(0, tokenPriceToAssetTokens_1.default)(lpTokenPrice.address, amount, portfolio_core_1.NetworkId.solana, lpTokenPrice).map((asset) => (Object.assign(Object.assign({}, asset), { ref: userVaultsAccount.pubkey.toString(), sourceRefs: [{ name, address: userVaultsAccount.vault.toString() }] }))));
|
51
52
|
}
|
52
53
|
if (assets.length === 0)
|
53
54
|
return [];
|
@@ -60,6 +61,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
60
61
|
label: 'Deposit',
|
61
62
|
data: {
|
62
63
|
assets,
|
64
|
+
link: 'https://tulip.garden/your-positions',
|
63
65
|
},
|
64
66
|
},
|
65
67
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/depositsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,2CAAsE;AACtE,iDAAsD;AACtD,+CAA6E;AAC7E,uCAA6E;AAC7E,uCAAsD;AACtD,uGAA+E;AAE/E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IAEjC,MAAM,kBAAkB,GAAG,MAAM,IAAA,iCAAwB,EACvD,MAAM,EACN,iCAAuB,EACvB,4BAAgB,EAChB,IAAA,mCAAyB,EAAC,KAAK,CAAC,CACjC,CAAC;IACF,IAAI,CAAC,kBAAkB;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,OAAO,CAChC,qBAAS,EACT;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;IACF,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAEvB,MAAM,cAAc,GAAG,MAAM,KAAK,CAAC,mBAAmB,CACpD,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,EACvD,0BAAS,CAAC,MAAM,CACjB,CAAC;IAEF,MAAM,SAAS,GAAyC,IAAI,GAAG,EAAE,CAAC;IAClE,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE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IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO;QACL;YACE,UAAU,EAAV,sBAAU;YACV,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACzD,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE;gBACJ,MAAM;gBACN,IAAI,EAAE,qCAAqC;aAC5C;SACF;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,WAAW;IAC5B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -40,28 +40,28 @@ function getPairKey(version) {
|
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
{
|
45
|
-
pairs(
|
46
|
-
orderBy: reserveUSD
|
47
|
-
first: ${length}
|
48
|
-
orderDirection: desc
|
49
|
-
where: { trackedReserveETH_not: "0" }
|
50
|
-
) {
|
51
|
-
id
|
52
|
-
reserve0
|
53
|
-
reserve1
|
54
|
-
totalSupply
|
55
|
-
token0 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
token1 {
|
60
|
-
id
|
61
|
-
decimals
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
{
|
45
|
+
pairs(
|
46
|
+
orderBy: reserveUSD
|
47
|
+
first: ${length}
|
48
|
+
orderDirection: desc
|
49
|
+
where: { trackedReserveETH_not: "0" }
|
50
|
+
) {
|
51
|
+
id
|
52
|
+
reserve0
|
53
|
+
reserve1
|
54
|
+
totalSupply
|
55
|
+
token0 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
token1 {
|
60
|
+
id
|
61
|
+
decimals
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
const res = yield (0, graphql_request_1.default)(url, query);
|
67
67
|
const pairs = res.pairs;
|
@@ -34,9 +34,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
34
34
|
if (!amount.isZero())
|
35
35
|
return;
|
36
36
|
const lockedUntil = stakingAccount.stakeEndTs.times(1000).toNumber();
|
37
|
-
assets.push(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.uxpMint, amount.toNumber(), networkId, tokenPrice, tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.price, {
|
37
|
+
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.uxpMint, amount.toNumber(), networkId, tokenPrice, tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.price, {
|
38
38
|
lockedUntil,
|
39
|
-
|
39
|
+
tags: ['Deprecated'],
|
40
|
+
})), { ref: stakingAccount.pubkey.toString() }));
|
40
41
|
});
|
41
42
|
if (assets.length === 0)
|
42
43
|
return [];
|
@@ -46,7 +47,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
46
47
|
label: 'Staked',
|
47
48
|
networkId: portfolio_core_1.NetworkId.solana,
|
48
49
|
platformId: constants_1.platformId,
|
49
|
-
data: { assets },
|
50
|
+
data: { assets, link: 'https://stake.uxd.fi/' },
|
50
51
|
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
|
51
52
|
},
|
52
53
|
];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAA+E;AAC/E,iDAAsD;AACtD,uCAAiD;AACjD,uCAAkD;AAClD,+CAA8D;AAC9D,qGAA6E;AAE7E,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAAC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,8BAAoB,EACpB,4BAAgB,EAChB,IAAA,+BAAqB,EAAC,KAAK,CAAC,CAC7B,CAAC;IACF,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,mBAAO,EAAE,SAAS,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,eAAe,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE;QACzC,MAAM,MAAM,GAAG,cAAc,CAAC,YAAY;aACvC,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC;aACjC,GAAG,CAAC,qBAAS,CAAC,CAAC;QAClB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAAE,OAAO;QAE7B,MAAM,WAAW,GAAG,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;QACrE,MAAM,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAA+E;AAC/E,iDAAsD;AACtD,uCAAiD;AACjD,uCAAkD;AAClD,+CAA8D;AAC9D,qGAA6E;AAE7E,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AC,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE;YAC/C,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;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"}
|
@@ -34,6 +34,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
34
34
|
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
35
35
|
const element = elementRegistry.addElementMultiple({
|
36
36
|
label: 'Lending',
|
37
|
+
link: 'https://solana.vaultka.com/',
|
37
38
|
});
|
38
39
|
userInfos.forEach((userInfo, i) => {
|
39
40
|
if (userInfo)
|
@@ -45,6 +46,10 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
45
46
|
.plus(lendings[i].borrowed_amount)
|
46
47
|
.multipliedBy(userInfo.shares)
|
47
48
|
.dividedBy(lendings[i].total_shares),
|
49
|
+
ref: userInfo.pubkey.toString(),
|
50
|
+
sourceRefs: [
|
51
|
+
{ name: 'Lending Market', address: lendings[i].pubkey.toString() },
|
52
|
+
],
|
48
53
|
});
|
49
54
|
});
|
50
55
|
return elementRegistry.getElements(cache);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA8E;AAE9E,iDAAsD;AACtD,+
|
1
|
+
{"version":3,"file":"lendingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/lendingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAA4E;AAC5E,6CAA4C;AAC5C,gEAAqC;AAErC,2CAA8E;AAE9E,iDAAsD;AACtD,+CAG4B;AAC5B,uCAAoD;AACpD,gFAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,SAAS,GAAG,MAAM,IAAA,sCAA6B,EACnD,UAAU,EACV,wBAAc,EACd,6BAAiB,CAAC,GAAG,CACnB,CAAC,gBAAgB,EAAE,EAAE,CACnB,mBAAS,CAAC,sBAAsB,CAC9B,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,EAC5D,gBAAgB,CACjB,CAAC,CAAC,CAAC,CACP,CACF,CAAC;IAEF,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE9E,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAClC,4BAAgB,EAChB;QACE,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CACF,CAAC;IAEF,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,MAAM,eAAe,GAAG,IAAI,iCAAe,CAAC,0BAAS,CAAC,MAAM,EAAE,sBAAU,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,CAAC,kBAAkB,CAAC;QACjD,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,6BAA6B;KACpC,CAAC,CAAC;IAEH,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE;QAChC,IAAI,QAAQ;YACV,OAAO,CAAC,QAAQ,CAAC;gBACf,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;oBACvB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE;oBAC7B,CAAC,CAAC,oCAAmB;gBACvB,MAAM,EAAE,IAAI,sBAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;qBAC7C,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC;qBACjC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;qBAC7B,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;gBACtC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC/B,UAAU,EAAE;oBACV,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE;iBACnE;aACF,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5C,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"}
|
@@ -41,6 +41,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
41
41
|
const strategy = strategiesInfo[i];
|
42
42
|
const element = elementRegistry.addElementBorrowlend({
|
43
43
|
label: 'Leverage',
|
44
|
+
link: 'https://solana.vaultka.com/leverage',
|
45
|
+
ref: positionInfo[0].pubkey,
|
46
|
+
sourceRefs: [{ name: 'Strategy', address: strategy.pubkey.toString() }],
|
44
47
|
});
|
45
48
|
let borrowMint;
|
46
49
|
if (isLstStrategy(strategy)) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"strategyFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/strategyFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAAyE;AAEzE,iDAAsD;AACtD,+
|
1
|
+
{"version":3,"file":"strategyFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/strategyFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAE5C,2CAAyE;AAEzE,iDAAsD;AACtD,+CAA6E;AAC7E,gFAA6E;AAQ7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CACrC,sBAAU,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC1B,IAAA,iCAAwB,EACtB,UAAU,EACV,QAAQ,CAAC,kBAAkB,EAC3B,IAAI,mBAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC9B;QACE;YACE,MAAM,EAAE;gBACN,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,KAAK;aACb;SACF;KACF,CACF,CACF,CACF,CAAC;IAEF,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QACxE,OAAO,EAAE,CAAC;IAEZ,MAAM,cAAc,GAAG,MAA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