-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(cli): add acc-address by id cli and grpc gateway api #12199
Changes from 14 commits
a5dacd7
079672a
56cf063
1ffcd11
cd01232
96d3cef
905caf6
aa7ff0b
c828ca1
120608e
877a4ca
09b2be6
4cdb80b
a00e900
3fd656b
455e023
3d4d281
74857f8
4bf1320
1eb42c9
743413a
4ec4d3d
021b8ea
fa633b1
bde0701
2219c56
4f22f86
edf7846
e1dbedb
9da2cc3
ce0d710
858aba9
4bef7c2
cf7e8cf
1b4b6e3
cd70f4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,11 @@ service Query { | |
option (google.api.http).get = "/cosmos/auth/v1beta1/accounts/{address}"; | ||
} | ||
|
||
// AccountAddressByID returns account address based on account id | ||
rpc AccountAddressByID(QueryAccountAddressByIDRequest) returns (QueryAccountAddressByIDResponse) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I would call it |
||
option (google.api.http).get = "/cosmos/auth/v1beta1/address_by_id/{id}"; | ||
} | ||
|
||
// Params queries all parameters. | ||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { | ||
option (google.api.http).get = "/cosmos/auth/v1beta1/params"; | ||
|
@@ -152,3 +157,13 @@ message AddressStringToBytesRequest { | |
message AddressStringToBytesResponse { | ||
bytes address_bytes = 1; | ||
} | ||
|
||
// QueryAccountAddressByIDRequest is the request type for AccountAddressById rpc method | ||
alexanderbez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
message QueryAccountAddressByIDRequest{ | ||
int64 id = 1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this int64, when account_number is uint64 everywhere? |
||
} | ||
|
||
// QueryAccountAddressByIDResponse is the response type for AccountAddressById rpc method | ||
alexanderbez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
message QueryAccountAddressByIDResponse { | ||
string account_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would rename this field to |
||
} |
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.
This is missing a Since proto comment