go mod; goimports -w

This commit is contained in:
Ian Norden 2020-06-25 15:12:13 -05:00
parent 2cb1366b79
commit 477d735918
4 changed files with 1237 additions and 2 deletions

View File

@ -32,7 +32,7 @@ var (
// rootCmd represents the base command when called without any subcommands // rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{ var rootCmd = &cobra.Command{
Use: "eth-ipfs-state-validator", Use: "eth-ipfs-state-validator",
PersistentPreRun: initFuncs, PersistentPreRun: initFuncs,
} }

View File

@ -30,7 +30,7 @@ import (
var validateTrieCmd = &cobra.Command{ var validateTrieCmd = &cobra.Command{
Use: "validateTrie", Use: "validateTrie",
Short: "Validate completeness of state data on IPFS", Short: "Validate completeness of state data on IPFS",
Long: `This command is used to validate the completeness of the state trie corresponding to a specific state root`, Long: `This command is used to validate the completeness of the state trie corresponding to a specific state root`,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
subCommand = cmd.CalledAs() subCommand = cmd.CalledAs()
logWithCommand = *logrus.WithField("SubCommand", subCommand) logWithCommand = *logrus.WithField("SubCommand", subCommand)

16
go.mod Normal file
View File

@ -0,0 +1,16 @@
module github.com/vulcanize/eth-ipfs-state-validator
go 1.13
require (
github.com/ethereum/go-ethereum v1.9.15
github.com/jmoiron/sqlx v1.2.0
github.com/lib/pq v1.5.2
github.com/onsi/ginkgo v1.12.1
github.com/onsi/gomega v1.10.1
github.com/sirupsen/logrus v1.6.0
github.com/spf13/cobra v1.0.0
github.com/spf13/viper v1.7.0
github.com/vulcanize/ipfs-blockchain-watcher v0.0.11-alpha
github.com/vulcanize/pg-ipfs-ethdb v0.0.2-alpha
)

1219
go.sum Normal file

File diff suppressed because it is too large Load Diff