/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@moralisweb3/sol-api@2.27.2/lib/esm/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{ApiModule,CoreProvider}from"@moralisweb3/common-core";import{getBalanceOperation,getNFTsOperation,getPortfolioOperation,getSPLOperation,getNFTMetadataOperation,GetTokenPriceOperation,GetTokenMetadataOperation}from"@moralisweb3/common-sol-utils";import{OperationResolver,OperationV3Resolver}from"@moralisweb3/api-utils";var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var ClientSolApi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.account={getBalance:function(e){return new OperationResolver(getBalanceOperation,t.baseUrl,t.core).fetch(e)},getNFTs:function(e){return new OperationResolver(getNFTsOperation,t.baseUrl,t.core).fetch(e)},getPortfolio:function(e){return new OperationResolver(getPortfolioOperation,t.baseUrl,t.core).fetch(e)},getSPL:function(e){return new OperationResolver(getSPLOperation,t.baseUrl,t.core).fetch(e)}},t.nft={getNFTMetadata:function(e){return new OperationResolver(getNFTMetadataOperation,t.baseUrl,t.core).fetch(e)}},t.token={getTokenPrice:function(e){return new OperationV3Resolver(GetTokenPriceOperation,t.baseUrl,t.core).fetch(e,null)},getTokenMetadata:function(e){return new OperationV3Resolver(GetTokenMetadataOperation,t.baseUrl,t.core).fetch(e,null)}},t}return __extends(t,e),t}(ApiModule),SolApiConfig={solApiBaseUrl:{name:"solApiBaseUrl",defaultValue:"https://solana-gateway.moralis.io"}},EvmSolApiConfigSetup=function(){function e(){}return e.register=function(e){e.registerKey(SolApiConfig.solApiBaseUrl)},e}(),SolApi=function(e){function t(o){return e.call(this,t.moduleName,o,(function(){return o.config.get(SolApiConfig.solApiBaseUrl)}))||this}return __extends(t,e),t.create=function(e){return new t(null!=e?e:CoreProvider.getDefault())},t.prototype.setup=function(){EvmSolApiConfigSetup.register(this.core.config)},t.prototype.start=function(){},t.moduleName="solApi",t}(ClientSolApi);export{SolApi};
//# sourceMappingURL=/sm/c403fa116a4fed798e7311c862f45c5b088d07582c53fd4a31efa251927af91d.map