Skip to content

Commit c5a538c

Browse files
Quantumlyyclaude
andcommitted
Remove stats commands
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1dfa5d3 commit c5a538c

9 files changed

Lines changed: 1 addition & 287 deletions

File tree

cli/root.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"github.com/spf13/cobra"
99

1010
"github.com/refrakts/sparkscan-cli/cmd/address"
11-
"github.com/refrakts/sparkscan-cli/cmd/stats"
1211
"github.com/refrakts/sparkscan-cli/cmd/token"
1312
"github.com/refrakts/sparkscan-cli/cmd/tx"
1413
"github.com/refrakts/sparkscan-cli/cmd/version"
@@ -21,7 +20,7 @@ func NewRootCmd(versionStr string) *cobra.Command {
2120
root := &cobra.Command{
2221
Use: "sparkscan",
2322
Short: "CLI for the Sparkscan API",
24-
Long: "A command-line interface for the Sparkscan blockchain explorer API.\n\nQuery addresses, tokens, transactions, and network statistics on the Spark network.",
23+
Long: "A command-line interface for the Sparkscan blockchain explorer API.\n\nQuery addresses, tokens, and transactions on the Spark network.",
2524
SilenceUsage: true,
2625
SilenceErrors: true,
2726
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
@@ -59,7 +58,6 @@ func NewRootCmd(versionStr string) *cobra.Command {
5958
root.AddCommand(address.NewCmd())
6059
root.AddCommand(token.NewCmd())
6160
root.AddCommand(tx.NewCmd())
62-
root.AddCommand(stats.NewCmd())
6361
root.AddCommand(version.NewCmd(versionStr))
6462

6563
return root

cmd/stats/stats.go

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

cmd/stats/summary.go

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

cmd/stats/summary_test.go

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

cmd/stats/testutil_test.go

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

cmd/stats/tpv.go

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

cmd/stats/tpv_test.go

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

cmdutil/client.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ type SparkScanClient interface {
3434
GetV2TxLatest(ctx context.Context, params ogen.GetV2TxLatestParams) ([]ogen.GetV2TxLatestOKItem, error)
3535
GetV2TxByTxid(ctx context.Context, params ogen.GetV2TxByTxidParams) (*ogen.GetV2TxByTxidOK, error)
3636

37-
// Stats
38-
GetV2StatsSummary(ctx context.Context, params ogen.GetV2StatsSummaryParams) (*ogen.GetV2StatsSummaryOK, error)
39-
GetV2StatsTpv(ctx context.Context, params ogen.GetV2StatsTpvParams) (*ogen.GetV2StatsTpvOK, error)
4037
}
4138

4239
type clientKey struct{}

internal/mock/client.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ type Client struct {
2626
GetV1TxByTxidFn func(ctx context.Context, params ogen.GetV1TxByTxidParams) (*ogen.GetV1TxByTxidOK, error)
2727
GetV2TxLatestFn func(ctx context.Context, params ogen.GetV2TxLatestParams) ([]ogen.GetV2TxLatestOKItem, error)
2828
GetV2TxByTxidFn func(ctx context.Context, params ogen.GetV2TxByTxidParams) (*ogen.GetV2TxByTxidOK, error)
29-
GetV2StatsSummaryFn func(ctx context.Context, params ogen.GetV2StatsSummaryParams) (*ogen.GetV2StatsSummaryOK, error)
30-
GetV2StatsTpvFn func(ctx context.Context, params ogen.GetV2StatsTpvParams) (*ogen.GetV2StatsTpvOK, error)
3129
}
3230

3331
func (m *Client) GetV1AddressByAddress(ctx context.Context, params ogen.GetV1AddressByAddressParams) (*ogen.GetV1AddressByAddressOK, error) {
@@ -98,10 +96,3 @@ func (m *Client) GetV2TxByTxid(ctx context.Context, params ogen.GetV2TxByTxidPar
9896
return m.GetV2TxByTxidFn(ctx, params)
9997
}
10098

101-
func (m *Client) GetV2StatsSummary(ctx context.Context, params ogen.GetV2StatsSummaryParams) (*ogen.GetV2StatsSummaryOK, error) {
102-
return m.GetV2StatsSummaryFn(ctx, params)
103-
}
104-
105-
func (m *Client) GetV2StatsTpv(ctx context.Context, params ogen.GetV2StatsTpvParams) (*ogen.GetV2StatsTpvOK, error) {
106-
return m.GetV2StatsTpvFn(ctx, params)
107-
}

0 commit comments

Comments
 (0)