@0xcert/ethereum-utils
Advanced tools
Comparing version 1.0.0-rc5 to 1.0.0-rc6
{ | ||
"name": "@0xcert/ethereum-utils", | ||
"version": "1.0.0-rc5", | ||
"version": "1.0.0-rc6", | ||
"description": "General Ethereum utility module with helper functions for the Ethereum blockchain.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -5,2 +5,7 @@ import { AbiCoder } from 'ethers/utils/abi-coder'; | ||
/** | ||
* Encodes parameters for smart contract call. | ||
* @param types Input types. | ||
* @param values Input values. | ||
*/ | ||
export function encodeParameters(types: any, values: Array<any>): string { | ||
@@ -10,4 +15,9 @@ return coder.encode(types, values); | ||
/** | ||
* Decodes parameters from smart contract return. | ||
* @param types Output types. | ||
* @param data Output data. | ||
*/ | ||
export function decodeParameters(types: any, data: any): any { | ||
return coder.decode(types, data); | ||
} |
Sorry, the diff of this file is not supported yet
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
27685
480