@merkl/api 0.10.116 → 0.10.118
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/database/api/.generated/default.d.ts +1 -1
- package/dist/database/api/.generated/edge.d.ts +1 -1
- package/dist/database/api/.generated/index.d.ts +335 -311
- package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +15 -2
- package/dist/database/api/.generated/runtime/library.d.ts +195 -79
- package/dist/database/api/.generated/schema.prisma +1 -1
- package/dist/database/api/.generated/wasm.d.ts +1 -1
- package/dist/database/engine/.generated/default.d.ts +1 -1
- package/dist/database/engine/.generated/edge.d.ts +1 -1
- package/dist/database/engine/.generated/index.d.ts +16 -104
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +14 -1
- package/dist/database/engine/.generated/runtime/library.d.ts +195 -79
- package/dist/database/engine/.generated/wasm.d.ts +1 -1
- package/dist/src/eden/index.d.ts +552 -411
- package/dist/src/index.d.ts +194 -137
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +8 -8
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
- package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +14 -14
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +27 -27
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +28 -28
- package/dist/src/modules/v4/chain/chain.controller.d.ts +5 -5
- package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -6
- package/dist/src/modules/v4/chain/chain.service.d.ts +5 -5
- package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
- package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +8 -9
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
- package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
- package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
- package/dist/src/modules/v4/price/price.service.d.ts +8 -8
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
- package/dist/src/modules/v4/reward/reward.controller.d.ts +11 -8
- package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
- package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
- package/dist/src/modules/v4/reward/reward.service.d.ts +133 -130
- package/dist/src/modules/v4/router.d.ts +194 -137
- package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
- package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
- package/dist/src/modules/v4/status/status.service.d.ts +20 -20
- package/dist/src/modules/v4/user/user.controller.d.ts +79 -43
- package/dist/src/modules/v4/user/user.repository.d.ts +7 -2
- package/dist/src/modules/v4/user/user.service.d.ts +10 -4
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +194 -137
- package/dist/src/routes/v3/blacklist.d.ts +194 -137
- package/dist/src/routes/v3/campaigns.d.ts +194 -137
- package/dist/src/routes/v3/campaignsInfo.d.ts +194 -137
- package/dist/src/routes/v3/multiChainPositions.d.ts +194 -137
- package/dist/src/routes/v3/opportunity.d.ts +194 -137
- package/dist/src/routes/v3/positions.d.ts +194 -137
- package/dist/src/routes/v3/rewards.d.ts +194 -137
- package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
- package/dist/src/routes/v3/updates.d.ts +194 -137
- package/dist/src/routes/v3/userRewards.d.ts +194 -137
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
@@ -53,12 +53,12 @@ export declare const StatusController: Elysia<"/campaignStatus", false, {
|
|
53
53
|
headers: unknown;
|
54
54
|
response: {
|
55
55
|
200: {
|
56
|
+
error: string;
|
57
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
58
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
56
59
|
campaignId: string;
|
57
60
|
computedUntil: bigint;
|
58
61
|
processingStarted: bigint;
|
59
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
60
|
-
error: string;
|
61
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
62
62
|
}[];
|
63
63
|
};
|
64
64
|
};
|
@@ -77,27 +77,27 @@ export declare const StatusController: Elysia<"/campaignStatus", false, {
|
|
77
77
|
response: {
|
78
78
|
200: ({
|
79
79
|
Campaign: {
|
80
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
80
81
|
id: string;
|
82
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
83
|
+
subType: number | null;
|
84
|
+
startTimestamp: bigint;
|
85
|
+
endTimestamp: bigint;
|
81
86
|
computeChainId: number;
|
82
87
|
distributionChainId: number;
|
83
88
|
campaignId: string;
|
84
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
85
|
-
subType: number | null;
|
86
89
|
rewardTokenId: string;
|
87
90
|
amount: string;
|
88
91
|
opportunityId: string;
|
89
|
-
startTimestamp: bigint;
|
90
|
-
endTimestamp: bigint;
|
91
|
-
params: import("../../../../database/api/.generated").Prisma.JsonValue;
|
92
92
|
creatorAddress: string;
|
93
93
|
};
|
94
94
|
} & {
|
95
|
+
error: string;
|
96
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
97
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
95
98
|
campaignId: string;
|
96
99
|
computedUntil: bigint;
|
97
100
|
processingStarted: bigint;
|
98
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
99
|
-
error: string;
|
100
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
101
101
|
})[];
|
102
102
|
};
|
103
103
|
};
|
@@ -116,12 +116,12 @@ export declare const StatusController: Elysia<"/campaignStatus", false, {
|
|
116
116
|
headers: unknown;
|
117
117
|
response: {
|
118
118
|
200: {
|
119
|
+
error: string;
|
120
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
121
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
119
122
|
campaignId: string;
|
120
123
|
computedUntil: bigint;
|
121
124
|
processingStarted: bigint;
|
122
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
123
|
-
error: string;
|
124
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
125
125
|
};
|
126
126
|
};
|
127
127
|
};
|
@@ -140,12 +140,12 @@ export declare const StatusController: Elysia<"/campaignStatus", false, {
|
|
140
140
|
headers: unknown;
|
141
141
|
response: {
|
142
142
|
200: {
|
143
|
+
error: string;
|
144
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
145
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
143
146
|
campaignId: string;
|
144
147
|
computedUntil: bigint;
|
145
148
|
processingStarted: bigint;
|
146
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
147
|
-
error: string;
|
148
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
149
149
|
}[];
|
150
150
|
};
|
151
151
|
};
|
@@ -2,91 +2,91 @@ import type { RunStatus } from "../../../../database/api/.generated";
|
|
2
2
|
import { type CampaignUnique } from "../campaign";
|
3
3
|
export declare class StatusRepository {
|
4
4
|
static findMany(): Promise<{
|
5
|
+
error: string;
|
6
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
7
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
5
8
|
campaignId: string;
|
6
9
|
computedUntil: bigint;
|
7
10
|
processingStarted: bigint;
|
8
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
9
|
-
error: string;
|
10
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
11
11
|
}[]>;
|
12
12
|
static findManyByRunStatus(statuses: RunStatus[]): Promise<({
|
13
13
|
Campaign: {
|
14
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
14
15
|
id: string;
|
16
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
17
|
+
subType: number | null;
|
18
|
+
startTimestamp: bigint;
|
19
|
+
endTimestamp: bigint;
|
15
20
|
computeChainId: number;
|
16
21
|
distributionChainId: number;
|
17
22
|
campaignId: string;
|
18
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
19
|
-
subType: number | null;
|
20
23
|
rewardTokenId: string;
|
21
24
|
amount: string;
|
22
25
|
opportunityId: string;
|
23
|
-
startTimestamp: bigint;
|
24
|
-
endTimestamp: bigint;
|
25
|
-
params: import("../../../../database/api/.generated").Prisma.JsonValue;
|
26
26
|
creatorAddress: string;
|
27
27
|
};
|
28
28
|
} & {
|
29
|
+
error: string;
|
30
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
31
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
29
32
|
campaignId: string;
|
30
33
|
computedUntil: bigint;
|
31
34
|
processingStarted: bigint;
|
32
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
33
|
-
error: string;
|
34
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
35
35
|
})[]>;
|
36
36
|
static findManyPerChain(chainId: number): Promise<{
|
37
|
+
error: string;
|
38
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
39
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
37
40
|
campaignId: string;
|
38
41
|
computedUntil: bigint;
|
39
42
|
processingStarted: bigint;
|
40
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
41
|
-
error: string;
|
42
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
43
43
|
}[]>;
|
44
44
|
static findUniqueOrThrow(campaignUnique: CampaignUnique): Promise<{
|
45
|
+
error: string;
|
46
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
47
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
45
48
|
campaignId: string;
|
46
49
|
computedUntil: bigint;
|
47
50
|
processingStarted: bigint;
|
48
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
49
|
-
error: string;
|
50
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
51
51
|
}>;
|
52
52
|
static findUnique(campaignUnique: CampaignUnique): Promise<{
|
53
|
+
error: string;
|
54
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
55
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
53
56
|
campaignId: string;
|
54
57
|
computedUntil: bigint;
|
55
58
|
processingStarted: bigint;
|
56
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
57
|
-
error: string;
|
58
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
59
59
|
} | null>;
|
60
60
|
static create(campaign: CampaignUnique, startTimestamp: bigint): Promise<{
|
61
|
+
error: string;
|
62
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
63
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
61
64
|
campaignId: string;
|
62
65
|
computedUntil: bigint;
|
63
66
|
processingStarted: bigint;
|
64
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
65
|
-
error: string;
|
66
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
67
67
|
}>;
|
68
68
|
static updateSuccess(campaignUnique: CampaignUnique, computedUntil: number): Promise<{
|
69
|
+
error: string;
|
70
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
71
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
69
72
|
campaignId: string;
|
70
73
|
computedUntil: bigint;
|
71
74
|
processingStarted: bigint;
|
72
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
73
|
-
error: string;
|
74
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
75
75
|
}>;
|
76
76
|
static updateWithError(campaignUnique: CampaignUnique, status: Exclude<RunStatus, "SUCCESS" | "PROCESSING">, error: string, details: string): Promise<{
|
77
|
+
error: string;
|
78
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
79
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
77
80
|
campaignId: string;
|
78
81
|
computedUntil: bigint;
|
79
82
|
processingStarted: bigint;
|
80
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
81
|
-
error: string;
|
82
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
83
83
|
}>;
|
84
84
|
static updateProcessing(campaignUnique: CampaignUnique): Promise<{
|
85
|
+
error: string;
|
86
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
87
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
85
88
|
campaignId: string;
|
86
89
|
computedUntil: bigint;
|
87
90
|
processingStarted: bigint;
|
88
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
89
|
-
error: string;
|
90
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
91
91
|
}>;
|
92
92
|
}
|
@@ -2,60 +2,60 @@ import { type CampaignUnique } from "../campaign";
|
|
2
2
|
import type { RunStatusListModel, UpdateStatusModel } from "./status.model";
|
3
3
|
export declare class StatusService {
|
4
4
|
static findMany(): Promise<{
|
5
|
+
error: string;
|
6
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
7
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
5
8
|
campaignId: string;
|
6
9
|
computedUntil: bigint;
|
7
10
|
processingStarted: bigint;
|
8
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
9
|
-
error: string;
|
10
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
11
11
|
}[]>;
|
12
12
|
static findManyByRunStatus(x: RunStatusListModel): Promise<({
|
13
13
|
Campaign: {
|
14
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
14
15
|
id: string;
|
16
|
+
params: import("database/api/.generated/runtime/library").JsonValue;
|
17
|
+
subType: number | null;
|
18
|
+
startTimestamp: bigint;
|
19
|
+
endTimestamp: bigint;
|
15
20
|
computeChainId: number;
|
16
21
|
distributionChainId: number;
|
17
22
|
campaignId: string;
|
18
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
19
|
-
subType: number | null;
|
20
23
|
rewardTokenId: string;
|
21
24
|
amount: string;
|
22
25
|
opportunityId: string;
|
23
|
-
startTimestamp: bigint;
|
24
|
-
endTimestamp: bigint;
|
25
|
-
params: import("../../../../database/api/.generated").Prisma.JsonValue;
|
26
26
|
creatorAddress: string;
|
27
27
|
};
|
28
28
|
} & {
|
29
|
+
error: string;
|
30
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
31
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
29
32
|
campaignId: string;
|
30
33
|
computedUntil: bigint;
|
31
34
|
processingStarted: bigint;
|
32
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
33
|
-
error: string;
|
34
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
35
35
|
})[]>;
|
36
36
|
static findManyPerChain(chainId: number): Promise<{
|
37
|
+
error: string;
|
38
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
39
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
37
40
|
campaignId: string;
|
38
41
|
computedUntil: bigint;
|
39
42
|
processingStarted: bigint;
|
40
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
41
|
-
error: string;
|
42
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
43
43
|
}[]>;
|
44
44
|
static findUniqueOrThrow(campaignUnique: CampaignUnique): Promise<{
|
45
|
+
error: string;
|
46
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
47
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
45
48
|
campaignId: string;
|
46
49
|
computedUntil: bigint;
|
47
50
|
processingStarted: bigint;
|
48
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
49
|
-
error: string;
|
50
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
51
51
|
}>;
|
52
52
|
static findUnique(campaignUnique: CampaignUnique): Promise<{
|
53
|
+
error: string;
|
54
|
+
details: import("database/api/.generated/runtime/library").JsonValue;
|
55
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
53
56
|
campaignId: string;
|
54
57
|
computedUntil: bigint;
|
55
58
|
processingStarted: bigint;
|
56
|
-
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
57
|
-
error: string;
|
58
|
-
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
59
59
|
} | null>;
|
60
60
|
static update(x: UpdateStatusModel): Promise<void>;
|
61
61
|
static isSafeForOverlaps(campaignUnique: CampaignUnique): Promise<boolean>;
|
@@ -26,8 +26,27 @@ export declare const UserController: Elysia<"/users", false, {
|
|
26
26
|
headers: unknown;
|
27
27
|
response: {
|
28
28
|
200: {
|
29
|
+
tags: string[];
|
29
30
|
address: string;
|
31
|
+
}[];
|
32
|
+
};
|
33
|
+
};
|
34
|
+
};
|
35
|
+
};
|
36
|
+
} & {
|
37
|
+
users: {
|
38
|
+
tags: {
|
39
|
+
get: {
|
40
|
+
body: unknown;
|
41
|
+
params: Record<never, string>;
|
42
|
+
query: unknown;
|
43
|
+
headers: {
|
44
|
+
authorization: string;
|
45
|
+
};
|
46
|
+
response: {
|
47
|
+
200: {
|
30
48
|
tags: string[];
|
49
|
+
address: string;
|
31
50
|
}[];
|
32
51
|
};
|
33
52
|
};
|
@@ -43,6 +62,7 @@ export declare const UserController: Elysia<"/users", false, {
|
|
43
62
|
headers: unknown;
|
44
63
|
response: {
|
45
64
|
200: {
|
65
|
+
tags: string[];
|
46
66
|
address: string;
|
47
67
|
} | null;
|
48
68
|
};
|
@@ -68,13 +88,13 @@ export declare const UserController: Elysia<"/users", false, {
|
|
68
88
|
}, "rewards"> & {
|
69
89
|
rewards: (Omit<{
|
70
90
|
token: {
|
71
|
-
|
91
|
+
symbol: string;
|
72
92
|
name: string | null;
|
93
|
+
id: string;
|
73
94
|
chainId: number;
|
74
95
|
address: string;
|
75
|
-
decimals: number;
|
76
|
-
symbol: string;
|
77
96
|
icon: string;
|
97
|
+
decimals: number;
|
78
98
|
verified: boolean;
|
79
99
|
price: number | null;
|
80
100
|
};
|
@@ -82,63 +102,63 @@ export declare const UserController: Elysia<"/users", false, {
|
|
82
102
|
campaignId: string;
|
83
103
|
opportunity: {
|
84
104
|
Chain: {
|
85
|
-
id: number;
|
86
105
|
name: string;
|
106
|
+
id: number;
|
87
107
|
icon: string;
|
88
108
|
};
|
89
109
|
Tokens: {
|
90
|
-
|
110
|
+
symbol: string;
|
91
111
|
name: string | null;
|
112
|
+
id: string;
|
92
113
|
chainId: number;
|
93
114
|
address: string;
|
94
|
-
decimals: number;
|
95
|
-
symbol: string;
|
96
115
|
icon: string;
|
116
|
+
decimals: number;
|
97
117
|
verified: boolean;
|
98
118
|
price: number | null;
|
99
119
|
}[];
|
100
120
|
Protocols: {
|
101
|
-
id: string;
|
102
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
103
121
|
name: string;
|
104
|
-
description: string;
|
105
122
|
url: string;
|
123
|
+
description: string;
|
124
|
+
id: string;
|
125
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
106
126
|
icon: string;
|
107
127
|
}[];
|
108
128
|
MainProtocol: {
|
109
|
-
id: string;
|
110
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
111
129
|
name: string;
|
112
|
-
description: string;
|
113
130
|
url: string;
|
131
|
+
description: string;
|
132
|
+
id: string;
|
133
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
114
134
|
icon: string;
|
115
135
|
} | null;
|
116
136
|
} & {
|
117
|
-
id: string;
|
118
|
-
chainId: number;
|
119
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
120
|
-
identifier: string;
|
121
137
|
name: string;
|
138
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
139
|
+
id: string;
|
122
140
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
141
|
+
tags: string[];
|
142
|
+
identifier: string;
|
143
|
+
chainId: number;
|
123
144
|
action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
|
124
145
|
mainProtocolId: string | null;
|
125
146
|
tvl: number;
|
126
147
|
apr: number;
|
127
148
|
dailyRewards: number;
|
128
|
-
tags: string[];
|
129
149
|
};
|
130
150
|
reason: string;
|
151
|
+
pending: string;
|
131
152
|
amount: string;
|
132
153
|
claimed: string;
|
133
|
-
pending: string;
|
134
154
|
auxiliaryData1: string | null;
|
135
155
|
auxiliaryData2: string | null;
|
136
156
|
}[];
|
137
157
|
claimed: bigint;
|
138
158
|
amount: bigint;
|
139
159
|
pending: bigint;
|
140
|
-
root: string;
|
141
160
|
recipient: string;
|
161
|
+
root: string;
|
142
162
|
proofs: string[];
|
143
163
|
}, "breakdowns"> & {
|
144
164
|
breakdowns: {
|
@@ -178,13 +198,13 @@ export declare const UserController: Elysia<"/users", false, {
|
|
178
198
|
}, "rewards"> & {
|
179
199
|
rewards: (Omit<{
|
180
200
|
token: {
|
181
|
-
|
201
|
+
symbol: string;
|
182
202
|
name: string | null;
|
203
|
+
id: string;
|
183
204
|
chainId: number;
|
184
205
|
address: string;
|
185
|
-
decimals: number;
|
186
|
-
symbol: string;
|
187
206
|
icon: string;
|
207
|
+
decimals: number;
|
188
208
|
verified: boolean;
|
189
209
|
price: number | null;
|
190
210
|
};
|
@@ -192,71 +212,71 @@ export declare const UserController: Elysia<"/users", false, {
|
|
192
212
|
campaignId: string;
|
193
213
|
opportunity: {
|
194
214
|
Chain: {
|
195
|
-
id: number;
|
196
215
|
name: string;
|
216
|
+
id: number;
|
197
217
|
icon: string;
|
198
218
|
};
|
199
219
|
Tokens: {
|
200
|
-
|
220
|
+
symbol: string;
|
201
221
|
name: string | null;
|
222
|
+
id: string;
|
202
223
|
chainId: number;
|
203
224
|
address: string;
|
204
|
-
decimals: number;
|
205
|
-
symbol: string;
|
206
225
|
icon: string;
|
226
|
+
decimals: number;
|
207
227
|
verified: boolean;
|
208
228
|
price: number | null;
|
209
229
|
}[];
|
210
230
|
Protocols: {
|
211
|
-
id: string;
|
212
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
213
231
|
name: string;
|
214
|
-
description: string;
|
215
232
|
url: string;
|
233
|
+
description: string;
|
234
|
+
id: string;
|
235
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
216
236
|
icon: string;
|
217
237
|
}[];
|
218
238
|
MainProtocol: {
|
219
|
-
id: string;
|
220
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
221
239
|
name: string;
|
222
|
-
description: string;
|
223
240
|
url: string;
|
241
|
+
description: string;
|
242
|
+
id: string;
|
243
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
224
244
|
icon: string;
|
225
245
|
} | null;
|
226
246
|
} & {
|
227
|
-
id: string;
|
228
|
-
chainId: number;
|
229
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
230
|
-
identifier: string;
|
231
247
|
name: string;
|
248
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
249
|
+
id: string;
|
232
250
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
251
|
+
tags: string[];
|
252
|
+
identifier: string;
|
253
|
+
chainId: number;
|
233
254
|
action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
|
234
255
|
mainProtocolId: string | null;
|
235
256
|
tvl: number;
|
236
257
|
apr: number;
|
237
258
|
dailyRewards: number;
|
238
|
-
tags: string[];
|
239
259
|
};
|
240
260
|
reason: string;
|
261
|
+
pending: string;
|
241
262
|
amount: string;
|
242
263
|
claimed: string;
|
243
|
-
pending: string;
|
244
264
|
auxiliaryData1: string | null;
|
245
265
|
auxiliaryData2: string | null;
|
246
266
|
}[];
|
247
267
|
claimed: bigint;
|
248
268
|
amount: bigint;
|
249
269
|
pending: bigint;
|
250
|
-
root: string;
|
251
270
|
recipient: string;
|
271
|
+
root: string;
|
252
272
|
proofs: string[];
|
253
273
|
}, "breakdowns"> & {
|
254
274
|
breakdowns: {
|
255
275
|
campaignId: string;
|
256
276
|
reason: string;
|
277
|
+
pending: string;
|
257
278
|
amount: string;
|
258
279
|
claimed: string;
|
259
|
-
pending: string;
|
260
280
|
auxiliaryData1: string | null;
|
261
281
|
auxiliaryData2: string | null;
|
262
282
|
}[];
|
@@ -282,13 +302,29 @@ export declare const UserController: Elysia<"/users", false, {
|
|
282
302
|
};
|
283
303
|
response: {
|
284
304
|
200: {
|
285
|
-
address: string;
|
286
305
|
tags: string[];
|
306
|
+
address: string;
|
287
307
|
};
|
288
308
|
};
|
289
309
|
};
|
290
310
|
};
|
291
311
|
};
|
312
|
+
} & {
|
313
|
+
users: {
|
314
|
+
sync: {
|
315
|
+
post: {
|
316
|
+
body: unknown;
|
317
|
+
params: Record<never, string>;
|
318
|
+
query: unknown;
|
319
|
+
headers: {
|
320
|
+
authorization: string;
|
321
|
+
};
|
322
|
+
response: {
|
323
|
+
200: void;
|
324
|
+
};
|
325
|
+
};
|
326
|
+
};
|
327
|
+
};
|
292
328
|
} & {
|
293
329
|
users: {
|
294
330
|
":address": {
|
@@ -306,8 +342,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
306
342
|
};
|
307
343
|
response: {
|
308
344
|
200: {
|
309
|
-
address: string;
|
310
345
|
tags: string[];
|
346
|
+
address: string;
|
311
347
|
};
|
312
348
|
};
|
313
349
|
};
|
@@ -1,19 +1,24 @@
|
|
1
1
|
import type { GetManyUserModel, UserModel } from "./user.model";
|
2
2
|
export declare abstract class UserRepository {
|
3
3
|
static findUnique(address: string): Promise<{
|
4
|
+
tags: string[];
|
4
5
|
address: string;
|
5
6
|
} | null>;
|
6
7
|
static findMany(query: GetManyUserModel): Promise<{
|
8
|
+
tags: string[];
|
7
9
|
address: string;
|
10
|
+
}[]>;
|
11
|
+
static findManyWithTags(): Promise<{
|
8
12
|
tags: string[];
|
13
|
+
address: string;
|
9
14
|
}[]>;
|
10
15
|
static create(user: UserModel): Promise<{
|
11
|
-
address: string;
|
12
16
|
tags: string[];
|
17
|
+
address: string;
|
13
18
|
}>;
|
14
19
|
static createMany(users: UserModel[]): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
|
15
20
|
static updateTags(address: string, tags: string[]): Promise<{
|
16
|
-
address: string;
|
17
21
|
tags: string[];
|
22
|
+
address: string;
|
18
23
|
}>;
|
19
24
|
}
|
@@ -1,19 +1,25 @@
|
|
1
1
|
import type { GetManyUserModel, UserModel } from "./user.model";
|
2
2
|
export declare abstract class UserService {
|
3
|
-
static
|
3
|
+
static findUnique(address: string): Promise<{
|
4
|
+
tags: string[];
|
4
5
|
address: string;
|
5
6
|
} | null>;
|
6
|
-
static
|
7
|
+
static findMany(query: GetManyUserModel): Promise<{
|
8
|
+
tags: string[];
|
7
9
|
address: string;
|
10
|
+
}[]>;
|
11
|
+
static findManyWithTags(): Promise<{
|
8
12
|
tags: string[];
|
13
|
+
address: string;
|
9
14
|
}[]>;
|
10
15
|
static create(user: UserModel): Promise<{
|
11
|
-
address: string;
|
12
16
|
tags: string[];
|
17
|
+
address: string;
|
13
18
|
}>;
|
14
19
|
static createMany(users: UserModel[]): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
|
15
20
|
static updateTags(user: string, tags: string[]): Promise<{
|
16
|
-
address: string;
|
17
21
|
tags: string[];
|
22
|
+
address: string;
|
18
23
|
}>;
|
24
|
+
static syncTags(): Promise<void>;
|
19
25
|
}
|