@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@turtleclub/hooks",
3
3
  "type": "module",
4
- "version": "0.5.0-beta.5",
4
+ "version": "0.5.0-beta.7",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": {
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "7afd1f23d40ef0617af745b33364e7c252c46b04"
57
+ "gitHead": "26d549f939bdecd27b6cdc8677de38ea6f334dbf"
58
58
  }
@@ -21,6 +21,9 @@ export const tokenSchema = z.object({
21
21
  logoUrl: z.string().optional(),
22
22
  isNative: z.boolean(),
23
23
  priceUsd: z.number().optional(),
24
+ price: z.string().optional(),
25
+ amount: z.string().optional(),
26
+ rawAmount: z.string().optional(),
24
27
  });
25
28
 
26
29
  export const organizationSchema = z.object({
@@ -102,22 +105,10 @@ export const incentiveSchema = z.object({
102
105
  });
103
106
 
104
107
  // Opportunity Type Enum
105
- const opportunityTypeEnum = z.enum([
106
- 'vault',
107
- 'lending',
108
- 'staking',
109
- 'stablecoin',
110
- '',
111
- ])
108
+ const opportunityTypeEnum = z.enum(["vault", "lending", "staking", "stablecoin", ""]);
112
109
 
113
110
  // Opportunity Status Enum
114
- const opportunityStatusEnum = z.enum([
115
- 'active',
116
- 'paused',
117
- 'deprecated',
118
- 'draft',
119
- 'ended',
120
- ])
111
+ const opportunityStatusEnum = z.enum(["active", "paused", "deprecated", "draft", "ended"]);
121
112
 
122
113
  // Main Opportunity Schema - matching backend API exactly
123
114
  export const opportunitySchema = z.object({