@moralisweb3/common-sol-utils
Advanced tools
Comparing version 2.13.0 to 2.14.0
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; |
@@ -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
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
102219
94
1728
4
+ Addedbn.js@^5.2.1
+ Addedbs58@^5.0.0
+ Addedbuffer@^6.0.3
+ Addedbase-x@4.0.0(transitive)
+ Addedbs58@5.0.0(transitive)
- Removed@solana/web3.js@^1.56.2
- Removed@babel/runtime@7.25.7(transitive)
- Removed@noble/curves@1.6.0(transitive)
- Removed@noble/hashes@1.5.0(transitive)
- Removed@solana/buffer-layout@4.0.1(transitive)
- Removed@solana/web3.js@1.95.4(transitive)
- Removed@swc/helpers@0.5.13(transitive)
- Removed@types/connect@3.4.38(transitive)
- Removed@types/node@12.20.55(transitive)
- Removed@types/uuid@8.3.4(transitive)
- Removed@types/ws@7.4.78.5.12(transitive)
- RemovedJSONStream@1.3.5(transitive)
- Removedagentkeepalive@4.5.0(transitive)
- Removedbase-x@3.0.10(transitive)
- Removedbigint-buffer@1.1.5(transitive)
- Removedbindings@1.5.0(transitive)
- Removedborsh@0.7.0(transitive)
- Removedbs58@4.0.1(transitive)
- Removedbufferutil@4.0.8(transitive)
- Removedcommander@2.20.3(transitive)
- Removeddelay@5.0.0(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedeventemitter3@5.0.1(transitive)
- Removedeyes@0.1.8(transitive)
- Removedfast-stable-stringify@1.0.0(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedhumanize-ms@1.2.1(transitive)
- Removedisomorphic-ws@4.0.1(transitive)
- Removedjayson@4.1.2(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsonparse@1.3.1(transitive)
- Removedms@2.1.3(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removednode-gyp-build@4.8.2(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedrpc-websockets@9.0.4(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsuperstruct@2.0.2(transitive)
- Removedtext-encoding-utf-8@1.0.2(transitive)
- Removedthrough@2.3.8(transitive)
- Removedtr46@0.0.3(transitive)
- Removedtslib@2.8.0(transitive)
- Removedutf-8-validate@5.0.10(transitive)
- Removeduuid@8.3.2(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedws@7.5.108.18.0(transitive)