cli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmdClaimParams

func GetCmdClaimParams(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdClaimParams returns the command for querying claim parameters.

func GetCmdClearPayouts

func GetCmdClearPayouts(cdc *codec.Codec) *cobra.Command

GetCmdClearPayouts implements command for requesting to clear out pending payouts.

func GetCmdCreatePool

func GetCmdCreatePool(cdc *codec.Codec) *cobra.Command

GetCmdCreatePool implements the command for creating a Shield pool.

func GetCmdDepositCollateral

func GetCmdDepositCollateral(cdc *codec.Codec) *cobra.Command

GetCmdDepositCollateral implements command for community member to join a pool by depositing collateral.

func GetCmdPausePool

func GetCmdPausePool(cdc *codec.Codec) *cobra.Command

GetCmdPausePool implements the command for pausing a pool.

func GetCmdPool

func GetCmdPool(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdPool returns the command for querying the pool.

func GetCmdPoolParams

func GetCmdPoolParams(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdPoolParams returns the command for querying pool parameters.

func GetCmdPoolPurchases

func GetCmdPoolPurchases(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdPoolPurchases returns the command for querying purchases in a given pool.

func GetCmdPools

func GetCmdPools(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdPools returns the command for querying a complete list of pools.

func GetCmdProvider

func GetCmdProvider(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdProvider returns the command for querying a provider.

func GetCmdProviders

func GetCmdProviders(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdProviders returns the command for querying all providers.

func GetCmdPurchaseList

func GetCmdPurchaseList(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdPurchaseList returns the command for querying purchases corresponding to a given pool-purchaser pair.

func GetCmdPurchaseShield

func GetCmdPurchaseShield(cdc *codec.Codec) *cobra.Command

GetCmdPurchaseShield implements the command for purchasing Shield.

func GetCmdPurchaserPurchases

func GetCmdPurchaserPurchases(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdPurchaserPurchases returns the command for querying purchases by a given address.

func GetCmdPurchases

func GetCmdPurchases(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdPurchases returns the command for querying all purchases.

func GetCmdReimbursement added in v1.1.0

func GetCmdReimbursement(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdReimbursement returns the command for querying a reimbursement.

func GetCmdReimbursements added in v1.1.0

func GetCmdReimbursements(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdReimbursements returns the command for querying reimbursements.

func GetCmdResumePool

func GetCmdResumePool(cdc *codec.Codec) *cobra.Command

GetCmdResumePool implements the command for resuming a pool.

func GetCmdShieldStakingRate added in v1.1.0

func GetCmdShieldStakingRate(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdShieldStakingRate returns the shield-staking rate for stake-for-shield

func GetCmdStakeForShield added in v1.1.0

func GetCmdStakeForShield(cdc *codec.Codec) *cobra.Command

GetCmdStakeForShield implements the command for purchasing Shield.

func GetCmdStaking added in v1.1.0

func GetCmdStaking(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdStaking returns the command for querying staked-for-shield amounts corresponding to a given pool-purchaser pair.

func GetCmdStatus

func GetCmdStatus(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdStatus returns the command for querying shield status.

func GetCmdSubmitProposal

func GetCmdSubmitProposal(cdc *codec.Codec) *cobra.Command

GetCmdSubmitProposal implements the command for submitting a Shield claim proposal.

func GetCmdUnstakeFromShield added in v1.1.0

func GetCmdUnstakeFromShield(cdc *codec.Codec) *cobra.Command

GetCmdUnstakeFromShield implements the command for purchasing Shield.

func GetCmdUpdatePool

func GetCmdUpdatePool(cdc *codec.Codec) *cobra.Command

GetCmdUpdatePool implements the command for updating an existing Shield pool.

func GetCmdUpdateSponsor added in v1.1.0

func GetCmdUpdateSponsor(cdc *codec.Codec) *cobra.Command

GetCmdUpdateSponsor implements the command for updating a pool's sponsor.

func GetCmdWithdrawCollateral

func GetCmdWithdrawCollateral(cdc *codec.Codec) *cobra.Command

GetCmdWithdrawCollateral implements command for community member to withdraw deposited collateral from Shield pool.

func GetCmdWithdrawForeignRewards

func GetCmdWithdrawForeignRewards(cdc *codec.Codec) *cobra.Command

GetCmdWithdrawForeignRewards implements command for requesting to withdraw foreign tokens rewards.

func GetCmdWithdrawReimbursement

func GetCmdWithdrawReimbursement(cdc *codec.Codec) *cobra.Command

GetCmdWithdrawReimbursement the command for withdrawing reimbursement.

func GetCmdWithdrawRewards

func GetCmdWithdrawRewards(cdc *codec.Codec) *cobra.Command

GetCmdWithdrawRewards implements command for requesting to withdraw native tokens rewards.

func GetQueryCmd

func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetTxCmd

func GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the transaction commands for this module.

Types

type ShieldClaimProposalJSON

type ShieldClaimProposalJSON struct {
	PoolID      uint64    `json:"pool_id" yaml:"pool_id"`
	Loss        sdk.Coins `json:"loss" yaml:"loss"`
	Evidence    string    `json:"evidence" yaml:"evidence"`
	PurchaseID  uint64    `json:"purchase_id" yaml:"purchase_id"`
	Description string    `json:"description" yaml:"description"`
	Deposit     sdk.Coins `json:"deposit" yaml:"deposit"`
}

ShieldClaimProposalJSON defines a shield claim proposal.

func ParseShieldClaimProposalJSON

func ParseShieldClaimProposalJSON(cdc *codec.Codec, proposalFile string) (ShieldClaimProposalJSON, error)

ParseShieldClaimProposalJSON reads and parses a ShieldClaimProposalJSON from a file.

Jump to

Keyboard shortcuts

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