@merkl/api 0.16.31 → 0.16.33
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/eden/index.d.ts +308 -63
- package/dist/src/index.d.ts +64 -19
- package/dist/src/libs/campaigns/campaignTypes/ERC20DynamicData.js +6 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/GenericProcessor.d.ts +16 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/GenericProcessor.js +84 -10
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/ownerFinder.js +1 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +3 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HanjiVaultProcessor.d.ts +43 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/HanjiVaultProcessor.js +58 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/curveNPoolProcessor.js +0 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/processorMapping.js +2 -2
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.d.ts +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +17 -19
- package/dist/src/libs/campaigns/campaignTypes/RadiantDynamicData.js +13 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +0 -19
- package/dist/src/modules/v4/boost/boost.controller.js +1 -2
- package/dist/src/modules/v4/boost/boost.service.d.ts +0 -4
- package/dist/src/modules/v4/boost/boost.service.js +0 -23
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +64 -0
- package/dist/src/modules/v4/campaign/campaign.controller.js +20 -0
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +37 -0
- package/dist/src/modules/v4/campaign/campaign.repository.js +7 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +37 -0
- package/dist/src/modules/v4/opportunity/opportunity.service.js +1 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +69 -318
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +237 -54
- package/dist/src/modules/v4/router.d.ts +64 -19
- package/dist/src/utils/decodeCalls.js +7 -1
- package/dist/src/utils/encodeCalls.js +17 -1
- package/dist/src/utils/generateCardName.d.ts +3 -0
- package/dist/src/utils/generateCardName.js +25 -3
- package/dist/src/utils/generateIcons.js +5 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/StakingProcessor.d.ts +0 -41
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/implementations/StakingProcessor.js +0 -70
- package/dist/src/libs/campaigns/utils/getLastEligibilityRatio.d.ts +0 -2
- package/dist/src/libs/campaigns/utils/getLastEligibilityRatio.js +0 -65
package/dist/src/eden/index.d.ts
CHANGED
@@ -846,7 +846,67 @@ declare const eden: {
|
|
846
846
|
}) & {};
|
847
847
|
};
|
848
848
|
};
|
849
|
-
campaigns: {
|
849
|
+
campaigns: ((params: {
|
850
|
+
id: string | number;
|
851
|
+
}) => {
|
852
|
+
get: (options?: {
|
853
|
+
headers?: Record<string, unknown> | undefined;
|
854
|
+
query?: Record<string, unknown> | undefined;
|
855
|
+
fetch?: RequestInit | undefined;
|
856
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
857
|
+
200: {
|
858
|
+
params: any;
|
859
|
+
chain: {
|
860
|
+
name: string;
|
861
|
+
id: number;
|
862
|
+
icon: string;
|
863
|
+
};
|
864
|
+
rewardToken: {
|
865
|
+
symbol: string;
|
866
|
+
name: string | null;
|
867
|
+
id: string;
|
868
|
+
icon: string;
|
869
|
+
chainId: number;
|
870
|
+
address: string;
|
871
|
+
decimals: number;
|
872
|
+
verified: boolean;
|
873
|
+
isTest: boolean;
|
874
|
+
} & {
|
875
|
+
price?: number | null | undefined;
|
876
|
+
};
|
877
|
+
distributionChain: {
|
878
|
+
name: string;
|
879
|
+
id: number;
|
880
|
+
icon: string;
|
881
|
+
} | undefined;
|
882
|
+
campaignStatus: {
|
883
|
+
error: string;
|
884
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
885
|
+
status: import("../../database/api/.generated").$Enums.RunStatus;
|
886
|
+
campaignId: string;
|
887
|
+
computedUntil: bigint;
|
888
|
+
processingStarted: bigint;
|
889
|
+
};
|
890
|
+
creatorAddress: string;
|
891
|
+
Creator: {
|
892
|
+
tags: string[];
|
893
|
+
address: string;
|
894
|
+
creatorId: string | null;
|
895
|
+
};
|
896
|
+
type: string;
|
897
|
+
id: string;
|
898
|
+
subType: number | null;
|
899
|
+
startTimestamp: bigint;
|
900
|
+
endTimestamp: bigint;
|
901
|
+
computeChainId: number;
|
902
|
+
distributionChainId: number;
|
903
|
+
campaignId: string;
|
904
|
+
rewardTokenId: string;
|
905
|
+
amount: string;
|
906
|
+
opportunityId: string;
|
907
|
+
};
|
908
|
+
}>>;
|
909
|
+
}) & {
|
850
910
|
engine: {
|
851
911
|
post: (body: {
|
852
912
|
tags?: string[] | undefined;
|
@@ -3122,16 +3182,6 @@ declare const eden: {
|
|
3122
3182
|
boost: string;
|
3123
3183
|
}[];
|
3124
3184
|
}>>;
|
3125
|
-
get: (options?: {
|
3126
|
-
headers?: Record<string, unknown> | undefined;
|
3127
|
-
query?: Record<string, unknown> | undefined;
|
3128
|
-
fetch?: RequestInit | undefined;
|
3129
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
3130
|
-
200: {
|
3131
|
-
address: string;
|
3132
|
-
boost: string;
|
3133
|
-
}[];
|
3134
|
-
}>>;
|
3135
3185
|
};
|
3136
3186
|
};
|
3137
3187
|
};
|
@@ -4082,7 +4132,67 @@ declare const eden: {
|
|
4082
4132
|
}) & {};
|
4083
4133
|
};
|
4084
4134
|
};
|
4085
|
-
campaigns: {
|
4135
|
+
campaigns: ((params: {
|
4136
|
+
id: string | number;
|
4137
|
+
}) => {
|
4138
|
+
get: (options?: {
|
4139
|
+
headers?: Record<string, unknown> | undefined;
|
4140
|
+
query?: Record<string, unknown> | undefined;
|
4141
|
+
fetch?: RequestInit | undefined;
|
4142
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
4143
|
+
200: {
|
4144
|
+
params: any;
|
4145
|
+
chain: {
|
4146
|
+
name: string;
|
4147
|
+
id: number;
|
4148
|
+
icon: string;
|
4149
|
+
};
|
4150
|
+
rewardToken: {
|
4151
|
+
symbol: string;
|
4152
|
+
name: string | null;
|
4153
|
+
id: string;
|
4154
|
+
icon: string;
|
4155
|
+
chainId: number;
|
4156
|
+
address: string;
|
4157
|
+
decimals: number;
|
4158
|
+
verified: boolean;
|
4159
|
+
isTest: boolean;
|
4160
|
+
} & {
|
4161
|
+
price?: number | null | undefined;
|
4162
|
+
};
|
4163
|
+
distributionChain: {
|
4164
|
+
name: string;
|
4165
|
+
id: number;
|
4166
|
+
icon: string;
|
4167
|
+
} | undefined;
|
4168
|
+
campaignStatus: {
|
4169
|
+
error: string;
|
4170
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
4171
|
+
status: import("../../database/api/.generated").$Enums.RunStatus;
|
4172
|
+
campaignId: string;
|
4173
|
+
computedUntil: bigint;
|
4174
|
+
processingStarted: bigint;
|
4175
|
+
};
|
4176
|
+
creatorAddress: string;
|
4177
|
+
Creator: {
|
4178
|
+
tags: string[];
|
4179
|
+
address: string;
|
4180
|
+
creatorId: string | null;
|
4181
|
+
};
|
4182
|
+
type: string;
|
4183
|
+
id: string;
|
4184
|
+
subType: number | null;
|
4185
|
+
startTimestamp: bigint;
|
4186
|
+
endTimestamp: bigint;
|
4187
|
+
computeChainId: number;
|
4188
|
+
distributionChainId: number;
|
4189
|
+
campaignId: string;
|
4190
|
+
rewardTokenId: string;
|
4191
|
+
amount: string;
|
4192
|
+
opportunityId: string;
|
4193
|
+
};
|
4194
|
+
}>>;
|
4195
|
+
}) & {
|
4086
4196
|
engine: {
|
4087
4197
|
post: (body: {
|
4088
4198
|
tags?: string[] | undefined;
|
@@ -6358,16 +6468,6 @@ declare const eden: {
|
|
6358
6468
|
boost: string;
|
6359
6469
|
}[];
|
6360
6470
|
}>>;
|
6361
|
-
get: (options?: {
|
6362
|
-
headers?: Record<string, unknown> | undefined;
|
6363
|
-
query?: Record<string, unknown> | undefined;
|
6364
|
-
fetch?: RequestInit | undefined;
|
6365
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
6366
|
-
200: {
|
6367
|
-
address: string;
|
6368
|
-
boost: string;
|
6369
|
-
}[];
|
6370
|
-
}>>;
|
6371
6471
|
};
|
6372
6472
|
};
|
6373
6473
|
};
|
@@ -8329,6 +8429,70 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
8329
8429
|
};
|
8330
8430
|
};
|
8331
8431
|
};
|
8432
|
+
} & {
|
8433
|
+
":id": {
|
8434
|
+
get: {
|
8435
|
+
body: unknown;
|
8436
|
+
params: {
|
8437
|
+
id: string;
|
8438
|
+
};
|
8439
|
+
query: unknown;
|
8440
|
+
headers: unknown;
|
8441
|
+
response: {
|
8442
|
+
200: {
|
8443
|
+
params: any;
|
8444
|
+
chain: {
|
8445
|
+
name: string;
|
8446
|
+
id: number;
|
8447
|
+
icon: string;
|
8448
|
+
};
|
8449
|
+
rewardToken: {
|
8450
|
+
symbol: string;
|
8451
|
+
name: string | null;
|
8452
|
+
id: string;
|
8453
|
+
icon: string;
|
8454
|
+
chainId: number;
|
8455
|
+
address: string;
|
8456
|
+
decimals: number;
|
8457
|
+
verified: boolean;
|
8458
|
+
isTest: boolean;
|
8459
|
+
} & {
|
8460
|
+
price?: number | null | undefined;
|
8461
|
+
};
|
8462
|
+
distributionChain: {
|
8463
|
+
name: string;
|
8464
|
+
id: number;
|
8465
|
+
icon: string;
|
8466
|
+
} | undefined;
|
8467
|
+
campaignStatus: {
|
8468
|
+
error: string;
|
8469
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
8470
|
+
status: import("../../database/api/.generated").$Enums.RunStatus;
|
8471
|
+
campaignId: string;
|
8472
|
+
computedUntil: bigint;
|
8473
|
+
processingStarted: bigint;
|
8474
|
+
};
|
8475
|
+
creatorAddress: string;
|
8476
|
+
Creator: {
|
8477
|
+
tags: string[];
|
8478
|
+
address: string;
|
8479
|
+
creatorId: string | null;
|
8480
|
+
};
|
8481
|
+
type: string;
|
8482
|
+
id: string;
|
8483
|
+
subType: number | null;
|
8484
|
+
startTimestamp: bigint;
|
8485
|
+
endTimestamp: bigint;
|
8486
|
+
computeChainId: number;
|
8487
|
+
distributionChainId: number;
|
8488
|
+
campaignId: string;
|
8489
|
+
rewardTokenId: string;
|
8490
|
+
amount: string;
|
8491
|
+
opportunityId: string;
|
8492
|
+
};
|
8493
|
+
};
|
8494
|
+
};
|
8495
|
+
};
|
8332
8496
|
} & {
|
8333
8497
|
count: {
|
8334
8498
|
get: {
|
@@ -11001,25 +11165,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
11001
11165
|
};
|
11002
11166
|
};
|
11003
11167
|
};
|
11004
|
-
} & {
|
11005
|
-
boosts: {
|
11006
|
-
openblock: {
|
11007
|
-
zksync: {
|
11008
|
-
get: {
|
11009
|
-
body: unknown;
|
11010
|
-
params: {};
|
11011
|
-
query: unknown;
|
11012
|
-
headers: unknown;
|
11013
|
-
response: {
|
11014
|
-
200: {
|
11015
|
-
address: string;
|
11016
|
-
boost: string;
|
11017
|
-
}[];
|
11018
|
-
};
|
11019
|
-
};
|
11020
|
-
};
|
11021
|
-
};
|
11022
|
-
};
|
11023
11168
|
};
|
11024
11169
|
} & {
|
11025
11170
|
v4: {
|
@@ -12914,7 +13059,67 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
12914
13059
|
}) & {};
|
12915
13060
|
};
|
12916
13061
|
};
|
12917
|
-
campaigns: {
|
13062
|
+
campaigns: ((params: {
|
13063
|
+
id: string | number;
|
13064
|
+
}) => {
|
13065
|
+
get: (options?: {
|
13066
|
+
headers?: Record<string, unknown> | undefined;
|
13067
|
+
query?: Record<string, unknown> | undefined;
|
13068
|
+
fetch?: RequestInit | undefined;
|
13069
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
13070
|
+
200: {
|
13071
|
+
params: any;
|
13072
|
+
chain: {
|
13073
|
+
name: string;
|
13074
|
+
id: number;
|
13075
|
+
icon: string;
|
13076
|
+
};
|
13077
|
+
rewardToken: {
|
13078
|
+
symbol: string;
|
13079
|
+
name: string | null;
|
13080
|
+
id: string;
|
13081
|
+
icon: string;
|
13082
|
+
chainId: number;
|
13083
|
+
address: string;
|
13084
|
+
decimals: number;
|
13085
|
+
verified: boolean;
|
13086
|
+
isTest: boolean;
|
13087
|
+
} & {
|
13088
|
+
price?: number | null | undefined;
|
13089
|
+
};
|
13090
|
+
distributionChain: {
|
13091
|
+
name: string;
|
13092
|
+
id: number;
|
13093
|
+
icon: string;
|
13094
|
+
} | undefined;
|
13095
|
+
campaignStatus: {
|
13096
|
+
error: string;
|
13097
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
13098
|
+
status: import("../../database/api/.generated").$Enums.RunStatus;
|
13099
|
+
campaignId: string;
|
13100
|
+
computedUntil: bigint;
|
13101
|
+
processingStarted: bigint;
|
13102
|
+
};
|
13103
|
+
creatorAddress: string;
|
13104
|
+
Creator: {
|
13105
|
+
tags: string[];
|
13106
|
+
address: string;
|
13107
|
+
creatorId: string | null;
|
13108
|
+
};
|
13109
|
+
type: string;
|
13110
|
+
id: string;
|
13111
|
+
subType: number | null;
|
13112
|
+
startTimestamp: bigint;
|
13113
|
+
endTimestamp: bigint;
|
13114
|
+
computeChainId: number;
|
13115
|
+
distributionChainId: number;
|
13116
|
+
campaignId: string;
|
13117
|
+
rewardTokenId: string;
|
13118
|
+
amount: string;
|
13119
|
+
opportunityId: string;
|
13120
|
+
};
|
13121
|
+
}>>;
|
13122
|
+
}) & {
|
12918
13123
|
engine: {
|
12919
13124
|
post: (body: {
|
12920
13125
|
tags?: string[] | undefined;
|
@@ -15190,16 +15395,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
15190
15395
|
boost: string;
|
15191
15396
|
}[];
|
15192
15397
|
}>>;
|
15193
|
-
get: (options?: {
|
15194
|
-
headers?: Record<string, unknown> | undefined;
|
15195
|
-
query?: Record<string, unknown> | undefined;
|
15196
|
-
fetch?: RequestInit | undefined;
|
15197
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15198
|
-
200: {
|
15199
|
-
address: string;
|
15200
|
-
boost: string;
|
15201
|
-
}[];
|
15202
|
-
}>>;
|
15203
15398
|
};
|
15204
15399
|
};
|
15205
15400
|
};
|
@@ -16150,7 +16345,67 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
16150
16345
|
}) & {};
|
16151
16346
|
};
|
16152
16347
|
};
|
16153
|
-
campaigns: {
|
16348
|
+
campaigns: ((params: {
|
16349
|
+
id: string | number;
|
16350
|
+
}) => {
|
16351
|
+
get: (options?: {
|
16352
|
+
headers?: Record<string, unknown> | undefined;
|
16353
|
+
query?: Record<string, unknown> | undefined;
|
16354
|
+
fetch?: RequestInit | undefined;
|
16355
|
+
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
16356
|
+
200: {
|
16357
|
+
params: any;
|
16358
|
+
chain: {
|
16359
|
+
name: string;
|
16360
|
+
id: number;
|
16361
|
+
icon: string;
|
16362
|
+
};
|
16363
|
+
rewardToken: {
|
16364
|
+
symbol: string;
|
16365
|
+
name: string | null;
|
16366
|
+
id: string;
|
16367
|
+
icon: string;
|
16368
|
+
chainId: number;
|
16369
|
+
address: string;
|
16370
|
+
decimals: number;
|
16371
|
+
verified: boolean;
|
16372
|
+
isTest: boolean;
|
16373
|
+
} & {
|
16374
|
+
price?: number | null | undefined;
|
16375
|
+
};
|
16376
|
+
distributionChain: {
|
16377
|
+
name: string;
|
16378
|
+
id: number;
|
16379
|
+
icon: string;
|
16380
|
+
} | undefined;
|
16381
|
+
campaignStatus: {
|
16382
|
+
error: string;
|
16383
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
16384
|
+
status: import("../../database/api/.generated").$Enums.RunStatus;
|
16385
|
+
campaignId: string;
|
16386
|
+
computedUntil: bigint;
|
16387
|
+
processingStarted: bigint;
|
16388
|
+
};
|
16389
|
+
creatorAddress: string;
|
16390
|
+
Creator: {
|
16391
|
+
tags: string[];
|
16392
|
+
address: string;
|
16393
|
+
creatorId: string | null;
|
16394
|
+
};
|
16395
|
+
type: string;
|
16396
|
+
id: string;
|
16397
|
+
subType: number | null;
|
16398
|
+
startTimestamp: bigint;
|
16399
|
+
endTimestamp: bigint;
|
16400
|
+
computeChainId: number;
|
16401
|
+
distributionChainId: number;
|
16402
|
+
campaignId: string;
|
16403
|
+
rewardTokenId: string;
|
16404
|
+
amount: string;
|
16405
|
+
opportunityId: string;
|
16406
|
+
};
|
16407
|
+
}>>;
|
16408
|
+
}) & {
|
16154
16409
|
engine: {
|
16155
16410
|
post: (body: {
|
16156
16411
|
tags?: string[] | undefined;
|
@@ -18426,16 +18681,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
18426
18681
|
boost: string;
|
18427
18682
|
}[];
|
18428
18683
|
}>>;
|
18429
|
-
get: (options?: {
|
18430
|
-
headers?: Record<string, unknown> | undefined;
|
18431
|
-
query?: Record<string, unknown> | undefined;
|
18432
|
-
fetch?: RequestInit | undefined;
|
18433
|
-
} | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
18434
|
-
200: {
|
18435
|
-
address: string;
|
18436
|
-
boost: string;
|
18437
|
-
}[];
|
18438
|
-
}>>;
|
18439
18684
|
};
|
18440
18685
|
};
|
18441
18686
|
};
|
package/dist/src/index.d.ts
CHANGED
@@ -1159,6 +1159,70 @@ declare const app: Elysia<"", false, {
|
|
1159
1159
|
};
|
1160
1160
|
};
|
1161
1161
|
};
|
1162
|
+
} & {
|
1163
|
+
":id": {
|
1164
|
+
get: {
|
1165
|
+
body: unknown;
|
1166
|
+
params: {
|
1167
|
+
id: string;
|
1168
|
+
};
|
1169
|
+
query: unknown;
|
1170
|
+
headers: unknown;
|
1171
|
+
response: {
|
1172
|
+
200: {
|
1173
|
+
params: any;
|
1174
|
+
chain: {
|
1175
|
+
name: string;
|
1176
|
+
id: number;
|
1177
|
+
icon: string;
|
1178
|
+
};
|
1179
|
+
rewardToken: {
|
1180
|
+
symbol: string;
|
1181
|
+
name: string | null;
|
1182
|
+
id: string;
|
1183
|
+
icon: string;
|
1184
|
+
chainId: number;
|
1185
|
+
address: string;
|
1186
|
+
decimals: number;
|
1187
|
+
verified: boolean;
|
1188
|
+
isTest: boolean;
|
1189
|
+
} & {
|
1190
|
+
price?: number | null | undefined;
|
1191
|
+
};
|
1192
|
+
distributionChain: {
|
1193
|
+
name: string;
|
1194
|
+
id: number;
|
1195
|
+
icon: string;
|
1196
|
+
} | undefined;
|
1197
|
+
campaignStatus: {
|
1198
|
+
error: string;
|
1199
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
1200
|
+
status: import("../database/api/.generated").$Enums.RunStatus;
|
1201
|
+
campaignId: string;
|
1202
|
+
computedUntil: bigint;
|
1203
|
+
processingStarted: bigint;
|
1204
|
+
};
|
1205
|
+
creatorAddress: string;
|
1206
|
+
Creator: {
|
1207
|
+
tags: string[];
|
1208
|
+
address: string;
|
1209
|
+
creatorId: string | null;
|
1210
|
+
};
|
1211
|
+
type: string;
|
1212
|
+
id: string;
|
1213
|
+
subType: number | null;
|
1214
|
+
startTimestamp: bigint;
|
1215
|
+
endTimestamp: bigint;
|
1216
|
+
computeChainId: number;
|
1217
|
+
distributionChainId: number;
|
1218
|
+
campaignId: string;
|
1219
|
+
rewardTokenId: string;
|
1220
|
+
amount: string;
|
1221
|
+
opportunityId: string;
|
1222
|
+
};
|
1223
|
+
};
|
1224
|
+
};
|
1225
|
+
};
|
1162
1226
|
} & {
|
1163
1227
|
count: {
|
1164
1228
|
get: {
|
@@ -3831,25 +3895,6 @@ declare const app: Elysia<"", false, {
|
|
3831
3895
|
};
|
3832
3896
|
};
|
3833
3897
|
};
|
3834
|
-
} & {
|
3835
|
-
boosts: {
|
3836
|
-
openblock: {
|
3837
|
-
zksync: {
|
3838
|
-
get: {
|
3839
|
-
body: unknown;
|
3840
|
-
params: {};
|
3841
|
-
query: unknown;
|
3842
|
-
headers: unknown;
|
3843
|
-
response: {
|
3844
|
-
200: {
|
3845
|
-
address: string;
|
3846
|
-
boost: string;
|
3847
|
-
}[];
|
3848
|
-
};
|
3849
|
-
};
|
3850
|
-
};
|
3851
|
-
};
|
3852
|
-
};
|
3853
3898
|
};
|
3854
3899
|
} & {
|
3855
3900
|
v4: {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { merklChainDataWithCache } from "../../merklChainData";
|
2
|
+
import { ComputedValueService } from "../../../modules/v4/computedValue";
|
2
3
|
import { TokenRepository } from "../../../modules/v4/token/token.repository";
|
3
4
|
import { log } from "../../../utils/logger";
|
4
5
|
import { BN2Number, BalancerPoolInterface, BalancerV3StablePoolInterface, ChainInteractionService, ERC20Interface, EnzymeInterface, FactoryInterface, LayerBankERC20Interface, MetamorphoInterface, YEAR, getEnv, } from "@sdk";
|
5
6
|
import { Pricer } from "../../../utils/pricer";
|
6
|
-
import { getLastEligibilityRatio } from "../utils/getLastEligibilityRatio";
|
7
7
|
import { getTVL } from "./ERC20SubTypes/helpers/getTVL";
|
8
8
|
import { tokenType } from "./ERC20SubTypes/helpers/tokenType";
|
9
9
|
import { getTokenPricesInfo } from "./ERC20SubTypes/subtypesPrices";
|
@@ -135,7 +135,11 @@ export async function ERC20DynamicData(chainId, campaigns) {
|
|
135
135
|
const priceTargetToken = tokenTypesByCampaign[campaign.campaignId].typeInfo.priceTargetToken;
|
136
136
|
let lastEligibilityRatio = 1;
|
137
137
|
if (!!campaign.campaignParameters.hooks?.length) {
|
138
|
-
lastEligibilityRatio =
|
138
|
+
lastEligibilityRatio =
|
139
|
+
(await ComputedValueService.findCampaignValue({
|
140
|
+
campaignId: `${campaign.campaignId}-${chainId}`,
|
141
|
+
field: "averageBoost",
|
142
|
+
}))?.averageBoost ?? 1;
|
139
143
|
}
|
140
144
|
dynamicData.push({
|
141
145
|
...campaign,
|
@@ -22,6 +22,13 @@ export type mandatoryCallKeys = {
|
|
22
22
|
blacklistedSupply: string;
|
23
23
|
totalSupply: string;
|
24
24
|
whitelistedSupply: string;
|
25
|
+
} & stakingKeys;
|
26
|
+
export type stakingKeys = {
|
27
|
+
lockNFT: string;
|
28
|
+
eip712DomainName: string;
|
29
|
+
stakingName: string;
|
30
|
+
stakingSymbol: string;
|
31
|
+
isStaking: string;
|
25
32
|
};
|
26
33
|
export type callKeys = mandatoryCallKeys & {
|
27
34
|
[key: string]: string;
|
@@ -32,7 +39,7 @@ export type dataRaw = {
|
|
32
39
|
blacklistedSupply: string;
|
33
40
|
totalSupply: string;
|
34
41
|
whitelistedSupply: string;
|
35
|
-
};
|
42
|
+
} & stakingKeys;
|
36
43
|
export type dataType = {
|
37
44
|
protocol: string;
|
38
45
|
type: tokenType;
|
@@ -58,6 +65,12 @@ export declare class GenericProcessor<Input extends callKeys, DataRaw extends da
|
|
58
65
|
round3: callType[];
|
59
66
|
round4: callType[];
|
60
67
|
};
|
68
|
+
stakingRounds: {
|
69
|
+
round1: callType[];
|
70
|
+
round2: callType[];
|
71
|
+
round3: callType[];
|
72
|
+
round4: callType[];
|
73
|
+
};
|
61
74
|
debug: boolean;
|
62
75
|
processingRound1(_typeInfo: DataRaw): void;
|
63
76
|
processingRound2(_typeInfo: DataRaw, _campaign?: CampaignParameters<ERC20SupportedCampaignType>): void;
|
@@ -79,6 +92,8 @@ export declare class GenericProcessor<Input extends callKeys, DataRaw extends da
|
|
79
92
|
decodeListedSupply(index: number, decimals: number, list: string[], calls: string[]): string;
|
80
93
|
decodeRound(round: callType[], index: number, calls: string[], type: tokenType, data: DataRaw): void;
|
81
94
|
decodePreviousRound(round: Round, calls: string[], data: DataRaw, type: tokenType, index: number): void;
|
95
|
+
decodePreviousStakingRound(round: Round, calls: string[], data: DataRaw, type: tokenType, index: number): void;
|
82
96
|
encodeRound(round: callType[], callInfo: Input, type: tokenType): CallDto[];
|
83
97
|
encodeNextRound(round: Round, type: tokenType, data: DataRaw): CallDto[];
|
98
|
+
encodeStakingNextRound(round: Round, type: tokenType, data: DataRaw): CallDto[];
|
84
99
|
}
|