@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.
- package/dist/src/eden/index.d.ts +1047 -384
- package/dist/src/index.d.ts +451 -115
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +12 -0
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -1
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +68 -97
- package/dist/src/modules/v4/payload/payload.controller.d.ts +383 -18
- package/dist/src/modules/v4/payload/payload.model.d.ts +10 -1
- package/dist/src/modules/v4/payload/payload.service.d.ts +289 -9
- package/dist/src/modules/v4/programPayload/programPayload.model.d.ts +1 -1
- package/dist/src/modules/v4/router.d.ts +451 -115
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -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
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
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;
|