Made all flag names public
This commit is contained in:
parent
28f6a20a98
commit
cb4f6a4bca
|
@ -6,13 +6,13 @@ import (
|
|||
|
||||
// start flags
|
||||
var (
|
||||
addrFlag = cli.StringFlag{
|
||||
AddrFlag = cli.StringFlag{
|
||||
Name: "address",
|
||||
Value: "tcp://0.0.0.0:46658",
|
||||
Usage: "Listen address",
|
||||
}
|
||||
|
||||
eyesFlag = cli.StringFlag{
|
||||
EyesFlag = cli.StringFlag{
|
||||
Name: "eyes",
|
||||
Value: "local",
|
||||
Usage: "MerkleEyes address, or 'local' for embedded",
|
||||
|
@ -21,23 +21,23 @@ var (
|
|||
// TODO: move to config file
|
||||
// eyesCacheSizePtr := flag.Int("eyes-cache-size", 10000, "MerkleEyes db cache size, for embedded")
|
||||
|
||||
dirFlag = cli.StringFlag{
|
||||
DirFlag = cli.StringFlag{
|
||||
Name: "dir",
|
||||
Value: ".",
|
||||
Usage: "Root directory",
|
||||
}
|
||||
|
||||
inProcTMFlag = cli.BoolFlag{
|
||||
InProcTMFlag = cli.BoolFlag{
|
||||
Name: "in-proc",
|
||||
Usage: "Run Tendermint in-process with the App",
|
||||
}
|
||||
|
||||
ibcPluginFlag = cli.BoolFlag{
|
||||
IbcPluginFlag = cli.BoolFlag{
|
||||
Name: "ibc-plugin",
|
||||
Usage: "Enable the ibc plugin",
|
||||
}
|
||||
|
||||
counterPluginFlag = cli.BoolFlag{
|
||||
CounterPluginFlag = cli.BoolFlag{
|
||||
Name: "counter-plugin",
|
||||
Usage: "Enable the counter plugin",
|
||||
}
|
||||
|
@ -46,73 +46,73 @@ var (
|
|||
// tx flags
|
||||
|
||||
var (
|
||||
nodeFlag = cli.StringFlag{
|
||||
NodeFlag = cli.StringFlag{
|
||||
Name: "node",
|
||||
Value: "tcp://localhost:46657",
|
||||
Usage: "Tendermint RPC address",
|
||||
}
|
||||
|
||||
toFlag = cli.StringFlag{
|
||||
ToFlag = cli.StringFlag{
|
||||
Name: "to",
|
||||
Value: "",
|
||||
Usage: "Destination address for the transaction",
|
||||
}
|
||||
|
||||
amountFlag = cli.IntFlag{
|
||||
AmountFlag = cli.IntFlag{
|
||||
Name: "amount",
|
||||
Value: 0,
|
||||
Usage: "Amount of coins to send in the transaction",
|
||||
}
|
||||
|
||||
fromFlag = cli.StringFlag{
|
||||
FromFlag = cli.StringFlag{
|
||||
Name: "from",
|
||||
Value: "priv_validator.json",
|
||||
Usage: "Path to a private key to sign the transaction",
|
||||
}
|
||||
|
||||
seqFlag = cli.IntFlag{
|
||||
SeqFlag = cli.IntFlag{
|
||||
Name: "sequence",
|
||||
Value: 0,
|
||||
Usage: "Sequence number for the account",
|
||||
}
|
||||
|
||||
coinFlag = cli.StringFlag{
|
||||
CoinFlag = cli.StringFlag{
|
||||
Name: "coin",
|
||||
Value: "blank",
|
||||
Usage: "Specify a coin denomination",
|
||||
}
|
||||
|
||||
gasFlag = cli.IntFlag{
|
||||
GasFlag = cli.IntFlag{
|
||||
Name: "gas",
|
||||
Value: 0,
|
||||
Usage: "The amount of gas for the transaction",
|
||||
}
|
||||
|
||||
feeFlag = cli.IntFlag{
|
||||
FeeFlag = cli.IntFlag{
|
||||
Name: "fee",
|
||||
Value: 0,
|
||||
Usage: "The transaction fee",
|
||||
}
|
||||
|
||||
dataFlag = cli.StringFlag{
|
||||
DataFlag = cli.StringFlag{
|
||||
Name: "data",
|
||||
Value: "",
|
||||
Usage: "Data to send with the transaction",
|
||||
}
|
||||
|
||||
nameFlag = cli.StringFlag{
|
||||
NameFlag = cli.StringFlag{
|
||||
Name: "name",
|
||||
Value: "",
|
||||
Usage: "Plugin to send the transaction to",
|
||||
}
|
||||
|
||||
chainIDFlag = cli.StringFlag{
|
||||
ChainIDFlag = cli.StringFlag{
|
||||
Name: "chain_id",
|
||||
Value: "test_chain_id",
|
||||
Usage: "ID of the chain for replay protection",
|
||||
}
|
||||
|
||||
validFlag = cli.BoolFlag{
|
||||
ValidFlag = cli.BoolFlag{
|
||||
Name: "valid",
|
||||
Usage: "Set valid field in CounterTx",
|
||||
}
|
||||
|
@ -120,73 +120,73 @@ var (
|
|||
|
||||
// ibc flags
|
||||
var (
|
||||
ibcChainIDFlag = cli.StringFlag{
|
||||
IbcChainIDFlag = cli.StringFlag{
|
||||
Name: "chain_id",
|
||||
Usage: "ChainID for the new blockchain",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcGenesisFlag = cli.StringFlag{
|
||||
IbcGenesisFlag = cli.StringFlag{
|
||||
Name: "genesis",
|
||||
Usage: "Genesis file for the new blockchain",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcHeaderFlag = cli.StringFlag{
|
||||
IbcHeaderFlag = cli.StringFlag{
|
||||
Name: "header",
|
||||
Usage: "Block header for an ibc update",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcCommitFlag = cli.StringFlag{
|
||||
IbcCommitFlag = cli.StringFlag{
|
||||
Name: "commit",
|
||||
Usage: "Block commit for an ibc update",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcFromFlag = cli.StringFlag{
|
||||
IbcFromFlag = cli.StringFlag{
|
||||
Name: "from",
|
||||
Usage: "Source ChainID",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcToFlag = cli.StringFlag{
|
||||
IbcToFlag = cli.StringFlag{
|
||||
Name: "to",
|
||||
Usage: "Destination ChainID",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcTypeFlag = cli.StringFlag{
|
||||
IbcTypeFlag = cli.StringFlag{
|
||||
Name: "type",
|
||||
Usage: "IBC packet type (eg. coin)",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcPayloadFlag = cli.StringFlag{
|
||||
IbcPayloadFlag = cli.StringFlag{
|
||||
Name: "payload",
|
||||
Usage: "IBC packet payload",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcPacketFlag = cli.StringFlag{
|
||||
IbcPacketFlag = cli.StringFlag{
|
||||
Name: "packet",
|
||||
Usage: "hex-encoded IBC packet",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcProofFlag = cli.StringFlag{
|
||||
IbcProofFlag = cli.StringFlag{
|
||||
Name: "proof",
|
||||
Usage: "hex-encoded proof of IBC packet from source chain",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
ibcSequenceFlag = cli.IntFlag{
|
||||
IbcSequenceFlag = cli.IntFlag{
|
||||
Name: "sequence",
|
||||
Usage: "sequence number for IBC packet",
|
||||
Value: 0,
|
||||
}
|
||||
|
||||
ibcHeightFlag = cli.IntFlag{
|
||||
IbcHeightFlag = cli.IntFlag{
|
||||
Name: "height",
|
||||
Usage: "Height the packet became egress in source chain",
|
||||
Value: 0,
|
||||
|
@ -195,25 +195,25 @@ var (
|
|||
|
||||
// proof flags
|
||||
var (
|
||||
proofFlag = cli.StringFlag{
|
||||
ProofFlag = cli.StringFlag{
|
||||
Name: "proof",
|
||||
Usage: "hex-encoded IAVL proof",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
keyFlag = cli.StringFlag{
|
||||
KeyFlag = cli.StringFlag{
|
||||
Name: "key",
|
||||
Usage: "key to the IAVL tree",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
valueFlag = cli.StringFlag{
|
||||
ValueFlag = cli.StringFlag{
|
||||
Name: "value",
|
||||
Usage: "value in the IAVL tree",
|
||||
Value: "",
|
||||
}
|
||||
|
||||
rootFlag = cli.StringFlag{
|
||||
RootFlag = cli.StringFlag{
|
||||
Name: "root",
|
||||
Usage: "root hash of the IAVL tree",
|
||||
Value: "",
|
||||
|
|
|
@ -21,19 +21,19 @@ var (
|
|||
Name: "ibc",
|
||||
Usage: "Send a transaction to the interblockchain (ibc) plugin",
|
||||
Flags: []cli.Flag{
|
||||
nodeFlag,
|
||||
chainIDFlag,
|
||||
NodeFlag,
|
||||
ChainIDFlag,
|
||||
|
||||
fromFlag,
|
||||
FromFlag,
|
||||
|
||||
amountFlag,
|
||||
coinFlag,
|
||||
gasFlag,
|
||||
feeFlag,
|
||||
seqFlag,
|
||||
AmountFlag,
|
||||
CoinFlag,
|
||||
GasFlag,
|
||||
FeeFlag,
|
||||
SeqFlag,
|
||||
|
||||
nameFlag,
|
||||
dataFlag,
|
||||
NameFlag,
|
||||
DataFlag,
|
||||
},
|
||||
Subcommands: []cli.Command{
|
||||
IbcRegisterTxCmd,
|
||||
|
@ -49,8 +49,8 @@ var (
|
|||
return cmdIBCRegisterTx(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
ibcChainIDFlag,
|
||||
ibcGenesisFlag,
|
||||
IbcChainIDFlag,
|
||||
IbcGenesisFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -61,8 +61,8 @@ var (
|
|||
return cmdIBCUpdateTx(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
ibcHeaderFlag,
|
||||
ibcCommitFlag,
|
||||
IbcHeaderFlag,
|
||||
IbcCommitFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -85,11 +85,11 @@ var (
|
|||
return cmdIBCPacketCreateTx(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
ibcFromFlag,
|
||||
ibcToFlag,
|
||||
ibcTypeFlag,
|
||||
ibcPayloadFlag,
|
||||
ibcSequenceFlag,
|
||||
IbcFromFlag,
|
||||
IbcToFlag,
|
||||
IbcTypeFlag,
|
||||
IbcPayloadFlag,
|
||||
IbcSequenceFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -100,10 +100,10 @@ var (
|
|||
return cmdIBCPacketPostTx(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
ibcFromFlag,
|
||||
ibcHeightFlag,
|
||||
ibcPacketFlag,
|
||||
ibcProofFlag,
|
||||
IbcFromFlag,
|
||||
IbcHeightFlag,
|
||||
IbcPacketFlag,
|
||||
IbcProofFlag,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
|
@ -23,7 +23,7 @@ var (
|
|||
return cmdQuery(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
nodeFlag,
|
||||
NodeFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ var (
|
|||
return cmdAccount(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
nodeFlag,
|
||||
NodeFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ var (
|
|||
return cmdBlock(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
nodeFlag,
|
||||
NodeFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -58,10 +58,10 @@ var (
|
|||
return cmdVerify(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
proofFlag,
|
||||
keyFlag,
|
||||
valueFlag,
|
||||
rootFlag,
|
||||
ProofFlag,
|
||||
KeyFlag,
|
||||
ValueFlag,
|
||||
RootFlag,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
|
@ -35,13 +35,13 @@ var StartCmd = cli.Command{
|
|||
return cmdStart(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
addrFlag,
|
||||
eyesFlag,
|
||||
dirFlag,
|
||||
inProcTMFlag,
|
||||
chainIDFlag,
|
||||
ibcPluginFlag,
|
||||
counterPluginFlag,
|
||||
AddrFlag,
|
||||
EyesFlag,
|
||||
DirFlag,
|
||||
InProcTMFlag,
|
||||
ChainIDFlag,
|
||||
IbcPluginFlag,
|
||||
CounterPluginFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -26,18 +26,18 @@ var (
|
|||
return cmdSendTx(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
nodeFlag,
|
||||
chainIDFlag,
|
||||
NodeFlag,
|
||||
ChainIDFlag,
|
||||
|
||||
fromFlag,
|
||||
FromFlag,
|
||||
|
||||
amountFlag,
|
||||
coinFlag,
|
||||
gasFlag,
|
||||
feeFlag,
|
||||
seqFlag,
|
||||
AmountFlag,
|
||||
CoinFlag,
|
||||
GasFlag,
|
||||
FeeFlag,
|
||||
SeqFlag,
|
||||
|
||||
toFlag,
|
||||
ToFlag,
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -49,19 +49,19 @@ var (
|
|||
return cmdAppTx(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
nodeFlag,
|
||||
chainIDFlag,
|
||||
NodeFlag,
|
||||
ChainIDFlag,
|
||||
|
||||
fromFlag,
|
||||
FromFlag,
|
||||
|
||||
amountFlag,
|
||||
coinFlag,
|
||||
gasFlag,
|
||||
feeFlag,
|
||||
seqFlag,
|
||||
AmountFlag,
|
||||
CoinFlag,
|
||||
GasFlag,
|
||||
FeeFlag,
|
||||
SeqFlag,
|
||||
|
||||
nameFlag,
|
||||
dataFlag,
|
||||
NameFlag,
|
||||
DataFlag,
|
||||
},
|
||||
Subcommands: []cli.Command{
|
||||
CounterTxCmd,
|
||||
|
@ -75,7 +75,7 @@ var (
|
|||
return cmdCounterTx(c)
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
validFlag,
|
||||
ValidFlag,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue