@turtleclub/hooks 0.5.0-beta.85 → 0.5.0-beta.87
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 +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/v2/opportunities/schema.ts +3 -1
- package/src/v2/schemas/shared.ts +11 -0
package/dist/index.cjs
CHANGED
|
@@ -176,6 +176,7 @@ __export(index_exports, {
|
|
|
176
176
|
routerStep: () => routerStep,
|
|
177
177
|
routerSubstep: () => routerSubstep,
|
|
178
178
|
snapshotSchema: () => snapshotSchema,
|
|
179
|
+
stakingConfigSchema: () => stakingConfigSchema,
|
|
179
180
|
stepTx: () => stepTx,
|
|
180
181
|
streamPointSchema: () => streamPointSchema,
|
|
181
182
|
streamSchema: () => streamSchema,
|
|
@@ -488,6 +489,15 @@ var lendingConfigSchema = import_zod2.z.object({
|
|
|
488
489
|
createdAt: import_zod2.z.string().datetime(),
|
|
489
490
|
updatedAt: import_zod2.z.string().datetime()
|
|
490
491
|
});
|
|
492
|
+
var stakingConfigSchema = import_zod2.z.object({
|
|
493
|
+
id: import_zod2.z.string().uuid(),
|
|
494
|
+
protocol: organizationSchema.optional(),
|
|
495
|
+
chainId: import_zod2.z.string().uuid().optional(),
|
|
496
|
+
chain: chainSchema.optional(),
|
|
497
|
+
stakingContractAddress: import_zod2.z.string().optional(),
|
|
498
|
+
createdAt: import_zod2.z.string().datetime(),
|
|
499
|
+
updatedAt: import_zod2.z.string().datetime()
|
|
500
|
+
});
|
|
491
501
|
var paginationMetadataSchema = import_zod2.z.object({
|
|
492
502
|
page: import_zod2.z.number().int().min(1).catch(1),
|
|
493
503
|
limit: import_zod2.z.number().int().min(1).max(100),
|
|
@@ -1294,6 +1304,7 @@ var opportunitySchema = import_zod8.z.object({
|
|
|
1294
1304
|
featuredOrder: import_zod8.z.number().int().optional().nullable(),
|
|
1295
1305
|
originalConfig: import_zod8.z.any().optional().nullable(),
|
|
1296
1306
|
exposures: import_zod8.z.array(import_zod8.z.string()).optional().default([]),
|
|
1307
|
+
tags: import_zod8.z.array(import_zod8.z.any()).optional().default([]),
|
|
1297
1308
|
status: opportunityStatusEnum.optional().default("active"),
|
|
1298
1309
|
statusReason: import_zod8.z.string().optional().default(""),
|
|
1299
1310
|
depositDisabled: import_zod8.z.boolean().optional().default(false),
|
|
@@ -1319,6 +1330,7 @@ var opportunitySchema = import_zod8.z.object({
|
|
|
1319
1330
|
products: import_zod8.z.array(productSchema),
|
|
1320
1331
|
vaultConfig: vaultConfigSchema.optional().nullable(),
|
|
1321
1332
|
lendingConfig: lendingConfigSchema.optional().nullable(),
|
|
1333
|
+
stakingConfig: stakingConfigSchema.optional().nullable(),
|
|
1322
1334
|
mainStream: streamSchema.optional().nullable(),
|
|
1323
1335
|
// Will be deprecated
|
|
1324
1336
|
exposure: import_zod8.z.array(import_zod8.z.string()),
|
|
@@ -4816,6 +4828,7 @@ var queries = (0, import_query_key_factory21.mergeQueryKeys)(
|
|
|
4816
4828
|
routerStep,
|
|
4817
4829
|
routerSubstep,
|
|
4818
4830
|
snapshotSchema,
|
|
4831
|
+
stakingConfigSchema,
|
|
4819
4832
|
stepTx,
|
|
4820
4833
|
streamPointSchema,
|
|
4821
4834
|
streamSchema,
|