-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't check bank balance for estimateXX queries
also general cleanup for estimateXX
- Loading branch information
1 parent
1812213
commit e3ac929
Showing
8 changed files
with
288 additions
and
471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package keeper | ||
|
||
import ( | ||
"context" | ||
|
||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
|
||
"github.com/neutron-org/neutron/v4/x/dex/types" | ||
) | ||
|
||
type SimulationBankKeeper struct { | ||
originalBankKeeper types.BankKeeper | ||
} | ||
|
||
func (s SimulationBankKeeper) SendCoinsFromAccountToModule(_ context.Context, _ sdk.AccAddress, _ string, _ sdk.Coins) error { | ||
return nil | ||
} | ||
|
||
func (s SimulationBankKeeper) SendCoinsFromModuleToAccount(_ context.Context, _ string, _ sdk.AccAddress, _ sdk.Coins) error { | ||
return nil | ||
} | ||
|
||
func (s SimulationBankKeeper) MintCoins(_ context.Context, _ string, _ sdk.Coins) error { | ||
return nil | ||
} | ||
|
||
func (s SimulationBankKeeper) BurnCoins(_ context.Context, _ string, _ sdk.Coins) error { | ||
return nil | ||
} | ||
|
||
func (s SimulationBankKeeper) IterateAccountBalances(ctx context.Context, addr sdk.AccAddress, cb func(sdk.Coin) bool) { | ||
s.originalBankKeeper.IterateAccountBalances(ctx, addr, cb) | ||
} | ||
|
||
func (s SimulationBankKeeper) GetSupply(ctx context.Context, denom string) sdk.Coin { | ||
return s.originalBankKeeper.GetSupply(ctx, denom) | ||
} | ||
|
||
func NewSimulationBankKeeper(bk types.BankKeeper) types.BankKeeper { | ||
return SimulationBankKeeper{originalBankKeeper: bk} | ||
} |
Oops, something went wrong.