@moralisweb3/sol-api
Advanced tools
Comparing version 2.23.2 to 2.24.0
import { ApiModule, CoreProvider } from '@moralisweb3/common-core'; | ||
import { getBalanceOperation, getNFTsOperation, getPortfolioOperation, getSPLOperation, getNFTMetadataOperation, GetTokenPriceOperation } from '@moralisweb3/common-sol-utils'; | ||
import { getBalanceOperation, getNFTsOperation, getPortfolioOperation, getSPLOperation, getNFTMetadataOperation, GetTokenPriceOperation, GetTokenMetadataOperation } from '@moralisweb3/common-sol-utils'; | ||
import { OperationResolver, OperationV3Resolver } from '@moralisweb3/api-utils'; | ||
@@ -63,2 +63,5 @@ | ||
}, | ||
getTokenMetadata: function (request) { | ||
return new OperationV3Resolver(GetTokenMetadataOperation, _this.baseUrl, _this.core).fetch(request, null); | ||
}, | ||
}; | ||
@@ -65,0 +68,0 @@ return _this; |
import { ApiModule, ResponseAdapter, Core } from '@moralisweb3/common-core'; | ||
import { GetBalanceRequest, GetBalanceResponseAdapter, GetNFTsRequest, GetNFTsResponseAdapter, GetPortfolioRequest, GetPortfolioResponseAdapter, GetSPLRequest, GetSPLResponseAdapter, GetNFTMetadataRequest, GetNFTMetadataResponseAdapter, GetTokenPriceOperationRequest, GetTokenPriceOperationResponse, GetTokenPriceOperationResponseJSON } from '@moralisweb3/common-sol-utils'; | ||
import { GetBalanceRequest, GetBalanceResponseAdapter, GetNFTsRequest, GetNFTsResponseAdapter, GetPortfolioRequest, GetPortfolioResponseAdapter, GetSPLRequest, GetSPLResponseAdapter, GetNFTMetadataRequest, GetNFTMetadataResponseAdapter, GetTokenPriceOperationRequest, GetTokenPriceOperationResponse, GetTokenPriceOperationResponseJSON, GetTokenMetadataOperationRequest, GetTokenMetadataOperationResponse, GetTokenMetadataOperationResponseJSON } from '@moralisweb3/common-sol-utils'; | ||
@@ -16,2 +16,3 @@ declare abstract class ClientSolApi extends ApiModule { | ||
getTokenPrice: (request: GetTokenPriceOperationRequest) => Promise<ResponseAdapter<GetTokenPriceOperationResponse, GetTokenPriceOperationResponseJSON>>; | ||
getTokenMetadata: (request: GetTokenMetadataOperationRequest) => Promise<ResponseAdapter<GetTokenMetadataOperationResponse, GetTokenMetadataOperationResponseJSON>>; | ||
}; | ||
@@ -18,0 +19,0 @@ } |
{ | ||
"name": "@moralisweb3/sol-api", | ||
"author": "Moralis", | ||
"version": "2.23.2", | ||
"version": "2.24.0", | ||
"license": "MIT", | ||
@@ -56,6 +56,6 @@ "type": "module", | ||
"dependencies": { | ||
"@moralisweb3/api-utils": "^2.23.2", | ||
"@moralisweb3/common-core": "^2.23.2", | ||
"@moralisweb3/common-sol-utils": "^2.23.2" | ||
"@moralisweb3/api-utils": "^2.24.0", | ||
"@moralisweb3/common-core": "^2.24.0", | ||
"@moralisweb3/common-sol-utils": "^2.24.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12695
219