cli

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCmdClaimParams

func GetCmdClaimParams() *cobra.Command

GetCmdClaimParams returns the command for querying claim parameters.

func GetCmdCreatePool

func GetCmdCreatePool() *cobra.Command

GetCmdCreatePool implements the command for creating a Shield pool.

func GetCmdDepositCollateral

func GetCmdDepositCollateral() *cobra.Command

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

func GetCmdDistrParams added in v2.4.0

func GetCmdDistrParams() *cobra.Command

GetCmdDistrParams returns the command for querying distribution parameters.

func GetCmdPausePool

func GetCmdPausePool() *cobra.Command

GetCmdPausePool implements the command for pausing a pool.

func GetCmdPool

func GetCmdPool() *cobra.Command

GetCmdPool returns the command for querying the pool.

func GetCmdPoolParams

func GetCmdPoolParams() *cobra.Command

GetCmdPoolParams returns the command for querying pool parameters.

func GetCmdPoolPurchases

func GetCmdPoolPurchases() *cobra.Command

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

func GetCmdPools

func GetCmdPools() *cobra.Command

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

func GetCmdProvider

func GetCmdProvider() *cobra.Command

GetCmdProvider returns the command for querying a provider.

func GetCmdProviders

func GetCmdProviders() *cobra.Command

GetCmdProviders returns the command for querying all providers.

func GetCmdPurchaseList

func GetCmdPurchaseList() *cobra.Command

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

func GetCmdPurchaseShield

func GetCmdPurchaseShield() *cobra.Command

GetCmdPurchaseShield implements the command for purchasing Shield.

func GetCmdPurchaserPurchases

func GetCmdPurchaserPurchases() *cobra.Command

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

func GetCmdPurchases

func GetCmdPurchases() *cobra.Command

GetCmdPurchases returns the command for querying all purchases.

func GetCmdReimbursement

func GetCmdReimbursement() *cobra.Command

GetCmdReimbursement returns the command for querying a reimbursement.

func GetCmdReimbursements

func GetCmdReimbursements() *cobra.Command

GetCmdReimbursements returns the command for querying reimbursements.

func GetCmdResumePool

func GetCmdResumePool() *cobra.Command

GetCmdResumePool implements the command for resuming a pool.

func GetCmdShieldStakingRate

func GetCmdShieldStakingRate() *cobra.Command

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

func GetCmdSponsor

func GetCmdSponsor() *cobra.Command

GetCmdSponsor returns the command for querying the pools for a sponsor address.

func GetCmdStakeForShield

func GetCmdStakeForShield() *cobra.Command

GetCmdStakeForShield implements the command for purchasing Shield.

func GetCmdStaking

func GetCmdStaking() *cobra.Command

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

func GetCmdStatus

func GetCmdStatus() *cobra.Command

GetCmdStatus returns the command for querying shield status.

func GetCmdSubmitProposal

func GetCmdSubmitProposal() *cobra.Command

GetCmdSubmitProposal implements the command for submitting a Shield claim proposal.

func GetCmdUnstakeFromShield

func GetCmdUnstakeFromShield() *cobra.Command

GetCmdUnstakeFromShield implements the command for purchasing Shield.

func GetCmdUpdatePool

func GetCmdUpdatePool() *cobra.Command

GetCmdUpdatePool implements the command for updating an existing Shield pool.

func GetCmdUpdateSponsor

func GetCmdUpdateSponsor() *cobra.Command

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

func GetCmdWithdrawCollateral

func GetCmdWithdrawCollateral() *cobra.Command

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

func GetCmdWithdrawForeignRewards

func GetCmdWithdrawForeignRewards() *cobra.Command

GetCmdWithdrawForeignRewards implements command for requesting to withdraw foreign tokens rewards.

func GetCmdWithdrawReimbursement

func GetCmdWithdrawReimbursement() *cobra.Command

GetCmdWithdrawReimbursement the command for withdrawing reimbursement.

func GetCmdWithdrawRewards

func GetCmdWithdrawRewards() *cobra.Command

GetCmdWithdrawRewards implements command for requesting to withdraw native tokens rewards.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

func NewTxCmd

func NewTxCmd() *cobra.Command

NewTxCmd 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(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