@waves/js-test-env
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -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 |
@@ -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", |
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
18820
396
Updated@waves/ride-js@^1.0.1