-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump @api3/ois to 1.4.0 with necessary zod version bump to 3.20 #1597
Conversation
Renovate bot should take care of this on Monday. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
Unfortunately it looks like |
Also I think Lines 7 to 8 in 524b47d
|
Good catch. I forgot we set this because it needed to be in sync with validator. |
@Siegrift - I fixed most of the issues originating from this "minor" bump, but it won't build until we release a new OIS version because of oisSchema and the I recommend publishing a new OIS minor after api3dao/ois#56, following which I'll update this PR an it can be merged. WDYT? |
- recursive type definition - exact flag for too_big and too_small: colinhacks/zod#1620 - options property of ZodDiscriminatedUnion was renamed to optionsMap: colinhacks/zod#1290 (comment)
Closes #1598. The commit message of the last commit describes the changes made to work with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
export const gasPriceOracleSchema = z | ||
.array(gasPriceOracleStrategySchema) | ||
.nonempty() | ||
.superRefine(validateGasPriceOracleStrategies); | ||
.superRefine((strategies, ctx) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any particular reason for inlining this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes- I inlined this in order to fix a recursive type definition error
Bumps
zod
as in api3dao/ois#54 in order to avoid a zod version mismatch with OIS.