0g-chain/x/cdp/integration_test.go
rhuairahrighairigh 2d73e62773 update cdp tests
2019-12-03 14:35:40 +00:00

12 lines
444 B
Go

package cdp_test
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
// Avoid cluttering test cases with long function name
func i(in int64) sdk.Int { return sdk.NewInt(in) }
func d(str string) sdk.Dec { return sdk.MustNewDecFromStr(str) }
func c(denom string, amount int64) sdk.Coin { return sdk.NewInt64Coin(denom, amount) }
func cs(coins ...sdk.Coin) sdk.Coins { return sdk.NewCoins(coins...) }