@turtleclub/hooks 0.5.0-beta.5 → 0.5.0-beta.7
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/index.cjs +6 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -15
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/v2/schemas/shared.ts +5 -14
package/dist/index.js
CHANGED
|
@@ -118,7 +118,10 @@ var tokenSchema = z.object({
|
|
|
118
118
|
decimals: z.number(),
|
|
119
119
|
logoUrl: z.string().optional(),
|
|
120
120
|
isNative: z.boolean(),
|
|
121
|
-
priceUsd: z.number().optional()
|
|
121
|
+
priceUsd: z.number().optional(),
|
|
122
|
+
price: z.string().optional(),
|
|
123
|
+
amount: z.string().optional(),
|
|
124
|
+
rawAmount: z.string().optional()
|
|
122
125
|
});
|
|
123
126
|
var organizationSchema = z.object({
|
|
124
127
|
id: z.string(),
|
|
@@ -191,20 +194,8 @@ var incentiveSchema = z.object({
|
|
|
191
194
|
tokenSupplyAllocation: z.number().nullable(),
|
|
192
195
|
yield: z.number().nullable()
|
|
193
196
|
});
|
|
194
|
-
var opportunityTypeEnum = z.enum([
|
|
195
|
-
|
|
196
|
-
"lending",
|
|
197
|
-
"staking",
|
|
198
|
-
"stablecoin",
|
|
199
|
-
""
|
|
200
|
-
]);
|
|
201
|
-
var opportunityStatusEnum = z.enum([
|
|
202
|
-
"active",
|
|
203
|
-
"paused",
|
|
204
|
-
"deprecated",
|
|
205
|
-
"draft",
|
|
206
|
-
"ended"
|
|
207
|
-
]);
|
|
197
|
+
var opportunityTypeEnum = z.enum(["vault", "lending", "staking", "stablecoin", ""]);
|
|
198
|
+
var opportunityStatusEnum = z.enum(["active", "paused", "deprecated", "draft", "ended"]);
|
|
208
199
|
var opportunitySchema = z.object({
|
|
209
200
|
id: z.string().uuid().optional(),
|
|
210
201
|
name: z.string(),
|