This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
v0.6.0
- Add
BigDecimal
support.- Includes a
new BigDecimal(bigInt: BigInt)
constructor. - Includes a
BigDecimal.fromString("0.25")
constructor. - Includes
+
,-
,*
,/
and==
operators.
- Includes a
BigInt
changes:- Add a
bigInt.divDecimal(n: BigDecimal): BigDecimal
method toBigInt
. - Add
==
/.equals
operator forBigInt
.
- Add a
- Add APIS for mapping over IPFS files with (potentially) many values:
ipfs.map(hash: string, callback: string, userData: Value, parameters: string[])
.ipfs.mapJSON(hash: string, callback: string, userData: Value)
for files with JSON values (e.g. http://jsonlines.org).
- Other changes:
- Make ipfs.cat return null on errors, allowing mappings to handle this.
- Add toHexString() for ByteArray and BigInt to make the conversion more discoverable.
- Add input: Bytes property to EthereumTransaction class.