@sonarwatch/portfolio-plugins 0.14.138 → 0.14.140
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 +18 -10
- package/package.json +1 -1
- package/src/index.js +358 -639
- package/src/index.js.map +1 -1
- package/src/orphanPlatforms.d.ts +1 -0
- package/src/orphanPlatforms.js +12 -1
- package/src/orphanPlatforms.js.map +1 -1
- package/src/plugins/01/constants.js +8 -3
- package/src/plugins/01/constants.js.map +1 -1
- package/src/plugins/01/depostisFetcher.js +2 -1
- package/src/plugins/01/depostisFetcher.js.map +1 -1
- package/src/plugins/accessprotocol/constants.d.ts +1 -1
- package/src/plugins/accessprotocol/constants.js +8 -3
- package/src/plugins/accessprotocol/constants.js.map +1 -1
- package/src/plugins/adrastea/constants.js +4 -0
- package/src/plugins/adrastea/constants.js.map +1 -1
- package/src/plugins/adrena/constants.d.ts +2 -2
- package/src/plugins/adrena/constants.js +8 -3
- package/src/plugins/adrena/constants.js.map +1 -1
- package/src/plugins/allbridge/constants.js +6 -0
- package/src/plugins/allbridge/constants.js.map +1 -1
- package/src/plugins/armada-staking/constants.js +7 -0
- package/src/plugins/armada-staking/constants.js.map +1 -1
- package/src/plugins/atrix/constants.js +4 -1
- package/src/plugins/atrix/constants.js.map +1 -1
- package/src/plugins/aurory/constants.d.ts +1 -1
- package/src/plugins/aurory/constants.js +7 -2
- package/src/plugins/aurory/constants.js.map +1 -1
- package/src/plugins/banx/constants.d.ts +1 -1
- package/src/plugins/banx/constants.js +7 -2
- package/src/plugins/banx/constants.js.map +1 -1
- package/src/plugins/baskt/constants.js +3 -0
- package/src/plugins/baskt/constants.js.map +1 -1
- package/src/plugins/bluefin/index.d.ts +2 -2
- package/src/plugins/bluefin/index.js +2 -2
- package/src/plugins/bluefin/index.js.map +1 -1
- package/src/plugins/bonfida/constants.d.ts +1 -1
- package/src/plugins/bonfida/constants.js +8 -2
- package/src/plugins/bonfida/constants.js.map +1 -1
- package/src/plugins/bonkrewards/constants.d.ts +1 -1
- package/src/plugins/bonkrewards/constants.js +7 -2
- package/src/plugins/bonkrewards/constants.js.map +1 -1
- package/src/plugins/bskt/constants.d.ts +1 -1
- package/src/plugins/bskt/constants.js +7 -2
- package/src/plugins/bskt/constants.js.map +1 -1
- package/src/plugins/citrus/constants.js +3 -0
- package/src/plugins/citrus/constants.js.map +1 -1
- package/src/plugins/clone/constants.js +2 -0
- package/src/plugins/clone/constants.js.map +1 -1
- package/src/plugins/clone/depositsFetcher.js +1 -1
- package/src/plugins/clone/depositsFetcher.js.map +1 -1
- package/src/plugins/cropper/constants.d.ts +1 -0
- package/src/plugins/cropper/constants.js +9 -1
- package/src/plugins/cropper/constants.js.map +1 -1
- package/src/plugins/cyberfrogs/constants.js +2 -0
- package/src/plugins/cyberfrogs/constants.js.map +1 -1
- package/src/plugins/daos/constants.js +4 -0
- package/src/plugins/daos/constants.js.map +1 -1
- package/src/plugins/debridge/constants.d.ts +1 -1
- package/src/plugins/debridge/constants.js +8 -2
- package/src/plugins/debridge/constants.js.map +1 -1
- package/src/plugins/deepbook/index.d.ts +2 -0
- package/src/plugins/deepbook/index.js +2 -1
- package/src/plugins/deepbook/index.js.map +1 -1
- package/src/plugins/defiland/constants.d.ts +1 -1
- package/src/plugins/defiland/constants.js +7 -2
- package/src/plugins/defiland/constants.js.map +1 -1
- package/src/plugins/defituna/constants.js +3 -0
- package/src/plugins/defituna/constants.js.map +1 -1
- package/src/plugins/defituna/lendingFetcher.js +2 -0
- package/src/plugins/defituna/lendingFetcher.js.map +1 -1
- package/src/plugins/defituna/positionsFetcher.js +2 -0
- package/src/plugins/defituna/positionsFetcher.js.map +1 -1
- package/src/plugins/divvy/constants.d.ts +1 -1
- package/src/plugins/divvy/constants.js +7 -2
- package/src/plugins/divvy/constants.js.map +1 -1
- package/src/plugins/divvy/housePoolFetcher.js +2 -0
- package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
- package/src/plugins/drift/constants.d.ts +1 -1
- package/src/plugins/drift/constants.js +8 -2
- package/src/plugins/drift/constants.js.map +1 -1
- package/src/plugins/drift/depositsFetcher.js +2 -0
- package/src/plugins/drift/depositsFetcher.js.map +1 -1
- package/src/plugins/drift/index.d.ts +2 -1
- package/src/plugins/drift/index.js +3 -4
- package/src/plugins/drift/index.js.map +1 -1
- package/src/plugins/drift-market-maker-vault/constants.js +24 -1
- package/src/plugins/drift-market-maker-vault/constants.js.map +1 -1
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js +2 -0
- package/src/plugins/drift-market-maker-vault/depositsFetcher.js.map +1 -1
- package/src/plugins/elemental/constants.js +4 -0
- package/src/plugins/elemental/constants.js.map +1 -1
- package/src/plugins/elemental/depositFetcher.js +1 -1
- package/src/plugins/elemental/depositFetcher.js.map +1 -1
- package/src/plugins/ensofi/constants.js +5 -0
- package/src/plugins/ensofi/constants.js.map +1 -1
- package/src/plugins/exponent/constants.js +5 -0
- package/src/plugins/exponent/constants.js.map +1 -1
- package/src/plugins/exponent/liquidityFetcher.js +1 -1
- package/src/plugins/exponent/liquidityFetcher.js.map +1 -1
- package/src/plugins/famousfoxfederation/constants.d.ts +1 -1
- package/src/plugins/famousfoxfederation/constants.js +4 -2
- package/src/plugins/famousfoxfederation/constants.js.map +1 -1
- package/src/plugins/famousfoxfederation/stakingFetcher.js +4 -2
- package/src/plugins/famousfoxfederation/stakingFetcher.js.map +1 -1
- package/src/plugins/flash/constants.js +4 -0
- package/src/plugins/flash/constants.js.map +1 -1
- package/src/plugins/flash/perpetualFetcher.js +1 -1
- package/src/plugins/flash/perpetualFetcher.js.map +1 -1
- package/src/plugins/flash/stakeFetcher.js +12 -10
- package/src/plugins/flash/stakeFetcher.js.map +1 -1
- package/src/plugins/fluxbeam/constants.js +6 -0
- package/src/plugins/fluxbeam/constants.js.map +1 -1
- package/src/plugins/fragmetric/constants.js +10 -0
- package/src/plugins/fragmetric/constants.js.map +1 -1
- package/src/plugins/francium/constants.js +8 -1
- package/src/plugins/francium/constants.js.map +1 -1
- package/src/plugins/francium/lendingFetcher.js +1 -1
- package/src/plugins/francium/lendingFetcher.js.map +1 -1
- package/src/plugins/francium/tokens.js +2 -1
- package/src/plugins/francium/tokens.js.map +1 -1
- package/src/plugins/futarchy/constants.d.ts +1 -0
- package/src/plugins/futarchy/constants.js +7 -1
- package/src/plugins/futarchy/constants.js.map +1 -1
- package/src/plugins/genesysgo/constants.d.ts +1 -1
- package/src/plugins/genesysgo/constants.js +7 -2
- package/src/plugins/genesysgo/constants.js.map +1 -1
- package/src/plugins/goosefx/constants.d.ts +1 -1
- package/src/plugins/goosefx/constants.js +8 -4
- package/src/plugins/goosefx/constants.js.map +1 -1
- package/src/plugins/grass/constants.d.ts +1 -1
- package/src/plugins/grass/constants.js +6 -2
- package/src/plugins/grass/constants.js.map +1 -1
- package/src/plugins/grass/index.d.ts +2 -2
- package/src/plugins/grass/index.js +2 -2
- package/src/plugins/grass/index.js.map +1 -1
- package/src/plugins/hawksight/constants.js +4 -0
- package/src/plugins/hawksight/constants.js.map +1 -1
- package/src/plugins/hawksight/positionsFetcher.js +2 -2
- package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
- package/src/plugins/hedgehog/constants.js +4 -0
- package/src/plugins/hedgehog/constants.js.map +1 -1
- package/src/plugins/holdium/constants.js +2 -0
- package/src/plugins/holdium/constants.js.map +1 -1
- package/src/plugins/hxro/constants.d.ts +1 -1
- package/src/plugins/hxro/constants.js +7 -2
- package/src/plugins/hxro/constants.js.map +1 -1
- package/src/plugins/iloop/constants.js +4 -0
- package/src/plugins/iloop/constants.js.map +1 -1
- package/src/plugins/jito/constants.d.ts +2 -1
- package/src/plugins/jito/constants.js +16 -2
- package/src/plugins/jito/constants.js.map +1 -1
- package/src/plugins/jito/ticketFetcher.js +3 -1
- package/src/plugins/jito/ticketFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/constants.d.ts +2 -1
- package/src/plugins/jupiter/exchange/constants.js +8 -2
- package/src/plugins/jupiter/exchange/constants.js.map +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js +1 -1
- package/src/plugins/jupiter/exchange/dcaFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js +1 -1
- package/src/plugins/jupiter/exchange/limitFetcher.js.map +1 -1
- package/src/plugins/jupiter/exchange/perpetualFetcher.js +5 -3
- package/src/plugins/jupiter/exchange/perpetualFetcher.js.map +1 -1
- package/src/plugins/jupiter/governance/constants.js +7 -5
- package/src/plugins/jupiter/governance/constants.js.map +1 -1
- package/src/plugins/jupiter/launchpad/constants.js +7 -6
- package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
- package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.js +2 -1
- package/src/plugins/jupiter/launchpad/lfgAirdropFetcher.js.map +1 -1
- package/src/plugins/kamino/constants.d.ts +1 -1
- package/src/plugins/kamino/constants.js +20 -38
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/kamino/farmsFetcher.js +1 -1
- package/src/plugins/kamino/farmsFetcher.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +2 -2
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/layer3/constants.d.ts +1 -1
- package/src/plugins/layer3/constants.js +8 -2
- package/src/plugins/layer3/constants.js.map +1 -1
- package/src/plugins/lifinity/constants.d.ts +2 -2
- package/src/plugins/lifinity/constants.js +10 -4
- package/src/plugins/lifinity/constants.js.map +1 -1
- package/src/plugins/loopscale/constants.js +4 -0
- package/src/plugins/loopscale/constants.js.map +1 -1
- package/src/plugins/lulo/constants.js +5 -0
- package/src/plugins/lulo/constants.js.map +1 -1
- package/src/plugins/magiceden/constants.d.ts +1 -1
- package/src/plugins/magiceden/constants.js +8 -3
- package/src/plugins/magiceden/constants.js.map +1 -1
- package/src/plugins/magiceden/index.d.ts +2 -2
- package/src/plugins/magiceden/index.js +2 -2
- package/src/plugins/magiceden/index.js.map +1 -1
- package/src/plugins/mango/collateralFetcher.js +1 -1
- package/src/plugins/mango/collateralFetcher.js.map +1 -1
- package/src/plugins/mango/constants.js +9 -2
- package/src/plugins/mango/constants.js.map +1 -1
- package/src/plugins/mango/redeemFetcher.js +2 -1
- package/src/plugins/mango/redeemFetcher.js.map +1 -1
- package/src/plugins/marginfi/constants.js +6 -0
- package/src/plugins/marginfi/constants.js.map +1 -1
- package/src/plugins/marginfi/depositsFetcher.js +2 -2
- package/src/plugins/marginfi/depositsFetcher.js.map +1 -1
- package/src/plugins/marinade/constants.d.ts +2 -1
- package/src/plugins/marinade/constants.js +9 -2
- package/src/plugins/marinade/constants.js.map +1 -1
- package/src/plugins/marinade/index.d.ts +2 -0
- package/src/plugins/marinade/index.js +2 -1
- package/src/plugins/marinade/index.js.map +1 -1
- package/src/plugins/metaplex/constants.js +5 -0
- package/src/plugins/metaplex/constants.js.map +1 -1
- package/src/plugins/meteora/constants.js +5 -0
- package/src/plugins/meteora/constants.js.map +1 -1
- package/src/plugins/meteora/dlmmVaultsFetcher.js +1 -1
- package/src/plugins/meteora/dlmmVaultsFetcher.js.map +1 -1
- package/src/plugins/meteora/farmsFetcher.js +1 -1
- package/src/plugins/meteora/farmsFetcher.js.map +1 -1
- package/src/plugins/meteora/stakeForFeeFetcher.js +2 -0
- package/src/plugins/meteora/stakeForFeeFetcher.js.map +1 -1
- package/src/plugins/moonwalk/constants.js +4 -1
- package/src/plugins/moonwalk/constants.js.map +1 -1
- package/src/plugins/nosana/constants.js +6 -1
- package/src/plugins/nosana/constants.js.map +1 -1
- package/src/plugins/nxfinance/constants.js +1 -0
- package/src/plugins/nxfinance/constants.js.map +1 -1
- package/src/plugins/nxfinance/positionsFetcher.js +2 -0
- package/src/plugins/nxfinance/positionsFetcher.js.map +1 -1
- package/src/plugins/nxfinance/stakingFetcher.js.map +1 -1
- package/src/plugins/orca/constants.js +7 -0
- package/src/plugins/orca/constants.js.map +1 -1
- package/src/plugins/orca/getWhirlpoolPositions.js +2 -0
- package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
- package/src/plugins/parcl/constants.d.ts +1 -1
- package/src/plugins/parcl/constants.js +7 -2
- package/src/plugins/parcl/constants.js.map +1 -1
- package/src/plugins/parcl/index.d.ts +2 -1
- package/src/plugins/parcl/index.js +3 -4
- package/src/plugins/parcl/index.js.map +1 -1
- package/src/plugins/perena/constants.js +5 -0
- package/src/plugins/perena/constants.js.map +1 -1
- package/src/plugins/phoenix/constants.js +4 -0
- package/src/plugins/phoenix/constants.js.map +1 -1
- package/src/plugins/photofinish/constants.d.ts +1 -1
- package/src/plugins/photofinish/constants.js +5 -2
- package/src/plugins/photofinish/constants.js.map +1 -1
- package/src/plugins/picasso/constants.js +7 -0
- package/src/plugins/picasso/constants.js.map +1 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js +2 -2
- package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
- package/src/plugins/pluto/constants.js +5 -0
- package/src/plugins/pluto/constants.js.map +1 -1
- package/src/plugins/port/constants.js +3 -0
- package/src/plugins/port/constants.js.map +1 -1
- package/src/plugins/port/obligationsFetcher.js +2 -0
- package/src/plugins/port/obligationsFetcher.js.map +1 -1
- package/src/plugins/pudgypenguins/constants.d.ts +1 -1
- package/src/plugins/pudgypenguins/constants.js +4 -2
- package/src/plugins/pudgypenguins/constants.js.map +1 -1
- package/src/plugins/pyth/constants.d.ts +1 -1
- package/src/plugins/pyth/constants.js +7 -2
- package/src/plugins/pyth/constants.js.map +1 -1
- package/src/plugins/pyth/pricingJob.js +2 -1
- package/src/plugins/pyth/pricingJob.js.map +1 -1
- package/src/plugins/quarry/constants.js +2 -0
- package/src/plugins/quarry/constants.js.map +1 -1
- package/src/plugins/quarry/positionsFetcher.js +1 -1
- package/src/plugins/quarry/positionsFetcher.js.map +1 -1
- package/src/plugins/rain/constants.js +5 -0
- package/src/plugins/rain/constants.js.map +1 -1
- package/src/plugins/ratex/constants.js +5 -0
- package/src/plugins/ratex/constants.js.map +1 -1
- package/src/plugins/ratex/positionsFetcher.js +1 -1
- package/src/plugins/ratex/positionsFetcher.js.map +1 -1
- package/src/plugins/raydium/constants.d.ts +1 -1
- package/src/plugins/raydium/constants.js +8 -2
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/raydium/farmsFetcher.js +2 -0
- package/src/plugins/raydium/farmsFetcher.js.map +1 -1
- package/src/plugins/saber/constants.js +1 -0
- package/src/plugins/saber/constants.js.map +1 -1
- package/src/plugins/saber/index.d.ts +2 -0
- package/src/plugins/saber/index.js +2 -1
- package/src/plugins/saber/index.js.map +1 -1
- package/src/plugins/sanctum/constants.d.ts +1 -1
- package/src/plugins/sanctum/constants.js +7 -2
- package/src/plugins/sanctum/constants.js.map +1 -1
- package/src/plugins/sandglass/constants.js +2 -0
- package/src/plugins/sandglass/constants.js.map +1 -1
- package/src/plugins/sandglass/depositFetcher.js +1 -1
- package/src/plugins/sandglass/depositFetcher.js.map +1 -1
- package/src/plugins/save/constants.d.ts +1 -1
- package/src/plugins/save/constants.js +8 -2
- package/src/plugins/save/constants.js.map +1 -1
- package/src/plugins/save/obligationsFetcher.js +2 -2
- package/src/plugins/save/obligationsFetcher.js.map +1 -1
- package/src/plugins/sharky/constants.js +4 -0
- package/src/plugins/sharky/constants.js.map +1 -1
- package/src/plugins/solayer/constants.d.ts +4 -4
- package/src/plugins/solayer/constants.js +12 -6
- package/src/plugins/solayer/constants.js.map +1 -1
- package/src/plugins/solayer/index.d.ts +2 -2
- package/src/plugins/solayer/index.js +2 -2
- package/src/plugins/solayer/index.js.map +1 -1
- package/src/plugins/sonic/constants.d.ts +1 -1
- package/src/plugins/sonic/constants.js +7 -2
- package/src/plugins/sonic/constants.js.map +1 -1
- package/src/plugins/sonic/index.d.ts +2 -2
- package/src/plugins/sonic/index.js +2 -2
- package/src/plugins/sonic/index.js.map +1 -1
- package/src/plugins/spdr/constants.d.ts +1 -1
- package/src/plugins/spdr/constants.js +8 -2
- package/src/plugins/spdr/constants.js.map +1 -1
- package/src/plugins/stabble/constants.js +6 -0
- package/src/plugins/stabble/constants.js.map +1 -1
- package/src/plugins/staratlas/constants.d.ts +2 -2
- package/src/plugins/staratlas/constants.js +9 -3
- package/src/plugins/staratlas/constants.js.map +1 -1
- package/src/plugins/streamflow/constants.d.ts +1 -1
- package/src/plugins/streamflow/constants.js +8 -2
- package/src/plugins/streamflow/constants.js.map +1 -1
- package/src/plugins/suilend/index.d.ts +2 -2
- package/src/plugins/suilend/index.js +2 -2
- package/src/plugins/suilend/index.js.map +1 -1
- package/src/plugins/suins/index.d.ts +2 -2
- package/src/plugins/suins/index.js +2 -2
- package/src/plugins/suins/index.js.map +1 -1
- package/src/plugins/switchboard/constants.d.ts +2 -0
- package/src/plugins/switchboard/constants.js +14 -1
- package/src/plugins/switchboard/constants.js.map +1 -1
- package/src/plugins/switchboard/index.d.ts +2 -0
- package/src/plugins/switchboard/index.js +3 -1
- package/src/plugins/switchboard/index.js.map +1 -1
- package/src/plugins/symmetry/constants.js +6 -0
- package/src/plugins/symmetry/constants.js.map +1 -1
- package/src/plugins/tensor/constants.d.ts +1 -1
- package/src/plugins/tensor/constants.js +7 -2
- package/src/plugins/tensor/constants.js.map +1 -1
- package/src/plugins/tensor/index.d.ts +3 -1
- package/src/plugins/tensor/index.js +3 -2
- package/src/plugins/tensor/index.js.map +1 -1
- package/src/plugins/texture/constants.js +5 -1
- package/src/plugins/texture/constants.js.map +1 -1
- package/src/plugins/thevault/constants.js +5 -0
- package/src/plugins/thevault/constants.js.map +1 -1
- package/src/plugins/top-tokens/index.d.ts +4 -0
- package/src/plugins/top-tokens/index.js +3 -1
- package/src/plugins/top-tokens/index.js.map +1 -1
- package/src/plugins/triad/constants.js +6 -0
- package/src/plugins/triad/constants.js.map +1 -1
- package/src/plugins/tulip/constants.d.ts +1 -1
- package/src/plugins/tulip/constants.js +10 -2
- package/src/plugins/tulip/constants.js.map +1 -1
- package/src/plugins/tulip/depositsFetcher.js +1 -1
- package/src/plugins/tulip/depositsFetcher.js.map +1 -1
- package/src/plugins/uniswap-v2/index.d.ts +2 -0
- package/src/plugins/uniswap-v2/index.js +2 -1
- package/src/plugins/uniswap-v2/index.js.map +1 -1
- package/src/plugins/uxd/constants.d.ts +1 -1
- package/src/plugins/uxd/constants.js +9 -2
- package/src/plugins/uxd/constants.js.map +1 -1
- package/src/plugins/vaultka/constants.js +5 -0
- package/src/plugins/vaultka/constants.js.map +1 -1
- package/src/plugins/vaultka/lendingFetcher.js +1 -1
- package/src/plugins/vaultka/lendingFetcher.js.map +1 -1
- package/src/plugins/vaultka/strategyFetcher.js +1 -1
- package/src/plugins/vaultka/strategyFetcher.js.map +1 -1
- package/src/plugins/whalesmarket/constants.js +5 -0
- package/src/plugins/whalesmarket/constants.js.map +1 -1
- package/src/plugins/wormhole/constants.d.ts +1 -1
- package/src/plugins/wormhole/constants.js +8 -2
- package/src/plugins/wormhole/constants.js.map +1 -1
- package/src/plugins/zelo/constants.js +4 -1
- package/src/plugins/zelo/constants.js.map +1 -1
- package/src/plugins/zeta/airdropFetcher.d.ts +1 -2
- package/src/plugins/zeta/airdropFetcher.js +14 -16
- package/src/plugins/zeta/airdropFetcher.js.map +1 -1
- package/src/plugins/zeta/constants.d.ts +1 -1
- package/src/plugins/zeta/constants.js +9 -2
- package/src/plugins/zeta/constants.js.map +1 -1
- package/src/plugins/zeta/index.d.ts +2 -2
- package/src/plugins/zeta/index.js +2 -2
- package/src/plugins/zeta/index.js.map +1 -1
- package/src/plugins/zeus/constants.d.ts +5 -0
- package/src/plugins/zeus/constants.js +25 -0
- package/src/plugins/zeus/constants.js.map +1 -0
- package/src/plugins/zeus/delegationsFetcher.d.ts +3 -0
- package/src/plugins/zeus/delegationsFetcher.js +83 -0
- package/src/plugins/zeus/delegationsFetcher.js.map +1 -0
- package/src/plugins/zeus/index.d.ts +6 -0
- package/src/plugins/zeus/index.js +12 -0
- package/src/plugins/zeus/index.js.map +1 -0
- package/src/plugins/zeus/structs.d.ts +29 -0
- package/src/plugins/zeus/structs.js +30 -0
- package/src/plugins/zeus/structs.js.map +1 -0
- package/src/utils/clients/getClientSolana.d.ts +7 -1
- package/src/utils/clients/getClientSolana.js +2 -1
- package/src/utils/clients/getClientSolana.js.map +1 -1
- package/src/utils/misc/checkComputeAndStoreTokensPrices.js +4 -2
- package/src/utils/misc/checkComputeAndStoreTokensPrices.js.map +1 -1
- package/src/utils/solana/getProgramAccounts.js +0 -1
- package/src/utils/solana/getProgramAccounts.js.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/triad/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EACH,2EAA2E;IAC7E,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,uBAAuB;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/triad/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EACH,2EAA2E;IAC7E,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,uBAAuB;IAChC,aAAa,EAAE,0BAA0B;IACzC,QAAQ,EAAE,uBAAuB;IACjC,MAAM,EAAE,6BAA6B;IACrC,OAAO,EAAE,2BAA2B;IACpC,WAAW,EACT,yEAAyE;IAC3E,MAAM,EAAE,CAAC,6CAA6C,CAAC;CACxD,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,eAAe,GAAG,SAAS,CAAC"}
|
@@ -2,11 +2,11 @@
|
|
2
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
3
|
import { PublicKey } from '@solana/web3.js';
|
4
4
|
import { Platform } from '@sonarwatch/portfolio-core';
|
5
|
+
export declare const tulipMint = "TuLipcqtGVXP9XR62wM8WWCm6a9vhLs7T1uoWBk6FDs";
|
5
6
|
export declare const platformId = "tulip";
|
6
7
|
export declare const platform: Platform;
|
7
8
|
export declare const tulipV2ProgramId: PublicKey;
|
8
9
|
export declare const tulipLendingProgramId: PublicKey;
|
9
10
|
export declare const leverageProgramId: PublicKey;
|
10
|
-
export declare const tulipMint = "TuLipcqtGVXP9XR62wM8WWCm6a9vhLs7T1uoWBk6FDs";
|
11
11
|
export declare const tulipDecimals = 6;
|
12
12
|
export declare const vaultsKey = "vaults";
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.vaultsKey = exports.tulipDecimals = exports.
|
3
|
+
exports.vaultsKey = exports.tulipDecimals = exports.leverageProgramId = exports.tulipLendingProgramId = exports.tulipV2ProgramId = exports.platform = exports.platformId = exports.tulipMint = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.tulipMint = 'TuLipcqtGVXP9XR62wM8WWCm6a9vhLs7T1uoWBk6FDs';
|
5
6
|
exports.platformId = 'tulip';
|
6
7
|
exports.platform = {
|
7
8
|
id: exports.platformId,
|
@@ -10,11 +11,18 @@ exports.platform = {
|
|
10
11
|
defiLlamaId: 'tulip-protocol',
|
11
12
|
website: 'https://tulip.garden/',
|
12
13
|
twitter: 'https://twitter.com/TulipProtocol',
|
14
|
+
isDeprecated: true,
|
15
|
+
documentation: 'https://tulip-protocol.gitbook.io/tulip-protocol',
|
16
|
+
discord: 'https://discord.gg/tulipgarden',
|
17
|
+
telegram: 'https://t.me/TulipProtocol',
|
18
|
+
medium: 'https://medium.com/tulipprotocol',
|
19
|
+
github: 'https://github.com/sol-farm',
|
20
|
+
tokens: [exports.tulipMint],
|
21
|
+
description: 'The Efficient Solana Yield Aggregator',
|
13
22
|
};
|
14
23
|
exports.tulipV2ProgramId = new web3_js_1.PublicKey('TLPv2tuSVvn3fSk8RgW3yPddkp5oFivzZV3rA9hQxtX');
|
15
24
|
exports.tulipLendingProgramId = new web3_js_1.PublicKey('4bcFeLv4nydFrsZqV5CgwCVrPhkQKsXtzfy2KyMz7ozM');
|
16
25
|
exports.leverageProgramId = new web3_js_1.PublicKey('Bt2WPMmbwHPk36i4CRucNDyLcmoGdC7xEdrVuxgJaNE6');
|
17
|
-
exports.tulipMint = 'TuLipcqtGVXP9XR62wM8WWCm6a9vhLs7T1uoWBk6FDs';
|
18
26
|
exports.tulipDecimals = 6;
|
19
27
|
exports.vaultsKey = 'vaults';
|
20
28
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EACH,2EAA2E;IAC7E,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,mCAAmC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,SAAS,GAAG,6CAA6C,CAAC;AAC1D,QAAA,UAAU,GAAG,OAAO,CAAC;AACrB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,OAAO;IACb,KAAK,EACH,2EAA2E;IAC7E,WAAW,EAAE,gBAAgB;IAC7B,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,mCAAmC;IAC5C,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,kDAAkD;IACjE,OAAO,EAAE,gCAAgC;IACzC,QAAQ,EAAE,4BAA4B;IACtC,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,6BAA6B;IACrC,MAAM,EAAE,CAAC,iBAAS,CAAC;IACnB,WAAW,EAAE,uCAAuC;CACrD,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,qBAAqB,GAAG,IAAI,mBAAS,CAChD,8CAA8C,CAC/C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAI,mBAAS,CAC5C,8CAA8C,CAC/C,CAAC;AAEW,QAAA,aAAa,GAAG,CAAC,CAAC;AAClB,QAAA,SAAS,GAAG,QAAQ,CAAC"}
|
@@ -29,7 +29,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
29
29
|
networkId: portfolio_core_1.NetworkId.solana,
|
30
30
|
});
|
31
31
|
if (!vaults)
|
32
|
-
|
32
|
+
throw new Error('Vaults not cached');
|
33
33
|
const tokenPriceById = yield cache.getTokenPricesAsMap(vaults.map((vault) => vault.base.sharesMint.toString()), portfolio_core_1.NetworkId.solana);
|
34
34
|
const vaultById = new Map();
|
35
35
|
vaults.forEach((vault) => vaultById.set(vault.pubkey.toString(), vault));
|
@@ -1 +1 @@
|
|
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,
|
1
|
+
{"version":3,"file":"depositsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/depositsFetcher.ts"],"names":[],"mappings":"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"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.fetchers = exports.jobs = void 0;
|
3
|
+
exports.platforms = exports.fetchers = exports.jobs = void 0;
|
4
4
|
// import { NetworkId } from '@sonarwatch/portfolio-core';
|
5
5
|
// import { theGraphUrl } from './constants';
|
6
6
|
// import getPoolsJob from './getPoolsJob';
|
@@ -12,4 +12,5 @@ exports.jobs = [
|
|
12
12
|
exports.fetchers = [
|
13
13
|
// getPositionsV2Fetcher(NetworkId.ethereum, platformId, 'V2'),
|
14
14
|
];
|
15
|
+
exports.platforms = [];
|
15
16
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/index.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uniswap-v2/index.ts"],"names":[],"mappings":";;;AAGA,0DAA0D;AAC1D,6CAA6C;AAC7C,2CAA2C;AAC3C,qDAAqD;AACrD,+DAA+D;AAElD,QAAA,IAAI,GAAU;AACzB,kEAAkE;CACnE,CAAC;AACW,QAAA,QAAQ,GAAc;AACjC,+DAA+D;CAChE,CAAC;AAEW,QAAA,SAAS,GAAe,EAAE,CAAC"}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
import { PublicKey } from '@solana/web3.js';
|
4
4
|
import { Platform } from '@sonarwatch/portfolio-core';
|
5
5
|
import BigNumber from 'bignumber.js';
|
6
|
+
export declare const uxpMint = "UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M";
|
6
7
|
export declare const platformId = "uxd";
|
7
8
|
export declare const platform: Platform;
|
8
9
|
export declare const stakingProgramId: PublicKey;
|
9
|
-
export declare const uxpMint = "UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M";
|
10
10
|
export declare const uxpDecimal = 9;
|
11
11
|
export declare const uxpFactor: BigNumber;
|
@@ -3,9 +3,10 @@ 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.uxpFactor = exports.uxpDecimal = exports.
|
6
|
+
exports.uxpFactor = exports.uxpDecimal = exports.stakingProgramId = exports.platform = exports.platformId = exports.uxpMint = void 0;
|
7
7
|
const web3_js_1 = require("@solana/web3.js");
|
8
8
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
9
|
+
exports.uxpMint = 'UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M';
|
9
10
|
exports.platformId = 'uxd';
|
10
11
|
exports.platform = {
|
11
12
|
id: exports.platformId,
|
@@ -14,9 +15,15 @@ exports.platform = {
|
|
14
15
|
defiLlamaId: 'uxd', // from https://defillama.com/docs/api
|
15
16
|
website: 'https://uxd.fi/',
|
16
17
|
twitter: 'https://twitter.com/UXDProtocol',
|
18
|
+
isDeprecated: true,
|
19
|
+
tokens: [exports.uxpMint, '7kbnvuGBxxj8AG9qp8Scn56muWGaRaFqxg1FsRp3PaFT'],
|
20
|
+
github: 'https://github.com/uxdprotocol',
|
21
|
+
medium: 'https://uxdprotocol.medium.com/',
|
22
|
+
documentation: 'https://docs.uxd.fi/uxdprotocol',
|
23
|
+
discord: 'https://discord.gg/CAuFvvd5qw',
|
24
|
+
description: 'Decentralized stablecoin stabilized by an asset liability management module',
|
17
25
|
};
|
18
26
|
exports.stakingProgramId = new web3_js_1.PublicKey('UXDSkps5NR8Lu1HB5uPLFfuB34hZ6DCk7RhYZZtGzbF');
|
19
|
-
exports.uxpMint = 'UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M';
|
20
27
|
exports.uxpDecimal = 9;
|
21
28
|
exports.uxpFactor = new bignumber_js_1.default(Math.pow(10, exports.uxpDecimal));
|
22
29
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAE5C,gEAAqC;AAExB,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,KAAK;IACX,KAAK,EACH,yEAAyE;IAC3E,WAAW,EAAE,KAAK,EAAE,sCAAsC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iCAAiC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAE5C,gEAAqC;AAExB,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,KAAK;IACX,KAAK,EACH,yEAAyE;IAC3E,WAAW,EAAE,KAAK,EAAE,sCAAsC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iCAAiC;IAC1C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC,eAAO,EAAE,8CAA8C,CAAC;IACjE,MAAM,EAAE,gCAAgC;IACxC,MAAM,EAAE,iCAAiC;IACzC,aAAa,EAAE,iCAAiC;IAChD,OAAO,EAAE,+BAA+B;IACxC,WAAW,EACT,6EAA6E;CAChF,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,UAAU,GAAG,CAAC,CAAC;AACf,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,kBAAU,CAAA,CAAC,CAAC"}
|
@@ -10,7 +10,12 @@ exports.platform = {
|
|
10
10
|
image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/vaultka.webp',
|
11
11
|
website: 'https://solana.vaultka.com/',
|
12
12
|
twitter: 'https://x.com/Vaultkaofficial',
|
13
|
+
discord: 'https://discord.com/invite/hXagEmhN8F',
|
13
14
|
defiLlamaId: 'vaultka', // from https://defillama.com/docs/api
|
15
|
+
documentation: 'https://docs.vaultka.com/',
|
16
|
+
medium: 'https://medium.com/@Vaultka',
|
17
|
+
github: 'https://github.com/Vaultka-Project',
|
18
|
+
description: 'Liquidity optimization layer for yield bearing tokens.',
|
14
19
|
};
|
15
20
|
exports.lendingsCacheKey = `lendings`;
|
16
21
|
exports.lendingProgramIds = [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,uCAKmB;AAEN,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EACH,6EAA6E;IAC/E,OAAO,EAAE,6BAA6B;IACtC,OAAO,EAAE,+BAA+B;IACxC,WAAW,EAAE,SAAS,EAAE,sCAAsC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE5C,uCAKmB;AAEN,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,SAAS;IACf,KAAK,EACH,6EAA6E;IAC/E,OAAO,EAAE,6BAA6B;IACtC,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,uCAAuC;IAChD,WAAW,EAAE,SAAS,EAAE,sCAAsC;IAC9D,aAAa,EAAE,2BAA2B;IAC1C,MAAM,EAAE,6BAA6B;IACrC,MAAM,EAAE,oCAAoC;IAC5C,WAAW,EAAE,wDAAwD;CACtE,CAAC;AAEW,QAAA,gBAAgB,GAAG,UAAU,CAAC;AAE9B,QAAA,iBAAiB,GAAG;IAC/B,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;IAC7D,IAAI,mBAAS,CAAC,6CAA6C,CAAC;IAC5D,IAAI,mBAAS,CAAC,8CAA8C,CAAC;CAC9D,CAAC;AAEW,QAAA,kBAAkB,GAAG,YAAY,CAAC;AAElC,QAAA,UAAU,GAAmB;IACxC;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAd,wBAAc;QACd,kBAAkB,EAAlB,4BAAkB;KACnB;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAd,wBAAc;QACd,kBAAkB,EAAlB,4BAAkB;KACnB;IACD;QACE,MAAM,EAAE,6CAA6C;QACrD,cAAc,EAAd,wBAAc;QACd,kBAAkB,EAAlB,4BAAkB;KACnB;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAd,wBAAc;QACd,kBAAkB,EAAlB,4BAAkB;KACnB;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAE,2BAAiB;QACjC,kBAAkB,EAAE,+BAAqB;KAC1C;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAE,2BAAiB;QACjC,kBAAkB,EAAE,+BAAqB;KAC1C;IACD;QACE,MAAM,EAAE,8CAA8C;QACtD,cAAc,EAAE,2BAAiB;QACjC,kBAAkB,EAAE,+BAAqB;KAC1C;CACF,CAAC"}
|
@@ -30,7 +30,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
30
30
|
networkId: portfolio_core_1.NetworkId.solana,
|
31
31
|
});
|
32
32
|
if (!lendings)
|
33
|
-
|
33
|
+
throw new Error('Lendings not cached');
|
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',
|
@@ -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,+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;
|
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;IACF,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAEtD,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"}
|
@@ -32,7 +32,7 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
|
|
32
32
|
networkId: portfolio_core_1.NetworkId.solana,
|
33
33
|
});
|
34
34
|
if (!strategiesInfo)
|
35
|
-
|
35
|
+
throw new Error('Strategies not cached');
|
36
36
|
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
37
37
|
positionInfos.forEach((positionInfo, i) => {
|
38
38
|
if (positionInfo[0] &&
|
@@ -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,+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,MAAM,KAAK,CAAC,OAAO,CAExC,8BAAkB,EAAE;QACpB,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"strategyFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/vaultka/strategyFetcher.ts"],"names":[],"mappings":"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"}
|
@@ -10,6 +10,11 @@ exports.platform = {
|
|
10
10
|
defiLlamaId: 'whales-market', // from https://defillama.com/docs/api
|
11
11
|
website: 'https://app.whales.market/',
|
12
12
|
twitter: 'https://twitter.com/WhalesMarket',
|
13
|
+
tokens: ['GTH3wG3NErjwcf7VGCoXEXkgXSHvYhx5gtATeeM5JAS1'],
|
14
|
+
discord: 'https://discord.com/invite/whalesmarket',
|
15
|
+
documentation: 'https://docs.whales.market/',
|
16
|
+
github: 'https://github.com/Whales-Market/',
|
17
|
+
description: 'Trade like a pro with advanced tools and features at your fingertips',
|
13
18
|
};
|
14
19
|
exports.pid = new web3_js_1.PublicKey('stPdYNaJNsV3ytS9Xtx4GXXXRcVqVS6x66ZFa26K39S');
|
15
20
|
exports.whalesApi = 'https://api.whales.market/v2/tokens';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,cAAc,CAAC;AAC5B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EACH,kFAAkF;IACpF,WAAW,EAAE,eAAe,EAAE,sCAAsC;IACpE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/whalesmarket/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,cAAc,CAAC;AAC5B,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,eAAe;IACrB,KAAK,EACH,kFAAkF;IACpF,WAAW,EAAE,eAAe,EAAE,sCAAsC;IACpE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;IAC3C,MAAM,EAAE,CAAC,8CAA8C,CAAC;IACxD,OAAO,EAAE,yCAAyC;IAClD,aAAa,EAAE,6BAA6B;IAC5C,MAAM,EAAE,mCAAmC;IAC3C,WAAW,EACT,sEAAsE;CACzE,CAAC;AAEW,QAAA,GAAG,GAAG,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAAC;AACnE,QAAA,SAAS,GAAG,qCAAqC,CAAC;AAElD,QAAA,SAAS,GAAG,QAAQ,CAAC;AACrB,QAAA,YAAY,GAAG,WAAW,CAAC"}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
3
|
import { Platform } from '@sonarwatch/portfolio-core';
|
4
4
|
import { PublicKey } from '@solana/web3.js';
|
5
|
+
export declare const wMint = "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ";
|
5
6
|
export declare const platformId = "wormhole";
|
6
7
|
export declare const platform: Platform;
|
7
8
|
export declare const apiUrl = "https://prod-flat-files-min.wormhole.com/";
|
8
|
-
export declare const wMint = "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ";
|
9
9
|
export declare const stakingProgramId: PublicKey;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.stakingProgramId = exports.
|
3
|
+
exports.stakingProgramId = exports.apiUrl = exports.platform = exports.platformId = exports.wMint = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.wMint = '85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ';
|
5
6
|
exports.platformId = 'wormhole';
|
6
7
|
exports.platform = {
|
7
8
|
id: exports.platformId,
|
@@ -9,8 +10,13 @@ exports.platform = {
|
|
9
10
|
image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/wormhole.webp',
|
10
11
|
website: 'https://w.wormhole.com/',
|
11
12
|
twitter: 'https://twitter.com/wormhole',
|
13
|
+
discord: 'https://discord.com/invite/wormholecrypto',
|
14
|
+
telegram: 'https://t.me/wormholecrypto',
|
15
|
+
github: 'https://github.com/wormhole-foundation',
|
16
|
+
documentation: 'https://wormhole.com/docs/',
|
17
|
+
description: 'Future-proof, permissionless tooling to empower multichain builders',
|
18
|
+
tokens: [exports.wMint],
|
12
19
|
};
|
13
20
|
exports.apiUrl = 'https://prod-flat-files-min.wormhole.com/';
|
14
|
-
exports.wMint = '85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ';
|
15
21
|
exports.stakingProgramId = new web3_js_1.PublicKey('sspu65omPW2zJGWDxmx8btqxudHezoQHSGZmnW8jbVz');
|
16
22
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,8BAA8B;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/wormhole/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,KAAK,GAAG,8CAA8C,CAAC;AACvD,QAAA,UAAU,GAAG,UAAU,CAAC;AACxB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,UAAU;IAChB,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,yBAAyB;IAClC,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,2CAA2C;IACpD,QAAQ,EAAE,6BAA6B;IACvC,MAAM,EAAE,wCAAwC;IAChD,aAAa,EAAE,4BAA4B;IAC3C,WAAW,EACT,qEAAqE;IACvE,MAAM,EAAE,CAAC,aAAK,CAAC;CAChB,CAAC;AAEW,QAAA,MAAM,GAAG,2CAA2C,CAAC;AAErD,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC"}
|
@@ -9,7 +9,10 @@ exports.platform = {
|
|
9
9
|
image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/zelo.webp',
|
10
10
|
website: 'https://www.zelofi.io/',
|
11
11
|
twitter: 'https://x.com/zelofinance',
|
12
|
-
|
12
|
+
documentation: 'https://blocksmithlabs-1.gitbook.io/zelo-docs',
|
13
|
+
discord: 'https://discord.gg/blocksmithlabs',
|
14
|
+
github: 'https://github.com/Blocksmith-Labs',
|
15
|
+
description: "Solana's Lossless Lottery Savings Protocol ",
|
13
16
|
};
|
14
17
|
exports.programId = new web3_js_1.PublicKey('3weDTR2PBop8SoYXpQEhdRCA9Wr2JK7gj3CxuUbMo2VJ');
|
15
18
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zelo/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EACH,0EAA0E;IAC5E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,2BAA2B;IACpC,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zelo/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,cAAc;IACpB,KAAK,EACH,0EAA0E;IAC5E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,2BAA2B;IACpC,aAAa,EAAE,+CAA+C;IAC9D,OAAO,EAAE,mCAAmC;IAC5C,MAAM,EAAE,oCAAoC;IAC5C,WAAW,EAAE,6CAA6C;CAC3D,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,8CAA8C,CAC/C,CAAC"}
|
@@ -40,22 +40,21 @@ const clients_1 = require("../../utils/clients");
|
|
40
40
|
const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAccountsInfoSafe");
|
41
41
|
const helpers_1 = require("./helpers");
|
42
42
|
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
query GetAirdropFinalFrontend($authority: String!) {
|
45
|
-
getAirdropFinalFrontend(authority: $authority) {
|
46
|
-
authority
|
47
|
-
community_allocation
|
48
|
-
eligibility
|
49
|
-
main_allocation
|
50
|
-
og_allocation
|
51
|
-
s1_allocation
|
52
|
-
s2_allocation
|
53
|
-
total_allocation
|
54
|
-
__typename
|
55
|
-
}
|
56
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
45
|
+
getAirdropFinalFrontend(authority: $authority) {
|
46
|
+
authority
|
47
|
+
community_allocation
|
48
|
+
eligibility
|
49
|
+
main_allocation
|
50
|
+
og_allocation
|
51
|
+
s1_allocation
|
52
|
+
s2_allocation
|
53
|
+
total_allocation
|
54
|
+
__typename
|
55
|
+
}
|
56
|
+
}
|
57
57
|
`;
|
58
|
-
const networkId = portfolio_core_1.NetworkId.solana;
|
59
58
|
const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
60
59
|
const res = yield (0, graphql_request_1.default)(constants_1.graphqlApi, query, {
|
61
60
|
authority: owner,
|
@@ -92,7 +91,6 @@ const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
|
92
91
|
const claimStatuses = (0, helpers_1.deriveZetaClaimStatuses)(owner, constants_1.distributors);
|
93
92
|
const client = (0, clients_1.getClientSolana)();
|
94
93
|
const claimStatusesAccount = yield (0, getMultipleAccountsInfoSafe_1.getMultipleAccountsInfoSafe)(client, claimStatuses);
|
95
|
-
console.log('constexecutor:AirdropFetcherExecutor= ~ claimStatusesAccount:', claimStatusesAccount);
|
96
94
|
if (claimStatusesAccount.some((account) => account))
|
97
95
|
return (0, AirdropFetcher_1.getAirdropRaw)({
|
98
96
|
statics: constants_1.airdropStatics,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
1
|
+
{"version":3,"file":"airdropFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/airdropFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,mEAA+C;AAC/C,2CAMqB;AAErB,iDAAsD;AACtD,gGAA6F;AAC7F,uCAAoD;AACpD,yDAK8B;AAE9B,MAAM,KAAK,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;CAchB,CAAC;AAEF,MAAM,QAAQ,GAA2B,CAAO,KAAa,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAO,EACvB,sBAAU,EACV,KAAK,EACL;QACE,SAAS,EAAE,KAAK;KACjB,EACD;QACE,MAAM,EAAE,4BAA4B;QACpC,QAAQ,EAAE,6BAA6B;QACvC,WAAW,EAAE,gCAAgC;KAC9C,CACF,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IACpB,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,uBAAuB;QACtC,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,CAAC;oBACT,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,mBAAO;iBACjB;aACF;SACF,CAAC,CAAC;IAEL,MAAM,MAAM,GAAG,GAAG,CAAC,uBAAuB,CAAC,gBAAgB,CAAC;IAC5D,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,CAAC;QACzB,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,KAAK,EAAE;gBACL;oBACE,MAAM,EAAE,CAAC;oBACT,SAAS,EAAE,KAAK;oBAChB,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,mBAAO;iBACjB;aACF;SACF,CAAC,CAAC;IAEL,MAAM,aAAa,GAAG,IAAA,iCAAuB,EAAC,KAAK,EAAE,wBAAY,CAAC,CAAC;IAEnE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,oBAAoB,GAAG,MAAM,IAAA,yDAA2B,EAC5D,MAAM,EACN,aAAa,CACd,CAAC;IAEF,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;QACjD,OAAO,IAAA,8BAAa,EAAC;YACnB,OAAO,EAAE,0BAAc;YACvB,KAAK,EAAE;gBACL;oBACE,MAAM;oBACN,SAAS,EAAE,IAAI;oBACf,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE,mBAAO;iBACjB;aACF;SACF,CAAC,CAAC;IAEL,OAAO,IAAA,8BAAa,EAAC;QACnB,OAAO,EAAE,0BAAc;QACvB,KAAK,EAAE;YACL;gBACE,MAAM;gBACN,SAAS,EAAE,KAAK;gBAChB,KAAK,EAAE,KAAK;gBACZ,OAAO,EAAE,mBAAO;aACjB;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AAEW,QAAA,cAAc,GAAmB;IAC5C,EAAE,EAAE,0BAAc,CAAC,EAAE;IACrB,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,wCAAuB,EAC5C,sBAAc,EACd,oBAAQ,CAAC,EAAE,EACX,cAAc,EACd,0BAAc,CAAC,QAAQ,CACxB,CAAC"}
|
@@ -4,12 +4,12 @@ import { PublicKey } from '@solana/web3.js';
|
|
4
4
|
import { Platform } from '@sonarwatch/portfolio-core';
|
5
5
|
import { IdlItem } from '@solanafm/explorer-kit-idls';
|
6
6
|
import { AirdropStatics } from '../../AirdropFetcher';
|
7
|
+
export declare const zexMint = "ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo";
|
7
8
|
export declare const platformId = "zeta";
|
8
9
|
export declare const platform: Platform;
|
9
10
|
export declare const programId: PublicKey;
|
10
11
|
export declare const graphqlApi = "https://api-gql.zeta.markets/graphql";
|
11
12
|
export declare const airdropStatics: AirdropStatics;
|
12
|
-
export declare const zexMint = "ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo";
|
13
13
|
export declare const zexDecimals = 6;
|
14
14
|
export declare const distributorPid = "4JSALTb4QbipG7NNLryAFJg4y8X5C1ELErSncsVMA3gZ";
|
15
15
|
export declare const distributors: string[];
|
@@ -1,8 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.zetaIdlItem = exports.stakingPid = exports.distributors = exports.distributorPid = exports.zexDecimals = exports.
|
3
|
+
exports.zetaIdlItem = exports.stakingPid = exports.distributors = exports.distributorPid = exports.zexDecimals = exports.airdropStatics = exports.graphqlApi = exports.programId = exports.platform = exports.platformId = exports.zexMint = void 0;
|
4
4
|
const web3_js_1 = require("@solana/web3.js");
|
5
5
|
const idls_1 = require("./idls");
|
6
|
+
exports.zexMint = 'ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo';
|
6
7
|
exports.platformId = 'zeta';
|
7
8
|
exports.platform = {
|
8
9
|
id: exports.platformId,
|
@@ -10,6 +11,13 @@ exports.platform = {
|
|
10
11
|
image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/zeta.webp',
|
11
12
|
defiLlamaId: 'zeta',
|
12
13
|
website: 'https://www.zeta.markets/',
|
14
|
+
twitter: 'https://x.com/ZetaMarkets',
|
15
|
+
documentation: 'https://docs.zeta.markets/',
|
16
|
+
tokens: [exports.zexMint],
|
17
|
+
telegram: 'https://t.me/realzetamarkets',
|
18
|
+
discord: 'https://discord.gg/Xn9HCJaDZd',
|
19
|
+
github: 'https://github.com/zetamarkets',
|
20
|
+
description: 'Zeta Markets is the premier derivatives protocol on Solana.',
|
13
21
|
};
|
14
22
|
exports.programId = new web3_js_1.PublicKey('ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD');
|
15
23
|
exports.graphqlApi = 'https://api-gql.zeta.markets/graphql';
|
@@ -22,7 +30,6 @@ exports.airdropStatics = {
|
|
22
30
|
claimStart: 1719475200000,
|
23
31
|
claimEnd: 1727251200000,
|
24
32
|
};
|
25
|
-
exports.zexMint = 'ZEXy1pqteRu3n13kdyh4LwPQknkFk3GzmMYMuNadWPo';
|
26
33
|
exports.zexDecimals = 6;
|
27
34
|
exports.distributorPid = '4JSALTb4QbipG7NNLryAFJg4y8X5C1ELErSncsVMA3gZ';
|
28
35
|
exports.distributors = [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,iCAA+C;AAGlC,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,0EAA0E;IAC5E,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,2BAA2B;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,iCAA+C;AAGlC,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,0EAA0E;IAC5E,WAAW,EAAE,MAAM;IACnB,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,2BAA2B;IACpC,aAAa,EAAE,4BAA4B;IAC3C,MAAM,EAAE,CAAC,eAAO,CAAC;IACjB,QAAQ,EAAE,8BAA8B;IACxC,OAAO,EAAE,+BAA+B;IACxC,MAAM,EAAE,gCAAgC;IACxC,WAAW,EAAE,6DAA6D;CAC3E,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AACW,QAAA,UAAU,GAAG,sCAAsC,CAAC;AAEpD,QAAA,cAAc,GAAmB;IAC5C,SAAS,EAAE,6BAA6B;IACxC,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,MAAM;IACnB,EAAE,EAAE,cAAc;IAClB,KAAK,EACH,0EAA0E;IAC5E,UAAU,EAAE,aAAa;IACzB,QAAQ,EAAE,aAAa;CACxB,CAAC;AAEW,QAAA,WAAW,GAAG,CAAC,CAAC;AAChB,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAChE,QAAA,YAAY,GAAG;IAC1B,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,6CAA6C;IAC7C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;IAC9C,8CAA8C;CAC/C,CAAC;AAEW,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,8CAA8C,CAC/C,CAAC;AAEW,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE,kBAAU,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,WAAa;IAClB,OAAO,EAAE,QAAQ;CACP,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Platform } from '@sonarwatch/portfolio-core';
|
2
|
+
import { AirdropFetcher } from '../../AirdropFetcher';
|
2
3
|
import { Fetcher } from '../../Fetcher';
|
3
4
|
import { Job } from '../../Job';
|
4
|
-
import { airdropFetcher } from './airdropFetcher';
|
5
5
|
export declare const jobs: Job[];
|
6
6
|
export declare const fetchers: Fetcher[];
|
7
7
|
export declare const platforms: Platform[];
|
8
|
-
export
|
8
|
+
export declare const airdropFetchers: AirdropFetcher[];
|
@@ -3,13 +3,13 @@ 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.
|
6
|
+
exports.airdropFetchers = exports.platforms = exports.fetchers = exports.jobs = void 0;
|
7
7
|
const depositsFetcher_1 = __importDefault(require("./depositsFetcher"));
|
8
8
|
const airdropFetcher_1 = require("./airdropFetcher");
|
9
|
-
Object.defineProperty(exports, "airdropFetcher", { enumerable: true, get: function () { return airdropFetcher_1.airdropFetcher; } });
|
10
9
|
const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
|
11
10
|
const constants_1 = require("./constants");
|
12
11
|
exports.jobs = [];
|
13
12
|
exports.fetchers = [depositsFetcher_1.default, airdropFetcher_1.fetcher, stakingFetcher_1.default];
|
14
13
|
exports.platforms = [constants_1.platform];
|
14
|
+
exports.airdropFetchers = [airdropFetcher_1.airdropFetcher];
|
15
15
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeta/index.ts"],"names":[],"mappings":";;;;;;AAIA,wEAAgD;AAChD,qDAA2D;AAC3D,sEAA8C;AAC9C,2CAAuC;AAE1B,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,yBAAe,EAAE,wBAAO,EAAE,wBAAc,CAAC,CAAC;AACjE,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AAEnC,QAAA,eAAe,GAAqB,CAAC,+BAAc,CAAC,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { Contract, Platform } from '@sonarwatch/portfolio-core';
|
2
|
+
export declare const zeusMint = "ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq";
|
3
|
+
export declare const platformId = "zeus";
|
4
|
+
export declare const platform: Platform;
|
5
|
+
export declare const zeusNodeDelegateContract: Contract;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.zeusNodeDelegateContract = exports.platform = exports.platformId = exports.zeusMint = void 0;
|
4
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
5
|
+
exports.zeusMint = 'ZEUS1aR7aX8DFFJf5QjWj2ftDDdNTroMNGo8YoQm3Gq';
|
6
|
+
exports.platformId = 'zeus';
|
7
|
+
exports.platform = {
|
8
|
+
id: exports.platformId,
|
9
|
+
name: 'Zeus',
|
10
|
+
image: 'https://sonarwatch.github.io/portfolio/assets/images/platforms/zeusnode.webp',
|
11
|
+
website: 'https://app.zeusguardian.io/',
|
12
|
+
twitter: 'https://x.com/ZeusNetworkHQ',
|
13
|
+
documentation: 'https://docs.zeusnetwork.xyz/',
|
14
|
+
tokens: [exports.zeusMint],
|
15
|
+
github: 'https://github.com/ZeusNetworkHQ',
|
16
|
+
discord: 'https://discord.com/invite/zeusnetwork',
|
17
|
+
medium: 'https://medium.com/@zeus-network',
|
18
|
+
description: 'First Multichain Layer on Solana.',
|
19
|
+
};
|
20
|
+
exports.zeusNodeDelegateContract = {
|
21
|
+
name: `${exports.platform.name} Delegate`,
|
22
|
+
address: 'ZPLt7XEyRvRxEZcGFGnRKGLBymFjQbwmgTZhMAMfGAU',
|
23
|
+
network: portfolio_core_1.NetworkId.solana,
|
24
|
+
};
|
25
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/constants.ts"],"names":[],"mappings":";;;AAAA,+DAA2E;AAE9D,QAAA,QAAQ,GAAG,6CAA6C,CAAC;AACzD,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EACH,8EAA8E;IAChF,OAAO,EAAE,8BAA8B;IACvC,OAAO,EAAE,6BAA6B;IACtC,aAAa,EAAE,+BAA+B;IAC9C,MAAM,EAAE,CAAC,gBAAQ,CAAC;IAClB,MAAM,EAAE,kCAAkC;IAC1C,OAAO,EAAE,wCAAwC;IACjD,MAAM,EAAE,kCAAkC;IAC1C,WAAW,EAAE,mCAAmC;CACjD,CAAC;AAEW,QAAA,wBAAwB,GAAa;IAChD,IAAI,EAAE,GAAG,gBAAQ,CAAC,IAAI,WAAW;IACjC,OAAO,EAAE,6CAA6C;IACtD,OAAO,EAAE,0BAAS,CAAC,MAAM;CAC1B,CAAC"}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
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 ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
|
21
|
+
const structs_1 = require("./structs");
|
22
|
+
const ElementRegistry_1 = require("../../utils/elementbuilder/ElementRegistry");
|
23
|
+
const secondsInADay = 86400;
|
24
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
25
|
+
const client = (0, clients_1.getClientSolana)();
|
26
|
+
const accounts = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.delegationStruct, new web3_js_1.PublicKey(constants_1.zeusNodeDelegateContract.address))
|
27
|
+
.addFilter('accountDiscriminator', [47, 21, 138, 89, 209, 154, 59, 130])
|
28
|
+
.addFilter('delegator', new web3_js_1.PublicKey(owner))
|
29
|
+
.run();
|
30
|
+
const elementRegistry = new ElementRegistry_1.ElementRegistry(portfolio_core_1.NetworkId.solana, constants_1.platformId);
|
31
|
+
accounts.forEach((account) => {
|
32
|
+
const element = elementRegistry.addElementMultiple({
|
33
|
+
label: 'Staked',
|
34
|
+
ref: account.pubkey.toString(),
|
35
|
+
link: 'https://app.zeusguardian.io/delegations',
|
36
|
+
});
|
37
|
+
const startedRemovalAt = account.startedRemovalAt.isZero()
|
38
|
+
? new bignumber_js_1.default(Date.now()).dividedBy(1000)
|
39
|
+
: account.startedRemovalAt;
|
40
|
+
let elpasedDays = startedRemovalAt
|
41
|
+
.minus(account.createdAt)
|
42
|
+
.dividedBy(secondsInADay)
|
43
|
+
.toNumber();
|
44
|
+
if (elpasedDays < 0) {
|
45
|
+
elpasedDays = 0;
|
46
|
+
}
|
47
|
+
else if (elpasedDays > account.lockDays) {
|
48
|
+
elpasedDays = account.lockDays;
|
49
|
+
}
|
50
|
+
const rewardAmount = account.amount
|
51
|
+
.times(account.derivedRewardRate)
|
52
|
+
.times(elpasedDays)
|
53
|
+
.dividedBy(1000000);
|
54
|
+
const claimableAmount = rewardAmount.isGreaterThan(account.claimedReward)
|
55
|
+
? rewardAmount.minus(account.claimedReward)
|
56
|
+
: new bignumber_js_1.default(0);
|
57
|
+
const lockedUntil = account.createdAt
|
58
|
+
.plus(account.lockDays * secondsInADay)
|
59
|
+
.times(1000)
|
60
|
+
.toNumber();
|
61
|
+
element.addAsset({
|
62
|
+
address: constants_1.zeusMint,
|
63
|
+
amount: claimableAmount,
|
64
|
+
});
|
65
|
+
if (Date.now() < lockedUntil) {
|
66
|
+
element.addAsset({
|
67
|
+
address: constants_1.zeusMint,
|
68
|
+
amount: account.claimableAmount,
|
69
|
+
attributes: {
|
70
|
+
lockedUntil,
|
71
|
+
},
|
72
|
+
});
|
73
|
+
}
|
74
|
+
});
|
75
|
+
return elementRegistry.getElements(cache);
|
76
|
+
});
|
77
|
+
const fetcher = {
|
78
|
+
id: `${constants_1.platformId}-delegations`,
|
79
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
80
|
+
executor,
|
81
|
+
};
|
82
|
+
exports.default = fetcher;
|
83
|
+
//# sourceMappingURL=delegationsFetcher.js.map
|