-
Notifications
You must be signed in to change notification settings - Fork 79
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
add simulation type param #304
Conversation
Modular Account V2 Integration
simulationType?: SimulationType; | ||
}; | ||
|
||
export type SimulationType = "validation" | "validation_and_execution"; |
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.
can we make this proper enums? and options as all uppercase
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.
Want to avoid the enums as it makes the code large, client have to import the enum from types and then pass it EnumName.Value, meanwhile this will be autofill in string. The values are also not that large, just two possible cases.
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.
reviewed
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.
left more comments
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.
approving for publishing in devx
Latency Optimisations for buildUserOp
If someone wants to have this call data check on their end for every transaction we have enabled more parameters in our eth_sendUserOperation to pass in a simulation_type an example curl for this: https://gist.github.com/arcticfloyd1984/26efb6099efc651d2cf064340c67c6db.