svm

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBalancesCmd

func NewBalancesCmd() *cobra.Command

NewBalancesCmd returns the `sim svm balances` command.

func NewSvmCmd

func NewSvmCmd() *cobra.Command

NewSvmCmd returns the `sim svm` parent command.

func NewTransactionsCmd

func NewTransactionsCmd() *cobra.Command

NewTransactionsCmd returns the `sim svm transactions` command.

Types

type SimClient

type SimClient interface {
	Get(ctx context.Context, path string, params url.Values) ([]byte, error)
}

SimClient is the interface that svm commands use to talk to the Sim API. It is satisfied by *sim.SimClient (stored in the command context by the sim parent command's PersistentPreRunE).

func SimClientFromCmd

func SimClientFromCmd(cmd *cobra.Command) SimClient

SimClientFromCmd extracts the SimClient from the command context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL