1.0.14 • Published 4 years ago

idetix-utils v1.0.14

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

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.

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago