BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
()
| 494 | // BlockedAddrs returns all the app's module account addresses that are not |
| 495 | // allowed to receive external tokens. |
| 496 | func (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 |
| 507 | func (app *AkashApp) InterfaceRegistry() codectypes.InterfaceRegistry { |