mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
15 lines
348 B
Go
15 lines
348 B
Go
|
package keeper_test
|
||
|
|
||
|
import (
|
||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||
|
)
|
||
|
|
||
|
func c(denom string, amount int64) sdk.Coin { return sdk.NewInt64Coin(denom, amount) }
|
||
|
func cs(coins ...sdk.Coin) sdk.Coins { return sdk.NewCoins(coins...) }
|
||
|
func is(ns ...int64) (is []sdk.Int) {
|
||
|
for _, n := range ns {
|
||
|
is = append(is, sdk.NewInt(n))
|
||
|
}
|
||
|
return
|
||
|
}
|