Skip to content

Commit

Permalink
feat(proto,autocli): add gov_proposal options to autocli (#18442)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored Nov 10, 2023
1 parent 79c6418 commit 5741c32
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 42 deletions.
154 changes: 112 additions & 42 deletions api/cosmos/autocli/v1/options.pulsar.go

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

8 changes: 8 additions & 0 deletions proto/cosmos/autocli/v1/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ message RpcCommandOptions {

// skip specifies whether to skip this rpc method when generating commands.
bool skip = 12;

// gov_proposal specifies whether autocli should generate a gov proposal transaction for this rpc method.
// Normally autocli generates a transaction containing the message and broadcast it.
// However, when true, autocli generates a proposal transaction containing the message and broadcast it.
// This option is ineffective for query commands.
//
// Since: client/v2 v2.0.0-beta.2
bool gov_proposal = 13;
}

// FlagOptions are options for flags generated from rpc request fields.
Expand Down
1 change: 1 addition & 0 deletions testutil/configurator/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
vestingmodulev1 "cosmossdk.io/api/cosmos/vesting/module/v1"
"cosmossdk.io/core/appconfig"
"cosmossdk.io/depinject"

"github.com/cosmos/cosmos-sdk/testutil"
)

Expand Down

0 comments on commit 5741c32

Please sign in to comment.