@merkl/api 0.10.106 → 0.10.107
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/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/schema.prisma +0 -1
- package/dist/src/eden/index.d.ts +179 -6
- package/dist/src/index.d.ts +73 -6
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +58 -6
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +8 -1
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +9 -1
- package/dist/src/modules/v4/price/price.controller.d.ts +15 -0
- package/dist/src/modules/v4/price/price.service.d.ts +4 -0
- package/dist/src/modules/v4/router.d.ts +73 -6
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +73 -6
- package/dist/src/routes/v3/blacklist.d.ts +73 -6
- package/dist/src/routes/v3/campaigns.d.ts +73 -6
- package/dist/src/routes/v3/campaignsInfo.d.ts +73 -6
- package/dist/src/routes/v3/multiChainPositions.d.ts +73 -6
- package/dist/src/routes/v3/opportunity.d.ts +73 -6
- package/dist/src/routes/v3/positions.d.ts +73 -6
- package/dist/src/routes/v3/rewards.d.ts +73 -6
- package/dist/src/routes/v3/updates.d.ts +73 -6
- package/dist/src/routes/v3/userRewards.d.ts +73 -6
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
    
        package/dist/src/eden/index.d.ts
    CHANGED
    
    | @@ -424,6 +424,47 @@ declare const eden: { | |
| 424 424 | 
             
                                200: number;
         | 
| 425 425 | 
             
                            }>>;
         | 
| 426 426 | 
             
                        };
         | 
| 427 | 
            +
                        campaignsToProcess: {
         | 
| 428 | 
            +
                            index: {
         | 
| 429 | 
            +
                                get: (options: {
         | 
| 430 | 
            +
                                    headers?: Record<string, unknown> | undefined;
         | 
| 431 | 
            +
                                    query: {
         | 
| 432 | 
            +
                                        chainId: number;
         | 
| 433 | 
            +
                                    };
         | 
| 434 | 
            +
                                    fetch?: RequestInit | undefined;
         | 
| 435 | 
            +
                                }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 436 | 
            +
                                    200: {
         | 
| 437 | 
            +
                                        endTimestamp: bigint;
         | 
| 438 | 
            +
                                        campaignId: string;
         | 
| 439 | 
            +
                                        CampaignStatus: {
         | 
| 440 | 
            +
                                            computedUntil: bigint;
         | 
| 441 | 
            +
                                        }[];
         | 
| 442 | 
            +
                                    }[];
         | 
| 443 | 
            +
                                }>>;
         | 
| 444 | 
            +
                                post: (body: unknown, options: {
         | 
| 445 | 
            +
                                    headers: {
         | 
| 446 | 
            +
                                        authorization: string;
         | 
| 447 | 
            +
                                    };
         | 
| 448 | 
            +
                                    query: {
         | 
| 449 | 
            +
                                        chainId: number;
         | 
| 450 | 
            +
                                    };
         | 
| 451 | 
            +
                                    fetch?: RequestInit | undefined;
         | 
| 452 | 
            +
                                }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 453 | 
            +
                                    200: string;
         | 
| 454 | 
            +
                                }>>;
         | 
| 455 | 
            +
                            };
         | 
| 456 | 
            +
                            count: {
         | 
| 457 | 
            +
                                get: (options: {
         | 
| 458 | 
            +
                                    headers?: Record<string, unknown> | undefined;
         | 
| 459 | 
            +
                                    query: {
         | 
| 460 | 
            +
                                        chainId: number;
         | 
| 461 | 
            +
                                    };
         | 
| 462 | 
            +
                                    fetch?: RequestInit | undefined;
         | 
| 463 | 
            +
                                }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 464 | 
            +
                                    200: number;
         | 
| 465 | 
            +
                                }>>;
         | 
| 466 | 
            +
                            };
         | 
| 467 | 
            +
                        };
         | 
| 427 468 | 
             
                    };
         | 
| 428 469 | 
             
                    protocols: ((params: {
         | 
| 429 470 | 
             
                        id: string | number;
         | 
| @@ -773,6 +814,18 @@ declare const eden: { | |
| 773 814 | 
             
                                };
         | 
| 774 815 | 
             
                            }>>;
         | 
| 775 816 | 
             
                        };
         | 
| 817 | 
            +
                        array: {
         | 
| 818 | 
            +
                            get: (options?: {
         | 
| 819 | 
            +
                                headers?: Record<string, unknown> | undefined;
         | 
| 820 | 
            +
                                query?: Record<string, unknown> | undefined;
         | 
| 821 | 
            +
                                fetch?: RequestInit | undefined;
         | 
| 822 | 
            +
                            } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 823 | 
            +
                                200: {
         | 
| 824 | 
            +
                                    rate: number;
         | 
| 825 | 
            +
                                    token: string;
         | 
| 826 | 
            +
                                }[];
         | 
| 827 | 
            +
                            }>>;
         | 
| 828 | 
            +
                        };
         | 
| 776 829 | 
             
                        symbol: ((params: {
         | 
| 777 830 | 
             
                            symbol: string | number;
         | 
| 778 831 | 
             
                        }) => {
         | 
| @@ -1998,9 +2051,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 1998 2051 | 
             
                                };
         | 
| 1999 2052 | 
             
                            };
         | 
| 2000 2053 | 
             
                        };
         | 
| 2001 | 
            -
                    } | 
| 2002 | 
            -
                } & {
         | 
| 2003 | 
            -
                    campaigns: {
         | 
| 2054 | 
            +
                    } & {
         | 
| 2004 2055 | 
             
                        index: {
         | 
| 2005 2056 | 
             
                            get: {
         | 
| 2006 2057 | 
             
                                body: unknown;
         | 
| @@ -2060,9 +2111,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 2060 2111 | 
             
                                };
         | 
| 2061 2112 | 
             
                            };
         | 
| 2062 2113 | 
             
                        };
         | 
| 2063 | 
            -
                    } | 
| 2064 | 
            -
                } & {
         | 
| 2065 | 
            -
                    campaigns: {
         | 
| 2114 | 
            +
                    } & {
         | 
| 2066 2115 | 
             
                        count: {
         | 
| 2067 2116 | 
             
                            get: {
         | 
| 2068 2117 | 
             
                                body: unknown;
         | 
| @@ -2087,6 +2136,62 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 2087 2136 | 
             
                                };
         | 
| 2088 2137 | 
             
                            };
         | 
| 2089 2138 | 
             
                        };
         | 
| 2139 | 
            +
                    } & {
         | 
| 2140 | 
            +
                        campaignsToProcess: {
         | 
| 2141 | 
            +
                            index: {
         | 
| 2142 | 
            +
                                get: {
         | 
| 2143 | 
            +
                                    body: unknown;
         | 
| 2144 | 
            +
                                    params: Record<never, string>;
         | 
| 2145 | 
            +
                                    query: {
         | 
| 2146 | 
            +
                                        chainId: number;
         | 
| 2147 | 
            +
                                    };
         | 
| 2148 | 
            +
                                    headers: unknown;
         | 
| 2149 | 
            +
                                    response: {
         | 
| 2150 | 
            +
                                        200: {
         | 
| 2151 | 
            +
                                            endTimestamp: bigint;
         | 
| 2152 | 
            +
                                            campaignId: string;
         | 
| 2153 | 
            +
                                            CampaignStatus: {
         | 
| 2154 | 
            +
                                                computedUntil: bigint;
         | 
| 2155 | 
            +
                                            }[];
         | 
| 2156 | 
            +
                                        }[];
         | 
| 2157 | 
            +
                                    };
         | 
| 2158 | 
            +
                                };
         | 
| 2159 | 
            +
                            };
         | 
| 2160 | 
            +
                        };
         | 
| 2161 | 
            +
                    } & {
         | 
| 2162 | 
            +
                        campaignsToProcess: {
         | 
| 2163 | 
            +
                            count: {
         | 
| 2164 | 
            +
                                get: {
         | 
| 2165 | 
            +
                                    body: unknown;
         | 
| 2166 | 
            +
                                    params: Record<never, string>;
         | 
| 2167 | 
            +
                                    query: {
         | 
| 2168 | 
            +
                                        chainId: number;
         | 
| 2169 | 
            +
                                    };
         | 
| 2170 | 
            +
                                    headers: unknown;
         | 
| 2171 | 
            +
                                    response: {
         | 
| 2172 | 
            +
                                        200: number;
         | 
| 2173 | 
            +
                                    };
         | 
| 2174 | 
            +
                                };
         | 
| 2175 | 
            +
                            };
         | 
| 2176 | 
            +
                        };
         | 
| 2177 | 
            +
                    } & {
         | 
| 2178 | 
            +
                        campaignsToProcess: {
         | 
| 2179 | 
            +
                            index: {
         | 
| 2180 | 
            +
                                post: {
         | 
| 2181 | 
            +
                                    body: unknown;
         | 
| 2182 | 
            +
                                    params: Record<never, string>;
         | 
| 2183 | 
            +
                                    query: {
         | 
| 2184 | 
            +
                                        chainId: number;
         | 
| 2185 | 
            +
                                    };
         | 
| 2186 | 
            +
                                    headers: {
         | 
| 2187 | 
            +
                                        authorization: string;
         | 
| 2188 | 
            +
                                    };
         | 
| 2189 | 
            +
                                    response: {
         | 
| 2190 | 
            +
                                        200: string;
         | 
| 2191 | 
            +
                                    };
         | 
| 2192 | 
            +
                                };
         | 
| 2193 | 
            +
                            };
         | 
| 2194 | 
            +
                        };
         | 
| 2090 2195 | 
             
                    };
         | 
| 2091 2196 | 
             
                };
         | 
| 2092 2197 | 
             
            } & {
         | 
| @@ -2523,6 +2628,21 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 2523 2628 | 
             
                                };
         | 
| 2524 2629 | 
             
                            };
         | 
| 2525 2630 | 
             
                        };
         | 
| 2631 | 
            +
                    } & {
         | 
| 2632 | 
            +
                        array: {
         | 
| 2633 | 
            +
                            get: {
         | 
| 2634 | 
            +
                                body: unknown;
         | 
| 2635 | 
            +
                                params: Record<never, string>;
         | 
| 2636 | 
            +
                                query: unknown;
         | 
| 2637 | 
            +
                                headers: unknown;
         | 
| 2638 | 
            +
                                response: {
         | 
| 2639 | 
            +
                                    200: {
         | 
| 2640 | 
            +
                                        rate: number;
         | 
| 2641 | 
            +
                                        token: string;
         | 
| 2642 | 
            +
                                    }[];
         | 
| 2643 | 
            +
                                };
         | 
| 2644 | 
            +
                            };
         | 
| 2645 | 
            +
                        };
         | 
| 2526 2646 | 
             
                    } & {
         | 
| 2527 2647 | 
             
                        symbol: {
         | 
| 2528 2648 | 
             
                            ":symbol": {
         | 
| @@ -4008,6 +4128,47 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 4008 4128 | 
             
                                200: number;
         | 
| 4009 4129 | 
             
                            }>>;
         | 
| 4010 4130 | 
             
                        };
         | 
| 4131 | 
            +
                        campaignsToProcess: {
         | 
| 4132 | 
            +
                            index: {
         | 
| 4133 | 
            +
                                get: (options: {
         | 
| 4134 | 
            +
                                    headers?: Record<string, unknown> | undefined;
         | 
| 4135 | 
            +
                                    query: {
         | 
| 4136 | 
            +
                                        chainId: number;
         | 
| 4137 | 
            +
                                    };
         | 
| 4138 | 
            +
                                    fetch?: RequestInit | undefined;
         | 
| 4139 | 
            +
                                }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 4140 | 
            +
                                    200: {
         | 
| 4141 | 
            +
                                        endTimestamp: bigint;
         | 
| 4142 | 
            +
                                        campaignId: string;
         | 
| 4143 | 
            +
                                        CampaignStatus: {
         | 
| 4144 | 
            +
                                            computedUntil: bigint;
         | 
| 4145 | 
            +
                                        }[];
         | 
| 4146 | 
            +
                                    }[];
         | 
| 4147 | 
            +
                                }>>;
         | 
| 4148 | 
            +
                                post: (body: unknown, options: {
         | 
| 4149 | 
            +
                                    headers: {
         | 
| 4150 | 
            +
                                        authorization: string;
         | 
| 4151 | 
            +
                                    };
         | 
| 4152 | 
            +
                                    query: {
         | 
| 4153 | 
            +
                                        chainId: number;
         | 
| 4154 | 
            +
                                    };
         | 
| 4155 | 
            +
                                    fetch?: RequestInit | undefined;
         | 
| 4156 | 
            +
                                }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 4157 | 
            +
                                    200: string;
         | 
| 4158 | 
            +
                                }>>;
         | 
| 4159 | 
            +
                            };
         | 
| 4160 | 
            +
                            count: {
         | 
| 4161 | 
            +
                                get: (options: {
         | 
| 4162 | 
            +
                                    headers?: Record<string, unknown> | undefined;
         | 
| 4163 | 
            +
                                    query: {
         | 
| 4164 | 
            +
                                        chainId: number;
         | 
| 4165 | 
            +
                                    };
         | 
| 4166 | 
            +
                                    fetch?: RequestInit | undefined;
         | 
| 4167 | 
            +
                                }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 4168 | 
            +
                                    200: number;
         | 
| 4169 | 
            +
                                }>>;
         | 
| 4170 | 
            +
                            };
         | 
| 4171 | 
            +
                        };
         | 
| 4011 4172 | 
             
                    };
         | 
| 4012 4173 | 
             
                    protocols: ((params: {
         | 
| 4013 4174 | 
             
                        id: string | number;
         | 
| @@ -4357,6 +4518,18 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa | |
| 4357 4518 | 
             
                                };
         | 
| 4358 4519 | 
             
                            }>>;
         | 
| 4359 4520 | 
             
                        };
         | 
| 4521 | 
            +
                        array: {
         | 
| 4522 | 
            +
                            get: (options?: {
         | 
| 4523 | 
            +
                                headers?: Record<string, unknown> | undefined;
         | 
| 4524 | 
            +
                                query?: Record<string, unknown> | undefined;
         | 
| 4525 | 
            +
                                fetch?: RequestInit | undefined;
         | 
| 4526 | 
            +
                            } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
         | 
| 4527 | 
            +
                                200: {
         | 
| 4528 | 
            +
                                    rate: number;
         | 
| 4529 | 
            +
                                    token: string;
         | 
| 4530 | 
            +
                                }[];
         | 
| 4531 | 
            +
                            }>>;
         | 
| 4532 | 
            +
                        };
         | 
| 4360 4533 | 
             
                        symbol: ((params: {
         | 
| 4361 4534 | 
             
                            symbol: string | number;
         | 
| 4362 4535 | 
             
                        }) => {
         | 
    
        package/dist/src/index.d.ts
    CHANGED
    
    | @@ -407,9 +407,7 @@ declare const app: Elysia<"", false, { | |
| 407 407 | 
             
                                };
         | 
| 408 408 | 
             
                            };
         | 
| 409 409 | 
             
                        };
         | 
| 410 | 
            -
                    } | 
| 411 | 
            -
                } & {
         | 
| 412 | 
            -
                    campaigns: {
         | 
| 410 | 
            +
                    } & {
         | 
| 413 411 | 
             
                        index: {
         | 
| 414 412 | 
             
                            get: {
         | 
| 415 413 | 
             
                                body: unknown;
         | 
| @@ -469,9 +467,7 @@ declare const app: Elysia<"", false, { | |
| 469 467 | 
             
                                };
         | 
| 470 468 | 
             
                            };
         | 
| 471 469 | 
             
                        };
         | 
| 472 | 
            -
                    } | 
| 473 | 
            -
                } & {
         | 
| 474 | 
            -
                    campaigns: {
         | 
| 470 | 
            +
                    } & {
         | 
| 475 471 | 
             
                        count: {
         | 
| 476 472 | 
             
                            get: {
         | 
| 477 473 | 
             
                                body: unknown;
         | 
| @@ -496,6 +492,62 @@ declare const app: Elysia<"", false, { | |
| 496 492 | 
             
                                };
         | 
| 497 493 | 
             
                            };
         | 
| 498 494 | 
             
                        };
         | 
| 495 | 
            +
                    } & {
         | 
| 496 | 
            +
                        campaignsToProcess: {
         | 
| 497 | 
            +
                            index: {
         | 
| 498 | 
            +
                                get: {
         | 
| 499 | 
            +
                                    body: unknown;
         | 
| 500 | 
            +
                                    params: Record<never, string>;
         | 
| 501 | 
            +
                                    query: {
         | 
| 502 | 
            +
                                        chainId: number;
         | 
| 503 | 
            +
                                    };
         | 
| 504 | 
            +
                                    headers: unknown;
         | 
| 505 | 
            +
                                    response: {
         | 
| 506 | 
            +
                                        200: {
         | 
| 507 | 
            +
                                            endTimestamp: bigint;
         | 
| 508 | 
            +
                                            campaignId: string;
         | 
| 509 | 
            +
                                            CampaignStatus: {
         | 
| 510 | 
            +
                                                computedUntil: bigint;
         | 
| 511 | 
            +
                                            }[];
         | 
| 512 | 
            +
                                        }[];
         | 
| 513 | 
            +
                                    };
         | 
| 514 | 
            +
                                };
         | 
| 515 | 
            +
                            };
         | 
| 516 | 
            +
                        };
         | 
| 517 | 
            +
                    } & {
         | 
| 518 | 
            +
                        campaignsToProcess: {
         | 
| 519 | 
            +
                            count: {
         | 
| 520 | 
            +
                                get: {
         | 
| 521 | 
            +
                                    body: unknown;
         | 
| 522 | 
            +
                                    params: Record<never, string>;
         | 
| 523 | 
            +
                                    query: {
         | 
| 524 | 
            +
                                        chainId: number;
         | 
| 525 | 
            +
                                    };
         | 
| 526 | 
            +
                                    headers: unknown;
         | 
| 527 | 
            +
                                    response: {
         | 
| 528 | 
            +
                                        200: number;
         | 
| 529 | 
            +
                                    };
         | 
| 530 | 
            +
                                };
         | 
| 531 | 
            +
                            };
         | 
| 532 | 
            +
                        };
         | 
| 533 | 
            +
                    } & {
         | 
| 534 | 
            +
                        campaignsToProcess: {
         | 
| 535 | 
            +
                            index: {
         | 
| 536 | 
            +
                                post: {
         | 
| 537 | 
            +
                                    body: unknown;
         | 
| 538 | 
            +
                                    params: Record<never, string>;
         | 
| 539 | 
            +
                                    query: {
         | 
| 540 | 
            +
                                        chainId: number;
         | 
| 541 | 
            +
                                    };
         | 
| 542 | 
            +
                                    headers: {
         | 
| 543 | 
            +
                                        authorization: string;
         | 
| 544 | 
            +
                                    };
         | 
| 545 | 
            +
                                    response: {
         | 
| 546 | 
            +
                                        200: string;
         | 
| 547 | 
            +
                                    };
         | 
| 548 | 
            +
                                };
         | 
| 549 | 
            +
                            };
         | 
| 550 | 
            +
                        };
         | 
| 499 551 | 
             
                    };
         | 
| 500 552 | 
             
                };
         | 
| 501 553 | 
             
            } & {
         | 
| @@ -932,6 +984,21 @@ declare const app: Elysia<"", false, { | |
| 932 984 | 
             
                                };
         | 
| 933 985 | 
             
                            };
         | 
| 934 986 | 
             
                        };
         | 
| 987 | 
            +
                    } & {
         | 
| 988 | 
            +
                        array: {
         | 
| 989 | 
            +
                            get: {
         | 
| 990 | 
            +
                                body: unknown;
         | 
| 991 | 
            +
                                params: Record<never, string>;
         | 
| 992 | 
            +
                                query: unknown;
         | 
| 993 | 
            +
                                headers: unknown;
         | 
| 994 | 
            +
                                response: {
         | 
| 995 | 
            +
                                    200: {
         | 
| 996 | 
            +
                                        rate: number;
         | 
| 997 | 
            +
                                        token: string;
         | 
| 998 | 
            +
                                    }[];
         | 
| 999 | 
            +
                                };
         | 
| 1000 | 
            +
                            };
         | 
| 1001 | 
            +
                        };
         | 
| 935 1002 | 
             
                    } & {
         | 
| 936 1003 | 
             
                        symbol: {
         | 
| 937 1004 | 
             
                            ":symbol": {
         | 
| @@ -53,9 +53,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, { | |
| 53 53 | 
             
                            };
         | 
| 54 54 | 
             
                        };
         | 
| 55 55 | 
             
                    };
         | 
| 56 | 
            -
                } | 
| 57 | 
            -
            } & {
         | 
| 58 | 
            -
                campaigns: {
         | 
| 56 | 
            +
                } & {
         | 
| 59 57 | 
             
                    index: {
         | 
| 60 58 | 
             
                        get: {
         | 
| 61 59 | 
             
                            body: unknown;
         | 
| @@ -115,9 +113,7 @@ export declare const CampaignController: Elysia<"/campaigns", false, { | |
| 115 113 | 
             
                            };
         | 
| 116 114 | 
             
                        };
         | 
| 117 115 | 
             
                    };
         | 
| 118 | 
            -
                } | 
| 119 | 
            -
            } & {
         | 
| 120 | 
            -
                campaigns: {
         | 
| 116 | 
            +
                } & {
         | 
| 121 117 | 
             
                    count: {
         | 
| 122 118 | 
             
                        get: {
         | 
| 123 119 | 
             
                            body: unknown;
         | 
| @@ -142,6 +138,62 @@ export declare const CampaignController: Elysia<"/campaigns", false, { | |
| 142 138 | 
             
                            };
         | 
| 143 139 | 
             
                        };
         | 
| 144 140 | 
             
                    };
         | 
| 141 | 
            +
                } & {
         | 
| 142 | 
            +
                    campaignsToProcess: {
         | 
| 143 | 
            +
                        index: {
         | 
| 144 | 
            +
                            get: {
         | 
| 145 | 
            +
                                body: unknown;
         | 
| 146 | 
            +
                                params: Record<never, string>;
         | 
| 147 | 
            +
                                query: {
         | 
| 148 | 
            +
                                    chainId: number;
         | 
| 149 | 
            +
                                };
         | 
| 150 | 
            +
                                headers: unknown;
         | 
| 151 | 
            +
                                response: {
         | 
| 152 | 
            +
                                    200: {
         | 
| 153 | 
            +
                                        endTimestamp: bigint;
         | 
| 154 | 
            +
                                        campaignId: string;
         | 
| 155 | 
            +
                                        CampaignStatus: {
         | 
| 156 | 
            +
                                            computedUntil: bigint;
         | 
| 157 | 
            +
                                        }[];
         | 
| 158 | 
            +
                                    }[];
         | 
| 159 | 
            +
                                };
         | 
| 160 | 
            +
                            };
         | 
| 161 | 
            +
                        };
         | 
| 162 | 
            +
                    };
         | 
| 163 | 
            +
                } & {
         | 
| 164 | 
            +
                    campaignsToProcess: {
         | 
| 165 | 
            +
                        count: {
         | 
| 166 | 
            +
                            get: {
         | 
| 167 | 
            +
                                body: unknown;
         | 
| 168 | 
            +
                                params: Record<never, string>;
         | 
| 169 | 
            +
                                query: {
         | 
| 170 | 
            +
                                    chainId: number;
         | 
| 171 | 
            +
                                };
         | 
| 172 | 
            +
                                headers: unknown;
         | 
| 173 | 
            +
                                response: {
         | 
| 174 | 
            +
                                    200: number;
         | 
| 175 | 
            +
                                };
         | 
| 176 | 
            +
                            };
         | 
| 177 | 
            +
                        };
         | 
| 178 | 
            +
                    };
         | 
| 179 | 
            +
                } & {
         | 
| 180 | 
            +
                    campaignsToProcess: {
         | 
| 181 | 
            +
                        index: {
         | 
| 182 | 
            +
                            post: {
         | 
| 183 | 
            +
                                body: unknown;
         | 
| 184 | 
            +
                                params: Record<never, string>;
         | 
| 185 | 
            +
                                query: {
         | 
| 186 | 
            +
                                    chainId: number;
         | 
| 187 | 
            +
                                };
         | 
| 188 | 
            +
                                headers: {
         | 
| 189 | 
            +
                                    authorization: string;
         | 
| 190 | 
            +
                                };
         | 
| 191 | 
            +
                                response: {
         | 
| 192 | 
            +
                                    200: string;
         | 
| 193 | 
            +
                                };
         | 
| 194 | 
            +
                            };
         | 
| 195 | 
            +
                        };
         | 
| 196 | 
            +
                    };
         | 
| 145 197 | 
             
                };
         | 
| 146 198 | 
             
            }, {
         | 
| 147 199 | 
             
                derive: {};
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            import type { CampaignUnique, CreateCampaignModel, GetCampaignQueryModel } from "./";
         | 
| 2 2 | 
             
            import { type Prisma } from "../../../../database/api/.generated";
         | 
| 3 | 
            -
            import type  | 
| 3 | 
            +
            import { type ChainId } from "@sdk";
         | 
| 4 4 | 
             
            import { type OpportunityMetadata } from "../opportunity";
         | 
| 5 5 | 
             
            export declare abstract class CampaignRepository {
         | 
| 6 6 | 
             
                #private;
         | 
| @@ -61,6 +61,13 @@ export declare abstract class CampaignRepository { | |
| 61 61 | 
             
                    params: Prisma.JsonValue;
         | 
| 62 62 | 
             
                    creatorAddress: string;
         | 
| 63 63 | 
             
                }>;
         | 
| 64 | 
            +
                static findCampaignsToProcess(distributionChainId: ChainId): Promise<{
         | 
| 65 | 
            +
                    endTimestamp: bigint;
         | 
| 66 | 
            +
                    campaignId: string;
         | 
| 67 | 
            +
                    CampaignStatus: {
         | 
| 68 | 
            +
                        computedUntil: bigint;
         | 
| 69 | 
            +
                    }[];
         | 
| 70 | 
            +
                }[]>;
         | 
| 64 71 | 
             
                static findMany(query: GetCampaignQueryModel): Promise<({
         | 
| 65 72 | 
             
                    ComputeChain: {
         | 
| 66 73 | 
             
                        id: number;
         | 
| @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            import { type CampaignUnique, type ConvertedCampaignType, type CreateCampaignModel, type GetCampaignQueryModel } from "./";
         | 
| 2 2 | 
             
            import { CampaignRepository } from "./campaign.repository";
         | 
| 3 3 | 
             
            import type { CampaignType } from "../../../../database/api/.generated";
         | 
| 4 | 
            -
            import type  | 
| 4 | 
            +
            import { type CampaignParameters, type Campaign as CampaignTypeV3, type ChainId } from "@sdk";
         | 
| 5 5 | 
             
            export declare abstract class CampaignService {
         | 
| 6 6 | 
             
                static hashId(campaign: CampaignUnique): string;
         | 
| 7 7 | 
             
                static create(campaign: Omit<CreateCampaignModel, "id">): Promise<{
         | 
| @@ -87,6 +87,14 @@ export declare abstract class CampaignService { | |
| 87 87 | 
             
                    params: import("../../../../database/api/.generated").Prisma.JsonValue;
         | 
| 88 88 | 
             
                    creatorAddress: string;
         | 
| 89 89 | 
             
                }>;
         | 
| 90 | 
            +
                static findCampaignsToProcess(distributionChainId: ChainId): Promise<{
         | 
| 91 | 
            +
                    endTimestamp: bigint;
         | 
| 92 | 
            +
                    campaignId: string;
         | 
| 93 | 
            +
                    CampaignStatus: {
         | 
| 94 | 
            +
                        computedUntil: bigint;
         | 
| 95 | 
            +
                    }[];
         | 
| 96 | 
            +
                }[]>;
         | 
| 97 | 
            +
                static pickCampaignToProcess(chainId: ChainId): Promise<string>;
         | 
| 90 98 | 
             
                static fill(campaigns: CampaignUnique[]): Promise<{
         | 
| 91 99 | 
             
                    success: number;
         | 
| 92 100 | 
             
                    fail: number;
         | 
| @@ -25,6 +25,21 @@ export declare const PriceController: Elysia<"/prices", false, { | |
| 25 25 | 
             
                            };
         | 
| 26 26 | 
             
                        };
         | 
| 27 27 | 
             
                    };
         | 
| 28 | 
            +
                } & {
         | 
| 29 | 
            +
                    array: {
         | 
| 30 | 
            +
                        get: {
         | 
| 31 | 
            +
                            body: unknown;
         | 
| 32 | 
            +
                            params: Record<never, string>;
         | 
| 33 | 
            +
                            query: unknown;
         | 
| 34 | 
            +
                            headers: unknown;
         | 
| 35 | 
            +
                            response: {
         | 
| 36 | 
            +
                                200: {
         | 
| 37 | 
            +
                                    rate: number;
         | 
| 38 | 
            +
                                    token: string;
         | 
| 39 | 
            +
                                }[];
         | 
| 40 | 
            +
                            };
         | 
| 41 | 
            +
                        };
         | 
| 42 | 
            +
                    };
         | 
| 28 43 | 
             
                } & {
         | 
| 29 44 | 
             
                    symbol: {
         | 
| 30 45 | 
             
                        ":symbol": {
         | 
| @@ -3,6 +3,10 @@ export declare class PriceService { | |
| 3 3 | 
             
                static findMany(): Promise<{
         | 
| 4 4 | 
             
                    [token: string]: number;
         | 
| 5 5 | 
             
                }>;
         | 
| 6 | 
            +
                static findManyArray(): Promise<{
         | 
| 7 | 
            +
                    rate: number;
         | 
| 8 | 
            +
                    token: string;
         | 
| 9 | 
            +
                }[]>;
         | 
| 6 10 | 
             
                /** Fetches a single price */
         | 
| 7 11 | 
             
                static fetchPriceSourceBySymbol(symbol: string): Promise<number>;
         | 
| 8 12 | 
             
                static getPriceSourceBySymbol(symbol: string): Promise<{
         | 
| @@ -389,9 +389,7 @@ export declare const v4: Elysia<"/v4", false, { | |
| 389 389 | 
             
                                };
         | 
| 390 390 | 
             
                            };
         | 
| 391 391 | 
             
                        };
         | 
| 392 | 
            -
                    } | 
| 393 | 
            -
                } & {
         | 
| 394 | 
            -
                    campaigns: {
         | 
| 392 | 
            +
                    } & {
         | 
| 395 393 | 
             
                        index: {
         | 
| 396 394 | 
             
                            get: {
         | 
| 397 395 | 
             
                                body: unknown;
         | 
| @@ -451,9 +449,7 @@ export declare const v4: Elysia<"/v4", false, { | |
| 451 449 | 
             
                                };
         | 
| 452 450 | 
             
                            };
         | 
| 453 451 | 
             
                        };
         | 
| 454 | 
            -
                    } | 
| 455 | 
            -
                } & {
         | 
| 456 | 
            -
                    campaigns: {
         | 
| 452 | 
            +
                    } & {
         | 
| 457 453 | 
             
                        count: {
         | 
| 458 454 | 
             
                            get: {
         | 
| 459 455 | 
             
                                body: unknown;
         | 
| @@ -478,6 +474,62 @@ export declare const v4: Elysia<"/v4", false, { | |
| 478 474 | 
             
                                };
         | 
| 479 475 | 
             
                            };
         | 
| 480 476 | 
             
                        };
         | 
| 477 | 
            +
                    } & {
         | 
| 478 | 
            +
                        campaignsToProcess: {
         | 
| 479 | 
            +
                            index: {
         | 
| 480 | 
            +
                                get: {
         | 
| 481 | 
            +
                                    body: unknown;
         | 
| 482 | 
            +
                                    params: Record<never, string>;
         | 
| 483 | 
            +
                                    query: {
         | 
| 484 | 
            +
                                        chainId: number;
         | 
| 485 | 
            +
                                    };
         | 
| 486 | 
            +
                                    headers: unknown;
         | 
| 487 | 
            +
                                    response: {
         | 
| 488 | 
            +
                                        200: {
         | 
| 489 | 
            +
                                            endTimestamp: bigint;
         | 
| 490 | 
            +
                                            campaignId: string;
         | 
| 491 | 
            +
                                            CampaignStatus: {
         | 
| 492 | 
            +
                                                computedUntil: bigint;
         | 
| 493 | 
            +
                                            }[];
         | 
| 494 | 
            +
                                        }[];
         | 
| 495 | 
            +
                                    };
         | 
| 496 | 
            +
                                };
         | 
| 497 | 
            +
                            };
         | 
| 498 | 
            +
                        };
         | 
| 499 | 
            +
                    } & {
         | 
| 500 | 
            +
                        campaignsToProcess: {
         | 
| 501 | 
            +
                            count: {
         | 
| 502 | 
            +
                                get: {
         | 
| 503 | 
            +
                                    body: unknown;
         | 
| 504 | 
            +
                                    params: Record<never, string>;
         | 
| 505 | 
            +
                                    query: {
         | 
| 506 | 
            +
                                        chainId: number;
         | 
| 507 | 
            +
                                    };
         | 
| 508 | 
            +
                                    headers: unknown;
         | 
| 509 | 
            +
                                    response: {
         | 
| 510 | 
            +
                                        200: number;
         | 
| 511 | 
            +
                                    };
         | 
| 512 | 
            +
                                };
         | 
| 513 | 
            +
                            };
         | 
| 514 | 
            +
                        };
         | 
| 515 | 
            +
                    } & {
         | 
| 516 | 
            +
                        campaignsToProcess: {
         | 
| 517 | 
            +
                            index: {
         | 
| 518 | 
            +
                                post: {
         | 
| 519 | 
            +
                                    body: unknown;
         | 
| 520 | 
            +
                                    params: Record<never, string>;
         | 
| 521 | 
            +
                                    query: {
         | 
| 522 | 
            +
                                        chainId: number;
         | 
| 523 | 
            +
                                    };
         | 
| 524 | 
            +
                                    headers: {
         | 
| 525 | 
            +
                                        authorization: string;
         | 
| 526 | 
            +
                                    };
         | 
| 527 | 
            +
                                    response: {
         | 
| 528 | 
            +
                                        200: string;
         | 
| 529 | 
            +
                                    };
         | 
| 530 | 
            +
                                };
         | 
| 531 | 
            +
                            };
         | 
| 532 | 
            +
                        };
         | 
| 481 533 | 
             
                    };
         | 
| 482 534 | 
             
                };
         | 
| 483 535 | 
             
            } & {
         | 
| @@ -914,6 +966,21 @@ export declare const v4: Elysia<"/v4", false, { | |
| 914 966 | 
             
                                };
         | 
| 915 967 | 
             
                            };
         | 
| 916 968 | 
             
                        };
         | 
| 969 | 
            +
                    } & {
         | 
| 970 | 
            +
                        array: {
         | 
| 971 | 
            +
                            get: {
         | 
| 972 | 
            +
                                body: unknown;
         | 
| 973 | 
            +
                                params: Record<never, string>;
         | 
| 974 | 
            +
                                query: unknown;
         | 
| 975 | 
            +
                                headers: unknown;
         | 
| 976 | 
            +
                                response: {
         | 
| 977 | 
            +
                                    200: {
         | 
| 978 | 
            +
                                        rate: number;
         | 
| 979 | 
            +
                                        token: string;
         | 
| 980 | 
            +
                                    }[];
         | 
| 981 | 
            +
                                };
         | 
| 982 | 
            +
                            };
         | 
| 983 | 
            +
                        };
         | 
| 917 984 | 
             
                    } & {
         | 
| 918 985 | 
             
                        symbol: {
         | 
| 919 986 | 
             
                            ":symbol": {
         |