export

package
v1.0.0-sammy Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URIKey                = "uri"
	SourceChainIDKey      = "source-chain-id"
	DestinationChainIDKey = "destination-chain-id"
	MaxFeeKey             = "max-fee"
	IsReturnKey           = "is-return"
	AmountKey             = "amount"
	ToKey                 = "to"
	PrivateKeyKey         = "private-key"
)

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

func Command

func Command() *cobra.Command

func Export

func Export(ctx context.Context, config *Config) (*status.TxIssuance, error)

Types

type Config

type Config struct {
	URI                string
	SourceChainID      ids.ID
	DestinationChainID ids.ID
	MaxFee             uint64
	IsReturn           bool
	Amount             uint64
	To                 ids.ShortID
	PrivateKey         *secp256k1.PrivateKey
}

func ParseFlags

func ParseFlags(flags *pflag.FlagSet, args []string) (*Config, error)

Jump to

Keyboard shortcuts

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