0g-chain/x/cdp/integration_test.go

12 lines
444 B
Go
Raw Normal View History

2019-12-03 14:35:40 +00:00
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...) }