@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,122 @@
|
|
1
|
+
import Elysia from "elysia";
|
2
|
+
export declare const BlacklistController: Elysia<"/blacklists", false, {
|
3
|
+
decorator: {};
|
4
|
+
store: {};
|
5
|
+
derive: {};
|
6
|
+
resolve: {};
|
7
|
+
}, {
|
8
|
+
type: {};
|
9
|
+
error: {};
|
10
|
+
}, {
|
11
|
+
schema: {};
|
12
|
+
macro: {};
|
13
|
+
}, {
|
14
|
+
blacklists: {
|
15
|
+
index: {
|
16
|
+
get: {
|
17
|
+
body: unknown;
|
18
|
+
params: Record<never, string>;
|
19
|
+
query: unknown;
|
20
|
+
headers: unknown;
|
21
|
+
response: {
|
22
|
+
200: {
|
23
|
+
id: string;
|
24
|
+
chainId: number;
|
25
|
+
poolAddress: string;
|
26
|
+
userAddress: string;
|
27
|
+
arrestTimestamp: bigint;
|
28
|
+
arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
|
29
|
+
}[];
|
30
|
+
};
|
31
|
+
};
|
32
|
+
};
|
33
|
+
};
|
34
|
+
} & {
|
35
|
+
blacklists: {
|
36
|
+
all: {
|
37
|
+
get: {
|
38
|
+
body: unknown;
|
39
|
+
params: Record<never, string>;
|
40
|
+
query: unknown;
|
41
|
+
headers: unknown;
|
42
|
+
response: {
|
43
|
+
200: string[];
|
44
|
+
};
|
45
|
+
};
|
46
|
+
};
|
47
|
+
};
|
48
|
+
} & {
|
49
|
+
blacklists: {
|
50
|
+
check: {
|
51
|
+
":address": {
|
52
|
+
get: {
|
53
|
+
body: unknown;
|
54
|
+
params: {
|
55
|
+
address: string;
|
56
|
+
};
|
57
|
+
query: unknown;
|
58
|
+
headers: unknown;
|
59
|
+
response: {
|
60
|
+
200: boolean;
|
61
|
+
};
|
62
|
+
};
|
63
|
+
};
|
64
|
+
};
|
65
|
+
};
|
66
|
+
} & {
|
67
|
+
blacklists: {
|
68
|
+
index: {
|
69
|
+
post: {
|
70
|
+
body: {
|
71
|
+
reason?: string | undefined;
|
72
|
+
chainId: number;
|
73
|
+
poolAddress: string;
|
74
|
+
userAddress: string;
|
75
|
+
};
|
76
|
+
params: Record<never, string>;
|
77
|
+
query: unknown;
|
78
|
+
headers: {
|
79
|
+
authorization: string;
|
80
|
+
};
|
81
|
+
response: {
|
82
|
+
200: {
|
83
|
+
id: string;
|
84
|
+
chainId: number;
|
85
|
+
poolAddress: string;
|
86
|
+
userAddress: string;
|
87
|
+
arrestTimestamp: bigint;
|
88
|
+
arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
|
89
|
+
};
|
90
|
+
};
|
91
|
+
};
|
92
|
+
};
|
93
|
+
};
|
94
|
+
} & {
|
95
|
+
blacklists: {
|
96
|
+
user: {
|
97
|
+
":address": {
|
98
|
+
delete: {
|
99
|
+
body: unknown;
|
100
|
+
params: {
|
101
|
+
address: string;
|
102
|
+
};
|
103
|
+
query: unknown;
|
104
|
+
headers: {
|
105
|
+
authorization: string;
|
106
|
+
};
|
107
|
+
response: {
|
108
|
+
200: boolean;
|
109
|
+
};
|
110
|
+
};
|
111
|
+
};
|
112
|
+
};
|
113
|
+
};
|
114
|
+
}, {
|
115
|
+
derive: {};
|
116
|
+
resolve: {};
|
117
|
+
schema: {};
|
118
|
+
}, {
|
119
|
+
derive: {};
|
120
|
+
resolve: {};
|
121
|
+
schema: {};
|
122
|
+
}>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare const AddBlacklistDto: import("@sinclair/typebox").TObject<{
|
2
|
+
chainId: import("@sinclair/typebox").TNumber;
|
3
|
+
userAddress: import("@sinclair/typebox").TString;
|
4
|
+
poolAddress: import("@sinclair/typebox").TString;
|
5
|
+
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
6
|
+
}>;
|
7
|
+
export declare const CheckBlacklistDto: import("@sinclair/typebox").TObject<{
|
8
|
+
address: import("@sinclair/typebox").TString;
|
9
|
+
}>;
|
10
|
+
export declare const RemoveBlacklistDto: import("@sinclair/typebox").TObject<{
|
11
|
+
address: import("@sinclair/typebox").TString;
|
12
|
+
}>;
|
13
|
+
export type AddBlacklistModel = typeof AddBlacklistDto.static & {
|
14
|
+
id: string;
|
15
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { AddBlacklistModel } from "./blacklist.model";
|
2
|
+
export declare class BlacklistRepository {
|
3
|
+
static findMany(): Promise<{
|
4
|
+
id: string;
|
5
|
+
chainId: number;
|
6
|
+
poolAddress: string;
|
7
|
+
userAddress: string;
|
8
|
+
arrestTimestamp: bigint;
|
9
|
+
arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
|
10
|
+
}[]>;
|
11
|
+
static getMany(): Promise<{
|
12
|
+
[address: string]: boolean;
|
13
|
+
}>;
|
14
|
+
static check(address: string): Promise<boolean>;
|
15
|
+
static remove(address: string): Promise<boolean>;
|
16
|
+
static add(x: AddBlacklistModel): Promise<{
|
17
|
+
id: string;
|
18
|
+
chainId: number;
|
19
|
+
poolAddress: string;
|
20
|
+
userAddress: string;
|
21
|
+
arrestTimestamp: bigint;
|
22
|
+
arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
|
23
|
+
}>;
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { ChainId } from "@sdk";
|
2
|
+
import type { AddBlacklistModel } from ".";
|
3
|
+
export declare class BlacklistService {
|
4
|
+
static hashId(chainId: ChainId, userAddress: string, poolAddress: string): string;
|
5
|
+
static getMany(): Promise<string[]>;
|
6
|
+
static findMany(): Promise<{
|
7
|
+
id: string;
|
8
|
+
chainId: number;
|
9
|
+
poolAddress: string;
|
10
|
+
userAddress: string;
|
11
|
+
arrestTimestamp: bigint;
|
12
|
+
arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
|
13
|
+
}[]>;
|
14
|
+
static isBlacklisted(address: string): Promise<boolean>;
|
15
|
+
static remove(address: string): Promise<boolean>;
|
16
|
+
static add(x: AddBlacklistModel): Promise<{
|
17
|
+
id: string;
|
18
|
+
chainId: number;
|
19
|
+
poolAddress: string;
|
20
|
+
userAddress: string;
|
21
|
+
arrestTimestamp: bigint;
|
22
|
+
arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
|
23
|
+
}>;
|
24
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
import Elysia from "elysia";
|
2
|
+
export declare const CampaignController: Elysia<"/campaigns", false, {
|
3
|
+
decorator: {};
|
4
|
+
store: {};
|
5
|
+
derive: {};
|
6
|
+
resolve: {};
|
7
|
+
}, {
|
8
|
+
type: {};
|
9
|
+
error: {};
|
10
|
+
}, {
|
11
|
+
schema: {};
|
12
|
+
macro: {};
|
13
|
+
}, {
|
14
|
+
campaigns: {
|
15
|
+
index: {
|
16
|
+
post: {
|
17
|
+
body: {
|
18
|
+
subType?: number | undefined;
|
19
|
+
type: number;
|
20
|
+
params: string;
|
21
|
+
identifier: string;
|
22
|
+
chainId: number;
|
23
|
+
startTimestamp: string;
|
24
|
+
endTimestamp: string;
|
25
|
+
computeChainId: number;
|
26
|
+
campaignId: string;
|
27
|
+
amount: string;
|
28
|
+
creator: string;
|
29
|
+
rewardTokenAddress: string;
|
30
|
+
opportunityIdentifier: string;
|
31
|
+
};
|
32
|
+
params: Record<never, string>;
|
33
|
+
query: unknown;
|
34
|
+
headers: {
|
35
|
+
authorization: string;
|
36
|
+
};
|
37
|
+
response: {
|
38
|
+
200: unknown;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
};
|
42
|
+
};
|
43
|
+
} & {
|
44
|
+
campaigns: {
|
45
|
+
index: {
|
46
|
+
get: {
|
47
|
+
body: unknown;
|
48
|
+
params: Record<never, string>;
|
49
|
+
query: {
|
50
|
+
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
51
|
+
items?: number | undefined;
|
52
|
+
identifier?: string | undefined;
|
53
|
+
subType?: number | undefined;
|
54
|
+
chainId?: number | undefined;
|
55
|
+
startTimestamp?: string | undefined;
|
56
|
+
endTimestamp?: string | undefined;
|
57
|
+
page?: number | undefined;
|
58
|
+
mainParameter?: string | undefined;
|
59
|
+
campaignId?: string | undefined;
|
60
|
+
opportunityId?: string | undefined;
|
61
|
+
};
|
62
|
+
headers: unknown;
|
63
|
+
response: {
|
64
|
+
200: ({
|
65
|
+
params: any;
|
66
|
+
chain: {
|
67
|
+
id: number;
|
68
|
+
name: string;
|
69
|
+
icon: string;
|
70
|
+
};
|
71
|
+
rewardToken: {
|
72
|
+
id: string;
|
73
|
+
name: string | null;
|
74
|
+
chainId: number;
|
75
|
+
address: string;
|
76
|
+
decimals: number;
|
77
|
+
symbol: string;
|
78
|
+
icon: string;
|
79
|
+
verified: boolean;
|
80
|
+
price: number | null;
|
81
|
+
};
|
82
|
+
distributionChain: {
|
83
|
+
id: number;
|
84
|
+
name: string;
|
85
|
+
icon: string;
|
86
|
+
} | undefined;
|
87
|
+
id: string;
|
88
|
+
computeChainId: number;
|
89
|
+
distributionChainId: number;
|
90
|
+
identifier: string;
|
91
|
+
campaignId: string;
|
92
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
93
|
+
subType: number | null;
|
94
|
+
rewardTokenId: string;
|
95
|
+
amount: string;
|
96
|
+
opportunityId: string;
|
97
|
+
startTimestamp: bigint;
|
98
|
+
endTimestamp: bigint;
|
99
|
+
creatorAddress: string;
|
100
|
+
} | null)[];
|
101
|
+
};
|
102
|
+
};
|
103
|
+
};
|
104
|
+
};
|
105
|
+
} & {
|
106
|
+
campaigns: {
|
107
|
+
count: {
|
108
|
+
get: {
|
109
|
+
body: unknown;
|
110
|
+
params: Record<never, string>;
|
111
|
+
query: {
|
112
|
+
type?: "INVALID" | "ERC20" | "CLAMM" | "ERC20_SNAPSHOT" | "JSON_AIRDROP" | "SILO" | "RADIANT" | "MORPHO" | "DOLOMITE" | "BADGER" | "COMPOUND" | "AJNA" | "EULER" | "UNISWAP_V4" | undefined;
|
113
|
+
items?: number | undefined;
|
114
|
+
identifier?: string | undefined;
|
115
|
+
subType?: number | undefined;
|
116
|
+
chainId?: number | undefined;
|
117
|
+
startTimestamp?: string | undefined;
|
118
|
+
endTimestamp?: string | undefined;
|
119
|
+
page?: number | undefined;
|
120
|
+
mainParameter?: string | undefined;
|
121
|
+
campaignId?: string | undefined;
|
122
|
+
opportunityId?: string | undefined;
|
123
|
+
};
|
124
|
+
headers: unknown;
|
125
|
+
response: {
|
126
|
+
200: number;
|
127
|
+
};
|
128
|
+
};
|
129
|
+
};
|
130
|
+
};
|
131
|
+
}, {
|
132
|
+
derive: {};
|
133
|
+
resolve: {};
|
134
|
+
schema: {};
|
135
|
+
}, {
|
136
|
+
derive: {};
|
137
|
+
resolve: {};
|
138
|
+
schema: {};
|
139
|
+
}>;
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import type { Resource } from "../prisma";
|
2
|
+
import type { Token } from "../token";
|
3
|
+
import { CampaignType } from "../../../../database/api/.generated";
|
4
|
+
import { type CampaignParameters } from "@sdk";
|
5
|
+
import type { Chain } from "../chain";
|
6
|
+
/**
|
7
|
+
* Campaign
|
8
|
+
* @description Target description of rewards campaigns
|
9
|
+
* @see {@link Resource}
|
10
|
+
*/
|
11
|
+
export type Campaign<C extends CampaignType = CampaignType> = Resource<"Campaign", "opportunityId" | "rewardTokenId", {
|
12
|
+
chain: Chain["model"];
|
13
|
+
distributionChain?: Chain["model"];
|
14
|
+
rewardToken: Token["model"];
|
15
|
+
params: CampaignParameters<ConvertedCampaignType<C>>["campaignParameters"];
|
16
|
+
}>;
|
17
|
+
export declare const campaignTypeToEnumMap: {
|
18
|
+
readonly INVALID: any;
|
19
|
+
readonly CLAMM: any;
|
20
|
+
readonly ERC20: any;
|
21
|
+
readonly BADGER: any;
|
22
|
+
readonly AJNA: any;
|
23
|
+
readonly COMPOUND: any;
|
24
|
+
readonly EULER: any;
|
25
|
+
readonly DOLOMITE: any;
|
26
|
+
readonly ERC20_SNAPSHOT: any;
|
27
|
+
readonly MORPHO: any;
|
28
|
+
readonly RADIANT: any;
|
29
|
+
readonly SILO: any;
|
30
|
+
readonly JSON_AIRDROP: any;
|
31
|
+
readonly UNISWAP_V4: any;
|
32
|
+
};
|
33
|
+
export type ConvertedCampaignType<C extends CampaignType> = (typeof campaignTypeToEnumMap)[C];
|
34
|
+
export declare const CampaignUniqueDto: import("@sinclair/typebox").TObject<{
|
35
|
+
distributionChain: import("@sinclair/typebox").TNumber;
|
36
|
+
identifier: import("@sinclair/typebox").TString;
|
37
|
+
}>;
|
38
|
+
export declare const CreateCampaignDto: import("@sinclair/typebox").TObject<{
|
39
|
+
computeChainId: import("@sinclair/typebox").TNumber;
|
40
|
+
chainId: import("@sinclair/typebox").TNumber;
|
41
|
+
campaignId: import("@sinclair/typebox").TString;
|
42
|
+
identifier: import("@sinclair/typebox").TString;
|
43
|
+
creator: import("@sinclair/typebox").TString;
|
44
|
+
type: import("@sinclair/typebox").TNumber;
|
45
|
+
subType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
46
|
+
rewardTokenAddress: import("@sinclair/typebox").TString;
|
47
|
+
amount: import("@sinclair/typebox").TString;
|
48
|
+
opportunityIdentifier: import("@sinclair/typebox").TString;
|
49
|
+
startTimestamp: import("@sinclair/typebox").TString;
|
50
|
+
endTimestamp: import("@sinclair/typebox").TString;
|
51
|
+
params: import("@sinclair/typebox").TString;
|
52
|
+
}>;
|
53
|
+
export declare const GetCampaignQueryDto: import("@sinclair/typebox").TObject<{
|
54
|
+
page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
55
|
+
items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
56
|
+
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
57
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
58
|
+
INVALID: "INVALID";
|
59
|
+
ERC20: "ERC20";
|
60
|
+
CLAMM: "CLAMM";
|
61
|
+
ERC20_SNAPSHOT: "ERC20_SNAPSHOT";
|
62
|
+
JSON_AIRDROP: "JSON_AIRDROP";
|
63
|
+
SILO: "SILO";
|
64
|
+
RADIANT: "RADIANT";
|
65
|
+
MORPHO: "MORPHO";
|
66
|
+
DOLOMITE: "DOLOMITE";
|
67
|
+
BADGER: "BADGER";
|
68
|
+
COMPOUND: "COMPOUND";
|
69
|
+
AJNA: "AJNA";
|
70
|
+
EULER: "EULER";
|
71
|
+
UNISWAP_V4: "UNISWAP_V4";
|
72
|
+
}>>;
|
73
|
+
subType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
74
|
+
identifier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
75
|
+
campaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
76
|
+
mainParameter: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
77
|
+
opportunityId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
78
|
+
startTimestamp: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
79
|
+
endTimestamp: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
80
|
+
}>;
|
81
|
+
export type CampaignUnique = typeof CampaignUniqueDto.static;
|
82
|
+
export type CreateCampaignModel = typeof CreateCampaignDto.static & {
|
83
|
+
id: string;
|
84
|
+
};
|
85
|
+
export type GetCampaignQueryModel = typeof GetCampaignQueryDto.static;
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import type { CampaignUnique, CreateCampaignModel, GetCampaignQueryModel } from "./";
|
2
|
+
import { type Prisma } from "../../../../database/api/.generated";
|
3
|
+
import type { ChainId } from "@sdk";
|
4
|
+
import { type OpportunityMetadata } from "../opportunity";
|
5
|
+
export declare abstract class CampaignRepository {
|
6
|
+
#private;
|
7
|
+
static upsert(campaign: CreateCampaignModel, metadata: OpportunityMetadata): Promise<{
|
8
|
+
id: string;
|
9
|
+
computeChainId: number;
|
10
|
+
distributionChainId: number;
|
11
|
+
identifier: string;
|
12
|
+
campaignId: string;
|
13
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
14
|
+
subType: number | null;
|
15
|
+
rewardTokenId: string;
|
16
|
+
amount: string;
|
17
|
+
opportunityId: string;
|
18
|
+
startTimestamp: bigint;
|
19
|
+
endTimestamp: bigint;
|
20
|
+
params: Prisma.JsonValue;
|
21
|
+
creatorAddress: string;
|
22
|
+
} | undefined>;
|
23
|
+
static upsertMany(campaigns: CreateCampaignModel[], campaignToOpp: Record<string, OpportunityMetadata>): Promise<{
|
24
|
+
success: number;
|
25
|
+
fail: number;
|
26
|
+
}>;
|
27
|
+
/**
|
28
|
+
* Fetches the campaign static data for a v3 campaign in database
|
29
|
+
* @param chainId
|
30
|
+
* @param timestamp from which campaigns endTimestamp are filtered
|
31
|
+
* @returns
|
32
|
+
*/
|
33
|
+
static getFromEngineDb(chainId: number, timestamp: number): Promise<CampaignParameters<CampaignV3>[]>;
|
34
|
+
static getFromEngineDbWithId(campaignIds: CampaignUnique[]): Promise<{
|
35
|
+
chainId: number;
|
36
|
+
computeChainId: number;
|
37
|
+
index: number;
|
38
|
+
campaignId: string;
|
39
|
+
creator: string;
|
40
|
+
campaignType: number;
|
41
|
+
campaignSubType: number;
|
42
|
+
rewardToken: string;
|
43
|
+
amount: string;
|
44
|
+
startTimestamp: number;
|
45
|
+
endTimestamp: number;
|
46
|
+
mainParameter: string;
|
47
|
+
campaignParameters: import("../../../../database/engine/.generated").Prisma.JsonValue;
|
48
|
+
}[]>;
|
49
|
+
static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
|
50
|
+
static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
|
51
|
+
id: string;
|
52
|
+
computeChainId: number;
|
53
|
+
distributionChainId: number;
|
54
|
+
identifier: string;
|
55
|
+
campaignId: string;
|
56
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
57
|
+
subType: number | null;
|
58
|
+
rewardTokenId: string;
|
59
|
+
amount: string;
|
60
|
+
opportunityId: string;
|
61
|
+
startTimestamp: bigint;
|
62
|
+
endTimestamp: bigint;
|
63
|
+
params: Prisma.JsonValue;
|
64
|
+
creatorAddress: string;
|
65
|
+
}>;
|
66
|
+
static findMany(query: GetCampaignQueryModel): Promise<({
|
67
|
+
ComputeChain: {
|
68
|
+
id: number;
|
69
|
+
name: string;
|
70
|
+
icon: string;
|
71
|
+
};
|
72
|
+
DistributionChain: {
|
73
|
+
id: number;
|
74
|
+
name: string;
|
75
|
+
icon: string;
|
76
|
+
};
|
77
|
+
RewardToken: {
|
78
|
+
id: string;
|
79
|
+
name: string | null;
|
80
|
+
chainId: number;
|
81
|
+
address: string;
|
82
|
+
decimals: number;
|
83
|
+
symbol: string;
|
84
|
+
icon: string;
|
85
|
+
verified: boolean;
|
86
|
+
price: number | null;
|
87
|
+
};
|
88
|
+
} & {
|
89
|
+
id: string;
|
90
|
+
computeChainId: number;
|
91
|
+
distributionChainId: number;
|
92
|
+
identifier: string;
|
93
|
+
campaignId: string;
|
94
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
95
|
+
subType: number | null;
|
96
|
+
rewardTokenId: string;
|
97
|
+
amount: string;
|
98
|
+
opportunityId: string;
|
99
|
+
startTimestamp: bigint;
|
100
|
+
endTimestamp: bigint;
|
101
|
+
params: Prisma.JsonValue;
|
102
|
+
creatorAddress: string;
|
103
|
+
})[]>;
|
104
|
+
static countMany(query: GetCampaignQueryModel): Promise<number>;
|
105
|
+
static findManyCampaignId(chainId: ChainId): Promise<{
|
106
|
+
identifier: string;
|
107
|
+
campaignId: string;
|
108
|
+
}[]>;
|
109
|
+
static findChains(): Promise<Record<string, ChainId>>;
|
110
|
+
}
|