Socket
Socket
Sign inDemoInstall

@moralisweb3/common-sol-utils

Package Overview
Dependencies
Maintainers
7
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moralisweb3/common-sol-utils - npm Package Compare versions

Comparing version 2.6.7 to 2.8.0

4

lib/CommonSolUtils.d.ts

@@ -1,5 +0,5 @@

import MoralisCore, { Module } from '@moralisweb3/core';
import Core, { Module } from '@moralisweb3/common-core';
export declare class CommonSolUtils extends Module {
static readonly moduleName = "solUtils";
static create(core?: MoralisCore): CommonSolUtils;
static create(core?: Core): CommonSolUtils;
private constructor();

@@ -6,0 +6,0 @@ setup(): void;

@@ -19,3 +19,3 @@ "use strict";

exports.CommonSolUtils = void 0;
var core_1 = require("@moralisweb3/core");
var common_core_1 = require("@moralisweb3/common-core");
var config_1 = require("./config");

@@ -28,3 +28,3 @@ var CommonSolUtils = /** @class */ (function (_super) {

CommonSolUtils.create = function (core) {
return new CommonSolUtils(core !== null && core !== void 0 ? core : core_1.MoralisCoreProvider.getDefault());
return new CommonSolUtils(core !== null && core !== void 0 ? core : common_core_1.CoreProvider.getDefault());
};

@@ -39,4 +39,4 @@ CommonSolUtils.prototype.setup = function () {

return CommonSolUtils;
}(core_1.Module));
}(common_core_1.Module));
exports.CommonSolUtils = CommonSolUtils;
//# sourceMappingURL=CommonSolUtils.js.map

@@ -1,2 +0,2 @@

import { ConfigKey } from '@moralisweb3/core';
import { ConfigKey } from '@moralisweb3/common-core';
import { SolNetworkish } from '../dataTypes';

@@ -3,0 +3,0 @@ export declare const CommonSolUtilsConfig: {

@@ -1,2 +0,2 @@

import { Config } from '@moralisweb3/core';
import { Config } from '@moralisweb3/common-core';
export declare class CommonSolUtilsConfigSetup {

@@ -3,0 +3,0 @@ static register(config: Config): void;

@@ -1,2 +0,2 @@

import { MoralisData, MoralisDataFormatted } from '@moralisweb3/core';
import { MoralisData, MoralisDataFormatted } from '@moralisweb3/common-core';
/**

@@ -3,0 +3,0 @@ * Valid input for a new SolAddress instance.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SolAddress = void 0;
var core_1 = require("@moralisweb3/core");
var common_core_1 = require("@moralisweb3/common-core");
var web3_js_1 = require("@solana/web3.js");

@@ -32,4 +32,4 @@ /**

catch (e) {
throw new core_1.MoralisCoreError({
code: core_1.CoreErrorCode.INVALID_ARGUMENT,
throw new common_core_1.CoreError({
code: common_core_1.CoreErrorCode.INVALID_ARGUMENT,
message: "Invalid Solana address provided: ".concat(address),

@@ -36,0 +36,0 @@ cause: e,

@@ -1,2 +0,2 @@

import { MoralisData, MoralisDataFormatted, BigNumberish, BigNumber } from '@moralisweb3/core';
import { MoralisData, MoralisDataFormatted, BigNumberish, BigNumber } from '@moralisweb3/common-core';
/**

@@ -3,0 +3,0 @@ * Type containing valid Solana native units

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SolNative = void 0;
var core_1 = require("@moralisweb3/core");
var common_core_1 = require("@moralisweb3/common-core");
var unitToDecimals = {

@@ -40,8 +40,8 @@ solana: 9,

else {
throw new core_1.MoralisCoreError({
code: core_1.CoreErrorCode.INVALID_ARGUMENT,
throw new common_core_1.CoreError({
code: common_core_1.CoreErrorCode.INVALID_ARGUMENT,
message: "Not supported Solana unit: ".concat(unit),
});
}
return core_1.BigNumber.fromDecimal(value.toString(), decimal);
return common_core_1.BigNumber.fromDecimal(value.toString(), decimal);
};

@@ -48,0 +48,0 @@ /**

@@ -1,2 +0,2 @@

import { MoralisData, MoralisDataFormatted } from '@moralisweb3/core';
import { MoralisData, MoralisDataFormatted } from '@moralisweb3/common-core';
declare const solNetworkNames: readonly ["mainnet", "devnet"];

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SolNetwork = void 0;
var core_1 = require("@moralisweb3/core");
var common_core_1 = require("@moralisweb3/common-core");
var solNetworkNames = ['mainnet', 'devnet'];

@@ -51,4 +51,4 @@ /**

if (!solNetworkNames.includes(network)) {
throw new core_1.MoralisCoreError({
code: core_1.CoreErrorCode.INVALID_ARGUMENT,
throw new common_core_1.CoreError({
code: common_core_1.CoreErrorCode.INVALID_ARGUMENT,
message: "Solana network is not supported: ".concat(network),

@@ -55,0 +55,0 @@ });

@@ -5,2 +5,3 @@ export * from './dataTypes';

export * from './config';
export * from './SolNetworkResolver';
//# sourceMappingURL=index.d.ts.map

@@ -21,2 +21,3 @@ "use strict";

__exportStar(require("./config"), exports);
__exportStar(require("./SolNetworkResolver"), exports);
//# sourceMappingURL=index.js.map

@@ -1,7 +0,7 @@

import { MoralisCore, Camelize, Operation } from '@moralisweb3/core';
import { Core, Camelize, Operation, ResponseAdapter } from '@moralisweb3/common-core';
import { SolAddressish, SolNative, SolNetworkish } from '../../dataTypes';
import { operations } from '../openapi';
declare type OperationName = 'balance';
declare type PathParams = operations[OperationName]['parameters']['path'];
declare type SuccessResponse = operations[OperationName]['responses']['200']['content']['application/json'];
declare type OperationId = 'balance';
declare type PathParams = operations[OperationId]['parameters']['path'];
declare type SuccessResponse = operations[OperationId]['responses']['200']['content']['application/json'];
export interface GetBalanceRequest extends Camelize<Omit<PathParams, 'network' | 'address'>> {

@@ -15,5 +15,8 @@ network?: SolNetworkish;

export declare type GetBalanceResponse = ReturnType<typeof deserializeResponse>;
export interface GetBalanceResponseAdapter extends ResponseAdapter<GetBalanceResponse, GetBalanceJSONResponse> {
}
/** Gets native balance owned by the given network and address */
export declare const getBalanceOperation: Operation<GetBalanceRequest, GetBalanceJSONRequest, GetBalanceResponse, GetBalanceJSONResponse>;
declare function deserializeResponse(jsonResponse: GetBalanceJSONResponse): SolNative;
declare function serializeRequest(request: GetBalanceRequest, core: MoralisCore): {
declare function serializeRequest(request: GetBalanceRequest, core: Core): {
address: string;

@@ -20,0 +23,0 @@ network: "mainnet" | "devnet";

@@ -6,5 +6,7 @@ "use strict";

var SolNetworkResolver_1 = require("../../SolNetworkResolver");
/** Gets native balance owned by the given network and address */
exports.getBalanceOperation = {
method: 'GET',
name: 'balance',
name: 'getBalance',
id: 'balance',
groupName: 'account',

@@ -30,3 +32,3 @@ urlPathParamNames: ['network', 'address'],

return {
address: request.address.toString(),
address: dataTypes_1.SolAddress.create(request.address).address,
network: SolNetworkResolver_1.SolNetworkResolver.resolve(request.network, core),

@@ -33,0 +35,0 @@ };

@@ -1,7 +0,7 @@

import { MoralisCore, Camelize, Operation } from '@moralisweb3/core';
import { Core, Camelize, Operation, ResponseAdapter } from '@moralisweb3/common-core';
import { SolAddress, SolAddressish, SolNetworkish } from '../../dataTypes';
import { operations } from '../openapi';
declare type OperationName = 'getNFTs';
declare type PathParams = operations[OperationName]['parameters']['path'];
declare type SuccessResponse = operations[OperationName]['responses']['200']['content']['application/json'];
declare type OperationId = 'getNFTs';
declare type PathParams = operations[OperationId]['parameters']['path'];
declare type SuccessResponse = operations[OperationId]['responses']['200']['content']['application/json'];
export interface GetNFTsRequest extends Camelize<Omit<PathParams, 'network' | 'address'>> {

@@ -15,2 +15,5 @@ network?: SolNetworkish;

export declare type GetNFTsResponse = ReturnType<typeof deserializeResponse>;
export interface GetNFTsResponseAdapter extends ResponseAdapter<GetNFTsResponse, GetNFTsJSONResponse> {
}
/** Gets NFTs owned by the given network and address */
export declare const getNFTsOperation: Operation<GetNFTsRequest, GetNFTsJSONRequest, GetNFTsResponse, GetNFTsJSONResponse>;

@@ -21,3 +24,3 @@ declare function deserializeResponse(jsonResponse: GetNFTsJSONResponse): {

}[];
declare function serializeRequest(request: GetNFTsRequest, core: MoralisCore): {
declare function serializeRequest(request: GetNFTsRequest, core: Core): {
address: string;

@@ -24,0 +27,0 @@ network: "mainnet" | "devnet";

@@ -6,5 +6,7 @@ "use strict";

var SolNetworkResolver_1 = require("../../SolNetworkResolver");
/** Gets NFTs owned by the given network and address */
exports.getNFTsOperation = {
method: 'GET',
name: 'getNFTs',
id: 'getNFTs',
groupName: 'account',

@@ -35,3 +37,3 @@ urlPathParamNames: ['network', 'address'],

return {
address: request.address.toString(),
address: dataTypes_1.SolAddress.create(request.address).address,
network: SolNetworkResolver_1.SolNetworkResolver.resolve(request.network, core),

@@ -38,0 +40,0 @@ };

@@ -1,7 +0,7 @@

import { MoralisCore, Camelize, Operation } from '@moralisweb3/core';
import { Core, Camelize, Operation, ResponseAdapter } from '@moralisweb3/common-core';
import { SolAddress, SolAddressish, SolNative, SolNetworkish } from '../../dataTypes';
import { operations } from '../openapi';
declare type OperationName = 'getPortfolio';
declare type PathParams = operations[OperationName]['parameters']['path'];
declare type SuccessResponse = operations[OperationName]['responses']['200']['content']['application/json'];
declare type OperationId = 'getPortfolio';
declare type PathParams = operations[OperationId]['parameters']['path'];
declare type SuccessResponse = operations[OperationId]['responses']['200']['content']['application/json'];
export interface GetPortfolioRequest extends Camelize<Omit<PathParams, 'network' | 'address'>> {

@@ -15,2 +15,5 @@ network?: SolNetworkish;

export declare type GetPortfolioResponse = ReturnType<typeof deserializeResponse>;
export interface GetPortfolioResponseAdapter extends ResponseAdapter<GetPortfolioResponse, GetPortfolioJSONResponse> {
}
/** Gets the portfolio of the given network and address */
export declare const getPortfolioOperation: Operation<GetPortfolioRequest, GetPortfolioJSONRequest, GetPortfolioResponse, GetPortfolioJSONResponse>;

@@ -29,3 +32,3 @@ declare function deserializeResponse(jsonResponse: GetPortfolioJSONResponse): {

};
declare function serializeRequest(request: GetPortfolioRequest, core: MoralisCore): {
declare function serializeRequest(request: GetPortfolioRequest, core: Core): {
address: string;

@@ -32,0 +35,0 @@ network: "mainnet" | "devnet";

@@ -6,5 +6,7 @@ "use strict";

var SolNetworkResolver_1 = require("../../SolNetworkResolver");
/** Gets the portfolio of the given network and address */
exports.getPortfolioOperation = {
method: 'GET',
name: 'getPortfolio',
id: 'getPortfolio',
groupName: 'account',

@@ -45,3 +47,3 @@ urlPathParamNames: ['network', 'address'],

return {
address: request.address.toString(),
address: dataTypes_1.SolAddress.create(request.address).address,
network: SolNetworkResolver_1.SolNetworkResolver.resolve(request.network, core),

@@ -48,0 +50,0 @@ };

@@ -1,7 +0,7 @@

import { MoralisCore, Camelize, Operation } from '@moralisweb3/core';
import { Core, Camelize, Operation, ResponseAdapter } from '@moralisweb3/common-core';
import { SolAddress, SolAddressish, SolNative, SolNetworkish } from '../../dataTypes';
import { operations } from '../openapi';
declare type OperationName = 'getSPL';
declare type PathParams = operations[OperationName]['parameters']['path'];
declare type SuccessResponse = operations[OperationName]['responses']['200']['content']['application/json'];
declare type OperationId = 'getSPL';
declare type PathParams = operations[OperationId]['parameters']['path'];
declare type SuccessResponse = operations[OperationId]['responses']['200']['content']['application/json'];
export interface GetSPLRequest extends Camelize<Omit<PathParams, 'network' | 'address'>> {

@@ -15,2 +15,5 @@ network?: SolNetworkish;

export declare type GetSPLResponse = ReturnType<typeof deserializeResponse>;
export interface GetSPLResponseAdapter extends ResponseAdapter<GetSPLResponse, GetSPLJSONResponse> {
}
/** Gets token balances owned by the given network and address */
export declare const getSPLOperation: Operation<GetSPLRequest, GetSPLJSONRequest, GetSPLResponse, GetSPLJSONResponse>;

@@ -22,3 +25,3 @@ declare function deserializeResponse(jsonResponse: GetSPLJSONResponse): {

}[];
declare function serializeRequest(request: GetSPLRequest, core: MoralisCore): {
declare function serializeRequest(request: GetSPLRequest, core: Core): {
address: string;

@@ -25,0 +28,0 @@ network: "mainnet" | "devnet";

@@ -6,5 +6,7 @@ "use strict";

var SolNetworkResolver_1 = require("../../SolNetworkResolver");
/** Gets token balances owned by the given network and address */
exports.getSPLOperation = {
method: 'GET',
name: 'getSPL',
id: 'getSPL',
groupName: 'account',

@@ -36,3 +38,3 @@ urlPathParamNames: ['network', 'address'],

return {
address: request.address.toString(),
address: dataTypes_1.SolAddress.create(request.address).address,
network: SolNetworkResolver_1.SolNetworkResolver.resolve(request.network, core),

@@ -39,0 +41,0 @@ };

@@ -1,7 +0,7 @@

import { MoralisCore, Camelize, Operation } from '@moralisweb3/core';
import { Core, Camelize, Operation, ResponseAdapter } from '@moralisweb3/common-core';
import { SolAddress, SolAddressish, SolNetworkish } from '../../dataTypes';
import { operations } from '../openapi';
declare type OperationName = 'getNFTMetadata';
declare type PathParams = operations[OperationName]['parameters']['path'];
declare type SuccessResponse = operations[OperationName]['responses']['200']['content']['application/json'];
declare type OperationId = 'getNFTMetadata';
declare type PathParams = operations[OperationId]['parameters']['path'];
declare type SuccessResponse = operations[OperationId]['responses']['200']['content']['application/json'];
export interface GetNFTMetadataRequest extends Camelize<Omit<PathParams, 'network' | 'address'>> {

@@ -15,2 +15,5 @@ network?: SolNetworkish;

export declare type GetNFTMetadataResponse = ReturnType<typeof deserializeResponse>;
export interface GetNFTMetadataResponseAdapter extends ResponseAdapter<GetNFTMetadataResponse, GetNFTMetadataJSONResponse> {
}
/** Gets the contract level metadata (mint, standard, name, symbol, metaplex) for the given network and contract */
export declare const getNFTMetadataOperation: Operation<GetNFTMetadataRequest, GetNFTMetadataJSONRequest, GetNFTMetadataResponse, GetNFTMetadataJSONResponse>;

@@ -31,3 +34,3 @@ declare function deserializeResponse(jsonResponse: GetNFTMetadataJSONResponse): {

};
declare function serializeRequest(request: GetNFTMetadataRequest, core: MoralisCore): {
declare function serializeRequest(request: GetNFTMetadataRequest, core: Core): {
address: string;

@@ -34,0 +37,0 @@ network: "mainnet" | "devnet";

@@ -6,5 +6,7 @@ "use strict";

var SolNetworkResolver_1 = require("../../SolNetworkResolver");
/** Gets the contract level metadata (mint, standard, name, symbol, metaplex) for the given network and contract */
exports.getNFTMetadataOperation = {
method: 'GET',
name: 'getNFTMetadata',
id: 'getNFTMetadata',
groupName: 'nft',

@@ -43,3 +45,3 @@ urlPathParamNames: ['network', 'address'],

return {
address: request.address.toString(),
address: dataTypes_1.SolAddress.create(request.address).address,
network: SolNetworkResolver_1.SolNetworkResolver.resolve(request.network, core),

@@ -46,0 +48,0 @@ };

@@ -7,23 +7,23 @@ /**

"/account/{network}/{address}/balance": {
/** Gets native balance owned by the given network and address */
/** Gets the native balance owned by a given network and address. */
get: operations["balance"];
};
"/account/{network}/{address}/tokens": {
/** Gets token balances owned by the given network and address */
/** Gets the token balances owned by a given network and address. */
get: operations["getSPL"];
};
"/account/{network}/{address}/nft": {
/** Gets NFTs owned by the given network and address */
/** Gets NFTs owned by a given network and address. */
get: operations["getNFTs"];
};
"/account/{network}/{address}/portfolio": {
/** Gets the portfolio of the given network and address */
/** Gets the portfolio for a given network and address. */
get: operations["getPortfolio"];
};
"/nft/{network}/{address}/metadata": {
/** Gets the contract level metadata (mint, standard, name, symbol, metaplex) for the given network and contract */
/** Get the global NFT metadata for a given network and contract (mint, standard, name, symbol, metaplex). */
get: operations["getNFTMetadata"];
};
"/token/{network}/{address}/price": {
/** Gets the token price (usd and native) for a given contract address and network */
/** Gets the token price (usd and native) for a given contract address and network. */
get: operations["getTokenPrice"];

@@ -84,3 +84,3 @@ };

export interface operations {
/** Gets native balance owned by the given network and address */
/** Gets the native balance owned by a given network and address. */
balance: {

@@ -106,3 +106,3 @@ parameters: {

};
/** Gets token balances owned by the given network and address */
/** Gets the token balances owned by a given network and address. */
getSPL: {

@@ -128,3 +128,3 @@ parameters: {

};
/** Gets NFTs owned by the given network and address */
/** Gets NFTs owned by a given network and address. */
getNFTs: {

@@ -150,3 +150,3 @@ parameters: {

};
/** Gets the portfolio of the given network and address */
/** Gets the portfolio for a given network and address. */
getPortfolio: {

@@ -172,3 +172,3 @@ parameters: {

};
/** Gets the contract level metadata (mint, standard, name, symbol, metaplex) for the given network and contract */
/** Get the global NFT metadata for a given network and contract (mint, standard, name, symbol, metaplex). */
getNFTMetadata: {

@@ -194,3 +194,3 @@ parameters: {

};
/** Gets the token price (usd and native) for a given contract address and network */
/** Gets the token price (usd and native) for a given contract address and network. */
getTokenPrice: {

@@ -197,0 +197,0 @@ parameters: {

@@ -1,5 +0,5 @@

export declare const operations: (import("@moralisweb3/core").Operation<import("./account/getBalanceOperation").GetBalanceRequest, {
export declare const operations: (import("@moralisweb3/common-core").Operation<import("./account/getBalanceOperation").GetBalanceRequest, {
address: string;
network: "mainnet" | "devnet";
}, import("..").SolNative, import("./account/getBalanceOperation").GetBalanceJSONResponse> | import("@moralisweb3/core").Operation<import("./account/getNFTsOperation").GetNFTsRequest, {
}, import("..").SolNative, import("./account/getBalanceOperation").GetBalanceJSONResponse> | import("@moralisweb3/common-core").Operation<import("./account/getNFTsOperation").GetNFTsRequest, {
address: string;

@@ -10,3 +10,3 @@ network: "mainnet" | "devnet";

mint: import("..").SolAddress;
}[], import("./account/getNFTsOperation").GetNFTsJSONResponse> | import("@moralisweb3/core").Operation<import("./account/getPortfolioOperation").GetPortfolioRequest, {
}[], import("./account/getNFTsOperation").GetNFTsJSONResponse> | import("@moralisweb3/common-core").Operation<import("./account/getPortfolioOperation").GetPortfolioRequest, {
address: string;

@@ -25,3 +25,3 @@ network: "mainnet" | "devnet";

}[];
}, import("./account/getPortfolioOperation").GetPortfolioJSONResponse> | import("@moralisweb3/core").Operation<import("./nft/getNFTMetadataOperation").GetNFTMetadataRequest, {
}, import("./account/getPortfolioOperation").GetPortfolioJSONResponse> | import("@moralisweb3/common-core").Operation<import("./nft/getNFTMetadataOperation").GetNFTMetadataRequest, {
address: string;

@@ -42,3 +42,3 @@ network: "mainnet" | "devnet";

};
}, import("./nft/getNFTMetadataOperation").GetNFTMetadataJSONResponse> | import("@moralisweb3/core").Operation<import("./token/getTokenPriceOperation").GetTokenPriceRequest, {
}, import("./nft/getNFTMetadataOperation").GetNFTMetadataJSONResponse> | import("@moralisweb3/common-core").Operation<import("./token/getTokenPriceOperation").GetTokenPriceRequest, {
address: string;

@@ -45,0 +45,0 @@ network: "mainnet" | "devnet";

@@ -1,7 +0,7 @@

import { MoralisCore, Camelize, Operation } from '@moralisweb3/core';
import { Core, Camelize, Operation, ResponseAdapter } from '@moralisweb3/common-core';
import { SolAddress, SolAddressish, SolNative, SolNetworkish } from '../../dataTypes';
import { operations } from '../openapi';
declare type OperationName = 'getTokenPrice';
declare type PathParams = operations[OperationName]['parameters']['path'];
declare type SuccessResponse = operations[OperationName]['responses']['200']['content']['application/json'];
declare type OperationId = 'getTokenPrice';
declare type PathParams = operations[OperationId]['parameters']['path'];
declare type SuccessResponse = operations[OperationId]['responses']['200']['content']['application/json'];
export interface GetTokenPriceRequest extends Camelize<Omit<PathParams, 'network' | 'address'>> {

@@ -15,2 +15,5 @@ network?: SolNetworkish;

export declare type GetTokenPriceResponse = ReturnType<typeof deserializeResponse>;
export interface GetTokenPriceResponseAdapter extends ResponseAdapter<GetTokenPriceResponse, GetTokenPriceJSONResponse> {
}
/** Gets the token price (usd and native) for a given contract address and network */
export declare const getTokenPriceOperation: Operation<GetTokenPriceRequest, GetTokenPriceJSONRequest, GetTokenPriceResponse, GetTokenPriceJSONResponse>;

@@ -28,3 +31,3 @@ declare function deserializeResponse(jsonResponse: GetTokenPriceJSONResponse): {

};
declare function serializeRequest(request: GetTokenPriceRequest, core: MoralisCore): {
declare function serializeRequest(request: GetTokenPriceRequest, core: Core): {
address: string;

@@ -31,0 +34,0 @@ network: "mainnet" | "devnet";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTokenPriceOperation = void 0;
var common_core_1 = require("@moralisweb3/common-core");
var dataTypes_1 = require("../../dataTypes");
var SolNetworkResolver_1 = require("../../SolNetworkResolver");
/** Gets the token price (usd and native) for a given contract address and network */
exports.getTokenPriceOperation = {
method: 'GET',
name: 'getTokenPrice',
id: 'getTokenPrice',
groupName: 'token',

@@ -19,2 +22,9 @@ urlPathParamNames: ['network', 'address'],

function getRequestUrlParams(request, core) {
var network = SolNetworkResolver_1.SolNetworkResolver.resolve(request.network, core);
if (network !== 'mainnet') {
throw new common_core_1.MoralisApiError({
message: "Incorrct value for 'network', getTokenPrice is only available on mainnet",
code: common_core_1.ApiErrorCode.INVALID_PARAMS,
});
}
return {

@@ -40,3 +50,3 @@ network: SolNetworkResolver_1.SolNetworkResolver.resolve(request.network, core),

return {
address: request.address.toString(),
address: dataTypes_1.SolAddress.create(request.address).address,
network: SolNetworkResolver_1.SolNetworkResolver.resolve(request.network, core),

@@ -43,0 +53,0 @@ };

@@ -1,6 +0,6 @@

import MoralisCore from '@moralisweb3/core';
import Core from '@moralisweb3/common-core';
import { SolNetworkish, SolNetworkName } from './dataTypes';
export declare class SolNetworkResolver {
static resolve(network: SolNetworkish | undefined, core: MoralisCore): SolNetworkName;
static resolve(network: SolNetworkish | undefined, core: Core): SolNetworkName;
}
//# sourceMappingURL=SolNetworkResolver.d.ts.map
{
"name": "@moralisweb3/common-sol-utils",
"author": "Moralis",
"version": "2.6.7",
"version": "2.8.0",
"license": "MIT",

@@ -17,3 +17,2 @@ "private": false,

"test:watch": "yarn run test --watch",
"gen:api-types": "openapi-typescript https://solana-gateway.moralis.io/api-json/ --output src/operations/openapi.ts",
"lint": "eslint . --ext .js,.ts,.tsx,jsx",

@@ -30,5 +29,5 @@ "clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",

"dependencies": {
"@moralisweb3/core": "^2.6.7",
"@moralisweb3/common-core": "^2.8.0",
"@solana/web3.js": "^1.56.2"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc