Documentation ¶
Index ¶
- func GetCmdClaimParams(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdClearPayouts(cdc *codec.Codec) *cobra.Command
- func GetCmdCreatePool(cdc *codec.Codec) *cobra.Command
- func GetCmdDepositCollateral(cdc *codec.Codec) *cobra.Command
- func GetCmdPausePool(cdc *codec.Codec) *cobra.Command
- func GetCmdPool(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdPoolParams(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdPoolPurchases(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdPools(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdProvider(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdProviders(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdPurchaseList(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdPurchaseShield(cdc *codec.Codec) *cobra.Command
- func GetCmdPurchaserPurchases(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdPurchases(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdReimbursement(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdReimbursements(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdResumePool(cdc *codec.Codec) *cobra.Command
- func GetCmdShieldStakingRate(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdStakeForShield(cdc *codec.Codec) *cobra.Command
- func GetCmdStaking(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdStatus(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdSubmitProposal(cdc *codec.Codec) *cobra.Command
- func GetCmdUnstakeFromShield(cdc *codec.Codec) *cobra.Command
- func GetCmdUpdatePool(cdc *codec.Codec) *cobra.Command
- func GetCmdUpdateSponsor(cdc *codec.Codec) *cobra.Command
- func GetCmdWithdrawCollateral(cdc *codec.Codec) *cobra.Command
- func GetCmdWithdrawForeignRewards(cdc *codec.Codec) *cobra.Command
- func GetCmdWithdrawReimbursement(cdc *codec.Codec) *cobra.Command
- func GetCmdWithdrawRewards(cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetTxCmd(cdc *codec.Codec) *cobra.Command
- type ShieldClaimProposalJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCmdClaimParams ¶
GetCmdClaimParams returns the command for querying claim parameters.
func GetCmdClearPayouts ¶
GetCmdClearPayouts implements command for requesting to clear out pending payouts.
func GetCmdCreatePool ¶
GetCmdCreatePool implements the command for creating a Shield pool.
func GetCmdDepositCollateral ¶
GetCmdDepositCollateral implements command for community member to join a pool by depositing collateral.
func GetCmdPausePool ¶
GetCmdPausePool implements the command for pausing a pool.
func GetCmdPool ¶
GetCmdPool returns the command for querying the pool.
func GetCmdPoolParams ¶
GetCmdPoolParams returns the command for querying pool parameters.
func GetCmdPoolPurchases ¶
GetCmdPoolPurchases returns the command for querying purchases in a given pool.
func GetCmdPools ¶
GetCmdPools returns the command for querying a complete list of pools.
func GetCmdProvider ¶
GetCmdProvider returns the command for querying a provider.
func GetCmdProviders ¶
GetCmdProviders returns the command for querying all providers.
func GetCmdPurchaseList ¶
GetCmdPurchaseList returns the command for querying purchases corresponding to a given pool-purchaser pair.
func GetCmdPurchaseShield ¶
GetCmdPurchaseShield implements the command for purchasing Shield.
func GetCmdPurchaserPurchases ¶
GetCmdPurchaserPurchases returns the command for querying purchases by a given address.
func GetCmdPurchases ¶
GetCmdPurchases returns the command for querying all purchases.
func GetCmdReimbursement ¶ added in v1.1.0
GetCmdReimbursement returns the command for querying a reimbursement.
func GetCmdReimbursements ¶ added in v1.1.0
GetCmdReimbursements returns the command for querying reimbursements.
func GetCmdResumePool ¶
GetCmdResumePool implements the command for resuming a pool.
func GetCmdShieldStakingRate ¶ added in v1.1.0
GetCmdShieldStakingRate returns the shield-staking rate for stake-for-shield
func GetCmdStakeForShield ¶ added in v1.1.0
GetCmdStakeForShield implements the command for purchasing Shield.
func GetCmdStaking ¶ added in v1.1.0
GetCmdStaking returns the command for querying staked-for-shield amounts corresponding to a given pool-purchaser pair.
func GetCmdStatus ¶
GetCmdStatus returns the command for querying shield status.
func GetCmdSubmitProposal ¶
GetCmdSubmitProposal implements the command for submitting a Shield claim proposal.
func GetCmdUnstakeFromShield ¶ added in v1.1.0
GetCmdUnstakeFromShield implements the command for purchasing Shield.
func GetCmdUpdatePool ¶
GetCmdUpdatePool implements the command for updating an existing Shield pool.
func GetCmdUpdateSponsor ¶ added in v1.1.0
GetCmdUpdateSponsor implements the command for updating a pool's sponsor.
func GetCmdWithdrawCollateral ¶
GetCmdWithdrawCollateral implements command for community member to withdraw deposited collateral from Shield pool.
func GetCmdWithdrawForeignRewards ¶
GetCmdWithdrawForeignRewards implements command for requesting to withdraw foreign tokens rewards.
func GetCmdWithdrawReimbursement ¶
GetCmdWithdrawReimbursement the command for withdrawing reimbursement.
func GetCmdWithdrawRewards ¶
GetCmdWithdrawRewards implements command for requesting to withdraw native tokens rewards.
func GetQueryCmd ¶
GetQueryCmd returns the cli query 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.