Documentation ¶
Index ¶
- func GetCmdClaimParams() *cobra.Command
- func GetCmdCreatePool() *cobra.Command
- func GetCmdDepositCollateral() *cobra.Command
- func GetCmdDistrParams() *cobra.Command
- func GetCmdPausePool() *cobra.Command
- func GetCmdPool() *cobra.Command
- func GetCmdPoolParams() *cobra.Command
- func GetCmdPoolPurchases() *cobra.Command
- func GetCmdPools() *cobra.Command
- func GetCmdProvider() *cobra.Command
- func GetCmdProviders() *cobra.Command
- func GetCmdPurchaseList() *cobra.Command
- func GetCmdPurchaseShield() *cobra.Command
- func GetCmdPurchaserPurchases() *cobra.Command
- func GetCmdPurchases() *cobra.Command
- func GetCmdReimbursement() *cobra.Command
- func GetCmdReimbursements() *cobra.Command
- func GetCmdResumePool() *cobra.Command
- func GetCmdShieldStakingRate() *cobra.Command
- func GetCmdSponsor() *cobra.Command
- func GetCmdStakeForShield() *cobra.Command
- func GetCmdStaking() *cobra.Command
- func GetCmdStatus() *cobra.Command
- func GetCmdSubmitProposal() *cobra.Command
- func GetCmdUnstakeFromShield() *cobra.Command
- func GetCmdUpdatePool() *cobra.Command
- func GetCmdUpdateSponsor() *cobra.Command
- func GetCmdWithdrawCollateral() *cobra.Command
- func GetCmdWithdrawForeignRewards() *cobra.Command
- func GetCmdWithdrawReimbursement() *cobra.Command
- func GetCmdWithdrawRewards() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewTxCmd() *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 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 GetCmdDistrParams ¶
GetCmdDistrParams returns the command for querying distribution parameters.
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 ¶
GetCmdReimbursement returns the command for querying a reimbursement.
func GetCmdReimbursements ¶
GetCmdReimbursements returns the command for querying reimbursements.
func GetCmdResumePool ¶
GetCmdResumePool implements the command for resuming a pool.
func GetCmdShieldStakingRate ¶
GetCmdShieldStakingRate returns the shield-staking rate for stake-for-shield
func GetCmdSponsor ¶
GetCmdSponsor returns the command for querying the pools for a sponsor address.
func GetCmdStakeForShield ¶
GetCmdStakeForShield implements the command for purchasing Shield.
func GetCmdStaking ¶
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 ¶
GetCmdUnstakeFromShield implements the command for purchasing Shield.
func GetCmdUpdatePool ¶
GetCmdUpdatePool implements the command for updating an existing Shield pool.
func GetCmdUpdateSponsor ¶
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(proposalFile string) (ShieldClaimProposalJSON, error)
ParseShieldClaimProposalJSON reads and parses a ShieldClaimProposalJSON from a file.