@waves/ride-js
Advanced tools
Comparing version 1.1.0-beta.3 to 1.1.0-beta.4
{ | ||
"name": "@waves/ride-js", | ||
"version": "1.1.0-beta.3", | ||
"version": "1.1.0-beta.4", | ||
"description": "Js compiler for Ride - Waves smart contract language.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -64,2 +64,3 @@ export interface ICompilationResult { | ||
scriptType: number | ||
imports: () => string | ||
} | ||
@@ -69,3 +70,3 @@ | ||
export function scriptInfo(code: string): IScriptInfo; | ||
export function scriptInfo(code: string): IScriptInfo | ICompilationError; | ||
@@ -72,0 +73,0 @@ export function getTypes(stdlibVersion?: number, isTokenContext?: boolean): TStructField[]; |
@@ -5,2 +5,3 @@ const Base58 = require('./base58'); | ||
const blake = require('./blake2b'); | ||
const sha256 = require('./sha256').sha256; | ||
@@ -22,2 +23,5 @@ global.base58Encode = function (bytes) { | ||
}; | ||
global.sha256 = function (bytes) { | ||
return Uint8Array.from(sha256(bytes)).buffer | ||
}; | ||
global.blake2b256 = function (bytes) { | ||
@@ -24,0 +28,0 @@ return blake2b(new Uint8Array(bytes)).buffer |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2443143
12
10725