Skip to content

Commit 3f74961

Browse files
committed
rm UpkeepHistory
1 parent 8230d24 commit 3f74961

6 files changed

Lines changed: 0 additions & 97 deletions

File tree

core/scripts/chaincli/command/keeper/root.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ func init() {
1717
RootCmd.AddCommand(logsCmd)
1818
RootCmd.AddCommand(registryCmd)
1919
RootCmd.AddCommand(upkeepEventsCmd)
20-
RootCmd.AddCommand(upkeepHistoryCmd)
2120
RootCmd.AddCommand(ocr2UpkeepReportHistoryCmd)
2221
RootCmd.AddCommand(ocr2UpdateConfigCmd)
2322
RootCmd.AddCommand(scrapeNodes)

core/scripts/chaincli/command/keeper/upkeep.go

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -35,43 +35,6 @@ var upkeepEventsCmd = &cobra.Command{
3535
},
3636
}
3737

38-
// upkeepHistoryCmd represents the command to run the upkeep history command
39-
var upkeepHistoryCmd = &cobra.Command{
40-
Use: "upkeep-history",
41-
Short: "Print checkUpkeep history",
42-
Long: `Print checkUpkeep status and keeper responsibility for a given upkeep in a set block range`,
43-
Run: func(cmd *cobra.Command, args []string) {
44-
upkeepIDStr, err := cmd.Flags().GetString("upkeep-id")
45-
if err != nil {
46-
log.Fatal("failed to get 'upkeep-id' flag: ", err)
47-
}
48-
upkeepID, ok := handler.ParseUpkeepID(upkeepIDStr)
49-
if !ok {
50-
log.Fatal("failed to parse upkeep-id")
51-
}
52-
53-
fromBlock, err := cmd.Flags().GetUint64("from")
54-
if err != nil {
55-
log.Fatal("failed to get 'from' flag: ", err)
56-
}
57-
58-
toBlock, err := cmd.Flags().GetUint64("to")
59-
if err != nil {
60-
log.Fatal("failed to get 'to' flag: ", err)
61-
}
62-
63-
gasPrice, err := cmd.Flags().GetUint64("gas-price")
64-
if err != nil {
65-
log.Fatal("failed to get 'gas-price' flag: ", err)
66-
}
67-
68-
cfg := config.New()
69-
hdlr := handler.NewKeeper(cfg)
70-
71-
hdlr.UpkeepHistory(cmd.Context(), upkeepID, fromBlock, toBlock, gasPrice)
72-
},
73-
}
74-
7538
var ocr2UpkeepReportHistoryCmd = &cobra.Command{
7639
Use: "ocr2-reports",
7740
Short: "Print ocr2 automation reports",
@@ -125,11 +88,6 @@ var ocr2UpdateConfigCmd = &cobra.Command{
12588
}
12689

12790
func init() {
128-
upkeepHistoryCmd.Flags().String("upkeep-id", "", "upkeep ID")
129-
upkeepHistoryCmd.Flags().Uint64("from", 0, "from block")
130-
upkeepHistoryCmd.Flags().Uint64("to", 0, "to block")
131-
upkeepHistoryCmd.Flags().Uint64("gas-price", 0, "gas price to use")
132-
13391
ocr2UpkeepReportHistoryCmd.Flags().StringSlice("tx-hashes", []string{}, "list of transaction hashes to get information for")
13492
ocr2UpkeepReportHistoryCmd.Flags().String("csv", "", "path to csv file containing transaction hashes; first element per line should be transaction hash; file should not have headers")
13593

core/scripts/chaincli/handler/keeper_upkeep_history.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

core/scripts/chaincli/handler/upkeep_util.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

core/scripts/go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ require (
6262
github.com/spf13/viper v1.21.0
6363
github.com/stretchr/testify v1.11.1
6464
github.com/tidwall/gjson v1.18.0
65-
github.com/umbracle/ethgo v0.1.3
6665
github.com/umbracle/fastrlp v0.0.0-20220527094140-59d5dd30e722
6766
github.com/urfave/cli v1.22.17
6867
go.uber.org/zap v1.28.0

core/scripts/go.sum

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)