@merkl/api 0.17.6 → 0.17.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.js +2 -0
- package/dist/src/jobs/etl/update-dynamic-data.js +103 -101
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/hardcoded.js +3 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/processorMapping.js +2 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/xU308Processor.d.ts +37 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/xU308Processor.js +49 -0
- package/dist/src/libs/positions/clamm/index.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.js +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +67 -2
- package/dist/src/modules/v4/campaign/campaign.repository.js +46 -6
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +55 -2
- package/dist/src/modules/v4/campaign/campaign.service.js +5 -2
- package/dist/src/modules/v4/claims/claims.controller.js +1 -1
- package/dist/src/modules/v4/interaction/interaction.service.d.ts +1 -1
- package/dist/src/modules/v4/interaction/interaction.service.js +3 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.service.js +1 -1
- package/dist/src/modules/v4/opportunity/subservices/getEulerMetadata.service.js +4 -1
- package/dist/src/modules/v4/protocol/protocol.service.js +1 -1
- package/dist/src/modules/v4/reward/reward.service.js +1 -1
- package/dist/src/modules/v4/user/user.model.js +1 -1
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/modules/v4/chain/index.d.ts +0 -4
- package/dist/src/modules/v4/chain/index.js +0 -8
- package/dist/src/modules/v4/chainInteraction/index.d.ts +0 -1
- package/dist/src/modules/v4/chainInteraction/index.js +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { throwOnInvalidRequiredAddress, throwOnUnsupportedChainId } from "../../../utils/throw";
|
2
2
|
import Elysia from "elysia";
|
3
|
-
import { ChainArrayOptionalDto } from "../chain";
|
3
|
+
import { ChainArrayOptionalDto } from "../chain/chain.model";
|
4
4
|
import { UserUniqueDto } from "../user";
|
5
5
|
import { ClaimService } from "./claims.service";
|
6
6
|
// ─── Claim Controller ───────────────────────────────────────────────────────
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ProtocolId } from "../protocol";
|
1
|
+
import type { ProtocolId } from "../protocol/protocol.model";
|
2
2
|
import type { InteractionQuote } from "./interaction.model";
|
3
3
|
export declare abstract class InteractionService {
|
4
4
|
static routers: import("./interaction.model").Router[];
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import { decodeFunctionResult, encodeFunctionData, parseAbi } from "viem";
|
3
|
-
import { ChainInteractionService } from "../chainInteraction";
|
1
|
+
import { ChainInteractionService } from "../chainInteraction/chainInteraction.service";
|
4
2
|
import { EnsoService } from "../enso/enso.service";
|
5
3
|
import { KyberZapService } from "../kyberzap/kyberzap.service";
|
4
|
+
import { ETH_ADDRESS, ETH_ZKSYNC_ADDRESS } from "@sdk";
|
5
|
+
import { decodeFunctionResult, encodeFunctionData, parseAbi } from "viem";
|
6
6
|
export class InteractionService {
|
7
7
|
static routers = [KyberZapService, EnsoService].map(service => service.getRouter());
|
8
8
|
/**
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CacheService } from "../cache";
|
2
2
|
import { TTLPresets } from "../cache/cache.model";
|
3
|
-
import { ChainService } from "../chain";
|
3
|
+
import { ChainService } from "../chain/chain.service";
|
4
4
|
import { MerklRootRepository } from "./merklRoot.repository";
|
5
5
|
export class MerklRootService {
|
6
6
|
static async firstRoot(chainId) {
|
@@ -24,7 +24,10 @@ export const getEulerMetadata = async (chainId, campaignId, campaignSubType, rew
|
|
24
24
|
}
|
25
25
|
return {
|
26
26
|
name,
|
27
|
-
tokens: [
|
27
|
+
tokens: [
|
28
|
+
{ chainId, address: params.targetToken },
|
29
|
+
{ chainId, address: params.addressAsset },
|
30
|
+
],
|
28
31
|
action: [OpportunityAction.LEND, OpportunityAction.BORROW, OpportunityAction.BORROW][campaignSubType],
|
29
32
|
mainProtocol: "euler",
|
30
33
|
};
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { ChainService } from "../chain/chain.service";
|
1
2
|
import { TokenService } from "../token/token.service";
|
2
3
|
import { log } from "../../../utils/logger";
|
3
|
-
import { ChainService } from "../chain";
|
4
4
|
import { ProtocolRepository } from "./protocol.repository";
|
5
5
|
// ─── Protocols Services ──────────────────────────────────────────────────────
|
6
6
|
export class ProtocolService {
|
@@ -5,7 +5,7 @@ import { BlacklistService } from "../blacklist";
|
|
5
5
|
import { CacheService } from "../cache";
|
6
6
|
import { TTLPresets } from "../cache/cache.model";
|
7
7
|
import { CampaignService } from "../campaign";
|
8
|
-
import { ChainService } from "../chain";
|
8
|
+
import { ChainService } from "../chain/chain.service";
|
9
9
|
import { MerklRootService } from "../merklRoot";
|
10
10
|
import { OpportunityService } from "../opportunity";
|
11
11
|
import { TokenService } from "../token/token.service";
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import { ChainResourceDto } from "../chain/chain.model";
|
1
2
|
import { t } from "elysia";
|
2
|
-
import { ChainResourceDto } from "../chain";
|
3
3
|
// ─── Dtos ────────────────────────────────────────────────────────────────────
|
4
4
|
export const UserRewardRouteDto = t.Object({
|
5
5
|
chainId: t
|