@merkl/api 0.10.116 → 0.10.117
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 +470 -414
- package/dist/src/index.d.ts +160 -138
- 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 +22 -3
- package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
- package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -4
- 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 +160 -138
- 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 +44 -44
- package/dist/src/modules/v4/user/user.repository.d.ts +3 -3
- package/dist/src/modules/v4/user/user.service.d.ts +3 -3
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +160 -138
- package/dist/src/routes/v3/blacklist.d.ts +160 -138
- package/dist/src/routes/v3/campaigns.d.ts +160 -138
- package/dist/src/routes/v3/campaignsInfo.d.ts +160 -138
- package/dist/src/routes/v3/multiChainPositions.d.ts +160 -138
- package/dist/src/routes/v3/opportunity.d.ts +160 -138
- package/dist/src/routes/v3/positions.d.ts +160 -138
- package/dist/src/routes/v3/rewards.d.ts +160 -138
- package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
- package/dist/src/routes/v3/updates.d.ts +160 -138
- package/dist/src/routes/v3/userRewards.d.ts +160 -138
- 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,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
26
26
|
headers: unknown;
|
27
27
|
response: {
|
28
28
|
200: {
|
29
|
-
address: string;
|
30
29
|
tags: string[];
|
30
|
+
address: string;
|
31
31
|
}[];
|
32
32
|
};
|
33
33
|
};
|
@@ -68,13 +68,13 @@ export declare const UserController: Elysia<"/users", false, {
|
|
68
68
|
}, "rewards"> & {
|
69
69
|
rewards: (Omit<{
|
70
70
|
token: {
|
71
|
-
|
71
|
+
symbol: string;
|
72
72
|
name: string | null;
|
73
|
+
id: string;
|
73
74
|
chainId: number;
|
74
75
|
address: string;
|
75
|
-
decimals: number;
|
76
|
-
symbol: string;
|
77
76
|
icon: string;
|
77
|
+
decimals: number;
|
78
78
|
verified: boolean;
|
79
79
|
price: number | null;
|
80
80
|
};
|
@@ -82,63 +82,63 @@ export declare const UserController: Elysia<"/users", false, {
|
|
82
82
|
campaignId: string;
|
83
83
|
opportunity: {
|
84
84
|
Chain: {
|
85
|
-
id: number;
|
86
85
|
name: string;
|
86
|
+
id: number;
|
87
87
|
icon: string;
|
88
88
|
};
|
89
89
|
Tokens: {
|
90
|
-
|
90
|
+
symbol: string;
|
91
91
|
name: string | null;
|
92
|
+
id: string;
|
92
93
|
chainId: number;
|
93
94
|
address: string;
|
94
|
-
decimals: number;
|
95
|
-
symbol: string;
|
96
95
|
icon: string;
|
96
|
+
decimals: number;
|
97
97
|
verified: boolean;
|
98
98
|
price: number | null;
|
99
99
|
}[];
|
100
100
|
Protocols: {
|
101
|
-
id: string;
|
102
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
103
101
|
name: string;
|
104
|
-
description: string;
|
105
102
|
url: string;
|
103
|
+
description: string;
|
104
|
+
id: string;
|
105
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
106
106
|
icon: string;
|
107
107
|
}[];
|
108
108
|
MainProtocol: {
|
109
|
-
id: string;
|
110
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
111
109
|
name: string;
|
112
|
-
description: string;
|
113
110
|
url: string;
|
111
|
+
description: string;
|
112
|
+
id: string;
|
113
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
114
114
|
icon: string;
|
115
115
|
} | null;
|
116
116
|
} & {
|
117
|
-
id: string;
|
118
|
-
chainId: number;
|
119
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
120
|
-
identifier: string;
|
121
117
|
name: string;
|
118
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
119
|
+
id: string;
|
122
120
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
121
|
+
tags: string[];
|
122
|
+
identifier: string;
|
123
|
+
chainId: number;
|
123
124
|
action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
|
124
125
|
mainProtocolId: string | null;
|
125
126
|
tvl: number;
|
126
127
|
apr: number;
|
127
128
|
dailyRewards: number;
|
128
|
-
tags: string[];
|
129
129
|
};
|
130
130
|
reason: string;
|
131
|
+
pending: string;
|
131
132
|
amount: string;
|
132
133
|
claimed: string;
|
133
|
-
pending: string;
|
134
134
|
auxiliaryData1: string | null;
|
135
135
|
auxiliaryData2: string | null;
|
136
136
|
}[];
|
137
137
|
claimed: bigint;
|
138
138
|
amount: bigint;
|
139
139
|
pending: bigint;
|
140
|
-
root: string;
|
141
140
|
recipient: string;
|
141
|
+
root: string;
|
142
142
|
proofs: string[];
|
143
143
|
}, "breakdowns"> & {
|
144
144
|
breakdowns: {
|
@@ -178,13 +178,13 @@ export declare const UserController: Elysia<"/users", false, {
|
|
178
178
|
}, "rewards"> & {
|
179
179
|
rewards: (Omit<{
|
180
180
|
token: {
|
181
|
-
|
181
|
+
symbol: string;
|
182
182
|
name: string | null;
|
183
|
+
id: string;
|
183
184
|
chainId: number;
|
184
185
|
address: string;
|
185
|
-
decimals: number;
|
186
|
-
symbol: string;
|
187
186
|
icon: string;
|
187
|
+
decimals: number;
|
188
188
|
verified: boolean;
|
189
189
|
price: number | null;
|
190
190
|
};
|
@@ -192,71 +192,71 @@ export declare const UserController: Elysia<"/users", false, {
|
|
192
192
|
campaignId: string;
|
193
193
|
opportunity: {
|
194
194
|
Chain: {
|
195
|
-
id: number;
|
196
195
|
name: string;
|
196
|
+
id: number;
|
197
197
|
icon: string;
|
198
198
|
};
|
199
199
|
Tokens: {
|
200
|
-
|
200
|
+
symbol: string;
|
201
201
|
name: string | null;
|
202
|
+
id: string;
|
202
203
|
chainId: number;
|
203
204
|
address: string;
|
204
|
-
decimals: number;
|
205
|
-
symbol: string;
|
206
205
|
icon: string;
|
206
|
+
decimals: number;
|
207
207
|
verified: boolean;
|
208
208
|
price: number | null;
|
209
209
|
}[];
|
210
210
|
Protocols: {
|
211
|
-
id: string;
|
212
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
213
211
|
name: string;
|
214
|
-
description: string;
|
215
212
|
url: string;
|
213
|
+
description: string;
|
214
|
+
id: string;
|
215
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
216
216
|
icon: string;
|
217
217
|
}[];
|
218
218
|
MainProtocol: {
|
219
|
-
id: string;
|
220
|
-
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
221
219
|
name: string;
|
222
|
-
description: string;
|
223
220
|
url: string;
|
221
|
+
description: string;
|
222
|
+
id: string;
|
223
|
+
tags: import("../../../../database/api/.generated").$Enums.ProtocolTag[];
|
224
224
|
icon: string;
|
225
225
|
} | null;
|
226
226
|
} & {
|
227
|
-
id: string;
|
228
|
-
chainId: number;
|
229
|
-
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
230
|
-
identifier: string;
|
231
227
|
name: string;
|
228
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
229
|
+
id: string;
|
232
230
|
status: import("../../../../database/api/.generated").$Enums.Status;
|
231
|
+
tags: string[];
|
232
|
+
identifier: string;
|
233
|
+
chainId: number;
|
233
234
|
action: import("../../../../database/api/.generated").$Enums.OpportunityAction;
|
234
235
|
mainProtocolId: string | null;
|
235
236
|
tvl: number;
|
236
237
|
apr: number;
|
237
238
|
dailyRewards: number;
|
238
|
-
tags: string[];
|
239
239
|
};
|
240
240
|
reason: string;
|
241
|
+
pending: string;
|
241
242
|
amount: string;
|
242
243
|
claimed: string;
|
243
|
-
pending: string;
|
244
244
|
auxiliaryData1: string | null;
|
245
245
|
auxiliaryData2: string | null;
|
246
246
|
}[];
|
247
247
|
claimed: bigint;
|
248
248
|
amount: bigint;
|
249
249
|
pending: bigint;
|
250
|
-
root: string;
|
251
250
|
recipient: string;
|
251
|
+
root: string;
|
252
252
|
proofs: string[];
|
253
253
|
}, "breakdowns"> & {
|
254
254
|
breakdowns: {
|
255
255
|
campaignId: string;
|
256
256
|
reason: string;
|
257
|
+
pending: string;
|
257
258
|
amount: string;
|
258
259
|
claimed: string;
|
259
|
-
pending: string;
|
260
260
|
auxiliaryData1: string | null;
|
261
261
|
auxiliaryData2: string | null;
|
262
262
|
}[];
|
@@ -282,8 +282,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
282
282
|
};
|
283
283
|
response: {
|
284
284
|
200: {
|
285
|
-
address: string;
|
286
285
|
tags: string[];
|
286
|
+
address: string;
|
287
287
|
};
|
288
288
|
};
|
289
289
|
};
|
@@ -306,8 +306,8 @@ export declare const UserController: Elysia<"/users", false, {
|
|
306
306
|
};
|
307
307
|
response: {
|
308
308
|
200: {
|
309
|
-
address: string;
|
310
309
|
tags: string[];
|
310
|
+
address: string;
|
311
311
|
};
|
312
312
|
};
|
313
313
|
};
|
@@ -4,16 +4,16 @@ export declare abstract class UserRepository {
|
|
4
4
|
address: string;
|
5
5
|
} | null>;
|
6
6
|
static findMany(query: GetManyUserModel): Promise<{
|
7
|
-
address: string;
|
8
7
|
tags: string[];
|
8
|
+
address: string;
|
9
9
|
}[]>;
|
10
10
|
static create(user: UserModel): Promise<{
|
11
|
-
address: string;
|
12
11
|
tags: string[];
|
12
|
+
address: string;
|
13
13
|
}>;
|
14
14
|
static createMany(users: UserModel[]): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
|
15
15
|
static updateTags(address: string, tags: string[]): Promise<{
|
16
|
-
address: string;
|
17
16
|
tags: string[];
|
17
|
+
address: string;
|
18
18
|
}>;
|
19
19
|
}
|
@@ -4,16 +4,16 @@ export declare abstract class UserService {
|
|
4
4
|
address: string;
|
5
5
|
} | null>;
|
6
6
|
static getMany(query: GetManyUserModel): Promise<{
|
7
|
-
address: string;
|
8
7
|
tags: string[];
|
8
|
+
address: string;
|
9
9
|
}[]>;
|
10
10
|
static create(user: UserModel): Promise<{
|
11
|
-
address: string;
|
12
11
|
tags: string[];
|
12
|
+
address: string;
|
13
13
|
}>;
|
14
14
|
static createMany(users: UserModel[]): Promise<import("../../../../database/api/.generated").Prisma.BatchPayload>;
|
15
15
|
static updateTags(user: string, tags: string[]): Promise<{
|
16
|
-
address: string;
|
17
16
|
tags: string[];
|
17
|
+
address: string;
|
18
18
|
}>;
|
19
19
|
}
|