github.com/cosmos/cosmos-sdk@v0.50.10/x/auth/vesting/autocli.go (about) 1 package vesting 2 3 import ( 4 autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" 5 vestingv1beta1 "cosmossdk.io/api/cosmos/vesting/v1beta1" 6 ) 7 8 // AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. 9 func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { 10 return &autocliv1.ModuleOptions{ 11 Tx: &autocliv1.ServiceCommandDescriptor{ 12 Service: vestingv1beta1.Msg_ServiceDesc.ServiceName, 13 RpcCommandOptions: []*autocliv1.RpcCommandOptions{ 14 { 15 RpcMethod: "CreateVestingAccount", 16 Use: "create-vesting-account [to_address] [end_time] [amount]", 17 Short: "Create a new vesting account funded with an allocation of tokens.", 18 Long: `Create a new vesting account funded with an allocation of tokens. The 19 account can either be a delayed or continuous vesting account, which is determined 20 by the '--delayed' flag. All vesting accounts created will have their start time 21 set by the committed block's time. The end_time must be provided as a UNIX epoch 22 timestamp.`, 23 PositionalArgs: []*autocliv1.PositionalArgDescriptor{ 24 {ProtoField: "to_address"}, 25 {ProtoField: "end_time"}, 26 {ProtoField: "amount", Varargs: true}, 27 }, 28 FlagOptions: map[string]*autocliv1.FlagOptions{ 29 "delayed": {Name: "delayed", Usage: "Create a delayed vesting account if true"}, 30 }, 31 }, 32 { 33 RpcMethod: "CreatePermanentLockedAccount", 34 Use: "create-permanent-locked-account [to_address] [amount]", 35 Short: "Create a new permanently locked account funded with an allocation of tokens.", 36 Long: `Create a new account funded with an allocation of permanently locked tokens. 37 These tokens may be used for staking but are non-transferable. Staking rewards will acrue as liquid and transferable tokens.`, 38 PositionalArgs: []*autocliv1.PositionalArgDescriptor{ 39 {ProtoField: "to_address"}, 40 {ProtoField: "amount", Varargs: true}, 41 }, 42 }, 43 }, 44 EnhanceCustomCommand: false, // use custom commands only until v0.51 45 }, 46 } 47 }