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.
stake CLI various fixes, confirmed working
- Loading branch information
1 parent
4572373
commit c80b967
Showing
8 changed files
with
164 additions
and
172 deletions.
There are no files selected for viewing
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
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,41 @@ | ||
package commands | ||
|
||
import ( | ||
flag "github.com/spf13/pflag" | ||
) | ||
|
||
// nolint | ||
const ( | ||
FlagAddressDelegator = "address-delegator" | ||
FlagAddressCandidate = "address-candidate" | ||
FlagPubKey = "pubkey" | ||
FlagAmount = "amount" | ||
FlagShares = "shares" | ||
|
||
FlagMoniker = "moniker" | ||
FlagIdentity = "keybase-sig" | ||
FlagWebsite = "website" | ||
FlagDetails = "details" | ||
) | ||
|
||
// common flagsets to add to various functions | ||
var ( | ||
fsPk = flag.NewFlagSet("", flag.ContinueOnError) | ||
fsAmount = flag.NewFlagSet("", flag.ContinueOnError) | ||
fsShares = flag.NewFlagSet("", flag.ContinueOnError) | ||
fsDescription = flag.NewFlagSet("", flag.ContinueOnError) | ||
fsCandidate = flag.NewFlagSet("", flag.ContinueOnError) | ||
fsDelegator = flag.NewFlagSet("", flag.ContinueOnError) | ||
) | ||
|
||
func init() { | ||
fsPk.String(FlagPubKey, "", "PubKey of the validator-candidate") | ||
fsAmount.String(FlagAmount, "1fermion", "Amount of coins to bond") | ||
fsShares.String(FlagShares, "", "Amount of shares to unbond, either in decimal or keyword MAX (ex. 1.23456789, 99, MAX)") | ||
fsDescription.String(FlagMoniker, "", "validator-candidate name") | ||
fsDescription.String(FlagIdentity, "", "optional keybase signature") | ||
fsDescription.String(FlagWebsite, "", "optional website") | ||
fsDescription.String(FlagDetails, "", "optional details") | ||
fsCandidate.String(FlagAddressCandidate, "", "hex address of the validator/candidate") | ||
fsDelegator.String(FlagAddressDelegator, "", "hex address of the delegator") | ||
} |
Oops, something went wrong.