@merkl/api 1.0.54 → 1.0.56
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 +51 -51
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/tvl.d.ts +1 -1
- package/dist/src/engine/implementations/SymbioticVault/metadata.d.ts +18 -0
- package/dist/src/engine/implementations/SymbioticVault/tvl.d.ts +7 -0
- package/dist/src/engine/tvl/logStates.d.ts +5 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +29 -3
- package/dist/src/utils/prices/services/uniswapV2PriceService.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -6,19 +6,19 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
6
6
|
}, {
|
7
7
|
typebox: {};
|
8
8
|
error: {
|
9
|
-
readonly HttpError: import("../errors
|
10
|
-
readonly BadRequestError: import("../errors
|
11
|
-
readonly ConflictError: import("../errors
|
12
|
-
readonly NotFoundError: import("../errors
|
13
|
-
readonly UnauthorizedError: import("../errors
|
9
|
+
readonly HttpError: import("../errors").HttpError;
|
10
|
+
readonly BadRequestError: import("../errors").BadRequestError;
|
11
|
+
readonly ConflictError: import("../errors").ConflictError;
|
12
|
+
readonly NotFoundError: import("../errors").NotFoundError;
|
13
|
+
readonly UnauthorizedError: import("../errors").UnauthorizedError;
|
14
14
|
} & {
|
15
|
-
readonly InvalidParameter: import("../utils/error
|
16
|
-
readonly UnsupportedNetwork: import("../utils/error
|
17
|
-
readonly OpportunityNotFound: import("../utils/error
|
18
|
-
readonly MerkleRootNotFound: import("../utils/error
|
15
|
+
readonly InvalidParameter: import("../utils/error").InvalidParameter;
|
16
|
+
readonly UnsupportedNetwork: import("../utils/error").UnsupportedNetwork;
|
17
|
+
readonly OpportunityNotFound: import("../utils/error").OpportunityNotFound;
|
18
|
+
readonly MerkleRootNotFound: import("../utils/error").MerkleRootNotFound;
|
19
19
|
readonly ValidationError: import("elysia").ValidationError;
|
20
|
-
readonly InvalidCacheCall: import("../utils/error
|
21
|
-
readonly HttpError: import("../errors
|
20
|
+
readonly InvalidCacheCall: import("../utils/error").InvalidCacheCall;
|
21
|
+
readonly HttpError: import("../errors").HttpError;
|
22
22
|
};
|
23
23
|
}, {
|
24
24
|
schema: {};
|
@@ -3755,7 +3755,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
3755
3755
|
};
|
3756
3756
|
headers: unknown;
|
3757
3757
|
response: {
|
3758
|
-
200: import("../modules/v4/reward/reward.model
|
3758
|
+
200: import("../modules/v4/reward/reward.model").BreakdownForCampaignsRaw[];
|
3759
3759
|
422: {
|
3760
3760
|
type: "validation";
|
3761
3761
|
on: string;
|
@@ -4979,7 +4979,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
4979
4979
|
response: {
|
4980
4980
|
200: (Omit<{
|
4981
4981
|
chain: import("@package/databases/api").Chain;
|
4982
|
-
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service
|
4982
|
+
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service").RewardService["format"]>>;
|
4983
4983
|
}, "rewards"> & {
|
4984
4984
|
rewards: (Omit<{
|
4985
4985
|
token: {
|
@@ -5072,7 +5072,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
5072
5072
|
proofs: string[];
|
5073
5073
|
}, "breakdowns"> & {
|
5074
5074
|
breakdowns: {
|
5075
|
-
opportunity: import("../modules/v4/opportunity/opportunity.model
|
5075
|
+
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
5076
5076
|
claimed: bigint;
|
5077
5077
|
amount: bigint;
|
5078
5078
|
pending: bigint;
|
@@ -5318,7 +5318,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
5318
5318
|
};
|
5319
5319
|
headers: unknown;
|
5320
5320
|
response: {
|
5321
|
-
200: import("../modules/v4/interaction/interaction.model
|
5321
|
+
200: import("../modules/v4/interaction/interaction.model").InteractionTarget[];
|
5322
5322
|
422: {
|
5323
5323
|
type: "validation";
|
5324
5324
|
on: string;
|
@@ -5389,9 +5389,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
5389
5389
|
amountIn: bigint;
|
5390
5390
|
allowance: bigint;
|
5391
5391
|
approved: boolean;
|
5392
|
-
transaction: import("../modules/v4/interaction/interaction.model
|
5393
|
-
approval: import("../modules/v4/interaction/interaction.model
|
5394
|
-
actions?: import("../modules/v4/interaction/interaction.model
|
5392
|
+
transaction: import("../modules/v4/interaction/interaction.model").UserTransaction;
|
5393
|
+
approval: import("../modules/v4/interaction/interaction.model").UserTransaction;
|
5394
|
+
actions?: import("../modules/v4/interaction/interaction.model").InteractionAction[] | undefined;
|
5395
5395
|
depositValue?: number | undefined;
|
5396
5396
|
} | undefined;
|
5397
5397
|
422: {
|
@@ -5937,7 +5937,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
5937
5937
|
endOfDisputePeriod: number;
|
5938
5938
|
disputer: string;
|
5939
5939
|
liveCampaigns: number;
|
5940
|
-
delayed: Awaited<ReturnType<typeof import("../modules/v4/status/status.service
|
5940
|
+
delayed: Awaited<ReturnType<typeof import("../modules/v4/status/status.service").StatusService["findManyDelay"]>>;
|
5941
5941
|
};
|
5942
5942
|
};
|
5943
5943
|
};
|
@@ -5958,7 +5958,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
5958
5958
|
};
|
5959
5959
|
headers: unknown;
|
5960
5960
|
response: {
|
5961
|
-
200: import("../modules/v4/liquidity/liquidity.model
|
5961
|
+
200: import("../modules/v4/liquidity/liquidity.model").PositionT[];
|
5962
5962
|
422: {
|
5963
5963
|
type: "validation";
|
5964
5964
|
on: string;
|
@@ -5986,8 +5986,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
5986
5986
|
};
|
5987
5987
|
headers: unknown;
|
5988
5988
|
response: {
|
5989
|
-
200: (import("../modules/v4/claims/claims.model
|
5990
|
-
token?: import("../modules/v4/token/token.model
|
5989
|
+
200: (import("../modules/v4/claims/claims.model").ClaimModel & {
|
5990
|
+
token?: import("../modules/v4/token/token.model").Token["model"];
|
5991
5991
|
})[];
|
5992
5992
|
422: {
|
5993
5993
|
type: "validation";
|
@@ -6030,7 +6030,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
6030
6030
|
name: string;
|
6031
6031
|
txBuilderVersion: string;
|
6032
6032
|
};
|
6033
|
-
transactions: import("../modules/v4/programPayload/programPayload.model
|
6033
|
+
transactions: import("../modules/v4/programPayload/programPayload.model").transaction[];
|
6034
6034
|
};
|
6035
6035
|
422: {
|
6036
6036
|
type: "validation";
|
@@ -7028,7 +7028,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
7028
7028
|
name: string;
|
7029
7029
|
txBuilderVersion: string;
|
7030
7030
|
};
|
7031
|
-
transactions: import("../modules/v4/programPayload/programPayload.model
|
7031
|
+
transactions: import("../modules/v4/programPayload/programPayload.model").transaction[];
|
7032
7032
|
} | null;
|
7033
7033
|
422: {
|
7034
7034
|
type: "validation";
|
@@ -7072,7 +7072,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
7072
7072
|
name: string;
|
7073
7073
|
txBuilderVersion: string;
|
7074
7074
|
};
|
7075
|
-
transactions: import("../modules/v4/programPayload/programPayload.model
|
7075
|
+
transactions: import("../modules/v4/programPayload/programPayload.model").transaction[];
|
7076
7076
|
} | null;
|
7077
7077
|
422: {
|
7078
7078
|
type: "validation";
|
@@ -7614,7 +7614,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
7614
7614
|
createdAt: Date;
|
7615
7615
|
rootCampaignId: string | null;
|
7616
7616
|
parentCampaignId: string | null;
|
7617
|
-
}) | Omit<import("../modules/v4/campaign/campaign.model
|
7617
|
+
}) | Omit<import("../modules/v4/campaign/campaign.model").CampaignWithParams, "manualOverrides">)[];
|
7618
7618
|
422: {
|
7619
7619
|
type: "validation";
|
7620
7620
|
on: string;
|
@@ -7685,7 +7685,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
7685
7685
|
createdAt: Date;
|
7686
7686
|
rootCampaignId: string | null;
|
7687
7687
|
parentCampaignId: string | null;
|
7688
|
-
})[] | Omit<import("../modules/v4/campaign/campaign.model
|
7688
|
+
})[] | Omit<import("../modules/v4/campaign/campaign.model").CampaignWithParams, "manualOverrides">[];
|
7689
7689
|
422: {
|
7690
7690
|
type: "validation";
|
7691
7691
|
on: string;
|
@@ -7850,8 +7850,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
7850
7850
|
claimed: string;
|
7851
7851
|
pending: string;
|
7852
7852
|
reason: string;
|
7853
|
-
rewardToken: import("../modules/v4/token/token.model
|
7854
|
-
opportunity: import("../modules/v4/opportunity/opportunity.model
|
7853
|
+
rewardToken: import("../modules/v4/token/token.model").Token["model"];
|
7854
|
+
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
7855
7855
|
}[]>>;
|
7856
7856
|
};
|
7857
7857
|
422: {
|
@@ -7888,8 +7888,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
7888
7888
|
claimed: string;
|
7889
7889
|
pending: string;
|
7890
7890
|
reason: string;
|
7891
|
-
rewardToken: import("../modules/v4/token/token.model
|
7892
|
-
opportunity: import("../modules/v4/opportunity/opportunity.model
|
7891
|
+
rewardToken: import("../modules/v4/token/token.model").Token["model"];
|
7892
|
+
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
7893
7893
|
}[]>>;
|
7894
7894
|
};
|
7895
7895
|
422: {
|
@@ -13287,7 +13287,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
13287
13287
|
};
|
13288
13288
|
fetch?: RequestInit | undefined;
|
13289
13289
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
13290
|
-
200: import("../modules/v4/reward/reward.model
|
13290
|
+
200: import("../modules/v4/reward/reward.model").BreakdownForCampaignsRaw[];
|
13291
13291
|
422: {
|
13292
13292
|
type: "validation";
|
13293
13293
|
on: string;
|
@@ -14194,7 +14194,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
14194
14194
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14195
14195
|
200: (Omit<{
|
14196
14196
|
chain: import("@package/databases/api").Chain;
|
14197
|
-
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service
|
14197
|
+
rewards: Awaited<ReturnType<typeof import("../modules/v4/reward/reward.service").RewardService["format"]>>;
|
14198
14198
|
}, "rewards"> & {
|
14199
14199
|
rewards: (Omit<{
|
14200
14200
|
token: {
|
@@ -14287,7 +14287,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
14287
14287
|
proofs: string[];
|
14288
14288
|
}, "breakdowns"> & {
|
14289
14289
|
breakdowns: {
|
14290
|
-
opportunity: import("../modules/v4/opportunity/opportunity.model
|
14290
|
+
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
14291
14291
|
claimed: bigint;
|
14292
14292
|
amount: bigint;
|
14293
14293
|
pending: bigint;
|
@@ -14554,7 +14554,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
14554
14554
|
};
|
14555
14555
|
fetch?: RequestInit | undefined;
|
14556
14556
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
14557
|
-
200: import("../modules/v4/interaction/interaction.model
|
14557
|
+
200: import("../modules/v4/interaction/interaction.model").InteractionTarget[];
|
14558
14558
|
422: {
|
14559
14559
|
type: "validation";
|
14560
14560
|
on: string;
|
@@ -14615,9 +14615,9 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
14615
14615
|
amountIn: bigint;
|
14616
14616
|
allowance: bigint;
|
14617
14617
|
approved: boolean;
|
14618
|
-
transaction: import("../modules/v4/interaction/interaction.model
|
14619
|
-
approval: import("../modules/v4/interaction/interaction.model
|
14620
|
-
actions?: import("../modules/v4/interaction/interaction.model
|
14618
|
+
transaction: import("../modules/v4/interaction/interaction.model").UserTransaction;
|
14619
|
+
approval: import("../modules/v4/interaction/interaction.model").UserTransaction;
|
14620
|
+
actions?: import("../modules/v4/interaction/interaction.model").InteractionAction[] | undefined;
|
14621
14621
|
depositValue?: number | undefined;
|
14622
14622
|
} | undefined;
|
14623
14623
|
422: {
|
@@ -15069,7 +15069,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
15069
15069
|
endOfDisputePeriod: number;
|
15070
15070
|
disputer: string;
|
15071
15071
|
liveCampaigns: number;
|
15072
|
-
delayed: Awaited<ReturnType<typeof import("../modules/v4/status/status.service
|
15072
|
+
delayed: Awaited<ReturnType<typeof import("../modules/v4/status/status.service").StatusService["findManyDelay"]>>;
|
15073
15073
|
};
|
15074
15074
|
};
|
15075
15075
|
}>>;
|
@@ -15085,7 +15085,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
15085
15085
|
};
|
15086
15086
|
fetch?: RequestInit | undefined;
|
15087
15087
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15088
|
-
200: import("../modules/v4/liquidity/liquidity.model
|
15088
|
+
200: import("../modules/v4/liquidity/liquidity.model").PositionT[];
|
15089
15089
|
422: {
|
15090
15090
|
type: "validation";
|
15091
15091
|
on: string;
|
@@ -15107,8 +15107,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
15107
15107
|
};
|
15108
15108
|
fetch?: RequestInit | undefined;
|
15109
15109
|
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
15110
|
-
200: (import("../modules/v4/claims/claims.model
|
15111
|
-
token?: import("../modules/v4/token/token.model
|
15110
|
+
200: (import("../modules/v4/claims/claims.model").ClaimModel & {
|
15111
|
+
token?: import("../modules/v4/token/token.model").Token["model"];
|
15112
15112
|
})[];
|
15113
15113
|
422: {
|
15114
15114
|
type: "validation";
|
@@ -15145,7 +15145,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
15145
15145
|
name: string;
|
15146
15146
|
txBuilderVersion: string;
|
15147
15147
|
};
|
15148
|
-
transactions: import("../modules/v4/programPayload/programPayload.model
|
15148
|
+
transactions: import("../modules/v4/programPayload/programPayload.model").transaction[];
|
15149
15149
|
};
|
15150
15150
|
422: {
|
15151
15151
|
type: "validation";
|
@@ -16123,7 +16123,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
16123
16123
|
name: string;
|
16124
16124
|
txBuilderVersion: string;
|
16125
16125
|
};
|
16126
|
-
transactions: import("../modules/v4/programPayload/programPayload.model
|
16126
|
+
transactions: import("../modules/v4/programPayload/programPayload.model").transaction[];
|
16127
16127
|
} | null;
|
16128
16128
|
422: {
|
16129
16129
|
type: "validation";
|
@@ -16160,7 +16160,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
16160
16160
|
name: string;
|
16161
16161
|
txBuilderVersion: string;
|
16162
16162
|
};
|
16163
|
-
transactions: import("../modules/v4/programPayload/programPayload.model
|
16163
|
+
transactions: import("../modules/v4/programPayload/programPayload.model").transaction[];
|
16164
16164
|
} | null;
|
16165
16165
|
422: {
|
16166
16166
|
type: "validation";
|
@@ -16510,7 +16510,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
16510
16510
|
createdAt: Date;
|
16511
16511
|
rootCampaignId: string | null;
|
16512
16512
|
parentCampaignId: string | null;
|
16513
|
-
}) | Omit<import("../modules/v4/campaign/campaign.model
|
16513
|
+
}) | Omit<import("../modules/v4/campaign/campaign.model").CampaignWithParams, "manualOverrides">)[];
|
16514
16514
|
422: {
|
16515
16515
|
type: "validation";
|
16516
16516
|
on: string;
|
@@ -16659,7 +16659,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
16659
16659
|
createdAt: Date;
|
16660
16660
|
rootCampaignId: string | null;
|
16661
16661
|
parentCampaignId: string | null;
|
16662
|
-
})[] | Omit<import("../modules/v4/campaign/campaign.model
|
16662
|
+
})[] | Omit<import("../modules/v4/campaign/campaign.model").CampaignWithParams, "manualOverrides">[];
|
16663
16663
|
422: {
|
16664
16664
|
type: "validation";
|
16665
16665
|
on: string;
|
@@ -16801,8 +16801,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
16801
16801
|
claimed: string;
|
16802
16802
|
pending: string;
|
16803
16803
|
reason: string;
|
16804
|
-
rewardToken: import("../modules/v4/token/token.model
|
16805
|
-
opportunity: import("../modules/v4/opportunity/opportunity.model
|
16804
|
+
rewardToken: import("../modules/v4/token/token.model").Token["model"];
|
16805
|
+
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
16806
16806
|
}[]>>;
|
16807
16807
|
};
|
16808
16808
|
422: {
|
@@ -16834,8 +16834,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
|
|
16834
16834
|
claimed: string;
|
16835
16835
|
pending: string;
|
16836
16836
|
reason: string;
|
16837
|
-
rewardToken: import("../modules/v4/token/token.model
|
16838
|
-
opportunity: import("../modules/v4/opportunity/opportunity.model
|
16837
|
+
rewardToken: import("../modules/v4/token/token.model").Token["model"];
|
16838
|
+
opportunity: import("../modules/v4/opportunity/opportunity.model").Opportunity["model"];
|
16839
16839
|
}[]>>;
|
16840
16840
|
};
|
16841
16841
|
422: {
|
package/dist/src/engine/implementations/Erc20/subTypes/implementations/uniswapV2/mimswap/tvl.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type CampaignParameters, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
2
|
import type { TVLBuilder, TVLData } from "../../../../../../tvl/interface";
|
3
|
-
import type { Erc20LikeCampaignEnum } from "../../../index
|
3
|
+
import type { Erc20LikeCampaignEnum } from "../../../index";
|
4
4
|
export declare class MimSwapTVLBuilder implements TVLBuilder<Erc20LikeCampaignEnum> {
|
5
5
|
build(computeChainId: MerklChainId, campaigns: CampaignParameters<Erc20LikeCampaignEnum>[]): Promise<TVLData<Erc20LikeCampaignEnum>>;
|
6
6
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { type Campaign as CampaignType } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { CampaignWithParams } from "../../../modules/v4/campaign/campaign.model";
|
3
|
+
import type { ProtocolId } from "../../../modules/v4/protocol/protocol.model";
|
4
|
+
import type { MetadataBuilder } from "../../metadata/interface";
|
5
|
+
type campaignType = CampaignType.SYMBIOTIC_VAULT;
|
6
|
+
export declare class SymbioticVaultMetadata implements MetadataBuilder<campaignType> {
|
7
|
+
build(campaign: Omit<CampaignWithParams<campaignType>, "manualOverrides" | "opportunityId">): Promise<{
|
8
|
+
action: "HOLD";
|
9
|
+
name: string;
|
10
|
+
tokens: {
|
11
|
+
chainId: number;
|
12
|
+
address: `0x${string}`;
|
13
|
+
}[];
|
14
|
+
mainProtocol: ProtocolId;
|
15
|
+
explorerAddress: `0x${string}`;
|
16
|
+
}>;
|
17
|
+
}
|
18
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { type CampaignParameters, Campaign as CampaignType, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
+
import type { TVLBuilder, TVLData } from "../../tvl/interface";
|
3
|
+
type campaignType = CampaignType.SYMBIOTIC_VAULT;
|
4
|
+
export declare class SymbioticTVLBuilder implements TVLBuilder<campaignType> {
|
5
|
+
build(computeChainId: MerklChainId, campaigns: CampaignParameters<campaignType>[]): Promise<TVLData<CampaignType.SYMBIOTIC_VAULT>>;
|
6
|
+
}
|
7
|
+
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type CampaignParameters, Campaign as CampaignType, type MerklChainId } from "@angleprotocol/sdk/ts";
|
2
|
-
type logProcessorType = CampaignType.ERC20LOGPROCESSOR | CampaignType.EVENT_BASED | CampaignType.LOCKER | CampaignType.ERC20REBASELOGPROCESSOR;
|
2
|
+
type logProcessorType = CampaignType.ERC20LOGPROCESSOR | CampaignType.EVENT_BASED | CampaignType.LOCKER | CampaignType.SYMBIOTIC_VAULT | CampaignType.ERC20REBASELOGPROCESSOR;
|
3
3
|
export declare function getIdPerCampaignType(campaignType: CampaignType, campaign: CampaignParameters<logProcessorType>): string | undefined;
|
4
4
|
/**
|
5
5
|
* Compute TVL
|
@@ -14,4 +14,8 @@ export declare function computeLockerAmountFromMostRecentStateSave(chainId: Merk
|
|
14
14
|
lockedAmount: number;
|
15
15
|
blockNumber: number;
|
16
16
|
}>;
|
17
|
+
export declare function computeSymbioticVaultAmountFromMostRecentStateSave(chainId: MerklChainId, campaignType: CampaignType, campaign: CampaignParameters<CampaignType.SYMBIOTIC_VAULT>): Promise<{
|
18
|
+
amount: number;
|
19
|
+
blockNumber: number;
|
20
|
+
}>;
|
17
21
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Campaign, ChainId, ComposedType, CompoundV3SubCampaignType, ComputeScoreMethod, HOOK, boostingReferralFunction, contractStateBoost, defaultReferralBoost } from "@angleprotocol/sdk/ts";
|
1
|
+
import { Campaign, ChainId, ComposedType, CompoundV3SubCampaignType, ComputeScoreMethod, DistributionMethod, HOOK, boostingReferralFunction, contractStateBoost, defaultReferralBoost } from "@angleprotocol/sdk/ts";
|
2
2
|
import type { partialConfig } from "./programPayload.model";
|
3
3
|
import { HypurrFiSubPayloads } from "./subPayloads/hypurrFi";
|
4
4
|
export declare enum program {
|
@@ -25,7 +25,11 @@ export declare enum program {
|
|
25
25
|
MorphoUnichain = "MorphoUnichain",
|
26
26
|
Katana = "Katana",
|
27
27
|
Lisk = "Lisk",
|
28
|
-
Stability = "Stability"
|
28
|
+
Stability = "Stability",
|
29
|
+
Test = "Test"
|
30
|
+
}
|
31
|
+
export declare enum testCampaigns {
|
32
|
+
tanssi_Symbiotic_Vault = "Tanssi Symbiotic Vault"
|
29
33
|
}
|
30
34
|
export declare enum stabilityCampaigns {
|
31
35
|
metaUSD = "metaUSD 0x1111111199558661Bf7Ff27b4F1623dC6b91Aa3e",
|
@@ -573,6 +577,28 @@ export declare enum modeCampaigns {
|
|
573
577
|
Bedrock_Ionic_Supply_ionuniBTC_Mode = "Bedrock Ionic Supply uniBTC 0xa48750877a83f7dec11f722178c317b54a44d142",
|
574
578
|
Bedrock_Ironclad_Supply_uniBTC_Mode = "Bedrock Ironclad Supply uniBTC 0x0F041cf2ae959f39215EFfB50d681Df55D4d90B1"
|
575
579
|
}
|
580
|
+
declare const TestCampaigns: {
|
581
|
+
"Tanssi Symbiotic Vault": {
|
582
|
+
campaignType: Campaign;
|
583
|
+
computeScoreParameters: {
|
584
|
+
computeMethod: ComputeScoreMethod;
|
585
|
+
};
|
586
|
+
vaultContract: string;
|
587
|
+
computeChainId: ChainId;
|
588
|
+
whitelist: never[];
|
589
|
+
blacklist: never[];
|
590
|
+
hooks: never[];
|
591
|
+
url: string;
|
592
|
+
distributionMethodParameters: {
|
593
|
+
distributionMethod: DistributionMethod;
|
594
|
+
distributionSettings: {
|
595
|
+
apr: string;
|
596
|
+
rewardTokenPricing: boolean;
|
597
|
+
targetTokenPricing: boolean;
|
598
|
+
};
|
599
|
+
};
|
600
|
+
};
|
601
|
+
};
|
576
602
|
declare const LiskInterfaceCampaigns: {
|
577
603
|
"Velodrome WBTC/WETH Lisk 0xDC1479FD1Db51cA0079ceCfaA879232e168c8246": {
|
578
604
|
campaignType: Campaign;
|
@@ -2784,6 +2810,6 @@ declare const stabilityCampaignsInterface: {
|
|
2784
2810
|
[key in stabilityCampaigns]: partialConfig;
|
2785
2811
|
};
|
2786
2812
|
export declare const MerklInterfaceCampaigns: {
|
2787
|
-
[key in program]: typeof PufferInterfaceCampaigns | typeof ZkSyncInterfaceCampaigns | typeof ModeInterfaceCampaigns | typeof VicunaInterfaceCampaigns | typeof SonicmarketInterfaceCampaigns | typeof ReserveInterfaceCampaigns | typeof BeetsInterfaceCampaigns | typeof CeloInterfaceCampaigns | typeof EtherlinkInterfaceCampaigns | typeof SwapxInterfaceCampaigns | typeof AnglesInterfaceCampaigns | typeof RoninInterfaceCampaigns | typeof TACInterfaceCampaigns | typeof HypurrFiSubPayloads | typeof WorldChainInterfaceCampaigns | typeof StableJackInterfaceCampaigns | typeof CornInterfaceCampaigns | typeof GauntletCompoundInterfaceCampaigns | typeof YieldNetCampaigns | typeof TermMaxInterfaceCampaigns | typeof MorphoUnichainInterfaceCampaigns | typeof katanaCampaignsInterface | typeof LiskInterfaceCampaigns | typeof stabilityCampaignsInterface;
|
2813
|
+
[key in program]: typeof PufferInterfaceCampaigns | typeof ZkSyncInterfaceCampaigns | typeof ModeInterfaceCampaigns | typeof VicunaInterfaceCampaigns | typeof SonicmarketInterfaceCampaigns | typeof ReserveInterfaceCampaigns | typeof BeetsInterfaceCampaigns | typeof CeloInterfaceCampaigns | typeof EtherlinkInterfaceCampaigns | typeof SwapxInterfaceCampaigns | typeof AnglesInterfaceCampaigns | typeof RoninInterfaceCampaigns | typeof TACInterfaceCampaigns | typeof HypurrFiSubPayloads | typeof WorldChainInterfaceCampaigns | typeof StableJackInterfaceCampaigns | typeof CornInterfaceCampaigns | typeof GauntletCompoundInterfaceCampaigns | typeof YieldNetCampaigns | typeof TermMaxInterfaceCampaigns | typeof MorphoUnichainInterfaceCampaigns | typeof katanaCampaignsInterface | typeof LiskInterfaceCampaigns | typeof TestCampaigns | typeof stabilityCampaignsInterface;
|
2788
2814
|
};
|
2789
2815
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type PriceSource } from "@package/databases/api";
|
2
|
-
import type PriceFetcher from "./priceFetcher
|
3
|
-
import type { ResponsePriceType } from "./priceFetcher
|
2
|
+
import type PriceFetcher from "./priceFetcher";
|
3
|
+
import type { ResponsePriceType } from "./priceFetcher";
|
4
4
|
export default class UniswapV2PriceService implements PriceFetcher {
|
5
5
|
static readonly instance: PriceFetcher;
|
6
6
|
private constructor();
|