You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`autocli` supports signing transactions with the keyring.
117
-
The [`cosmos.msg.v1.signer` protobuf annotation](https://github.com/cosmos/cosmos-sdk/blob/9dd34510e27376005e7e7ff3628eab9dbc8ad6dc/docs/build/building-modules/05-protobuf-annotations.md#L9) defines the signer field of the message.
117
+
The [`cosmos.msg.v1.signer` protobuf annotation](https://docs.cosmos.network/main/build/building-modules/protobuf-annotations) defines the signer field of the message.
118
118
This field is automatically filled when using the `--from` flag or defining the signer as a positional argument.
If not set to true, `AutoCLI` will not generate commands for the module if there are already commands registered for the module (when `GetTxCmd()` or `GetQueryCmd()` are defined).
201
201
202
+
### Skip a command
203
+
204
+
AutoCLI automatically skips unsupported commands when [`cosmos_proto.method_added_in` protobuf annotation](https://docs.cosmos.network/main/build/building-modules/protobuf-annotations) is present.
205
+
206
+
Additionally, a command can be manually skipped using the `autocliv1.RpcCommandOptions`:
207
+
208
+
```go
209
+
*autocliv1.RpcCommandOptions{
210
+
RpcMethod: "Params", // The name of the gRPC service
211
+
Skip: true,
212
+
}
213
+
```
214
+
202
215
### Use AutoCLI for non module commands
203
216
204
217
It is possible to use `AutoCLI` for non module commands. The trick is still to implement the `appmodule.Module` interface and append it to the `appOptions.ModuleOptions` map.
@@ -220,14 +233,16 @@ For more information on `hubl`, including how to configure a new chain and query
220
233
# Off-Chain
221
234
222
235
Off-chain functionalities allow you to sign and verify files with two commands:
223
-
+`sign-file` for signing a file.
224
-
+`verify-file` for verifying a previously signed file.
236
+
237
+
*`sign-file` for signing a file.
238
+
*`verify-file` for verifying a previously signed file.
225
239
226
240
Signing a file will result in a Tx with a `MsgSignArbitraryData` as described in the [Off-chain CIP](https://github.com/cosmos/cips/blob/main/cips/cip-X.md).
227
241
228
242
## Sign a file
229
243
230
244
To sign a file `sign-file` command offers some helpful flags:
245
+
231
246
```text
232
247
--encoding string Choose an encoding method for the file content to be added as msg data (no-encoding|base64|hex) (default "no-encoding")
233
248
--indent string Choose an indent for the tx (default " ")
@@ -237,26 +252,32 @@ To sign a file `sign-file` command offers some helpful flags:
237
252
```
238
253
239
254
The `encoding` flag lets you choose how the contents of the file should be encoded. For example:
0 commit comments