Documentation ¶
Index ¶
- func BoxOwnerCheck(cdc *codec.Codec, cliCtx context.CLIContext, sender auth.Account, boxID string) (types.Box, error)
- func CalcInterest(perCoupon sdk.Dec, share sdk.Int, interest types.BoxToken) sdk.Int
- func CalcInterestRate(totalAmount sdk.Int, price sdk.Int, interest sdk.Coin, decimals uint) sdk.Dec
- func CheckBoxId(boxID string) sdk.Error
- func GetBoxByID(cdc *codec.Codec, cliCtx context.CLIContext, boxID string) (types.Box, error)
- func GetBoxCoinByDecimal(cdc *codec.Codec, cliCtx context.CLIContext, coin sdk.Coin) sdk.Coin
- func GetBoxTags(boxID string, boxType string, sender sdk.AccAddress) sdk.Tags
- func GetBoxTypeByValue(value string) string
- func GetCoinDenomByFutureBoxSeq(boxID string, seq int) string
- func GetMaxPrecision(dec sdk.Dec, decimals uint) sdk.Dec
- func GetSeqFromFutureBoxSeq(boxSeqStr string) int
- func IsBoxId(boxID string) bool
- func MulDecimals(coin sdk.Coin, decimals uint) sdk.Int
- func ParseCoin(denom string, amount sdk.Int) sdk.Coin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoxOwnerCheck ¶
func CalcInterest ¶
func CalcInterestRate ¶
func CheckBoxId ¶
func GetBoxByID ¶
func GetBoxCoinByDecimal ¶
func GetBoxTags ¶
func GetBoxTypeByValue ¶
func GetSeqFromFutureBoxSeq ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.