@merkl/api 0.10.78
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -0
- package/README.md +125 -0
- package/dist/database/api/.generated/default.d.ts +1 -0
- package/dist/database/api/.generated/edge.d.ts +1 -0
- package/dist/database/api/.generated/index.d.ts +36404 -0
- package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +84 -0
- package/dist/database/api/.generated/runtime/index-browser.d.ts +365 -0
- package/dist/database/api/.generated/runtime/library.d.ts +3273 -0
- package/dist/database/api/.generated/schema.prisma +366 -0
- package/dist/database/api/.generated/wasm.d.ts +1 -0
- package/dist/database/api/seeder/resources/protocol.d.ts +353 -0
- package/dist/database/engine/.generated/default.d.ts +1 -0
- package/dist/database/engine/.generated/edge.d.ts +1 -0
- package/dist/database/engine/.generated/index.d.ts +16342 -0
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +84 -0
- package/dist/database/engine/.generated/runtime/index-browser.d.ts +365 -0
- package/dist/database/engine/.generated/runtime/library.d.ts +3273 -0
- package/dist/database/engine/.generated/schema.prisma +205 -0
- package/dist/database/engine/.generated/wasm.d.ts +1 -0
- package/dist/src/backgroundJobs/index.d.ts +1 -0
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +45 -0
- package/dist/src/backgroundJobs/jobs/health.d.ts +40 -0
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +37 -0
- package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +35 -0
- package/dist/src/backgroundJobs/jobs/sync.d.ts +39 -0
- package/dist/src/cache/declaration.d.ts +153 -0
- package/dist/src/cache/index.d.ts +52 -0
- package/dist/src/cache/redis.d.ts +311 -0
- package/dist/src/constants.d.ts +349 -0
- package/dist/src/eden/index.d.ts +4882 -0
- package/dist/src/eden/index.js +4 -0
- package/dist/src/entities/campaign.d.ts +58 -0
- package/dist/src/entities/opportunity.d.ts +17 -0
- package/dist/src/errors/BadRequest.error.d.ts +4 -0
- package/dist/src/errors/Conflict.error.d.ts +4 -0
- package/dist/src/errors/HttpError.d.ts +6 -0
- package/dist/src/errors/NotFound.error.d.ts +4 -0
- package/dist/src/errors/Opportunity.error.d.ts +6 -0
- package/dist/src/errors/Unauthorized.error.d.ts +4 -0
- package/dist/src/errors/index.d.ts +5 -0
- package/dist/src/guards/BackOffice.guard.d.ts +7 -0
- package/dist/src/guards/Engine.guard.d.ts +7 -0
- package/dist/src/guards/TokenAuth.guard.d.ts +7 -0
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +21 -0
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +21 -0
- package/dist/src/index.d.ts +1889 -0
- package/dist/src/internal/controllers/endingCampaigns.d.ts +42 -0
- package/dist/src/internal/controllers/unclaimed.d.ts +43 -0
- package/dist/src/internal/index.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/AjnaDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/BadgerDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/CLAMMDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/CompoundDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/DolomiteDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/eulerVaultNames.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/factoryFinder.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/getBlacklistedSupply.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/metamorphoTvl.d.ts +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/spliceTVL.d.ts +7 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +45 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPrices.d.ts +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.d.ts +23 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound2.d.ts +7 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound3.d.ts +6 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound4.d.ts +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20_SNAPSHOTDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/EulerDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/JSON_AIRDROPDynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/MORPHODynamicData.d.ts +5 -0
- package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/campaignTypes/SILODynamicData.d.ts +7 -0
- package/dist/src/libs/campaigns/campaignsDynamicData.d.ts +3 -0
- package/dist/src/libs/campaigns/getCampaigns.d.ts +1 -0
- package/dist/src/libs/campaigns/getRewards.d.ts +29 -0
- package/dist/src/libs/campaigns/utils/fetchA51Strategies.d.ts +18 -0
- package/dist/src/libs/campaigns/utils/fetchClamInfo.d.ts +2 -0
- package/dist/src/libs/campaigns/utils/fetchLogs.d.ts +10 -0
- package/dist/src/libs/campaigns/utils/getCompV2ForksVaults.d.ts +19 -0
- package/dist/src/libs/campaigns/utils/getContractCreationBlock.d.ts +2 -0
- package/dist/src/libs/campaigns/utils/getDolomiteMarkets.d.ts +7 -0
- package/dist/src/libs/campaigns/utils/getEulerV2Vaults.d.ts +16 -0
- package/dist/src/libs/campaigns/utils/getLastEligibilityRatio.d.ts +2 -0
- package/dist/src/libs/computeFee.d.ts +4 -0
- package/dist/src/libs/custom/twtParticipants.d.ts +6 -0
- package/dist/src/libs/deprecated-merklv3/index.d.ts +5 -0
- package/dist/src/libs/getTokensList.d.ts +27 -0
- package/dist/src/libs/merklChainData.d.ts +4 -0
- package/dist/src/libs/parse/marketsWithCache.d.ts +4 -0
- package/dist/src/libs/positions/ajna/index.d.ts +41 -0
- package/dist/src/libs/positions/badger/index.d.ts +27 -0
- package/dist/src/libs/positions/clamm/index.d.ts +8 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchAlmPositions.d.ts +5 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchAmmPositions.d.ts +8 -0
- package/dist/src/libs/positions/clamm/thegraph/fetchFarmedPositions.d.ts +11 -0
- package/dist/src/libs/positions/clamm/thegraph/index.d.ts +37 -0
- package/dist/src/libs/positions/compound/index.d.ts +26 -0
- package/dist/src/libs/positions/dolomite/index.d.ts +17 -0
- package/dist/src/libs/positions/erc20/index.d.ts +5 -0
- package/dist/src/libs/positions/euler/index.d.ts +5 -0
- package/dist/src/libs/positions/index.d.ts +3 -0
- package/dist/src/libs/positions/morpho/index.d.ts +40 -0
- package/dist/src/libs/positions/prepareFetch.d.ts +22 -0
- package/dist/src/libs/positions/silo/index.d.ts +5 -0
- package/dist/src/libs/positions/types.d.ts +20 -0
- package/dist/src/libs/reports/campaignReport.d.ts +9 -0
- package/dist/src/libs/reports/mainParameterRewards.d.ts +3 -0
- package/dist/src/libs/rewards/userRewards.d.ts +2 -0
- package/dist/src/libs/staticCampaigns.d.ts +2 -0
- package/dist/src/libs/tokens/balances.d.ts +11 -0
- package/dist/src/libs/tokens/tokenInfo.d.ts +8 -0
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +206 -0
- package/dist/src/modules/v4/accounting/accounting.model.d.ts +32 -0
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +99 -0
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +44 -0
- package/dist/src/modules/v4/accounting/index.d.ts +3 -0
- package/dist/src/modules/v4/apr/apr.controller.d.ts +0 -0
- package/dist/src/modules/v4/apr/apr.model.d.ts +15 -0
- package/dist/src/modules/v4/apr/apr.repository.d.ts +0 -0
- package/dist/src/modules/v4/apr/apr.service.d.ts +6 -0
- package/dist/src/modules/v4/apr/index.d.ts +2 -0
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +122 -0
- package/dist/src/modules/v4/blacklist/blacklist.model.d.ts +15 -0
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +24 -0
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +24 -0
- package/dist/src/modules/v4/blacklist/index.d.ts +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +139 -0
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +85 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +110 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +180 -0
- package/dist/src/modules/v4/campaign/index.d.ts +3 -0
- package/dist/src/modules/v4/chain/chain.controller.d.ts +91 -0
- package/dist/src/modules/v4/chain/chain.model.d.ts +19 -0
- package/dist/src/modules/v4/chain/chain.repository.d.ts +66 -0
- package/dist/src/modules/v4/chain/chain.service.d.ts +42 -0
- package/dist/src/modules/v4/chain/index.d.ts +3 -0
- package/dist/src/modules/v4/enso/enso.model.d.ts +130 -0
- package/dist/src/modules/v4/enso/enso.service.d.ts +47 -0
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +8 -0
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +8 -0
- package/dist/src/modules/v4/explorer/index.d.ts +1 -0
- package/dist/src/modules/v4/index.d.ts +4 -0
- package/dist/src/modules/v4/merklRoot/index.d.ts +3 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +44 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.model.d.ts +6 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +21 -0
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +34 -0
- package/dist/src/modules/v4/opportunity/index.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +349 -0
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +113 -0
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +432 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +413 -0
- package/dist/src/modules/v4/opportunity/subservices/getAjnaMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getBadgerMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getClammMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getCompoundMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getDolomiteMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getErc20Metadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getErc20SnapshotMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getEulerMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getJsonAirDropMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getMorphoMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getRadiantMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/subservices/getSiloMetadata.service.d.ts +3 -0
- package/dist/src/modules/v4/opportunity/transform-id.pipe.d.ts +5 -0
- package/dist/src/modules/v4/opportunity/validate-id.pipe.d.ts +5 -0
- package/dist/src/modules/v4/participate/participate.controller.d.ts +120 -0
- package/dist/src/modules/v4/participate/participate.model.d.ts +51 -0
- package/dist/src/modules/v4/participate/participate.service.d.ts +8 -0
- package/dist/src/modules/v4/price/index.d.ts +3 -0
- package/dist/src/modules/v4/price/price.controller.d.ts +169 -0
- package/dist/src/modules/v4/price/price.model.d.ts +32 -0
- package/dist/src/modules/v4/price/price.repository.d.ts +33 -0
- package/dist/src/modules/v4/price/price.service.d.ts +33 -0
- package/dist/src/modules/v4/prisma/index.d.ts +32 -0
- package/dist/src/modules/v4/protocol/index.d.ts +3 -0
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +87 -0
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +27 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +37 -0
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +10 -0
- package/dist/src/modules/v4/reward/index.d.ts +3 -0
- package/dist/src/modules/v4/reward/reward.controller.d.ts +158 -0
- package/dist/src/modules/v4/reward/reward.model.d.ts +158 -0
- package/dist/src/modules/v4/reward/reward.repository.d.ts +158 -0
- package/dist/src/modules/v4/reward/reward.service.d.ts +523 -0
- package/dist/src/modules/v4/reward/rewardConvertor.service.d.ts +14 -0
- package/dist/src/modules/v4/router.d.ts +1865 -0
- package/dist/src/modules/v4/status/index.d.ts +3 -0
- package/dist/src/modules/v4/status/status.controller.d.ts +143 -0
- package/dist/src/modules/v4/status/status.model.d.ts +23 -0
- package/dist/src/modules/v4/status/status.repository.d.ts +68 -0
- package/dist/src/modules/v4/status/status.service.d.ts +38 -0
- package/dist/src/modules/v4/token/index.d.ts +3 -0
- package/dist/src/modules/v4/token/token.controller.d.ts +131 -0
- package/dist/src/modules/v4/token/token.model.d.ts +35 -0
- package/dist/src/modules/v4/token/token.repository.d.ts +59 -0
- package/dist/src/modules/v4/token/token.service.d.ts +165 -0
- package/dist/src/modules/v4/tvl/index.d.ts +2 -0
- package/dist/src/modules/v4/tvl/tvl.controller.d.ts +0 -0
- package/dist/src/modules/v4/tvl/tvl.model.d.ts +15 -0
- package/dist/src/modules/v4/tvl/tvl.repository.d.ts +0 -0
- package/dist/src/modules/v4/tvl/tvl.service.d.ts +6 -0
- package/dist/src/modules/v4/uniswapV4/index.d.ts +4 -0
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +52 -0
- package/dist/src/modules/v4/uniswapV4/uniswapV4.model.d.ts +15 -0
- package/dist/src/modules/v4/uniswapV4/uniswapV4.repository.d.ts +2 -0
- package/dist/src/modules/v4/uniswapV4/uniswapV4.service.d.ts +20 -0
- package/dist/src/modules/v4/user/index.d.ts +3 -0
- package/dist/src/modules/v4/user/user.controller.d.ts +325 -0
- package/dist/src/modules/v4/user/user.model.d.ts +25 -0
- package/dist/src/modules/v4/user/user.repository.d.ts +19 -0
- package/dist/src/modules/v4/user/user.service.d.ts +19 -0
- package/dist/src/plugins/error-handling.plugin.d.ts +28 -0
- package/dist/src/plugins/logger.plugin.d.ts +21 -0
- package/dist/src/routes/v1/allowances.d.ts +66 -0
- package/dist/src/routes/v1/balances.d.ts +49 -0
- package/dist/src/routes/v1/prices.d.ts +41 -0
- package/dist/src/routes/v1/tokens.d.ts +44 -0
- package/dist/src/routes/v2/merkl.d.ts +54 -0
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +1910 -0
- package/dist/src/routes/v3/app.d.ts +39 -0
- package/dist/src/routes/v3/blacklist.d.ts +1910 -0
- package/dist/src/routes/v3/campaign/delay.d.ts +41 -0
- package/dist/src/routes/v3/campaignClaims.d.ts +43 -0
- package/dist/src/routes/v3/campaignReport.d.ts +42 -0
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +43 -0
- package/dist/src/routes/v3/campaigns.d.ts +1915 -0
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +42 -0
- package/dist/src/routes/v3/campaignsInfo.d.ts +1902 -0
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +43 -0
- package/dist/src/routes/v3/claims.d.ts +45 -0
- package/dist/src/routes/v3/compoundV2.d.ts +40 -0
- package/dist/src/routes/v3/createCampaign.d.ts +46 -0
- package/dist/src/routes/v3/dolomite.d.ts +40 -0
- package/dist/src/routes/v3/euler.d.ts +40 -0
- package/dist/src/routes/v3/exports/campaigns.d.ts +42 -0
- package/dist/src/routes/v3/fetch.d.ts +45 -0
- package/dist/src/routes/v3/health.d.ts +39 -0
- package/dist/src/routes/v3/lostyield.d.ts +52 -0
- package/dist/src/routes/v3/merkl.d.ts +87 -0
- package/dist/src/routes/v3/morphoMarkets.d.ts +61 -0
- package/dist/src/routes/v3/morphoVaults.d.ts +51 -0
- package/dist/src/routes/v3/multiChainPositions.d.ts +1909 -0
- package/dist/src/routes/v3/opportunity.d.ts +1946 -0
- package/dist/src/routes/v3/overview.d.ts +60 -0
- package/dist/src/routes/v3/parse.d.ts +46 -0
- package/dist/src/routes/v3/payload.d.ts +57 -0
- package/dist/src/routes/v3/poolInfo.d.ts +42 -0
- package/dist/src/routes/v3/positions.d.ts +1927 -0
- package/dist/src/routes/v3/radiant.d.ts +55 -0
- package/dist/src/routes/v3/recipients.d.ts +38 -0
- package/dist/src/routes/v3/rewards.d.ts +1910 -0
- package/dist/src/routes/v3/rewardsReport.d.ts +48 -0
- package/dist/src/routes/v3/rootForTimestamp.d.ts +52 -0
- package/dist/src/routes/v3/silo.d.ts +52 -0
- package/dist/src/routes/v3/token.d.ts +50 -0
- package/dist/src/routes/v3/tokenUnclaimed.d.ts +43 -0
- package/dist/src/routes/v3/twt/participants.d.ts +40 -0
- package/dist/src/routes/v3/updates.d.ts +1907 -0
- package/dist/src/routes/v3/userRewards.d.ts +1931 -0
- package/dist/src/types/index.d.ts +46 -0
- package/dist/src/types/parameters/Action.d.ts +4 -0
- package/dist/src/types/parameters/Chain.d.ts +4 -0
- package/dist/src/types/parameters/ChainCampaignId.d.ts +4 -0
- package/dist/src/types/parameters/MainParameter.d.ts +4 -0
- package/dist/src/types/parameters/OpportunityId.d.ts +4 -0
- package/dist/src/types/parameters/Timestamp.d.ts +4 -0
- package/dist/src/types/parameters/Type.d.ts +4 -0
- package/dist/src/types/parameters/index.d.ts +36 -0
- package/dist/src/types/returnTypes.d.ts +27 -0
- package/dist/src/types/utils.d.ts +5 -0
- package/dist/src/utils/addString.d.ts +2 -0
- package/dist/src/utils/bigintToString.d.ts +1 -0
- package/dist/src/utils/crypto.d.ts +1 -0
- package/dist/src/utils/error.d.ts +53 -0
- package/dist/src/utils/execute.d.ts +32 -0
- package/dist/src/utils/generic.d.ts +24 -0
- package/dist/src/utils/hashArray.d.ts +1 -0
- package/dist/src/utils/lastBlockBefore.d.ts +3 -0
- package/dist/src/utils/logger.d.ts +24 -0
- package/dist/src/utils/pricer.d.ts +52 -0
- package/dist/src/utils/prices/chainlinkRead.d.ts +4 -0
- package/dist/src/utils/prices/curveVirtualPrice.d.ts +4 -0
- package/dist/src/utils/prices/getDQUICK.d.ts +4 -0
- package/dist/src/utils/prices/priceFetcherFactory.d.ts +10 -0
- package/dist/src/utils/prices/priceService.d.ts +13 -0
- package/dist/src/utils/prices/services/coinGeckoService.d.ts +12 -0
- package/dist/src/utils/prices/services/defillamaService.d.ts +12 -0
- package/dist/src/utils/prices/services/dexScreenerService.d.ts +12 -0
- package/dist/src/utils/prices/services/erc4626Service.d.ts +9 -0
- package/dist/src/utils/prices/services/getERC4626.d.ts +4 -0
- package/dist/src/utils/prices/services/indexCoopService.d.ts +12 -0
- package/dist/src/utils/prices/services/priceFetcher.d.ts +8 -0
- package/dist/src/utils/prices/uniV2Price.d.ts +7 -0
- package/dist/src/utils/prisma.d.ts +16 -0
- package/dist/src/utils/providers.d.ts +13 -0
- package/dist/src/utils/queries/activeCampaigns.d.ts +3 -0
- package/dist/src/utils/queries/allCampaigns.d.ts +6 -0
- package/dist/src/utils/queries/campaignsForMainParameter.d.ts +2 -0
- package/dist/src/utils/queries/claimsOverTime.d.ts +8 -0
- package/dist/src/utils/queries/endingCampaigns.d.ts +10 -0
- package/dist/src/utils/queries/futureCampaigns.d.ts +3 -0
- package/dist/src/utils/queries/mainParameterCampaigns.d.ts +5 -0
- package/dist/src/utils/queries/rewardsAmount.d.ts +10 -0
- package/dist/src/utils/queries/unclaimed.d.ts +11 -0
- package/dist/src/utils/rateLimit.d.ts +63 -0
- package/dist/src/utils/stryke.d.ts +2 -0
- package/dist/src/utils/throw.d.ts +4 -0
- package/dist/src/utils/trace.d.ts +26 -0
- package/dist/src/utils/validation.d.ts +5 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -0
- package/package.json +91 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { Resource } from "../prisma";
|
2
|
+
/**
|
3
|
+
* Tvl Record
|
4
|
+
* @description Describes one tvl snapshot for an opportunity
|
5
|
+
* @see {@link Resource}
|
6
|
+
*/
|
7
|
+
export type TvlRecord = Resource<"TVLRecord", "id" | "opportunityId", {
|
8
|
+
breakdowns: TvlBreakdown["model"][];
|
9
|
+
}>;
|
10
|
+
/**
|
11
|
+
* Tvl Breakdown
|
12
|
+
* @description Describes one tvl fraction of record
|
13
|
+
* @see {@link Resource}
|
14
|
+
*/
|
15
|
+
export type TvlBreakdown = Resource<"TVLBreakdown", "id" | "tvlRecordId">;
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { Campaign, type CampaignDynamicData } from "@sdk";
|
2
|
+
import type { TvlRecord } from "./tvl.model";
|
3
|
+
export declare abstract class TvlService {
|
4
|
+
static hashId(opportunityId: string, timestamp: bigint): string;
|
5
|
+
static extractFromDynamicData<C extends Campaign>(type: C, dynamicData: CampaignDynamicData<C>[], timestamp?: bigint): TvlRecord["model"];
|
6
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import Elysia from "elysia";
|
2
|
+
export declare const uniswapV4Controller: Elysia<"", false, {
|
3
|
+
decorator: {};
|
4
|
+
store: {};
|
5
|
+
derive: {};
|
6
|
+
resolve: {};
|
7
|
+
}, {
|
8
|
+
type: {};
|
9
|
+
error: {};
|
10
|
+
}, {
|
11
|
+
schema: {};
|
12
|
+
macro: {};
|
13
|
+
}, {
|
14
|
+
uniswapV4: {
|
15
|
+
pools: {
|
16
|
+
get: {
|
17
|
+
body: unknown;
|
18
|
+
params: Record<never, string>;
|
19
|
+
query: {
|
20
|
+
chainId: number;
|
21
|
+
};
|
22
|
+
headers: unknown;
|
23
|
+
response: {
|
24
|
+
200: {
|
25
|
+
[x: string]: {
|
26
|
+
poolId: string;
|
27
|
+
poolKey: {
|
28
|
+
hooks: string;
|
29
|
+
fee: number;
|
30
|
+
tickSpacing: number;
|
31
|
+
currency0: string;
|
32
|
+
currency1: string;
|
33
|
+
};
|
34
|
+
decimalsCurrency0: number;
|
35
|
+
decimalsCurrency1: number;
|
36
|
+
symbolCurrency0: string;
|
37
|
+
symbolCurrency1: string;
|
38
|
+
};
|
39
|
+
};
|
40
|
+
};
|
41
|
+
};
|
42
|
+
};
|
43
|
+
};
|
44
|
+
}, {
|
45
|
+
derive: {};
|
46
|
+
resolve: {};
|
47
|
+
schema: {};
|
48
|
+
}, {
|
49
|
+
derive: {};
|
50
|
+
resolve: {};
|
51
|
+
schema: {};
|
52
|
+
}>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare const UniswapV4PoolsDto: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
2
|
+
poolKey: import("@sinclair/typebox").TObject<{
|
3
|
+
currency0: import("@sinclair/typebox").TString;
|
4
|
+
currency1: import("@sinclair/typebox").TString;
|
5
|
+
fee: import("@sinclair/typebox").TNumber;
|
6
|
+
tickSpacing: import("@sinclair/typebox").TNumber;
|
7
|
+
hooks: import("@sinclair/typebox").TString;
|
8
|
+
}>;
|
9
|
+
poolId: import("@sinclair/typebox").TString;
|
10
|
+
decimalsCurrency0: import("@sinclair/typebox").TNumber;
|
11
|
+
decimalsCurrency1: import("@sinclair/typebox").TNumber;
|
12
|
+
symbolCurrency0: import("@sinclair/typebox").TString;
|
13
|
+
symbolCurrency1: import("@sinclair/typebox").TString;
|
14
|
+
}>>;
|
15
|
+
export type UniswapV4PoolsEntity = typeof UniswapV4PoolsDto.static;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { type MerklChainId } from "@sdk";
|
2
|
+
export declare const PoolManagerInterface: any;
|
3
|
+
export declare abstract class UniswapV4Service {
|
4
|
+
static getPoolsByChain(chainId: MerklChainId): Promise<{
|
5
|
+
[x: string]: {
|
6
|
+
poolId: string;
|
7
|
+
poolKey: {
|
8
|
+
hooks: string;
|
9
|
+
fee: number;
|
10
|
+
tickSpacing: number;
|
11
|
+
currency0: string;
|
12
|
+
currency1: string;
|
13
|
+
};
|
14
|
+
decimalsCurrency0: number;
|
15
|
+
decimalsCurrency1: number;
|
16
|
+
symbolCurrency0: string;
|
17
|
+
symbolCurrency1: string;
|
18
|
+
};
|
19
|
+
}>;
|
20
|
+
}
|
@@ -0,0 +1,325 @@
|
|
1
|
+
import { Elysia } from "elysia";
|
2
|
+
import { RewardService } from "../reward";
|
3
|
+
export declare const UserController: Elysia<"/users", false, {
|
4
|
+
decorator: {};
|
5
|
+
store: {};
|
6
|
+
derive: {};
|
7
|
+
resolve: {};
|
8
|
+
}, {
|
9
|
+
type: {};
|
10
|
+
error: {};
|
11
|
+
}, {
|
12
|
+
schema: {};
|
13
|
+
macro: {};
|
14
|
+
}, {
|
15
|
+
users: {
|
16
|
+
index: {
|
17
|
+
get: {
|
18
|
+
body: unknown;
|
19
|
+
params: Record<never, string>;
|
20
|
+
query: {
|
21
|
+
items?: number | undefined;
|
22
|
+
tags?: string[] | undefined;
|
23
|
+
page?: number | undefined;
|
24
|
+
address?: string | undefined;
|
25
|
+
};
|
26
|
+
headers: unknown;
|
27
|
+
response: {
|
28
|
+
200: {
|
29
|
+
address: string;
|
30
|
+
tags: string[];
|
31
|
+
}[];
|
32
|
+
};
|
33
|
+
};
|
34
|
+
};
|
35
|
+
};
|
36
|
+
} & {
|
37
|
+
users: {
|
38
|
+
":address": {
|
39
|
+
get: {
|
40
|
+
body: unknown;
|
41
|
+
params: Record<"address", string>;
|
42
|
+
query: unknown;
|
43
|
+
headers: unknown;
|
44
|
+
response: {
|
45
|
+
200: {
|
46
|
+
address: string;
|
47
|
+
} | null;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
};
|
51
|
+
};
|
52
|
+
} & {
|
53
|
+
users: {
|
54
|
+
":address": {
|
55
|
+
rewards: {
|
56
|
+
full: {
|
57
|
+
get: {
|
58
|
+
body: unknown;
|
59
|
+
params: {
|
60
|
+
address: string;
|
61
|
+
};
|
62
|
+
query: unknown;
|
63
|
+
headers: unknown;
|
64
|
+
response: {
|
65
|
+
200: (Omit<{
|
66
|
+
chain: import("../../../../database/api/.generated").Chain;
|
67
|
+
rewards: Awaited<ReturnType<(typeof RewardService)["getByRecipient"]>>;
|
68
|
+
}, "rewards"> & {
|
69
|
+
rewards: (Omit<{
|
70
|
+
token: {
|
71
|
+
id: string;
|
72
|
+
name: string | null;
|
73
|
+
chainId: number;
|
74
|
+
address: string;
|
75
|
+
decimals: number;
|
76
|
+
symbol: string;
|
77
|
+
icon: string;
|
78
|
+
verified: boolean;
|
79
|
+
price: number | null;
|
80
|
+
};
|
81
|
+
breakdowns: {
|
82
|
+
campaignId: string;
|
83
|
+
opportunity: {
|
84
|
+
Chain: {
|
85
|
+
id: number;
|
86
|
+
name: string;
|
87
|
+
icon: string;
|
88
|
+
};
|
89
|
+
Tokens: {
|
90
|
+
id: string;
|
91
|
+
name: string | null;
|
92
|
+
chainId: number;
|
93
|
+
address: string;
|
94
|
+
decimals: number;
|
95
|
+
symbol: string;
|
96
|
+
icon: string;
|
97
|
+
verified: boolean;
|
98
|
+
price: number | null;
|
99
|
+
}[];
|
100
|
+
Protocols: {
|
101
|
+
id: string;
|
102
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
103
|
+
name: string;
|
104
|
+
description: string;
|
105
|
+
url: string;
|
106
|
+
icon: string;
|
107
|
+
}[];
|
108
|
+
MainProtocol: {
|
109
|
+
id: string;
|
110
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
111
|
+
name: string;
|
112
|
+
description: string;
|
113
|
+
url: string;
|
114
|
+
icon: string;
|
115
|
+
} | null;
|
116
|
+
} & {
|
117
|
+
id: string;
|
118
|
+
chainId: number;
|
119
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
120
|
+
identifier: string;
|
121
|
+
name: string;
|
122
|
+
status: import("../../../../database/api/.generated").$Enums.Status;
|
123
|
+
action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
|
124
|
+
mainProtocolId: string | null;
|
125
|
+
tvl: number;
|
126
|
+
apr: number;
|
127
|
+
dailyRewards: number;
|
128
|
+
tags: string[];
|
129
|
+
};
|
130
|
+
reason: string;
|
131
|
+
amount: string;
|
132
|
+
claimed: string;
|
133
|
+
pending: string;
|
134
|
+
auxiliaryData1: string | null;
|
135
|
+
auxiliaryData2: string | null;
|
136
|
+
}[];
|
137
|
+
claimed: bigint;
|
138
|
+
amount: bigint;
|
139
|
+
pending: bigint;
|
140
|
+
root: string;
|
141
|
+
recipient: string;
|
142
|
+
proofs: string[];
|
143
|
+
}, "breakdowns"> & {
|
144
|
+
breakdowns: {
|
145
|
+
opportunity: import("..").Opportunity["model"] | null;
|
146
|
+
claimed: bigint;
|
147
|
+
amount: bigint;
|
148
|
+
pending: bigint;
|
149
|
+
auxiliaryData1: string | null;
|
150
|
+
auxiliaryData2: string | null;
|
151
|
+
}[];
|
152
|
+
})[];
|
153
|
+
distributor: string;
|
154
|
+
})[];
|
155
|
+
};
|
156
|
+
};
|
157
|
+
};
|
158
|
+
};
|
159
|
+
};
|
160
|
+
};
|
161
|
+
} & {
|
162
|
+
users: {
|
163
|
+
":address": {
|
164
|
+
rewards: {
|
165
|
+
get: {
|
166
|
+
body: unknown;
|
167
|
+
params: {
|
168
|
+
address: string;
|
169
|
+
};
|
170
|
+
query: {
|
171
|
+
chainId: number | number[];
|
172
|
+
};
|
173
|
+
headers: unknown;
|
174
|
+
response: {
|
175
|
+
200: (Omit<{
|
176
|
+
chain: import("../../../../database/api/.generated").Chain;
|
177
|
+
rewards: Awaited<ReturnType<(typeof RewardService)["getByRecipient"]>>;
|
178
|
+
}, "rewards"> & {
|
179
|
+
rewards: (Omit<{
|
180
|
+
token: {
|
181
|
+
id: string;
|
182
|
+
name: string | null;
|
183
|
+
chainId: number;
|
184
|
+
address: string;
|
185
|
+
decimals: number;
|
186
|
+
symbol: string;
|
187
|
+
icon: string;
|
188
|
+
verified: boolean;
|
189
|
+
price: number | null;
|
190
|
+
};
|
191
|
+
breakdowns: {
|
192
|
+
campaignId: string;
|
193
|
+
opportunity: {
|
194
|
+
Chain: {
|
195
|
+
id: number;
|
196
|
+
name: string;
|
197
|
+
icon: string;
|
198
|
+
};
|
199
|
+
Tokens: {
|
200
|
+
id: string;
|
201
|
+
name: string | null;
|
202
|
+
chainId: number;
|
203
|
+
address: string;
|
204
|
+
decimals: number;
|
205
|
+
symbol: string;
|
206
|
+
icon: string;
|
207
|
+
verified: boolean;
|
208
|
+
price: number | null;
|
209
|
+
}[];
|
210
|
+
Protocols: {
|
211
|
+
id: string;
|
212
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
213
|
+
name: string;
|
214
|
+
description: string;
|
215
|
+
url: string;
|
216
|
+
icon: string;
|
217
|
+
}[];
|
218
|
+
MainProtocol: {
|
219
|
+
id: string;
|
220
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
221
|
+
name: string;
|
222
|
+
description: string;
|
223
|
+
url: string;
|
224
|
+
icon: string;
|
225
|
+
} | null;
|
226
|
+
} & {
|
227
|
+
id: string;
|
228
|
+
chainId: number;
|
229
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
230
|
+
identifier: string;
|
231
|
+
name: string;
|
232
|
+
status: import("../../../../database/api/.generated").$Enums.Status;
|
233
|
+
action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
|
234
|
+
mainProtocolId: string | null;
|
235
|
+
tvl: number;
|
236
|
+
apr: number;
|
237
|
+
dailyRewards: number;
|
238
|
+
tags: string[];
|
239
|
+
};
|
240
|
+
reason: string;
|
241
|
+
amount: string;
|
242
|
+
claimed: string;
|
243
|
+
pending: string;
|
244
|
+
auxiliaryData1: string | null;
|
245
|
+
auxiliaryData2: string | null;
|
246
|
+
}[];
|
247
|
+
claimed: bigint;
|
248
|
+
amount: bigint;
|
249
|
+
pending: bigint;
|
250
|
+
root: string;
|
251
|
+
recipient: string;
|
252
|
+
proofs: string[];
|
253
|
+
}, "breakdowns"> & {
|
254
|
+
breakdowns: {
|
255
|
+
campaignId: string;
|
256
|
+
reason: string;
|
257
|
+
amount: string;
|
258
|
+
claimed: string;
|
259
|
+
pending: string;
|
260
|
+
auxiliaryData1: string | null;
|
261
|
+
auxiliaryData2: string | null;
|
262
|
+
}[];
|
263
|
+
})[];
|
264
|
+
})[];
|
265
|
+
};
|
266
|
+
};
|
267
|
+
};
|
268
|
+
};
|
269
|
+
};
|
270
|
+
} & {
|
271
|
+
users: {
|
272
|
+
index: {
|
273
|
+
post: {
|
274
|
+
body: {
|
275
|
+
tags: string[];
|
276
|
+
address: string;
|
277
|
+
};
|
278
|
+
params: Record<never, string>;
|
279
|
+
query: unknown;
|
280
|
+
headers: {
|
281
|
+
authorization: string;
|
282
|
+
};
|
283
|
+
response: {
|
284
|
+
200: {
|
285
|
+
address: string;
|
286
|
+
tags: string[];
|
287
|
+
};
|
288
|
+
};
|
289
|
+
};
|
290
|
+
};
|
291
|
+
};
|
292
|
+
} & {
|
293
|
+
users: {
|
294
|
+
":address": {
|
295
|
+
tags: {
|
296
|
+
patch: {
|
297
|
+
body: {
|
298
|
+
tags: string[];
|
299
|
+
};
|
300
|
+
params: {
|
301
|
+
address: string;
|
302
|
+
};
|
303
|
+
query: unknown;
|
304
|
+
headers: {
|
305
|
+
authorization: string;
|
306
|
+
};
|
307
|
+
response: {
|
308
|
+
200: {
|
309
|
+
address: string;
|
310
|
+
tags: string[];
|
311
|
+
};
|
312
|
+
};
|
313
|
+
};
|
314
|
+
};
|
315
|
+
};
|
316
|
+
};
|
317
|
+
}, {
|
318
|
+
derive: {};
|
319
|
+
resolve: {};
|
320
|
+
schema: {};
|
321
|
+
}, {
|
322
|
+
derive: {};
|
323
|
+
resolve: {};
|
324
|
+
schema: {};
|
325
|
+
}>;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { Resource } from "../prisma";
|
2
|
+
/**
|
3
|
+
* User
|
4
|
+
* @description A user represented by its address
|
5
|
+
* @see {@link Resource}
|
6
|
+
*/
|
7
|
+
export type User = Resource<"User">;
|
8
|
+
export declare const UserUniqueDto: import("@sinclair/typebox").TObject<{
|
9
|
+
address: import("@sinclair/typebox").TString;
|
10
|
+
}>;
|
11
|
+
export declare const UserDto: import("@sinclair/typebox").TObject<{
|
12
|
+
address: import("@sinclair/typebox").TString;
|
13
|
+
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
14
|
+
}>;
|
15
|
+
export declare const GetManyUserQuery: import("@sinclair/typebox").TObject<{
|
16
|
+
address: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
17
|
+
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
18
|
+
page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
19
|
+
items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
20
|
+
}>;
|
21
|
+
export declare const UpdateUserTagsDto: import("@sinclair/typebox").TObject<{
|
22
|
+
tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
23
|
+
}>;
|
24
|
+
export type UserModel = typeof UserDto.static;
|
25
|
+
export type GetManyUserModel = typeof GetManyUserQuery.static;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { GetManyUserModel, UserModel } from "./user.model";
|
2
|
+
export declare abstract class UserRepository {
|
3
|
+
static findUnique(address: string): Promise<{
|
4
|
+
address: string;
|
5
|
+
} | null>;
|
6
|
+
static findMany(query: GetManyUserModel): Promise<{
|
7
|
+
address: string;
|
8
|
+
tags: string[];
|
9
|
+
}[]>;
|
10
|
+
static create(user: UserModel): Promise<{
|
11
|
+
address: string;
|
12
|
+
tags: string[];
|
13
|
+
}>;
|
14
|
+
static createMany(users: UserModel[]): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
|
15
|
+
static updateTags(address: string, tags: string[]): Promise<{
|
16
|
+
address: string;
|
17
|
+
tags: string[];
|
18
|
+
}>;
|
19
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { GetManyUserModel, UserModel } from "./user.model";
|
2
|
+
export declare abstract class UserService {
|
3
|
+
static get(address: string): Promise<{
|
4
|
+
address: string;
|
5
|
+
} | null>;
|
6
|
+
static getMany(query: GetManyUserModel): Promise<{
|
7
|
+
address: string;
|
8
|
+
tags: string[];
|
9
|
+
}[]>;
|
10
|
+
static create(user: UserModel): Promise<{
|
11
|
+
address: string;
|
12
|
+
tags: string[];
|
13
|
+
}>;
|
14
|
+
static createMany(users: UserModel[]): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
|
15
|
+
static updateTags(user: string, tags: string[]): Promise<{
|
16
|
+
address: string;
|
17
|
+
tags: string[];
|
18
|
+
}>;
|
19
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { BadRequestError, ConflictError, HttpError, NotFoundError, UnauthorizedError } from "../errors";
|
2
|
+
import Elysia from "elysia";
|
3
|
+
export declare const ErrorHandler: Elysia<"", false, {
|
4
|
+
decorator: {};
|
5
|
+
store: {};
|
6
|
+
derive: {};
|
7
|
+
resolve: {};
|
8
|
+
}, {
|
9
|
+
type: {};
|
10
|
+
error: {
|
11
|
+
readonly HttpError: HttpError;
|
12
|
+
readonly BadRequestError: BadRequestError;
|
13
|
+
readonly ConflictError: ConflictError;
|
14
|
+
readonly NotFoundError: NotFoundError;
|
15
|
+
readonly UnauthorizedError: UnauthorizedError;
|
16
|
+
};
|
17
|
+
}, {
|
18
|
+
schema: {};
|
19
|
+
macro: {};
|
20
|
+
}, {}, {
|
21
|
+
derive: {};
|
22
|
+
resolve: {};
|
23
|
+
schema: {};
|
24
|
+
}, {
|
25
|
+
derive: {};
|
26
|
+
resolve: {};
|
27
|
+
schema: {};
|
28
|
+
}>;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import Elysia from "elysia";
|
2
|
+
export declare const Logger: Elysia<"", false, {
|
3
|
+
decorator: {};
|
4
|
+
store: {};
|
5
|
+
derive: {};
|
6
|
+
resolve: {};
|
7
|
+
}, {
|
8
|
+
type: {};
|
9
|
+
error: {};
|
10
|
+
}, {
|
11
|
+
schema: {};
|
12
|
+
macro: {};
|
13
|
+
}, {}, {
|
14
|
+
derive: {};
|
15
|
+
resolve: {};
|
16
|
+
schema: {};
|
17
|
+
}, {
|
18
|
+
derive: {};
|
19
|
+
resolve: {};
|
20
|
+
schema: {};
|
21
|
+
}>;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import type { TokenInfoListType } from "../../libs/getTokensList";
|
2
|
+
import { type UncachedResult } from "../../utils/execute";
|
3
|
+
import type Elysia from "elysia";
|
4
|
+
type ReturnType = {
|
5
|
+
[spender: string]: {
|
6
|
+
[address: string]: {
|
7
|
+
symbol: string;
|
8
|
+
allowance: string;
|
9
|
+
decimals: number;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
};
|
13
|
+
export declare function getUserAllowances(user: string, spenders: string[], tokens: TokenInfoListType, chainId: number, additionalTokenAddresses?: string[]): Promise<UncachedResult<ReturnType>>;
|
14
|
+
export declare const query: import("@sinclair/typebox").TObject<{
|
15
|
+
additionalTokenAddresses: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
16
|
+
chainId: import("@sinclair/typebox").TNumber;
|
17
|
+
user: import("@sinclair/typebox").TString;
|
18
|
+
}>;
|
19
|
+
export declare const response: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
20
|
+
balance: import("@sinclair/typebox").TNumber;
|
21
|
+
decimals: import("@sinclair/typebox").TNumber;
|
22
|
+
symbol: import("@sinclair/typebox").TString;
|
23
|
+
}>>;
|
24
|
+
declare const _default: (app: Elysia) => Elysia<"", false, {
|
25
|
+
decorator: {};
|
26
|
+
store: {};
|
27
|
+
derive: {};
|
28
|
+
resolve: {};
|
29
|
+
}, {
|
30
|
+
type: {};
|
31
|
+
error: {};
|
32
|
+
}, {
|
33
|
+
schema: {};
|
34
|
+
macro: {};
|
35
|
+
}, {
|
36
|
+
index: {
|
37
|
+
get: {
|
38
|
+
body: unknown;
|
39
|
+
params: Record<never, string>;
|
40
|
+
query: {
|
41
|
+
additionalTokenAddresses?: string[] | undefined;
|
42
|
+
chainId: number;
|
43
|
+
user: string;
|
44
|
+
};
|
45
|
+
headers: unknown;
|
46
|
+
response: {
|
47
|
+
200: {
|
48
|
+
[address: string]: {
|
49
|
+
symbol: string;
|
50
|
+
balance: string;
|
51
|
+
decimals: number;
|
52
|
+
};
|
53
|
+
};
|
54
|
+
};
|
55
|
+
};
|
56
|
+
};
|
57
|
+
}, {
|
58
|
+
derive: {};
|
59
|
+
resolve: {};
|
60
|
+
schema: {};
|
61
|
+
}, {
|
62
|
+
derive: {};
|
63
|
+
resolve: {};
|
64
|
+
schema: {};
|
65
|
+
}>;
|
66
|
+
export default _default;
|