credit

package
v0.0.0-...-80a1494 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: OSL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandler

type CommandHandler struct {
	Logic     logic.Logic
	Prompt    console.Prompt
	AppConfig config.Configuration
}

func NewCommandHandler

func NewCommandHandler(logic logic.Logic, prompt console.Prompt, config config.Configuration) *CommandHandler

NewCommandHandler creates a credit command handler instance.

func (*CommandHandler) Command

func (creditCommand *CommandHandler) Command() *cobra.Command

Command function generates all credit commands

func (*CommandHandler) GetExchange

func (creditCommand *CommandHandler) GetExchange(_ *cobra.Command, _ []string)

GetExchange a function to process getting credit exchange

func (*CommandHandler) GetExchangeCommand

func (creditCommand *CommandHandler) GetExchangeCommand() *cobra.Command

GetExchangeCommand function return credit exchange command

func (*CommandHandler) GetMintByCreditCommand

func (creditCommand *CommandHandler) GetMintByCreditCommand() *cobra.Command

GetMintByCreditCommand function return credit mint by credit command

func (*CommandHandler) GetMintCreditByCollateralCommand

func (creditCommand *CommandHandler) GetMintCreditByCollateralCommand() *cobra.Command

GetMintCreditByCollateralCommand function return credit mint by collateral command

func (*CommandHandler) GetRedeemCreditCommand

func (creditCommand *CommandHandler) GetRedeemCreditCommand() *cobra.Command

GetRedeemCreditCommand function return credit redeem command

func (*CommandHandler) GetSetupCommand

func (creditCommand *CommandHandler) GetSetupCommand() *cobra.Command

GetSetupCommand function return credit setup command

func (*CommandHandler) MintByCollateral

func (creditCommand *CommandHandler) MintByCollateral(_ *cobra.Command, _ []string)

MintByCollateral a function to process minting credit by collateral

func (*CommandHandler) MintByCredit

func (creditCommand *CommandHandler) MintByCredit(_ *cobra.Command, _ []string)

MintByCredit a function to process minting credit by credit

func (*CommandHandler) Redeem

func (creditCommand *CommandHandler) Redeem(_ *cobra.Command, _ []string)

Redeem a function to process redeeming credit

func (*CommandHandler) Setup

func (creditCommand *CommandHandler) Setup(_ *cobra.Command, _ []string)

Setup a function to process setup new credit

Jump to

Keyboard shortcuts

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