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

Merged
merged 7 commits into from
Aug 23, 2022

Conversation

liorbond
Copy link
Contributor

No description provided.

// 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) {
Copy link
Member

Choose a reason for hiding this comment

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

Irrelevant here

Copy link
Contributor Author

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.

Copy link
Member

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) {
Copy link
Member

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

Copy link
Contributor Author

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

@liorbond liorbond force-pushed the lior-expose-all-in-rpc branch from d527b97 to 74fac1e Compare August 23, 2022 16:56
Lior Bondarevski and others added 2 commits August 23, 2022 22:59
Add missing RPC function and make proto file readable
@liorbond liorbond merged commit 4578317 into lior-add-code-hash-by-id Aug 23, 2022
@liorbond liorbond deleted the lior-expose-all-in-rpc branch August 23, 2022 20:04
@assafmo
Copy link
Member

assafmo commented Sep 6, 2022

Replaced by #1130

@assafmo assafmo mentioned this pull request Sep 6, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants