@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,169 @@
|
|
1
|
+
import Elysia from "elysia";
|
2
|
+
export declare const PriceController: Elysia<"/prices", false, {
|
3
|
+
decorator: {};
|
4
|
+
store: {};
|
5
|
+
derive: {};
|
6
|
+
resolve: {};
|
7
|
+
}, {
|
8
|
+
type: {};
|
9
|
+
error: {};
|
10
|
+
}, {
|
11
|
+
schema: {};
|
12
|
+
macro: {};
|
13
|
+
}, {
|
14
|
+
prices: {
|
15
|
+
index: {
|
16
|
+
get: {
|
17
|
+
body: unknown;
|
18
|
+
params: Record<never, string>;
|
19
|
+
query: unknown;
|
20
|
+
headers: unknown;
|
21
|
+
response: {
|
22
|
+
200: {
|
23
|
+
[token: string]: number;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
} & {
|
29
|
+
symbol: {
|
30
|
+
":symbol": {
|
31
|
+
get: {
|
32
|
+
body: unknown;
|
33
|
+
params: {
|
34
|
+
symbol: string;
|
35
|
+
};
|
36
|
+
query: unknown;
|
37
|
+
headers: unknown;
|
38
|
+
response: {
|
39
|
+
200: number;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
};
|
43
|
+
};
|
44
|
+
} & {
|
45
|
+
sources: {
|
46
|
+
index: {
|
47
|
+
get: {
|
48
|
+
body: unknown;
|
49
|
+
params: Record<never, string>;
|
50
|
+
query: unknown;
|
51
|
+
headers: unknown;
|
52
|
+
response: {
|
53
|
+
200: {
|
54
|
+
id: number;
|
55
|
+
symbol: string;
|
56
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
57
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
58
|
+
}[];
|
59
|
+
};
|
60
|
+
};
|
61
|
+
};
|
62
|
+
};
|
63
|
+
} & {
|
64
|
+
sources: {
|
65
|
+
symbol: {
|
66
|
+
":symbol": {
|
67
|
+
get: {
|
68
|
+
body: unknown;
|
69
|
+
params: {
|
70
|
+
symbol: string;
|
71
|
+
};
|
72
|
+
query: unknown;
|
73
|
+
headers: unknown;
|
74
|
+
response: {
|
75
|
+
200: {
|
76
|
+
id: number;
|
77
|
+
symbol: string;
|
78
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
79
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
80
|
+
};
|
81
|
+
};
|
82
|
+
};
|
83
|
+
};
|
84
|
+
};
|
85
|
+
};
|
86
|
+
} & {
|
87
|
+
sources: {
|
88
|
+
index: {
|
89
|
+
post: {
|
90
|
+
body: {
|
91
|
+
symbol: string;
|
92
|
+
method: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA";
|
93
|
+
args: {};
|
94
|
+
};
|
95
|
+
params: Record<never, string>;
|
96
|
+
query: unknown;
|
97
|
+
headers: {
|
98
|
+
authorization: string;
|
99
|
+
};
|
100
|
+
response: {
|
101
|
+
200: number | undefined;
|
102
|
+
};
|
103
|
+
};
|
104
|
+
};
|
105
|
+
};
|
106
|
+
} & {
|
107
|
+
sources: {
|
108
|
+
symbol: {
|
109
|
+
":symbol": {
|
110
|
+
patch: {
|
111
|
+
body: {
|
112
|
+
symbol?: string | undefined;
|
113
|
+
method?: "COINGECKO" | "CONSTANT" | "EQUAL_TO" | "ERC4626" | "DEXSCREENER" | "INDEXCOOP" | "DEFILLAMA" | undefined;
|
114
|
+
args?: {} | undefined;
|
115
|
+
};
|
116
|
+
params: {
|
117
|
+
symbol: string;
|
118
|
+
};
|
119
|
+
query: unknown;
|
120
|
+
headers: {
|
121
|
+
authorization: string;
|
122
|
+
};
|
123
|
+
response: {
|
124
|
+
200: {
|
125
|
+
id: number;
|
126
|
+
symbol: string;
|
127
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
128
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
129
|
+
};
|
130
|
+
};
|
131
|
+
};
|
132
|
+
};
|
133
|
+
};
|
134
|
+
};
|
135
|
+
} & {
|
136
|
+
sources: {
|
137
|
+
symbol: {
|
138
|
+
":symbol": {
|
139
|
+
delete: {
|
140
|
+
body: unknown;
|
141
|
+
params: {
|
142
|
+
symbol: string;
|
143
|
+
};
|
144
|
+
query: unknown;
|
145
|
+
headers: {
|
146
|
+
authorization: string;
|
147
|
+
};
|
148
|
+
response: {
|
149
|
+
200: {
|
150
|
+
id: number;
|
151
|
+
symbol: string;
|
152
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
153
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
154
|
+
};
|
155
|
+
};
|
156
|
+
};
|
157
|
+
};
|
158
|
+
};
|
159
|
+
};
|
160
|
+
};
|
161
|
+
}, {
|
162
|
+
derive: {};
|
163
|
+
resolve: {};
|
164
|
+
schema: {};
|
165
|
+
}, {
|
166
|
+
derive: {};
|
167
|
+
resolve: {};
|
168
|
+
schema: {};
|
169
|
+
}>;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
export declare const CreatePriceSourceDto: import("@sinclair/typebox").TObject<{
|
2
|
+
symbol: import("@sinclair/typebox").TString;
|
3
|
+
method: import("@sinclair/typebox").TEnum<{
|
4
|
+
COINGECKO: "COINGECKO";
|
5
|
+
CONSTANT: "CONSTANT";
|
6
|
+
EQUAL_TO: "EQUAL_TO";
|
7
|
+
ERC4626: "ERC4626";
|
8
|
+
DEXSCREENER: "DEXSCREENER";
|
9
|
+
INDEXCOOP: "INDEXCOOP";
|
10
|
+
DEFILLAMA: "DEFILLAMA";
|
11
|
+
}>;
|
12
|
+
args: import("@sinclair/typebox").TObject<{}>;
|
13
|
+
}>;
|
14
|
+
export declare const UpdatePriceSourceDto: import("@sinclair/typebox").TObject<{
|
15
|
+
symbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
16
|
+
method: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
17
|
+
COINGECKO: "COINGECKO";
|
18
|
+
CONSTANT: "CONSTANT";
|
19
|
+
EQUAL_TO: "EQUAL_TO";
|
20
|
+
ERC4626: "ERC4626";
|
21
|
+
DEXSCREENER: "DEXSCREENER";
|
22
|
+
INDEXCOOP: "INDEXCOOP";
|
23
|
+
DEFILLAMA: "DEFILLAMA";
|
24
|
+
}>>;
|
25
|
+
args: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
|
26
|
+
}>;
|
27
|
+
export declare const PriceSourceIdentifier: import("@sinclair/typebox").TObject<{
|
28
|
+
symbol: import("@sinclair/typebox").TString;
|
29
|
+
}>;
|
30
|
+
export type CreatePriceSourceModel = typeof CreatePriceSourceDto.static;
|
31
|
+
export type PriceSourceIdentifierModel = typeof PriceSourceIdentifier.static;
|
32
|
+
export type UpdatePriceSourceModel = typeof UpdatePriceSourceDto.static;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import type { CreatePriceSourceModel, UpdatePriceSourceModel } from ".";
|
2
|
+
export declare class PriceRepository {
|
3
|
+
static findBySymbolOrThrow(symbol: string): Promise<{
|
4
|
+
id: number;
|
5
|
+
symbol: string;
|
6
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
7
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
8
|
+
}>;
|
9
|
+
static findMany(): Promise<{
|
10
|
+
id: number;
|
11
|
+
symbol: string;
|
12
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
13
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
14
|
+
}[]>;
|
15
|
+
static create(priceSource: CreatePriceSourceModel): Promise<{
|
16
|
+
id: number;
|
17
|
+
symbol: string;
|
18
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
19
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
20
|
+
}>;
|
21
|
+
static updateBySymbol(unique: string, newPriceSource: UpdatePriceSourceModel): Promise<{
|
22
|
+
id: number;
|
23
|
+
symbol: string;
|
24
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
25
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
26
|
+
}>;
|
27
|
+
static deleteBySymbol(symbol: string): Promise<{
|
28
|
+
id: number;
|
29
|
+
symbol: string;
|
30
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
31
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
32
|
+
}>;
|
33
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import type { CreatePriceSourceModel, UpdatePriceSourceModel } from ".";
|
2
|
+
export declare class PriceService {
|
3
|
+
static findMany(): Promise<{
|
4
|
+
[token: string]: number;
|
5
|
+
}>;
|
6
|
+
/** Fetches a single price */
|
7
|
+
static fetchPriceSourceBySymbol(symbol: string): Promise<number>;
|
8
|
+
static getPriceSourceBySymbol(symbol: string): Promise<{
|
9
|
+
id: number;
|
10
|
+
symbol: string;
|
11
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
12
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
13
|
+
}>;
|
14
|
+
static getManyPriceSources(): Promise<{
|
15
|
+
id: number;
|
16
|
+
symbol: string;
|
17
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
18
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
19
|
+
}[]>;
|
20
|
+
static createPriceSource(priceSource: CreatePriceSourceModel): Promise<number>;
|
21
|
+
static updatePriceSource(symbol: string, newPriceSource: UpdatePriceSourceModel): Promise<{
|
22
|
+
id: number;
|
23
|
+
symbol: string;
|
24
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
25
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
26
|
+
}>;
|
27
|
+
static deletePriceSource(symbol: string): Promise<{
|
28
|
+
id: number;
|
29
|
+
symbol: string;
|
30
|
+
method: import("../../../../database/api/.generated").$Enums.PriceSourceMethod;
|
31
|
+
args: import("../../../../database/api/.generated").Prisma.JsonValue | null;
|
32
|
+
}>;
|
33
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { Prisma as PrismaTypes } from "../../../../database/api/.generated";
|
2
|
+
type Prisma = PrismaTypes.TypeMap["model"];
|
3
|
+
type Model<R extends keyof Prisma> = Prisma[R]["payload"]["scalars"];
|
4
|
+
type Operations<R extends keyof Prisma> = Prisma[R]["operations"];
|
5
|
+
type OptionalKeys<Obj> = keyof {
|
6
|
+
[Key in keyof Obj as Omit<Obj, Key> extends Obj ? Key : never]: Obj[Key];
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* A resource from the prisma generated types
|
10
|
+
* @param Schema - name of the resource
|
11
|
+
* @typeParam DbSpecificKeys - keys to remove from default model
|
12
|
+
* @typeParam Override - addtional properties to add
|
13
|
+
* @returns A type with members for every prisma declaration
|
14
|
+
* @example type User = Resource<"User", "id">;
|
15
|
+
* const userTemplate: User["action"]["create"] = {...}
|
16
|
+
* const userUpsert: User["action"]["upsert"] = {...}
|
17
|
+
* const user: User["model"] = {...}
|
18
|
+
* const userDbRaw: User["raw"] = {...}
|
19
|
+
*/
|
20
|
+
export type Resource<Schema extends keyof Prisma, DbSpecificKeys extends keyof Model<Schema> | undefined = undefined, Override extends {} = {}> = {
|
21
|
+
model: {
|
22
|
+
[K in Exclude<keyof Model<Schema> | keyof Override, DbSpecificKeys | OptionalKeys<Override>>]: K extends keyof Override ? Override[K] : K extends DbSpecificKeys ? never : K extends keyof Model<Schema> ? Model<Schema>[K] : never;
|
23
|
+
} & {
|
24
|
+
[K in OptionalKeys<Override>]?: Override[K];
|
25
|
+
};
|
26
|
+
raw: Model<Schema>;
|
27
|
+
} & {
|
28
|
+
action: {
|
29
|
+
[O in keyof Operations<Schema>]: Operations<Schema>[O];
|
30
|
+
};
|
31
|
+
};
|
32
|
+
export {};
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import Elysia from "elysia";
|
2
|
+
export declare const ProtocolController: Elysia<"/protocols", false, {
|
3
|
+
decorator: {};
|
4
|
+
store: {};
|
5
|
+
derive: {};
|
6
|
+
resolve: {};
|
7
|
+
}, {
|
8
|
+
type: {};
|
9
|
+
error: {};
|
10
|
+
}, {
|
11
|
+
schema: {};
|
12
|
+
macro: {};
|
13
|
+
}, {
|
14
|
+
protocols: {
|
15
|
+
":id": {
|
16
|
+
get: {
|
17
|
+
body: unknown;
|
18
|
+
params: Record<"id", string>;
|
19
|
+
query: unknown;
|
20
|
+
headers: unknown;
|
21
|
+
response: {
|
22
|
+
200: ({
|
23
|
+
name: string;
|
24
|
+
url: string;
|
25
|
+
description: string;
|
26
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
27
|
+
icon: string;
|
28
|
+
} & {}) | null;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
};
|
33
|
+
} & {
|
34
|
+
protocols: {
|
35
|
+
index: {
|
36
|
+
get: {
|
37
|
+
body: unknown;
|
38
|
+
params: Record<never, string>;
|
39
|
+
query: {
|
40
|
+
name?: string | undefined;
|
41
|
+
id?: string[] | undefined;
|
42
|
+
items?: number | undefined;
|
43
|
+
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
44
|
+
page?: number | undefined;
|
45
|
+
};
|
46
|
+
headers: unknown;
|
47
|
+
response: {
|
48
|
+
200: ({
|
49
|
+
name: string;
|
50
|
+
url: string;
|
51
|
+
description: string;
|
52
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
53
|
+
icon: string;
|
54
|
+
} & {})[] | null;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
};
|
58
|
+
};
|
59
|
+
} & {
|
60
|
+
protocols: {
|
61
|
+
count: {
|
62
|
+
get: {
|
63
|
+
body: unknown;
|
64
|
+
params: Record<never, string>;
|
65
|
+
query: {
|
66
|
+
name?: string | undefined;
|
67
|
+
id?: string[] | undefined;
|
68
|
+
items?: number | undefined;
|
69
|
+
tags?: ("AMM" | "ALM" | "DEX" | "LENDING")[] | undefined;
|
70
|
+
page?: number | undefined;
|
71
|
+
};
|
72
|
+
headers: unknown;
|
73
|
+
response: {
|
74
|
+
200: number;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
};
|
78
|
+
};
|
79
|
+
}, {
|
80
|
+
derive: {};
|
81
|
+
resolve: {};
|
82
|
+
schema: {};
|
83
|
+
}, {
|
84
|
+
derive: {};
|
85
|
+
resolve: {};
|
86
|
+
schema: {};
|
87
|
+
}>;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { Resource } from "../prisma";
|
2
|
+
/**
|
3
|
+
* Protocol
|
4
|
+
* @description Target description of rewards campaigns
|
5
|
+
* @see {@link Resource}
|
6
|
+
*/
|
7
|
+
export type Protocol = Resource<"Protocol", "id">;
|
8
|
+
declare const protocolTypes: readonly ["arthswap", "baseswap", "camelot", "crust", "fenix", "horiza", "izumi", "kim", "pancakeswap-v3", "quickswap-algebra", "quickswap-uni", "ramses", "retro", "stryke", "stryke-pcs", "stryke-sushi", "sushiswap-v3", "swapr", "thruster", "uniswap-v3", "voltage", "zero", "koi", "supswap-v3", "uniswap-v2", "velodrome", "aerodrome", "balancer", "curve", "aura", "akron", "beefy", "dragonswap", "poolside", "koi", "radiant", "aave", "euler", "gearbox", "compound", "sturdy", "frax", "ionic", "moonwell", "fluid", "silo", "morpho", "coumpound", "dolomite", "badger", "ajna", "layerbank"];
|
9
|
+
export type ProtocolId = (typeof protocolTypes)[number];
|
10
|
+
export declare const GetProtocolsQueryDto: import("@sinclair/typebox").TObject<{
|
11
|
+
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
12
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
13
|
+
tags: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
|
14
|
+
AMM: "AMM";
|
15
|
+
ALM: "ALM";
|
16
|
+
DEX: "DEX";
|
17
|
+
LENDING: "LENDING";
|
18
|
+
}>>>;
|
19
|
+
page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
20
|
+
items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
21
|
+
}>;
|
22
|
+
export declare const GetProtocolParamsDto: import("@sinclair/typebox").TObject<{
|
23
|
+
id: import("@sinclair/typebox").TString;
|
24
|
+
}>;
|
25
|
+
export type GetProtocolsQueryModel = typeof GetProtocolsQueryDto.static;
|
26
|
+
export type GetProtocolModel = typeof GetProtocolParamsDto.static;
|
27
|
+
export {};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { GetProtocolsQueryModel, Protocol } from "./protocol.model";
|
2
|
+
export declare abstract class ProtocolRepository {
|
3
|
+
#private;
|
4
|
+
static create(template: Protocol["action"]["create"]["args"]): Promise<{
|
5
|
+
id: string;
|
6
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
7
|
+
name: string;
|
8
|
+
description: string;
|
9
|
+
url: string;
|
10
|
+
icon: string;
|
11
|
+
}>;
|
12
|
+
static read(type: string): Promise<{
|
13
|
+
id: string;
|
14
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
15
|
+
name: string;
|
16
|
+
description: string;
|
17
|
+
url: string;
|
18
|
+
icon: string;
|
19
|
+
} | null>;
|
20
|
+
static findManyByName(name: string): Promise<{
|
21
|
+
id: string;
|
22
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
23
|
+
name: string;
|
24
|
+
description: string;
|
25
|
+
url: string;
|
26
|
+
icon: string;
|
27
|
+
}[]>;
|
28
|
+
static findMany(query: GetProtocolsQueryModel): Promise<{
|
29
|
+
id: string;
|
30
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
31
|
+
name: string;
|
32
|
+
description: string;
|
33
|
+
url: string;
|
34
|
+
icon: string;
|
35
|
+
}[]>;
|
36
|
+
static countMany(query: GetProtocolsQueryModel): Promise<number>;
|
37
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { AMM as AMMV3 } from "@sdk";
|
2
|
+
import type { GetProtocolsQueryModel, Protocol, ProtocolId } from "./protocol.model";
|
3
|
+
export declare abstract class ProtocolService {
|
4
|
+
static getIdFromAmmV3(amm: AMMV3): ProtocolId;
|
5
|
+
static getIdFromErc20Type(_type: string): ProtocolId | undefined;
|
6
|
+
static findMany(query: GetProtocolsQueryModel): Promise<Protocol["model"][] | null>;
|
7
|
+
static countMany(query: GetProtocolsQueryModel): Promise<number>;
|
8
|
+
static getFromId(id: ProtocolId | string): Promise<Protocol["model"] | null>;
|
9
|
+
static getFromName(name: string): Promise<Protocol["model"] | null>;
|
10
|
+
}
|
@@ -0,0 +1,158 @@
|
|
1
|
+
import Elysia from "elysia";
|
2
|
+
export declare const RewardController: Elysia<"/rewards", false, {
|
3
|
+
decorator: {};
|
4
|
+
store: {};
|
5
|
+
derive: {};
|
6
|
+
resolve: {};
|
7
|
+
}, {
|
8
|
+
type: {};
|
9
|
+
error: {};
|
10
|
+
}, {
|
11
|
+
schema: {};
|
12
|
+
macro: {};
|
13
|
+
}, {
|
14
|
+
rewards: {
|
15
|
+
engine: {
|
16
|
+
post: {
|
17
|
+
body: {
|
18
|
+
recipient: string;
|
19
|
+
distributionChainId: number;
|
20
|
+
root: string;
|
21
|
+
proofs: string[];
|
22
|
+
rewardToken: string;
|
23
|
+
}[];
|
24
|
+
params: Record<never, string>;
|
25
|
+
query: unknown;
|
26
|
+
headers: {
|
27
|
+
authorization: string;
|
28
|
+
};
|
29
|
+
response: {
|
30
|
+
200: import("../../../../database/api/.generated").Prisma.BatchPayload;
|
31
|
+
};
|
32
|
+
};
|
33
|
+
};
|
34
|
+
};
|
35
|
+
} & {
|
36
|
+
rewards: {
|
37
|
+
engine: {
|
38
|
+
breakdowns: {
|
39
|
+
post: {
|
40
|
+
body: {
|
41
|
+
distributionChainId: number;
|
42
|
+
campaignId: string;
|
43
|
+
root: string;
|
44
|
+
rewardToken: string;
|
45
|
+
breakdowns: {
|
46
|
+
protocolId?: string | undefined;
|
47
|
+
auxiliaryData1?: string | undefined;
|
48
|
+
auxiliaryData2?: string | undefined;
|
49
|
+
reason: string;
|
50
|
+
pending: string;
|
51
|
+
recipient: string;
|
52
|
+
amount: string;
|
53
|
+
claimed: string;
|
54
|
+
}[];
|
55
|
+
}[];
|
56
|
+
params: Record<never, string>;
|
57
|
+
query: unknown;
|
58
|
+
headers: {
|
59
|
+
authorization: string;
|
60
|
+
};
|
61
|
+
response: {
|
62
|
+
200: import("../../../../database/api/.generated").Prisma.BatchPayload;
|
63
|
+
};
|
64
|
+
};
|
65
|
+
};
|
66
|
+
};
|
67
|
+
};
|
68
|
+
} & {
|
69
|
+
rewards: {
|
70
|
+
pendings: {
|
71
|
+
post: {
|
72
|
+
body: {
|
73
|
+
distributionChainId: number;
|
74
|
+
campaignId: string;
|
75
|
+
root: string;
|
76
|
+
rewardToken: string;
|
77
|
+
toUpdate: {
|
78
|
+
auxiliaryData1?: string | undefined;
|
79
|
+
auxiliaryData2?: string | undefined;
|
80
|
+
reason: string;
|
81
|
+
pending: string;
|
82
|
+
recipient: string;
|
83
|
+
}[];
|
84
|
+
toCreate: {
|
85
|
+
auxiliaryData1?: string | undefined;
|
86
|
+
auxiliaryData2?: string | undefined;
|
87
|
+
reason: string;
|
88
|
+
pending: string;
|
89
|
+
recipient: string;
|
90
|
+
}[];
|
91
|
+
};
|
92
|
+
params: Record<never, string>;
|
93
|
+
query: unknown;
|
94
|
+
headers: {
|
95
|
+
authorization: string;
|
96
|
+
};
|
97
|
+
response: {
|
98
|
+
200: boolean;
|
99
|
+
};
|
100
|
+
};
|
101
|
+
};
|
102
|
+
};
|
103
|
+
} & {
|
104
|
+
rewards: {
|
105
|
+
count: {
|
106
|
+
get: {
|
107
|
+
body: unknown;
|
108
|
+
params: Record<never, string>;
|
109
|
+
query: unknown;
|
110
|
+
headers: {
|
111
|
+
authorization: string;
|
112
|
+
};
|
113
|
+
response: {
|
114
|
+
200: Record<string, {
|
115
|
+
breakdown: number;
|
116
|
+
rewards: Record<string, number>;
|
117
|
+
}>;
|
118
|
+
};
|
119
|
+
};
|
120
|
+
};
|
121
|
+
};
|
122
|
+
} & {
|
123
|
+
rewards: {
|
124
|
+
breakdown: {
|
125
|
+
get: {
|
126
|
+
body: unknown;
|
127
|
+
params: Record<never, string>;
|
128
|
+
query: {
|
129
|
+
items?: number | undefined;
|
130
|
+
page?: number | undefined;
|
131
|
+
chainId: number;
|
132
|
+
campaignIdentifiers: string | string[];
|
133
|
+
};
|
134
|
+
headers: unknown;
|
135
|
+
response: {
|
136
|
+
200: {
|
137
|
+
Campaign: {
|
138
|
+
identifier: string;
|
139
|
+
campaignId: string;
|
140
|
+
};
|
141
|
+
amount: string;
|
142
|
+
Reward: {
|
143
|
+
recipient: string;
|
144
|
+
};
|
145
|
+
}[];
|
146
|
+
};
|
147
|
+
};
|
148
|
+
};
|
149
|
+
};
|
150
|
+
}, {
|
151
|
+
derive: {};
|
152
|
+
resolve: {};
|
153
|
+
schema: {};
|
154
|
+
}, {
|
155
|
+
derive: {};
|
156
|
+
resolve: {};
|
157
|
+
schema: {};
|
158
|
+
}>;
|