@merkl/api 0.20.157 → 0.20.159
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 +747 -747
- package/dist/src/engine/deprecated/dynamicData/factory.js +1 -0
- package/dist/src/engine/deprecated/dynamicData/implementations/EventBased.js +29 -5
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/ownerFinder.js +1 -0
- package/dist/src/engine/deprecated/erc20SubTypeProcessors/implementations/processorMapping.d.ts +1 -3
- package/dist/src/engine/implementations/Erc20/subTypes/factories.js +4 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.d.ts +16 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/metadata.js +20 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.d.ts +6 -0
- package/dist/src/engine/implementations/Erc20/subTypes/implementations/lendleVaults/tvl.js +53 -0
- package/dist/src/engine/implementations/Erc20/subTypes/index.d.ts +2 -1
- package/dist/src/engine/implementations/Erc20/subTypes/index.js +1 -0
- package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +2 -2
- package/dist/src/engine/implementations/Locker/metadata.d.ts +24 -0
- package/dist/src/engine/implementations/Locker/metadata.js +36 -0
- package/dist/src/engine/implementations/Locker/tvl.d.ts +7 -0
- package/dist/src/engine/implementations/Locker/tvl.js +21 -0
- package/dist/src/engine/implementations/MultiLog/tvl.d.ts +1 -12
- package/dist/src/engine/implementations/MultiLog/tvl.js +1 -61
- package/dist/src/engine/metadata/factory.js +1 -0
- package/dist/src/engine/tvl/logStates.d.ts +17 -0
- package/dist/src/engine/tvl/logStates.js +106 -0
- package/dist/src/index.d.ts +255 -255
- package/dist/src/index.js +2 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +2 -0
- package/dist/src/modules/v4/bucket/bucket.service.js +3 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +41 -41
- package/dist/src/modules/v4/campaign/campaign.controller.js +0 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +36 -36
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +76 -76
- package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +18 -18
- package/dist/src/modules/v4/campaign/campaign.test.controller.js +0 -1
- package/dist/src/modules/v4/chain/chain.controller.d.ts +11 -11
- package/dist/src/modules/v4/chain/chain.repository.d.ts +13 -13
- package/dist/src/modules/v4/chain/chain.service.d.ts +14 -14
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +1 -1
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +1 -1
- package/dist/src/modules/v4/creator/creator.controller.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.repository.d.ts +5 -5
- package/dist/src/modules/v4/creator/creator.service.d.ts +4 -4
- package/dist/src/modules/v4/enso/enso.service.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +3 -3
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +4 -4
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +5 -5
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +2 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +105 -105
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +3 -3
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +117 -117
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +122 -122
- package/dist/src/modules/v4/price/price.controller.d.ts +4 -4
- package/dist/src/modules/v4/price/price.repository.d.ts +5 -5
- package/dist/src/modules/v4/price/price.service.d.ts +4 -4
- package/dist/src/modules/v4/price/price.service.js +7 -0
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +18 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +14 -7
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +128 -8
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +24 -24
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +1 -1
- package/dist/src/modules/v4/protocol/protocol.model.js +1 -0
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +14 -14
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +6 -6
- package/dist/src/modules/v4/reward/reward.controller.d.ts +1 -1
- package/dist/src/modules/v4/reward/reward.controller.js +0 -1
- package/dist/src/modules/v4/reward/reward.repository.d.ts +12 -12
- package/dist/src/modules/v4/reward/reward.service.d.ts +82 -82
- package/dist/src/modules/v4/router.d.ts +255 -255
- package/dist/src/modules/v4/status/status.controller.d.ts +5 -5
- package/dist/src/modules/v4/status/status.repository.d.ts +11 -11
- package/dist/src/modules/v4/status/status.service.d.ts +7 -7
- package/dist/src/modules/v4/token/token.controller.d.ts +11 -11
- package/dist/src/modules/v4/token/token.repository.d.ts +4 -4
- package/dist/src/modules/v4/token/token.service.d.ts +14 -14
- package/dist/src/modules/v4/token/token.service.js +3 -3
- package/dist/src/modules/v4/uniswap/uniswap.repository.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +24 -24
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -2,36 +2,36 @@ import type { CreateProtocolModel, GetProtocolsQueryModel, UpdateProtocolModel }
|
|
2
2
|
export declare abstract class ProtocolRepository {
|
3
3
|
#private;
|
4
4
|
static create(data: CreateProtocolModel): Promise<{
|
5
|
-
id: string;
|
6
|
-
name: string;
|
7
5
|
url: string;
|
6
|
+
name: string;
|
8
7
|
description: string;
|
8
|
+
id: string;
|
9
9
|
tags: string[];
|
10
10
|
icon: string;
|
11
11
|
}>;
|
12
12
|
static upsert(data: CreateProtocolModel): Promise<{
|
13
|
-
id: string;
|
14
|
-
name: string;
|
15
13
|
url: string;
|
14
|
+
name: string;
|
16
15
|
description: string;
|
16
|
+
id: string;
|
17
17
|
tags: string[];
|
18
18
|
icon: string;
|
19
19
|
}>;
|
20
20
|
static changeId(oldId: string, newId: string): Promise<void>;
|
21
21
|
static findUnique(type: string): Promise<{
|
22
|
-
id: string;
|
23
|
-
name: string;
|
24
22
|
url: string;
|
23
|
+
name: string;
|
25
24
|
description: string;
|
25
|
+
id: string;
|
26
26
|
tags: string[];
|
27
27
|
icon: string;
|
28
28
|
} | null>;
|
29
29
|
static findMany(query: GetProtocolsQueryModel): Promise<({
|
30
30
|
MainOpportunities: ({
|
31
31
|
Campaigns: {
|
32
|
-
id: string;
|
33
32
|
type: string;
|
34
33
|
description: string | null;
|
34
|
+
id: string;
|
35
35
|
params: import("database/api/.generated/runtime/library").JsonValue;
|
36
36
|
subType: number | null;
|
37
37
|
computeChainId: number;
|
@@ -48,11 +48,11 @@ export declare abstract class ProtocolRepository {
|
|
48
48
|
createdAt: Date;
|
49
49
|
}[];
|
50
50
|
} & {
|
51
|
-
id: string;
|
52
|
-
name: string;
|
53
|
-
type: string;
|
54
51
|
status: import("@db/api").$Enums.Status;
|
52
|
+
type: string;
|
53
|
+
name: string;
|
55
54
|
description: string;
|
55
|
+
id: string;
|
56
56
|
tags: string[];
|
57
57
|
identifier: string;
|
58
58
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -68,19 +68,19 @@ export declare abstract class ProtocolRepository {
|
|
68
68
|
lastCampaignCreatedAt: Date;
|
69
69
|
})[];
|
70
70
|
} & {
|
71
|
-
id: string;
|
72
|
-
name: string;
|
73
71
|
url: string;
|
72
|
+
name: string;
|
74
73
|
description: string;
|
74
|
+
id: string;
|
75
75
|
tags: string[];
|
76
76
|
icon: string;
|
77
77
|
})[]>;
|
78
78
|
static countMany(query: GetProtocolsQueryModel): Promise<number>;
|
79
79
|
static update(id: string, data: UpdateProtocolModel): Promise<{
|
80
|
-
id: string;
|
81
|
-
name: string;
|
82
80
|
url: string;
|
81
|
+
name: string;
|
83
82
|
description: string;
|
83
|
+
id: string;
|
84
84
|
tags: string[];
|
85
85
|
icon: string;
|
86
86
|
}>;
|
@@ -5,26 +5,26 @@ export declare abstract class ProtocolService {
|
|
5
5
|
static countMany(query: GetProtocolsQueryModel): Promise<number>;
|
6
6
|
static findUnique(id: ProtocolId | string): Promise<Protocol["model"] | null>;
|
7
7
|
static create(data: CreateProtocolModel): Promise<{
|
8
|
-
id: string;
|
9
|
-
name: string;
|
10
8
|
url: string;
|
9
|
+
name: string;
|
11
10
|
description: string;
|
11
|
+
id: string;
|
12
12
|
tags: string[];
|
13
13
|
icon: string;
|
14
14
|
}>;
|
15
15
|
static upsert(data: CreateProtocolModel): Promise<{
|
16
|
-
id: string;
|
17
|
-
name: string;
|
18
16
|
url: string;
|
17
|
+
name: string;
|
19
18
|
description: string;
|
19
|
+
id: string;
|
20
20
|
tags: string[];
|
21
21
|
icon: string;
|
22
22
|
}>;
|
23
23
|
static update(id: string, data: UpdateProtocolModel): Promise<{
|
24
|
-
id: string;
|
25
|
-
name: string;
|
26
24
|
url: string;
|
25
|
+
name: string;
|
27
26
|
description: string;
|
27
|
+
id: string;
|
28
28
|
tags: string[];
|
29
29
|
icon: string;
|
30
30
|
}>;
|
@@ -243,8 +243,8 @@ export declare const RewardController: Elysia<"/rewards", false, {
|
|
243
243
|
rewardToken: string;
|
244
244
|
breakdowns: {
|
245
245
|
protocolId?: string | undefined;
|
246
|
-
pending: string;
|
247
246
|
reason: string;
|
247
|
+
pending: string;
|
248
248
|
amount: string;
|
249
249
|
recipient: string;
|
250
250
|
claimed: string;
|
@@ -127,7 +127,6 @@ export const RewardController = new Elysia({ prefix: "/rewards", detail: { tags:
|
|
127
127
|
.guard({
|
128
128
|
query: t.Object({ since: t.Date() }),
|
129
129
|
headers: AuthorizationHeadersDto,
|
130
|
-
beforeHandle: BackOfficeGuard,
|
131
130
|
detail: { hide: true },
|
132
131
|
})
|
133
132
|
.get("/total/distributed", async ({ query }) => await RewardService.getTotalDistributed(query.since.getTime() / 1000))
|
@@ -6,8 +6,8 @@ export declare abstract class RewardRepository {
|
|
6
6
|
static getByRecipient(recipient: string, roots: string[], withToken: boolean, withTestTokens: boolean, chainFilter?: ChainId[] | null, reasonFilter?: string): Promise<({
|
7
7
|
RewardToken: {
|
8
8
|
symbol: string;
|
9
|
-
id: string;
|
10
9
|
name: string | null;
|
10
|
+
id: string;
|
11
11
|
icon: string;
|
12
12
|
address: string;
|
13
13
|
chainId: number;
|
@@ -25,14 +25,14 @@ export declare abstract class RewardRepository {
|
|
25
25
|
campaignId: string;
|
26
26
|
Opportunity: {
|
27
27
|
Chain: {
|
28
|
-
id: number;
|
29
28
|
name: string;
|
29
|
+
id: number;
|
30
30
|
icon: string;
|
31
31
|
};
|
32
32
|
Tokens: {
|
33
33
|
symbol: string;
|
34
|
-
id: string;
|
35
34
|
name: string | null;
|
35
|
+
id: string;
|
36
36
|
icon: string;
|
37
37
|
address: string;
|
38
38
|
chainId: number;
|
@@ -46,27 +46,27 @@ export declare abstract class RewardRepository {
|
|
46
46
|
price: number | null;
|
47
47
|
}[];
|
48
48
|
Protocols: {
|
49
|
-
id: string;
|
50
|
-
name: string;
|
51
49
|
url: string;
|
50
|
+
name: string;
|
52
51
|
description: string;
|
52
|
+
id: string;
|
53
53
|
tags: string[];
|
54
54
|
icon: string;
|
55
55
|
}[];
|
56
56
|
MainProtocol: {
|
57
|
-
id: string;
|
58
|
-
name: string;
|
59
57
|
url: string;
|
58
|
+
name: string;
|
60
59
|
description: string;
|
60
|
+
id: string;
|
61
61
|
tags: string[];
|
62
62
|
icon: string;
|
63
63
|
} | null;
|
64
64
|
} & {
|
65
|
-
id: string;
|
66
|
-
name: string;
|
67
|
-
type: string;
|
68
65
|
status: import("@db/api").$Enums.Status;
|
66
|
+
type: string;
|
67
|
+
name: string;
|
69
68
|
description: string;
|
69
|
+
id: string;
|
70
70
|
tags: string[];
|
71
71
|
identifier: string;
|
72
72
|
action: import("@db/api").$Enums.OpportunityAction;
|
@@ -83,9 +83,9 @@ export declare abstract class RewardRepository {
|
|
83
83
|
};
|
84
84
|
};
|
85
85
|
} & {
|
86
|
+
reason: string;
|
86
87
|
pending: string;
|
87
88
|
id: string;
|
88
|
-
reason: string;
|
89
89
|
campaignId: string;
|
90
90
|
amount: string;
|
91
91
|
claimed: string;
|
@@ -108,9 +108,9 @@ export declare abstract class RewardRepository {
|
|
108
108
|
campaignId: string;
|
109
109
|
};
|
110
110
|
} & {
|
111
|
+
reason: string;
|
111
112
|
pending: string;
|
112
113
|
id: string;
|
113
|
-
reason: string;
|
114
114
|
campaignId: string;
|
115
115
|
amount: string;
|
116
116
|
claimed: string;
|