This package has been deprecated

Author message:

temp

tttconflux-web-utils
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

tttconflux-web-utils

This is a sub package of ConfluxWeb.js

This contains useful utility functions for Dapp developers.

Installation

npm install tttconflux-web-utils

Usage

Import all of the utils functions

import * as Utils from 'tttconflux-web-utils';
 
console.log(Utils);
> {
    sha3: Function,
    soliditySha3: Function,
    isAddress: Function,
    ...
}

Import what you need

import { asciiToHex } from 'tttconflux-web-utils';
 
console.log(asciiToHex('I have 100!'));
> "0x49206861766520313030e282ac"

Types

All the typescript typings are placed in the types folder.

Readme

Keywords

none

Package Sidebar

Install

npm i tttconflux-web-utils

Weekly Downloads

1

Version

0.1.7

License

LGPL-3.0

Unpacked Size

64.9 kB

Total Files

7

Last publish

Collaborators

  • npm
  • yqrashawn