@merkl/api 0.10.93 → 0.10.95

Sign up to get free protection for your applications and to get access to all the features.
@@ -606,7 +606,7 @@ declare const eden: {
606
606
  query?: Record<string, unknown> | undefined;
607
607
  fetch?: RequestInit | undefined;
608
608
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
609
- 200: import("../../database/api/.generated").Prisma.BatchPayload;
609
+ 200: import("../../database/api/.generated").Prisma.BatchPayload | undefined;
610
610
  }>>;
611
611
  };
612
612
  };
@@ -2305,7 +2305,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
2305
2305
  authorization: string;
2306
2306
  };
2307
2307
  response: {
2308
- 200: import("../../database/api/.generated").Prisma.BatchPayload;
2308
+ 200: import("../../database/api/.generated").Prisma.BatchPayload | undefined;
2309
2309
  };
2310
2310
  };
2311
2311
  };
@@ -4165,7 +4165,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4165
4165
  query?: Record<string, unknown> | undefined;
4166
4166
  fetch?: RequestInit | undefined;
4167
4167
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4168
- 200: import("../../database/api/.generated").Prisma.BatchPayload;
4168
+ 200: import("../../database/api/.generated").Prisma.BatchPayload | undefined;
4169
4169
  }>>;
4170
4170
  };
4171
4171
  };
@@ -724,7 +724,7 @@ declare const app: Elysia<"", false, {
724
724
  authorization: string;
725
725
  };
726
726
  response: {
727
- 200: import("../database/api/.generated").Prisma.BatchPayload;
727
+ 200: import("../database/api/.generated").Prisma.BatchPayload | undefined;
728
728
  };
729
729
  };
730
730
  };
@@ -1,51 +1,51 @@
1
1
  import type { Multicall3 } from "libs/sdk/src/generated/Multicall";
2
2
  export declare enum tokenType {
3
- uniswapv2 = "uniswapv2",
3
+ aura = "aura",
4
4
  poolside = "poolside",
5
5
  balancerGauge = "balancerGauge",
6
- balancerPool = "balancerPool",
7
- unknown = "unknown",
8
6
  gearbox = "gearbox",
7
+ euler_borrow = "euler_borrow",
8
+ euler_lend = "euler_lend",
9
+ filament = "filament",
10
+ fluid = "fluid",
9
11
  compound = "compound",
10
- radiant_borrow = "radiant_borrow",
11
12
  radiant_lend = "radiant_lend",
12
- fluid = "fluid",
13
+ radiant_borrow = "radiant_borrow",
13
14
  ionic = "ionic",
14
- metamorpho = "metamorpho",
15
- aerodrome = "aerodrome",
16
- velodrome = "velodrome",
15
+ layerbank = "layerbank",
17
16
  moonwell = "moonwell",
18
- aave_lending = "aave_lending",
17
+ yei_borrowing = "yei_borrowing",
18
+ ironclad_borrowing = "ironclad_borrowing",
19
+ zerolend_borrowing = "zerolend_borrowing",
20
+ yei_lending = "yei_lending",
21
+ ironclad_lending = "ironclad_lending",
22
+ zerolend_lending = "zerolend_lending",
19
23
  aave_borrowing = "aave_borrowing",
20
- fraxlend = "fraxlend",
21
- curve = "curve",
24
+ aave_lending = "aave_lending",
22
25
  sturdy_aggregator = "sturdy_aggregator",
23
26
  sturdy_silo = "sturdy_silo",
27
+ fraxlend = "fraxlend",
28
+ uniswapv2 = "uniswapv2",
29
+ fenix = "fenix",
30
+ ra = "ra",
31
+ syncswap = "syncswap",
32
+ curve_2 = "curve_2",
33
+ silostaking = "silostaking",
34
+ beefy = "beefy",
35
+ balancerPool = "balancerPool",
36
+ unknown = "unknown",
37
+ metamorpho = "metamorpho",
38
+ aerodrome = "aerodrome",
39
+ velodrome = "velodrome",
40
+ curve = "curve",
24
41
  splice = "splice",// todo
25
42
  toros = "toros",// todo
26
- curve_2 = "curve_2",
27
- aura = "aura",
28
43
  akron = "akron",
29
44
  enzyme = "enzyme",
30
45
  dragonswap = "dragonswap",
31
- silostaking = "silostaking",
32
- euler_lend = "euler_lend",
33
- euler_borrow = "euler_borrow",
34
46
  koi = "koi",
35
47
  baseswap = "baseswap",
36
- layerbank = "layerbank",
37
- beefy = "beefy",
38
- fenix = "fenix",
39
48
  zkswap = "zkswap",
40
- filament = "filament",
41
- syncswap = "syncswap",
42
- ra = "ra",
43
- yei_borrowing = "yei_borrowing",
44
- yei_lending = "yei_lending",
45
- zerolend_borrowing = "zerolend_borrowing",
46
- zerolend_lending = "zerolend_lending",
47
- ironclad_lending = "ironclad_lending",
48
- ironclad_borrowing = "ironclad_borrowing",
49
49
  pendle = "pendle",
50
50
  ironcladStaking = "ironcladStaking"
51
51
  }
@@ -1,5 +1,5 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
- import { type Campaign, type CampaignParameters } from "@sdk";
2
+ import type { Campaign, CampaignParameters } from "@sdk";
3
3
  import type { tokenType } from "../helpers/tokenType";
4
4
  import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
5
5
  type callType = {
@@ -20,11 +20,13 @@ export type callKeys = {
20
20
  tokenAddress: string;
21
21
  blacklistedSupply: string;
22
22
  totalSupply: string;
23
+ whitelistedSupply: string;
23
24
  };
24
25
  export type dataRaw = {
25
26
  tokenAddress: string;
26
27
  blacklistedSupply: string;
27
28
  totalSupply: string;
29
+ whitelistedSupply: string;
28
30
  };
29
31
  export type dataType = {
30
32
  tokenAddress: string;
@@ -33,6 +35,7 @@ export type dataType = {
33
35
  tvl: number;
34
36
  cardName: string;
35
37
  priceTargetToken: number;
38
+ whitelistedSupplyTargetToken: number;
36
39
  };
37
40
  export declare class GenericProcessor<Input extends callKeys, DataRaw extends dataRaw, Output extends dataType> {
38
41
  rounds: {
@@ -46,14 +49,20 @@ export declare class GenericProcessor<Input extends callKeys, DataRaw extends da
46
49
  processingRound2(typeInfo: DataRaw): void;
47
50
  processingRound3(typeInfo: DataRaw): void;
48
51
  processingRound4(typeInfo: DataRaw): void;
52
+ handleWhiteListBlacklistRound5(typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>): {
53
+ whitelistedSupplyTargetToken: number;
54
+ totalSupply: any;
55
+ blacklistedSupply: number;
56
+ };
49
57
  processingRound5(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<Output>;
50
58
  computeRound1(type: tokenType, typeInfo: DataRaw): tokenTypeStruct;
51
59
  computeRound2(index: number, type: tokenType, typeInfo: DataRaw, calls: string[]): tokenTypeStruct;
52
60
  computeRound3(index: number, type: tokenType, typeInfo: DataRaw, calls: string[]): tokenTypeStruct;
53
61
  computeRound4(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20>): tokenTypeStruct;
54
62
  computeRound5(index: number, type: tokenType, typeInfo: DataRaw, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
63
+ generateWhitelistCall(type: tokenType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20>): Multicall3.Call3Struct[];
55
64
  generateBlackListCall(type: tokenType, typeInfo: DataRaw, campaign: CampaignParameters<Campaign.ERC20>): Multicall3.Call3Struct[];
56
- decodeBlackListedSupply(index: number, decimals: number, blacklist: string[], calls: string[]): string;
65
+ decodeListedSupply(index: number, decimals: number, list: string[], calls: string[]): string;
57
66
  decodeRound(round: callType[], index: number, calls: string[], type: tokenType, data: DataRaw): void;
58
67
  decodePreviousRound(round: roundType, calls: string[], data: DataRaw, type: tokenType, index: number): void;
59
68
  encodeRound(round: callType[], callInfo: Input, type: tokenType): Multicall3.Call3Struct[];
@@ -1,5 +1,5 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
- import { type Campaign, type CampaignParameters } from "@sdk";
2
+ import type { Campaign, CampaignParameters } from "@sdk";
3
3
  import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
4
4
  import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
5
5
  type callType = {
@@ -1,5 +1,5 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
- import { type Campaign, type CampaignParameters } from "@sdk";
2
+ import type { Campaign, CampaignParameters } from "@sdk";
3
3
  import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
4
4
  import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
5
5
  type callKeysSplice = callKeys & {
@@ -59,7 +59,7 @@ export declare const RewardController: Elysia<"/rewards", false, {
59
59
  authorization: string;
60
60
  };
61
61
  response: {
62
- 200: import("../../../../database/api/.generated").Prisma.BatchPayload;
62
+ 200: import("../../../../database/api/.generated").Prisma.BatchPayload | undefined;
63
63
  };
64
64
  };
65
65
  };
@@ -149,7 +149,7 @@ export declare abstract class RewardService {
149
149
  recipient: string;
150
150
  proofs: string[];
151
151
  }[];
152
- static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
152
+ static createManyBreakdown(data: CreateManyBreakdownModel): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload | undefined>;
153
153
  static getByRecipient(recipient: string, roots: string[], withToken?: boolean): Promise<({
154
154
  RewardToken: {
155
155
  id: string;
@@ -706,7 +706,7 @@ export declare const v4: Elysia<"/v4", false, {
706
706
  authorization: string;
707
707
  };
708
708
  response: {
709
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
709
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
710
710
  };
711
711
  };
712
712
  };
@@ -732,7 +732,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
732
732
  authorization: string;
733
733
  };
734
734
  response: {
735
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
735
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
736
736
  };
737
737
  };
738
738
  };
@@ -730,7 +730,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
730
730
  authorization: string;
731
731
  };
732
732
  response: {
733
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
733
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
734
734
  };
735
735
  };
736
736
  };
@@ -733,7 +733,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
733
733
  authorization: string;
734
734
  };
735
735
  response: {
736
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
736
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
737
737
  };
738
738
  };
739
739
  };
@@ -724,7 +724,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
724
724
  authorization: string;
725
725
  };
726
726
  response: {
727
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
727
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
728
728
  };
729
729
  };
730
730
  };
@@ -729,7 +729,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
729
729
  authorization: string;
730
730
  };
731
731
  response: {
732
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
732
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
733
733
  };
734
734
  };
735
735
  };
@@ -747,7 +747,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
747
747
  authorization: string;
748
748
  };
749
749
  response: {
750
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
750
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
751
751
  };
752
752
  };
753
753
  };
@@ -748,7 +748,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
748
748
  authorization: string;
749
749
  };
750
750
  response: {
751
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
751
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
752
752
  };
753
753
  };
754
754
  };
@@ -730,7 +730,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
730
730
  authorization: string;
731
731
  };
732
732
  response: {
733
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
733
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
734
734
  };
735
735
  };
736
736
  };
@@ -731,7 +731,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
731
731
  authorization: string;
732
732
  };
733
733
  response: {
734
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
734
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
735
735
  };
736
736
  };
737
737
  };
@@ -733,7 +733,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
733
733
  authorization: string;
734
734
  };
735
735
  response: {
736
- 200: import("../../../database/api/.generated").Prisma.BatchPayload;
736
+ 200: import("../../../database/api/.generated").Prisma.BatchPayload | undefined;
737
737
  };
738
738
  };
739
739
  };