idetix-utils

1.0.14 • Public • Published

idetix-utils

npm package for interacting with the idetix protocol.

Installation

Use the follwoing command to add this package to your project:

npm install -s idetix-utils

Utils

Convert IPFS hashes from/to its components

Check out the link for IPFS hash conversion.

Also see detail gas cost analysis of different types of different ways to store IPFS hashes in solidity.

Smart contract constants

fungibleBaseId: The first fungible ticket type that is created will have this id. This is due to the encoding: 1<<128 = 1000...000

nonFungibleBaseId: The first non-fungible ticket type that is created will have this id. This is due to the encoding: (1<<128 | TYPE_NF_BIT) where TYPE_NF_BIT=1<<256.

Note: uint256 from solidity are too large for Javascript. Thus, we use bignumber.js.

Readme

Keywords

Package Sidebar

Install

npm i idetix-utils

Weekly Downloads

0

Version

1.0.14

License

ISC

Unpacked Size

21.9 kB

Total Files

7

Last publish

Collaborators

  • simibac