query

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfigCmd = &cobra.Command{
	Use:   "config",
	Short: "Config of AMO app",
	RunE:  appConfigFunc,
}
View Source
var AppVersionCmd = &cobra.Command{
	Use:   "version",
	Short: "App and protocol versions",
	RunE:  appVersionFunc,
}
View Source
var BalanceCmd = &cobra.Command{
	Use:   "balance <address>",
	Short: "Coin balance of an account",
	Args:  cobra.MinimumNArgs(1),
	RunE:  balanceFunc,
}
View Source
var Cmd = &cobra.Command{
	Use:     "query",
	Aliases: []string{"q"},
	Short:   "Query AMO blockchain data",
	RunE: func(cmd *cobra.Command, args []string) error {
		if err := cmd.Help(); err != nil {
			return err
		}

		return nil
	},
}
View Source
var DIDCmd = &cobra.Command{
	Use:   "did <did>",
	Short: "DID document",
	Args:  cobra.MinimumNArgs(1),
	RunE:  didFunc,
}
View Source
var DelegateCmd = &cobra.Command{
	Use:   "delegate <address>",
	Short: "Delegated stake of an account",
	Args:  cobra.MinimumNArgs(1),
	RunE:  delegateFunc,
}
View Source
var DraftCmd = &cobra.Command{
	Use:   "draft <draft_id>",
	Short: "Draft status",
	Args:  cobra.MinimumNArgs(1),
	RunE:  draftFunc,
}
View Source
var ParcelCmd = &cobra.Command{
	Use:   "parcel <parcelID>",
	Short: "Data parcel detail",
	Args:  cobra.MinimumNArgs(1),
	RunE:  parcelFunc,
}
View Source
var RequestCmd = &cobra.Command{
	Use:   "request <parcel_id> <recipient>",
	Short: "Requested parcel usage",
	Args:  cobra.MinimumNArgs(2),
	RunE:  requestFunc,
}
View Source
var StakeCmd = &cobra.Command{
	Use:   "stake <address>",
	Short: "Stake of an account",
	Args:  cobra.MinimumNArgs(1),
	RunE:  stakeFunc,
}
View Source
var StatusCmd = &cobra.Command{
	Use:   "node",
	Short: "Status of AMO node",
	Long:  "Show status of AMO node including node info, pubkey, latest block hash, app hash, block height and time",
	RunE:  statusFunc,
}
View Source
var StorageCmd = &cobra.Command{
	Use:   "storage <storage_id>",
	Short: "Storage info",
	Args:  cobra.MinimumNArgs(1),
	RunE:  storageFunc,
}
View Source
var UdcCmd = &cobra.Command{
	Use:   "udc <udc_id>",
	Short: "UDC info",
	Args:  cobra.MinimumNArgs(1),
	RunE:  udcFunc,
}
View Source
var UdcLockCmd = &cobra.Command{
	Use:   "lock <udc_id> <address>",
	Short: "Locked UDC of an account",
	Args:  cobra.MinimumNArgs(2),
	RunE:  udcLockFunc,
}
View Source
var UsageCmd = &cobra.Command{
	Use:   "usage <parcel_id> <recipient>",
	Short: "Granted parcel usage",
	Args:  cobra.MinimumNArgs(2),
	RunE:  usageFunc,
}
View Source
var VCCmd = &cobra.Command{
	Use:   "vc <vcid>",
	Short: "Verifiable credential",
	Args:  cobra.MinimumNArgs(1),
	RunE:  vcFunc,
}
View Source
var VoteCmd = &cobra.Command{
	Use:   "vote <draft_id> <address>",
	Short: "Vote status of given voter address",
	Args:  cobra.MinimumNArgs(2),
	RunE:  voteFunc,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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