0.1.5 • Published 5 years ago
ruban-utils v0.1.5
ruban-utils
This is a sub package of rubanjs
This contains useful utility functions for Dapp developers. Please read the documentation for more.
Installation
npm install ruban-utils
Usage
Import all of the utils functions
import * as Utils from 'ruban-utils';
console.log(Utils);
> {
keccak256: Function,
soliditySha3: Function,
isAddress: Function,
...
}
Import what you need
import { asciiToHex } from 'ruban-utils';
console.log(asciiToHex('I have 100!'));
> "0x49206861766520313030e282ac"
Types
All the typescript typings are placed in the types folder.