Skip to content

Commit

Permalink
Regenerate CLI documents
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyilong committed Apr 24, 2019
1 parent 9f1c9d5 commit 6d05bed
Show file tree
Hide file tree
Showing 35 changed files with 38 additions and 37 deletions.
Binary file modified docs/commands/generator.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/commands/ledger/theta.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Theta
* [theta start](theta_start.md) - Start Theta node.
* [theta version](theta_version.md) - Print version of current Theta binary.

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/ledger/theta_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ theta init [flags]

* [theta](theta.md) - Theta

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/ledger/theta_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ theta start [flags]

* [theta](theta.md) - Theta

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/ledger/theta_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ theta version [flags]

* [theta](theta.md) - Theta

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ Theta wallet.
* [thetacli query](thetacli_query.md) - Query entities stored in blockchain
* [thetacli tx](thetacli_tx.md) - Manage transactions

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Manage backups.
* [thetacli backup chain](thetacli_backup_chain.md) - backup chain
* [thetacli backup snapshot](thetacli_backup_snapshot.md) - backup snapshot

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_backup_chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ thetacli backup chain

* [thetacli backup](thetacli_backup.md) - Manage backups

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_backup_snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ thetacli backup snapshot

* [thetacli backup](thetacli_backup.md) - Manage backups

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_call.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Call smart contract APIs
* [thetacli](thetacli.md) - Theta wallet
* [thetacli call smart_contract](thetacli_call_smart_contract.md) - Call or deploy a smart contract

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_call_smart_contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ thetacli call smart_contract [flags]

* [thetacli call](thetacli_call.md) - Call smart contract APIs

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Run the ThetaCli Daemon
* [thetacli](thetacli.md) - Theta wallet
* [thetacli daemon start](thetacli_daemon_start.md) - Run the thatacli daemon

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_daemon_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ thetacli daemon start --port=16889

* [thetacli daemon](thetacli_daemon.md) - Run the ThetaCli Daemon

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Manage keys.
* [thetacli key new](thetacli_key_new.md) - Generates a new private key
* [thetacli key password](thetacli_key_password.md) - Change the password for a key

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_key_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ thetacli delete 26d813157F7503a9057FB2DB6Eb2f83a35c4FdD7

* [thetacli key](thetacli_key.md) - Manage keys

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_key_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ thetacli key list

* [thetacli key](thetacli_key.md) - Manage keys

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_key_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ thetacli key new

* [thetacli key](thetacli_key.md) - Manage keys

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_key_password.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ thetacli key password 1d8E1191E0a97C1aDa4940B79188D3B1f6f5C695

* [thetacli key](thetacli_key.md) - Manage keys

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_query.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Query entities stored in blockchain
* [thetacli query vcp](thetacli_query_vcp.md) - Get validator candidate pool
* [thetacli query version](thetacli_query_version.md) - Get the Theta version

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_query_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ thetacli query account --address=0x2E833968E5bB786Ae419c4d13189fB081Cc43bab

* [thetacli query](thetacli_query.md) - Query entities stored in blockchain

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_query_block.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ thetacli query block --height=300

* [thetacli query](thetacli_query.md) - Query entities stored in blockchain

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
4 changes: 2 additions & 2 deletions docs/commands/wallet/thetacli_query_split_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ thetacli query split_rule [flags]
### Examples

```
thetacli query split_rule --resource_id=0x3FACC98BCCAD124
thetacli query split_rule --resource_id=vid2dz369du0mkwcrb9
```

### Options
Expand All @@ -33,4 +33,4 @@ thetacli query split_rule --resource_id=0x3FACC98BCCAD124

* [thetacli query](thetacli_query.md) - Query entities stored in blockchain

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_query_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ thetacli query status

* [thetacli query](thetacli_query.md) - Query entities stored in blockchain

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_query_tx.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ thetacli query tx --hash=0x2fe41732b40ca852e9c36f52b278dde78f0fe34f28f9c94083112

* [thetacli query](thetacli_query.md) - Query entities stored in blockchain

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_query_vcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ thetacli query vcp --height=10

* [thetacli query](thetacli_query.md) - Query entities stored in blockchain

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_query_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ thetacli query version

* [thetacli query](thetacli_query.md) - Query entities stored in blockchain

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_tx.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Manage transactions.
* [thetacli tx split_rule](thetacli_tx_split_rule.md) - Initiate or update a split rule
* [thetacli tx withdraw](thetacli_tx_withdraw.md) - withdraw stake to a validator or guardian

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_tx_deposit.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ thetacli tx deposit --chain="privatenet" --source=2E833968E5bB786Ae419c4d13189fB

* [thetacli tx](thetacli_tx.md) - Manage transactions

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_tx_reserve.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ thetacli tx reserve --chain="privatenet" --from=2E833968E5bB786Ae419c4d13189fB08

* [thetacli tx](thetacli_tx.md) - Manage transactions

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
5 changes: 3 additions & 2 deletions docs/commands/wallet/thetacli_tx_send.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ thetacli tx send --chain="privatenet" --from=2E833968E5bB786Ae419c4d13189fB081Cc
--fee string Fee (default "1000000000000wei")
--from string Address to send from
-h, --help help for send
--path string Wallet derivation path
--seq uint Sequence number of the transaction
--tfuel string TFuel amount (default "0")
--theta string Theta amount (default "0")
--to string Address to send to
--wallet string Wallet type (soft|nano) (default "soft")
--wallet string Wallet type (soft|nano|trezor) (default "soft")
```

### Options inherited from parent commands
Expand All @@ -41,4 +42,4 @@ thetacli tx send --chain="privatenet" --from=2E833968E5bB786Ae419c4d13189fB081Cc

* [thetacli tx](thetacli_tx.md) - Manage transactions

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_tx_smart_contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ thetacli tx smart_contract [flags]

* [thetacli tx](thetacli_tx.md) - Manage transactions

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_tx_split_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ thetacli tx split_rule --chain="privatenet" --from=2E833968E5bB786Ae419c4d13189f

* [thetacli tx](thetacli_tx.md) - Manage transactions

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
2 changes: 1 addition & 1 deletion docs/commands/wallet/thetacli_tx_withdraw.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ thetacli tx withdraw --chain="privatenet" --source=2E833968E5bB786Ae419c4d13189f

* [thetacli tx](thetacli_tx.md) - Manage transactions

###### Auto generated by spf13/cobra on 19-Feb-2019
###### Auto generated by spf13/cobra on 24-Apr-2019
4 changes: 2 additions & 2 deletions ledger/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ func (tx *WithdrawStakeTx) String() string {

// --------------- Utils --------------- //

type EthereumTx struct {
type EthereumTxWrapper struct {
AccountNonce uint64 `json:"nonce" gencodec:"required"`
Price *big.Int `json:"gasPrice" gencodec:"required"`
GasLimit uint64 `json:"gas" gencodec:"required"`
Expand All @@ -881,7 +881,7 @@ type EthereumTx struct {
// Need to add the following prefix to the tx signbytes to be compatible with
// the Ethereum tx format
func addPrefixForSignBytes(signBytes common.Bytes) common.Bytes {
ethTx := EthereumTx{
ethTx := EthereumTxWrapper{
AccountNonce: uint64(0),
Price: new(big.Int).SetUint64(0),
GasLimit: uint64(0),
Expand Down
2 changes: 1 addition & 1 deletion wallet/coldwallet/keystore/trezor.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (w *trezorDriver) trezorSign(derivationPath []uint32, txrlp common.Bytes) (
}
defer w.bridge.EndSession()

tx := &tp.EthereumTx{}
tx := &tp.EthereumTxWrapper{}
err = rlp.DecodeBytes(txrlp, tx)

// Create the transaction initiation message
Expand Down

0 comments on commit 6d05bed

Please sign in to comment.