-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/remove-generic-error
- Loading branch information
Showing
134 changed files
with
7,986 additions
and
1,516 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,11 @@ devtools: | |
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
go install github.com/NathanBaulch/[email protected] | ||
go install github.com/pactus-project/protoc-gen-doc/cmd/[email protected]20240619124021-76fc28241eb6 | ||
go install github.com/pactus-project/protoc-gen-doc/cmd/[email protected]20240815105130-84e89d0170e4 | ||
go install github.com/bufbuild/buf/cmd/[email protected] | ||
go install mvdan.cc/gofumpt@latest | ||
go install github.com/rakyll/[email protected] | ||
go install github.com/pacviewer/jrpc-gateway/[email protected] | ||
go install github.com/pacviewer/jrpc-gateway/protoc-gen-jrpc-doc/cmd/[email protected] | ||
|
||
######################################## | ||
### Building | ||
|
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
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,28 @@ | ||
package main | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/pactus-project/pactus/cmd" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// buildInfoCmd builds all sub-commands related to the wallet information. | ||
func buildInfoCmd(parentCmd *cobra.Command) { | ||
infoCmd := &cobra.Command{ | ||
Use: "info", | ||
Short: "retrieving the wallet information.", | ||
} | ||
|
||
parentCmd.AddCommand(infoCmd) | ||
|
||
infoCmd.Run = func(_ *cobra.Command, _ []string) { | ||
wlt, err := openWallet() | ||
cmd.FatalErrorCheck(err) | ||
|
||
cmd.PrintInfoMsgf("version: %d", wlt.Version()) | ||
cmd.PrintInfoMsgf("created at: %s", wlt.CreationTime().Format(time.RFC3339)) | ||
cmd.PrintInfoMsgf("is encrtypted: %t", wlt.IsEncrypted()) | ||
cmd.PrintInfoMsgf("network: %s", wlt.Network().String()) | ||
} | ||
} |
Oops, something went wrong.