commands

package
v0.0.0-...-d1abca7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 60 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalFlags = []cli.Flag{
	&cli.StringFlag{
		Name:    "rpcserver",
		Usage:   "drivechaind RPC address",
		Value:   "localhost:30400",
		EnvVars: []string{"ORCHESTRATOR_RPCSERVER"},
	},
	&cli.StringFlag{
		Name:    "datadir",
		Usage:   "data directory",
		EnvVars: []string{"ORCHESTRATOR_DATADIR"},
	},
	&cli.StringFlag{
		Name:    "bitwindow-dir",
		Usage:   "bitwindow data directory containing the local-auth cookie",
		Value:   orchestrator.DefaultBitwindowDir(),
		EnvVars: []string{"ORCHESTRATOR_BITWINDOW_DIR"},
	},
	&cli.StringFlag{
		Name:    "network",
		Usage:   "bitcoin network",
		Value:   config.DefaultNetwork,
		EnvVars: []string{"ORCHESTRATOR_NETWORK"},
	},
	&cli.BoolFlag{
		Name:    "auto-download",
		Usage:   "automatically download binaries when needed (for CI)",
		EnvVars: []string{"ORCHESTRATOR_AUTO_DOWNLOAD"},
	},
}

Functions

func Commands

func Commands() []*cli.Command

Commands returns all available CLI subcommands.

Types

type BitassetsClientWrapper

type BitassetsClientWrapper struct {
	*bitassets.Client
}

BitassetsClientWrapper adapts the bitassets.Client to SidechainClient interface

func (*BitassetsClientWrapper) OpenAPISchema

func (w *BitassetsClientWrapper) OpenAPISchema(ctx context.Context) (json.RawMessage, error)

type BitnamesClientWrapper

type BitnamesClientWrapper struct {
	*bitnames.Client
}

BitnamesClientWrapper adapts the bitnames.Client to SidechainClient interface

func (*BitnamesClientWrapper) OpenAPISchema

func (w *BitnamesClientWrapper) OpenAPISchema(ctx context.Context) (json.RawMessage, error)

type ClientFactory

type ClientFactory func(port int) SidechainClient

ClientFactory creates a new sidechain client for the given port

type CoinshiftClientWrapper

type CoinshiftClientWrapper struct {
	*coinshift.Client
}

CoinshiftClientWrapper adapts the coinshift.Client to SidechainClient interface

func (*CoinshiftClientWrapper) OpenAPISchema

func (w *CoinshiftClientWrapper) OpenAPISchema(ctx context.Context) (json.RawMessage, error)

type PhotonClientWrapper

type PhotonClientWrapper struct {
	*photon.Client
}

PhotonClientWrapper adapts the photon.Client to SidechainClient interface

func (*PhotonClientWrapper) OpenAPISchema

func (w *PhotonClientWrapper) OpenAPISchema(ctx context.Context) (json.RawMessage, error)

type SidechainClient

type SidechainClient interface {
	OpenAPISchema(ctx context.Context) (json.RawMessage, error)
}

SidechainClient interface for all sidechain RPC clients

type ThunderClientWrapper

type ThunderClientWrapper struct {
	*thunder.Client
}

ThunderClientWrapper adapts the thunder.Client to SidechainClient interface

func (*ThunderClientWrapper) OpenAPISchema

func (w *ThunderClientWrapper) OpenAPISchema(ctx context.Context) (json.RawMessage, error)

type TruthcoinClientWrapper

type TruthcoinClientWrapper struct {
	*truthcoin.Client
}

TruthcoinClientWrapper adapts the truthcoin.Client to SidechainClient interface

func (*TruthcoinClientWrapper) OpenAPISchema

func (w *TruthcoinClientWrapper) OpenAPISchema(ctx context.Context) (json.RawMessage, error)

type ZsideClientWrapper

type ZsideClientWrapper struct {
	*zside.Client
}

ZsideClientWrapper adapts the zside.Client to SidechainClient interface

func (*ZsideClientWrapper) OpenAPISchema

func (w *ZsideClientWrapper) OpenAPISchema(ctx context.Context) (json.RawMessage, error)

Jump to

Keyboard shortcuts

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