Skip to content

Commit

Permalink
Proto formats and nits
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding committed Dec 16, 2024
1 parent 81bb5f3 commit 02c6cb5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,38 @@ import { Params, ParamsSDKType } from "./params";
import { AccountAuthenticator, AccountAuthenticatorSDKType } from "./models";
import * as _m0 from "protobufjs/minimal";
import { DeepPartial, Long } from "../../helpers";
/** AccountStateResponse is request type for the Query/AccountState RPC method. */
/** AccountStateRequest is request type for the Query/AccountState RPC method. */

export interface AccountStateRequest {
/** AccountStateResponse is request type for the Query/AccountState RPC method. */
/** AccountStateRequest is request type for the Query/AccountState RPC method. */
address: string;
}
/** AccountStateResponse is request type for the Query/AccountState RPC method. */
/** AccountStateRequest is request type for the Query/AccountState RPC method. */

export interface AccountStateRequestSDKType {
/** AccountStateResponse is request type for the Query/AccountState RPC method. */
/** AccountStateRequest is request type for the Query/AccountState RPC method. */
address: string;
}
/**
* GetAccountStateResponse is response type for the Query/GetAccountState RPC
* AccountStateResponse is response type for the Query/GetAccountState RPC
* method.
*/

export interface AccountStateResponse {
/**
* GetAccountStateResponse is response type for the Query/GetAccountState RPC
* AccountStateResponse is response type for the Query/GetAccountState RPC
* method.
*/
accountState?: AccountState;
}
/**
* GetAccountStateResponse is response type for the Query/GetAccountState RPC
* AccountStateResponse is response type for the Query/GetAccountState RPC
* method.
*/

export interface AccountStateResponseSDKType {
/**
* GetAccountStateResponse is response type for the Query/GetAccountState RPC
* AccountStateResponse is response type for the Query/GetAccountState RPC
* method.
*/
account_state?: AccountStateSDKType;
Expand Down
4 changes: 2 additions & 2 deletions proto/dydxprotocol/accountplus/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ service Query {
}
}

// AccountStateResponse is request type for the Query/AccountState RPC method.
// AccountStateRequest is request type for the Query/AccountState RPC method.
message AccountStateRequest { string address = 1; }

// GetAccountStateResponse is response type for the Query/GetAccountState RPC
// AccountStateResponse is response type for the Query/GetAccountState RPC
// method.
message AccountStateResponse { AccountState account_state = 1; }

Expand Down
2 changes: 1 addition & 1 deletion protocol/x/accountplus/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func CmdQueryGetAllAuthenticators() *cobra.Command {
func CmdQueryAccountState() *cobra.Command {
cmd := &cobra.Command{
Use: "account-state [address]",
Short: "Geta account state for an address",
Short: "Get account state for an address",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
Expand Down
2 changes: 1 addition & 1 deletion protocol/x/accountplus/keeper/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*t
return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil
}

// GetAccountState returns the x/accountplus account state for an address
// AccountState returns the x/accountplus account state for an address
func (k Keeper) AccountState(
ctx context.Context,
request *types.AccountStateRequest,
Expand Down
5 changes: 3 additions & 2 deletions protocol/x/accountplus/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02c6cb5

Please sign in to comment.