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
17
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.6.0 to 0.6.1

9

dist/augmentedGlobal.d.ts

@@ -39,3 +39,3 @@ import {

INodeRequestOptions,
IDataEntry
IDataEntry, ITransaction
} from '@waves/waves-transactions';

@@ -176,2 +176,9 @@

/**
* Get transaction by Id. Returns null if no transaction with such id present in blockchain
*/
export function transactionById(txId: string, apiBase?: string): Promise<ITransaction & WithId & {
height: number;
}>;
/**
* Get account effective balance

@@ -178,0 +185,0 @@ * By default uses current environment address and node

5

dist/index.js

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

function injectEnv(f) {
return (po, seed) => f(Object.assign({ chainId: global.env.CHAIN_ID, additionalFee: global.env.defaultAdditionalFee }, po), seed === null ? null : seed || envSeed() || (() => {
throw new Error(NO_SEED_MSG);
})());
return (po, seed) => f(Object.assign({ chainId: global.env.CHAIN_ID, additionalFee: global.env.defaultAdditionalFee }, po), seed === null ? null : seed || envSeed());
}

@@ -52,2 +50,3 @@ global.wavesCrypto = wt.libs.crypto;

global.currentHeight = (apiBase) => wt.nodeInteraction.currentHeight(apiBase || global.env.API_BASE);
global.transactionById = (txId, apiBase) => wt.nodeInteraction.transactionById(txId, apiBase || global.env.API_BASE);
global.waitForHeight = (target, options) => wt.nodeInteraction.waitForHeight(target, withDefaults(options));

@@ -54,0 +53,0 @@ global.balance = (address, apiBase) => wt.nodeInteraction.balance(address || currentAddress(), apiBase || global.env.API_BASE);

{
"name": "@waves/js-test-env",
"version": "0.6.0",
"version": "0.6.1",
"description": "",

@@ -26,4 +26,4 @@ "main": "dist/index.js",

"dependencies": {
"@waves/ride-js": "^1.0.0",
"@waves/waves-transactions": "^3.14.3",
"@waves/ride-js": "^1.0.1",
"@waves/waves-transactions": "^3.18.0",
"chai": "^4.2.0",

@@ -30,0 +30,0 @@ "chai-as-promised": "^7.1.1",

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