@merkl/api 1.1.4 → 1.1.6

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.
@@ -2080,103 +2080,74 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
2080
2080
  };
2081
2081
  headers: unknown;
2082
2082
  response: {
2083
- 200: ({
2084
- protocol?: {
2085
- dailyRewards?: number | undefined;
2086
- numberOfLiveCampaigns?: number | undefined;
2087
- opportunityLiveTags?: string[] | undefined;
2088
- name: string;
2089
- description: string;
2090
- id: string;
2091
- url: string;
2092
- icon: string;
2093
- tags: string[];
2094
- } | null | undefined;
2095
- depositUrl?: string | undefined;
2096
- aprRecord?: {
2097
- timestamp: string | bigint;
2098
- cumulated: number;
2099
- breakdowns: {
2100
- 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;
2101
- value: number;
2102
- type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
2103
- identifier: string;
2104
- }[];
2105
- } | undefined;
2106
- 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;
2107
- explorerAddress?: string | undefined;
2108
- tvlRecord?: {
2109
- timestamp: string | bigint;
2110
- total: number;
2111
- breakdowns: {
2112
- value: number;
2113
- type: "TOKEN" | "PROTOCOL";
2114
- identifier: string;
2115
- }[];
2116
- } | undefined;
2117
- rewardsRecord?: {
2118
- timestamp: string | bigint;
2119
- total: number;
2120
- breakdowns: {
2121
- 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;
2122
- token: {
2123
- price?: number | null | undefined;
2124
- symbol: string;
2125
- name: string | null;
2126
- decimals: number;
2127
- address: string;
2128
- id: string;
2129
- chainId: number;
2130
- type: "TOKEN" | "PRETGE" | "POINT";
2131
- icon: string;
2132
- isNative: boolean;
2133
- isTest: boolean;
2134
- verified: boolean;
2135
- };
2136
- campaignId: string;
2137
- value: number;
2138
- amount: string | bigint;
2139
- }[];
2140
- } | undefined;
2141
- name: string;
2142
- apr: number;
2143
- tokens: {
2144
- price?: number | null | undefined;
2145
- symbol: string;
2146
- name: string | null;
2147
- decimals: number;
2148
- address: string;
2149
- id: string;
2150
- chainId: number;
2151
- type: "TOKEN" | "PRETGE" | "POINT";
2152
- icon: string;
2153
- isNative: boolean;
2154
- isTest: boolean;
2155
- verified: boolean;
2156
- }[];
2157
- tvl: number;
2158
- description: string;
2159
- id: string;
2160
- status: string;
2161
- chainId: number;
2162
- action: string;
2163
- type: string;
2164
- chain: {
2165
- explorers?: {
2166
- chainId: number;
2167
- type: "ETHERSCAN" | "BLOCKSCOUT";
2168
- url: string;
2169
- }[] | undefined;
2170
- name: string;
2171
- id: number;
2172
- icon: string;
2173
- };
2174
- identifier: string;
2175
- howToSteps: string[];
2176
- dailyRewards: number;
2177
- tags: string[];
2178
- lastCampaignCreatedAt: number;
2179
- } | null)[];
2083
+ 200: string;
2084
+ 422: {
2085
+ type: "validation";
2086
+ on: string;
2087
+ summary?: string;
2088
+ message?: string;
2089
+ found?: unknown;
2090
+ property?: string;
2091
+ expected?: string;
2092
+ };
2093
+ } | {
2094
+ 200: number;
2095
+ 422: {
2096
+ type: "validation";
2097
+ on: string;
2098
+ summary?: string;
2099
+ message?: string;
2100
+ found?: unknown;
2101
+ property?: string;
2102
+ expected?: string;
2103
+ };
2104
+ } | {
2105
+ 200: false;
2106
+ 422: {
2107
+ type: "validation";
2108
+ on: string;
2109
+ summary?: string;
2110
+ message?: string;
2111
+ found?: unknown;
2112
+ property?: string;
2113
+ expected?: string;
2114
+ };
2115
+ } | {
2116
+ 200: true;
2117
+ 422: {
2118
+ type: "validation";
2119
+ on: string;
2120
+ summary?: string;
2121
+ message?: string;
2122
+ found?: unknown;
2123
+ property?: string;
2124
+ expected?: string;
2125
+ };
2126
+ } | {
2127
+ 200: object;
2128
+ 422: {
2129
+ type: "validation";
2130
+ on: string;
2131
+ summary?: string;
2132
+ message?: string;
2133
+ found?: unknown;
2134
+ property?: string;
2135
+ expected?: string;
2136
+ };
2137
+ } | {
2138
+ [x: string]: any;
2139
+ 200: any;
2140
+ 422: {
2141
+ type: "validation";
2142
+ on: string;
2143
+ summary?: string;
2144
+ message?: string;
2145
+ found?: unknown;
2146
+ property?: string;
2147
+ expected?: string;
2148
+ };
2149
+ } | {
2150
+ 200: unknown;
2180
2151
  422: {
2181
2152
  type: "validation";
2182
2153
  on: string;
@@ -14037,103 +14008,74 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", {
14037
14008
  };
14038
14009
  fetch?: RequestInit | undefined;
14039
14010
  }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
14040
- 200: ({
14041
- protocol?: {
14042
- dailyRewards?: number | undefined;
14043
- numberOfLiveCampaigns?: number | undefined;
14044
- opportunityLiveTags?: string[] | undefined;
14045
- name: string;
14046
- description: string;
14047
- id: string;
14048
- url: string;
14049
- icon: string;
14050
- tags: string[];
14051
- } | null | undefined;
14052
- depositUrl?: string | undefined;
14053
- aprRecord?: {
14054
- timestamp: string | bigint;
14055
- cumulated: number;
14056
- breakdowns: {
14057
- 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;
14058
- value: number;
14059
- type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
14060
- identifier: string;
14061
- }[];
14062
- } | undefined;
14063
- 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;
14064
- explorerAddress?: string | undefined;
14065
- tvlRecord?: {
14066
- timestamp: string | bigint;
14067
- total: number;
14068
- breakdowns: {
14069
- value: number;
14070
- type: "TOKEN" | "PROTOCOL";
14071
- identifier: string;
14072
- }[];
14073
- } | undefined;
14074
- rewardsRecord?: {
14075
- timestamp: string | bigint;
14076
- total: number;
14077
- breakdowns: {
14078
- 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;
14079
- token: {
14080
- price?: number | null | undefined;
14081
- symbol: string;
14082
- name: string | null;
14083
- decimals: number;
14084
- address: string;
14085
- id: string;
14086
- chainId: number;
14087
- type: "TOKEN" | "PRETGE" | "POINT";
14088
- icon: string;
14089
- isNative: boolean;
14090
- isTest: boolean;
14091
- verified: boolean;
14092
- };
14093
- campaignId: string;
14094
- value: number;
14095
- amount: string | bigint;
14096
- }[];
14097
- } | undefined;
14098
- name: string;
14099
- apr: number;
14100
- tokens: {
14101
- price?: number | null | undefined;
14102
- symbol: string;
14103
- name: string | null;
14104
- decimals: number;
14105
- address: string;
14106
- id: string;
14107
- chainId: number;
14108
- type: "TOKEN" | "PRETGE" | "POINT";
14109
- icon: string;
14110
- isNative: boolean;
14111
- isTest: boolean;
14112
- verified: boolean;
14113
- }[];
14114
- tvl: number;
14115
- description: string;
14116
- id: string;
14117
- status: string;
14118
- chainId: number;
14119
- action: string;
14120
- type: string;
14121
- chain: {
14122
- explorers?: {
14123
- chainId: number;
14124
- type: "ETHERSCAN" | "BLOCKSCOUT";
14125
- url: string;
14126
- }[] | undefined;
14127
- name: string;
14128
- id: number;
14129
- icon: string;
14130
- };
14131
- identifier: string;
14132
- howToSteps: string[];
14133
- dailyRewards: number;
14134
- tags: string[];
14135
- lastCampaignCreatedAt: number;
14136
- } | null)[];
14011
+ 200: string;
14012
+ 422: {
14013
+ type: "validation";
14014
+ on: string;
14015
+ summary?: string;
14016
+ message?: string;
14017
+ found?: unknown;
14018
+ property?: string;
14019
+ expected?: string;
14020
+ };
14021
+ } | {
14022
+ 200: number;
14023
+ 422: {
14024
+ type: "validation";
14025
+ on: string;
14026
+ summary?: string;
14027
+ message?: string;
14028
+ found?: unknown;
14029
+ property?: string;
14030
+ expected?: string;
14031
+ };
14032
+ } | {
14033
+ 200: false;
14034
+ 422: {
14035
+ type: "validation";
14036
+ on: string;
14037
+ summary?: string;
14038
+ message?: string;
14039
+ found?: unknown;
14040
+ property?: string;
14041
+ expected?: string;
14042
+ };
14043
+ } | {
14044
+ 200: true;
14045
+ 422: {
14046
+ type: "validation";
14047
+ on: string;
14048
+ summary?: string;
14049
+ message?: string;
14050
+ found?: unknown;
14051
+ property?: string;
14052
+ expected?: string;
14053
+ };
14054
+ } | {
14055
+ 200: object;
14056
+ 422: {
14057
+ type: "validation";
14058
+ on: string;
14059
+ summary?: string;
14060
+ message?: string;
14061
+ found?: unknown;
14062
+ property?: string;
14063
+ expected?: string;
14064
+ };
14065
+ } | {
14066
+ [x: string]: any;
14067
+ 200: any;
14068
+ 422: {
14069
+ type: "validation";
14070
+ on: string;
14071
+ summary?: string;
14072
+ message?: string;
14073
+ found?: unknown;
14074
+ property?: string;
14075
+ expected?: string;
14076
+ };
14077
+ } | {
14078
+ 200: unknown;
14137
14079
  422: {
14138
14080
  type: "validation";
14139
14081
  on: string;
@@ -122,5 +122,6 @@ export declare enum Erc20SubType {
122
122
  ichi = "ichi",
123
123
  swapx = "swapx",
124
124
  rooster = "rooster",
125
- ichi_vault = "ichi_vault"
125
+ ichi_vault = "ichi_vault",
126
+ sushiV2 = "sushiV2"
126
127
  }
@@ -2081,103 +2081,74 @@ declare const app: Elysia<"", {
2081
2081
  };
2082
2082
  headers: unknown;
2083
2083
  response: {
2084
- 200: ({
2085
- protocol?: {
2086
- dailyRewards?: number | undefined;
2087
- numberOfLiveCampaigns?: number | undefined;
2088
- opportunityLiveTags?: string[] | undefined;
2089
- name: string;
2090
- description: string;
2091
- id: string;
2092
- url: string;
2093
- icon: string;
2094
- tags: string[];
2095
- } | null | undefined;
2096
- depositUrl?: string | undefined;
2097
- aprRecord?: {
2098
- timestamp: string | bigint;
2099
- cumulated: number;
2100
- breakdowns: {
2101
- 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;
2102
- value: number;
2103
- type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
2104
- identifier: string;
2105
- }[];
2106
- } | undefined;
2107
- 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;
2108
- explorerAddress?: string | undefined;
2109
- tvlRecord?: {
2110
- timestamp: string | bigint;
2111
- total: number;
2112
- breakdowns: {
2113
- value: number;
2114
- type: "TOKEN" | "PROTOCOL";
2115
- identifier: string;
2116
- }[];
2117
- } | undefined;
2118
- rewardsRecord?: {
2119
- timestamp: string | bigint;
2120
- total: number;
2121
- breakdowns: {
2122
- 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;
2123
- token: {
2124
- price?: number | null | undefined;
2125
- symbol: string;
2126
- name: string | null;
2127
- decimals: number;
2128
- address: string;
2129
- id: string;
2130
- chainId: number;
2131
- type: "TOKEN" | "PRETGE" | "POINT";
2132
- icon: string;
2133
- isNative: boolean;
2134
- isTest: boolean;
2135
- verified: boolean;
2136
- };
2137
- campaignId: string;
2138
- value: number;
2139
- amount: string | bigint;
2140
- }[];
2141
- } | undefined;
2142
- name: string;
2143
- apr: number;
2144
- tokens: {
2145
- price?: number | null | undefined;
2146
- symbol: string;
2147
- name: string | null;
2148
- decimals: number;
2149
- address: string;
2150
- id: string;
2151
- chainId: number;
2152
- type: "TOKEN" | "PRETGE" | "POINT";
2153
- icon: string;
2154
- isNative: boolean;
2155
- isTest: boolean;
2156
- verified: boolean;
2157
- }[];
2158
- tvl: number;
2159
- description: string;
2160
- id: string;
2161
- status: string;
2162
- chainId: number;
2163
- action: string;
2164
- type: string;
2165
- chain: {
2166
- explorers?: {
2167
- chainId: number;
2168
- type: "ETHERSCAN" | "BLOCKSCOUT";
2169
- url: string;
2170
- }[] | undefined;
2171
- name: string;
2172
- id: number;
2173
- icon: string;
2174
- };
2175
- identifier: string;
2176
- howToSteps: string[];
2177
- dailyRewards: number;
2178
- tags: string[];
2179
- lastCampaignCreatedAt: number;
2180
- } | null)[];
2084
+ 200: string;
2085
+ 422: {
2086
+ type: "validation";
2087
+ on: string;
2088
+ summary?: string;
2089
+ message?: string;
2090
+ found?: unknown;
2091
+ property?: string;
2092
+ expected?: string;
2093
+ };
2094
+ } | {
2095
+ 200: number;
2096
+ 422: {
2097
+ type: "validation";
2098
+ on: string;
2099
+ summary?: string;
2100
+ message?: string;
2101
+ found?: unknown;
2102
+ property?: string;
2103
+ expected?: string;
2104
+ };
2105
+ } | {
2106
+ 200: false;
2107
+ 422: {
2108
+ type: "validation";
2109
+ on: string;
2110
+ summary?: string;
2111
+ message?: string;
2112
+ found?: unknown;
2113
+ property?: string;
2114
+ expected?: string;
2115
+ };
2116
+ } | {
2117
+ 200: true;
2118
+ 422: {
2119
+ type: "validation";
2120
+ on: string;
2121
+ summary?: string;
2122
+ message?: string;
2123
+ found?: unknown;
2124
+ property?: string;
2125
+ expected?: string;
2126
+ };
2127
+ } | {
2128
+ 200: object;
2129
+ 422: {
2130
+ type: "validation";
2131
+ on: string;
2132
+ summary?: string;
2133
+ message?: string;
2134
+ found?: unknown;
2135
+ property?: string;
2136
+ expected?: string;
2137
+ };
2138
+ } | {
2139
+ [x: string]: any;
2140
+ 200: any;
2141
+ 422: {
2142
+ type: "validation";
2143
+ on: string;
2144
+ summary?: string;
2145
+ message?: string;
2146
+ found?: unknown;
2147
+ property?: string;
2148
+ expected?: string;
2149
+ };
2150
+ } | {
2151
+ 200: unknown;
2181
2152
  422: {
2182
2153
  type: "validation";
2183
2154
  on: string;