-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add all of the missing RPC apis #1080
Conversation
// Query contract hash by code id | ||
rpc ContractHashByID (QueryContractHashByIDRequest) returns (QueryContractHashResponse) { | ||
option (google.api.http).get = "/compute/v1beta1/hash/id/{code_id}"; | ||
} | ||
// Query contract key by address | ||
rpc ContractKey(QueryContractKeyRequest) returns (QueryContractKeyResponse) { |
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.
Irrelevant here
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.
Why? it was implemented in the querier but was missed here, If it's irrelevant ill remove it from the querier 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.
Because it's used only inside the enclave, there's no reason to use it outside
option (google.api.http).get = "/compute/v1beta1/key/{address}"; | ||
} | ||
// Query contract address by label | ||
rpc AddressByLabel(QueryContractAddressByLabelRequest) returns (QueryContractAddressByLabelResponse) { |
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.
Should also add the other way around
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.
Working on it in another PR, this PR focus on those APIs that were implemented in the queried but weren't exported by the pb
d527b97
to
74fac1e
Compare
Add missing RPC function and make proto file readable
Replaced by #1130 |
No description provided.