@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.
Files changed (70) hide show
  1. package/dist/database/api/.generated/default.d.ts +1 -1
  2. package/dist/database/api/.generated/edge.d.ts +1 -1
  3. package/dist/database/api/.generated/index.d.ts +335 -311
  4. package/dist/database/api/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  5. package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  6. package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  7. package/dist/database/api/.generated/package.json +15 -2
  8. package/dist/database/api/.generated/runtime/library.d.ts +195 -79
  9. package/dist/database/api/.generated/schema.prisma +1 -1
  10. package/dist/database/api/.generated/wasm.d.ts +1 -1
  11. package/dist/database/engine/.generated/default.d.ts +1 -1
  12. package/dist/database/engine/.generated/edge.d.ts +1 -1
  13. package/dist/database/engine/.generated/index.d.ts +16 -104
  14. package/dist/database/engine/.generated/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  15. package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
  16. package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
  17. package/dist/database/engine/.generated/package.json +14 -1
  18. package/dist/database/engine/.generated/runtime/library.d.ts +195 -79
  19. package/dist/database/engine/.generated/wasm.d.ts +1 -1
  20. package/dist/src/eden/index.d.ts +470 -414
  21. package/dist/src/index.d.ts +160 -138
  22. package/dist/src/modules/v4/accounting/accounting.controller.d.ts +1 -1
  23. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +8 -8
  24. package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
  25. package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +2 -2
  26. package/dist/src/modules/v4/blacklist/blacklist.repository.d.ts +2 -2
  27. package/dist/src/modules/v4/blacklist/blacklist.service.d.ts +2 -2
  28. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +14 -14
  29. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +27 -27
  30. package/dist/src/modules/v4/campaign/campaign.service.d.ts +28 -28
  31. package/dist/src/modules/v4/chain/chain.controller.d.ts +5 -5
  32. package/dist/src/modules/v4/chain/chain.repository.d.ts +6 -6
  33. package/dist/src/modules/v4/chain/chain.service.d.ts +5 -5
  34. package/dist/src/modules/v4/explorer/explorer.repository.d.ts +2 -2
  35. package/dist/src/modules/v4/explorer/explorer.service.d.ts +2 -2
  36. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +22 -3
  37. package/dist/src/modules/v4/merklRoot/merklRoot.repository.d.ts +4 -4
  38. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -4
  39. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +36 -36
  40. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +94 -94
  41. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +57 -57
  42. package/dist/src/modules/v4/price/price.controller.d.ts +8 -8
  43. package/dist/src/modules/v4/price/price.repository.d.ts +10 -10
  44. package/dist/src/modules/v4/price/price.service.d.ts +8 -8
  45. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +12 -12
  46. package/dist/src/modules/v4/reward/reward.controller.d.ts +11 -8
  47. package/dist/src/modules/v4/reward/reward.model.d.ts +9 -9
  48. package/dist/src/modules/v4/reward/reward.repository.d.ts +42 -39
  49. package/dist/src/modules/v4/reward/reward.service.d.ts +133 -130
  50. package/dist/src/modules/v4/router.d.ts +160 -138
  51. package/dist/src/modules/v4/status/status.controller.d.ts +17 -17
  52. package/dist/src/modules/v4/status/status.repository.d.ts +32 -32
  53. package/dist/src/modules/v4/status/status.service.d.ts +20 -20
  54. package/dist/src/modules/v4/user/user.controller.d.ts +44 -44
  55. package/dist/src/modules/v4/user/user.repository.d.ts +3 -3
  56. package/dist/src/modules/v4/user/user.service.d.ts +3 -3
  57. package/dist/src/routes/v3/ERC20Campaigns.d.ts +160 -138
  58. package/dist/src/routes/v3/blacklist.d.ts +160 -138
  59. package/dist/src/routes/v3/campaigns.d.ts +160 -138
  60. package/dist/src/routes/v3/campaignsInfo.d.ts +160 -138
  61. package/dist/src/routes/v3/multiChainPositions.d.ts +160 -138
  62. package/dist/src/routes/v3/opportunity.d.ts +160 -138
  63. package/dist/src/routes/v3/positions.d.ts +160 -138
  64. package/dist/src/routes/v3/rewards.d.ts +160 -138
  65. package/dist/src/routes/v3/rootForTimestamp.d.ts +2 -2
  66. package/dist/src/routes/v3/updates.d.ts +160 -138
  67. package/dist/src/routes/v3/userRewards.d.ts +160 -138
  68. package/dist/tsconfig.package.tsbuildinfo +1 -1
  69. package/package.json +3 -3
  70. package/dist/src/libs/campaigns/getRewards.d.ts +0 -29
@@ -26,6 +26,7 @@ export declare const AccountingController: Elysia<"/accounting", false, {
26
26
  response: {
27
27
  200: {
28
28
  id: string;
29
+ timestamp: number;
29
30
  chainId: number;
30
31
  fromTokenId: string;
31
32
  toTokenId: string;
@@ -34,7 +35,6 @@ export declare const AccountingController: Elysia<"/accounting", false, {
34
35
  amountIn: string;
35
36
  amountOut: string;
36
37
  datetime: Date;
37
- timestamp: number;
38
38
  }[];
39
39
  };
40
40
  };
@@ -2,6 +2,7 @@ import type { GetTransactionsQueryModel } from "./";
2
2
  export declare class AccountingRepository {
3
3
  static findMany(query: GetTransactionsQueryModel): Promise<{
4
4
  id: string;
5
+ timestamp: number;
5
6
  chainId: number;
6
7
  fromTokenId: string;
7
8
  toTokenId: string;
@@ -10,10 +11,10 @@ export declare class AccountingRepository {
10
11
  amountIn: string;
11
12
  amountOut: string;
12
13
  datetime: Date;
13
- timestamp: number;
14
14
  }[]>;
15
15
  static getByTokenForDumper(fromTokenId: string): Promise<{
16
16
  id: string;
17
+ timestamp: number;
17
18
  chainId: number;
18
19
  fromTokenId: string;
19
20
  toTokenId: string;
@@ -22,10 +23,10 @@ export declare class AccountingRepository {
22
23
  amountIn: string;
23
24
  amountOut: string;
24
25
  datetime: Date;
25
- timestamp: number;
26
26
  }[]>;
27
27
  static getForMonthForRecipient(recipient: string, toTokenId: string, month: number, year: number): Promise<{
28
28
  id: string;
29
+ timestamp: number;
29
30
  chainId: number;
30
31
  fromTokenId: string;
31
32
  toTokenId: string;
@@ -34,10 +35,10 @@ export declare class AccountingRepository {
34
35
  amountIn: string;
35
36
  amountOut: string;
36
37
  datetime: Date;
37
- timestamp: number;
38
38
  }[]>;
39
39
  static getForMultisigBetweenDates(startDate: Date, endDate: Date): Promise<{
40
40
  id: string;
41
+ timestamp: number;
41
42
  chainId: number;
42
43
  fromTokenId: string;
43
44
  toTokenId: string;
@@ -46,10 +47,10 @@ export declare class AccountingRepository {
46
47
  amountIn: string;
47
48
  amountOut: string;
48
49
  datetime: Date;
49
- timestamp: number;
50
50
  }[]>;
51
51
  static getForMultisig(): Promise<{
52
52
  id: string;
53
+ timestamp: number;
53
54
  chainId: number;
54
55
  fromTokenId: string;
55
56
  toTokenId: string;
@@ -58,10 +59,10 @@ export declare class AccountingRepository {
58
59
  amountIn: string;
59
60
  amountOut: string;
60
61
  datetime: Date;
61
- timestamp: number;
62
62
  }[]>;
63
63
  static getForMultisigByChain(chainId: number): Promise<{
64
64
  id: string;
65
+ timestamp: number;
65
66
  chainId: number;
66
67
  fromTokenId: string;
67
68
  toTokenId: string;
@@ -70,10 +71,10 @@ export declare class AccountingRepository {
70
71
  amountIn: string;
71
72
  amountOut: string;
72
73
  datetime: Date;
73
- timestamp: number;
74
74
  }[]>;
75
75
  static getForMultisigByChainBetweenDates(chainId: number, startDate: Date, endDate: Date): Promise<{
76
76
  id: string;
77
+ timestamp: number;
77
78
  chainId: number;
78
79
  fromTokenId: string;
79
80
  toTokenId: string;
@@ -82,10 +83,10 @@ export declare class AccountingRepository {
82
83
  amountIn: string;
83
84
  amountOut: string;
84
85
  datetime: Date;
85
- timestamp: number;
86
86
  }[]>;
87
87
  static getForDumperBetweenDates(fromTokenId: string, startDate: Date, endDate: Date): Promise<{
88
88
  id: string;
89
+ timestamp: number;
89
90
  chainId: number;
90
91
  fromTokenId: string;
91
92
  toTokenId: string;
@@ -94,6 +95,5 @@ export declare class AccountingRepository {
94
95
  amountIn: string;
95
96
  amountOut: string;
96
97
  datetime: Date;
97
- timestamp: number;
98
98
  }[]>;
99
99
  }
@@ -5,6 +5,7 @@ export declare class AccountingService {
5
5
  static getTokenId(chainId: number, address: string): string;
6
6
  static getMany(query: GetTransactionsQueryModel): Promise<{
7
7
  id: string;
8
+ timestamp: number;
8
9
  chainId: number;
9
10
  fromTokenId: string;
10
11
  toTokenId: string;
@@ -13,7 +14,6 @@ export declare class AccountingService {
13
14
  amountIn: string;
14
15
  amountOut: string;
15
16
  datetime: Date;
16
- timestamp: number;
17
17
  }[]>;
18
18
  static getRevenue(): Promise<{
19
19
  totalAmount: number;
@@ -25,7 +25,7 @@ export declare const BlacklistController: Elysia<"/blacklists", false, {
25
25
  poolAddress: string;
26
26
  userAddress: string;
27
27
  arrestTimestamp: bigint;
28
- arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
28
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
29
29
  }[];
30
30
  };
31
31
  };
@@ -87,7 +87,7 @@ export declare const BlacklistController: Elysia<"/blacklists", false, {
87
87
  poolAddress: string;
88
88
  userAddress: string;
89
89
  arrestTimestamp: bigint;
90
- arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
90
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
91
91
  };
92
92
  };
93
93
  };
@@ -6,7 +6,7 @@ export declare class BlacklistRepository {
6
6
  poolAddress: string;
7
7
  userAddress: string;
8
8
  arrestTimestamp: bigint;
9
- arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
9
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
10
10
  }[]>;
11
11
  static getMany(): Promise<{
12
12
  [address: string]: boolean;
@@ -19,6 +19,6 @@ export declare class BlacklistRepository {
19
19
  poolAddress: string;
20
20
  userAddress: string;
21
21
  arrestTimestamp: bigint;
22
- arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
22
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
23
23
  }>;
24
24
  }
@@ -11,7 +11,7 @@ export declare class BlacklistService {
11
11
  poolAddress: string;
12
12
  userAddress: string;
13
13
  arrestTimestamp: bigint;
14
- arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
14
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
15
15
  }[]>;
16
16
  static isBlacklisted(address: string): Promise<boolean>;
17
17
  static remove(address: string): Promise<boolean>;
@@ -21,6 +21,6 @@ export declare class BlacklistService {
21
21
  poolAddress: string;
22
22
  userAddress: string;
23
23
  arrestTimestamp: bigint;
24
- arrestDetails: import("../../../../database/api/.generated").Prisma.JsonValue;
24
+ arrestDetails: import("database/api/.generated/runtime/library").JsonValue;
25
25
  }>;
26
26
  }
@@ -36,18 +36,18 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
36
36
  };
37
37
  response: {
38
38
  200: {
39
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
39
40
  id: string;
41
+ params: import("database/api/.generated/runtime/library").JsonValue;
42
+ subType: number | null;
43
+ startTimestamp: bigint;
44
+ endTimestamp: bigint;
40
45
  computeChainId: number;
41
46
  distributionChainId: number;
42
47
  campaignId: string;
43
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
44
- subType: number | null;
45
48
  rewardTokenId: string;
46
49
  amount: string;
47
50
  opportunityId: string;
48
- startTimestamp: bigint;
49
- endTimestamp: bigint;
50
- params: import("../../../../database/api/.generated").Prisma.JsonValue;
51
51
  creatorAddress: string;
52
52
  } | undefined;
53
53
  };
@@ -77,37 +77,37 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
77
77
  200: ({
78
78
  params: any;
79
79
  chain: {
80
- id: number;
81
80
  name: string;
81
+ id: number;
82
82
  icon: string;
83
83
  };
84
84
  rewardToken: {
85
- id: string;
85
+ symbol: string;
86
86
  name: string | null;
87
+ id: string;
87
88
  chainId: number;
88
89
  address: string;
89
- decimals: number;
90
- symbol: string;
91
90
  icon: string;
91
+ decimals: number;
92
92
  verified: boolean;
93
93
  price: number | null;
94
94
  };
95
95
  distributionChain: {
96
- id: number;
97
96
  name: string;
97
+ id: number;
98
98
  icon: string;
99
99
  } | undefined;
100
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
100
101
  id: string;
102
+ subType: number | null;
103
+ startTimestamp: bigint;
104
+ endTimestamp: bigint;
101
105
  computeChainId: number;
102
106
  distributionChainId: number;
103
107
  campaignId: string;
104
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
105
- subType: number | null;
106
108
  rewardTokenId: string;
107
109
  amount: string;
108
110
  opportunityId: string;
109
- startTimestamp: bigint;
110
- endTimestamp: bigint;
111
111
  creatorAddress: string;
112
112
  } | null)[];
113
113
  };
@@ -5,18 +5,18 @@ import { type OpportunityMetadata } from "../opportunity";
5
5
  export declare abstract class CampaignRepository {
6
6
  #private;
7
7
  static upsert(campaign: CreateCampaignModel, metadata: OpportunityMetadata): Promise<{
8
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
8
9
  id: string;
10
+ params: Prisma.JsonValue;
11
+ subType: number | null;
12
+ startTimestamp: bigint;
13
+ endTimestamp: bigint;
9
14
  computeChainId: number;
10
15
  distributionChainId: number;
11
16
  campaignId: string;
12
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
13
- subType: number | null;
14
17
  rewardTokenId: string;
15
18
  amount: string;
16
19
  opportunityId: string;
17
- startTimestamp: bigint;
18
- endTimestamp: bigint;
19
- params: Prisma.JsonValue;
20
20
  creatorAddress: string;
21
21
  } | undefined>;
22
22
  static upsertMany(campaigns: CreateCampaignModel[], campaignToOpp: Record<string, OpportunityMetadata>): Promise<{
@@ -31,34 +31,34 @@ export declare abstract class CampaignRepository {
31
31
  */
32
32
  static getFromEngineDb(chainId: number, timestamp: number): Promise<CampaignParameters<CampaignV3>[]>;
33
33
  static getFromEngineDbWithId(campaignIds: CampaignUnique[]): Promise<{
34
+ index: number;
34
35
  chainId: number;
36
+ startTimestamp: number;
37
+ endTimestamp: number;
38
+ mainParameter: string;
35
39
  computeChainId: number;
36
- index: number;
37
40
  campaignId: string;
41
+ amount: string;
42
+ rewardToken: string;
38
43
  creator: string;
39
44
  campaignType: number;
40
45
  campaignSubType: number;
41
- rewardToken: string;
42
- amount: string;
43
- startTimestamp: number;
44
- endTimestamp: number;
45
- mainParameter: string;
46
- campaignParameters: import("../../../../database/engine/.generated").Prisma.JsonValue;
46
+ campaignParameters: import("database/engine/.generated/runtime/library").JsonValue;
47
47
  }[]>;
48
48
  static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
49
49
  static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
50
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
50
51
  id: string;
52
+ params: Prisma.JsonValue;
53
+ subType: number | null;
54
+ startTimestamp: bigint;
55
+ endTimestamp: bigint;
51
56
  computeChainId: number;
52
57
  distributionChainId: number;
53
58
  campaignId: string;
54
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
55
- subType: number | null;
56
59
  rewardTokenId: string;
57
60
  amount: string;
58
61
  opportunityId: string;
59
- startTimestamp: bigint;
60
- endTimestamp: bigint;
61
- params: Prisma.JsonValue;
62
62
  creatorAddress: string;
63
63
  }>;
64
64
  static findCampaignsToProcess(distributionChainId: ChainId): Promise<{
@@ -70,39 +70,39 @@ export declare abstract class CampaignRepository {
70
70
  }[]>;
71
71
  static findMany(query: GetCampaignQueryModel): Promise<({
72
72
  ComputeChain: {
73
- id: number;
74
73
  name: string;
74
+ id: number;
75
75
  icon: string;
76
76
  };
77
77
  DistributionChain: {
78
- id: number;
79
78
  name: string;
79
+ id: number;
80
80
  icon: string;
81
81
  };
82
82
  RewardToken: {
83
- id: string;
83
+ symbol: string;
84
84
  name: string | null;
85
+ id: string;
85
86
  chainId: number;
86
87
  address: string;
87
- decimals: number;
88
- symbol: string;
89
88
  icon: string;
89
+ decimals: number;
90
90
  verified: boolean;
91
91
  price: number | null;
92
92
  };
93
93
  } & {
94
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
94
95
  id: string;
96
+ params: Prisma.JsonValue;
97
+ subType: number | null;
98
+ startTimestamp: bigint;
99
+ endTimestamp: bigint;
95
100
  computeChainId: number;
96
101
  distributionChainId: number;
97
102
  campaignId: string;
98
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
99
- subType: number | null;
100
103
  rewardTokenId: string;
101
104
  amount: string;
102
105
  opportunityId: string;
103
- startTimestamp: bigint;
104
- endTimestamp: bigint;
105
- params: Prisma.JsonValue;
106
106
  creatorAddress: string;
107
107
  })[]>;
108
108
  static countMany(query: GetCampaignQueryModel): Promise<number>;
@@ -5,18 +5,18 @@ import { type CampaignParameters, type Campaign as CampaignTypeV3, type ChainId
5
5
  export declare abstract class CampaignService {
6
6
  static hashId(campaign: CampaignUnique): string;
7
7
  static create(campaign: Omit<CreateCampaignModel, "id">): Promise<{
8
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
8
9
  id: string;
10
+ params: import("database/api/.generated/runtime/library").JsonValue;
11
+ subType: number | null;
12
+ startTimestamp: bigint;
13
+ endTimestamp: bigint;
9
14
  computeChainId: number;
10
15
  distributionChainId: number;
11
16
  campaignId: string;
12
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
13
- subType: number | null;
14
17
  rewardTokenId: string;
15
18
  amount: string;
16
19
  opportunityId: string;
17
- startTimestamp: bigint;
18
- endTimestamp: bigint;
19
- params: import("../../../../database/api/.generated").Prisma.JsonValue;
20
20
  creatorAddress: string;
21
21
  } | undefined>;
22
22
  static createMany(campaigns: Omit<CreateCampaignModel, "id">[]): Promise<{
@@ -31,37 +31,37 @@ export declare abstract class CampaignService {
31
31
  static findMany(query: GetCampaignQueryModel): Promise<({
32
32
  params: any;
33
33
  chain: {
34
- id: number;
35
34
  name: string;
35
+ id: number;
36
36
  icon: string;
37
37
  };
38
38
  rewardToken: {
39
- id: string;
39
+ symbol: string;
40
40
  name: string | null;
41
+ id: string;
41
42
  chainId: number;
42
43
  address: string;
43
- decimals: number;
44
- symbol: string;
45
44
  icon: string;
45
+ decimals: number;
46
46
  verified: boolean;
47
47
  price: number | null;
48
48
  };
49
49
  distributionChain: {
50
- id: number;
51
50
  name: string;
51
+ id: number;
52
52
  icon: string;
53
53
  } | undefined;
54
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
54
55
  id: string;
56
+ subType: number | null;
57
+ startTimestamp: bigint;
58
+ endTimestamp: bigint;
55
59
  computeChainId: number;
56
60
  distributionChainId: number;
57
61
  campaignId: string;
58
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
59
- subType: number | null;
60
62
  rewardTokenId: string;
61
63
  amount: string;
62
64
  opportunityId: string;
63
- startTimestamp: bigint;
64
- endTimestamp: bigint;
65
65
  creatorAddress: string;
66
66
  } | null)[]>;
67
67
  /**
@@ -73,18 +73,18 @@ export declare abstract class CampaignService {
73
73
  static countMany(query: GetCampaignQueryModel): Promise<number>;
74
74
  static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
75
75
  static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
76
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
76
77
  id: string;
78
+ params: import("database/api/.generated/runtime/library").JsonValue;
79
+ subType: number | null;
80
+ startTimestamp: bigint;
81
+ endTimestamp: bigint;
77
82
  computeChainId: number;
78
83
  distributionChainId: number;
79
84
  campaignId: string;
80
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
81
- subType: number | null;
82
85
  rewardTokenId: string;
83
86
  amount: string;
84
87
  opportunityId: string;
85
- startTimestamp: bigint;
86
- endTimestamp: bigint;
87
- params: import("../../../../database/api/.generated").Prisma.JsonValue;
88
88
  creatorAddress: string;
89
89
  }>;
90
90
  static findCampaignsToProcess(distributionChainId: ChainId): Promise<{
@@ -140,37 +140,37 @@ export declare abstract class CampaignService {
140
140
  static format(campaign: NonNullable<Awaited<ReturnType<typeof CampaignRepository.findMany>>>[number] | null): {
141
141
  params: any;
142
142
  chain: {
143
- id: number;
144
143
  name: string;
144
+ id: number;
145
145
  icon: string;
146
146
  };
147
147
  rewardToken: {
148
- id: string;
148
+ symbol: string;
149
149
  name: string | null;
150
+ id: string;
150
151
  chainId: number;
151
152
  address: string;
152
- decimals: number;
153
- symbol: string;
154
153
  icon: string;
154
+ decimals: number;
155
155
  verified: boolean;
156
156
  price: number | null;
157
157
  };
158
158
  distributionChain: {
159
- id: number;
160
159
  name: string;
160
+ id: number;
161
161
  icon: string;
162
162
  } | undefined;
163
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
163
164
  id: string;
165
+ subType: number | null;
166
+ startTimestamp: bigint;
167
+ endTimestamp: bigint;
164
168
  computeChainId: number;
165
169
  distributionChainId: number;
166
170
  campaignId: string;
167
- type: import("../../../../database/api/.generated").$Enums.CampaignType;
168
- subType: number | null;
169
171
  rewardTokenId: string;
170
172
  amount: string;
171
173
  opportunityId: string;
172
- startTimestamp: bigint;
173
- endTimestamp: bigint;
174
174
  creatorAddress: string;
175
175
  } | null;
176
176
  /**
@@ -22,13 +22,13 @@ export declare const ChainController: Elysia<"/chains", false, {
22
22
  headers: unknown;
23
23
  response: {
24
24
  200: {
25
- id: number;
26
25
  name: string;
26
+ id: number;
27
27
  icon: string;
28
28
  explorers: {
29
- id: string;
30
29
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
31
30
  url: string;
31
+ id: string;
32
32
  chainId: number;
33
33
  }[];
34
34
  } | null;
@@ -46,13 +46,13 @@ export declare const ChainController: Elysia<"/chains", false, {
46
46
  headers: unknown;
47
47
  response: {
48
48
  200: {
49
- id: number;
50
49
  name: string;
50
+ id: number;
51
51
  icon: string;
52
52
  explorers: {
53
- id: string;
54
53
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
55
54
  url: string;
55
+ id: string;
56
56
  chainId: number;
57
57
  }[];
58
58
  }[];
@@ -88,9 +88,9 @@ export declare const ChainController: Elysia<"/chains", false, {
88
88
  };
89
89
  response: {
90
90
  200: {
91
- id: string;
92
91
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
93
92
  url: string;
93
+ id: string;
94
94
  chainId: number;
95
95
  };
96
96
  };
@@ -8,14 +8,14 @@ export declare abstract class ChainRepository {
8
8
  */
9
9
  static read(id: number): Promise<({
10
10
  Explorer: {
11
- id: string;
12
11
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
13
12
  url: string;
13
+ id: string;
14
14
  chainId: number;
15
15
  }[];
16
16
  } & {
17
- id: number;
18
17
  name: string;
18
+ id: number;
19
19
  icon: string;
20
20
  }) | null>;
21
21
  /** Returns many chains based on query
@@ -24,14 +24,14 @@ export declare abstract class ChainRepository {
24
24
  */
25
25
  static readMany(query: ChainSearchDto): Promise<({
26
26
  Explorer: {
27
- id: string;
28
27
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
29
28
  url: string;
29
+ id: string;
30
30
  chainId: number;
31
31
  }[];
32
32
  } & {
33
- id: number;
34
33
  name: string;
34
+ id: number;
35
35
  icon: string;
36
36
  })[]>;
37
37
  static countMany(query: ChainSearchDto): Promise<number>;
@@ -46,13 +46,13 @@ export declare abstract class ChainRepository {
46
46
  * @returns
47
47
  */
48
48
  static create(template: Chain["action"]["create"]["args"]): Promise<{
49
- id: number;
50
49
  name: string;
50
+ id: number;
51
51
  icon: string;
52
52
  }>;
53
53
  static findMany(): Promise<{
54
- id: number;
55
54
  name: string;
55
+ id: number;
56
56
  icon: string;
57
57
  }[]>;
58
58
  /**
@@ -2,31 +2,31 @@ import type { ChainSearchDto } from "./chain.model";
2
2
  export declare abstract class ChainService {
3
3
  static get(chainId: number): Promise<({
4
4
  Explorer: {
5
- id: string;
6
5
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
7
6
  url: string;
7
+ id: string;
8
8
  chainId: number;
9
9
  }[];
10
10
  } & {
11
- id: number;
12
11
  name: string;
12
+ id: number;
13
13
  icon: string;
14
14
  }) | null>;
15
15
  static findMany(): Promise<{
16
- id: number;
17
16
  name: string;
17
+ id: number;
18
18
  icon: string;
19
19
  }[]>;
20
20
  static getMany(query: ChainSearchDto): Promise<({
21
21
  Explorer: {
22
- id: string;
23
22
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
24
23
  url: string;
24
+ id: string;
25
25
  chainId: number;
26
26
  }[];
27
27
  } & {
28
- id: number;
29
28
  name: string;
29
+ id: number;
30
30
  icon: string;
31
31
  })[]>;
32
32
  static countMany(query: ChainSearchDto): Promise<number>;
@@ -1,9 +1,9 @@
1
1
  import type { ExplorerType } from "../../../../database/api/.generated";
2
2
  export declare abstract class ExplorerRepository {
3
3
  static getByChainId(chainId: number): Promise<{
4
- id: string;
5
4
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
6
5
  url: string;
6
+ id: string;
7
7
  chainId: number;
8
8
  }>;
9
9
  /**
@@ -13,9 +13,9 @@ export declare abstract class ExplorerRepository {
13
13
  * @param url base url without / suffix
14
14
  */
15
15
  static create(chainId: number, type: ExplorerType, url: string): Promise<{
16
- id: string;
17
16
  type: import("../../../../database/api/.generated").$Enums.ExplorerType;
18
17
  url: string;
18
+ id: string;
19
19
  chainId: number;
20
20
  }>;
21
21
  }