MCPcopy Create free account
hub / github.com/akash-network/node / BlockedAddrs

Method BlockedAddrs

app/app.go:496–504  ·  view source on GitHub ↗

BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.

()

Source from the content-addressed store, hash-verified

494// BlockedAddrs returns all the app's module account addresses that are not
495// allowed to receive external tokens.
496func (app *AkashApp) BlockedAddrs() map[string]bool {
497 perms := ModuleAccountPerms()
498 blockedAddrs := make(map[string]bool)
499 for macc := range perms {
500 blockedAddrs[authtypes.NewModuleAddress(macc).String()] = !allowedReceivingModAcc[macc]
501 }
502
503 return blockedAddrs
504}
505
506// InterfaceRegistry returns AkashApp's InterfaceRegistry
507func (app *AkashApp) InterfaceRegistry() codectypes.InterfaceRegistry {

Callers 2

NewAppFunction · 0.95

Calls 2

ModuleAccountPermsFunction · 0.85
StringMethod · 0.45