New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

solidity-test-util

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solidity-test-util

A collection of utility functions for testing ethereum contracts with truffle framework and testrpc

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
19
18.75%
Maintainers
1
Weekly downloads
 
Created
Source

Solidity-test-util

A collection of utility functions for testing ethereum contracts with truffle framework and testrpc.

Examples can be found on Github solidity-test-example project

getEventLog

Parameters

  • Object Contract events subscriber, see web3 doc

Returns

  • Array Events

assertThrow

Parameters

  • Callback with contract method call, that should throw exception

Returns

  • Boolean exception throwed

evmIncreaseTime

Jump testrpc forward in time

Parameters

  • Number amount of time to increase in seconds

Returns

  • Number total time adjustment, in seconds.

prepareValue

Convert BigNumber value to Number using toNumber() method

Parameters

  • Mixed

Returns

  • Mixed

prepareArray

Convert BigNumber array values to Number using toNumber() method

Parameters

  • Array

Returns

  • Array

prepareObject

Convert BigNumber object values to Number using toNumber() method

Parameters

  • Object

Returns

  • Object

Keywords

ethereum

FAQs

Package last updated on 27 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts