@sonarwatch/portfolio-plugins 0.14.139 → 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 +2173 -2169
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/orphanPlatforms.js +10 -0
- 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/balancer/helpers/pools.js +21 -21
- 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/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/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-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/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/perpetualFetcher.js +4 -2
- 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/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/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/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/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 +11 -5
- package/src/plugins/solayer/constants.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/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/sushiswap/helpers.js +24 -24
- 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.js +2 -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/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/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/helpers.js +22 -22
- 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 +0 -2
- 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/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/misc/checkComputeAndStoreTokensPrices.js +4 -2
- package/src/utils/misc/checkComputeAndStoreTokensPrices.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
@@ -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;I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,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"}
|
@@ -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
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"delegationsFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/delegationsFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAC5C,gEAAqC;AAGrC,2CAA6E;AAC7E,iDAAsD;AACtD,kEAA+D;AAC/D,uCAA6C;AAC7C,gFAA6E;AAE7E,MAAM,aAAa,GAAG,KAAK,CAAC;AAE5B,MAA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this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.platforms = exports.fetchers = exports.jobs = void 0;
|
7
|
+
const constants_1 = require("../zeta/constants");
|
8
|
+
const delegationsFetcher_1 = __importDefault(require("./delegationsFetcher"));
|
9
|
+
exports.jobs = [];
|
10
|
+
exports.fetchers = [delegationsFetcher_1.default];
|
11
|
+
exports.platforms = [constants_1.platform];
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/index.ts"],"names":[],"mappings":";;;;;;AAGA,iDAA6C;AAC7C,8EAAsD;AAEzC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,4BAAkB,CAAC,CAAC;AAC3C,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
|
+
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
|
+
import { PublicKey } from '@solana/web3.js';
|
4
|
+
import { BeetStruct } from '@metaplex-foundation/beet';
|
5
|
+
import BigNumber from 'bignumber.js';
|
6
|
+
declare enum DelegationStatus {
|
7
|
+
Activated = 0,
|
8
|
+
StartDelegationRemoval = 1,
|
9
|
+
FinalizeDelegationRemoval = 2
|
10
|
+
}
|
11
|
+
export type Delegation = {
|
12
|
+
accountDiscriminator: number[];
|
13
|
+
delegator: PublicKey;
|
14
|
+
guardianSetting: PublicKey;
|
15
|
+
seed: number;
|
16
|
+
status: DelegationStatus;
|
17
|
+
lockDays: number;
|
18
|
+
amount: BigNumber;
|
19
|
+
claimableAmount: BigNumber;
|
20
|
+
claimedReward: BigNumber;
|
21
|
+
baseRewardRate: number;
|
22
|
+
derivedRewardRate: number;
|
23
|
+
previousAccumulatedAmount: BigNumber;
|
24
|
+
createdAt: BigNumber;
|
25
|
+
startedRemovalAt: BigNumber;
|
26
|
+
finalizedRemovalAt: BigNumber;
|
27
|
+
};
|
28
|
+
export declare const delegationStruct: BeetStruct<Delegation, Partial<Delegation>>;
|
29
|
+
export {};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.delegationStruct = void 0;
|
4
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
|
+
const solana_1 = require("../../utils/solana");
|
7
|
+
var DelegationStatus;
|
8
|
+
(function (DelegationStatus) {
|
9
|
+
DelegationStatus[DelegationStatus["Activated"] = 0] = "Activated";
|
10
|
+
DelegationStatus[DelegationStatus["StartDelegationRemoval"] = 1] = "StartDelegationRemoval";
|
11
|
+
DelegationStatus[DelegationStatus["FinalizeDelegationRemoval"] = 2] = "FinalizeDelegationRemoval";
|
12
|
+
})(DelegationStatus || (DelegationStatus = {}));
|
13
|
+
exports.delegationStruct = new beet_1.BeetStruct([
|
14
|
+
['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
|
15
|
+
['delegator', beet_solana_1.publicKey],
|
16
|
+
['guardianSetting', beet_solana_1.publicKey],
|
17
|
+
['seed', beet_1.u32],
|
18
|
+
['status', beet_1.u8],
|
19
|
+
['lockDays', beet_1.u16],
|
20
|
+
['amount', solana_1.u64],
|
21
|
+
['claimableAmount', solana_1.u64],
|
22
|
+
['claimedReward', solana_1.u64],
|
23
|
+
['baseRewardRate', beet_1.u32],
|
24
|
+
['derivedRewardRate', beet_1.u32],
|
25
|
+
['previousAccumulatedAmount', solana_1.u64],
|
26
|
+
['createdAt', solana_1.i64],
|
27
|
+
['startedRemovalAt', solana_1.i64],
|
28
|
+
['finalizedRemovalAt', solana_1.i64],
|
29
|
+
], (args) => args);
|
30
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/zeus/structs.ts"],"names":[],"mappings":";;;AACA,oDAMmC;AACnC,kEAA6D;AAE7D,+CAA8C;AAE9C,IAAK,gBAIJ;AAJD,WAAK,gBAAgB;IACnB,iEAAS,CAAA;IACT,2FAAsB,CAAA;IACtB,iGAAyB,CAAA;AAC3B,CAAC,EAJI,gBAAgB,KAAhB,gBAAgB,QAIpB;AAoBY,QAAA,gBAAgB,GAAG,IAAI,iBAAU,CAC5C;IACE,CAAC,sBAAsB,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,iBAAiB,EAAE,uBAAS,CAAC;IAC9B,CAAC,MAAM,EAAE,UAAG,CAAC;IACb,CAAC,QAAQ,EAAE,SAAE,CAAC;IACd,CAAC,UAAU,EAAE,UAAG,CAAC;IACjB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,gBAAgB,EAAE,UAAG,CAAC;IACvB,CAAC,mBAAmB,EAAE,UAAG,CAAC;IAC1B,CAAC,2BAA2B,EAAE,YAAG,CAAC;IAClC,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,oBAAoB,EAAE,YAAG,CAAC;CAC5B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC"}
|
@@ -18,6 +18,8 @@ const getSourceWeight_1 = __importDefault(require("./getSourceWeight"));
|
|
18
18
|
const getCachedDecimalsForToken_1 = require("./getCachedDecimalsForToken");
|
19
19
|
const constants_1 = require("../../plugins/tokens/constants");
|
20
20
|
const solana_1 = require("../solana");
|
21
|
+
const constants_2 = require("../../plugins/marinade/constants");
|
22
|
+
const constants_3 = require("../../plugins/jito/constants");
|
21
23
|
/**
|
22
24
|
* @deprecated
|
23
25
|
* This function has been deprecated. Use the getLpUnderlyingTokenSource instead.
|
@@ -42,8 +44,8 @@ exports.tokensToRelyOnByNetwork = new Map([
|
|
42
44
|
[
|
43
45
|
portfolio_core_1.networks.solana.native.address,
|
44
46
|
portfolio_core_1.solanaNativeWrappedAddress, // WSOL
|
45
|
-
|
46
|
-
|
47
|
+
constants_3.jitoSOLMint, // jito SOL
|
48
|
+
constants_2.mSOLMint, // mSOL
|
47
49
|
'7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj', // lido SOL
|
48
50
|
solana_1.usdcSolanaMint, // USDC
|
49
51
|
'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB', // USDT
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"checkComputeAndStoreTokensPrices.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/checkComputeAndStoreTokensPrices.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,wEAAgD;AAChD,2EAAwE;AACxE,8DAAsE;AACtE,sCAA2C;
|
1
|
+
{"version":3,"file":"checkComputeAndStoreTokensPrices.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/checkComputeAndStoreTokensPrices.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+DAMoC;AAGpC,wEAAgD;AAChD,2EAAwE;AACxE,8DAAsE;AACtE,sCAA2C;AAC3C,gEAA4D;AAC5D,4DAA2D;AAe3D;;;;;;;;;GASG;AACU,QAAA,uBAAuB,GAAiC,IAAI,GAAG,CAAC;IAC3E;QACE,0BAAS,CAAC,GAAG;QACb;YACE,yBAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO;YAC3B,sEAAsE,EAAE,OAAO;Y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AAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC;YAC/D,IAAI,QAAQ,KAAK,SAAS;gBAAE,OAAO,SAAS,CAAC;YAE7C,MAAM,oBAAoB,GAAqB;gBAC7C,EAAE,EAAE,MAAM;gBACV,MAAM;gBACN,OAAO;gBACP,SAAS;gBACT,UAAU,EAAE,gCAAoB,CAAC,EAAE;gBACnC,QAAQ;gBACR,KAAK;gBACL,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAC;YAEF,uBAAuB,GAAG;gBACxB,SAAS;gBACT,OAAO,EAAE,MAAM,CAAC,IAAI;gBACpB,QAAQ,EAAE,cAAc;gBACxB,KAAK,EAAE,MAAM;aACd,CAAC;YAEF,uBAAuB,GAAG;gBACxB,SAAS;gBACT,OAAO,EAAE,MAAM,CAAC,IAAI;gBACpB,QAAQ,EAAE,cAAc;gBACxB,KAAK,EAAE,MAAM;aACd,CAAC;YAEF,MAAM,KAAK,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;YACtD,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,CAAC;QAC9D,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA;AA5ID,mDA4IC"}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
|
4
|
-
exports.infoQueryMsg = JSON.parse(`{
|
5
|
-
"info": {}
|
4
|
+
exports.infoQueryMsg = JSON.parse(`{
|
5
|
+
"info": {}
|
6
6
|
}`);
|
7
|
-
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
-
"token_info": {}
|
7
|
+
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
+
"token_info": {}
|
9
9
|
}`);
|
10
|
-
exports.minterQueryMsg = JSON.parse(`{
|
11
|
-
"minter": {}
|
10
|
+
exports.minterQueryMsg = JSON.parse(`{
|
11
|
+
"minter": {}
|
12
12
|
}`);
|
13
|
-
exports.poolQueryMsg = JSON.parse(`{
|
14
|
-
"pool": {}
|
13
|
+
exports.poolQueryMsg = JSON.parse(`{
|
14
|
+
"pool": {}
|
15
15
|
}`);
|
16
16
|
//# sourceMappingURL=constants.js.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
function getQueryBalanceByOwner(owner) {
|
4
|
-
return JSON.parse(`{
|
5
|
-
"balance": {
|
6
|
-
"address": "${owner}"
|
7
|
-
}
|
4
|
+
return JSON.parse(`{
|
5
|
+
"balance": {
|
6
|
+
"address": "${owner}"
|
7
|
+
}
|
8
8
|
}`);
|
9
9
|
}
|
10
10
|
exports.default = getQueryBalanceByOwner;
|