-
Notifications
You must be signed in to change notification settings - Fork 222
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
Get signature endpoint #475
Conversation
Co-authored-by: aaronbuchwald <aaron.buchwald56@gmail.com>
Co-authored-by: aaronbuchwald <aaron.buchwald56@gmail.com>
We should test that this endpoint correctly returns an error both via a CURL request and through the implemented Looking at the implementation, I don't think it will right now because it uses |
plugin/evm/warp_client.go
Outdated
// NewClient returns a Client for interacting with EVM [chain] | ||
func NewWarpClient(uri, chain string) WarpClient { | ||
return &warpClient{ | ||
requester: rpc.NewEndpointRequester(fmt.Sprintf("%s/ext/bc/%s/warp", uri, chain)), |
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.
nit: where is this endpoint from? Do we need the same chainID twice in the endpoint or does one work as well?
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 implementation has been updated since you left this comment, but the endpoint is the same as the eth rpc API, i.e. /rpc
. Methods are denoted by warp_methodName
in the method
field.
I tested this endpoint both with CURL and the warp client struct. I modeled the API after
|
Co-authored-by: Darioush Jalali <darioush.jalali@avalabs.org> Co-authored-by: aaronbuchwald <aaron.buchwald56@gmail.com> Co-authored-by: Ceyhun Onur <ceyhun.onur@avalabs.org> Co-authored-by: cam-schultz <78878559+cam-schultz@users.noreply.github.com>
…vm into get-signature-endpoint
…vm into get-signature-endpoint
Closing in favor of #507 |
Why this should be merged
Adds an endpoint
warp_getSignature
that returns the signature for a given message ID from the warp backend. This will likely be used primarily for testing purposes, but could act as an alternative to VM AppRequests.Fixes #446
How this works
Adds a new
WarpAPI
and methodGetSignature
, and a corresponding clientWarpClient
and method.How this was tested
CI tests. Manual testing via CURL and a standalone app that uses
WarpClient