HermezCompressedAmount constructor

HermezCompressedAmount(
  1. num value
)

Builds an instance of HermezCompressedAmount, a wrapper for compressed BigInts in 40 bits used within the Hermez network @param {num} value - Compressed representation of a BigInt in a 40bit Number

Implementation

HermezCompressedAmount(num value) {
  this.type = HERMEZ_COMPRESSED_AMOUNT_TYPE;
  this.value = value;
}