cli

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagSpendLimit      = "spend-limit"
	FlagSpAddress       = "SPAddress"
	FlagOperatorAddress = "operator-address"
	FlagFundingAddress  = "funding-address"
	FlagSealAddress     = "seal-address"
	FlagApprovalAddress = "approval-address"
	FlagCreator         = "creator"
	FlagExpiration      = "expiration"
	FlagEndpoint        = "endpoint"

	FlagMoniker     = "moniker"
	FlagEditMoniker = "new-moniker"
	FlagIdentity    = "identity"
	FlagWebsite     = "website"
	FlagDetails     = "details"

	FlagNodeID = "node-id"
	FlagIP     = "ip"

	FlagReadPrice     = "read-price"
	FlagStorePrice    = "store-price"
	FlagFreeReadQuota = "free-read-quota"

	FlagSecurityContact = "security-contact"
)

Variables

This section is empty.

Functions

func BuildCreateStorageProviderMsg added in v0.0.7

func BuildCreateStorageProviderMsg(config TxCreateStorageProviderConfig, txBldr tx.Factory) (tx.Factory, sdk.Msg, error)

BuildCreateStorageProviderMsg makes a new MsgCreateStorageProvider.

func CmdDeposit

func CmdDeposit() *cobra.Command

func CmdEditStorageProvider

func CmdEditStorageProvider() *cobra.Command

func CmdGrantDepositAuthorization

func CmdGrantDepositAuthorization() *cobra.Command

func CmdQueryParams

func CmdQueryParams() *cobra.Command

func CmdStorageProvider added in v0.0.7

func CmdStorageProvider() *cobra.Command

func CmdStorageProviders added in v0.0.7

func CmdStorageProviders() *cobra.Command

func CreateStorageProviderMsgFlagSet added in v0.0.7

func CreateStorageProviderMsgFlagSet(ipDefault string) (fs *flag.FlagSet, defaultsDesc string)

CreateStorageProviderMsgFlagSet Return the flagset, particular flags, and a description of defaults this is anticipated to be used with the gen-tx

func GetQueryCmd

func GetQueryCmd(queryRoute string) *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns the transaction commands for this module

Types

type TxCreateStorageProviderConfig added in v0.0.7

type TxCreateStorageProviderConfig struct {
	ChainID string
	NodeID  string

	Creator sdk.AccAddress

	Moniker         string
	Identity        string
	Website         string
	SecurityContact string
	Details         string

	SpAddress       sdk.AccAddress
	FundingAddress  sdk.AccAddress
	SealAddress     sdk.AccAddress
	ApprovalAddress sdk.AccAddress

	Endpoint string
	Deposit  string

	ReadPrice     sdk.Dec
	FreeReadQuota uint64
	StorePrice    sdk.Dec
}

func PrepareConfigForTxCreateStorageProvider added in v0.0.7

func PrepareConfigForTxCreateStorageProvider(flagSet *flag.FlagSet) (TxCreateStorageProviderConfig, error)

Jump to

Keyboard shortcuts

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