Documentation ¶
Index ¶
- type Helper
- func (sh *Helper) CreatePool(addr, sponsorAddr sdk.AccAddress, deposit, shield, shieldLimit int64, ...)
- func (sh *Helper) DecCoinsI64(amt int64) sdk.DecCoins
- func (sh *Helper) DepositCollateral(addr sdk.AccAddress, amount int64, ok bool)
- func (sh *Helper) GetFundedAcc(bk bankkeeper.Keeper, pk cryptotypes.PubKey, amt int64) sdk.AccAddress
- func (sh *Helper) Handle(msg sdk.Msg, ok bool) *sdk.Result
- func (sh *Helper) HandleProposal(content govtypes.Content, ok bool)
- func (sh *Helper) PurchaseShield(purchaser sdk.AccAddress, shield int64, poolID uint64, ok bool)
- func (sh *Helper) ShieldClaimProposal(proposer sdk.AccAddress, loss int64, poolID, purchaseID uint64, ok bool)
- func (sh *Helper) StakeForShield(poolID uint64, shield int64, desc string, from sdk.AccAddress)
- func (sh *Helper) TurnBlock(ctx sdk.Context)
- func (sh *Helper) UpdatePool(poolID uint64, fromAddr sdk.AccAddress, serviceFee, shield, shieldLimit int64, ...)
- func (sh *Helper) WithdrawCollateral(addr sdk.AccAddress, amount int64, ok bool)
- func (sh *Helper) WithdrawReimbursement(purchaser sdk.AccAddress, proposalID uint64, ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper is a structure which wraps the staking handler and provides methods useful in tests
func (*Helper) CreatePool ¶
func (sh *Helper) CreatePool(addr, sponsorAddr sdk.AccAddress, deposit, shield, shieldLimit int64, sponsor, description string)
func (*Helper) DepositCollateral ¶
func (sh *Helper) DepositCollateral(addr sdk.AccAddress, amount int64, ok bool)
func (*Helper) GetFundedAcc ¶ added in v2.7.0
func (sh *Helper) GetFundedAcc(bk bankkeeper.Keeper, pk cryptotypes.PubKey, amt int64) sdk.AccAddress
func (*Helper) HandleProposal ¶
HandleProposal calls shield proposal handler on a given proposal.
func (*Helper) PurchaseShield ¶
func (*Helper) ShieldClaimProposal ¶
func (*Helper) StakeForShield ¶ added in v2.7.0
func (*Helper) UpdatePool ¶ added in v2.7.0
func (*Helper) WithdrawCollateral ¶
func (sh *Helper) WithdrawCollateral(addr sdk.AccAddress, amount int64, ok bool)
func (*Helper) WithdrawReimbursement ¶
func (sh *Helper) WithdrawReimbursement(purchaser sdk.AccAddress, proposalID uint64, ok bool)
Click to show internal directories.
Click to hide internal directories.