Documentation
¶
Index ¶
- Constants
- Variables
- func AddBidFilterFlags(flags *pflag.FlagSet)
- func AddBidIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddDeploymentFilterFlags(flags *pflag.FlagSet)
- func AddDeploymentIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddDepositorFlag(flags *pflag.FlagSet)
- func AddGroupIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddLeaseFilterFlags(flags *pflag.FlagSet)
- func AddLeaseIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddOrderFilterFlags(flags *pflag.FlagSet)
- func AddOrderIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
- func AddProviderFlag(flags *pflag.FlagSet)
- func AddQueryBidIDFlags(flags *pflag.FlagSet)
- func BidFiltersFromFlags(flags *pflag.FlagSet) (v1beta5.BidFilters, error)
- func BidIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.BidID, error)
- func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, ...) *cobra.Command
- func ConvertBech32Cmd() *cobra.Command
- func DepFiltersFromFlags(flags *pflag.FlagSet) (dv1beta4.DeploymentFilters, error)
- func DeploymentIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (dv1.DeploymentID, error)
- func DeploymentIDFromFlagsForOwner(flags *pflag.FlagSet, owner sdk.Address) (dv1.DeploymentID, error)
- func DepositorFromFlags(flags *pflag.FlagSet, owner string) (string, error)
- func DiscoverClient(ctx context.Context, cctx sdkclient.Context, opts ...cltypes.ClientOption) (v1beta3.Client, error)
- func DiscoverQueryClient(ctx context.Context, cctx sdkclient.Context) (v1beta3.LightClient, error)
- func GetAccountAddressByIDCmd() *cobra.Command
- func GetAccountCmd() *cobra.Command
- func GetAccountsCmd() *cobra.Command
- func GetDeploymentTxCmd(key string) *cobra.Command
- func GetEscrowQueryCmd() *cobra.Command
- func GetMarketTxCmd(key string) *cobra.Command
- func GetMultiSignBatchCmd() *cobra.Command
- func GetMultiSignCommand() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func GetSignBatchCommand() *cobra.Command
- func GetSignCommand() *cobra.Command
- func GetTxCmd() *cobra.Command
- func GetTxEncoder(cdc *codec.LegacyAmino) (encoder sdk.TxEncoder)
- func GetValidateSignaturesCommand() *cobra.Command
- func GetVestingTxCmd() *cobra.Command
- func GroupIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (dv1.GroupID, error)
- func LeaseCalcBalanceRemain(balance sdk.Dec, currBlock, settledAt int64, leasePrice sdk.Dec) float64
- func LeaseCalcBlocksRemain(balance float64, leasePrice sdk.Dec) int64
- func LeaseFiltersFromFlags(flags *pflag.FlagSet) (v1.LeaseFilters, error)
- func LeaseIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.LeaseID, error)
- func MarkReqBidIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqDeploymentIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqGroupIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqLeaseIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqOrderIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
- func MarkReqProviderFlag(cmd *cobra.Command)
- func MustClientFromContext(ctx context.Context) v1beta3.Client
- func MustQueryClientFromContext(ctx context.Context) v1beta3.LightClient
- func NewBankMultiSendTxCmd() *cobra.Command
- func NewBankSendTxCmd() *cobra.Command
- func NewBankTxCmd() *cobra.Command
- func NewMsgCreatePeriodicVestingAccountCmd() *cobra.Command
- func NewMsgCreatePermanentLockedAccountCmd() *cobra.Command
- func NewMsgCreateVestingAccountCmd() *cobra.Command
- func OrderFiltersFromFlags(flags *pflag.FlagSet) (v1beta5.OrderFilters, error)
- func OrderIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.OrderID, error)
- func ParseQueryResponse(bz []byte) (sdk.SimulationResponse, error)
- func ParseSigArgs(args []string) ([]string, error)
- func QueryCmd() *cobra.Command
- func QueryModuleAccountByNameCmd() *cobra.Command
- func QueryModuleAccountsCmd() *cobra.Command
- func QueryParamsCmd() *cobra.Command
- func QueryTxCmd() *cobra.Command
- func QueryTxsByEventsCmd() *cobra.Command
- func RPCAkash(_ *cmtrpctypes.Context) (*aclient.Akash, error)
- func ReadTxFromFile(ctx client.Context, filename string) (tx sdk.Tx, err error)
- func SignTx(txFactory tx.Factory, clientCtx client.Context, name string, ...) error
- func SignTxWithSignerAddress(txFactory tx.Factory, clientCtx client.Context, addr sdk.AccAddress, ...) (err error)
- func TxCmd() *cobra.Command
- type BatchScanner
- type BroadcastReq
- type ContextType
- type DeploymentIDOption
- type DeploymentIDOptions
- type GasEstimateResponse
- type InputPeriod
- type MarketOption
- type MarketOptions
- type VestingData
Constants ¶
const ( ContextTypeClient = "context-client" ContextTypeQueryClient = "context-query-client" )
Variables ¶
var FlagSplit = "split"
Functions ¶
func AddBidFilterFlags ¶
AddBidFilterFlags add flags to filter for bid list
func AddBidIDFlags ¶
func AddBidIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
AddBidIDFlags add flags for bid
func AddDeploymentFilterFlags ¶
AddDeploymentFilterFlags add flags to filter for deployment list
func AddDeploymentIDFlags ¶
func AddDeploymentIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
AddDeploymentIDFlags add flags for deployment except for Owner when NoOwner is set
func AddDepositorFlag ¶
AddDepositorFlag adds the `--depositor-account` flag
func AddGroupIDFlags ¶
func AddGroupIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
AddGroupIDFlags add flags for Group
func AddLeaseFilterFlags ¶
AddLeaseFilterFlags add flags to filter for lease list
func AddLeaseIDFlags ¶
func AddLeaseIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
func AddOrderFilterFlags ¶
AddOrderFilterFlags add flags to filter for order list
func AddOrderIDFlags ¶
func AddOrderIDFlags(flags *pflag.FlagSet, opts ...DeploymentIDOption)
AddOrderIDFlags add flags for order
func AddProviderFlag ¶
AddProviderFlag add provider flag to command flags set
func AddQueryBidIDFlags ¶
AddQueryBidIDFlags add flags for bid in query commands
func BidFiltersFromFlags ¶
func BidFiltersFromFlags(flags *pflag.FlagSet) (v1beta5.BidFilters, error)
BidFiltersFromFlags returns BidFilters with given flags and error if occurred
func BidIDFromFlags ¶
func BidIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.BidID, error)
BidIDFromFlags returns BidID with given flags and error if occurred Here provider value is taken from flags
func CollectGenTxsCmd ¶
func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string, validator types.MessageValidator) *cobra.Command
CollectGenTxsCmd - return the cobra command to collect genesis transactions
func ConvertBech32Cmd ¶
ConvertBech32Cmd get cmd to convert any bech32 address to an akash prefix.
func DepFiltersFromFlags ¶
func DepFiltersFromFlags(flags *pflag.FlagSet) (dv1beta4.DeploymentFilters, error)
DepFiltersFromFlags returns DeploymentFilters with given flags and error if occurred
func DeploymentIDFromFlags ¶
func DeploymentIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (dv1.DeploymentID, error)
DeploymentIDFromFlags returns DeploymentID with given flags, owner and error if occurred
func DeploymentIDFromFlagsForOwner ¶
func DeploymentIDFromFlagsForOwner(flags *pflag.FlagSet, owner sdk.Address) (dv1.DeploymentID, error)
DeploymentIDFromFlagsForOwner returns DeploymentID with given flags, owner and error if occurred
func DepositorFromFlags ¶
DepositorFromFlags returns the depositor account if one was specified in flags, otherwise it returns the owner's account.
func DiscoverClient ¶
func DiscoverQueryClient ¶
func GetAccountAddressByIDCmd ¶
GetAccountAddressByIDCmd returns a query account that will display the account address of a given account id.
func GetAccountCmd ¶
GetAccountCmd returns a query account that will display the state of the account at a given address.
func GetAccountsCmd ¶
GetAccountsCmd returns a query command that will display a list of accounts
func GetDeploymentTxCmd ¶
GetDeploymentTxCmd returns the transaction commands for this module
func GetMarketTxCmd ¶
GetMarketTxCmd returns the transaction commands for market module
func GetMultiSignCommand ¶
GetMultiSignCommand returns the multi-sign command
func GetQueryCmd ¶
GetQueryCmd returns the transaction commands for this module
func GetSignBatchCommand ¶
GetSignBatchCommand returns the transaction sign-batch command.
func GetSignCommand ¶
GetSignCommand returns the transaction sign command.
func GetTxEncoder ¶
func GetTxEncoder(cdc *codec.LegacyAmino) (encoder sdk.TxEncoder)
GetTxEncoder return tx encoder from global sdk configuration if ones is defined. Otherwise returns encoder with default logic.
func GetVestingTxCmd ¶
GetVestingTxCmd returns vesting module's transaction commands.
func GroupIDFromFlags ¶
GroupIDFromFlags returns GroupID with given flags and error if occurred
func LeaseCalcBalanceRemain ¶
func LeaseFiltersFromFlags ¶
LeaseFiltersFromFlags returns LeaseFilters with given flags and error if occurred
func LeaseIDFromFlags ¶
func LeaseIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.LeaseID, error)
LeaseIDFromFlags returns LeaseID with given flags and error if occurred Here provider value is taken from flags
func MarkReqBidIDFlags ¶
func MarkReqBidIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqBidIDFlags marks flags required for bid Used in get bid query command
func MarkReqDeploymentIDFlags ¶
func MarkReqDeploymentIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqDeploymentIDFlags marks flags required except for Owner when NoOwner is set
func MarkReqGroupIDFlags ¶
func MarkReqGroupIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqGroupIDFlags marks flags required for group
func MarkReqLeaseIDFlags ¶
func MarkReqLeaseIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqLeaseIDFlags marks flags required for bid Used in get bid query command
func MarkReqOrderIDFlags ¶
func MarkReqOrderIDFlags(cmd *cobra.Command, opts ...DeploymentIDOption)
MarkReqOrderIDFlags marks flags required for order
func MarkReqProviderFlag ¶
MarkReqProviderFlag marks provider flag as required
func MustQueryClientFromContext ¶
func MustQueryClientFromContext(ctx context.Context) v1beta3.LightClient
func NewBankMultiSendTxCmd ¶
NewBankMultiSendTxCmd returns a CLI command handler for creating a MsgMultiSend transaction. For a better UX this command is limited to send funds from one account to two or more accounts.
func NewBankSendTxCmd ¶
NewBankSendTxCmd returns a CLI command handler for creating a MsgSend transaction.
func NewBankTxCmd ¶
NewBankTxCmd returns a root CLI command handler for all x/bank transaction commands.
func NewMsgCreatePeriodicVestingAccountCmd ¶
NewMsgCreatePeriodicVestingAccountCmd returns a CLI command handler for creating a MsgCreatePeriodicVestingAccountCmd transaction.
func NewMsgCreatePermanentLockedAccountCmd ¶
NewMsgCreatePermanentLockedAccountCmd returns a CLI command handler for creating a MsgCreatePermanentLockedAccount transaction.
func NewMsgCreateVestingAccountCmd ¶
NewMsgCreateVestingAccountCmd returns a CLI command handler for creating a MsgCreateVestingAccount transaction.
func OrderFiltersFromFlags ¶
func OrderFiltersFromFlags(flags *pflag.FlagSet) (v1beta5.OrderFilters, error)
OrderFiltersFromFlags returns OrderFilters with given flags and error if occurred
func OrderIDFromFlags ¶
func OrderIDFromFlags(flags *pflag.FlagSet, opts ...MarketOption) (v1.OrderID, error)
OrderIDFromFlags returns OrderID with given flags and error if occurred
func ParseQueryResponse ¶
func ParseQueryResponse(bz []byte) (sdk.SimulationResponse, error)
func ParseSigArgs ¶
ParseSigArgs parses comma-separated signatures from the CLI arguments.
func QueryModuleAccountByNameCmd ¶
QueryModuleAccountByNameCmd returns a command to
func QueryModuleAccountsCmd ¶
QueryModuleAccountsCmd returns a list of all the existing module accounts with their account information and permissions
func QueryParamsCmd ¶
QueryParamsCmd returns the command handler for evidence parameter querying.
func QueryTxCmd ¶
QueryTxCmd implements the default command for a tx query.
func QueryTxsByEventsCmd ¶
QueryTxsByEventsCmd returns a command to search through transactions by events.
func ReadTxFromFile ¶
ReadTxFromFile and decode a StdTx from the given filename. Can pass "-" to read from stdin.
func SignTx ¶
func SignTx(txFactory tx.Factory, clientCtx client.Context, name string, txBuilder client.TxBuilder, offline, overwriteSig bool) error
SignTx signs a transaction managed by the TxBuilder using a `name` key stored in Keybase. The new signature is appended to the TxBuilder when overwrite=false or overwritten otherwise. Don't perform online validation or lookups if offline is true.
func SignTxWithSignerAddress ¶
func SignTxWithSignerAddress(txFactory tx.Factory, clientCtx client.Context, addr sdk.AccAddress, name string, txBuilder client.TxBuilder, offline, overwrite bool, ) (err error)
SignTxWithSignerAddress attaches a signature to a transaction. Don't perform online validation or lookups if offline is true, else populate account and sequence numbers from a foreign account. This function should only be used when signing with a multisig. For normal keys, please use SignTx directly.
Types ¶
type BatchScanner ¶
BatchScanner provides a convenient interface for reading batch data such as a file of newline-delimited JSON encoded StdTx.
func NewBatchScanner ¶
func NewBatchScanner(cfg client.TxConfig, r io.Reader) *BatchScanner
NewBatchScanner returns a new BatchScanner to read newline-delimited StdTx transactions from r.
func ReadTxsFromInput ¶
func ReadTxsFromInput(txCfg client.TxConfig, filenames ...string) (scanner *BatchScanner, err error)
ReadTxsFromInput reads multiples txs from the given filename(s). Can pass "-" to read from stdin. Unlike ReadTxFromFile, this function does not decode the txs.
func (*BatchScanner) Scan ¶
func (bs *BatchScanner) Scan() bool
Scan advances the Scanner to the next line.
func (BatchScanner) Tx ¶
func (bs BatchScanner) Tx() sdk.Tx
Tx returns the most recent Tx unmarshalled by a call to Scan.
func (BatchScanner) UnmarshalErr ¶
func (bs BatchScanner) UnmarshalErr() error
UnmarshalErr returns the first unmarshalling error that was encountered by the scanner.
type BroadcastReq ¶
type BroadcastReq struct {
Tx legacytx.StdTx `json:"tx" yaml:"tx"`
Mode string `json:"mode" yaml:"mode"`
}
BroadcastReq defines a tx broadcasting request.
type DeploymentIDOption ¶
type DeploymentIDOption func(*DeploymentIDOptions)
func DeploymentIDOptionNoOwner ¶
func DeploymentIDOptionNoOwner(val bool) DeploymentIDOption
DeploymentIDOptionNoOwner do not add mark as required owner flag
type GasEstimateResponse ¶
type GasEstimateResponse struct {
GasEstimate uint64 `json:"gas_estimate" yaml:"gas_estimate"`
}
GasEstimateResponse defines a response definition for tx gas estimation.
func (GasEstimateResponse) String ¶
func (gr GasEstimateResponse) String() string
type InputPeriod ¶
type MarketOption ¶
type MarketOption func(*MarketOptions)
func WithOwner ¶
func WithOwner(val sdk.AccAddress) MarketOption
func WithProvider ¶
func WithProvider(val sdk.AccAddress) MarketOption
type MarketOptions ¶
type MarketOptions struct {
Owner sdk.AccAddress
Provider sdk.AccAddress
}
type VestingData ¶
type VestingData struct {
StartTime int64 `json:"start_time"`
Periods []InputPeriod `json:"periods"`
}
Source Files
¶
- auth_flags.go
- auth_multisign.go
- auth_tx.go
- bank_tx.go
- bech32.go
- cert.go
- client.go
- deployment_flags.go
- deployment_tx.go
- escrow_query.go
- escrow_tx.go
- gentxs.go
- market_flags.go
- market_tx.go
- query.go
- query_auth.go
- tx.go
- vesting_tx.go