Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c974bbf
Add barebones keys cli command
Feb 11, 2023
1df88f1
Add list all keys command
Feb 11, 2023
62a60a6
Merge branch 'main' into add_keybase_cli_endpoints
Feb 14, 2023
f479bb3
Merge branch 'main' into add_keybase_cli_endpoints
Feb 16, 2023
9efa65e
Add Keys CLI endpoint, remove unneeded Exists() function in keybase
Feb 16, 2023
a6510d4
Add import and export CLI endpoints
Feb 16, 2023
18aa45c
Add keypair to return for create and import commands
Feb 16, 2023
4ac4cd4
Add create CLI endpoint
Feb 16, 2023
4a483b0
Add sign and verify cli endpoints
Feb 16, 2023
1ffaf8f
Address linter errors
Feb 17, 2023
28a2cae
Fix tests
Feb 17, 2023
b35a11d
make generate_cli_commands_docs
Feb 17, 2023
a9c4782
Merge branch 'main' into add_keybase_cli_endpoints
Feb 17, 2023
4cad806
Merge branch 'main' into add_keybase_cli_endpoints
Feb 17, 2023
4bb4522
Add error checking to create and import
Feb 17, 2023
4ab8c08
Create file_utils.go in shared
Feb 18, 2023
05bff0c
Use switch statements
Feb 18, 2023
ca2c8f7
Clear up naming in tests
Feb 18, 2023
7252864
Use global logger
Feb 18, 2023
7eb9925
Update cmd descriptions
Feb 18, 2023
5172d8d
Make short descriptions wordy
Feb 18, 2023
1f80913
Merge branch 'main' into add_keybase_cli_endpoints
Feb 18, 2023
dd8c945
Check for non-interactive flag
Feb 18, 2023
7deca41
Address linter errors
Feb 18, 2023
738e359
Use global logger
Feb 19, 2023
354b268
Move file_utils to shared/converters/
Feb 20, 2023
b6a949a
Use named parameters
Feb 20, 2023
bbdae92
Address comments
Feb 20, 2023
6f27c9d
Add todo
Feb 20, 2023
70566f9
Add error checking to kb.Stop()
Feb 20, 2023
cd14ad3
Remove debug from comments
Feb 20, 2023
27d5994
Add skeleton for SignTx and VerifyTx commands
Feb 21, 2023
6140da3
Add transaction signing and verification from file
Feb 21, 2023
51f04a9
make generate_cli_cmd_docs
Feb 21, 2023
e4f3598
Merge branch 'main' into add_keybase_cli_endpoints
Feb 21, 2023
13f860a
Address linter errors
Feb 21, 2023
cecde7c
Add comments
Feb 22, 2023
784c549
Address comments
Feb 23, 2023
108257b
Merge branch 'main' into add_keybase_cli_endpoints
Feb 23, 2023
5c8e7f4
Update CHANGELOG.md files
Feb 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/client/cli/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func accountCommands() []*cobra.Command {
toAddr := crypto.AddressFromString(args[1])
amount := args[2]

// Open the debug keybase at the specified path
// Open the keybase at the specified path
pocketDir := strings.TrimSuffix(dataDir, "/")
keybasePath, err := filepath.Abs(pocketDir + keybaseSuffix)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions app/client/cli/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cli

import (
"context"
"log"
"github.com/pokt-network/pocket/logger"
"os"

// NOTE: Imported for debug purposes in order to populate the keybase with the pre-generated keys
Expand All @@ -25,7 +25,7 @@ var (
func init() {
homeDir, err := os.UserHomeDir()
if err != nil {
log.Fatalf("[ERROR] Cannot find user home directory: %s", err.Error())
logger.Global.Fatal().Err(err).Msg("Cannot find user home directory")
}
rootCmd.PersistentFlags().StringVar(&remoteCLIURL, "remote_cli_url", defaults.DefaultRemoteCLIURL, "takes a remote endpoint in the form of <protocol>://<host> (uses RPC Port)")
rootCmd.PersistentFlags().BoolVar(&nonInteractive, "non_interactive", false, "if true skips the interactive prompts wherever possible (useful for scripting & automation)")
Expand Down
2 changes: 1 addition & 1 deletion app/client/cli/gov.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func govCommands() []*cobra.Command {
// TODO(deblasis): implement RPC client, route and handler
fmt.Printf("changing parameter %s owned by %s to %s\n", args[1], args[0], args[2])

// Open the debug keybase at the specified path
// Open the keybase at the specified path
pocketDir := strings.TrimSuffix(dataDir, "/")
keybasePath, err := filepath.Abs(pocketDir + keybaseSuffix)
if err != nil {
Expand Down
Loading