-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(utils): adds the complete action type #408
Conversation
🦋 Changeset detectedLatest commit: ddbfdc1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 49 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
COMPLETE | ||
*/ | ||
export type CompleteActionParams = { | ||
boostId?: string |
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.
I think we will also want to take in the chainId as an actionParam.
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.
Im not sure if we can make it work for all networks at the same time?
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.
I added chainId
as optional. It should allow us to enable for all networks. Will update if we need to enforce a chainId
packages/utils/src/types/actions.ts
Outdated
actionType?: string | ||
} | ||
|
||
export const CompleteActionFormSchema = z.object({}) |
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.
The form schema is for the inputs we want to take in on manager, (at least this is how I understand it)
So we are going to want to have optional fields here for boostId and actionType
packages/utils/src/types/actions.ts
Outdated
boostId: z.string().optional(), | ||
actionType: z.string().optional(), | ||
}) | ||
.refine((data) => data.boostId != null || data.actionType != null, { |
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.
We want the chainId
in here also (assuming we want to add it to actionParams)
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.
Looks good 🚢
Adds the
Complete
Action Type