forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
922 additions
and
994 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package accounts | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/cosmos/cosmos-sdk/version" | ||
|
||
accountsv1 "cosmossdk.io/api/cosmos/accounts/v1" | ||
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" | ||
) | ||
|
||
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. | ||
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { | ||
return &autocliv1.ModuleOptions{ | ||
Query: &autocliv1.ServiceCommandDescriptor{ | ||
Service: accountsv1.Query_ServiceDesc.ServiceName, | ||
RpcCommandOptions: []*autocliv1.RpcCommandOptions{ | ||
{ | ||
RpcMethod: "AccountQuery", | ||
Use: "query <account-address> <query-request-type-url> <json-message>", | ||
Short: "Query account state", | ||
Example: fmt.Sprintf(`%s q accounts query cosmos1uds6tz96dxfllz7tz3s3tm8tlg6x95g0mc2987sx6psjz98qlpss89sheu cosmos.accounts.defaults.multisig.v1.QueryProposal '{"proposal_id":1}`, version.AppName), | ||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{ | ||
{ProtoField: "target"}, | ||
{ProtoField: "query_request_type_url"}, | ||
{ProtoField: "json_message"}, | ||
}, | ||
}, | ||
}, | ||
EnhanceCustomCommand: true, | ||
}, | ||
Tx: &autocliv1.ServiceCommandDescriptor{ | ||
Service: accountsv1.Msg_ServiceDesc.ServiceName, | ||
RpcCommandOptions: []*autocliv1.RpcCommandOptions{ | ||
{ | ||
RpcMethod: "Init", | ||
Use: "init <account-type> <json-message>", | ||
Short: "Initialize a new account", | ||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{ | ||
{ProtoField: "sender"}, | ||
{ProtoField: "account_type"}, | ||
{ProtoField: "json_message"}, | ||
{ProtoField: "funds", Varargs: true}, | ||
}, | ||
}, | ||
{ | ||
RpcMethod: "Execute", | ||
Use: "execute <account-address> <execute-msg-type-url> <json-message>", | ||
Short: "Execute state transition to account", | ||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{ | ||
{ProtoField: "sender"}, | ||
{ProtoField: "target"}, | ||
{ProtoField: "execute_msg_type_url"}, | ||
{ProtoField: "json_message"}, | ||
{ProtoField: "funds", Varargs: true}, | ||
}, | ||
}, | ||
}, | ||
EnhanceCustomCommand: true, | ||
}, | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.