mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 03:55:19 +00:00
3375484f79
* Use cosmossdk.io/errors for deprecated error methods * Update error registration with cosmossdk.io/errors * Use cosmossdk.io/math for deprecated sdk.Int alias * Fix modified proto file * Update sdk.Int usage in swap hooks * Update e2e test deprecated method usage
34 lines
983 B
Go
34 lines
983 B
Go
package keeper_test
|
|
|
|
import (
|
|
sdkmath "cosmossdk.io/math"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
// nolint
|
|
func i(in int64) sdkmath.Int { return sdkmath.NewInt(in) }
|
|
|
|
// nolint
|
|
func c(denom string, amount int64) sdk.Coin { return sdk.NewInt64Coin(denom, amount) }
|
|
|
|
// nolint
|
|
func cs(coins ...sdk.Coin) sdk.Coins { return sdk.NewCoins(coins...) }
|
|
|
|
// func NewAuthGenStateFromAccs(accounts ...authexported.GenesisAccount) app.GenesisState {
|
|
// authGenesis := auth.NewGenesisState(auth.DefaultParams(), accounts)
|
|
// return app.GenesisState{auth.ModuleName: auth.ModuleCdc.MustMarshalJSON(authGenesis)}
|
|
// }
|
|
|
|
// func NewSwapGenStateMulti() app.GenesisState {
|
|
// swapGenesis := types.GenesisState{
|
|
// Params: types.Params{
|
|
// AllowedPools: types.AllowedPools{
|
|
// types.NewAllowedPool("ukava", "usdx"),
|
|
// },
|
|
// SwapFee: sdk.MustNewDecFromStr("0.03"),
|
|
// },
|
|
// }
|
|
|
|
// return app.GenesisState{types.ModuleName: types.ModuleCdc.MustMarshalJSON(swapGenesis)}
|
|
// }
|