Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@waves/js-test-env

Package Overview
Dependencies
Maintainers
16
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves/js-test-env - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

1

index.d.ts

@@ -8,2 +8,3 @@ /**

export declare let context: any;
export declare const accounts: Record<string, string>;
/**

@@ -10,0 +11,0 @@ * Creates alias transaction or signs already formed one. Creates alias for address.

5

index.js

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

exports.context = global;
exports.accounts = {};
function withDefaults(options = {}) {

@@ -310,2 +311,4 @@ return {

async function setupAccounts(balances, options) {
if (!exports.context.accounts)
exports.context.accounts = {};
const getNonce = () => [].map.call(wt.libs.crypto.randomUint8Array(4), (n) => n.toString(16))

@@ -320,3 +323,3 @@ .join('');

const addr = address(seed, exports.context.env.CHAIN_ID);
exports.context.env.accounts[name] = seed;
exports.context.accounts[name] = seed;
exports.context.console.log(`Account generated: ${seed} - ${addr}`);

@@ -323,0 +326,0 @@ transfers.push({

{
"name": "@waves/js-test-env",
"version": "0.1.5",
"version": "0.1.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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