@marinade.finance/web3js-common
Advanced tools
Comparing version 2.0.16 to 2.0.17
{ | ||
"name": "@marinade.finance/web3js-common", | ||
"version": "2.0.16", | ||
"version": "2.0.17", | ||
"description": "Web3 JS reusable utilities", | ||
@@ -25,3 +25,3 @@ "repository": { | ||
"@solana/web3.js": "^1.78.5", | ||
"@marinade.finance/ts-common": "2.0.16", | ||
"@marinade.finance/ts-common": "2.0.17", | ||
"bn.js": "^5.2.1", | ||
@@ -33,3 +33,3 @@ "borsh": "^0.7.0", | ||
"@solana/web3.js": "^1.78.5", | ||
"@marinade.finance/ts-common": "2.0.16", | ||
"@marinade.finance/ts-common": "2.0.17", | ||
"bn.js": "^5.2.1", | ||
@@ -36,0 +36,0 @@ "borsh": "^0.7.0", |
import { Keypair } from '@solana/web3.js'; | ||
export declare function createTempFileKeypair(seed?: Keypair): Promise<{ | ||
export declare function createTempFileKeypair(seed?: Keypair, tmpPathPrefix?: string): Promise<{ | ||
path: string; | ||
@@ -4,0 +4,0 @@ cleanup: () => Promise<void>; |
@@ -32,5 +32,5 @@ "use strict"; | ||
const path = __importStar(require("path")); | ||
async function createTempFileKeypair(seed) { | ||
async function createTempFileKeypair(seed, tmpPathPrefix = 'tmp-keypair') { | ||
const keypair = seed !== null && seed !== void 0 ? seed : new web3_js_1.Keypair(); | ||
const folderPath = path.join((0, os_1.tmpdir)(), 'marinade-cli-'); | ||
const folderPath = path.join((0, os_1.tmpdir)(), tmpPathPrefix); | ||
const folder = await (0, promises_1.mkdtemp)(folderPath); | ||
@@ -37,0 +37,0 @@ const keypairPath = path.join(folder, 'keypair.json'); |
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
40510