client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FlagClassId         string = "class-id"
	FlagIssuances       string = "issuances"
	FlagStartDate       string = "start-date"
	FlagEndDate         string = "end-date"
	FlagProjectLocation string = "project-location"
	FlagMetadata        string = "metadata"
)

Variables

This section is empty.

Functions

func ParseDate

func ParseDate(field string, date string) (time.Time, error)

ParseDate parses a date using the format yyyy-mm-dd.

func QueryBalanceCmd

func QueryBalanceCmd() *cobra.Command

QueryBalanceCmd returns a query command that retrieves the tradable and retired balances for a given credit batch and account address.

func QueryBatchInfoCmd

func QueryBatchInfoCmd() *cobra.Command

QueryBatchInfoCmd returns a query command that retrieves information for a given credit batch.

func QueryBatchesCmd

func QueryBatchesCmd() *cobra.Command

QueryBatchesCmd returns a query command that retrieves credit batches for a given credit class.

func QueryClassInfoCmd

func QueryClassInfoCmd() *cobra.Command

QueryClassInfoCmd returns a query command that retrieves information for a given credit class.

func QueryClassesCmd

func QueryClassesCmd() *cobra.Command

QueryClassesCmd returns a query command that lists all credit classes.

func QueryCmd

func QueryCmd(name string) *cobra.Command

QueryCmd returns the parent command for all x/ecocredit query commands.

func QueryCreditTypesCmd

func QueryCreditTypesCmd() *cobra.Command

QueryCreditTypesCmd returns a query command that retrieves the list of approved credit types.

func QueryParams

func QueryParams() *cobra.Command

QueryParams returns ecocredit module parameters.

func QuerySupplyCmd

func QuerySupplyCmd() *cobra.Command

QuerySupplyCmd returns a query command that retrieves the tradable and retired supply of credits for a given credit batch.

func TxCancelCmd

func TxCancelCmd() *cobra.Command

TxCancelCmd returns a transaction command that cancels credits.

func TxCmd

func TxCmd(name string) *cobra.Command

TxCmd returns a root CLI command handler for all x/ecocredit transaction commands.

func TxCreateBatchCmd

func TxCreateBatchCmd() *cobra.Command

TxCreateBatchCmd returns a transaction command that creates a credit batch.

func TxCreateClassCmd

func TxCreateClassCmd() *cobra.Command

TxCreateClassCmd returns a transaction command that creates a credit class.

func TxGenBatchJSONCmd

func TxGenBatchJSONCmd() *cobra.Command

TxGenBatchJSONCmd returns a transaction command that generates JSON to represent a new credit batch.

func TxRetireCmd

func TxRetireCmd() *cobra.Command

TxRetireCmd returns a transaction command that retires credits.

func TxSendCmd

func TxSendCmd() *cobra.Command

TxSendCmd returns a transaction command that sends credits from one account to another.

func TxUpdateClassAdminCmd

func TxUpdateClassAdminCmd() *cobra.Command

func TxUpdateClassIssuersCmd

func TxUpdateClassIssuersCmd() *cobra.Command

func TxUpdateClassMetadataCmd

func TxUpdateClassMetadataCmd() *cobra.Command

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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