Skip to content

Commit

Permalink
🧹 CLI: Add missing schema [3/N] (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista authored Jul 17, 2024
1 parent 059fbc8 commit 8ed825a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/selfish-tables-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@layerzerolabs/ua-devtools": patch
---

Add OAppOmniGraphSchema to ua-devtools
14 changes: 13 additions & 1 deletion packages/ua-devtools/src/oapp/schema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { z } from 'zod'
import { AddressSchema, UIntBigIntSchema, UIntNumberSchema } from '@layerzerolabs/devtools'
import {
AddressSchema,
createOmniEdgeSchema,
createOmniGraphSchema,
createOmniNodeSchema,
UIntBigIntSchema,
UIntNumberSchema,
} from '@layerzerolabs/devtools'
import { Uln302ExecutorConfigSchema, Uln302UlnUserConfigSchema, TimeoutSchema } from '@layerzerolabs/protocol-devtools'
import {
ExecutorComposeOption,
Expand Down Expand Up @@ -88,3 +95,8 @@ export const OAppEdgeConfigSchema = z
// We'll pass all unknown properties through without validating them
.passthrough()
.partial() satisfies z.ZodSchema<OAppEdgeConfig, z.ZodTypeDef, unknown>

export const OAppOmniGraphSchema = createOmniGraphSchema(
createOmniNodeSchema(OAppNodeConfigSchema),
createOmniEdgeSchema(OAppEdgeConfigSchema)
)

0 comments on commit 8ed825a

Please sign in to comment.