-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
avery
committed
Nov 13, 2024
1 parent
77215d5
commit 8b34544
Showing
6 changed files
with
24 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,46 @@ | ||
package types | ||
|
||
import ( | ||
"context" | ||
|
||
"cosmossdk.io/core/address" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" | ||
) | ||
|
||
// BankKeeper defines the expected bank keeper (noalias) | ||
type BankKeeper interface { | ||
MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error | ||
BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error | ||
MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error | ||
BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error | ||
|
||
GetSupply(ctx sdk.Context, denom string) sdk.Coin | ||
GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin | ||
GetSupply(ctx context.Context, denom string) sdk.Coin | ||
GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin | ||
|
||
SendCoinsFromModuleToAccount( | ||
ctx sdk.Context, | ||
ctx context.Context, | ||
senderModule string, | ||
recipientAddr sdk.AccAddress, | ||
amt sdk.Coins, | ||
) error | ||
SendCoinsFromAccountToModule( | ||
ctx sdk.Context, | ||
ctx context.Context, | ||
senderAddr sdk.AccAddress, | ||
recipientModule string, | ||
amt sdk.Coins, | ||
) error | ||
SendCoinsFromModuleToModule( | ||
ctx sdk.Context, | ||
ctx context.Context, | ||
senderModule, recipientModule string, | ||
amt sdk.Coins, | ||
) error | ||
|
||
SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins | ||
SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins | ||
GetBlockedAddresses() map[string]bool | ||
} | ||
|
||
// AccountKeeper defines the expected account keeper (noalias) | ||
type AccountKeeper interface { | ||
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI | ||
GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI | ||
GetModuleAddress(name string) sdk.AccAddress | ||
GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI | ||
GetModuleAccount(ctx context.Context, name string) sdk.ModuleAccountI | ||
AddressCodec() address.Codec | ||
} |
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