waves_lib 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1222) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +22 -0
  4. data/CHANGELOG.md +5 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/LICENSE.txt +19 -0
  7. data/README.md +39 -0
  8. data/Rakefile +12 -0
  9. data/js/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  10. data/js/node_modules/@protobufjs/aspromise/README.md +13 -0
  11. data/js/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
  12. data/js/node_modules/@protobufjs/aspromise/index.js +52 -0
  13. data/js/node_modules/@protobufjs/aspromise/package.json +21 -0
  14. data/js/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  15. data/js/node_modules/@protobufjs/base64/LICENSE +26 -0
  16. data/js/node_modules/@protobufjs/base64/README.md +19 -0
  17. data/js/node_modules/@protobufjs/base64/index.d.ts +32 -0
  18. data/js/node_modules/@protobufjs/base64/index.js +139 -0
  19. data/js/node_modules/@protobufjs/base64/package.json +21 -0
  20. data/js/node_modules/@protobufjs/base64/tests/index.js +46 -0
  21. data/js/node_modules/@protobufjs/codegen/LICENSE +26 -0
  22. data/js/node_modules/@protobufjs/codegen/README.md +49 -0
  23. data/js/node_modules/@protobufjs/codegen/index.d.ts +31 -0
  24. data/js/node_modules/@protobufjs/codegen/index.js +99 -0
  25. data/js/node_modules/@protobufjs/codegen/package.json +13 -0
  26. data/js/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  27. data/js/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  28. data/js/node_modules/@protobufjs/eventemitter/README.md +22 -0
  29. data/js/node_modules/@protobufjs/eventemitter/index.d.ts +43 -0
  30. data/js/node_modules/@protobufjs/eventemitter/index.js +76 -0
  31. data/js/node_modules/@protobufjs/eventemitter/package.json +21 -0
  32. data/js/node_modules/@protobufjs/eventemitter/tests/index.js +47 -0
  33. data/js/node_modules/@protobufjs/fetch/LICENSE +26 -0
  34. data/js/node_modules/@protobufjs/fetch/README.md +13 -0
  35. data/js/node_modules/@protobufjs/fetch/index.d.ts +56 -0
  36. data/js/node_modules/@protobufjs/fetch/index.js +115 -0
  37. data/js/node_modules/@protobufjs/fetch/package.json +25 -0
  38. data/js/node_modules/@protobufjs/fetch/tests/index.js +16 -0
  39. data/js/node_modules/@protobufjs/float/LICENSE +26 -0
  40. data/js/node_modules/@protobufjs/float/README.md +102 -0
  41. data/js/node_modules/@protobufjs/float/bench/index.js +87 -0
  42. data/js/node_modules/@protobufjs/float/bench/suite.js +46 -0
  43. data/js/node_modules/@protobufjs/float/index.d.ts +83 -0
  44. data/js/node_modules/@protobufjs/float/index.js +335 -0
  45. data/js/node_modules/@protobufjs/float/package.json +26 -0
  46. data/js/node_modules/@protobufjs/float/tests/index.js +100 -0
  47. data/js/node_modules/@protobufjs/inquire/LICENSE +26 -0
  48. data/js/node_modules/@protobufjs/inquire/README.md +13 -0
  49. data/js/node_modules/@protobufjs/inquire/index.d.ts +9 -0
  50. data/js/node_modules/@protobufjs/inquire/index.js +17 -0
  51. data/js/node_modules/@protobufjs/inquire/package.json +21 -0
  52. data/js/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
  53. data/js/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
  54. data/js/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
  55. data/js/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
  56. data/js/node_modules/@protobufjs/inquire/tests/index.js +20 -0
  57. data/js/node_modules/@protobufjs/path/LICENSE +26 -0
  58. data/js/node_modules/@protobufjs/path/README.md +19 -0
  59. data/js/node_modules/@protobufjs/path/index.d.ts +22 -0
  60. data/js/node_modules/@protobufjs/path/index.js +65 -0
  61. data/js/node_modules/@protobufjs/path/package.json +21 -0
  62. data/js/node_modules/@protobufjs/path/tests/index.js +60 -0
  63. data/js/node_modules/@protobufjs/pool/LICENSE +26 -0
  64. data/js/node_modules/@protobufjs/pool/README.md +13 -0
  65. data/js/node_modules/@protobufjs/pool/index.d.ts +32 -0
  66. data/js/node_modules/@protobufjs/pool/index.js +48 -0
  67. data/js/node_modules/@protobufjs/pool/package.json +21 -0
  68. data/js/node_modules/@protobufjs/pool/tests/index.js +33 -0
  69. data/js/node_modules/@protobufjs/utf8/LICENSE +26 -0
  70. data/js/node_modules/@protobufjs/utf8/README.md +20 -0
  71. data/js/node_modules/@protobufjs/utf8/index.d.ts +24 -0
  72. data/js/node_modules/@protobufjs/utf8/index.js +105 -0
  73. data/js/node_modules/@protobufjs/utf8/package.json +21 -0
  74. data/js/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  75. data/js/node_modules/@protobufjs/utf8/tests/index.js +57 -0
  76. data/js/node_modules/@types/base64-js/LICENSE +21 -0
  77. data/js/node_modules/@types/base64-js/README.md +16 -0
  78. data/js/node_modules/@types/base64-js/index.d.ts +23 -0
  79. data/js/node_modules/@types/base64-js/package.json +29 -0
  80. data/js/node_modules/@types/long/LICENSE +21 -0
  81. data/js/node_modules/@types/long/README.md +16 -0
  82. data/js/node_modules/@types/long/index.d.ts +389 -0
  83. data/js/node_modules/@types/long/package.json +25 -0
  84. data/js/node_modules/@types/node/LICENSE +21 -0
  85. data/js/node_modules/@types/node/README.md +16 -0
  86. data/js/node_modules/@types/node/assert/strict.d.ts +8 -0
  87. data/js/node_modules/@types/node/assert.d.ts +972 -0
  88. data/js/node_modules/@types/node/async_hooks.d.ts +530 -0
  89. data/js/node_modules/@types/node/buffer.d.ts +2354 -0
  90. data/js/node_modules/@types/node/child_process.d.ts +1395 -0
  91. data/js/node_modules/@types/node/cluster.d.ts +414 -0
  92. data/js/node_modules/@types/node/console.d.ts +412 -0
  93. data/js/node_modules/@types/node/constants.d.ts +18 -0
  94. data/js/node_modules/@types/node/crypto.d.ts +3978 -0
  95. data/js/node_modules/@types/node/dgram.d.ts +545 -0
  96. data/js/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
  97. data/js/node_modules/@types/node/dns/promises.d.ts +414 -0
  98. data/js/node_modules/@types/node/dns.d.ts +668 -0
  99. data/js/node_modules/@types/node/dom-events.d.ts +126 -0
  100. data/js/node_modules/@types/node/domain.d.ts +170 -0
  101. data/js/node_modules/@types/node/events.d.ts +724 -0
  102. data/js/node_modules/@types/node/fs/promises.d.ts +1190 -0
  103. data/js/node_modules/@types/node/fs.d.ts +4044 -0
  104. data/js/node_modules/@types/node/globals.d.ts +303 -0
  105. data/js/node_modules/@types/node/globals.global.d.ts +1 -0
  106. data/js/node_modules/@types/node/http.d.ts +1724 -0
  107. data/js/node_modules/@types/node/http2.d.ts +2129 -0
  108. data/js/node_modules/@types/node/https.d.ts +441 -0
  109. data/js/node_modules/@types/node/index.d.ts +134 -0
  110. data/js/node_modules/@types/node/inspector.d.ts +2748 -0
  111. data/js/node_modules/@types/node/module.d.ts +129 -0
  112. data/js/node_modules/@types/node/net.d.ts +888 -0
  113. data/js/node_modules/@types/node/os.d.ts +477 -0
  114. data/js/node_modules/@types/node/package.json +237 -0
  115. data/js/node_modules/@types/node/path.d.ts +191 -0
  116. data/js/node_modules/@types/node/perf_hooks.d.ts +638 -0
  117. data/js/node_modules/@types/node/process.d.ts +1494 -0
  118. data/js/node_modules/@types/node/punycode.d.ts +117 -0
  119. data/js/node_modules/@types/node/querystring.d.ts +131 -0
  120. data/js/node_modules/@types/node/readline/promises.d.ts +145 -0
  121. data/js/node_modules/@types/node/readline.d.ts +526 -0
  122. data/js/node_modules/@types/node/repl.d.ts +424 -0
  123. data/js/node_modules/@types/node/stream/consumers.d.ts +12 -0
  124. data/js/node_modules/@types/node/stream/promises.d.ts +42 -0
  125. data/js/node_modules/@types/node/stream/web.d.ts +330 -0
  126. data/js/node_modules/@types/node/stream.d.ts +1421 -0
  127. data/js/node_modules/@types/node/string_decoder.d.ts +67 -0
  128. data/js/node_modules/@types/node/test.d.ts +1383 -0
  129. data/js/node_modules/@types/node/timers/promises.d.ts +93 -0
  130. data/js/node_modules/@types/node/timers.d.ts +215 -0
  131. data/js/node_modules/@types/node/tls.d.ts +1130 -0
  132. data/js/node_modules/@types/node/trace_events.d.ts +182 -0
  133. data/js/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  134. data/js/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  135. data/js/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  136. data/js/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
  137. data/js/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  138. data/js/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
  139. data/js/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  140. data/js/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  141. data/js/node_modules/@types/node/ts4.8/crypto.d.ts +3977 -0
  142. data/js/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  143. data/js/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  144. data/js/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  145. data/js/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  146. data/js/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  147. data/js/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  148. data/js/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  149. data/js/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  150. data/js/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
  151. data/js/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  152. data/js/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  153. data/js/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  154. data/js/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  155. data/js/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  156. data/js/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  157. data/js/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  158. data/js/node_modules/@types/node/ts4.8/module.d.ts +129 -0
  159. data/js/node_modules/@types/node/ts4.8/net.d.ts +888 -0
  160. data/js/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  161. data/js/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  162. data/js/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  163. data/js/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
  164. data/js/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  165. data/js/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  166. data/js/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  167. data/js/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  168. data/js/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  169. data/js/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  170. data/js/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  171. data/js/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  172. data/js/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  173. data/js/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  174. data/js/node_modules/@types/node/ts4.8/test.d.ts +1365 -0
  175. data/js/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  176. data/js/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  177. data/js/node_modules/@types/node/ts4.8/tls.d.ts +1130 -0
  178. data/js/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  179. data/js/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
  180. data/js/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  181. data/js/node_modules/@types/node/ts4.8/util.d.ts +2116 -0
  182. data/js/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  183. data/js/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  184. data/js/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  185. data/js/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  186. data/js/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  187. data/js/node_modules/@types/node/tty.d.ts +208 -0
  188. data/js/node_modules/@types/node/url.d.ts +901 -0
  189. data/js/node_modules/@types/node/util.d.ts +2116 -0
  190. data/js/node_modules/@types/node/v8.d.ts +635 -0
  191. data/js/node_modules/@types/node/vm.d.ts +894 -0
  192. data/js/node_modules/@types/node/wasi.d.ts +152 -0
  193. data/js/node_modules/@types/node/worker_threads.d.ts +693 -0
  194. data/js/node_modules/@types/node/zlib.d.ts +517 -0
  195. data/js/node_modules/@types/node-fetch/LICENSE +21 -0
  196. data/js/node_modules/@types/node-fetch/README.md +16 -0
  197. data/js/node_modules/@types/node-fetch/externals.d.ts +24 -0
  198. data/js/node_modules/@types/node-fetch/index.d.ts +224 -0
  199. data/js/node_modules/@types/node-fetch/package.json +83 -0
  200. data/js/node_modules/@waves/bignumber/dist/BigNumber.d.ts +74 -0
  201. data/js/node_modules/@waves/bignumber/dist/BigNumber.js +252 -0
  202. data/js/node_modules/@waves/bignumber/dist/BigNumber.js.map +1 -0
  203. data/js/node_modules/@waves/bignumber/dist/Config.d.ts +22 -0
  204. data/js/node_modules/@waves/bignumber/dist/Config.js +43 -0
  205. data/js/node_modules/@waves/bignumber/dist/Config.js.map +1 -0
  206. data/js/node_modules/@waves/bignumber/dist/bignumber.umd.js +3194 -0
  207. data/js/node_modules/@waves/bignumber/dist/bignumber.umd.min.js +1 -0
  208. data/js/node_modules/@waves/bignumber/dist/index.d.ts +3 -0
  209. data/js/node_modules/@waves/bignumber/dist/index.js +9 -0
  210. data/js/node_modules/@waves/bignumber/dist/index.js.map +1 -0
  211. data/js/node_modules/@waves/bignumber/package.json +64 -0
  212. data/js/node_modules/@waves/bignumber/readme.md +285 -0
  213. data/js/node_modules/@waves/marshall/LICENSE +9 -0
  214. data/js/node_modules/@waves/marshall/README.md +39 -0
  215. data/js/node_modules/@waves/marshall/dist/index.d.ts +26 -0
  216. data/js/node_modules/@waves/marshall/dist/index.js +45 -0
  217. data/js/node_modules/@waves/marshall/dist/index.js.map +1 -0
  218. data/js/node_modules/@waves/marshall/dist/jsonMethods.d.ts +36 -0
  219. data/js/node_modules/@waves/marshall/dist/jsonMethods.js +194 -0
  220. data/js/node_modules/@waves/marshall/dist/jsonMethods.js.map +1 -0
  221. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.d.ts +1 -0
  222. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js +35 -0
  223. data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js.map +1 -0
  224. data/js/node_modules/@waves/marshall/dist/libs/base58.d.ts +5 -0
  225. data/js/node_modules/@waves/marshall/dist/libs/base58.js +66 -0
  226. data/js/node_modules/@waves/marshall/dist/libs/base58.js.map +1 -0
  227. data/js/node_modules/@waves/marshall/dist/libs/utils.d.ts +2 -0
  228. data/js/node_modules/@waves/marshall/dist/libs/utils.js +6 -0
  229. data/js/node_modules/@waves/marshall/dist/libs/utils.js.map +1 -0
  230. data/js/node_modules/@waves/marshall/dist/min/waves-marshall.min.js +1 -0
  231. data/js/node_modules/@waves/marshall/dist/parse.d.ts +21 -0
  232. data/js/node_modules/@waves/marshall/dist/parse.js +142 -0
  233. data/js/node_modules/@waves/marshall/dist/parse.js.map +1 -0
  234. data/js/node_modules/@waves/marshall/dist/parsePrimitives.d.ts +57 -0
  235. data/js/node_modules/@waves/marshall/dist/parsePrimitives.js +96 -0
  236. data/js/node_modules/@waves/marshall/dist/parsePrimitives.js.map +1 -0
  237. data/js/node_modules/@waves/marshall/dist/schemaTypes.d.ts +62 -0
  238. data/js/node_modules/@waves/marshall/dist/schemaTypes.js +41 -0
  239. data/js/node_modules/@waves/marshall/dist/schemaTypes.js.map +1 -0
  240. data/js/node_modules/@waves/marshall/dist/schemas.d.ts +128 -0
  241. data/js/node_modules/@waves/marshall/dist/schemas.js +542 -0
  242. data/js/node_modules/@waves/marshall/dist/schemas.js.map +1 -0
  243. data/js/node_modules/@waves/marshall/dist/serialize.d.ts +11 -0
  244. data/js/node_modules/@waves/marshall/dist/serialize.js +102 -0
  245. data/js/node_modules/@waves/marshall/dist/serialize.js.map +1 -0
  246. data/js/node_modules/@waves/marshall/dist/serializePrimitives.d.ts +21 -0
  247. data/js/node_modules/@waves/marshall/dist/serializePrimitives.js +63 -0
  248. data/js/node_modules/@waves/marshall/dist/serializePrimitives.js.map +1 -0
  249. data/js/node_modules/@waves/marshall/package.json +45 -0
  250. data/js/node_modules/@waves/marshall/src/index.ts +51 -0
  251. data/js/node_modules/@waves/marshall/src/jsonMethods.ts +231 -0
  252. data/js/node_modules/@waves/marshall/src/libs/Utf8ArrayToStr.ts +35 -0
  253. data/js/node_modules/@waves/marshall/src/libs/base58.ts +88 -0
  254. data/js/node_modules/@waves/marshall/src/libs/utils.ts +6 -0
  255. data/js/node_modules/@waves/marshall/src/parse.ts +157 -0
  256. data/js/node_modules/@waves/marshall/src/parsePrimitives.ts +118 -0
  257. data/js/node_modules/@waves/marshall/src/schemaTypes.ts +91 -0
  258. data/js/node_modules/@waves/marshall/src/schemas.ts +630 -0
  259. data/js/node_modules/@waves/marshall/src/serialize.ts +110 -0
  260. data/js/node_modules/@waves/marshall/src/serializePrimitives.ts +80 -0
  261. data/js/node_modules/@waves/node-api-js/README.md +2 -0
  262. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.d.ts +21 -0
  263. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js +20 -0
  264. data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js.map +1 -0
  265. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.d.ts +81 -0
  266. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js +174 -0
  267. data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js.map +1 -0
  268. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.d.ts +6 -0
  269. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js +22 -0
  270. data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js.map +1 -0
  271. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.d.ts +79 -0
  272. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js +172 -0
  273. data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js.map +1 -0
  274. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.d.ts +131 -0
  275. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js +210 -0
  276. data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js.map +1 -0
  277. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.d.ts +39 -0
  278. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js +37 -0
  279. data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js.map +1 -0
  280. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.d.ts +189 -0
  281. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js +245 -0
  282. data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js.map +1 -0
  283. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.d.ts +3 -0
  284. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js +15 -0
  285. data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js.map +1 -0
  286. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.d.ts +22 -0
  287. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js +42 -0
  288. data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js.map +1 -0
  289. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.d.ts +11 -0
  290. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js +20 -0
  291. data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js.map +1 -0
  292. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.d.ts +46 -0
  293. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js +60 -0
  294. data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js.map +1 -0
  295. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.d.ts +21 -0
  296. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js +21 -0
  297. data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js.map +1 -0
  298. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.d.ts +73 -0
  299. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js +193 -0
  300. data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js.map +1 -0
  301. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.d.ts +110 -0
  302. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js +211 -0
  303. data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js.map +1 -0
  304. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.d.ts +5 -0
  305. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js +7 -0
  306. data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js.map +1 -0
  307. data/js/node_modules/@waves/node-api-js/cjs/constants.d.ts +40 -0
  308. data/js/node_modules/@waves/node-api-js/cjs/constants.js +43 -0
  309. data/js/node_modules/@waves/node-api-js/cjs/constants.js.map +1 -0
  310. data/js/node_modules/@waves/node-api-js/cjs/create.d.ts +1240 -0
  311. data/js/node_modules/@waves/node-api-js/cjs/create.js +119 -0
  312. data/js/node_modules/@waves/node-api-js/cjs/create.js.map +1 -0
  313. data/js/node_modules/@waves/node-api-js/cjs/index.d.ts +9 -0
  314. data/js/node_modules/@waves/node-api-js/cjs/index.js +18 -0
  315. data/js/node_modules/@waves/node-api-js/cjs/index.js.map +1 -0
  316. data/js/node_modules/@waves/node-api-js/cjs/interface.d.ts +44 -0
  317. data/js/node_modules/@waves/node-api-js/cjs/interface.js +10 -0
  318. data/js/node_modules/@waves/node-api-js/cjs/interface.js.map +1 -0
  319. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.d.ts +7 -0
  320. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js +30 -0
  321. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -0
  322. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.d.ts +1 -0
  323. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js +47 -0
  324. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js.map +1 -0
  325. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.d.ts +2 -0
  326. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js +48 -0
  327. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -0
  328. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.d.ts +3 -0
  329. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js +14 -0
  330. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -0
  331. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
  332. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js +13 -0
  333. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -0
  334. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.d.ts +24 -0
  335. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js +168 -0
  336. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js.map +1 -0
  337. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.d.ts +1 -0
  338. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js +10 -0
  339. data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js.map +1 -0
  340. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.d.ts +1 -0
  341. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js +10 -0
  342. data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js.map +1 -0
  343. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.d.ts +1 -0
  344. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js +12 -0
  345. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js.map +1 -0
  346. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.d.ts +1 -0
  347. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js +54 -0
  348. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js.map +1 -0
  349. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.d.ts +1 -0
  350. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js +11 -0
  351. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js.map +1 -0
  352. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.d.ts +3 -0
  353. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js +65 -0
  354. data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js.map +1 -0
  355. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.d.ts +1 -0
  356. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js +8 -0
  357. data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js.map +1 -0
  358. data/js/node_modules/@waves/node-api-js/cjs/tools/query.d.ts +4 -0
  359. data/js/node_modules/@waves/node-api-js/cjs/tools/query.js +41 -0
  360. data/js/node_modules/@waves/node-api-js/cjs/tools/query.js.map +1 -0
  361. data/js/node_modules/@waves/node-api-js/cjs/tools/request.d.ts +64 -0
  362. data/js/node_modules/@waves/node-api-js/cjs/tools/request.js +42 -0
  363. data/js/node_modules/@waves/node-api-js/cjs/tools/request.js.map +1 -0
  364. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.d.ts +1 -0
  365. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js +7 -0
  366. data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js.map +1 -0
  367. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.d.ts +1 -0
  368. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js +21 -0
  369. data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js.map +1 -0
  370. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.d.ts +14 -0
  371. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js +60 -0
  372. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js.map +1 -0
  373. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.d.ts +1 -0
  374. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js +11 -0
  375. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js.map +1 -0
  376. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.d.ts +0 -0
  377. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js +2 -0
  378. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js.map +1 -0
  379. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.d.ts +10 -0
  380. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js +42 -0
  381. data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js.map +1 -0
  382. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.d.ts +32 -0
  383. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js +118 -0
  384. data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js.map +1 -0
  385. data/js/node_modules/@waves/node-api-js/dist/0.node-api.js +467 -0
  386. data/js/node_modules/@waves/node-api-js/dist/node-api.js +30544 -0
  387. data/js/node_modules/@waves/node-api-js/dist/node-api.min.js +26 -0
  388. data/js/node_modules/@waves/node-api-js/dist/node-api.min.js.LICENSE.txt +17 -0
  389. data/js/node_modules/@waves/node-api-js/dist/node_fs-node_path.node-api.js +23 -0
  390. data/js/node_modules/@waves/node-api-js/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +599 -0
  391. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.d.ts +21 -0
  392. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js +13 -0
  393. data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js.map +1 -0
  394. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.d.ts +81 -0
  395. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js +111 -0
  396. data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js.map +1 -0
  397. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.d.ts +6 -0
  398. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js +14 -0
  399. data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js.map +1 -0
  400. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.d.ts +79 -0
  401. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js +103 -0
  402. data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js.map +1 -0
  403. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.d.ts +131 -0
  404. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js +179 -0
  405. data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js.map +1 -0
  406. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.d.ts +39 -0
  407. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js +27 -0
  408. data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js.map +1 -0
  409. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.d.ts +189 -0
  410. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js +201 -0
  411. data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js.map +1 -0
  412. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.d.ts +3 -0
  413. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js +8 -0
  414. data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js.map +1 -0
  415. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.d.ts +22 -0
  416. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js +22 -0
  417. data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js.map +1 -0
  418. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.d.ts +11 -0
  419. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js +10 -0
  420. data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js.map +1 -0
  421. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.d.ts +46 -0
  422. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js +46 -0
  423. data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js.map +1 -0
  424. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.d.ts +21 -0
  425. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js +13 -0
  426. data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js.map +1 -0
  427. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.d.ts +73 -0
  428. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js +137 -0
  429. data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js.map +1 -0
  430. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.d.ts +110 -0
  431. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js +193 -0
  432. data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js.map +1 -0
  433. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.d.ts +5 -0
  434. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js +7 -0
  435. data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js.map +1 -0
  436. data/js/node_modules/@waves/node-api-js/es/constants.d.ts +40 -0
  437. data/js/node_modules/@waves/node-api-js/es/constants.js +40 -0
  438. data/js/node_modules/@waves/node-api-js/es/constants.js.map +1 -0
  439. data/js/node_modules/@waves/node-api-js/es/create.d.ts +1240 -0
  440. data/js/node_modules/@waves/node-api-js/es/create.js +93 -0
  441. data/js/node_modules/@waves/node-api-js/es/create.js.map +1 -0
  442. data/js/node_modules/@waves/node-api-js/es/index.d.ts +9 -0
  443. data/js/node_modules/@waves/node-api-js/es/index.js +9 -0
  444. data/js/node_modules/@waves/node-api-js/es/index.js.map +1 -0
  445. data/js/node_modules/@waves/node-api-js/es/interface.d.ts +44 -0
  446. data/js/node_modules/@waves/node-api-js/es/interface.js +3 -0
  447. data/js/node_modules/@waves/node-api-js/es/interface.js.map +1 -0
  448. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.d.ts +7 -0
  449. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js +27 -0
  450. data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js.map +1 -0
  451. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.d.ts +1 -0
  452. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js +31 -0
  453. data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js.map +1 -0
  454. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.d.ts +2 -0
  455. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js +24 -0
  456. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js.map +1 -0
  457. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.d.ts +3 -0
  458. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js +8 -0
  459. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js.map +1 -0
  460. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
  461. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js +7 -0
  462. data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js.map +1 -0
  463. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.d.ts +24 -0
  464. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js +134 -0
  465. data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js.map +1 -0
  466. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.d.ts +1 -0
  467. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js +7 -0
  468. data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js.map +1 -0
  469. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.d.ts +1 -0
  470. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js +7 -0
  471. data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js.map +1 -0
  472. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.d.ts +1 -0
  473. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js +9 -0
  474. data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js.map +1 -0
  475. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.d.ts +1 -0
  476. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js +51 -0
  477. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js.map +1 -0
  478. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.d.ts +1 -0
  479. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js +5 -0
  480. data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js.map +1 -0
  481. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.d.ts +3 -0
  482. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js +36 -0
  483. data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js.map +1 -0
  484. data/js/node_modules/@waves/node-api-js/es/tools/parse.d.ts +1 -0
  485. data/js/node_modules/@waves/node-api-js/es/tools/parse.js +5 -0
  486. data/js/node_modules/@waves/node-api-js/es/tools/parse.js.map +1 -0
  487. data/js/node_modules/@waves/node-api-js/es/tools/query.d.ts +4 -0
  488. data/js/node_modules/@waves/node-api-js/es/tools/query.js +12 -0
  489. data/js/node_modules/@waves/node-api-js/es/tools/query.js.map +1 -0
  490. data/js/node_modules/@waves/node-api-js/es/tools/request.d.ts +64 -0
  491. data/js/node_modules/@waves/node-api-js/es/tools/request.js +22 -0
  492. data/js/node_modules/@waves/node-api-js/es/tools/request.js.map +1 -0
  493. data/js/node_modules/@waves/node-api-js/es/tools/resolve.d.ts +1 -0
  494. data/js/node_modules/@waves/node-api-js/es/tools/resolve.js +4 -0
  495. data/js/node_modules/@waves/node-api-js/es/tools/resolve.js.map +1 -0
  496. data/js/node_modules/@waves/node-api-js/es/tools/stringify.d.ts +1 -0
  497. data/js/node_modules/@waves/node-api-js/es/tools/stringify.js +18 -0
  498. data/js/node_modules/@waves/node-api-js/es/tools/stringify.js.map +1 -0
  499. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.d.ts +14 -0
  500. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js +43 -0
  501. data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js.map +1 -0
  502. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.d.ts +1 -0
  503. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js +8 -0
  504. data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js.map +1 -0
  505. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.d.ts +0 -0
  506. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js +2 -0
  507. data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js.map +1 -0
  508. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.d.ts +10 -0
  509. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js +39 -0
  510. data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js.map +1 -0
  511. data/js/node_modules/@waves/node-api-js/es/tools/utils.d.ts +32 -0
  512. data/js/node_modules/@waves/node-api-js/es/tools/utils.js +73 -0
  513. data/js/node_modules/@waves/node-api-js/es/tools/utils.js.map +1 -0
  514. data/js/node_modules/@waves/node-api-js/package.json +66 -0
  515. data/js/node_modules/@waves/parse-json-bignumber/coverage/clover.xml +225 -0
  516. data/js/node_modules/@waves/parse-json-bignumber/coverage/coverage-final.json +2 -0
  517. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/base.css +212 -0
  518. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/index.html +93 -0
  519. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/parse-json-bignumber.ts.html +1598 -0
  520. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.css +1 -0
  521. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.js +1 -0
  522. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  523. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sorter.js +158 -0
  524. data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov.info +415 -0
  525. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.d.ts +11 -0
  526. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.js +412 -0
  527. data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.min.js +1 -0
  528. data/js/node_modules/@waves/parse-json-bignumber/package.json +40 -0
  529. data/js/node_modules/@waves/parse-json-bignumber/src/parse-json-bignumber.ts +511 -0
  530. data/js/node_modules/@waves/parse-json-bignumber/test/index.ts +130 -0
  531. data/js/node_modules/@waves/parse-json-bignumber/test/tsconfig.json +14 -0
  532. data/js/node_modules/@waves/parse-json-bignumber/tsconfig.json +15 -0
  533. data/js/node_modules/@waves/protobuf-serialization/README.MD +116 -0
  534. data/js/node_modules/@waves/protobuf-serialization/dist/index.d.ts +2005 -0
  535. data/js/node_modules/@waves/protobuf-serialization/dist/index.js +6636 -0
  536. data/js/node_modules/@waves/protobuf-serialization/package.json +30 -0
  537. data/js/node_modules/@waves/protobuf-serialization/proto/waves/amount.proto +10 -0
  538. data/js/node_modules/@waves/protobuf-serialization/proto/waves/block.proto +40 -0
  539. data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/events.proto +213 -0
  540. data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/grpc/blockchain_updates.proto +42 -0
  541. data/js/node_modules/@waves/protobuf-serialization/proto/waves/invoke_script_result.proto +98 -0
  542. data/js/node_modules/@waves/protobuf-serialization/proto/waves/lang/dapp_meta.proto +21 -0
  543. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/accounts_api.proto +68 -0
  544. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/assets_api.proto +41 -0
  545. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blockchain_api.proto +54 -0
  546. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blocks_api.proto +41 -0
  547. data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/transactions_api.proto +73 -0
  548. data/js/node_modules/@waves/protobuf-serialization/proto/waves/order.proto +43 -0
  549. data/js/node_modules/@waves/protobuf-serialization/proto/waves/recipient.proto +13 -0
  550. data/js/node_modules/@waves/protobuf-serialization/proto/waves/transaction.proto +156 -0
  551. data/js/node_modules/@waves/ts-lib-crypto/README.md +492 -0
  552. data/js/node_modules/@waves/ts-lib-crypto/bytes.d.ts +10 -0
  553. data/js/node_modules/@waves/ts-lib-crypto/bytes.js +21 -0
  554. data/js/node_modules/@waves/ts-lib-crypto/bytes.js.map +1 -0
  555. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.d.ts +7 -0
  556. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js +27 -0
  557. data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js.map +1 -0
  558. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.d.ts +3 -0
  559. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js +24 -0
  560. data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js.map +1 -0
  561. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.d.ts +11 -0
  562. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js +65 -0
  563. data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js.map +1 -0
  564. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.d.ts +7 -0
  565. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js +58 -0
  566. data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js.map +1 -0
  567. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.d.ts +3 -0
  568. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js +39 -0
  569. data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js.map +1 -0
  570. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.d.ts +13 -0
  571. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js +117 -0
  572. data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js.map +1 -0
  573. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.d.ts +6 -0
  574. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js +89 -0
  575. data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js.map +1 -0
  576. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.d.ts +7 -0
  577. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js +39 -0
  578. data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js.map +1 -0
  579. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.d.ts +98 -0
  580. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js +9 -0
  581. data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js.map +1 -0
  582. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.d.ts +7 -0
  583. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js +51 -0
  584. data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js.map +1 -0
  585. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.d.ts +4 -0
  586. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js +51 -0
  587. data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js.map +1 -0
  588. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.d.ts +7 -0
  589. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js +159 -0
  590. data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js.map +1 -0
  591. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.d.ts +9 -0
  592. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js +62 -0
  593. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js.map +1 -0
  594. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.d.ts +1 -0
  595. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js +189 -0
  596. data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js.map +1 -0
  597. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.d.ts +2 -0
  598. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js +16 -0
  599. data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js.map +1 -0
  600. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.d.ts +3 -0
  601. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js +9 -0
  602. data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js.map +1 -0
  603. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.d.ts +7 -0
  604. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js +49 -0
  605. data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js.map +1 -0
  606. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.d.ts +5 -0
  607. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js +16 -0
  608. data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js.map +1 -0
  609. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.d.ts +6 -0
  610. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js +18 -0
  611. data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js.map +1 -0
  612. data/js/node_modules/@waves/ts-lib-crypto/index.d.ts +10 -0
  613. data/js/node_modules/@waves/ts-lib-crypto/index.js +21 -0
  614. data/js/node_modules/@waves/ts-lib-crypto/index.js.map +1 -0
  615. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.d.ts +2 -0
  616. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js +61 -0
  617. data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js.map +1 -0
  618. data/js/node_modules/@waves/ts-lib-crypto/libs/axlsign.js +1374 -0
  619. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.d.ts +5 -0
  620. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js +66 -0
  621. data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js.map +1 -0
  622. data/js/node_modules/@waves/ts-lib-crypto/libs/blake2b.js +308 -0
  623. data/js/node_modules/@waves/ts-lib-crypto/libs/sha3.js +441 -0
  624. data/js/node_modules/@waves/ts-lib-crypto/min/waves-lib-crypto.js +33 -0
  625. data/js/node_modules/@waves/ts-lib-crypto/package.json +31 -0
  626. data/js/node_modules/@waves/ts-types/dist/src/common.d.ts +59 -0
  627. data/js/node_modules/@waves/ts-types/dist/src/common.js +53 -0
  628. data/js/node_modules/@waves/ts-types/dist/src/exchange.d.ts +47 -0
  629. data/js/node_modules/@waves/ts-types/dist/src/exchange.js +2 -0
  630. data/js/node_modules/@waves/ts-types/dist/src/index.d.ts +52 -0
  631. data/js/node_modules/@waves/ts-types/dist/src/index.js +63 -0
  632. data/js/node_modules/@waves/ts-types/dist/src/invoke.d.ts +22 -0
  633. data/js/node_modules/@waves/ts-types/dist/src/invoke.js +2 -0
  634. data/js/node_modules/@waves/ts-types/dist/src/network.d.ts +6 -0
  635. data/js/node_modules/@waves/ts-types/dist/src/network.js +10 -0
  636. data/js/node_modules/@waves/ts-types/dist/src/parts.d.ts +159 -0
  637. data/js/node_modules/@waves/ts-types/dist/src/parts.js +2 -0
  638. data/js/node_modules/@waves/ts-types/dist/transactions/index.d.ts +363 -0
  639. data/js/node_modules/@waves/ts-types/dist/transactions/index.js +3 -0
  640. data/js/node_modules/@waves/ts-types/index.ts +1 -0
  641. data/js/node_modules/@waves/ts-types/package.json +41 -0
  642. data/js/node_modules/@waves/ts-types/src/index.ts +57 -0
  643. data/js/node_modules/@waves/ts-types/src/parts.ts +247 -0
  644. data/js/node_modules/@waves/ts-types/transactions/index.ts +789 -0
  645. data/js/node_modules/@waves/ts-types/tsconfig.json +16 -0
  646. data/js/node_modules/@waves/waves-transactions/README.md +432 -0
  647. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.d.ts +18 -0
  648. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js +22 -0
  649. data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js.map +1 -0
  650. data/js/node_modules/@waves/waves-transactions/dist/general.d.ts +68 -0
  651. data/js/node_modules/@waves/waves-transactions/dist/general.js +135 -0
  652. data/js/node_modules/@waves/waves-transactions/dist/general.js.map +1 -0
  653. data/js/node_modules/@waves/waves-transactions/dist/generic.d.ts +28 -0
  654. data/js/node_modules/@waves/waves-transactions/dist/generic.js +88 -0
  655. data/js/node_modules/@waves/waves-transactions/dist/generic.js.map +1 -0
  656. data/js/node_modules/@waves/waves-transactions/dist/index.d.ts +37 -0
  657. data/js/node_modules/@waves/waves-transactions/dist/index.js +98 -0
  658. data/js/node_modules/@waves/waves-transactions/dist/index.js.map +1 -0
  659. data/js/node_modules/@waves/waves-transactions/dist/make-tx.d.ts +50 -0
  660. data/js/node_modules/@waves/waves-transactions/dist/make-tx.js +106 -0
  661. data/js/node_modules/@waves/waves-transactions/dist/make-tx.js.map +1 -0
  662. data/js/node_modules/@waves/waves-transactions/dist/min/waves-transactions.min.js +26 -0
  663. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.d.ts +116 -0
  664. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js +277 -0
  665. data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js.map +1 -0
  666. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.d.ts +62 -0
  667. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js +514 -0
  668. data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js.map +1 -0
  669. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.d.ts +7 -0
  670. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js +31 -0
  671. data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js.map +1 -0
  672. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.d.ts +7 -0
  673. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js +29 -0
  674. data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js.map +1 -0
  675. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.d.ts +40 -0
  676. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js +37 -0
  677. data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js.map +1 -0
  678. data/js/node_modules/@waves/waves-transactions/dist/requests/order.d.ts +50 -0
  679. data/js/node_modules/@waves/waves-transactions/dist/requests/order.js +62 -0
  680. data/js/node_modules/@waves/waves-transactions/dist/requests/order.js.map +1 -0
  681. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.d.ts +7 -0
  682. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js +31 -0
  683. data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js.map +1 -0
  684. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.d.ts +21 -0
  685. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js +85 -0
  686. data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js.map +1 -0
  687. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.d.ts +8 -0
  688. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js +35 -0
  689. data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js.map +1 -0
  690. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.d.ts +8 -0
  691. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js +35 -0
  692. data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js.map +1 -0
  693. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.d.ts +8 -0
  694. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js +34 -0
  695. data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js.map +1 -0
  696. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.d.ts +5 -0
  697. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js +112 -0
  698. data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js.map +1 -0
  699. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.d.ts +7 -0
  700. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js +39 -0
  701. data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js.map +1 -0
  702. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.d.ts +0 -0
  703. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js +52 -0
  704. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js.map +1 -0
  705. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.d.ts +8 -0
  706. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js +43 -0
  707. data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js.map +1 -0
  708. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.d.ts +8 -0
  709. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js +42 -0
  710. data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js.map +1 -0
  711. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.d.ts +8 -0
  712. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js +35 -0
  713. data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js.map +1 -0
  714. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.d.ts +8 -0
  715. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js +39 -0
  716. data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js.map +1 -0
  717. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.d.ts +8 -0
  718. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js +36 -0
  719. data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js.map +1 -0
  720. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.d.ts +8 -0
  721. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js +37 -0
  722. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js.map +1 -0
  723. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.d.ts +8 -0
  724. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js +38 -0
  725. data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js.map +1 -0
  726. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.d.ts +8 -0
  727. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js +35 -0
  728. data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js.map +1 -0
  729. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.d.ts +8 -0
  730. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js +38 -0
  731. data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js.map +1 -0
  732. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.d.ts +8 -0
  733. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js +35 -0
  734. data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js.map +1 -0
  735. data/js/node_modules/@waves/waves-transactions/dist/transactions.d.ts +277 -0
  736. data/js/node_modules/@waves/waves-transactions/dist/transactions.js +3 -0
  737. data/js/node_modules/@waves/waves-transactions/dist/transactions.js.map +1 -0
  738. data/js/node_modules/@waves/waves-transactions/dist/types.d.ts +11 -0
  739. data/js/node_modules/@waves/waves-transactions/dist/types.js +6 -0
  740. data/js/node_modules/@waves/waves-transactions/dist/types.js.map +1 -0
  741. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.d.ts +1 -0
  742. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js +17 -0
  743. data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js.map +1 -0
  744. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.d.ts +1 -0
  745. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js +10 -0
  746. data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js.map +1 -0
  747. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.d.ts +1 -0
  748. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js +18 -0
  749. data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js.map +1 -0
  750. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.d.ts +1 -0
  751. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js +17 -0
  752. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js.map +1 -0
  753. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.d.ts +1 -0
  754. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js +12 -0
  755. data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js.map +1 -0
  756. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.d.ts +1 -0
  757. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js +16 -0
  758. data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js.map +1 -0
  759. data/js/node_modules/@waves/waves-transactions/dist/validators/data.d.ts +2 -0
  760. data/js/node_modules/@waves/waves-transactions/dist/validators/data.js +18 -0
  761. data/js/node_modules/@waves/waves-transactions/dist/validators/data.js.map +1 -0
  762. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.d.ts +1 -0
  763. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js +22 -0
  764. data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js.map +1 -0
  765. data/js/node_modules/@waves/waves-transactions/dist/validators/index.d.ts +24 -0
  766. data/js/node_modules/@waves/waves-transactions/dist/validators/index.js +60 -0
  767. data/js/node_modules/@waves/waves-transactions/dist/validators/index.js.map +1 -0
  768. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.d.ts +0 -0
  769. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js +33 -0
  770. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js.map +1 -0
  771. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.d.ts +1 -0
  772. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js +20 -0
  773. data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js.map +1 -0
  774. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.d.ts +1 -0
  775. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js +22 -0
  776. data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js.map +1 -0
  777. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.d.ts +1 -0
  778. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js +17 -0
  779. data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js.map +1 -0
  780. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.d.ts +1 -0
  781. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js +18 -0
  782. data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js.map +1 -0
  783. data/js/node_modules/@waves/waves-transactions/dist/validators/order.d.ts +1 -0
  784. data/js/node_modules/@waves/waves-transactions/dist/validators/order.js +34 -0
  785. data/js/node_modules/@waves/waves-transactions/dist/validators/order.js.map +1 -0
  786. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.d.ts +1 -0
  787. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js +19 -0
  788. data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js.map +1 -0
  789. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.d.ts +1 -0
  790. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js +18 -0
  791. data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js.map +1 -0
  792. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.d.ts +1 -0
  793. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js +17 -0
  794. data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js.map +1 -0
  795. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.d.ts +1 -0
  796. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js +17 -0
  797. data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js.map +1 -0
  798. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.d.ts +1 -0
  799. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js +20 -0
  800. data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js.map +1 -0
  801. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.d.ts +1 -0
  802. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js +18 -0
  803. data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js.map +1 -0
  804. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.d.ts +52 -0
  805. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js +160 -0
  806. data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js.map +1 -0
  807. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.d.ts +1 -0
  808. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js +10 -0
  809. data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js.map +1 -0
  810. data/js/node_modules/@waves/waves-transactions/package.json +83 -0
  811. data/js/node_modules/@waves/waves-transactions/src/defaultVersions.ts +18 -0
  812. data/js/node_modules/@waves/waves-transactions/src/general.ts +165 -0
  813. data/js/node_modules/@waves/waves-transactions/src/generic.ts +88 -0
  814. data/js/node_modules/@waves/waves-transactions/src/index.ts +87 -0
  815. data/js/node_modules/@waves/waves-transactions/src/make-tx.ts +179 -0
  816. data/js/node_modules/@waves/waves-transactions/src/nodeInteraction.ts +297 -0
  817. data/js/node_modules/@waves/waves-transactions/src/proto-serialize.ts +571 -0
  818. data/js/node_modules/@waves/waves-transactions/src/requests/auth.ts +42 -0
  819. data/js/node_modules/@waves/waves-transactions/src/requests/cancel-order.ts +37 -0
  820. data/js/node_modules/@waves/waves-transactions/src/requests/custom-data.ts +73 -0
  821. data/js/node_modules/@waves/waves-transactions/src/requests/order.ts +121 -0
  822. data/js/node_modules/@waves/waves-transactions/src/requests/wavesAuth.ts +40 -0
  823. data/js/node_modules/@waves/waves-transactions/src/seedUtils/index.ts +124 -0
  824. data/js/node_modules/@waves/waves-transactions/src/transactions/alias.ts +46 -0
  825. data/js/node_modules/@waves/waves-transactions/src/transactions/burn.ts +45 -0
  826. data/js/node_modules/@waves/waves-transactions/src/transactions/cancel-lease.ts +44 -0
  827. data/js/node_modules/@waves/waves-transactions/src/transactions/data.ts +122 -0
  828. data/js/node_modules/@waves/waves-transactions/src/transactions/exchange.ts +47 -0
  829. data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-expression.ts +50 -0
  830. data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-script.ts +54 -0
  831. data/js/node_modules/@waves/waves-transactions/src/transactions/issue.ts +52 -0
  832. data/js/node_modules/@waves/waves-transactions/src/transactions/lease.ts +45 -0
  833. data/js/node_modules/@waves/waves-transactions/src/transactions/mass-transfer.ts +55 -0
  834. data/js/node_modules/@waves/waves-transactions/src/transactions/reissue.ts +46 -0
  835. data/js/node_modules/@waves/waves-transactions/src/transactions/set-asset-script.ts +57 -0
  836. data/js/node_modules/@waves/waves-transactions/src/transactions/set-script.ts +54 -0
  837. data/js/node_modules/@waves/waves-transactions/src/transactions/sponsorship.ts +45 -0
  838. data/js/node_modules/@waves/waves-transactions/src/transactions/transfer.ts +55 -0
  839. data/js/node_modules/@waves/waves-transactions/src/transactions/update-asset-info.ts +44 -0
  840. data/js/node_modules/@waves/waves-transactions/src/transactions.ts +352 -0
  841. data/js/node_modules/@waves/waves-transactions/src/types.ts +12 -0
  842. data/js/node_modules/@waves/waves-transactions/src/validators/alias.ts +28 -0
  843. data/js/node_modules/@waves/waves-transactions/src/validators/auth.ts +14 -0
  844. data/js/node_modules/@waves/waves-transactions/src/validators/burn.ts +29 -0
  845. data/js/node_modules/@waves/waves-transactions/src/validators/cancel-lease.ts +27 -0
  846. data/js/node_modules/@waves/waves-transactions/src/validators/cancel-order.ts +17 -0
  847. data/js/node_modules/@waves/waves-transactions/src/validators/custom-data.ts +40 -0
  848. data/js/node_modules/@waves/waves-transactions/src/validators/data.ts +33 -0
  849. data/js/node_modules/@waves/waves-transactions/src/validators/exchange.ts +36 -0
  850. data/js/node_modules/@waves/waves-transactions/src/validators/index.ts +50 -0
  851. data/js/node_modules/@waves/waves-transactions/src/validators/invoke-expression.ts +31 -0
  852. data/js/node_modules/@waves/waves-transactions/src/validators/invoke-script.ts +64 -0
  853. data/js/node_modules/@waves/waves-transactions/src/validators/issue.ts +41 -0
  854. data/js/node_modules/@waves/waves-transactions/src/validators/lease.ts +29 -0
  855. data/js/node_modules/@waves/waves-transactions/src/validators/mass-transfer.ts +47 -0
  856. data/js/node_modules/@waves/waves-transactions/src/validators/order.ts +68 -0
  857. data/js/node_modules/@waves/waves-transactions/src/validators/reissue.ts +31 -0
  858. data/js/node_modules/@waves/waves-transactions/src/validators/set-asset-script.ts +28 -0
  859. data/js/node_modules/@waves/waves-transactions/src/validators/set-script.ts +28 -0
  860. data/js/node_modules/@waves/waves-transactions/src/validators/sponsorship.ts +28 -0
  861. data/js/node_modules/@waves/waves-transactions/src/validators/transfer.ts +32 -0
  862. data/js/node_modules/@waves/waves-transactions/src/validators/update-asset-info.ts +32 -0
  863. data/js/node_modules/@waves/waves-transactions/src/validators/validators.ts +306 -0
  864. data/js/node_modules/@waves/waves-transactions/src/validators/wavesAuth.ts +15 -0
  865. data/js/node_modules/asynckit/LICENSE +21 -0
  866. data/js/node_modules/asynckit/README.md +233 -0
  867. data/js/node_modules/asynckit/bench.js +76 -0
  868. data/js/node_modules/asynckit/index.js +6 -0
  869. data/js/node_modules/asynckit/lib/abort.js +29 -0
  870. data/js/node_modules/asynckit/lib/async.js +34 -0
  871. data/js/node_modules/asynckit/lib/defer.js +26 -0
  872. data/js/node_modules/asynckit/lib/iterate.js +75 -0
  873. data/js/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  874. data/js/node_modules/asynckit/lib/readable_parallel.js +25 -0
  875. data/js/node_modules/asynckit/lib/readable_serial.js +25 -0
  876. data/js/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  877. data/js/node_modules/asynckit/lib/state.js +37 -0
  878. data/js/node_modules/asynckit/lib/streamify.js +141 -0
  879. data/js/node_modules/asynckit/lib/terminator.js +29 -0
  880. data/js/node_modules/asynckit/package.json +63 -0
  881. data/js/node_modules/asynckit/parallel.js +43 -0
  882. data/js/node_modules/asynckit/serial.js +17 -0
  883. data/js/node_modules/asynckit/serialOrdered.js +75 -0
  884. data/js/node_modules/asynckit/stream.js +21 -0
  885. data/js/node_modules/axios/CHANGELOG.md +413 -0
  886. data/js/node_modules/axios/LICENSE +19 -0
  887. data/js/node_modules/axios/README.md +709 -0
  888. data/js/node_modules/axios/UPGRADE_GUIDE.md +162 -0
  889. data/js/node_modules/axios/dist/axios.js +1715 -0
  890. data/js/node_modules/axios/dist/axios.map +1 -0
  891. data/js/node_modules/axios/dist/axios.min.js +3 -0
  892. data/js/node_modules/axios/dist/axios.min.map +1 -0
  893. data/js/node_modules/axios/index.d.ts +157 -0
  894. data/js/node_modules/axios/index.js +1 -0
  895. data/js/node_modules/axios/lib/adapters/README.md +37 -0
  896. data/js/node_modules/axios/lib/adapters/http.js +279 -0
  897. data/js/node_modules/axios/lib/adapters/xhr.js +180 -0
  898. data/js/node_modules/axios/lib/axios.js +53 -0
  899. data/js/node_modules/axios/lib/cancel/Cancel.js +19 -0
  900. data/js/node_modules/axios/lib/cancel/CancelToken.js +57 -0
  901. data/js/node_modules/axios/lib/cancel/isCancel.js +5 -0
  902. data/js/node_modules/axios/lib/core/Axios.js +94 -0
  903. data/js/node_modules/axios/lib/core/InterceptorManager.js +52 -0
  904. data/js/node_modules/axios/lib/core/README.md +7 -0
  905. data/js/node_modules/axios/lib/core/buildFullPath.js +20 -0
  906. data/js/node_modules/axios/lib/core/createError.js +18 -0
  907. data/js/node_modules/axios/lib/core/dispatchRequest.js +79 -0
  908. data/js/node_modules/axios/lib/core/enhanceError.js +42 -0
  909. data/js/node_modules/axios/lib/core/mergeConfig.js +73 -0
  910. data/js/node_modules/axios/lib/core/settle.js +25 -0
  911. data/js/node_modules/axios/lib/core/transformData.js +20 -0
  912. data/js/node_modules/axios/lib/defaults.js +97 -0
  913. data/js/node_modules/axios/lib/helpers/README.md +7 -0
  914. data/js/node_modules/axios/lib/helpers/bind.js +11 -0
  915. data/js/node_modules/axios/lib/helpers/buildURL.js +71 -0
  916. data/js/node_modules/axios/lib/helpers/combineURLs.js +14 -0
  917. data/js/node_modules/axios/lib/helpers/cookies.js +53 -0
  918. data/js/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
  919. data/js/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
  920. data/js/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
  921. data/js/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  922. data/js/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
  923. data/js/node_modules/axios/lib/helpers/spread.js +27 -0
  924. data/js/node_modules/axios/lib/utils.js +344 -0
  925. data/js/node_modules/axios/package.json +84 -0
  926. data/js/node_modules/base64-js/LICENSE +21 -0
  927. data/js/node_modules/base64-js/README.md +34 -0
  928. data/js/node_modules/base64-js/base64js.min.js +1 -0
  929. data/js/node_modules/base64-js/index.d.ts +3 -0
  930. data/js/node_modules/base64-js/index.js +150 -0
  931. data/js/node_modules/base64-js/package.json +47 -0
  932. data/js/node_modules/bignumber.js/CHANGELOG.md +290 -0
  933. data/js/node_modules/bignumber.js/LICENCE.md +26 -0
  934. data/js/node_modules/bignumber.js/README.md +286 -0
  935. data/js/node_modules/bignumber.js/bignumber.d.ts +1831 -0
  936. data/js/node_modules/bignumber.js/bignumber.js +2926 -0
  937. data/js/node_modules/bignumber.js/bignumber.mjs +2889 -0
  938. data/js/node_modules/bignumber.js/doc/API.html +2249 -0
  939. data/js/node_modules/bignumber.js/package.json +50 -0
  940. data/js/node_modules/combined-stream/License +19 -0
  941. data/js/node_modules/combined-stream/Readme.md +138 -0
  942. data/js/node_modules/combined-stream/lib/combined_stream.js +208 -0
  943. data/js/node_modules/combined-stream/package.json +25 -0
  944. data/js/node_modules/combined-stream/yarn.lock +17 -0
  945. data/js/node_modules/debug/CHANGELOG.md +395 -0
  946. data/js/node_modules/debug/LICENSE +19 -0
  947. data/js/node_modules/debug/Makefile +58 -0
  948. data/js/node_modules/debug/README.md +368 -0
  949. data/js/node_modules/debug/karma.conf.js +70 -0
  950. data/js/node_modules/debug/node.js +1 -0
  951. data/js/node_modules/debug/package.json +43 -0
  952. data/js/node_modules/debug/src/browser.js +195 -0
  953. data/js/node_modules/debug/src/debug.js +225 -0
  954. data/js/node_modules/debug/src/index.js +10 -0
  955. data/js/node_modules/debug/src/node.js +186 -0
  956. data/js/node_modules/delayed-stream/License +19 -0
  957. data/js/node_modules/delayed-stream/Makefile +7 -0
  958. data/js/node_modules/delayed-stream/Readme.md +141 -0
  959. data/js/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  960. data/js/node_modules/delayed-stream/package.json +27 -0
  961. data/js/node_modules/follow-redirects/LICENSE +18 -0
  962. data/js/node_modules/follow-redirects/README.md +155 -0
  963. data/js/node_modules/follow-redirects/http.js +1 -0
  964. data/js/node_modules/follow-redirects/https.js +1 -0
  965. data/js/node_modules/follow-redirects/index.js +322 -0
  966. data/js/node_modules/follow-redirects/package.json +60 -0
  967. data/js/node_modules/form-data/License +19 -0
  968. data/js/node_modules/form-data/README.md.bak +356 -0
  969. data/js/node_modules/form-data/Readme.md +356 -0
  970. data/js/node_modules/form-data/index.d.ts +62 -0
  971. data/js/node_modules/form-data/lib/browser.js +2 -0
  972. data/js/node_modules/form-data/lib/form_data.js +498 -0
  973. data/js/node_modules/form-data/lib/populate.js +10 -0
  974. data/js/node_modules/form-data/package.json +68 -0
  975. data/js/node_modules/js-sha3/CHANGELOG.md +106 -0
  976. data/js/node_modules/js-sha3/LICENSE.txt +20 -0
  977. data/js/node_modules/js-sha3/README.md +241 -0
  978. data/js/node_modules/js-sha3/build/sha3.min.js +9 -0
  979. data/js/node_modules/js-sha3/index.d.ts +317 -0
  980. data/js/node_modules/js-sha3/package.json +45 -0
  981. data/js/node_modules/js-sha3/src/sha3.js +656 -0
  982. data/js/node_modules/long/LICENSE +202 -0
  983. data/js/node_modules/long/README.md +246 -0
  984. data/js/node_modules/long/dist/long.js +2 -0
  985. data/js/node_modules/long/dist/long.js.map +1 -0
  986. data/js/node_modules/long/index.js +1 -0
  987. data/js/node_modules/long/package.json +34 -0
  988. data/js/node_modules/long/src/long.js +1323 -0
  989. data/js/node_modules/mime-db/HISTORY.md +507 -0
  990. data/js/node_modules/mime-db/LICENSE +23 -0
  991. data/js/node_modules/mime-db/README.md +100 -0
  992. data/js/node_modules/mime-db/db.json +8519 -0
  993. data/js/node_modules/mime-db/index.js +12 -0
  994. data/js/node_modules/mime-db/package.json +60 -0
  995. data/js/node_modules/mime-types/HISTORY.md +397 -0
  996. data/js/node_modules/mime-types/LICENSE +23 -0
  997. data/js/node_modules/mime-types/README.md +113 -0
  998. data/js/node_modules/mime-types/index.js +188 -0
  999. data/js/node_modules/mime-types/package.json +44 -0
  1000. data/js/node_modules/ms/index.js +152 -0
  1001. data/js/node_modules/ms/license.md +21 -0
  1002. data/js/node_modules/ms/package.json +37 -0
  1003. data/js/node_modules/ms/readme.md +51 -0
  1004. data/js/node_modules/node-fetch/LICENSE.md +22 -0
  1005. data/js/node_modules/node-fetch/README.md +633 -0
  1006. data/js/node_modules/node-fetch/browser.js +25 -0
  1007. data/js/node_modules/node-fetch/lib/index.es.js +1781 -0
  1008. data/js/node_modules/node-fetch/lib/index.js +1790 -0
  1009. data/js/node_modules/node-fetch/lib/index.mjs +1779 -0
  1010. data/js/node_modules/node-fetch/package.json +89 -0
  1011. data/js/node_modules/node-forge/CHANGELOG.md +211 -0
  1012. data/js/node_modules/node-forge/LICENSE +331 -0
  1013. data/js/node_modules/node-forge/README.md +2097 -0
  1014. data/js/node_modules/node-forge/dist/forge.all.min.js +2 -0
  1015. data/js/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
  1016. data/js/node_modules/node-forge/dist/forge.min.js +2 -0
  1017. data/js/node_modules/node-forge/dist/forge.min.js.map +1 -0
  1018. data/js/node_modules/node-forge/dist/prime.worker.min.js +2 -0
  1019. data/js/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
  1020. data/js/node_modules/node-forge/flash/README.md +48 -0
  1021. data/js/node_modules/node-forge/flash/package.json +28 -0
  1022. data/js/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
  1023. data/js/node_modules/node-forge/lib/aes.js +1091 -0
  1024. data/js/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
  1025. data/js/node_modules/node-forge/lib/asn1.js +1408 -0
  1026. data/js/node_modules/node-forge/lib/baseN.js +186 -0
  1027. data/js/node_modules/node-forge/lib/cipher.js +230 -0
  1028. data/js/node_modules/node-forge/lib/cipherModes.js +987 -0
  1029. data/js/node_modules/node-forge/lib/debug.js +78 -0
  1030. data/js/node_modules/node-forge/lib/des.js +496 -0
  1031. data/js/node_modules/node-forge/lib/ed25519.js +996 -0
  1032. data/js/node_modules/node-forge/lib/forge.js +13 -0
  1033. data/js/node_modules/node-forge/lib/form.js +149 -0
  1034. data/js/node_modules/node-forge/lib/hmac.js +146 -0
  1035. data/js/node_modules/node-forge/lib/http.js +1364 -0
  1036. data/js/node_modules/node-forge/lib/index.all.js +16 -0
  1037. data/js/node_modules/node-forge/lib/index.js +35 -0
  1038. data/js/node_modules/node-forge/lib/jsbn.js +1264 -0
  1039. data/js/node_modules/node-forge/lib/kem.js +168 -0
  1040. data/js/node_modules/node-forge/lib/log.js +317 -0
  1041. data/js/node_modules/node-forge/lib/md.all.js +13 -0
  1042. data/js/node_modules/node-forge/lib/md.js +11 -0
  1043. data/js/node_modules/node-forge/lib/md5.js +289 -0
  1044. data/js/node_modules/node-forge/lib/mgf.js +12 -0
  1045. data/js/node_modules/node-forge/lib/mgf1.js +57 -0
  1046. data/js/node_modules/node-forge/lib/oids.js +163 -0
  1047. data/js/node_modules/node-forge/lib/pbe.js +1023 -0
  1048. data/js/node_modules/node-forge/lib/pbkdf2.js +211 -0
  1049. data/js/node_modules/node-forge/lib/pem.js +230 -0
  1050. data/js/node_modules/node-forge/lib/pkcs1.js +276 -0
  1051. data/js/node_modules/node-forge/lib/pkcs12.js +1074 -0
  1052. data/js/node_modules/node-forge/lib/pkcs7.js +1257 -0
  1053. data/js/node_modules/node-forge/lib/pkcs7asn1.js +409 -0
  1054. data/js/node_modules/node-forge/lib/pki.js +102 -0
  1055. data/js/node_modules/node-forge/lib/prime.js +297 -0
  1056. data/js/node_modules/node-forge/lib/prime.worker.js +168 -0
  1057. data/js/node_modules/node-forge/lib/prng.js +419 -0
  1058. data/js/node_modules/node-forge/lib/pss.js +241 -0
  1059. data/js/node_modules/node-forge/lib/random.js +191 -0
  1060. data/js/node_modules/node-forge/lib/rc2.js +410 -0
  1061. data/js/node_modules/node-forge/lib/rsa.js +1858 -0
  1062. data/js/node_modules/node-forge/lib/sha1.js +319 -0
  1063. data/js/node_modules/node-forge/lib/sha256.js +327 -0
  1064. data/js/node_modules/node-forge/lib/sha512.js +561 -0
  1065. data/js/node_modules/node-forge/lib/socket.js +287 -0
  1066. data/js/node_modules/node-forge/lib/ssh.js +236 -0
  1067. data/js/node_modules/node-forge/lib/task.js +725 -0
  1068. data/js/node_modules/node-forge/lib/tls.js +4282 -0
  1069. data/js/node_modules/node-forge/lib/tlssocket.js +249 -0
  1070. data/js/node_modules/node-forge/lib/util.js +2993 -0
  1071. data/js/node_modules/node-forge/lib/x509.js +3333 -0
  1072. data/js/node_modules/node-forge/lib/xhr.js +736 -0
  1073. data/js/node_modules/node-forge/package.json +120 -0
  1074. data/js/node_modules/protobufjs/CHANGELOG.md +1027 -0
  1075. data/js/node_modules/protobufjs/LICENSE +39 -0
  1076. data/js/node_modules/protobufjs/README.md +905 -0
  1077. data/js/node_modules/protobufjs/bin/pbjs +6 -0
  1078. data/js/node_modules/protobufjs/bin/pbts +6 -0
  1079. data/js/node_modules/protobufjs/cli/LICENSE +33 -0
  1080. data/js/node_modules/protobufjs/cli/README.md +174 -0
  1081. data/js/node_modules/protobufjs/cli/bin/pbjs +6 -0
  1082. data/js/node_modules/protobufjs/cli/bin/pbts +6 -0
  1083. data/js/node_modules/protobufjs/cli/index.d.ts +3 -0
  1084. data/js/node_modules/protobufjs/cli/index.js +3 -0
  1085. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +21 -0
  1086. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +23 -0
  1087. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/plugin.js +21 -0
  1088. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/publish.js +705 -0
  1089. data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc.json +18 -0
  1090. data/js/node_modules/protobufjs/cli/package.json +8 -0
  1091. data/js/node_modules/protobufjs/cli/package.standalone.json +32 -0
  1092. data/js/node_modules/protobufjs/cli/pbjs.d.ts +9 -0
  1093. data/js/node_modules/protobufjs/cli/pbjs.js +330 -0
  1094. data/js/node_modules/protobufjs/cli/pbts.d.ts +9 -0
  1095. data/js/node_modules/protobufjs/cli/pbts.js +197 -0
  1096. data/js/node_modules/protobufjs/cli/targets/json-module.js +38 -0
  1097. data/js/node_modules/protobufjs/cli/targets/json.js +8 -0
  1098. data/js/node_modules/protobufjs/cli/targets/proto.js +326 -0
  1099. data/js/node_modules/protobufjs/cli/targets/proto2.js +10 -0
  1100. data/js/node_modules/protobufjs/cli/targets/proto3.js +10 -0
  1101. data/js/node_modules/protobufjs/cli/targets/static-module.js +29 -0
  1102. data/js/node_modules/protobufjs/cli/targets/static.js +711 -0
  1103. data/js/node_modules/protobufjs/cli/util.js +183 -0
  1104. data/js/node_modules/protobufjs/cli/wrappers/amd.js +7 -0
  1105. data/js/node_modules/protobufjs/cli/wrappers/closure.js +7 -0
  1106. data/js/node_modules/protobufjs/cli/wrappers/commonjs.js +7 -0
  1107. data/js/node_modules/protobufjs/cli/wrappers/default.js +15 -0
  1108. data/js/node_modules/protobufjs/cli/wrappers/es6.js +5 -0
  1109. data/js/node_modules/protobufjs/dist/README.md +31 -0
  1110. data/js/node_modules/protobufjs/dist/light/README.md +31 -0
  1111. data/js/node_modules/protobufjs/dist/light/protobuf.js +7322 -0
  1112. data/js/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
  1113. data/js/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
  1114. data/js/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
  1115. data/js/node_modules/protobufjs/dist/minimal/README.md +31 -0
  1116. data/js/node_modules/protobufjs/dist/minimal/protobuf.js +2714 -0
  1117. data/js/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
  1118. data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
  1119. data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
  1120. data/js/node_modules/protobufjs/dist/protobuf.js +8964 -0
  1121. data/js/node_modules/protobufjs/dist/protobuf.js.map +1 -0
  1122. data/js/node_modules/protobufjs/dist/protobuf.min.js +8 -0
  1123. data/js/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
  1124. data/js/node_modules/protobufjs/ext/debug/README.md +4 -0
  1125. data/js/node_modules/protobufjs/ext/debug/index.js +71 -0
  1126. data/js/node_modules/protobufjs/ext/descriptor/README.md +72 -0
  1127. data/js/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -0
  1128. data/js/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
  1129. data/js/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  1130. data/js/node_modules/protobufjs/google/LICENSE +27 -0
  1131. data/js/node_modules/protobufjs/google/README.md +1 -0
  1132. data/js/node_modules/protobufjs/google/api/annotations.json +83 -0
  1133. data/js/node_modules/protobufjs/google/api/annotations.proto +11 -0
  1134. data/js/node_modules/protobufjs/google/api/http.json +86 -0
  1135. data/js/node_modules/protobufjs/google/api/http.proto +31 -0
  1136. data/js/node_modules/protobufjs/google/protobuf/api.json +118 -0
  1137. data/js/node_modules/protobufjs/google/protobuf/api.proto +34 -0
  1138. data/js/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
  1139. data/js/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -0
  1140. data/js/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
  1141. data/js/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
  1142. data/js/node_modules/protobufjs/google/protobuf/type.json +202 -0
  1143. data/js/node_modules/protobufjs/google/protobuf/type.proto +89 -0
  1144. data/js/node_modules/protobufjs/index.d.ts +2739 -0
  1145. data/js/node_modules/protobufjs/index.js +4 -0
  1146. data/js/node_modules/protobufjs/light.d.ts +2 -0
  1147. data/js/node_modules/protobufjs/light.js +4 -0
  1148. data/js/node_modules/protobufjs/minimal.d.ts +2 -0
  1149. data/js/node_modules/protobufjs/minimal.js +4 -0
  1150. data/js/node_modules/protobufjs/package-lock.json +7870 -0
  1151. data/js/node_modules/protobufjs/package.json +122 -0
  1152. data/js/node_modules/protobufjs/scripts/changelog.js +150 -0
  1153. data/js/node_modules/protobufjs/scripts/postinstall.js +35 -0
  1154. data/js/node_modules/protobufjs/src/common.js +399 -0
  1155. data/js/node_modules/protobufjs/src/converter.js +293 -0
  1156. data/js/node_modules/protobufjs/src/decoder.js +128 -0
  1157. data/js/node_modules/protobufjs/src/encoder.js +100 -0
  1158. data/js/node_modules/protobufjs/src/enum.js +181 -0
  1159. data/js/node_modules/protobufjs/src/field.js +374 -0
  1160. data/js/node_modules/protobufjs/src/index-light.js +104 -0
  1161. data/js/node_modules/protobufjs/src/index-minimal.js +36 -0
  1162. data/js/node_modules/protobufjs/src/index.js +12 -0
  1163. data/js/node_modules/protobufjs/src/mapfield.js +126 -0
  1164. data/js/node_modules/protobufjs/src/message.js +139 -0
  1165. data/js/node_modules/protobufjs/src/method.js +160 -0
  1166. data/js/node_modules/protobufjs/src/namespace.js +434 -0
  1167. data/js/node_modules/protobufjs/src/object.js +243 -0
  1168. data/js/node_modules/protobufjs/src/oneof.js +203 -0
  1169. data/js/node_modules/protobufjs/src/parse.js +820 -0
  1170. data/js/node_modules/protobufjs/src/reader.js +411 -0
  1171. data/js/node_modules/protobufjs/src/reader_buffer.js +51 -0
  1172. data/js/node_modules/protobufjs/src/root.js +363 -0
  1173. data/js/node_modules/protobufjs/src/roots.js +18 -0
  1174. data/js/node_modules/protobufjs/src/rpc/service.js +142 -0
  1175. data/js/node_modules/protobufjs/src/rpc.js +36 -0
  1176. data/js/node_modules/protobufjs/src/service.js +167 -0
  1177. data/js/node_modules/protobufjs/src/tokenize.js +403 -0
  1178. data/js/node_modules/protobufjs/src/type.js +589 -0
  1179. data/js/node_modules/protobufjs/src/types.js +196 -0
  1180. data/js/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  1181. data/js/node_modules/protobufjs/src/util/longbits.js +200 -0
  1182. data/js/node_modules/protobufjs/src/util/minimal.js +421 -0
  1183. data/js/node_modules/protobufjs/src/util.js +212 -0
  1184. data/js/node_modules/protobufjs/src/verifier.js +177 -0
  1185. data/js/node_modules/protobufjs/src/wrappers.js +102 -0
  1186. data/js/node_modules/protobufjs/src/writer.js +465 -0
  1187. data/js/node_modules/protobufjs/src/writer_buffer.js +85 -0
  1188. data/js/node_modules/protobufjs/tsconfig.json +7 -0
  1189. data/js/node_modules/tr46/index.js +193 -0
  1190. data/js/node_modules/tr46/lib/mappingTable.json +1 -0
  1191. data/js/node_modules/tr46/package.json +31 -0
  1192. data/js/node_modules/typed-ts-events/dist/EventEmitter.d.ts +23 -0
  1193. data/js/node_modules/typed-ts-events/dist/events.js +145 -0
  1194. data/js/node_modules/typed-ts-events/dist/events.js.map +1 -0
  1195. data/js/node_modules/typed-ts-events/dist/events.min.js +2 -0
  1196. data/js/node_modules/typed-ts-events/dist/events.min.js.map +1 -0
  1197. data/js/node_modules/typed-ts-events/dist/index.d.ts +3 -0
  1198. data/js/node_modules/typed-ts-events/package.json +64 -0
  1199. data/js/node_modules/typed-ts-events/readme.md +77 -0
  1200. data/js/node_modules/webidl-conversions/LICENSE.md +12 -0
  1201. data/js/node_modules/webidl-conversions/README.md +53 -0
  1202. data/js/node_modules/webidl-conversions/lib/index.js +189 -0
  1203. data/js/node_modules/webidl-conversions/package.json +23 -0
  1204. data/js/node_modules/whatwg-url/LICENSE.txt +21 -0
  1205. data/js/node_modules/whatwg-url/README.md +67 -0
  1206. data/js/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  1207. data/js/node_modules/whatwg-url/lib/URL.js +196 -0
  1208. data/js/node_modules/whatwg-url/lib/public-api.js +11 -0
  1209. data/js/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  1210. data/js/node_modules/whatwg-url/lib/utils.js +20 -0
  1211. data/js/node_modules/whatwg-url/package.json +32 -0
  1212. data/js/package-lock.json +706 -0
  1213. data/js/package.json +15 -0
  1214. data/js/worker.js +109 -0
  1215. data/js/yarn.lock +285 -0
  1216. data/lib/waves_lib/map.rb +211 -0
  1217. data/lib/waves_lib/root_wrapper.rb +85 -0
  1218. data/lib/waves_lib/version.rb +6 -0
  1219. data/lib/waves_lib/wrapped_buffer.rb +26 -0
  1220. data/lib/waves_lib/wrapper.rb +82 -0
  1221. data/lib/waves_lib.rb +10 -0
  1222. metadata +1264 -0
@@ -0,0 +1,2249 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="Author" content="M Mclaughlin">
7
+ <title>bignumber.js API</title>
8
+ <style>
9
+ html{font-size:100%}
10
+ body{background:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;
11
+ line-height:1.65em;min-height:100%;margin:0}
12
+ body,i{color:#000}
13
+ .nav{background:#fff;position:fixed;top:0;bottom:0;left:0;width:200px;overflow-y:auto;
14
+ padding:15px 0 30px 15px}
15
+ div.container{width:600px;margin:50px 0 50px 240px}
16
+ p{margin:0 0 1em;width:600px}
17
+ pre,ul{margin:1em 0}
18
+ h1,h2,h3,h4,h5{margin:0;padding:1.5em 0 0}
19
+ h1,h2{padding:.75em 0}
20
+ h1{font:400 3em Verdana,sans-serif;color:#000;margin-bottom:1em}
21
+ h2{font-size:2.25em;color:#ff2a00}
22
+ h3{font-size:1.75em;color:#4dc71f}
23
+ h4{font-size:1.75em;color:#ff2a00;padding-bottom:.75em}
24
+ h5{font-size:1.2em;margin-bottom:.4em}
25
+ h6{font-size:1.1em;margin-bottom:0.8em;padding:0.5em 0}
26
+ dd{padding-top:.35em}
27
+ dt{padding-top:.5em}
28
+ b{font-weight:700}
29
+ dt b{font-size:1.3em}
30
+ a,a:visited{color:#ff2a00;text-decoration:none}
31
+ a:active,a:hover{outline:0;text-decoration:underline}
32
+ .nav a,.nav b,.nav a:visited{display:block;color:#ff2a00;font-weight:700; margin-top:15px}
33
+ .nav b{color:#4dc71f;margin-top:20px;cursor:default;width:auto}
34
+ ul{list-style-type:none;padding:0 0 0 20px}
35
+ .nav ul{line-height:14px;padding-left:0;margin:5px 0 0}
36
+ .nav ul a,.nav ul a:visited,span{display:inline;color:#000;font-family:Verdana,Geneva,sans-serif;
37
+ font-size:11px;font-weight:400;margin:0}
38
+ .inset,ul.inset{margin-left:20px}
39
+ .inset{font-size:.9em}
40
+ .nav li{width:auto;margin:0 0 3px}
41
+ .alias{font-style:italic;margin-left:20px}
42
+ table{border-collapse:collapse;border-spacing:0;border:2px solid #a7dbd8;margin:1.75em 0;padding:0}
43
+ td,th{text-align:left;margin:0;padding:2px 5px;border:1px dotted #a7dbd8}
44
+ th{border-top:2px solid #a7dbd8;border-bottom:2px solid #a7dbd8;color:#ff2a00}
45
+ code,pre{font-family:Consolas, monaco, monospace;font-weight:400}
46
+ pre{background:#f5f5f5;white-space:pre-wrap;word-wrap:break-word;border-left:5px solid #abef98;
47
+ padding:1px 0 1px 15px;margin:1.2em 0}
48
+ code,.nav-title{color:#ff2a00}
49
+ .end{margin-bottom:25px}
50
+ .centre{text-align:center}
51
+ .error-table{font-size:13px;width:100%}
52
+ #faq{margin:3em 0 0}
53
+ li span{float:right;margin-right:10px;color:#c0c0c0}
54
+ #js{font:inherit;color:#4dc71f}
55
+ </style>
56
+ </head>
57
+ <body>
58
+
59
+ <div class="nav">
60
+
61
+ <b>v9.0.2</b>
62
+
63
+ <a class='nav-title' href="#">API</a>
64
+
65
+ <b> CONSTRUCTOR </b>
66
+ <ul>
67
+ <li><a href="#bignumber">BigNumber</a></li>
68
+ </ul>
69
+
70
+ <a href="#methods">Methods</a>
71
+ <ul>
72
+ <li><a href="#clone">clone</a></li>
73
+ <li><a href="#config" >config</a><span>set</span></li>
74
+ <li>
75
+ <ul class="inset">
76
+ <li><a href="#decimal-places">DECIMAL_PLACES</a></li>
77
+ <li><a href="#rounding-mode" >ROUNDING_MODE</a></li>
78
+ <li><a href="#exponential-at">EXPONENTIAL_AT</a></li>
79
+ <li><a href="#range" >RANGE</a></li>
80
+ <li><a href="#crypto" >CRYPTO</a></li>
81
+ <li><a href="#modulo-mode" >MODULO_MODE</a></li>
82
+ <li><a href="#pow-precision" >POW_PRECISION</a></li>
83
+ <li><a href="#format" >FORMAT</a></li>
84
+ <li><a href="#alphabet" >ALPHABET</a></li>
85
+ </ul>
86
+ </li>
87
+ <li><a href="#isBigNumber">isBigNumber</a></li>
88
+ <li><a href="#max" >maximum</a><span>max</span></li>
89
+ <li><a href="#min" >minimum</a><span>min</span></li>
90
+ <li><a href="#random" >random</a></li>
91
+ <li><a href="#sum" >sum</a></li>
92
+ </ul>
93
+
94
+ <a href="#constructor-properties">Properties</a>
95
+ <ul>
96
+ <li><a href="#round-up" >ROUND_UP</a></li>
97
+ <li><a href="#round-down" >ROUND_DOWN</a></li>
98
+ <li><a href="#round-ceil" >ROUND_CEIL</a></li>
99
+ <li><a href="#round-floor" >ROUND_FLOOR</a></li>
100
+ <li><a href="#round-half-up" >ROUND_HALF_UP</a></li>
101
+ <li><a href="#round-half-down" >ROUND_HALF_DOWN</a></li>
102
+ <li><a href="#round-half-even" >ROUND_HALF_EVEN</a></li>
103
+ <li><a href="#round-half-ceil" >ROUND_HALF_CEIL</a></li>
104
+ <li><a href="#round-half-floor">ROUND_HALF_FLOOR</a></li>
105
+ <li><a href="#debug" >DEBUG</a></li>
106
+ </ul>
107
+
108
+ <b> INSTANCE </b>
109
+
110
+ <a href="#prototype-methods">Methods</a>
111
+ <ul>
112
+ <li><a href="#abs" >absoluteValue </a><span>abs</span> </li>
113
+ <li><a href="#cmp" >comparedTo </a> </li>
114
+ <li><a href="#dp" >decimalPlaces </a><span>dp</span> </li>
115
+ <li><a href="#div" >dividedBy </a><span>div</span> </li>
116
+ <li><a href="#divInt" >dividedToIntegerBy </a><span>idiv</span> </li>
117
+ <li><a href="#pow" >exponentiatedBy </a><span>pow</span> </li>
118
+ <li><a href="#int" >integerValue </a> </li>
119
+ <li><a href="#eq" >isEqualTo </a><span>eq</span> </li>
120
+ <li><a href="#isF" >isFinite </a> </li>
121
+ <li><a href="#gt" >isGreaterThan </a><span>gt</span> </li>
122
+ <li><a href="#gte" >isGreaterThanOrEqualTo</a><span>gte</span> </li>
123
+ <li><a href="#isInt" >isInteger </a> </li>
124
+ <li><a href="#lt" >isLessThan </a><span>lt</span> </li>
125
+ <li><a href="#lte" >isLessThanOrEqualTo </a><span>lte</span> </li>
126
+ <li><a href="#isNaN" >isNaN </a> </li>
127
+ <li><a href="#isNeg" >isNegative </a> </li>
128
+ <li><a href="#isPos" >isPositive </a> </li>
129
+ <li><a href="#isZ" >isZero </a> </li>
130
+ <li><a href="#minus" >minus </a> </li>
131
+ <li><a href="#mod" >modulo </a><span>mod</span> </li>
132
+ <li><a href="#times" >multipliedBy </a><span>times</span></li>
133
+ <li><a href="#neg" >negated </a> </li>
134
+ <li><a href="#plus" >plus </a> </li>
135
+ <li><a href="#sd" >precision </a><span>sd</span> </li>
136
+ <li><a href="#shift" >shiftedBy </a> </li>
137
+ <li><a href="#sqrt" >squareRoot </a><span>sqrt</span> </li>
138
+ <li><a href="#toE" >toExponential </a> </li>
139
+ <li><a href="#toFix" >toFixed </a> </li>
140
+ <li><a href="#toFor" >toFormat </a> </li>
141
+ <li><a href="#toFr" >toFraction </a> </li>
142
+ <li><a href="#toJSON" >toJSON </a> </li>
143
+ <li><a href="#toN" >toNumber </a> </li>
144
+ <li><a href="#toP" >toPrecision </a> </li>
145
+ <li><a href="#toS" >toString </a> </li>
146
+ <li><a href="#valueOf">valueOf </a> </li>
147
+ </ul>
148
+
149
+ <a href="#instance-properties">Properties</a>
150
+ <ul>
151
+ <li><a href="#coefficient">c: coefficient</a></li>
152
+ <li><a href="#exponent" >e: exponent</a></li>
153
+ <li><a href="#sign" >s: sign</a></li>
154
+ </ul>
155
+
156
+ <a href="#zero-nan-infinity">Zero, NaN &amp; Infinity</a>
157
+ <a href="#Errors">Errors</a>
158
+ <a href="#type-coercion">Type coercion</a>
159
+ <a class='end' href="#faq">FAQ</a>
160
+
161
+ </div>
162
+
163
+ <div class="container">
164
+
165
+ <h1>bignumber<span id='js'>.js</span></h1>
166
+
167
+ <p>A JavaScript library for arbitrary-precision arithmetic.</p>
168
+ <p><a href="https://github.com/MikeMcl/bignumber.js">Hosted on GitHub</a>. </p>
169
+
170
+ <h2>API</h2>
171
+
172
+ <p>
173
+ See the <a href='https://github.com/MikeMcl/bignumber.js'>README</a> on GitHub for a
174
+ quick-start introduction.
175
+ </p>
176
+ <p>
177
+ In all examples below, <code>var</code> and semicolons are not shown, and if a commented-out
178
+ value is in quotes it means <code>toString</code> has been called on the preceding expression.
179
+ </p>
180
+
181
+
182
+ <h3>CONSTRUCTOR</h3>
183
+
184
+
185
+ <h5 id="bignumber">
186
+ BigNumber<code class='inset'>BigNumber(n [, base]) <i>&rArr; BigNumber</i></code>
187
+ </h5>
188
+ <p>
189
+ <code>n</code>: <i>number|string|BigNumber</i><br />
190
+ <code>base</code>: <i>number</i>: integer, <code>2</code> to <code>36</code> inclusive. (See
191
+ <a href='#alphabet'><code>ALPHABET</code></a> to extend this range).
192
+ </p>
193
+ <p>
194
+ Returns a new instance of a BigNumber object with value <code>n</code>, where <code>n</code>
195
+ is a numeric value in the specified <code>base</code>, or base <code>10</code> if
196
+ <code>base</code> is omitted or is <code>null</code> or <code>undefined</code>.
197
+ </p>
198
+ <p>
199
+ Note that the BigNnumber constructor accepts an <code>n</code> of type <em>number</em> purely
200
+ as a convenience so that string quotes don't have to be typed when entering literal values,
201
+ and that it is the <code>toString</code> value of <code>n</code> that is used rather than its
202
+ underlying binary floating point value converted to decimal.
203
+ </p>
204
+ <pre>
205
+ x = new BigNumber(123.4567) // '123.4567'
206
+ // 'new' is optional
207
+ y = BigNumber(x) // '123.4567'</pre>
208
+ <p>
209
+ If <code>n</code> is a base <code>10</code> value it can be in normal or exponential notation.
210
+ Values in other bases must be in normal notation. Values in any base can have fraction digits,
211
+ i.e. digits after the decimal point.
212
+ </p>
213
+ <pre>
214
+ new BigNumber(43210) // '43210'
215
+ new BigNumber('4.321e+4') // '43210'
216
+ new BigNumber('-735.0918e-430') // '-7.350918e-428'
217
+ new BigNumber('123412421.234324', 5) // '607236.557696'</pre>
218
+ <p>
219
+ Signed <code>0</code>, signed <code>Infinity</code> and <code>NaN</code> are supported.
220
+ </p>
221
+ <pre>
222
+ new BigNumber('-Infinity') // '-Infinity'
223
+ new BigNumber(NaN) // 'NaN'
224
+ new BigNumber(-0) // '0'
225
+ new BigNumber('.5') // '0.5'
226
+ new BigNumber('+2') // '2'</pre>
227
+ <p>
228
+ String values in hexadecimal literal form, e.g. <code>'0xff'</code> or <code>'0xFF'</code>
229
+ (but not <code>'0xfF'</code>), are valid, as are string values with the octal and binary
230
+ prefixs <code>'0o'</code> and <code>'0b'</code>. String values in octal literal form without
231
+ the prefix will be interpreted as decimals, e.g. <code>'011'</code> is interpreted as 11, not 9.
232
+ </p>
233
+ <pre>
234
+ new BigNumber(-10110100.1, 2) // '-180.5'
235
+ new BigNumber('-0b10110100.1') // '-180.5'
236
+ new BigNumber('ff.8', 16) // '255.5'
237
+ new BigNumber('0xff.8') // '255.5'</pre>
238
+ <p>
239
+ If a base is specified, <code>n</code> is rounded according to the current
240
+ <a href='#decimal-places'><code>DECIMAL_PLACES</code></a> and
241
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> settings. <em>This includes base
242
+ <code>10</code> so don't include a <code>base</code> parameter for decimal values unless
243
+ this behaviour is wanted.</em>
244
+ </p>
245
+ <pre>BigNumber.config({ DECIMAL_PLACES: 5 })
246
+ new BigNumber(1.23456789) // '1.23456789'
247
+ new BigNumber(1.23456789, 10) // '1.23457'</pre>
248
+ <p>An error is thrown if <code>base</code> is invalid. See <a href='#Errors'>Errors</a>.</p>
249
+ <p>
250
+ There is no limit to the number of digits of a value of type <em>string</em> (other than
251
+ that of JavaScript's maximum array size). See <a href='#range'><code>RANGE</code></a> to set
252
+ the maximum and minimum possible exponent value of a BigNumber.
253
+ </p>
254
+ <pre>
255
+ new BigNumber('5032485723458348569331745.33434346346912144534543')
256
+ new BigNumber('4.321e10000000')</pre>
257
+ <p>BigNumber <code>NaN</code> is returned if <code>n</code> is invalid
258
+ (unless <code>BigNumber.DEBUG</code> is <code>true</code>, see below).</p>
259
+ <pre>
260
+ new BigNumber('.1*') // 'NaN'
261
+ new BigNumber('blurgh') // 'NaN'
262
+ new BigNumber(9, 2) // 'NaN'</pre>
263
+ <p>
264
+ To aid in debugging, if <code>BigNumber.DEBUG</code> is <code>true</code> then an error will
265
+ be thrown on an invalid <code>n</code>. An error will also be thrown if <code>n</code> is of
266
+ type <em>number</em> and has more than <code>15</code> significant digits, as calling
267
+ <code><a href='#toS'>toString</a></code> or <code><a href='#valueOf'>valueOf</a></code> on
268
+ these numbers may not result in the intended value.
269
+ </p>
270
+ <pre>
271
+ console.log(823456789123456.3) // 823456789123456.2
272
+ new BigNumber(823456789123456.3) // '823456789123456.2'
273
+ BigNumber.DEBUG = true
274
+ // '[BigNumber Error] Number primitive has more than 15 significant digits'
275
+ new BigNumber(823456789123456.3)
276
+ // '[BigNumber Error] Not a base 2 number'
277
+ new BigNumber(9, 2)</pre>
278
+ <p>
279
+ A BigNumber can also be created from an object literal.
280
+ Use <code><a href='#isBigNumber'>isBigNumber</a></code> to check that it is well-formed.
281
+ </p>
282
+ <pre>new BigNumber({ s: 1, e: 2, c: [ 777, 12300000000000 ], _isBigNumber: true }) // '777.123'</pre>
283
+
284
+
285
+
286
+
287
+ <h4 id="methods">Methods</h4>
288
+ <p>The static methods of a BigNumber constructor.</p>
289
+
290
+
291
+
292
+
293
+ <h5 id="clone">clone
294
+ <code class='inset'>.clone([object]) <i>&rArr; BigNumber constructor</i></code>
295
+ </h5>
296
+ <p><code>object</code>: <i>object</i></p>
297
+ <p>
298
+ Returns a new independent BigNumber constructor with configuration as described by
299
+ <code>object</code> (see <a href='#config'><code>config</code></a>), or with the default
300
+ configuration if <code>object</code> is <code>null</code> or <code>undefined</code>.
301
+ </p>
302
+ <p>
303
+ Throws if <code>object</code> is not an object. See <a href='#Errors'>Errors</a>.
304
+ </p>
305
+ <pre>BigNumber.config({ DECIMAL_PLACES: 5 })
306
+ BN = BigNumber.clone({ DECIMAL_PLACES: 9 })
307
+
308
+ x = new BigNumber(1)
309
+ y = new BN(1)
310
+
311
+ x.div(3) // 0.33333
312
+ y.div(3) // 0.333333333
313
+
314
+ // BN = BigNumber.clone({ DECIMAL_PLACES: 9 }) is equivalent to:
315
+ BN = BigNumber.clone()
316
+ BN.config({ DECIMAL_PLACES: 9 })</pre>
317
+
318
+
319
+
320
+ <h5 id="config">config<code class='inset'>set([object]) <i>&rArr; object</i></code></h5>
321
+ <p>
322
+ <code>object</code>: <i>object</i>: an object that contains some or all of the following
323
+ properties.
324
+ </p>
325
+ <p>Configures the settings for this particular BigNumber constructor.</p>
326
+
327
+ <dl class='inset'>
328
+ <dt id="decimal-places"><code><b>DECIMAL_PLACES</b></code></dt>
329
+ <dd>
330
+ <i>number</i>: integer, <code>0</code> to <code>1e+9</code> inclusive<br />
331
+ Default value: <code>20</code>
332
+ </dd>
333
+ <dd>
334
+ The <em>maximum</em> number of decimal places of the results of operations involving
335
+ division, i.e. division, square root and base conversion operations, and power operations
336
+ with negative exponents.<br />
337
+ </dd>
338
+ <dd>
339
+ <pre>BigNumber.config({ DECIMAL_PLACES: 5 })
340
+ BigNumber.set({ DECIMAL_PLACES: 5 }) // equivalent</pre>
341
+ </dd>
342
+
343
+
344
+
345
+ <dt id="rounding-mode"><code><b>ROUNDING_MODE</b></code></dt>
346
+ <dd>
347
+ <i>number</i>: integer, <code>0</code> to <code>8</code> inclusive<br />
348
+ Default value: <code>4</code> <a href="#round-half-up">(<code>ROUND_HALF_UP</code>)</a>
349
+ </dd>
350
+ <dd>
351
+ The rounding mode used in the above operations and the default rounding mode of
352
+ <a href='#dp'><code>decimalPlaces</code></a>,
353
+ <a href='#sd'><code>precision</code></a>,
354
+ <a href='#toE'><code>toExponential</code></a>,
355
+ <a href='#toFix'><code>toFixed</code></a>,
356
+ <a href='#toFor'><code>toFormat</code></a> and
357
+ <a href='#toP'><code>toPrecision</code></a>.
358
+ </dd>
359
+ <dd>The modes are available as enumerated properties of the BigNumber constructor.</dd>
360
+ <dd>
361
+ <pre>BigNumber.config({ ROUNDING_MODE: 0 })
362
+ BigNumber.set({ ROUNDING_MODE: BigNumber.ROUND_UP }) // equivalent</pre>
363
+ </dd>
364
+
365
+
366
+
367
+ <dt id="exponential-at"><code><b>EXPONENTIAL_AT</b></code></dt>
368
+ <dd>
369
+ <i>number</i>: integer, magnitude <code>0</code> to <code>1e+9</code> inclusive, or
370
+ <br />
371
+ <i>number</i>[]: [ integer <code>-1e+9</code> to <code>0</code> inclusive, integer
372
+ <code>0</code> to <code>1e+9</code> inclusive ]<br />
373
+ Default value: <code>[-7, 20]</code>
374
+ </dd>
375
+ <dd>
376
+ The exponent value(s) at which <code>toString</code> returns exponential notation.
377
+ </dd>
378
+ <dd>
379
+ If a single number is assigned, the value is the exponent magnitude.<br />
380
+ If an array of two numbers is assigned then the first number is the negative exponent
381
+ value at and beneath which exponential notation is used, and the second number is the
382
+ positive exponent value at and above which the same.
383
+ </dd>
384
+ <dd>
385
+ For example, to emulate JavaScript numbers in terms of the exponent values at which they
386
+ begin to use exponential notation, use <code>[-7, 20]</code>.
387
+ </dd>
388
+ <dd>
389
+ <pre>BigNumber.config({ EXPONENTIAL_AT: 2 })
390
+ new BigNumber(12.3) // '12.3' e is only 1
391
+ new BigNumber(123) // '1.23e+2'
392
+ new BigNumber(0.123) // '0.123' e is only -1
393
+ new BigNumber(0.0123) // '1.23e-2'
394
+
395
+ BigNumber.config({ EXPONENTIAL_AT: [-7, 20] })
396
+ new BigNumber(123456789) // '123456789' e is only 8
397
+ new BigNumber(0.000000123) // '1.23e-7'
398
+
399
+ // Almost never return exponential notation:
400
+ BigNumber.config({ EXPONENTIAL_AT: 1e+9 })
401
+
402
+ // Always return exponential notation:
403
+ BigNumber.config({ EXPONENTIAL_AT: 0 })</pre>
404
+ </dd>
405
+ <dd>
406
+ Regardless of the value of <code>EXPONENTIAL_AT</code>, the <code>toFixed</code> method
407
+ will always return a value in normal notation and the <code>toExponential</code> method
408
+ will always return a value in exponential form.
409
+ </dd>
410
+ <dd>
411
+ Calling <code>toString</code> with a base argument, e.g. <code>toString(10)</code>, will
412
+ also always return normal notation.
413
+ </dd>
414
+
415
+
416
+
417
+ <dt id="range"><code><b>RANGE</b></code></dt>
418
+ <dd>
419
+ <i>number</i>: integer, magnitude <code>1</code> to <code>1e+9</code> inclusive, or
420
+ <br />
421
+ <i>number</i>[]: [ integer <code>-1e+9</code> to <code>-1</code> inclusive, integer
422
+ <code>1</code> to <code>1e+9</code> inclusive ]<br />
423
+ Default value: <code>[-1e+9, 1e+9]</code>
424
+ </dd>
425
+ <dd>
426
+ The exponent value(s) beyond which overflow to <code>Infinity</code> and underflow to
427
+ zero occurs.
428
+ </dd>
429
+ <dd>
430
+ If a single number is assigned, it is the maximum exponent magnitude: values wth a
431
+ positive exponent of greater magnitude become <code>Infinity</code> and those with a
432
+ negative exponent of greater magnitude become zero.
433
+ <dd>
434
+ If an array of two numbers is assigned then the first number is the negative exponent
435
+ limit and the second number is the positive exponent limit.
436
+ </dd>
437
+ <dd>
438
+ For example, to emulate JavaScript numbers in terms of the exponent values at which they
439
+ become zero and <code>Infinity</code>, use <code>[-324, 308]</code>.
440
+ </dd>
441
+ <dd>
442
+ <pre>BigNumber.config({ RANGE: 500 })
443
+ BigNumber.config().RANGE // [ -500, 500 ]
444
+ new BigNumber('9.999e499') // '9.999e+499'
445
+ new BigNumber('1e500') // 'Infinity'
446
+ new BigNumber('1e-499') // '1e-499'
447
+ new BigNumber('1e-500') // '0'
448
+
449
+ BigNumber.config({ RANGE: [-3, 4] })
450
+ new BigNumber(99999) // '99999' e is only 4
451
+ new BigNumber(100000) // 'Infinity' e is 5
452
+ new BigNumber(0.001) // '0.01' e is only -3
453
+ new BigNumber(0.0001) // '0' e is -4</pre>
454
+ </dd>
455
+ <dd>
456
+ The largest possible magnitude of a finite BigNumber is
457
+ <code>9.999...e+1000000000</code>.<br />
458
+ The smallest possible magnitude of a non-zero BigNumber is <code>1e-1000000000</code>.
459
+ </dd>
460
+
461
+
462
+
463
+ <dt id="crypto"><code><b>CRYPTO</b></code></dt>
464
+ <dd>
465
+ <i>boolean</i>: <code>true</code> or <code>false</code>.<br />
466
+ Default value: <code>false</code>
467
+ </dd>
468
+ <dd>
469
+ The value that determines whether cryptographically-secure pseudo-random number
470
+ generation is used.
471
+ </dd>
472
+ <dd>
473
+ If <code>CRYPTO</code> is set to <code>true</code> then the
474
+ <a href='#random'><code>random</code></a> method will generate random digits using
475
+ <code>crypto.getRandomValues</code> in browsers that support it, or
476
+ <code>crypto.randomBytes</code> if using Node.js.
477
+ </dd>
478
+ <dd>
479
+ If neither function is supported by the host environment then attempting to set
480
+ <code>CRYPTO</code> to <code>true</code> will fail and an exception will be thrown.
481
+ </dd>
482
+ <dd>
483
+ If <code>CRYPTO</code> is <code>false</code> then the source of randomness used will be
484
+ <code>Math.random</code> (which is assumed to generate at least <code>30</code> bits of
485
+ randomness).
486
+ </dd>
487
+ <dd>See <a href='#random'><code>random</code></a>.</dd>
488
+ <dd>
489
+ <pre>
490
+ // Node.js
491
+ const crypto = require('crypto'); // CommonJS
492
+ import * as crypto from 'crypto'; // ES module
493
+
494
+ global.crypto = crypto;
495
+
496
+ BigNumber.config({ CRYPTO: true })
497
+ BigNumber.config().CRYPTO // true
498
+ BigNumber.random() // 0.54340758610486147524</pre>
499
+ </dd>
500
+
501
+
502
+
503
+ <dt id="modulo-mode"><code><b>MODULO_MODE</b></code></dt>
504
+ <dd>
505
+ <i>number</i>: integer, <code>0</code> to <code>9</code> inclusive<br />
506
+ Default value: <code>1</code> (<a href="#round-down"><code>ROUND_DOWN</code></a>)
507
+ </dd>
508
+ <dd>The modulo mode used when calculating the modulus: <code>a mod n</code>.</dd>
509
+ <dd>
510
+ The quotient, <code>q = a / n</code>, is calculated according to the
511
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> that corresponds to the chosen
512
+ <code>MODULO_MODE</code>.
513
+ </dd>
514
+ <dd>The remainder, <code>r</code>, is calculated as: <code>r = a - n * q</code>.</dd>
515
+ <dd>
516
+ The modes that are most commonly used for the modulus/remainder operation are shown in
517
+ the following table. Although the other rounding modes can be used, they may not give
518
+ useful results.
519
+ </dd>
520
+ <dd>
521
+ <table>
522
+ <tr><th>Property</th><th>Value</th><th>Description</th></tr>
523
+ <tr>
524
+ <td><b>ROUND_UP</b></td><td class='centre'>0</td>
525
+ <td>
526
+ The remainder is positive if the dividend is negative, otherwise it is negative.
527
+ </td>
528
+ </tr>
529
+ <tr>
530
+ <td><b>ROUND_DOWN</b></td><td class='centre'>1</td>
531
+ <td>
532
+ The remainder has the same sign as the dividend.<br />
533
+ This uses 'truncating division' and matches the behaviour of JavaScript's
534
+ remainder operator <code>%</code>.
535
+ </td>
536
+ </tr>
537
+ <tr>
538
+ <td><b>ROUND_FLOOR</b></td><td class='centre'>3</td>
539
+ <td>
540
+ The remainder has the same sign as the divisor.<br />
541
+ This matches Python's <code>%</code> operator.
542
+ </td>
543
+ </tr>
544
+ <tr>
545
+ <td><b>ROUND_HALF_EVEN</b></td><td class='centre'>6</td>
546
+ <td>The <i>IEEE 754</i> remainder function.</td>
547
+ </tr>
548
+ <tr>
549
+ <td><b>EUCLID</b></td><td class='centre'>9</td>
550
+ <td>
551
+ The remainder is always positive. Euclidian division: <br />
552
+ <code>q = sign(n) * floor(a / abs(n))</code>
553
+ </td>
554
+ </tr>
555
+ </table>
556
+ </dd>
557
+ <dd>
558
+ The rounding/modulo modes are available as enumerated properties of the BigNumber
559
+ constructor.
560
+ </dd>
561
+ <dd>See <a href='#mod'><code>modulo</code></a>.</dd>
562
+ <dd>
563
+ <pre>BigNumber.config({ MODULO_MODE: BigNumber.EUCLID })
564
+ BigNumber.config({ MODULO_MODE: 9 }) // equivalent</pre>
565
+ </dd>
566
+
567
+
568
+
569
+ <dt id="pow-precision"><code><b>POW_PRECISION</b></code></dt>
570
+ <dd>
571
+ <i>number</i>: integer, <code>0</code> to <code>1e+9</code> inclusive.<br />
572
+ Default value: <code>0</code>
573
+ </dd>
574
+ <dd>
575
+ The <i>maximum</i> precision, i.e. number of significant digits, of the result of the power
576
+ operation (unless a modulus is specified).
577
+ </dd>
578
+ <dd>If set to <code>0</code>, the number of significant digits will not be limited.</dd>
579
+ <dd>See <a href='#pow'><code>exponentiatedBy</code></a>.</dd>
580
+ <dd><pre>BigNumber.config({ POW_PRECISION: 100 })</pre></dd>
581
+
582
+
583
+
584
+ <dt id="format"><code><b>FORMAT</b></code></dt>
585
+ <dd><i>object</i></dd>
586
+ <dd>
587
+ The <code>FORMAT</code> object configures the format of the string returned by the
588
+ <a href='#toFor'><code>toFormat</code></a> method.
589
+ </dd>
590
+ <dd>
591
+ The example below shows the properties of the <code>FORMAT</code> object that are
592
+ recognised, and their default values.
593
+ </dd>
594
+ <dd>
595
+ Unlike the other configuration properties, the values of the properties of the
596
+ <code>FORMAT</code> object will not be checked for validity. The existing
597
+ <code>FORMAT</code> object will simply be replaced by the object that is passed in.
598
+ The object can include any number of the properties shown below.
599
+ </dd>
600
+ <dd>See <a href='#toFor'><code>toFormat</code></a> for examples of usage.</dd>
601
+ <dd>
602
+ <pre>
603
+ BigNumber.config({
604
+ FORMAT: {
605
+ // string to prepend
606
+ prefix: '',
607
+ // decimal separator
608
+ decimalSeparator: '.',
609
+ // grouping separator of the integer part
610
+ groupSeparator: ',',
611
+ // primary grouping size of the integer part
612
+ groupSize: 3,
613
+ // secondary grouping size of the integer part
614
+ secondaryGroupSize: 0,
615
+ // grouping separator of the fraction part
616
+ fractionGroupSeparator: ' ',
617
+ // grouping size of the fraction part
618
+ fractionGroupSize: 0,
619
+ // string to append
620
+ suffix: ''
621
+ }
622
+ });</pre>
623
+ </dd>
624
+
625
+
626
+
627
+ <dt id="alphabet"><code><b>ALPHABET</b></code></dt>
628
+ <dd>
629
+ <i>string</i><br />
630
+ Default value: <code>'0123456789abcdefghijklmnopqrstuvwxyz'</code>
631
+ </dd>
632
+ <dd>
633
+ The alphabet used for base conversion. The length of the alphabet corresponds to the
634
+ maximum value of the base argument that can be passed to the
635
+ <a href='#bignumber'><code>BigNumber</code></a> constructor or
636
+ <a href='#toS'><code>toString</code></a>.
637
+ </dd>
638
+ <dd>
639
+ There is no maximum length for the alphabet, but it must be at least 2 characters long, and
640
+ it must not contain whitespace or a repeated character, or the sign indicators
641
+ <code>'+'</code> and <code>'-'</code>, or the decimal separator <code>'.'</code>.
642
+ </dd>
643
+ <dd>
644
+ <pre>// duodecimal (base 12)
645
+ BigNumber.config({ ALPHABET: '0123456789TE' })
646
+ x = new BigNumber('T', 12)
647
+ x.toString() // '10'
648
+ x.toString(12) // 'T'</pre>
649
+ </dd>
650
+
651
+
652
+
653
+ </dl>
654
+ <br /><br />
655
+ <p>Returns an object with the above properties and their current values.</p>
656
+ <p>
657
+ Throws if <code>object</code> is not an object, or if an invalid value is assigned to
658
+ one or more of the above properties. See <a href='#Errors'>Errors</a>.
659
+ </p>
660
+ <pre>
661
+ BigNumber.config({
662
+ DECIMAL_PLACES: 40,
663
+ ROUNDING_MODE: BigNumber.ROUND_HALF_CEIL,
664
+ EXPONENTIAL_AT: [-10, 20],
665
+ RANGE: [-500, 500],
666
+ CRYPTO: true,
667
+ MODULO_MODE: BigNumber.ROUND_FLOOR,
668
+ POW_PRECISION: 80,
669
+ FORMAT: {
670
+ groupSize: 3,
671
+ groupSeparator: ' ',
672
+ decimalSeparator: ','
673
+ },
674
+ ALPHABET: '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'
675
+ });
676
+
677
+ obj = BigNumber.config();
678
+ obj.DECIMAL_PLACES // 40
679
+ obj.RANGE // [-500, 500]</pre>
680
+
681
+
682
+
683
+ <h5 id="isBigNumber">
684
+ isBigNumber<code class='inset'>.isBigNumber(value) <i>&rArr; boolean</i></code>
685
+ </h5>
686
+ <p><code>value</code>: <i>any</i><br /></p>
687
+ <p>
688
+ Returns <code>true</code> if <code>value</code> is a BigNumber instance, otherwise returns
689
+ <code>false</code>.
690
+ </p>
691
+ <pre>x = 42
692
+ y = new BigNumber(x)
693
+
694
+ BigNumber.isBigNumber(x) // false
695
+ y instanceof BigNumber // true
696
+ BigNumber.isBigNumber(y) // true
697
+
698
+ BN = BigNumber.clone();
699
+ z = new BN(x)
700
+ z instanceof BigNumber // false
701
+ BigNumber.isBigNumber(z) // true</pre>
702
+ <p>
703
+ If <code>value</code> is a BigNumber instance and <code>BigNumber.DEBUG</code> is <code>true</code>,
704
+ then this method will also check if <code>value</code> is well-formed, and throw if it is not.
705
+ See <a href='#Errors'>Errors</a>.
706
+ </p>
707
+ <p>
708
+ The check can be useful if creating a BigNumber from an object literal.
709
+ See <a href='#bignumber'>BigNumber</a>.
710
+ </p>
711
+ <pre>
712
+ x = new BigNumber(10)
713
+
714
+ // Change x.c to an illegitimate value.
715
+ x.c = NaN
716
+
717
+ BigNumber.DEBUG = false
718
+
719
+ // No error.
720
+ BigNumber.isBigNumber(x) // true
721
+
722
+ BigNumber.DEBUG = true
723
+
724
+ // Error.
725
+ BigNumber.isBigNumber(x) // '[BigNumber Error] Invalid BigNumber'</pre>
726
+
727
+
728
+
729
+ <h5 id="max">maximum<code class='inset'>.max(n...) <i>&rArr; BigNumber</i></code></h5>
730
+ <p>
731
+ <code>n</code>: <i>number|string|BigNumber</i><br />
732
+ <i>See <code><a href="#bignumber">BigNumber</a></code> for further parameter details.</i>
733
+ </p>
734
+ <p>
735
+ Returns a BigNumber whose value is the maximum of the arguments.
736
+ </p>
737
+ <p>The return value is always exact and unrounded.</p>
738
+ <pre>x = new BigNumber('3257869345.0378653')
739
+ BigNumber.maximum(4e9, x, '123456789.9') // '4000000000'
740
+
741
+ arr = [12, '13', new BigNumber(14)]
742
+ BigNumber.max.apply(null, arr) // '14'</pre>
743
+
744
+
745
+
746
+ <h5 id="min">minimum<code class='inset'>.min(n...) <i>&rArr; BigNumber</i></code></h5>
747
+ <p>
748
+ <code>n</code>: <i>number|string|BigNumber</i><br />
749
+ <i>See <code><a href="#bignumber">BigNumber</a></code> for further parameter details.</i>
750
+ </p>
751
+ <p>
752
+ Returns a BigNumber whose value is the minimum of the arguments.
753
+ </p>
754
+ <p>The return value is always exact and unrounded.</p>
755
+ <pre>x = new BigNumber('3257869345.0378653')
756
+ BigNumber.minimum(4e9, x, '123456789.9') // '123456789.9'
757
+
758
+ arr = [2, new BigNumber(-14), '-15.9999', -12]
759
+ BigNumber.min.apply(null, arr) // '-15.9999'</pre>
760
+
761
+
762
+
763
+ <h5 id="random">
764
+ random<code class='inset'>.random([dp]) <i>&rArr; BigNumber</i></code>
765
+ </h5>
766
+ <p><code>dp</code>: <i>number</i>: integer, <code>0</code> to <code>1e+9</code> inclusive</p>
767
+ <p>
768
+ Returns a new BigNumber with a pseudo-random value equal to or greater than <code>0</code> and
769
+ less than <code>1</code>.
770
+ </p>
771
+ <p>
772
+ The return value will have <code>dp</code> decimal places (or less if trailing zeros are
773
+ produced).<br />
774
+ If <code>dp</code> is omitted then the number of decimal places will default to the current
775
+ <a href='#decimal-places'><code>DECIMAL_PLACES</code></a> setting.
776
+ </p>
777
+ <p>
778
+ Depending on the value of this BigNumber constructor's
779
+ <a href='#crypto'><code>CRYPTO</code></a> setting and the support for the
780
+ <code>crypto</code> object in the host environment, the random digits of the return value are
781
+ generated by either <code>Math.random</code> (fastest), <code>crypto.getRandomValues</code>
782
+ (Web Cryptography API in recent browsers) or <code>crypto.randomBytes</code> (Node.js).
783
+ </p>
784
+ <p>
785
+ To be able to set <a href='#crypto'><code>CRYPTO</code></a> to <code>true</code> when using
786
+ Node.js, the <code>crypto</code> object must be available globally:
787
+ </p>
788
+ <pre>// Node.js
789
+ const crypto = require('crypto'); // CommonJS
790
+ import * as crypto from 'crypto'; // ES module
791
+ global.crypto = crypto;</pre>
792
+ <p>
793
+ If <a href='#crypto'><code>CRYPTO</code></a> is <code>true</code>, i.e. one of the
794
+ <code>crypto</code> methods is to be used, the value of a returned BigNumber should be
795
+ cryptographically-secure and statistically indistinguishable from a random value.
796
+ </p>
797
+ <p>
798
+ Throws if <code>dp</code> is invalid. See <a href='#Errors'>Errors</a>.
799
+ </p>
800
+ <pre>BigNumber.config({ DECIMAL_PLACES: 10 })
801
+ BigNumber.random() // '0.4117936847'
802
+ BigNumber.random(20) // '0.78193327636914089009'</pre>
803
+
804
+
805
+
806
+ <h5 id="sum">sum<code class='inset'>.sum(n...) <i>&rArr; BigNumber</i></code></h5>
807
+ <p>
808
+ <code>n</code>: <i>number|string|BigNumber</i><br />
809
+ <i>See <code><a href="#bignumber">BigNumber</a></code> for further parameter details.</i>
810
+ </p>
811
+ <p>Returns a BigNumber whose value is the sum of the arguments.</p>
812
+ <p>The return value is always exact and unrounded.</p>
813
+ <pre>x = new BigNumber('3257869345.0378653')
814
+ BigNumber.sum(4e9, x, '123456789.9') // '7381326134.9378653'
815
+
816
+ arr = [2, new BigNumber(14), '15.9999', 12]
817
+ BigNumber.sum.apply(null, arr) // '43.9999'</pre>
818
+
819
+
820
+
821
+ <h4 id="constructor-properties">Properties</h4>
822
+ <p>
823
+ The library's enumerated rounding modes are stored as properties of the constructor.<br />
824
+ (They are not referenced internally by the library itself.)
825
+ </p>
826
+ <p>
827
+ Rounding modes <code>0</code> to <code>6</code> (inclusive) are the same as those of Java's
828
+ BigDecimal class.
829
+ </p>
830
+ <table>
831
+ <tr>
832
+ <th>Property</th>
833
+ <th>Value</th>
834
+ <th>Description</th>
835
+ </tr>
836
+ <tr>
837
+ <td id="round-up"><b>ROUND_UP</b></td>
838
+ <td class='centre'>0</td>
839
+ <td>Rounds away from zero</td>
840
+ </tr>
841
+ <tr>
842
+ <td id="round-down"><b>ROUND_DOWN</b></td>
843
+ <td class='centre'>1</td>
844
+ <td>Rounds towards zero</td>
845
+ </tr>
846
+ <tr>
847
+ <td id="round-ceil"><b>ROUND_CEIL</b></td>
848
+ <td class='centre'>2</td>
849
+ <td>Rounds towards <code>Infinity</code></td>
850
+ </tr>
851
+ <tr>
852
+ <td id="round-floor"><b>ROUND_FLOOR</b></td>
853
+ <td class='centre'>3</td>
854
+ <td>Rounds towards <code>-Infinity</code></td>
855
+ </tr>
856
+ <tr>
857
+ <td id="round-half-up"><b>ROUND_HALF_UP</b></td>
858
+ <td class='centre'>4</td>
859
+ <td>
860
+ Rounds towards nearest neighbour.<br />
861
+ If equidistant, rounds away from zero
862
+ </td>
863
+ </tr>
864
+ <tr>
865
+ <td id="round-half-down"><b>ROUND_HALF_DOWN</b></td>
866
+ <td class='centre'>5</td>
867
+ <td>
868
+ Rounds towards nearest neighbour.<br />
869
+ If equidistant, rounds towards zero
870
+ </td>
871
+ </tr>
872
+ <tr>
873
+ <td id="round-half-even"><b>ROUND_HALF_EVEN</b></td>
874
+ <td class='centre'>6</td>
875
+ <td>
876
+ Rounds towards nearest neighbour.<br />
877
+ If equidistant, rounds towards even neighbour
878
+ </td>
879
+ </tr>
880
+ <tr>
881
+ <td id="round-half-ceil"><b>ROUND_HALF_CEIL</b></td>
882
+ <td class='centre'>7</td>
883
+ <td>
884
+ Rounds towards nearest neighbour.<br />
885
+ If equidistant, rounds towards <code>Infinity</code>
886
+ </td>
887
+ </tr>
888
+ <tr>
889
+ <td id="round-half-floor"><b>ROUND_HALF_FLOOR</b></td>
890
+ <td class='centre'>8</td>
891
+ <td>
892
+ Rounds towards nearest neighbour.<br />
893
+ If equidistant, rounds towards <code>-Infinity</code>
894
+ </td>
895
+ </tr>
896
+ </table>
897
+ <pre>
898
+ BigNumber.config({ ROUNDING_MODE: BigNumber.ROUND_CEIL })
899
+ BigNumber.config({ ROUNDING_MODE: 2 }) // equivalent</pre>
900
+
901
+ <h5 id="debug">DEBUG</h5>
902
+ <p><i>undefined|false|true</i></p>
903
+ <p>
904
+ If <code>BigNumber.DEBUG</code> is set <code>true</code> then an error will be thrown
905
+ if this <a href='#bignumber'>BigNumber</a> constructor receives an invalid value, such as
906
+ a value of type <em>number</em> with more than <code>15</code> significant digits.
907
+ See <a href='#bignumber'>BigNumber</a>.
908
+ </p>
909
+ <p>
910
+ An error will also be thrown if the <code><a href='#isBigNumber'>isBigNumber</a></code>
911
+ method receives a BigNumber that is not well-formed.
912
+ See <code><a href='#isBigNumber'>isBigNumber</a></code>.
913
+ </p>
914
+ <pre>BigNumber.DEBUG = true</pre>
915
+
916
+
917
+ <h3>INSTANCE</h3>
918
+
919
+
920
+ <h4 id="prototype-methods">Methods</h4>
921
+ <p>The methods inherited by a BigNumber instance from its constructor's prototype object.</p>
922
+ <p>A BigNumber is immutable in the sense that it is not changed by its methods. </p>
923
+ <p>
924
+ The treatment of &plusmn;<code>0</code>, &plusmn;<code>Infinity</code> and <code>NaN</code> is
925
+ consistent with how JavaScript treats these values.
926
+ </p>
927
+ <p>Many method names have a shorter alias.</p>
928
+
929
+
930
+
931
+ <h5 id="abs">absoluteValue<code class='inset'>.abs() <i>&rArr; BigNumber</i></code></h5>
932
+ <p>
933
+ Returns a BigNumber whose value is the absolute value, i.e. the magnitude, of the value of
934
+ this BigNumber.
935
+ </p>
936
+ <p>The return value is always exact and unrounded.</p>
937
+ <pre>
938
+ x = new BigNumber(-0.8)
939
+ y = x.absoluteValue() // '0.8'
940
+ z = y.abs() // '0.8'</pre>
941
+
942
+
943
+
944
+ <h5 id="cmp">
945
+ comparedTo<code class='inset'>.comparedTo(n [, base]) <i>&rArr; number</i></code>
946
+ </h5>
947
+ <p>
948
+ <code>n</code>: <i>number|string|BigNumber</i><br />
949
+ <code>base</code>: <i>number</i><br />
950
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
951
+ </p>
952
+ <table>
953
+ <tr><th>Returns</th><th>&nbsp;</th></tr>
954
+ <tr>
955
+ <td class='centre'><code>1</code></td>
956
+ <td>If the value of this BigNumber is greater than the value of <code>n</code></td>
957
+ </tr>
958
+ <tr>
959
+ <td class='centre'><code>-1</code></td>
960
+ <td>If the value of this BigNumber is less than the value of <code>n</code></td>
961
+ </tr>
962
+ <tr>
963
+ <td class='centre'><code>0</code></td>
964
+ <td>If this BigNumber and <code>n</code> have the same value</td>
965
+ </tr>
966
+ <tr>
967
+ <td class='centre'><code>null</code></td>
968
+ <td>If the value of either this BigNumber or <code>n</code> is <code>NaN</code></td>
969
+ </tr>
970
+ </table>
971
+ <pre>
972
+ x = new BigNumber(Infinity)
973
+ y = new BigNumber(5)
974
+ x.comparedTo(y) // 1
975
+ x.comparedTo(x.minus(1)) // 0
976
+ y.comparedTo(NaN) // null
977
+ y.comparedTo('110', 2) // -1</pre>
978
+
979
+
980
+
981
+ <h5 id="dp">
982
+ decimalPlaces<code class='inset'>.dp([dp [, rm]]) <i>&rArr; BigNumber|number</i></code>
983
+ </h5>
984
+ <p>
985
+ <code>dp</code>: <i>number</i>: integer, <code>0</code> to <code>1e+9</code> inclusive<br />
986
+ <code>rm</code>: <i>number</i>: integer, <code>0</code> to <code>8</code> inclusive
987
+ </p>
988
+ <p>
989
+ If <code>dp</code> is a number, returns a BigNumber whose value is the value of this BigNumber
990
+ rounded by rounding mode <code>rm</code> to a maximum of <code>dp</code> decimal places.
991
+ </p>
992
+ <p>
993
+ If <code>dp</code> is omitted, or is <code>null</code> or <code>undefined</code>, the return
994
+ value is the number of decimal places of the value of this BigNumber, or <code>null</code> if
995
+ the value of this BigNumber is &plusmn;<code>Infinity</code> or <code>NaN</code>.
996
+ </p>
997
+ <p>
998
+ If <code>rm</code> is omitted, or is <code>null</code> or <code>undefined</code>,
999
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> is used.
1000
+ </p>
1001
+ <p>
1002
+ Throws if <code>dp</code> or <code>rm</code> is invalid. See <a href='#Errors'>Errors</a>.
1003
+ </p>
1004
+ <pre>
1005
+ x = new BigNumber(1234.56)
1006
+ x.decimalPlaces(1) // '1234.6'
1007
+ x.dp() // 2
1008
+ x.decimalPlaces(2) // '1234.56'
1009
+ x.dp(10) // '1234.56'
1010
+ x.decimalPlaces(0, 1) // '1234'
1011
+ x.dp(0, 6) // '1235'
1012
+ x.decimalPlaces(1, 1) // '1234.5'
1013
+ x.dp(1, BigNumber.ROUND_HALF_EVEN) // '1234.6'
1014
+ x // '1234.56'
1015
+ y = new BigNumber('9.9e-101')
1016
+ y.dp() // 102</pre>
1017
+
1018
+
1019
+
1020
+ <h5 id="div">dividedBy<code class='inset'>.div(n [, base]) <i>&rArr; BigNumber</i></code>
1021
+ </h5>
1022
+ <p>
1023
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1024
+ <code>base</code>: <i>number</i><br />
1025
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1026
+ </p>
1027
+ <p>
1028
+ Returns a BigNumber whose value is the value of this BigNumber divided by
1029
+ <code>n</code>, rounded according to the current
1030
+ <a href='#decimal-places'><code>DECIMAL_PLACES</code></a> and
1031
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> settings.
1032
+ </p>
1033
+ <pre>
1034
+ x = new BigNumber(355)
1035
+ y = new BigNumber(113)
1036
+ x.dividedBy(y) // '3.14159292035398230088'
1037
+ x.div(5) // '71'
1038
+ x.div(47, 16) // '5'</pre>
1039
+
1040
+
1041
+
1042
+ <h5 id="divInt">
1043
+ dividedToIntegerBy<code class='inset'>.idiv(n [, base]) &rArr;
1044
+ <i>BigNumber</i></code>
1045
+ </h5>
1046
+ <p>
1047
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1048
+ <code>base</code>: <i>number</i><br />
1049
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1050
+ </p>
1051
+ <p>
1052
+ Returns a BigNumber whose value is the integer part of dividing the value of this BigNumber by
1053
+ <code>n</code>.
1054
+ </p>
1055
+ <pre>
1056
+ x = new BigNumber(5)
1057
+ y = new BigNumber(3)
1058
+ x.dividedToIntegerBy(y) // '1'
1059
+ x.idiv(0.7) // '7'
1060
+ x.idiv('0.f', 16) // '5'</pre>
1061
+
1062
+
1063
+
1064
+ <h5 id="pow">
1065
+ exponentiatedBy<code class='inset'>.pow(n [, m]) <i>&rArr; BigNumber</i></code>
1066
+ </h5>
1067
+ <p>
1068
+ <code>n</code>: <i>number|string|BigNumber</i>: integer<br />
1069
+ <code>m</code>: <i>number|string|BigNumber</i>
1070
+ </p>
1071
+ <p>
1072
+ Returns a BigNumber whose value is the value of this BigNumber exponentiated by
1073
+ <code>n</code>, i.e. raised to the power <code>n</code>, and optionally modulo a modulus
1074
+ <code>m</code>.
1075
+ </p>
1076
+ <p>
1077
+ Throws if <code>n</code> is not an integer. See <a href='#Errors'>Errors</a>.
1078
+ </p>
1079
+ <p>
1080
+ If <code>n</code> is negative the result is rounded according to the current
1081
+ <a href='#decimal-places'><code>DECIMAL_PLACES</code></a> and
1082
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> settings.
1083
+ </p>
1084
+ <p>
1085
+ As the number of digits of the result of the power operation can grow so large so quickly,
1086
+ e.g. 123.456<sup>10000</sup> has over <code>50000</code> digits, the number of significant
1087
+ digits calculated is limited to the value of the
1088
+ <a href='#pow-precision'><code>POW_PRECISION</code></a> setting (unless a modulus
1089
+ <code>m</code> is specified).
1090
+ </p>
1091
+ <p>
1092
+ By default <a href='#pow-precision'><code>POW_PRECISION</code></a> is set to <code>0</code>.
1093
+ This means that an unlimited number of significant digits will be calculated, and that the
1094
+ method's performance will decrease dramatically for larger exponents.
1095
+ </p>
1096
+ <p>
1097
+ If <code>m</code> is specified and the value of <code>m</code>, <code>n</code> and this
1098
+ BigNumber are integers, and <code>n</code> is positive, then a fast modular exponentiation
1099
+ algorithm is used, otherwise the operation will be performed as
1100
+ <code>x.exponentiatedBy(n).modulo(m)</code> with a
1101
+ <a href='#pow-precision'><code>POW_PRECISION</code></a> of <code>0</code>.
1102
+ </p>
1103
+ <pre>
1104
+ Math.pow(0.7, 2) // 0.48999999999999994
1105
+ x = new BigNumber(0.7)
1106
+ x.exponentiatedBy(2) // '0.49'
1107
+ BigNumber(3).pow(-2) // '0.11111111111111111111'</pre>
1108
+
1109
+
1110
+
1111
+ <h5 id="int">
1112
+ integerValue<code class='inset'>.integerValue([rm]) <i>&rArr; BigNumber</i></code>
1113
+ </h5>
1114
+ <p>
1115
+ <code>rm</code>: <i>number</i>: integer, <code>0</code> to <code>8</code> inclusive
1116
+ </p>
1117
+ <p>
1118
+ Returns a BigNumber whose value is the value of this BigNumber rounded to an integer using
1119
+ rounding mode <code>rm</code>.
1120
+ </p>
1121
+ <p>
1122
+ If <code>rm</code> is omitted, or is <code>null</code> or <code>undefined</code>,
1123
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> is used.
1124
+ </p>
1125
+ <p>
1126
+ Throws if <code>rm</code> is invalid. See <a href='#Errors'>Errors</a>.
1127
+ </p>
1128
+ <pre>
1129
+ x = new BigNumber(123.456)
1130
+ x.integerValue() // '123'
1131
+ x.integerValue(BigNumber.ROUND_CEIL) // '124'
1132
+ y = new BigNumber(-12.7)
1133
+ y.integerValue() // '-13'
1134
+ y.integerValue(BigNumber.ROUND_DOWN) // '-12'</pre>
1135
+ <p>
1136
+ The following is an example of how to add a prototype method that emulates JavaScript's
1137
+ <code>Math.round</code> function. <code>Math.ceil</code>, <code>Math.floor</code> and
1138
+ <code>Math.trunc</code> can be emulated in the same way with
1139
+ <code>BigNumber.ROUND_CEIL</code>, <code>BigNumber.ROUND_FLOOR</code> and
1140
+ <code> BigNumber.ROUND_DOWN</code> respectively.
1141
+ </p>
1142
+ <pre>
1143
+ BigNumber.prototype.round = function () {
1144
+ return this.integerValue(BigNumber.ROUND_HALF_CEIL);
1145
+ };
1146
+ x.round() // '123'</pre>
1147
+
1148
+
1149
+
1150
+ <h5 id="eq">isEqualTo<code class='inset'>.eq(n [, base]) <i>&rArr; boolean</i></code></h5>
1151
+ <p>
1152
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1153
+ <code>base</code>: <i>number</i><br />
1154
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1155
+ </p>
1156
+ <p>
1157
+ Returns <code>true</code> if the value of this BigNumber is equal to the value of
1158
+ <code>n</code>, otherwise returns <code>false</code>.<br />
1159
+ As with JavaScript, <code>NaN</code> does not equal <code>NaN</code>.
1160
+ </p>
1161
+ <p>Note: This method uses the <a href='#cmp'><code>comparedTo</code></a> method internally.</p>
1162
+ <pre>
1163
+ 0 === 1e-324 // true
1164
+ x = new BigNumber(0)
1165
+ x.isEqualTo('1e-324') // false
1166
+ BigNumber(-0).eq(x) // true ( -0 === 0 )
1167
+ BigNumber(255).eq('ff', 16) // true
1168
+
1169
+ y = new BigNumber(NaN)
1170
+ y.isEqualTo(NaN) // false</pre>
1171
+
1172
+
1173
+
1174
+ <h5 id="isF">isFinite<code class='inset'>.isFinite() <i>&rArr; boolean</i></code></h5>
1175
+ <p>
1176
+ Returns <code>true</code> if the value of this BigNumber is a finite number, otherwise
1177
+ returns <code>false</code>.
1178
+ </p>
1179
+ <p>
1180
+ The only possible non-finite values of a BigNumber are <code>NaN</code>, <code>Infinity</code>
1181
+ and <code>-Infinity</code>.
1182
+ </p>
1183
+ <pre>
1184
+ x = new BigNumber(1)
1185
+ x.isFinite() // true
1186
+ y = new BigNumber(Infinity)
1187
+ y.isFinite() // false</pre>
1188
+ <p>
1189
+ Note: The native method <code>isFinite()</code> can be used if
1190
+ <code>n &lt;= Number.MAX_VALUE</code>.
1191
+ </p>
1192
+
1193
+
1194
+
1195
+ <h5 id="gt">isGreaterThan<code class='inset'>.gt(n [, base]) <i>&rArr; boolean</i></code></h5>
1196
+ <p>
1197
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1198
+ <code>base</code>: <i>number</i><br />
1199
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1200
+ </p>
1201
+ <p>
1202
+ Returns <code>true</code> if the value of this BigNumber is greater than the value of
1203
+ <code>n</code>, otherwise returns <code>false</code>.
1204
+ </p>
1205
+ <p>Note: This method uses the <a href='#cmp'><code>comparedTo</code></a> method internally.</p>
1206
+ <pre>
1207
+ 0.1 &gt; (0.3 - 0.2) // true
1208
+ x = new BigNumber(0.1)
1209
+ x.isGreaterThan(BigNumber(0.3).minus(0.2)) // false
1210
+ BigNumber(0).gt(x) // false
1211
+ BigNumber(11, 3).gt(11.1, 2) // true</pre>
1212
+
1213
+
1214
+
1215
+ <h5 id="gte">
1216
+ isGreaterThanOrEqualTo<code class='inset'>.gte(n [, base]) <i>&rArr; boolean</i></code>
1217
+ </h5>
1218
+ <p>
1219
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1220
+ <code>base</code>: <i>number</i><br />
1221
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1222
+ </p>
1223
+ <p>
1224
+ Returns <code>true</code> if the value of this BigNumber is greater than or equal to the value
1225
+ of <code>n</code>, otherwise returns <code>false</code>.
1226
+ </p>
1227
+ <p>Note: This method uses the <a href='#cmp'><code>comparedTo</code></a> method internally.</p>
1228
+ <pre>
1229
+ (0.3 - 0.2) &gt;= 0.1 // false
1230
+ x = new BigNumber(0.3).minus(0.2)
1231
+ x.isGreaterThanOrEqualTo(0.1) // true
1232
+ BigNumber(1).gte(x) // true
1233
+ BigNumber(10, 18).gte('i', 36) // true</pre>
1234
+
1235
+
1236
+
1237
+ <h5 id="isInt">isInteger<code class='inset'>.isInteger() <i>&rArr; boolean</i></code></h5>
1238
+ <p>
1239
+ Returns <code>true</code> if the value of this BigNumber is an integer, otherwise returns
1240
+ <code>false</code>.
1241
+ </p>
1242
+ <pre>
1243
+ x = new BigNumber(1)
1244
+ x.isInteger() // true
1245
+ y = new BigNumber(123.456)
1246
+ y.isInteger() // false</pre>
1247
+
1248
+
1249
+
1250
+ <h5 id="lt">isLessThan<code class='inset'>.lt(n [, base]) <i>&rArr; boolean</i></code></h5>
1251
+ <p>
1252
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1253
+ <code>base</code>: <i>number</i><br />
1254
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1255
+ </p>
1256
+ <p>
1257
+ Returns <code>true</code> if the value of this BigNumber is less than the value of
1258
+ <code>n</code>, otherwise returns <code>false</code>.
1259
+ </p>
1260
+ <p>Note: This method uses the <a href='#cmp'><code>comparedTo</code></a> method internally.</p>
1261
+ <pre>
1262
+ (0.3 - 0.2) &lt; 0.1 // true
1263
+ x = new BigNumber(0.3).minus(0.2)
1264
+ x.isLessThan(0.1) // false
1265
+ BigNumber(0).lt(x) // true
1266
+ BigNumber(11.1, 2).lt(11, 3) // true</pre>
1267
+
1268
+
1269
+
1270
+ <h5 id="lte">
1271
+ isLessThanOrEqualTo<code class='inset'>.lte(n [, base]) <i>&rArr; boolean</i></code>
1272
+ </h5>
1273
+ <p>
1274
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1275
+ <code>base</code>: <i>number</i><br />
1276
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1277
+ </p>
1278
+ <p>
1279
+ Returns <code>true</code> if the value of this BigNumber is less than or equal to the value of
1280
+ <code>n</code>, otherwise returns <code>false</code>.
1281
+ </p>
1282
+ <p>Note: This method uses the <a href='#cmp'><code>comparedTo</code></a> method internally.</p>
1283
+ <pre>
1284
+ 0.1 &lt;= (0.3 - 0.2) // false
1285
+ x = new BigNumber(0.1)
1286
+ x.isLessThanOrEqualTo(BigNumber(0.3).minus(0.2)) // true
1287
+ BigNumber(-1).lte(x) // true
1288
+ BigNumber(10, 18).lte('i', 36) // true</pre>
1289
+
1290
+
1291
+
1292
+ <h5 id="isNaN">isNaN<code class='inset'>.isNaN() <i>&rArr; boolean</i></code></h5>
1293
+ <p>
1294
+ Returns <code>true</code> if the value of this BigNumber is <code>NaN</code>, otherwise
1295
+ returns <code>false</code>.
1296
+ </p>
1297
+ <pre>
1298
+ x = new BigNumber(NaN)
1299
+ x.isNaN() // true
1300
+ y = new BigNumber('Infinity')
1301
+ y.isNaN() // false</pre>
1302
+ <p>Note: The native method <code>isNaN()</code> can also be used.</p>
1303
+
1304
+
1305
+
1306
+ <h5 id="isNeg">isNegative<code class='inset'>.isNegative() <i>&rArr; boolean</i></code></h5>
1307
+ <p>
1308
+ Returns <code>true</code> if the sign of this BigNumber is negative, otherwise returns
1309
+ <code>false</code>.
1310
+ </p>
1311
+ <pre>
1312
+ x = new BigNumber(-0)
1313
+ x.isNegative() // true
1314
+ y = new BigNumber(2)
1315
+ y.isNegative() // false</pre>
1316
+ <p>Note: <code>n &lt; 0</code> can be used if <code>n &lt;= -Number.MIN_VALUE</code>.</p>
1317
+
1318
+
1319
+
1320
+ <h5 id="isPos">isPositive<code class='inset'>.isPositive() <i>&rArr; boolean</i></code></h5>
1321
+ <p>
1322
+ Returns <code>true</code> if the sign of this BigNumber is positive, otherwise returns
1323
+ <code>false</code>.
1324
+ </p>
1325
+ <pre>
1326
+ x = new BigNumber(-0)
1327
+ x.isPositive() // false
1328
+ y = new BigNumber(2)
1329
+ y.isPositive() // true</pre>
1330
+
1331
+
1332
+
1333
+ <h5 id="isZ">isZero<code class='inset'>.isZero() <i>&rArr; boolean</i></code></h5>
1334
+ <p>
1335
+ Returns <code>true</code> if the value of this BigNumber is zero or minus zero, otherwise
1336
+ returns <code>false</code>.
1337
+ </p>
1338
+ <pre>
1339
+ x = new BigNumber(-0)
1340
+ x.isZero() &amp;&amp; x.isNegative() // true
1341
+ y = new BigNumber(Infinity)
1342
+ y.isZero() // false</pre>
1343
+ <p>Note: <code>n == 0</code> can be used if <code>n &gt;= Number.MIN_VALUE</code>.</p>
1344
+
1345
+
1346
+
1347
+ <h5 id="minus">
1348
+ minus<code class='inset'>.minus(n [, base]) <i>&rArr; BigNumber</i></code>
1349
+ </h5>
1350
+ <p>
1351
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1352
+ <code>base</code>: <i>number</i><br />
1353
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1354
+ </p>
1355
+ <p>Returns a BigNumber whose value is the value of this BigNumber minus <code>n</code>.</p>
1356
+ <p>The return value is always exact and unrounded.</p>
1357
+ <pre>
1358
+ 0.3 - 0.1 // 0.19999999999999998
1359
+ x = new BigNumber(0.3)
1360
+ x.minus(0.1) // '0.2'
1361
+ x.minus(0.6, 20) // '0'</pre>
1362
+
1363
+
1364
+
1365
+ <h5 id="mod">modulo<code class='inset'>.mod(n [, base]) <i>&rArr; BigNumber</i></code></h5>
1366
+ <p>
1367
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1368
+ <code>base</code>: <i>number</i><br />
1369
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1370
+ </p>
1371
+ <p>
1372
+ Returns a BigNumber whose value is the value of this BigNumber modulo <code>n</code>, i.e.
1373
+ the integer remainder of dividing this BigNumber by <code>n</code>.
1374
+ </p>
1375
+ <p>
1376
+ The value returned, and in particular its sign, is dependent on the value of the
1377
+ <a href='#modulo-mode'><code>MODULO_MODE</code></a> setting of this BigNumber constructor.
1378
+ If it is <code>1</code> (default value), the result will have the same sign as this BigNumber,
1379
+ and it will match that of Javascript's <code>%</code> operator (within the limits of double
1380
+ precision) and BigDecimal's <code>remainder</code> method.
1381
+ </p>
1382
+ <p>The return value is always exact and unrounded.</p>
1383
+ <p>
1384
+ See <a href='#modulo-mode'><code>MODULO_MODE</code></a> for a description of the other
1385
+ modulo modes.
1386
+ </p>
1387
+ <pre>
1388
+ 1 % 0.9 // 0.09999999999999998
1389
+ x = new BigNumber(1)
1390
+ x.modulo(0.9) // '0.1'
1391
+ y = new BigNumber(33)
1392
+ y.mod('a', 33) // '3'</pre>
1393
+
1394
+
1395
+
1396
+ <h5 id="times">
1397
+ multipliedBy<code class='inset'>.times(n [, base]) <i>&rArr; BigNumber</i></code>
1398
+ </h5>
1399
+ <p>
1400
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1401
+ <code>base</code>: <i>number</i><br />
1402
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1403
+ </p>
1404
+ <p>
1405
+ Returns a BigNumber whose value is the value of this BigNumber multiplied by <code>n</code>.
1406
+ </p>
1407
+ <p>The return value is always exact and unrounded.</p>
1408
+ <pre>
1409
+ 0.6 * 3 // 1.7999999999999998
1410
+ x = new BigNumber(0.6)
1411
+ y = x.multipliedBy(3) // '1.8'
1412
+ BigNumber('7e+500').times(y) // '1.26e+501'
1413
+ x.multipliedBy('-a', 16) // '-6'</pre>
1414
+
1415
+
1416
+
1417
+ <h5 id="neg">negated<code class='inset'>.negated() <i>&rArr; BigNumber</i></code></h5>
1418
+ <p>
1419
+ Returns a BigNumber whose value is the value of this BigNumber negated, i.e. multiplied by
1420
+ <code>-1</code>.
1421
+ </p>
1422
+ <pre>
1423
+ x = new BigNumber(1.8)
1424
+ x.negated() // '-1.8'
1425
+ y = new BigNumber(-1.3)
1426
+ y.negated() // '1.3'</pre>
1427
+
1428
+
1429
+
1430
+ <h5 id="plus">plus<code class='inset'>.plus(n [, base]) <i>&rArr; BigNumber</i></code></h5>
1431
+ <p>
1432
+ <code>n</code>: <i>number|string|BigNumber</i><br />
1433
+ <code>base</code>: <i>number</i><br />
1434
+ <i>See <a href="#bignumber">BigNumber</a> for further parameter details.</i>
1435
+ </p>
1436
+ <p>Returns a BigNumber whose value is the value of this BigNumber plus <code>n</code>.</p>
1437
+ <p>The return value is always exact and unrounded.</p>
1438
+ <pre>
1439
+ 0.1 + 0.2 // 0.30000000000000004
1440
+ x = new BigNumber(0.1)
1441
+ y = x.plus(0.2) // '0.3'
1442
+ BigNumber(0.7).plus(x).plus(y) // '1.1'
1443
+ x.plus('0.1', 8) // '0.225'</pre>
1444
+
1445
+
1446
+
1447
+ <h5 id="sd">
1448
+ precision<code class='inset'>.sd([d [, rm]]) <i>&rArr; BigNumber|number</i></code>
1449
+ </h5>
1450
+ <p>
1451
+ <code>d</code>: <i>number|boolean</i>: integer, <code>1</code> to <code>1e+9</code>
1452
+ inclusive, or <code>true</code> or <code>false</code><br />
1453
+ <code>rm</code>: <i>number</i>: integer, <code>0</code> to <code>8</code> inclusive.
1454
+ </p>
1455
+ <p>
1456
+ If <code>d</code> is a number, returns a BigNumber whose value is the value of this BigNumber
1457
+ rounded to a precision of <code>d</code> significant digits using rounding mode
1458
+ <code>rm</code>.
1459
+ </p>
1460
+ <p>
1461
+ If <code>d</code> is omitted or is <code>null</code> or <code>undefined</code>, the return
1462
+ value is the number of significant digits of the value of this BigNumber, or <code>null</code>
1463
+ if the value of this BigNumber is &plusmn;<code>Infinity</code> or <code>NaN</code>.
1464
+ </p>
1465
+ <p>
1466
+ If <code>d</code> is <code>true</code> then any trailing zeros of the integer
1467
+ part of a number are counted as significant digits, otherwise they are not.
1468
+ </p>
1469
+ <p>
1470
+ If <code>rm</code> is omitted or is <code>null</code> or <code>undefined</code>,
1471
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> will be used.
1472
+ </p>
1473
+ <p>
1474
+ Throws if <code>d</code> or <code>rm</code> is invalid. See <a href='#Errors'>Errors</a>.
1475
+ </p>
1476
+ <pre>
1477
+ x = new BigNumber(9876.54321)
1478
+ x.precision(6) // '9876.54'
1479
+ x.sd() // 9
1480
+ x.precision(6, BigNumber.ROUND_UP) // '9876.55'
1481
+ x.sd(2) // '9900'
1482
+ x.precision(2, 1) // '9800'
1483
+ x // '9876.54321'
1484
+ y = new BigNumber(987000)
1485
+ y.precision() // 3
1486
+ y.sd(true) // 6</pre>
1487
+
1488
+
1489
+
1490
+ <h5 id="shift">shiftedBy<code class='inset'>.shiftedBy(n) <i>&rArr; BigNumber</i></code></h5>
1491
+ <p>
1492
+ <code>n</code>: <i>number</i>: integer,
1493
+ <code>-9007199254740991</code> to <code>9007199254740991</code> inclusive
1494
+ </p>
1495
+ <p>
1496
+ Returns a BigNumber whose value is the value of this BigNumber shifted by <code>n</code>
1497
+ places.
1498
+ <p>
1499
+ The shift is of the decimal point, i.e. of powers of ten, and is to the left if <code>n</code>
1500
+ is negative or to the right if <code>n</code> is positive.
1501
+ </p>
1502
+ <p>The return value is always exact and unrounded.</p>
1503
+ <p>
1504
+ Throws if <code>n</code> is invalid. See <a href='#Errors'>Errors</a>.
1505
+ </p>
1506
+ <pre>
1507
+ x = new BigNumber(1.23)
1508
+ x.shiftedBy(3) // '1230'
1509
+ x.shiftedBy(-3) // '0.00123'</pre>
1510
+
1511
+
1512
+
1513
+ <h5 id="sqrt">squareRoot<code class='inset'>.sqrt() <i>&rArr; BigNumber</i></code></h5>
1514
+ <p>
1515
+ Returns a BigNumber whose value is the square root of the value of this BigNumber,
1516
+ rounded according to the current
1517
+ <a href='#decimal-places'><code>DECIMAL_PLACES</code></a> and
1518
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> settings.
1519
+ </p>
1520
+ <p>
1521
+ The return value will be correctly rounded, i.e. rounded as if the result was first calculated
1522
+ to an infinite number of correct digits before rounding.
1523
+ </p>
1524
+ <pre>
1525
+ x = new BigNumber(16)
1526
+ x.squareRoot() // '4'
1527
+ y = new BigNumber(3)
1528
+ y.sqrt() // '1.73205080756887729353'</pre>
1529
+
1530
+
1531
+
1532
+ <h5 id="toE">
1533
+ toExponential<code class='inset'>.toExponential([dp [, rm]]) <i>&rArr; string</i></code>
1534
+ </h5>
1535
+ <p>
1536
+ <code>dp</code>: <i>number</i>: integer, <code>0</code> to <code>1e+9</code> inclusive<br />
1537
+ <code>rm</code>: <i>number</i>: integer, <code>0</code> to <code>8</code> inclusive
1538
+ </p>
1539
+ <p>
1540
+ Returns a string representing the value of this BigNumber in exponential notation rounded
1541
+ using rounding mode <code>rm</code> to <code>dp</code> decimal places, i.e with one digit
1542
+ before the decimal point and <code>dp</code> digits after it.
1543
+ </p>
1544
+ <p>
1545
+ If the value of this BigNumber in exponential notation has fewer than <code>dp</code> fraction
1546
+ digits, the return value will be appended with zeros accordingly.
1547
+ </p>
1548
+ <p>
1549
+ If <code>dp</code> is omitted, or is <code>null</code> or <code>undefined</code>, the number
1550
+ of digits after the decimal point defaults to the minimum number of digits necessary to
1551
+ represent the value exactly.<br />
1552
+ If <code>rm</code> is omitted or is <code>null</code> or <code>undefined</code>,
1553
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> is used.
1554
+ </p>
1555
+ <p>
1556
+ Throws if <code>dp</code> or <code>rm</code> is invalid. See <a href='#Errors'>Errors</a>.
1557
+ </p>
1558
+ <pre>
1559
+ x = 45.6
1560
+ y = new BigNumber(x)
1561
+ x.toExponential() // '4.56e+1'
1562
+ y.toExponential() // '4.56e+1'
1563
+ x.toExponential(0) // '5e+1'
1564
+ y.toExponential(0) // '5e+1'
1565
+ x.toExponential(1) // '4.6e+1'
1566
+ y.toExponential(1) // '4.6e+1'
1567
+ y.toExponential(1, 1) // '4.5e+1' (ROUND_DOWN)
1568
+ x.toExponential(3) // '4.560e+1'
1569
+ y.toExponential(3) // '4.560e+1'</pre>
1570
+
1571
+
1572
+
1573
+ <h5 id="toFix">
1574
+ toFixed<code class='inset'>.toFixed([dp [, rm]]) <i>&rArr; string</i></code>
1575
+ </h5>
1576
+ <p>
1577
+ <code>dp</code>: <i>number</i>: integer, <code>0</code> to <code>1e+9</code> inclusive<br />
1578
+ <code>rm</code>: <i>number</i>: integer, <code>0</code> to <code>8</code> inclusive
1579
+ </p>
1580
+ <p>
1581
+ Returns a string representing the value of this BigNumber in normal (fixed-point) notation
1582
+ rounded to <code>dp</code> decimal places using rounding mode <code>rm</code>.
1583
+ </p>
1584
+ <p>
1585
+ If the value of this BigNumber in normal notation has fewer than <code>dp</code> fraction
1586
+ digits, the return value will be appended with zeros accordingly.
1587
+ </p>
1588
+ <p>
1589
+ Unlike <code>Number.prototype.toFixed</code>, which returns exponential notation if a number
1590
+ is greater or equal to <code>10<sup>21</sup></code>, this method will always return normal
1591
+ notation.
1592
+ </p>
1593
+ <p>
1594
+ If <code>dp</code> is omitted or is <code>null</code> or <code>undefined</code>, the return
1595
+ value will be unrounded and in normal notation. This is also unlike
1596
+ <code>Number.prototype.toFixed</code>, which returns the value to zero decimal places.<br />
1597
+ It is useful when fixed-point notation is required and the current
1598
+ <a href="#exponential-at"><code>EXPONENTIAL_AT</code></a> setting causes
1599
+ <code><a href='#toS'>toString</a></code> to return exponential notation.<br />
1600
+ If <code>rm</code> is omitted or is <code>null</code> or <code>undefined</code>,
1601
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> is used.
1602
+ </p>
1603
+ <p>
1604
+ Throws if <code>dp</code> or <code>rm</code> is invalid. See <a href='#Errors'>Errors</a>.
1605
+ </p>
1606
+ <pre>
1607
+ x = 3.456
1608
+ y = new BigNumber(x)
1609
+ x.toFixed() // '3'
1610
+ y.toFixed() // '3.456'
1611
+ y.toFixed(0) // '3'
1612
+ x.toFixed(2) // '3.46'
1613
+ y.toFixed(2) // '3.46'
1614
+ y.toFixed(2, 1) // '3.45' (ROUND_DOWN)
1615
+ x.toFixed(5) // '3.45600'
1616
+ y.toFixed(5) // '3.45600'</pre>
1617
+
1618
+
1619
+
1620
+ <h5 id="toFor">
1621
+ toFormat<code class='inset'>.toFormat([dp [, rm[, format]]]) <i>&rArr; string</i></code>
1622
+ </h5>
1623
+ <p>
1624
+ <code>dp</code>: <i>number</i>: integer, <code>0</code> to <code>1e+9</code> inclusive<br />
1625
+ <code>rm</code>: <i>number</i>: integer, <code>0</code> to <code>8</code> inclusive<br />
1626
+ <code>format</code>: <i>object</i>: see <a href='#format'><code>FORMAT</code></a>
1627
+ </p>
1628
+ <p>
1629
+ <p>
1630
+ Returns a string representing the value of this BigNumber in normal (fixed-point) notation
1631
+ rounded to <code>dp</code> decimal places using rounding mode <code>rm</code>, and formatted
1632
+ according to the properties of the <code>format</code> object.
1633
+ </p>
1634
+ <p>
1635
+ See <a href='#format'><code>FORMAT</code></a> and the examples below for the properties of the
1636
+ <code>format</code> object, their types, and their usage. A formatting object may contain
1637
+ some or all of the recognised properties.
1638
+ </p>
1639
+ <p>
1640
+ If <code>dp</code> is omitted or is <code>null</code> or <code>undefined</code>, then the
1641
+ return value is not rounded to a fixed number of decimal places.<br />
1642
+ If <code>rm</code> is omitted or is <code>null</code> or <code>undefined</code>,
1643
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> is used.<br />
1644
+ If <code>format</code> is omitted or is <code>null</code> or <code>undefined</code>, the
1645
+ <a href='#format'><code>FORMAT</code></a> object is used.
1646
+ </p>
1647
+ <p>
1648
+ Throws if <code>dp</code>, <code>rm</code> or <code>format</code> is invalid. See
1649
+ <a href='#Errors'>Errors</a>.
1650
+ </p>
1651
+ <pre>
1652
+ fmt = {
1653
+ prefix: '',
1654
+ decimalSeparator: '.',
1655
+ groupSeparator: ',',
1656
+ groupSize: 3,
1657
+ secondaryGroupSize: 0,
1658
+ fractionGroupSeparator: ' ',
1659
+ fractionGroupSize: 0,
1660
+ suffix: ''
1661
+ }
1662
+
1663
+ x = new BigNumber('123456789.123456789')
1664
+
1665
+ // Set the global formatting options
1666
+ BigNumber.config({ FORMAT: fmt })
1667
+
1668
+ x.toFormat() // '123,456,789.123456789'
1669
+ x.toFormat(3) // '123,456,789.123'
1670
+
1671
+ // If a reference to the object assigned to FORMAT has been retained,
1672
+ // the format properties can be changed directly
1673
+ fmt.groupSeparator = ' '
1674
+ fmt.fractionGroupSize = 5
1675
+ x.toFormat() // '123 456 789.12345 6789'
1676
+
1677
+ // Alternatively, pass the formatting options as an argument
1678
+ fmt = {
1679
+ prefix: '=> ',
1680
+ decimalSeparator: ',',
1681
+ groupSeparator: '.',
1682
+ groupSize: 3,
1683
+ secondaryGroupSize: 2
1684
+ }
1685
+
1686
+ x.toFormat() // '123 456 789.12345 6789'
1687
+ x.toFormat(fmt) // '=> 12.34.56.789,123456789'
1688
+ x.toFormat(2, fmt) // '=> 12.34.56.789,12'
1689
+ x.toFormat(3, BigNumber.ROUND_UP, fmt) // '=> 12.34.56.789,124'</pre>
1690
+
1691
+
1692
+
1693
+ <h5 id="toFr">
1694
+ toFraction<code class='inset'>.toFraction([maximum_denominator])
1695
+ <i>&rArr; [BigNumber, BigNumber]</i></code>
1696
+ </h5>
1697
+ <p>
1698
+ <code>maximum_denominator</code>:
1699
+ <i>number|string|BigNumber</i>: integer &gt;= <code>1</code> and &lt;=
1700
+ <code>Infinity</code>
1701
+ </p>
1702
+ <p>
1703
+ Returns an array of two BigNumbers representing the value of this BigNumber as a simple
1704
+ fraction with an integer numerator and an integer denominator. The denominator will be a
1705
+ positive non-zero value less than or equal to <code>maximum_denominator</code>.
1706
+ </p>
1707
+ <p>
1708
+ If a <code>maximum_denominator</code> is not specified, or is <code>null</code> or
1709
+ <code>undefined</code>, the denominator will be the lowest value necessary to represent the
1710
+ number exactly.
1711
+ </p>
1712
+ <p>
1713
+ Throws if <code>maximum_denominator</code> is invalid. See <a href='#Errors'>Errors</a>.
1714
+ </p>
1715
+ <pre>
1716
+ x = new BigNumber(1.75)
1717
+ x.toFraction() // '7, 4'
1718
+
1719
+ pi = new BigNumber('3.14159265358')
1720
+ pi.toFraction() // '157079632679,50000000000'
1721
+ pi.toFraction(100000) // '312689, 99532'
1722
+ pi.toFraction(10000) // '355, 113'
1723
+ pi.toFraction(100) // '311, 99'
1724
+ pi.toFraction(10) // '22, 7'
1725
+ pi.toFraction(1) // '3, 1'</pre>
1726
+
1727
+
1728
+
1729
+ <h5 id="toJSON">toJSON<code class='inset'>.toJSON() <i>&rArr; string</i></code></h5>
1730
+ <p>As <a href='#valueOf'><code>valueOf</code></a>.</p>
1731
+ <pre>
1732
+ x = new BigNumber('177.7e+457')
1733
+ y = new BigNumber(235.4325)
1734
+ z = new BigNumber('0.0098074')
1735
+
1736
+ // Serialize an array of three BigNumbers
1737
+ str = JSON.stringify( [x, y, z] )
1738
+ // "["1.777e+459","235.4325","0.0098074"]"
1739
+
1740
+ // Return an array of three BigNumbers
1741
+ JSON.parse(str, function (key, val) {
1742
+ return key === '' ? val : new BigNumber(val)
1743
+ })</pre>
1744
+
1745
+
1746
+
1747
+ <h5 id="toN">toNumber<code class='inset'>.toNumber() <i>&rArr; number</i></code></h5>
1748
+ <p>Returns the value of this BigNumber as a JavaScript number primitive.</p>
1749
+ <p>
1750
+ This method is identical to using type coercion with the unary plus operator.
1751
+ </p>
1752
+ <pre>
1753
+ x = new BigNumber(456.789)
1754
+ x.toNumber() // 456.789
1755
+ +x // 456.789
1756
+
1757
+ y = new BigNumber('45987349857634085409857349856430985')
1758
+ y.toNumber() // 4.598734985763409e+34
1759
+
1760
+ z = new BigNumber(-0)
1761
+ 1 / z.toNumber() // -Infinity
1762
+ 1 / +z // -Infinity</pre>
1763
+
1764
+
1765
+
1766
+ <h5 id="toP">
1767
+ toPrecision<code class='inset'>.toPrecision([sd [, rm]]) <i>&rArr; string</i></code>
1768
+ </h5>
1769
+ <p>
1770
+ <code>sd</code>: <i>number</i>: integer, <code>1</code> to <code>1e+9</code> inclusive<br />
1771
+ <code>rm</code>: <i>number</i>: integer, <code>0</code> to <code>8</code> inclusive
1772
+ </p>
1773
+ <p>
1774
+ Returns a string representing the value of this BigNumber rounded to <code>sd</code>
1775
+ significant digits using rounding mode <code>rm</code>.
1776
+ </p>
1777
+ <p>
1778
+ If <code>sd</code> is less than the number of digits necessary to represent the integer part
1779
+ of the value in normal (fixed-point) notation, then exponential notation is used.
1780
+ </p>
1781
+ <p>
1782
+ If <code>sd</code> is omitted, or is <code>null</code> or <code>undefined</code>, then the
1783
+ return value is the same as <code>n.toString()</code>.<br />
1784
+ If <code>rm</code> is omitted or is <code>null</code> or <code>undefined</code>,
1785
+ <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> is used.
1786
+ </p>
1787
+ <p>
1788
+ Throws if <code>sd</code> or <code>rm</code> is invalid. See <a href='#Errors'>Errors</a>.
1789
+ </p>
1790
+ <pre>
1791
+ x = 45.6
1792
+ y = new BigNumber(x)
1793
+ x.toPrecision() // '45.6'
1794
+ y.toPrecision() // '45.6'
1795
+ x.toPrecision(1) // '5e+1'
1796
+ y.toPrecision(1) // '5e+1'
1797
+ y.toPrecision(2, 0) // '4.6e+1' (ROUND_UP)
1798
+ y.toPrecision(2, 1) // '4.5e+1' (ROUND_DOWN)
1799
+ x.toPrecision(5) // '45.600'
1800
+ y.toPrecision(5) // '45.600'</pre>
1801
+
1802
+
1803
+
1804
+ <h5 id="toS">toString<code class='inset'>.toString([base]) <i>&rArr; string</i></code></h5>
1805
+ <p>
1806
+ <code>base</code>: <i>number</i>: integer, <code>2</code> to <code>ALPHABET.length</code>
1807
+ inclusive (see <a href='#alphabet'><code>ALPHABET</code></a>).
1808
+ </p>
1809
+ <p>
1810
+ Returns a string representing the value of this BigNumber in the specified base, or base
1811
+ <code>10</code> if <code>base</code> is omitted or is <code>null</code> or
1812
+ <code>undefined</code>.
1813
+ </p>
1814
+ <p>
1815
+ For bases above <code>10</code>, and using the default base conversion alphabet
1816
+ (see <a href='#alphabet'><code>ALPHABET</code></a>), values from <code>10</code> to
1817
+ <code>35</code> are represented by <code>a-z</code>
1818
+ (as with <code>Number.prototype.toString</code>).
1819
+ </p>
1820
+ <p>
1821
+ If a base is specified the value is rounded according to the current
1822
+ <a href='#decimal-places'><code>DECIMAL_PLACES</code></a>
1823
+ and <a href='#rounding-mode'><code>ROUNDING_MODE</code></a> settings.
1824
+ </p>
1825
+ <p>
1826
+ If a base is not specified, and this BigNumber has a positive
1827
+ exponent that is equal to or greater than the positive component of the
1828
+ current <a href="#exponential-at"><code>EXPONENTIAL_AT</code></a> setting,
1829
+ or a negative exponent equal to or less than the negative component of the
1830
+ setting, then exponential notation is returned.
1831
+ </p>
1832
+ <p>If <code>base</code> is <code>null</code> or <code>undefined</code> it is ignored.</p>
1833
+ <p>
1834
+ Throws if <code>base</code> is invalid. See <a href='#Errors'>Errors</a>.
1835
+ </p>
1836
+ <pre>
1837
+ x = new BigNumber(750000)
1838
+ x.toString() // '750000'
1839
+ BigNumber.config({ EXPONENTIAL_AT: 5 })
1840
+ x.toString() // '7.5e+5'
1841
+
1842
+ y = new BigNumber(362.875)
1843
+ y.toString(2) // '101101010.111'
1844
+ y.toString(9) // '442.77777777777777777778'
1845
+ y.toString(32) // 'ba.s'
1846
+
1847
+ BigNumber.config({ DECIMAL_PLACES: 4 });
1848
+ z = new BigNumber('1.23456789')
1849
+ z.toString() // '1.23456789'
1850
+ z.toString(10) // '1.2346'</pre>
1851
+
1852
+
1853
+
1854
+ <h5 id="valueOf">valueOf<code class='inset'>.valueOf() <i>&rArr; string</i></code></h5>
1855
+ <p>
1856
+ As <a href='#toS'><code>toString</code></a>, but does not accept a base argument and includes
1857
+ the minus sign for negative zero.
1858
+ </p>
1859
+ <pre>
1860
+ x = new BigNumber('-0')
1861
+ x.toString() // '0'
1862
+ x.valueOf() // '-0'
1863
+ y = new BigNumber('1.777e+457')
1864
+ y.valueOf() // '1.777e+457'</pre>
1865
+
1866
+
1867
+
1868
+ <h4 id="instance-properties">Properties</h4>
1869
+ <p>The properties of a BigNumber instance:</p>
1870
+ <table>
1871
+ <tr>
1872
+ <th>Property</th>
1873
+ <th>Description</th>
1874
+ <th>Type</th>
1875
+ <th>Value</th>
1876
+ </tr>
1877
+ <tr>
1878
+ <td class='centre' id='coefficient'><b>c</b></td>
1879
+ <td>coefficient<sup>*</sup></td>
1880
+ <td><i>number</i><code>[]</code></td>
1881
+ <td> Array of base <code>1e14</code> numbers</td>
1882
+ </tr>
1883
+ <tr>
1884
+ <td class='centre' id='exponent'><b>e</b></td>
1885
+ <td>exponent</td>
1886
+ <td><i>number</i></td>
1887
+ <td>Integer, <code>-1000000000</code> to <code>1000000000</code> inclusive</td>
1888
+ </tr>
1889
+ <tr>
1890
+ <td class='centre' id='sign'><b>s</b></td>
1891
+ <td>sign</td>
1892
+ <td><i>number</i></td>
1893
+ <td><code>-1</code> or <code>1</code></td>
1894
+ </tr>
1895
+ </table>
1896
+ <p><sup>*</sup>significand</p>
1897
+ <p>
1898
+ The value of any of the <code>c</code>, <code>e</code> and <code>s</code> properties may also
1899
+ be <code>null</code>.
1900
+ </p>
1901
+ <p>
1902
+ The above properties are best considered to be read-only. In early versions of this library it
1903
+ was okay to change the exponent of a BigNumber by writing to its exponent property directly,
1904
+ but this is no longer reliable as the value of the first element of the coefficient array is
1905
+ now dependent on the exponent.
1906
+ </p>
1907
+ <p>
1908
+ Note that, as with JavaScript numbers, the original exponent and fractional trailing zeros are
1909
+ not necessarily preserved.
1910
+ </p>
1911
+ <pre>x = new BigNumber(0.123) // '0.123'
1912
+ x.toExponential() // '1.23e-1'
1913
+ x.c // '1,2,3'
1914
+ x.e // -1
1915
+ x.s // 1
1916
+
1917
+ y = new Number(-123.4567000e+2) // '-12345.67'
1918
+ y.toExponential() // '-1.234567e+4'
1919
+ z = new BigNumber('-123.4567000e+2') // '-12345.67'
1920
+ z.toExponential() // '-1.234567e+4'
1921
+ z.c // '1,2,3,4,5,6,7'
1922
+ z.e // 4
1923
+ z.s // -1</pre>
1924
+
1925
+
1926
+
1927
+ <h4 id="zero-nan-infinity">Zero, NaN and Infinity</h4>
1928
+ <p>
1929
+ The table below shows how &plusmn;<code>0</code>, <code>NaN</code> and
1930
+ &plusmn;<code>Infinity</code> are stored.
1931
+ </p>
1932
+ <table>
1933
+ <tr>
1934
+ <th> </th>
1935
+ <th class='centre'>c</th>
1936
+ <th class='centre'>e</th>
1937
+ <th class='centre'>s</th>
1938
+ </tr>
1939
+ <tr>
1940
+ <td>&plusmn;0</td>
1941
+ <td><code>[0]</code></td>
1942
+ <td><code>0</code></td>
1943
+ <td><code>&plusmn;1</code></td>
1944
+ </tr>
1945
+ <tr>
1946
+ <td>NaN</td>
1947
+ <td><code>null</code></td>
1948
+ <td><code>null</code></td>
1949
+ <td><code>null</code></td>
1950
+ </tr>
1951
+ <tr>
1952
+ <td>&plusmn;Infinity</td>
1953
+ <td><code>null</code></td>
1954
+ <td><code>null</code></td>
1955
+ <td><code>&plusmn;1</code></td>
1956
+ </tr>
1957
+ </table>
1958
+ <pre>
1959
+ x = new Number(-0) // 0
1960
+ 1 / x == -Infinity // true
1961
+
1962
+ y = new BigNumber(-0) // '0'
1963
+ y.c // '0' ( [0].toString() )
1964
+ y.e // 0
1965
+ y.s // -1</pre>
1966
+
1967
+
1968
+
1969
+ <h4 id='Errors'>Errors</h4>
1970
+ <p>The table below shows the errors that are thrown.</p>
1971
+ <p>
1972
+ The errors are generic <code>Error</code> objects whose message begins
1973
+ <code>'[BigNumber Error]'</code>.
1974
+ </p>
1975
+ <table class='error-table'>
1976
+ <tr>
1977
+ <th>Method</th>
1978
+ <th>Throws</th>
1979
+ </tr>
1980
+ <tr>
1981
+ <td rowspan=6>
1982
+ <code>BigNumber</code><br />
1983
+ <code>comparedTo</code><br />
1984
+ <code>dividedBy</code><br />
1985
+ <code>dividedToIntegerBy</code><br />
1986
+ <code>isEqualTo</code><br />
1987
+ <code>isGreaterThan</code><br />
1988
+ <code>isGreaterThanOrEqualTo</code><br />
1989
+ <code>isLessThan</code><br />
1990
+ <code>isLessThanOrEqualTo</code><br />
1991
+ <code>minus</code><br />
1992
+ <code>modulo</code><br />
1993
+ <code>plus</code><br />
1994
+ <code>multipliedBy</code>
1995
+ </td>
1996
+ <td>Base not a primitive number</td>
1997
+ </tr>
1998
+ <tr>
1999
+ <td>Base not an integer</td>
2000
+ </tr>
2001
+ <tr>
2002
+ <td>Base out of range</td>
2003
+ </tr>
2004
+ <tr>
2005
+ <td>Number primitive has more than 15 significant digits<sup>*</sup></td>
2006
+ </tr>
2007
+ <tr>
2008
+ <td>Not a base... number<sup>*</sup></td>
2009
+ </tr>
2010
+ <tr>
2011
+ <td>Not a number<sup>*</sup></td>
2012
+ </tr>
2013
+ <tr>
2014
+ <td><code>clone</code></td>
2015
+ <td>Object expected</td>
2016
+ </tr>
2017
+ <tr>
2018
+ <td rowspan=24><code>config</code></td>
2019
+ <td>Object expected</td>
2020
+ </tr>
2021
+ <tr>
2022
+ <td><code>DECIMAL_PLACES</code> not a primitive number</td>
2023
+ </tr>
2024
+ <tr>
2025
+ <td><code>DECIMAL_PLACES</code> not an integer</td>
2026
+ </tr>
2027
+ <tr>
2028
+ <td><code>DECIMAL_PLACES</code> out of range</td>
2029
+ </tr>
2030
+ <tr>
2031
+ <td><code>ROUNDING_MODE</code> not a primitive number</td>
2032
+ </tr>
2033
+ <tr>
2034
+ <td><code>ROUNDING_MODE</code> not an integer</td>
2035
+ </tr>
2036
+ <tr>
2037
+ <td><code>ROUNDING_MODE</code> out of range</td>
2038
+ </tr>
2039
+ <tr>
2040
+ <td><code>EXPONENTIAL_AT</code> not a primitive number</td>
2041
+ </tr>
2042
+ <tr>
2043
+ <td><code>EXPONENTIAL_AT</code> not an integer</td>
2044
+ </tr>
2045
+ <tr>
2046
+ <td><code>EXPONENTIAL_AT</code> out of range</td>
2047
+ </tr>
2048
+ <tr>
2049
+ <td><code>RANGE</code> not a primitive number</td>
2050
+ </tr>
2051
+ <tr>
2052
+ <td><code>RANGE</code> not an integer</td>
2053
+ </tr>
2054
+ <tr>
2055
+ <td><code>RANGE</code> cannot be zero</td>
2056
+ </tr>
2057
+ <tr>
2058
+ <td><code>RANGE</code> cannot be zero</td>
2059
+ </tr>
2060
+ <tr>
2061
+ <td><code>CRYPTO</code> not true or false</td>
2062
+ </tr>
2063
+ <tr>
2064
+ <td><code>crypto</code> unavailable</td>
2065
+ </tr>
2066
+ <tr>
2067
+ <td><code>MODULO_MODE</code> not a primitive number</td>
2068
+ </tr>
2069
+ <tr>
2070
+ <td><code>MODULO_MODE</code> not an integer</td>
2071
+ </tr>
2072
+ <tr>
2073
+ <td><code>MODULO_MODE</code> out of range</td>
2074
+ </tr>
2075
+ <tr>
2076
+ <td><code>POW_PRECISION</code> not a primitive number</td>
2077
+ </tr>
2078
+ <tr>
2079
+ <td><code>POW_PRECISION</code> not an integer</td>
2080
+ </tr>
2081
+ <tr>
2082
+ <td><code>POW_PRECISION</code> out of range</td>
2083
+ </tr>
2084
+ <tr>
2085
+ <td><code>FORMAT</code> not an object</td>
2086
+ </tr>
2087
+ <tr>
2088
+ <td><code>ALPHABET</code> invalid</td>
2089
+ </tr>
2090
+ <tr>
2091
+ <td rowspan=3>
2092
+ <code>decimalPlaces</code><br />
2093
+ <code>precision</code><br />
2094
+ <code>random</code><br />
2095
+ <code>shiftedBy</code><br />
2096
+ <code>toExponential</code><br />
2097
+ <code>toFixed</code><br />
2098
+ <code>toFormat</code><br />
2099
+ <code>toPrecision</code>
2100
+ </td>
2101
+ <td>Argument not a primitive number</td>
2102
+ </tr>
2103
+ <tr>
2104
+ <td>Argument not an integer</td>
2105
+ </tr>
2106
+ <tr>
2107
+ <td>Argument out of range</td>
2108
+ </tr>
2109
+ <tr>
2110
+ <td>
2111
+ <code>decimalPlaces</code><br />
2112
+ <code>precision</code>
2113
+ </td>
2114
+ <td>Argument not true or false</td>
2115
+ </tr>
2116
+ <tr>
2117
+ <td><code>exponentiatedBy</code></td>
2118
+ <td>Argument not an integer</td>
2119
+ </tr>
2120
+ <tr>
2121
+ <td><code>isBigNumber</code></td>
2122
+ <td>Invalid BigNumber<sup>*</sup></td>
2123
+ </tr>
2124
+ <tr>
2125
+ <td>
2126
+ <code>minimum</code><br />
2127
+ <code>maximum</code>
2128
+ </td>
2129
+ <td>Not a number<sup>*</sup></td>
2130
+ </tr>
2131
+ <tr>
2132
+ <td>
2133
+ <code>random</code>
2134
+ </td>
2135
+ <td>crypto unavailable</td>
2136
+ </tr>
2137
+ <tr>
2138
+ <td>
2139
+ <code>toFormat</code>
2140
+ </td>
2141
+ <td>Argument not an object</td>
2142
+ </tr>
2143
+ <tr>
2144
+ <td rowspan=2><code>toFraction</code></td>
2145
+ <td>Argument not an integer</td>
2146
+ </tr>
2147
+ <tr>
2148
+ <td>Argument out of range</td>
2149
+ </tr>
2150
+ <tr>
2151
+ <td rowspan=3><code>toString</code></td>
2152
+ <td>Base not a primitive number</td>
2153
+ </tr>
2154
+ <tr>
2155
+ <td>Base not an integer</td>
2156
+ </tr>
2157
+ <tr>
2158
+ <td>Base out of range</td>
2159
+ </tr>
2160
+ </table>
2161
+ <p><sup>*</sup>Only thrown if <code>BigNumber.DEBUG</code> is <code>true</code>.</p>
2162
+ <p>To determine if an exception is a BigNumber Error:</p>
2163
+ <pre>
2164
+ try {
2165
+ // ...
2166
+ } catch (e) {
2167
+ if (e instanceof Error &amp;&amp; e.message.indexOf('[BigNumber Error]') === 0) {
2168
+ // ...
2169
+ }
2170
+ }</pre>
2171
+
2172
+
2173
+
2174
+ <h4 id="type-coercion">Type coercion</h4>
2175
+ <p>
2176
+ To prevent the accidental use of a BigNumber in primitive number operations, or the
2177
+ accidental addition of a BigNumber to a string, the <code>valueOf</code> method can be safely
2178
+ overwritten as shown below.
2179
+ </p>
2180
+ <p>
2181
+ The <a href='#valueOf'><code>valueOf</code></a> method is the same as the
2182
+ <a href='#toJSON'><code>toJSON</code></a> method, and both are the same as the
2183
+ <a href='#toS'><code>toString</code></a> method except they do not take a <code>base</code>
2184
+ argument and they include the minus sign for negative zero.
2185
+ </p>
2186
+ <pre>
2187
+ BigNumber.prototype.valueOf = function () {
2188
+ throw Error('valueOf called!')
2189
+ }
2190
+
2191
+ x = new BigNumber(1)
2192
+ x / 2 // '[BigNumber Error] valueOf called!'
2193
+ x + 'abc' // '[BigNumber Error] valueOf called!'
2194
+ </pre>
2195
+
2196
+
2197
+
2198
+ <h4 id='faq'>FAQ</h4>
2199
+
2200
+ <h6>Why are trailing fractional zeros removed from BigNumbers?</h6>
2201
+ <p>
2202
+ Some arbitrary-precision libraries retain trailing fractional zeros as they can indicate the
2203
+ precision of a value. This can be useful but the results of arithmetic operations can be
2204
+ misleading.
2205
+ </p>
2206
+ <pre>
2207
+ x = new BigDecimal("1.0")
2208
+ y = new BigDecimal("1.1000")
2209
+ z = x.add(y) // 2.1000
2210
+
2211
+ x = new BigDecimal("1.20")
2212
+ y = new BigDecimal("3.45000")
2213
+ z = x.multiply(y) // 4.1400000</pre>
2214
+ <p>
2215
+ To specify the precision of a value is to specify that the value lies
2216
+ within a certain range.
2217
+ </p>
2218
+ <p>
2219
+ In the first example, <code>x</code> has a value of <code>1.0</code>. The trailing zero shows
2220
+ the precision of the value, implying that it is in the range <code>0.95</code> to
2221
+ <code>1.05</code>. Similarly, the precision indicated by the trailing zeros of <code>y</code>
2222
+ indicates that the value is in the range <code>1.09995</code> to <code>1.10005</code>.
2223
+ </p>
2224
+ <p>
2225
+ If we add the two lowest values in the ranges we have, <code>0.95 + 1.09995 = 2.04995</code>,
2226
+ and if we add the two highest values we have, <code>1.05 + 1.10005 = 2.15005</code>, so the
2227
+ range of the result of the addition implied by the precision of its operands is
2228
+ <code>2.04995</code> to <code>2.15005</code>.
2229
+ </p>
2230
+ <p>
2231
+ The result given by BigDecimal of <code>2.1000</code> however, indicates that the value is in
2232
+ the range <code>2.09995</code> to <code>2.10005</code> and therefore the precision implied by
2233
+ its trailing zeros may be misleading.
2234
+ </p>
2235
+ <p>
2236
+ In the second example, the true range is <code>4.122744</code> to <code>4.157256</code> yet
2237
+ the BigDecimal answer of <code>4.1400000</code> indicates a range of <code>4.13999995</code>
2238
+ to <code>4.14000005</code>. Again, the precision implied by the trailing zeros may be
2239
+ misleading.
2240
+ </p>
2241
+ <p>
2242
+ This library, like binary floating point and most calculators, does not retain trailing
2243
+ fractional zeros. Instead, the <code>toExponential</code>, <code>toFixed</code> and
2244
+ <code>toPrecision</code> methods enable trailing zeros to be added if and when required.<br />
2245
+ </p>
2246
+ </div>
2247
+
2248
+ </body>
2249
+ </html>