Skip to content
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

Merged
merged 5 commits into from
May 22, 2024

Conversation

jonathandiep
Copy link
Contributor

Adds the Complete Action Type

@jonathandiep jonathandiep requested a review from a team as a code owner May 22, 2024 22:10
Copy link

changeset-bot bot commented May 22, 2024

🦋 Changeset detected

Latest commit: ddbfdc1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 49 packages
Name Type
@rabbitholegg/questdk-plugin-registry Patch
@rabbitholegg/questdk-plugin-utils Patch
@rabbitholegg/questdk Patch
@rabbitholegg/questdk-plugin-across Patch
@rabbitholegg/questdk-plugin-aerodrome Patch
@rabbitholegg/questdk-plugin-artblocks Patch
@rabbitholegg/questdk-plugin-balancer Patch
@rabbitholegg/questdk-plugin-base Patch
@rabbitholegg/questdk-plugin-basepaint Patch
@rabbitholegg/questdk-plugin-boost Patch
@rabbitholegg/questdk-plugin-camelot Patch
@rabbitholegg/questdk-plugin-connext Patch
@rabbitholegg/questdk-plugin-fabric Patch
@rabbitholegg/questdk-plugin-gmx Patch
@rabbitholegg/questdk-plugin-handlefi Patch
@rabbitholegg/questdk-plugin-hop Patch
@rabbitholegg/questdk-plugin-hyphen Patch
@rabbitholegg/questdk-plugin-jojo Patch
@rabbitholegg/questdk-plugin-kote Patch
@rabbitholegg/questdk-plugin-kwenta Patch
@rabbitholegg/questdk-plugin-llama Patch
@rabbitholegg/questdk-plugin-manifold Patch
@rabbitholegg/questdk-plugin-mirror Patch
@rabbitholegg/questdk-plugin-mux Patch
@rabbitholegg/questdk-plugin-neynar Patch
@rabbitholegg/questdk-plugin-okutrade Patch
@rabbitholegg/questdk-plugin-optimism Patch
@rabbitholegg/questdk-plugin-orbit Patch
@rabbitholegg/questdk-plugin-paragraph Patch
@rabbitholegg/questdk-plugin-paraswap Patch
@rabbitholegg/questdk-plugin-pendle Patch
@rabbitholegg/questdk-plugin-pods Patch
@rabbitholegg/questdk-plugin-polygon Patch
@rabbitholegg/questdk-plugin-rabbithole Patch
@rabbitholegg/questdk-plugin-soundxyz Patch
@rabbitholegg/questdk-plugin-stargate Patch
@rabbitholegg/questdk-plugin-superbridge Patch
@rabbitholegg/questdk-plugin-sushi Patch
@rabbitholegg/questdk-plugin-symbiosis Patch
@rabbitholegg/questdk-plugin-synapse Patch
@rabbitholegg/questdk-plugin-tally Patch
@rabbitholegg/questdk-plugin-thruster Patch
@rabbitholegg/questdk-plugin-titles Patch
@rabbitholegg/questdk-plugin-traderjoe Patch
@rabbitholegg/questdk-plugin-treasure Patch
@rabbitholegg/questdk-plugin-uniswap Patch
@rabbitholegg/questdk-plugin-vela Patch
@rabbitholegg/questdk-plugin-woofi Patch
@rabbitholegg/questdk-plugin-zora Patch

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
Copy link
Collaborator

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.

Copy link
Collaborator

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?

Copy link
Contributor Author

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

actionType?: string
}

export const CompleteActionFormSchema = z.object({})
Copy link
Collaborator

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

boostId: z.string().optional(),
actionType: z.string().optional(),
})
.refine((data) => data.boostId != null || data.actionType != null, {
Copy link
Collaborator

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)

Copy link
Collaborator

@mmackz mmackz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚢

@jonathandiep jonathandiep merged commit 2a1a9dc into main May 22, 2024
9 checks passed
@jonathandiep jonathandiep deleted the jon/complete-action-type branch May 22, 2024 22:58
This was referenced May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants