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

chore: Add HC-AA docs #197

Merged
merged 4 commits into from
Jun 6, 2024
Merged

chore: Add HC-AA docs #197

merged 4 commits into from
Jun 6, 2024

Conversation

wsdt
Copy link
Collaborator

@wsdt wsdt commented Jun 2, 2024

Documentation

of the new Hybrid Compute within AA

wsdt and others added 2 commits June 3, 2024 15:33
Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>
Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>
'verificationGasLimit': "0x10000",
'preVerificationGas': "0x10000",
}
callGas = 705*len(resp_payload) + 170000

Choose a reason for hiding this comment

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

Note that this gas calculation is subject to change. I will be adding a version flag to the RPC request so that we can manage changes to the protocol, and moving some of this code into a library so that users won't have to deal with all of the complexity directly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

noted, thx!

{
"jsonrpc":"2.0",
"id":0,
"method":"ASD97e0d7ba",

Choose a reason for hiding this comment

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

One question I have is whether it makes sense to implement the JSON-RPC "method" like this, or whether people would prefer to call it something fixed like "eth.offchain" and put the function selector into its own field as part of the request params. Opinions are welcome.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes the more cleartext the better imho.

@wsdt wsdt merged commit 1c609e4 into develop Jun 6, 2024
73 checks passed
@wsdt wsdt deleted the wsdt/aa-hc-docs branch June 6, 2024 13:20
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.

3 participants