@merkl/api 0.10.117 → 0.10.119

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.
Files changed (46) hide show
  1. package/dist/database/engine/.generated/index.d.ts +1423 -189
  2. package/dist/database/engine/.generated/package.json +1 -1
  3. package/dist/database/engine/.generated/schema.prisma +9 -3
  4. package/dist/src/eden/index.d.ts +100 -15
  5. package/dist/src/index.d.ts +40 -5
  6. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.d.ts +4 -4
  7. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AssetProcessor.d.ts +3 -3
  8. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AuraProcessor.d.ts +3 -3
  9. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerGaugeProcessor.d.ts +3 -3
  10. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BalancerPoolProcessor.d.ts +3 -3
  11. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/BeefyProcessor.d.ts +4 -4
  12. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/CompoundProcessor.d.ts +4 -4
  13. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EnzymeProcessor.d.ts +5 -5
  14. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerBorrowProcessor.d.ts +5 -4
  15. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/EulerLendProcessor.d.ts +4 -3
  16. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FluidProcessor.d.ts +4 -4
  17. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/FraxProcessor.d.ts +4 -4
  18. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GearboxProcessor.d.ts +4 -4
  19. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/GenericProcessor.d.ts +3 -1
  20. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/MetamorphoProcessor.d.ts +4 -4
  21. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/PendleProcessor.d.ts +12 -10
  22. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/RadiantProcessor.d.ts +4 -4
  23. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SpliceProcessor.d.ts +3 -3
  24. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/SturdySiloProcessor.d.ts +4 -4
  25. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TemplateProcessor.d.ts +3 -3
  26. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/TorosProcessor.d.ts +4 -3
  27. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/UniswapProcessor.d.ts +4 -4
  28. package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/curveProcessor.d.ts +4 -4
  29. package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +4 -5
  30. package/dist/src/modules/v4/merklRoot/merklRoot.service.d.ts +4 -5
  31. package/dist/src/modules/v4/router.d.ts +40 -5
  32. package/dist/src/modules/v4/user/user.controller.d.ts +36 -0
  33. package/dist/src/modules/v4/user/user.repository.d.ts +5 -0
  34. package/dist/src/modules/v4/user/user.service.d.ts +8 -2
  35. package/dist/src/routes/v3/ERC20Campaigns.d.ts +40 -5
  36. package/dist/src/routes/v3/blacklist.d.ts +40 -5
  37. package/dist/src/routes/v3/campaigns.d.ts +40 -5
  38. package/dist/src/routes/v3/campaignsInfo.d.ts +40 -5
  39. package/dist/src/routes/v3/multiChainPositions.d.ts +40 -5
  40. package/dist/src/routes/v3/opportunity.d.ts +40 -5
  41. package/dist/src/routes/v3/positions.d.ts +40 -5
  42. package/dist/src/routes/v3/rewards.d.ts +40 -5
  43. package/dist/src/routes/v3/updates.d.ts +40 -5
  44. package/dist/src/routes/v3/userRewards.d.ts +40 -5
  45. package/dist/tsconfig.package.tsbuildinfo +1 -1
  46. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import type { Campaign, CampaignParameters } from "@sdk";
3
3
  import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawMetamorpho;
7
7
  call: string;
8
8
  target: keyof callKeysMetamorpho;
9
- metaData?: any;
9
+ metaData?: keyof callKeysMetamorpho;
10
10
  };
11
- type callKeysMetamorpho = callKeys & {
11
+ type callKeysMetamorpho = mandatoryCallKeys & {
12
12
  underlying: string;
13
13
  symbolUnderlyingToken: string;
14
14
  };
@@ -25,7 +25,7 @@ export declare class MetamorphoProcessor extends GenericProcessor<callKeysMetamo
25
25
  round3: callType[];
26
26
  round4: callType[];
27
27
  };
28
- processingRound5(index: number, type: tokenType, typeInfo: dataRawMetamorpho, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeMetamorpho>;
28
+ processingRound5(_index: number, type: tokenType, typeInfo: dataRawMetamorpho, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeMetamorpho>;
29
29
  computeRound3(index: number, type: tokenType, typeInfo: dataRawMetamorpho, calls: string[]): tokenTypeStruct;
30
30
  }
31
31
  export {};
@@ -1,27 +1,29 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { tokenType } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
5
  type callType = {
6
- key: keyof dataRawTemplate;
6
+ key: keyof dataRawPendle;
7
7
  call: string;
8
- target: keyof callKeysTemplate;
9
- metaData?: any;
8
+ target: keyof callKeysPendle;
9
+ metaData?: keyof callKeysPendle;
10
10
  };
11
- type callKeysTemplate = callKeys & {
12
- readTokensRaw: string[];
11
+ type callKeysPendle = mandatoryCallKeys & {
13
12
  SYToken: string;
13
+ underlying: string;
14
14
  symbolUnderlyingToken: string;
15
15
  };
16
- type dataRawTemplate = callKeysTemplate & {};
17
- type dataTypeTemplate = dataType & {};
18
- export declare class PendleProcessor extends GenericProcessor<callKeysTemplate, dataRawTemplate, dataTypeTemplate> {
16
+ type dataRawPendle = callKeysPendle & {
17
+ readTokensRaw: string[];
18
+ };
19
+ type dataTypePendle = dataType & {};
20
+ export declare class PendleProcessor extends GenericProcessor<callKeysPendle, dataRawPendle, dataTypePendle> {
19
21
  rounds: {
20
22
  round1: callType[];
21
23
  round2: callType[];
22
24
  round3: callType[];
23
25
  round4: callType[];
24
26
  };
25
- processingRound5(index: number, type: tokenType, typeInfo: dataRawTemplate, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeTemplate>;
27
+ processingRound5(_index: number, type: tokenType, typeInfo: dataRawPendle, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypePendle>;
26
28
  }
27
29
  export {};
@@ -1,14 +1,14 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawRadiant;
7
7
  call: string;
8
8
  target: keyof callKeysRadiant;
9
- metaData?: any;
9
+ metaData?: keyof callKeysRadiant;
10
10
  };
11
- type callKeysRadiant = callKeys & {
11
+ type callKeysRadiant = mandatoryCallKeys & {
12
12
  underlyingToken: string;
13
13
  priceBN: string;
14
14
  symbolUnderlyingToken: string;
@@ -26,7 +26,7 @@ export declare class RadiantProcessor extends GenericProcessor<callKeysRadiant,
26
26
  round3: callType[];
27
27
  round4: callType[];
28
28
  };
29
- processingRound5(index: number, type: tokenType, typeInfo: dataRawRadiant, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeRadiant>;
29
+ processingRound5(_index: number, type: tokenType, typeInfo: dataRawRadiant, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeRadiant>;
30
30
  computeRound3(index: number, type: tokenType, typeInfo: dataRawRadiant, calls: string[]): tokenTypeStruct;
31
31
  }
32
32
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import type { Campaign, CampaignParameters } from "@sdk";
3
3
  import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
5
- type callKeysSplice = callKeys & {
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
+ type callKeysSplice = mandatoryCallKeys & {
6
6
  priceTargetToken: string;
7
7
  };
8
8
  type dataRawSplice = callKeysSplice & {};
@@ -10,7 +10,7 @@ type dataTypeSplice = dataType & {
10
10
  priceTargetToken: number;
11
11
  };
12
12
  export declare class SpliceProcessor extends GenericProcessor<callKeysSplice, dataRawSplice, dataTypeSplice> {
13
- processingRound5(index: number, type: tokenType, typeInfo: dataRawSplice, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeSplice>;
13
+ processingRound5(_index: number, _type: tokenType, typeInfo: dataRawSplice, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeSplice>;
14
14
  computeRound3(index: number, type: tokenType, typeInfo: dataRawSplice, calls: string[]): tokenTypeStruct;
15
15
  }
16
16
  export {};
@@ -1,14 +1,14 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { tokenType } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawSturdySilo;
7
7
  call: string;
8
8
  target: keyof callKeysSturdySilo;
9
- metaData?: any;
9
+ metaData?: keyof callKeysSturdySilo;
10
10
  };
11
- type callKeysSturdySilo = callKeys & {
11
+ type callKeysSturdySilo = mandatoryCallKeys & {
12
12
  underlying: string;
13
13
  sharePrice: string;
14
14
  collateralContract: string;
@@ -34,6 +34,6 @@ export declare class SturdySiloProcessor extends GenericProcessor<callKeysSturdy
34
34
  round3: callType[];
35
35
  round4: callType[];
36
36
  };
37
- processingRound5(index: number, type: tokenType, typeInfo: dataRawSturdySilo, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeSturdySilo>;
37
+ processingRound5(_index: number, type: tokenType, typeInfo: dataRawSturdySilo, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeSturdySilo>;
38
38
  }
39
39
  export {};
@@ -1,14 +1,14 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import type { Campaign, CampaignParameters } from "@sdk";
3
3
  import type { tokenType, tokenTypeStruct } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawTemplate;
7
7
  call: string;
8
8
  target: keyof callKeysTemplate;
9
- metaData?: any;
9
+ metaData?: keyof callKeysTemplate;
10
10
  };
11
- type callKeysTemplate = callKeys & {};
11
+ type callKeysTemplate = mandatoryCallKeys & {};
12
12
  type dataRawTemplate = callKeysTemplate & {};
13
13
  type dataTypeTemplate = dataType & {};
14
14
  export declare class TemplateProcessor extends GenericProcessor<callKeysTemplate, dataRawTemplate, dataTypeTemplate> {
@@ -1,15 +1,16 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { tokenType } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawToros;
7
7
  call: string;
8
8
  target: keyof callKeysToros;
9
9
  metaData?: any;
10
10
  };
11
- type callKeysToros = callKeys & {
11
+ type callKeysToros = mandatoryCallKeys & {
12
12
  tokenPrice: string;
13
+ name: string;
13
14
  };
14
15
  type dataRawToros = callKeysToros & {};
15
16
  type dataTypeToros = dataType & {
@@ -24,6 +25,6 @@ export declare class TorosProcessor extends GenericProcessor<callKeysToros, data
24
25
  round3: callType[];
25
26
  round4: callType[];
26
27
  };
27
- processingRound5(index: number, type: tokenType, typeInfo: dataRawToros, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeToros>;
28
+ processingRound5(_index: number, type: tokenType, typeInfo: dataRawToros, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, _pricer: Pricer): Promise<dataTypeToros>;
28
29
  }
29
30
  export {};
@@ -1,14 +1,14 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import type { tokenType } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawUni;
7
7
  call: string;
8
8
  target: keyof callKeysUni;
9
- metaData?: any;
9
+ metaData?: keyof callKeysUni;
10
10
  };
11
- type callKeysUni = callKeys & {
11
+ type callKeysUni = mandatoryCallKeys & {
12
12
  token0: string;
13
13
  token1: string;
14
14
  symbolToken0: string;
@@ -37,6 +37,6 @@ export declare class UniswapProcessor extends GenericProcessor<callKeysUni, data
37
37
  round3: callType[];
38
38
  round4: callType[];
39
39
  };
40
- processingRound5(index: number, type: tokenType, typeInfo: dataRawUni, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeUni>;
40
+ processingRound5(_index: number, type: tokenType, typeInfo: dataRawUni, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeUni>;
41
41
  }
42
42
  export {};
@@ -1,15 +1,15 @@
1
1
  import type { Pricer } from "../../../../../utils/pricer";
2
2
  import { type Campaign, type CampaignParameters } from "@sdk";
3
3
  import { tokenType } from "../helpers/tokenType";
4
- import { GenericProcessor, type callKeys, type dataType } from "./GenericProcessor";
4
+ import { GenericProcessor, type dataType, type mandatoryCallKeys } from "./GenericProcessor";
5
5
  type callType = {
6
6
  key: keyof dataRawCurve;
7
7
  call: string;
8
8
  target: keyof callKeysCurve;
9
- metaData?: any;
9
+ metaData?: keyof callKeysCurve;
10
10
  optional?: boolean;
11
11
  };
12
- type callKeysCurve = callKeys & {
12
+ type callKeysCurve = mandatoryCallKeys & {
13
13
  lp_price: string;
14
14
  token0: string;
15
15
  token1: string;
@@ -42,6 +42,6 @@ export declare class CurveProcessor extends GenericProcessor<callKeysCurve, data
42
42
  round3: callType[];
43
43
  round4: callType[];
44
44
  };
45
- processingRound5(index: number, type: tokenType, typeInfo: dataRawCurve, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeCurve>;
45
+ processingRound5(_index: number, type: tokenType, typeInfo: dataRawCurve, _calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<dataTypeCurve>;
46
46
  }
47
47
  export {};
@@ -43,11 +43,10 @@ export declare const MerklRootController: Elysia<"/roots", false, {
43
43
  headers: unknown;
44
44
  response: {
45
45
  200: {
46
- [chainId: number]: {
47
- live: string;
48
- lastTree: string;
49
- };
50
- };
46
+ live: string;
47
+ tree: string;
48
+ lastTree: string;
49
+ }[];
51
50
  };
52
51
  };
53
52
  };
@@ -26,9 +26,8 @@ export declare class MerklRootService {
26
26
  * @returns record of chains to object with live and last tree roots
27
27
  */
28
28
  static fetchAll(chainIds?: ChainId[]): Promise<{
29
- [chainId: number]: {
30
- live: string;
31
- lastTree: string;
32
- };
33
- }>;
29
+ live: string;
30
+ tree: string;
31
+ lastTree: string;
32
+ }[]>;
34
33
  }
@@ -1306,6 +1306,25 @@ export declare const v4: Elysia<"/v4", false, {
1306
1306
  };
1307
1307
  };
1308
1308
  };
1309
+ } & {
1310
+ users: {
1311
+ tags: {
1312
+ get: {
1313
+ body: unknown;
1314
+ params: Record<never, string>;
1315
+ query: unknown;
1316
+ headers: {
1317
+ authorization: string;
1318
+ };
1319
+ response: {
1320
+ 200: {
1321
+ tags: string[];
1322
+ address: string;
1323
+ }[];
1324
+ };
1325
+ };
1326
+ };
1327
+ };
1309
1328
  } & {
1310
1329
  users: {
1311
1330
  ":address": {
@@ -1316,6 +1335,7 @@ export declare const v4: Elysia<"/v4", false, {
1316
1335
  headers: unknown;
1317
1336
  response: {
1318
1337
  200: {
1338
+ tags: string[];
1319
1339
  address: string;
1320
1340
  } | null;
1321
1341
  };
@@ -1562,6 +1582,22 @@ export declare const v4: Elysia<"/v4", false, {
1562
1582
  };
1563
1583
  };
1564
1584
  };
1585
+ } & {
1586
+ users: {
1587
+ sync: {
1588
+ post: {
1589
+ body: unknown;
1590
+ params: Record<never, string>;
1591
+ query: unknown;
1592
+ headers: {
1593
+ authorization: string;
1594
+ };
1595
+ response: {
1596
+ 200: void;
1597
+ };
1598
+ };
1599
+ };
1600
+ };
1565
1601
  } & {
1566
1602
  users: {
1567
1603
  ":address": {
@@ -1622,11 +1658,10 @@ export declare const v4: Elysia<"/v4", false, {
1622
1658
  headers: unknown;
1623
1659
  response: {
1624
1660
  200: {
1625
- [chainId: number]: {
1626
- live: string;
1627
- lastTree: string;
1628
- };
1629
- };
1661
+ live: string;
1662
+ tree: string;
1663
+ lastTree: string;
1664
+ }[];
1630
1665
  };
1631
1666
  };
1632
1667
  };
@@ -33,6 +33,25 @@ export declare const UserController: Elysia<"/users", false, {
33
33
  };
34
34
  };
35
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: {
48
+ tags: string[];
49
+ address: string;
50
+ }[];
51
+ };
52
+ };
53
+ };
54
+ };
36
55
  } & {
37
56
  users: {
38
57
  ":address": {
@@ -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
  };
@@ -289,6 +309,22 @@ export declare const UserController: Elysia<"/users", false, {
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": {
@@ -1,12 +1,17 @@
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<{
7
8
  tags: string[];
8
9
  address: string;
9
10
  }[]>;
11
+ static findManyWithTags(): Promise<{
12
+ tags: string[];
13
+ address: string;
14
+ }[]>;
10
15
  static create(user: UserModel): Promise<{
11
16
  tags: string[];
12
17
  address: string;
@@ -1,9 +1,14 @@
1
1
  import type { GetManyUserModel, UserModel } from "./user.model";
2
2
  export declare abstract class UserService {
3
- static get(address: string): Promise<{
3
+ static findUnique(address: string): Promise<{
4
+ tags: string[];
4
5
  address: string;
5
6
  } | null>;
6
- static getMany(query: GetManyUserModel): Promise<{
7
+ static findMany(query: GetManyUserModel): Promise<{
8
+ tags: string[];
9
+ address: string;
10
+ }[]>;
11
+ static findManyWithTags(): Promise<{
7
12
  tags: string[];
8
13
  address: string;
9
14
  }[]>;
@@ -16,4 +21,5 @@ export declare abstract class UserService {
16
21
  tags: string[];
17
22
  address: string;
18
23
  }>;
24
+ static syncTags(): Promise<void>;
19
25
  }
@@ -1332,6 +1332,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1332
1332
  };
1333
1333
  };
1334
1334
  };
1335
+ } & {
1336
+ users: {
1337
+ tags: {
1338
+ get: {
1339
+ body: unknown;
1340
+ params: Record<never, string>;
1341
+ query: unknown;
1342
+ headers: {
1343
+ authorization: string;
1344
+ };
1345
+ response: {
1346
+ 200: {
1347
+ tags: string[];
1348
+ address: string;
1349
+ }[];
1350
+ };
1351
+ };
1352
+ };
1353
+ };
1335
1354
  } & {
1336
1355
  users: {
1337
1356
  ":address": {
@@ -1342,6 +1361,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1342
1361
  headers: unknown;
1343
1362
  response: {
1344
1363
  200: {
1364
+ tags: string[];
1345
1365
  address: string;
1346
1366
  } | null;
1347
1367
  };
@@ -1588,6 +1608,22 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1588
1608
  };
1589
1609
  };
1590
1610
  };
1611
+ } & {
1612
+ users: {
1613
+ sync: {
1614
+ post: {
1615
+ body: unknown;
1616
+ params: Record<never, string>;
1617
+ query: unknown;
1618
+ headers: {
1619
+ authorization: string;
1620
+ };
1621
+ response: {
1622
+ 200: void;
1623
+ };
1624
+ };
1625
+ };
1626
+ };
1591
1627
  } & {
1592
1628
  users: {
1593
1629
  ":address": {
@@ -1648,11 +1684,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1648
1684
  headers: unknown;
1649
1685
  response: {
1650
1686
  200: {
1651
- [chainId: number]: {
1652
- live: string;
1653
- lastTree: string;
1654
- };
1655
- };
1687
+ live: string;
1688
+ tree: string;
1689
+ lastTree: string;
1690
+ }[];
1656
1691
  };
1657
1692
  };
1658
1693
  };
@@ -1330,6 +1330,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1330
1330
  };
1331
1331
  };
1332
1332
  };
1333
+ } & {
1334
+ users: {
1335
+ tags: {
1336
+ get: {
1337
+ body: unknown;
1338
+ params: Record<never, string>;
1339
+ query: unknown;
1340
+ headers: {
1341
+ authorization: string;
1342
+ };
1343
+ response: {
1344
+ 200: {
1345
+ tags: string[];
1346
+ address: string;
1347
+ }[];
1348
+ };
1349
+ };
1350
+ };
1351
+ };
1333
1352
  } & {
1334
1353
  users: {
1335
1354
  ":address": {
@@ -1340,6 +1359,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1340
1359
  headers: unknown;
1341
1360
  response: {
1342
1361
  200: {
1362
+ tags: string[];
1343
1363
  address: string;
1344
1364
  } | null;
1345
1365
  };
@@ -1586,6 +1606,22 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1586
1606
  };
1587
1607
  };
1588
1608
  };
1609
+ } & {
1610
+ users: {
1611
+ sync: {
1612
+ post: {
1613
+ body: unknown;
1614
+ params: Record<never, string>;
1615
+ query: unknown;
1616
+ headers: {
1617
+ authorization: string;
1618
+ };
1619
+ response: {
1620
+ 200: void;
1621
+ };
1622
+ };
1623
+ };
1624
+ };
1589
1625
  } & {
1590
1626
  users: {
1591
1627
  ":address": {
@@ -1646,11 +1682,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1646
1682
  headers: unknown;
1647
1683
  response: {
1648
1684
  200: {
1649
- [chainId: number]: {
1650
- live: string;
1651
- lastTree: string;
1652
- };
1653
- };
1685
+ live: string;
1686
+ tree: string;
1687
+ lastTree: string;
1688
+ }[];
1654
1689
  };
1655
1690
  };
1656
1691
  };
@@ -1333,6 +1333,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1333
1333
  };
1334
1334
  };
1335
1335
  };
1336
+ } & {
1337
+ users: {
1338
+ tags: {
1339
+ get: {
1340
+ body: unknown;
1341
+ params: Record<never, string>;
1342
+ query: unknown;
1343
+ headers: {
1344
+ authorization: string;
1345
+ };
1346
+ response: {
1347
+ 200: {
1348
+ tags: string[];
1349
+ address: string;
1350
+ }[];
1351
+ };
1352
+ };
1353
+ };
1354
+ };
1336
1355
  } & {
1337
1356
  users: {
1338
1357
  ":address": {
@@ -1343,6 +1362,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1343
1362
  headers: unknown;
1344
1363
  response: {
1345
1364
  200: {
1365
+ tags: string[];
1346
1366
  address: string;
1347
1367
  } | null;
1348
1368
  };
@@ -1589,6 +1609,22 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1589
1609
  };
1590
1610
  };
1591
1611
  };
1612
+ } & {
1613
+ users: {
1614
+ sync: {
1615
+ post: {
1616
+ body: unknown;
1617
+ params: Record<never, string>;
1618
+ query: unknown;
1619
+ headers: {
1620
+ authorization: string;
1621
+ };
1622
+ response: {
1623
+ 200: void;
1624
+ };
1625
+ };
1626
+ };
1627
+ };
1592
1628
  } & {
1593
1629
  users: {
1594
1630
  ":address": {
@@ -1649,11 +1685,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1649
1685
  headers: unknown;
1650
1686
  response: {
1651
1687
  200: {
1652
- [chainId: number]: {
1653
- live: string;
1654
- lastTree: string;
1655
- };
1656
- };
1688
+ live: string;
1689
+ tree: string;
1690
+ lastTree: string;
1691
+ }[];
1657
1692
  };
1658
1693
  };
1659
1694
  };