@merkl/api 0.20.1 → 0.20.3

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.
@@ -154,6 +154,7 @@ declare const eden: {
154
154
  icon: string;
155
155
  } | null | undefined;
156
156
  depositUrl?: string | undefined;
157
+ explorerAddress?: string | undefined;
157
158
  aprRecord?: {
158
159
  timestamp: string | bigint;
159
160
  cumulated: number;
@@ -258,6 +259,7 @@ declare const eden: {
258
259
  icon: string;
259
260
  } | null | undefined;
260
261
  depositUrl?: string | undefined;
262
+ explorerAddress?: string | undefined;
261
263
  aprRecord?: {
262
264
  timestamp: string | bigint;
263
265
  cumulated: number;
@@ -618,6 +620,7 @@ declare const eden: {
618
620
  }[] | undefined;
619
621
  id: string;
620
622
  depositUrl: string | undefined;
623
+ explorerAddress: string | undefined;
621
624
  tokens: ({
622
625
  symbol: string;
623
626
  id: string;
@@ -653,7 +656,6 @@ declare const eden: {
653
656
  identifier: string;
654
657
  action: import("@db/api").$Enums.OpportunityAction;
655
658
  chainId: number;
656
- explorerAddress: string | null;
657
659
  tvl: number;
658
660
  dailyRewards: number;
659
661
  }[];
@@ -728,6 +730,7 @@ declare const eden: {
728
730
  icon: string;
729
731
  } | null | undefined;
730
732
  depositUrl?: string | undefined;
733
+ explorerAddress?: string | undefined;
731
734
  aprRecord?: {
732
735
  timestamp: string | bigint;
733
736
  cumulated: number;
@@ -3907,6 +3910,7 @@ declare const eden: {
3907
3910
  icon: string;
3908
3911
  } | null | undefined;
3909
3912
  depositUrl?: string | undefined;
3913
+ explorerAddress?: string | undefined;
3910
3914
  aprRecord?: {
3911
3915
  timestamp: string | bigint;
3912
3916
  cumulated: number;
@@ -4011,6 +4015,7 @@ declare const eden: {
4011
4015
  icon: string;
4012
4016
  } | null | undefined;
4013
4017
  depositUrl?: string | undefined;
4018
+ explorerAddress?: string | undefined;
4014
4019
  aprRecord?: {
4015
4020
  timestamp: string | bigint;
4016
4021
  cumulated: number;
@@ -4371,6 +4376,7 @@ declare const eden: {
4371
4376
  }[] | undefined;
4372
4377
  id: string;
4373
4378
  depositUrl: string | undefined;
4379
+ explorerAddress: string | undefined;
4374
4380
  tokens: ({
4375
4381
  symbol: string;
4376
4382
  id: string;
@@ -4406,7 +4412,6 @@ declare const eden: {
4406
4412
  identifier: string;
4407
4413
  action: import("@db/api").$Enums.OpportunityAction;
4408
4414
  chainId: number;
4409
- explorerAddress: string | null;
4410
4415
  tvl: number;
4411
4416
  dailyRewards: number;
4412
4417
  }[];
@@ -4481,6 +4486,7 @@ declare const eden: {
4481
4486
  icon: string;
4482
4487
  } | null | undefined;
4483
4488
  depositUrl?: string | undefined;
4489
+ explorerAddress?: string | undefined;
4484
4490
  aprRecord?: {
4485
4491
  timestamp: string | bigint;
4486
4492
  cumulated: number;
@@ -8575,6 +8581,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8575
8581
  }[] | undefined;
8576
8582
  id: string;
8577
8583
  depositUrl: string | undefined;
8584
+ explorerAddress: string | undefined;
8578
8585
  tokens: ({
8579
8586
  symbol: string;
8580
8587
  id: string;
@@ -8610,7 +8617,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8610
8617
  identifier: string;
8611
8618
  action: import("@db/api").$Enums.OpportunityAction;
8612
8619
  chainId: number;
8613
- explorerAddress: string | null;
8614
8620
  tvl: number;
8615
8621
  dailyRewards: number;
8616
8622
  }[];
@@ -8677,6 +8683,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8677
8683
  icon: string;
8678
8684
  } | null | undefined;
8679
8685
  depositUrl?: string | undefined;
8686
+ explorerAddress?: string | undefined;
8680
8687
  aprRecord?: {
8681
8688
  timestamp: string | bigint;
8682
8689
  cumulated: number;
@@ -8807,6 +8814,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8807
8814
  icon: string;
8808
8815
  } | null | undefined;
8809
8816
  depositUrl?: string | undefined;
8817
+ explorerAddress?: string | undefined;
8810
8818
  aprRecord?: {
8811
8819
  timestamp: string | bigint;
8812
8820
  cumulated: number;
@@ -8971,6 +8979,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
8971
8979
  icon: string;
8972
8980
  } | null | undefined;
8973
8981
  depositUrl?: string | undefined;
8982
+ explorerAddress?: string | undefined;
8974
8983
  aprRecord?: {
8975
8984
  timestamp: string | bigint;
8976
8985
  cumulated: number;
@@ -13866,6 +13875,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13866
13875
  icon: string;
13867
13876
  } | null | undefined;
13868
13877
  depositUrl?: string | undefined;
13878
+ explorerAddress?: string | undefined;
13869
13879
  aprRecord?: {
13870
13880
  timestamp: string | bigint;
13871
13881
  cumulated: number;
@@ -13970,6 +13980,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13970
13980
  icon: string;
13971
13981
  } | null | undefined;
13972
13982
  depositUrl?: string | undefined;
13983
+ explorerAddress?: string | undefined;
13973
13984
  aprRecord?: {
13974
13985
  timestamp: string | bigint;
13975
13986
  cumulated: number;
@@ -14330,6 +14341,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14330
14341
  }[] | undefined;
14331
14342
  id: string;
14332
14343
  depositUrl: string | undefined;
14344
+ explorerAddress: string | undefined;
14333
14345
  tokens: ({
14334
14346
  symbol: string;
14335
14347
  id: string;
@@ -14365,7 +14377,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14365
14377
  identifier: string;
14366
14378
  action: import("@db/api").$Enums.OpportunityAction;
14367
14379
  chainId: number;
14368
- explorerAddress: string | null;
14369
14380
  tvl: number;
14370
14381
  dailyRewards: number;
14371
14382
  }[];
@@ -14440,6 +14451,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14440
14451
  icon: string;
14441
14452
  } | null | undefined;
14442
14453
  depositUrl?: string | undefined;
14454
+ explorerAddress?: string | undefined;
14443
14455
  aprRecord?: {
14444
14456
  timestamp: string | bigint;
14445
14457
  cumulated: number;
@@ -17619,6 +17631,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17619
17631
  icon: string;
17620
17632
  } | null | undefined;
17621
17633
  depositUrl?: string | undefined;
17634
+ explorerAddress?: string | undefined;
17622
17635
  aprRecord?: {
17623
17636
  timestamp: string | bigint;
17624
17637
  cumulated: number;
@@ -17723,6 +17736,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
17723
17736
  icon: string;
17724
17737
  } | null | undefined;
17725
17738
  depositUrl?: string | undefined;
17739
+ explorerAddress?: string | undefined;
17726
17740
  aprRecord?: {
17727
17741
  timestamp: string | bigint;
17728
17742
  cumulated: number;
@@ -18083,6 +18097,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18083
18097
  }[] | undefined;
18084
18098
  id: string;
18085
18099
  depositUrl: string | undefined;
18100
+ explorerAddress: string | undefined;
18086
18101
  tokens: ({
18087
18102
  symbol: string;
18088
18103
  id: string;
@@ -18118,7 +18133,6 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18118
18133
  identifier: string;
18119
18134
  action: import("@db/api").$Enums.OpportunityAction;
18120
18135
  chainId: number;
18121
- explorerAddress: string | null;
18122
18136
  tvl: number;
18123
18137
  dailyRewards: number;
18124
18138
  }[];
@@ -18193,6 +18207,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
18193
18207
  icon: string;
18194
18208
  } | null | undefined;
18195
18209
  depositUrl?: string | undefined;
18210
+ explorerAddress?: string | undefined;
18196
18211
  aprRecord?: {
18197
18212
  timestamp: string | bigint;
18198
18213
  cumulated: number;
@@ -406,6 +406,7 @@ declare const app: Elysia<"", false, {
406
406
  }[] | undefined;
407
407
  id: string;
408
408
  depositUrl: string | undefined;
409
+ explorerAddress: string | undefined;
409
410
  tokens: ({
410
411
  symbol: string;
411
412
  id: string;
@@ -441,7 +442,6 @@ declare const app: Elysia<"", false, {
441
442
  identifier: string;
442
443
  action: import("@db/api").$Enums.OpportunityAction;
443
444
  chainId: number;
444
- explorerAddress: string | null;
445
445
  tvl: number;
446
446
  dailyRewards: number;
447
447
  }[];
@@ -508,6 +508,7 @@ declare const app: Elysia<"", false, {
508
508
  icon: string;
509
509
  } | null | undefined;
510
510
  depositUrl?: string | undefined;
511
+ explorerAddress?: string | undefined;
511
512
  aprRecord?: {
512
513
  timestamp: string | bigint;
513
514
  cumulated: number;
@@ -638,6 +639,7 @@ declare const app: Elysia<"", false, {
638
639
  icon: string;
639
640
  } | null | undefined;
640
641
  depositUrl?: string | undefined;
642
+ explorerAddress?: string | undefined;
641
643
  aprRecord?: {
642
644
  timestamp: string | bigint;
643
645
  cumulated: number;
@@ -802,6 +804,7 @@ declare const app: Elysia<"", false, {
802
804
  icon: string;
803
805
  } | null | undefined;
804
806
  depositUrl?: string | undefined;
807
+ explorerAddress?: string | undefined;
805
808
  aprRecord?: {
806
809
  timestamp: string | bigint;
807
810
  cumulated: number;
@@ -261,6 +261,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
261
261
  }[] | undefined;
262
262
  id: string;
263
263
  depositUrl: string | undefined;
264
+ explorerAddress: string | undefined;
264
265
  tokens: ({
265
266
  symbol: string;
266
267
  id: string;
@@ -296,7 +297,6 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
296
297
  identifier: string;
297
298
  action: import("@db/api").$Enums.OpportunityAction;
298
299
  chainId: number;
299
- explorerAddress: string | null;
300
300
  tvl: number;
301
301
  dailyRewards: number;
302
302
  }[];
@@ -363,6 +363,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
363
363
  icon: string;
364
364
  } | null | undefined;
365
365
  depositUrl?: string | undefined;
366
+ explorerAddress?: string | undefined;
366
367
  aprRecord?: {
367
368
  timestamp: string | bigint;
368
369
  cumulated: number;
@@ -493,6 +494,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
493
494
  icon: string;
494
495
  } | null | undefined;
495
496
  depositUrl?: string | undefined;
497
+ explorerAddress?: string | undefined;
496
498
  aprRecord?: {
497
499
  timestamp: string | bigint;
498
500
  cumulated: number;
@@ -657,6 +659,7 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
657
659
  icon: string;
658
660
  } | null | undefined;
659
661
  depositUrl?: string | undefined;
662
+ explorerAddress?: string | undefined;
660
663
  aprRecord?: {
661
664
  timestamp: string | bigint;
662
665
  cumulated: number;
@@ -15,6 +15,7 @@ import type { OpportunityRepository } from "./opportunity.repository";
15
15
  */
16
16
  export type Opportunity = Resource<"Opportunity", "mainProtocolId", {
17
17
  depositUrl?: string;
18
+ explorerAddress?: string;
18
19
  chain: Chain["model"];
19
20
  tokens: Token["model"][];
20
21
  protocol?: Protocol["model"];
@@ -40,6 +41,7 @@ export declare const OpportunityResourceDto: import("@sinclair/typebox").TObject
40
41
  apr: import("@sinclair/typebox").TNumber;
41
42
  dailyRewards: import("@sinclair/typebox").TNumber;
42
43
  depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
44
+ explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
43
45
  tags: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
44
46
  id: import("@sinclair/typebox").TString;
45
47
  tokens: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
@@ -156,6 +158,7 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
156
158
  action: import("@sinclair/typebox").TString;
157
159
  chainId: import("@sinclair/typebox").TNumber;
158
160
  depositUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
161
+ explorerAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
159
162
  tvl: import("@sinclair/typebox").TNumber;
160
163
  apr: import("@sinclair/typebox").TNumber;
161
164
  dailyRewards: import("@sinclair/typebox").TNumber;
@@ -19,6 +19,7 @@ export const OpportunityResourceDto = t.Object({
19
19
  apr: t.Number(),
20
20
  dailyRewards: t.Number(),
21
21
  depositUrl: t.Optional(t.String()),
22
+ explorerAddress: t.Optional(t.String()),
22
23
  tags: t.Array(t.String()),
23
24
  id: t.String(),
24
25
  tokens: t.Array(TokenResourceDto),
@@ -124,6 +124,7 @@ export declare abstract class OpportunityService {
124
124
  icon: string;
125
125
  } | null | undefined;
126
126
  depositUrl?: string | undefined;
127
+ explorerAddress?: string | undefined;
127
128
  aprRecord?: {
128
129
  timestamp: string | bigint;
129
130
  cumulated: number;
@@ -260,6 +261,7 @@ export declare abstract class OpportunityService {
260
261
  icon: string;
261
262
  } | null | undefined;
262
263
  depositUrl?: string | undefined;
264
+ explorerAddress?: string | undefined;
263
265
  aprRecord?: {
264
266
  timestamp: string | bigint;
265
267
  cumulated: number;
@@ -519,6 +521,7 @@ export declare abstract class OpportunityService {
519
521
  }[] | undefined;
520
522
  id: string;
521
523
  depositUrl: string | undefined;
524
+ explorerAddress: string | undefined;
522
525
  tokens: ({
523
526
  symbol: string;
524
527
  id: string;
@@ -554,7 +557,6 @@ export declare abstract class OpportunityService {
554
557
  identifier: string;
555
558
  action: import("@db/api").$Enums.OpportunityAction;
556
559
  chainId: number;
557
- explorerAddress: string | null;
558
560
  tvl: number;
559
561
  dailyRewards: number;
560
562
  }[]>;
@@ -692,6 +694,7 @@ export declare abstract class OpportunityService {
692
694
  }[] | undefined;
693
695
  id: string;
694
696
  depositUrl: string | undefined;
697
+ explorerAddress: string | undefined;
695
698
  tokens: ({
696
699
  symbol: string;
697
700
  id: string;
@@ -727,7 +730,6 @@ export declare abstract class OpportunityService {
727
730
  identifier: string;
728
731
  action: import("@db/api").$Enums.OpportunityAction;
729
732
  chainId: number;
730
- explorerAddress: string | null;
731
733
  tvl: number;
732
734
  dailyRewards: number;
733
735
  }[]>;
@@ -861,6 +863,7 @@ export declare abstract class OpportunityService {
861
863
  }[] | undefined;
862
864
  id: string;
863
865
  depositUrl: string | undefined;
866
+ explorerAddress: string | undefined;
864
867
  tokens: ({
865
868
  symbol: string;
866
869
  id: string;
@@ -896,13 +899,13 @@ export declare abstract class OpportunityService {
896
899
  identifier: string;
897
900
  action: import("@db/api").$Enums.OpportunityAction;
898
901
  chainId: number;
899
- explorerAddress: string | null;
900
902
  tvl: number;
901
903
  dailyRewards: number;
902
904
  };
903
905
  static formatResponseBase(opportunity: LightOpportunityFromDB): {
904
906
  id: string;
905
907
  depositUrl: string | undefined;
908
+ explorerAddress: string | undefined;
906
909
  tokens: ({
907
910
  symbol: string;
908
911
  id: string;
@@ -938,7 +941,6 @@ export declare abstract class OpportunityService {
938
941
  identifier: string;
939
942
  action: import("@db/api").$Enums.OpportunityAction;
940
943
  chainId: number;
941
- explorerAddress: string | null;
942
944
  tvl: number;
943
945
  apr: number;
944
946
  dailyRewards: number;
@@ -243,6 +243,7 @@ export class OpportunityService {
243
243
  ...opp,
244
244
  id,
245
245
  depositUrl: opp.depositUrl ?? undefined,
246
+ explorerAddress: opp.explorerAddress ?? undefined,
246
247
  tokens: Tokens.map(t => TokenService.format(t)),
247
248
  chain: Chain,
248
249
  protocol: MainProtocol ?? undefined,
@@ -136,6 +136,7 @@ export declare abstract class RewardService {
136
136
  }[] | undefined;
137
137
  id: string;
138
138
  depositUrl: string | undefined;
139
+ explorerAddress: string | undefined;
139
140
  tokens: ({
140
141
  symbol: string;
141
142
  id: string;
@@ -171,7 +172,6 @@ export declare abstract class RewardService {
171
172
  identifier: string;
172
173
  action: import("@db/api").$Enums.OpportunityAction;
173
174
  chainId: number;
174
- explorerAddress: string | null;
175
175
  tvl: number;
176
176
  dailyRewards: number;
177
177
  }, number>>;
@@ -276,6 +276,7 @@ export declare const v4: Elysia<"/v4", false, {
276
276
  }[] | undefined;
277
277
  id: string;
278
278
  depositUrl: string | undefined;
279
+ explorerAddress: string | undefined;
279
280
  tokens: ({
280
281
  symbol: string;
281
282
  id: string;
@@ -311,7 +312,6 @@ export declare const v4: Elysia<"/v4", false, {
311
312
  identifier: string;
312
313
  action: import("@db/api").$Enums.OpportunityAction;
313
314
  chainId: number;
314
- explorerAddress: string | null;
315
315
  tvl: number;
316
316
  dailyRewards: number;
317
317
  }[];
@@ -378,6 +378,7 @@ export declare const v4: Elysia<"/v4", false, {
378
378
  icon: string;
379
379
  } | null | undefined;
380
380
  depositUrl?: string | undefined;
381
+ explorerAddress?: string | undefined;
381
382
  aprRecord?: {
382
383
  timestamp: string | bigint;
383
384
  cumulated: number;
@@ -508,6 +509,7 @@ export declare const v4: Elysia<"/v4", false, {
508
509
  icon: string;
509
510
  } | null | undefined;
510
511
  depositUrl?: string | undefined;
512
+ explorerAddress?: string | undefined;
511
513
  aprRecord?: {
512
514
  timestamp: string | bigint;
513
515
  cumulated: number;
@@ -672,6 +674,7 @@ export declare const v4: Elysia<"/v4", false, {
672
674
  icon: string;
673
675
  } | null | undefined;
674
676
  depositUrl?: string | undefined;
677
+ explorerAddress?: string | undefined;
675
678
  aprRecord?: {
676
679
  timestamp: string | bigint;
677
680
  cumulated: number;