@@ -193,7 +193,8 @@ Restricted permission to mint per module could be achieved by using baseKeeper w
193193// between accounts.
194194type Keeper interface {
195195 SendKeeper
196- WithMintCoinsRestriction (MintingRestrictionFn) BaseKeeper
196+ WithMintCoinsRestriction (types.MintingRestrictionFn ) BaseKeeper
197+ WithObjStoreKey (storetypes.StoreKey ) BaseKeeper
197198
198199 InitGenesis (context.Context , *types.GenesisState )
199200 ExportGenesis (context.Context ) *types.GenesisState
@@ -205,6 +206,7 @@ type Keeper interface {
205206 GetDenomMetaData (ctx context.Context , denom string ) (types.Metadata , bool )
206207 HasDenomMetaData (ctx context.Context , denom string ) bool
207208 SetDenomMetaData (ctx context.Context , denomMetaData types.Metadata )
209+ GetAllDenomMetaData (ctx context.Context ) []types.Metadata
208210 IterateAllDenomMetaData (ctx context.Context , cb func (types.Metadata ) bool )
209211
210212 SendCoinsFromModuleToAccount (ctx context.Context , senderModule string , recipientAddr sdk.AccAddress , amt sdk.Coins ) error
@@ -215,12 +217,15 @@ type Keeper interface {
215217 MintCoins (ctx context.Context , moduleName string , amt sdk.Coins ) error
216218 BurnCoins (ctx context.Context , moduleName string , amt sdk.Coins ) error
217219
220+ SendCoinsFromAccountToModuleVirtual (ctx context.Context , senderAddr sdk.AccAddress , recipientModule string , amt sdk.Coins ) error
221+ SendCoinsFromModuleToAccountVirtual (ctx context.Context , senderModule string , recipientAddr sdk.AccAddress , amt sdk.Coins ) error
222+ CreditVirtualAccounts (ctx context.Context ) error
223+ SendCoinsFromVirtual (ctx context.Context , fromAddr, toAddr sdk.AccAddress , amt sdk.Coins ) error
224+ SendCoinsToVirtual (ctx context.Context , fromAddr, toAddr sdk.AccAddress , amt sdk.Coins ) error
225+
218226 DelegateCoins (ctx context.Context , delegatorAddr, moduleAccAddr sdk.AccAddress , amt sdk.Coins ) error
219227 UndelegateCoins (ctx context.Context , moduleAccAddr, delegatorAddr sdk.AccAddress , amt sdk.Coins ) error
220228
221- // GetAuthority gets the address capable of executing governance proposal messages. Usually the gov module account.
222- GetAuthority () string
223-
224229 types.QueryServer
225230}
226231```
@@ -236,8 +241,8 @@ accounts. The send keeper does not alter the total supply (mint or burn coins).
236241type SendKeeper interface {
237242 ViewKeeper
238243
239- AppendSendRestriction (restriction SendRestrictionFn )
240- PrependSendRestriction (restriction SendRestrictionFn )
244+ AppendSendRestriction (restriction types. SendRestrictionFn )
245+ PrependSendRestriction (restriction types. SendRestrictionFn )
241246 ClearSendRestriction ()
242247
243248 InputOutputCoins (ctx context.Context , input types.Input , outputs []types.Output ) error
@@ -247,16 +252,20 @@ type SendKeeper interface {
247252 SetParams (ctx context.Context , params types.Params ) error
248253
249254 IsSendEnabledDenom (ctx context.Context , denom string ) bool
255+ GetSendEnabledEntry (ctx context.Context , denom string ) (types.SendEnabled , bool )
250256 SetSendEnabled (ctx context.Context , denom string , value bool )
251257 SetAllSendEnabled (ctx context.Context , sendEnableds []*types.SendEnabled )
252- DeleteSendEnabled (ctx context.Context , denom string )
258+ DeleteSendEnabled (ctx context.Context , denoms ... string )
253259 IterateSendEnabledEntries (ctx context.Context , cb func (denom string , sendEnabled bool ) (stop bool ))
254260 GetAllSendEnabledEntries (ctx context.Context ) []types.SendEnabled
255261
256262 IsSendEnabledCoin (ctx context.Context , coin sdk.Coin ) bool
257263 IsSendEnabledCoins (ctx context.Context , coins ...sdk .Coin ) error
258264
259265 BlockedAddr (addr sdk.AccAddress ) bool
266+ GetBlockedAddresses () map [string ]bool
267+
268+ GetAuthority () string
260269}
261270```
262271
0 commit comments