"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const db_1=require("@b/db"),cache_1=require("@b/utils/cache");exports.metadata={summary:"Get wallet types",operationId:"getWalletTypes",tags:["Admin","Wallets"],responses:{200:{description:"Wallet types",content:{"application/json":{schema:{type:"object",properties:{types:{type:"array",items:{type:"object",properties:{value:{type:"string"},label:{type:"string"}}}}}}}}}}};exports.default=async()=>{const e=[{id:"FIAT",name:"Fiat"}],t=cache_1.CacheManager.getInstance(),a=await t.getSetting("spotWallets"),s=!0===a||"true"===a;await db_1.models.exchange.findOne({where:{status:!0}})&&s&&e.push({id:"SPOT",name:"Spot"});(await t.getExtensions()).has("ecosystem")&&e.push({id:"ECO",name:"Funding"});return e};