🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@moralisweb3/common-sol-utils

Package Overview
Dependencies
Maintainers
8
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

to
2.14.0

lib/utils/PublicKey.d.ts

4

lib/CommonSolUtils.d.ts
import Core, { Module } from '@moralisweb3/common-core';
import * as dataTypes from './dataTypes';
export declare class CommonSolUtils extends Module {

@@ -8,3 +9,6 @@ static readonly moduleName = "solUtils";

start(): void;
get SolAddress(): typeof dataTypes.SolAddress;
get SolNative(): typeof dataTypes.SolNative;
get SolNetwork(): typeof dataTypes.SolNetwork;
}
//# sourceMappingURL=CommonSolUtils.d.ts.map

@@ -17,2 +17,25 @@ "use strict";

})();
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -22,2 +45,3 @@ exports.CommonSolUtils = void 0;

var config_1 = require("./config");
var dataTypes = __importStar(require("./dataTypes"));
var CommonSolUtils = /** @class */ (function (_super) {

@@ -37,2 +61,23 @@ __extends(CommonSolUtils, _super);

};
Object.defineProperty(CommonSolUtils.prototype, "SolAddress", {
get: function () {
return dataTypes.SolAddress;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CommonSolUtils.prototype, "SolNative", {
get: function () {
return dataTypes.SolNative;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CommonSolUtils.prototype, "SolNetwork", {
get: function () {
return dataTypes.SolNetwork;
},
enumerable: false,
configurable: true
});
CommonSolUtils.moduleName = 'solUtils';

@@ -39,0 +84,0 @@ return CommonSolUtils;

4

lib/dataTypes/SolAddress/SolAddress.js

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

var common_core_1 = require("@moralisweb3/common-core");
var web3_js_1 = require("@solana/web3.js");
var PublicKey_1 = require("../../utils/PublicKey");
/**

@@ -29,3 +29,3 @@ * A representation of an address on the Solana network.

try {
var publicKey = new web3_js_1.PublicKey(address);
var publicKey = new PublicKey_1.PublicKey(address);
return publicKey.toBase58();

@@ -32,0 +32,0 @@ }

{
"name": "@moralisweb3/common-sol-utils",
"author": "Moralis",
"version": "2.13.0",
"version": "2.14.0",
"license": "MIT",

@@ -33,5 +33,7 @@ "main": "./lib/index.js",

"dependencies": {
"@moralisweb3/common-core": "^2.13.0",
"@solana/web3.js": "^1.56.2"
"@moralisweb3/common-core": "^2.14.0",
"bn.js": "^5.2.1",
"bs58": "^5.0.0",
"buffer": "^6.0.3"
}
}

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