solidity-types

Generate random values for solidity contracts based on types ### 1. Installation

Usage no npm install needed!

<script type="module">
  import solidityTypes from 'https://cdn.skypack.dev/solidity-types';
</script>

README

Solidity-types

Generate random values for solidity contracts based on types

1. Installation

npm i --save solidity-types

2. Usage

import { getType } from 'solidity-types'

// return randomized values
const t = getType('uint256')
const value = t.decode() // get value to encode abi
const buf = t.getValue() // return buffer which contains your type