@merkl/api 1.1.3 → 1.1.5

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.
@@ -123,6 +123,17 @@ export declare const TransactionDto: import("@sinclair/typebox").TObject<{
123
123
  hash: import("@sinclair/typebox").TString;
124
124
  chainId: import("@sinclair/typebox").TNumber;
125
125
  }>;
126
+ export declare const TransactionParametersDto: import("@sinclair/typebox").TObject<{
127
+ chainId: import("@sinclair/typebox").TNumber;
128
+ data: import("@sinclair/typebox").TString;
129
+ to: import("@sinclair/typebox").TString;
130
+ from: import("@sinclair/typebox").TString;
131
+ value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
132
+ gas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
133
+ maxFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
134
+ maxPriorityFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
135
+ nonce: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
136
+ }>;
126
137
  export declare const CampaignConfigMinimal: import("@sinclair/typebox").TObject<{
127
138
  computeChainId: import("@sinclair/typebox").TNumber;
128
139
  params: import("@sinclair/typebox").TAny;
@@ -229,6 +240,7 @@ export type UpdateMetaDataCampaignModel = typeof UpdateMetaDataCampaignDto.stati
229
240
  url: string;
230
241
  };
231
242
  export type TransactionModel = typeof TransactionDto.static;
243
+ export type TransactionParametersModel = typeof TransactionParametersDto.static;
232
244
  export type FindCampaignModel = typeof FindCampaignDto.static;
233
245
  export type findCampaignWithStatusModel = Partial<{
234
246
  computeChainId: number;
@@ -1,4 +1,4 @@
1
- import { type CampaignParameters, Campaign as CampaignType, type ChainId } from "@angleprotocol/sdk/ts";
1
+ import { type CampaignParameters, Campaign as CampaignType, type ChainId, type OnChainCampaignDto } from "@angleprotocol/sdk/ts";
2
2
  import type { CampaignManualOverride } from "@package/databases/api";
3
3
  import type { CampaignConfigMinimalModel, CampaignUnique, CampaignWithParams, CreateCampaignModel, FindCampaignModel, TransactionModel, UpdateCampaignCreatorModel, UpdateCampaignModel, findCampaignWithStatusModel } from "../../../modules/v4/campaign/campaign.model";
4
4
  import type { FindCampaignComputedValueModel } from "../computedValue/computedValue.model";
@@ -286,6 +286,7 @@ export declare abstract class CampaignService {
286
286
  tags: string[];
287
287
  lastCampaignCreatedAt: Date;
288
288
  })>;
289
+ static getNewCampaignEventsFromCreationTxHash(query: TransactionModel): Promise<OnChainCampaignDto[]>;
289
290
  static getCampaignIdsFromCreationTxHash(query: TransactionModel): Promise<string[]>;
290
291
  /**
291
292
  * @dev back-office function for manual overrides
@@ -607,103 +607,74 @@ export declare const OpportunityController: Elysia<"/opportunities", {
607
607
  };
608
608
  headers: unknown;
609
609
  response: {
610
- 200: ({
611
- protocol?: {
612
- dailyRewards?: number | undefined;
613
- numberOfLiveCampaigns?: number | undefined;
614
- opportunityLiveTags?: string[] | undefined;
615
- name: string;
616
- description: string;
617
- id: string;
618
- url: string;
619
- icon: string;
620
- tags: string[];
621
- } | null | undefined;
622
- depositUrl?: string | undefined;
623
- aprRecord?: {
624
- timestamp: string | bigint;
625
- cumulated: number;
626
- breakdowns: {
627
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
628
- value: number;
629
- type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
630
- identifier: string;
631
- }[];
632
- } | undefined;
633
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
634
- explorerAddress?: string | undefined;
635
- tvlRecord?: {
636
- timestamp: string | bigint;
637
- total: number;
638
- breakdowns: {
639
- value: number;
640
- type: "TOKEN" | "PROTOCOL";
641
- identifier: string;
642
- }[];
643
- } | undefined;
644
- rewardsRecord?: {
645
- timestamp: string | bigint;
646
- total: number;
647
- breakdowns: {
648
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
649
- token: {
650
- price?: number | null | undefined;
651
- symbol: string;
652
- name: string | null;
653
- decimals: number;
654
- address: string;
655
- id: string;
656
- chainId: number;
657
- type: "TOKEN" | "PRETGE" | "POINT";
658
- icon: string;
659
- isNative: boolean;
660
- isTest: boolean;
661
- verified: boolean;
662
- };
663
- campaignId: string;
664
- value: number;
665
- amount: string | bigint;
666
- }[];
667
- } | undefined;
668
- name: string;
669
- apr: number;
670
- tokens: {
671
- price?: number | null | undefined;
672
- symbol: string;
673
- name: string | null;
674
- decimals: number;
675
- address: string;
676
- id: string;
677
- chainId: number;
678
- type: "TOKEN" | "PRETGE" | "POINT";
679
- icon: string;
680
- isNative: boolean;
681
- isTest: boolean;
682
- verified: boolean;
683
- }[];
684
- tvl: number;
685
- description: string;
686
- id: string;
687
- status: string;
688
- chainId: number;
689
- action: string;
690
- type: string;
691
- chain: {
692
- explorers?: {
693
- chainId: number;
694
- type: "ETHERSCAN" | "BLOCKSCOUT";
695
- url: string;
696
- }[] | undefined;
697
- name: string;
698
- id: number;
699
- icon: string;
700
- };
701
- identifier: string;
702
- howToSteps: string[];
703
- dailyRewards: number;
704
- tags: string[];
705
- lastCampaignCreatedAt: number;
706
- } | null)[];
610
+ 200: string;
611
+ 422: {
612
+ type: "validation";
613
+ on: string;
614
+ summary?: string;
615
+ message?: string;
616
+ found?: unknown;
617
+ property?: string;
618
+ expected?: string;
619
+ };
620
+ } | {
621
+ 200: number;
622
+ 422: {
623
+ type: "validation";
624
+ on: string;
625
+ summary?: string;
626
+ message?: string;
627
+ found?: unknown;
628
+ property?: string;
629
+ expected?: string;
630
+ };
631
+ } | {
632
+ 200: false;
633
+ 422: {
634
+ type: "validation";
635
+ on: string;
636
+ summary?: string;
637
+ message?: string;
638
+ found?: unknown;
639
+ property?: string;
640
+ expected?: string;
641
+ };
642
+ } | {
643
+ 200: true;
644
+ 422: {
645
+ type: "validation";
646
+ on: string;
647
+ summary?: string;
648
+ message?: string;
649
+ found?: unknown;
650
+ property?: string;
651
+ expected?: string;
652
+ };
653
+ } | {
654
+ 200: object;
655
+ 422: {
656
+ type: "validation";
657
+ on: string;
658
+ summary?: string;
659
+ message?: string;
660
+ found?: unknown;
661
+ property?: string;
662
+ expected?: string;
663
+ };
664
+ } | {
665
+ [x: string]: any;
666
+ 200: any;
667
+ 422: {
668
+ type: "validation";
669
+ on: string;
670
+ summary?: string;
671
+ message?: string;
672
+ found?: unknown;
673
+ property?: string;
674
+ expected?: string;
675
+ };
676
+ } | {
677
+ 200: unknown;
707
678
  422: {
708
679
  type: "validation";
709
680
  on: string;