cli

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBigInt added in v1.2.0

func FromBigInt(number uint64, decimals int) float64

func GetAddServiceToKeychainCmd

func GetAddServiceToKeychainCmd() *cobra.Command

func GetCreateKeychainCmd

func GetCreateKeychainCmd() *cobra.Command

func GetDeleteServiceFromKeychainCmd

func GetDeleteServiceFromKeychainCmd() *cobra.Command

func GetFirstSshKeyDefaultPath

func GetFirstSshKeyDefaultPath() string

func GetGenerateAddressCmd

func GetGenerateAddressCmd() *cobra.Command

func GetGetTransactionFeeCmd

func GetGetTransactionFeeCmd() *cobra.Command

func GetKeychainCmd

func GetKeychainCmd() *cobra.Command

func GetSendTransactionCmd

func GetSendTransactionCmd() *cobra.Command

func ToBigInt added in v1.2.0

func ToBigInt(number float64, decimals int) uint64

Types

type ConfiguredTransaction

type ConfiguredTransaction struct {
	// contains filtered or unexported fields
}

type CurveCLI

type CurveCLI uint8
const (
	ED25519   CurveCLI = 0
	P256      CurveCLI = 1
	SECP256K1 CurveCLI = 2
)

func (*CurveCLI) GetCurve

func (c *CurveCLI) GetCurve() (archethic.Curve, error)

func (*CurveCLI) Set

func (c *CurveCLI) Set(value string) error

func (*CurveCLI) String

func (c *CurveCLI) String() string

func (*CurveCLI) Type

func (c *CurveCLI) Type() string

type EndpointCLI

type EndpointCLI string

func (*EndpointCLI) Set

func (e *EndpointCLI) Set(value string) error

func (*EndpointCLI) String

func (e *EndpointCLI) String() string

func (*EndpointCLI) Type

func (e *EndpointCLI) Type() string

type HashAlgoCLI

type HashAlgoCLI uint8
const (
	SHA256   HashAlgoCLI = 0
	SHA512   HashAlgoCLI = 1
	SHA3_256 HashAlgoCLI = 2
	SHA3_512 HashAlgoCLI = 3
	BLAKE2B  HashAlgoCLI = 4
)

func (*HashAlgoCLI) GetHashAlgo

func (ha *HashAlgoCLI) GetHashAlgo() (archethic.HashAlgo, error)

func (*HashAlgoCLI) Set

func (ha *HashAlgoCLI) Set(value string) error

func (*HashAlgoCLI) String

func (ha *HashAlgoCLI) String() string

func (*HashAlgoCLI) Type

func (ha *HashAlgoCLI) Type() string

type Ownership

type Ownership struct {
	Secret         string   `yaml:"secret"`
	AuthorizedKeys []string `yaml:"authorized_keys"`
}

type Recipient added in v1.2.0

type Recipient struct {
	Address  string `yaml:"to"`
	Action   string `yaml:"action"`
	ArgsJson string `yaml:"args_json"`
}

type SendTransactionData

type SendTransactionData struct {
	Endpoint        string          `yaml:"endpoint"`
	AccessSeed      string          `yaml:"access_seed"`
	Index           int             `yaml:"index"`
	EllipticCurve   string          `yaml:"elliptic_curve"`
	TransactionType string          `yaml:"transaction_type"`
	UcoTransfers    []UCOTransfer   `yaml:"uco_transfers,omitempty"`
	TokenTransfers  []TokenTransfer `yaml:"token_transfers,omitempty"`
	Recipients      []Recipient     `yaml:"recipients,omitempty"`
	Ownerships      []Ownership     `yaml:"ownerships,omitempty"`
	Content         string          `yaml:"content,omitempty"`
	SmartContract   string          `yaml:"smart_contract,omitempty"`
	ServiceName     string          `yaml:"serviceName,omitempty"`
}

type TokenTransfer

type TokenTransfer struct {
	To           string  `yaml:"to"`
	Amount       float64 `yaml:"amount"`
	TokenAddress string  `yaml:"token_address"`
	TokenID      int     `yaml:"token_id"`
}

type TransactionTypeCLI

type TransactionTypeCLI uint8
const (
	KeychainAccessType TransactionTypeCLI = 254
	KeychainType       TransactionTypeCLI = 255
	TransferType       TransactionTypeCLI = 253
	HostingType        TransactionTypeCLI = 252
	TokenType          TransactionTypeCLI = 251
	DataType           TransactionTypeCLI = 250
	ContractType       TransactionTypeCLI = 249
	CodeProposalType   TransactionTypeCLI = 5
	CodeApprovalType   TransactionTypeCLI = 6
)

func (*TransactionTypeCLI) GetTransactionType

func (tt *TransactionTypeCLI) GetTransactionType() (archethic.TransactionType, error)

func (*TransactionTypeCLI) Set

func (tt *TransactionTypeCLI) Set(value string) error

func (*TransactionTypeCLI) String

func (tt *TransactionTypeCLI) String() string

func (*TransactionTypeCLI) Type

func (tt *TransactionTypeCLI) Type() string

type UCOTransfer

type UCOTransfer struct {
	To     string  `yaml:"to"`
	Amount float64 `yaml:"amount"`
}

Jump to

Keyboard shortcuts

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