essential-eth 0.4.9-beta.1 → 0.4.9-beta.4
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.
- package/lib/cjs/classes/Contract.d.ts +71 -0
- package/lib/cjs/classes/Contract.js +133 -0
- package/lib/cjs/classes/test/Contract/crv-abi.d.ts +2 -0
- package/lib/cjs/classes/test/Contract/crv-abi.js +488 -0
- package/lib/cjs/classes/test/Contract/ens-abi.d.ts +2 -0
- package/lib/cjs/classes/test/Contract/ens-abi.js +453 -0
- package/lib/cjs/classes/test/Contract/fei-abi.d.ts +2 -0
- package/lib/cjs/classes/test/Contract/fei-abi.js +526 -0
- package/lib/cjs/classes/test/Contract/foo-abi.d.ts +2 -0
- package/lib/cjs/classes/test/Contract/foo-abi.js +42 -0
- package/lib/cjs/classes/test/Contract/uniswap-abi.d.ts +2 -0
- package/lib/cjs/classes/test/Contract/uniswap-abi.js +121 -0
- package/lib/cjs/classes/utils/clean-block.d.ts +6 -0
- package/lib/cjs/classes/utils/clean-block.js +46 -0
- package/lib/cjs/classes/utils/clean-transaction.d.ts +5 -0
- package/lib/cjs/classes/utils/clean-transaction.js +38 -0
- package/lib/cjs/classes/utils/encode-decode-transaction.d.ts +3 -0
- package/lib/cjs/classes/utils/encode-decode-transaction.js +113 -0
- package/lib/cjs/classes/utils/fetchers.d.ts +9 -0
- package/lib/cjs/classes/utils/fetchers.js +33 -0
- package/{src/classes/utils/hex-to-decimal.ts → lib/cjs/classes/utils/hex-to-decimal.d.ts} +1 -3
- package/lib/cjs/classes/utils/hex-to-decimal.js +11 -0
- package/lib/cjs/index.d.ts +13 -0
- package/lib/cjs/index.js +44 -0
- package/lib/cjs/providers/JsonRpcProvider.d.ts +23 -0
- package/lib/cjs/providers/JsonRpcProvider.js +94 -0
- package/lib/cjs/providers/utils/chains-info.d.ts +360 -0
- package/lib/cjs/providers/utils/chains-info.js +1081 -0
- package/lib/cjs/shared/tiny-big/helpers.d.ts +1 -0
- package/lib/cjs/shared/tiny-big/helpers.js +71 -0
- package/lib/cjs/shared/tiny-big/tiny-big.d.ts +19 -0
- package/lib/cjs/shared/tiny-big/tiny-big.js +41 -0
- package/lib/cjs/shared/validate-type.d.ts +3 -0
- package/lib/cjs/shared/validate-type.js +9 -0
- package/lib/cjs/types/Block.types.d.ts +47 -0
- package/lib/cjs/types/Block.types.js +2 -0
- package/lib/cjs/types/Contract.types.d.ts +24 -0
- package/lib/cjs/types/Contract.types.js +2 -0
- package/lib/cjs/types/Network.types.d.ts +8 -0
- package/lib/cjs/types/Network.types.js +2 -0
- package/lib/cjs/types/Transaction.types.d.ts +34 -0
- package/lib/cjs/types/Transaction.types.js +2 -0
- package/{src/utils/ether-to-wei.ts → lib/cjs/utils/ether-to-wei.d.ts} +2 -10
- package/lib/cjs/utils/ether-to-wei.js +32 -0
- package/{src/utils/index.ts → lib/cjs/utils/index.d.ts} +0 -1
- package/lib/cjs/utils/index.js +11 -0
- package/lib/cjs/utils/is-address.d.ts +5 -0
- package/lib/cjs/utils/is-address.js +20 -0
- package/lib/cjs/utils/to-checksum-address.d.ts +17 -0
- package/lib/cjs/utils/to-checksum-address.js +46 -0
- package/{src/utils/wei-to-ether.ts → lib/cjs/utils/wei-to-ether.d.ts} +1 -8
- package/lib/cjs/utils/wei-to-ether.js +34 -0
- package/lib/esm/classes/Contract.d.ts +11 -0
- package/lib/esm/classes/Contract.js +70 -0
- package/lib/esm/classes/test/Contract/crv-abi.d.ts +2 -0
- package/lib/esm/classes/test/Contract/crv-abi.js +470 -0
- package/lib/esm/classes/test/Contract/ens-abi.d.ts +2 -0
- package/lib/esm/classes/test/Contract/ens-abi.js +435 -0
- package/lib/esm/classes/test/Contract/fei-abi.d.ts +2 -0
- package/lib/esm/classes/test/Contract/fei-abi.js +521 -0
- package/lib/esm/classes/test/Contract/foo-abi.d.ts +2 -0
- package/lib/esm/classes/test/Contract/foo-abi.js +33 -0
- package/lib/esm/classes/test/Contract/uniswap-abi.d.ts +2 -0
- package/lib/esm/classes/test/Contract/uniswap-abi.js +116 -0
- package/lib/esm/classes/utils/clean-block.d.ts +3 -0
- package/lib/esm/classes/utils/clean-block.js +35 -0
- package/lib/esm/classes/utils/clean-transaction.d.ts +2 -0
- package/lib/esm/classes/utils/clean-transaction.js +29 -0
- package/lib/esm/classes/utils/encode-decode-transaction.d.ts +3 -0
- package/lib/esm/classes/utils/encode-decode-transaction.js +98 -0
- package/lib/esm/classes/utils/fetchers.d.ts +9 -0
- package/lib/esm/classes/utils/fetchers.js +25 -0
- package/lib/esm/classes/utils/hex-to-decimal.d.ts +1 -0
- package/lib/esm/classes/utils/hex-to-decimal.js +3 -0
- package/lib/esm/index.d.ts +13 -0
- package/lib/esm/index.js +9 -0
- package/lib/esm/providers/JsonRpcProvider.d.ts +10 -0
- package/lib/esm/providers/JsonRpcProvider.js +74 -0
- package/lib/esm/providers/utils/chains-info.d.ts +360 -0
- package/lib/esm/providers/utils/chains-info.js +1077 -0
- package/lib/esm/shared/tiny-big/helpers.d.ts +1 -0
- package/lib/esm/shared/tiny-big/helpers.js +58 -0
- package/lib/esm/shared/tiny-big/tiny-big.d.ts +8 -0
- package/lib/esm/shared/tiny-big/tiny-big.js +22 -0
- package/lib/esm/shared/validate-type.d.ts +3 -0
- package/lib/esm/shared/validate-type.js +5 -0
- package/lib/esm/types/Block.types.d.ts +47 -0
- package/lib/esm/types/Block.types.js +1 -0
- package/lib/esm/types/Contract.types.d.ts +24 -0
- package/lib/esm/types/Contract.types.js +1 -0
- package/lib/esm/types/Network.types.d.ts +5 -0
- package/lib/esm/types/Network.types.js +1 -0
- package/lib/esm/types/Transaction.types.d.ts +34 -0
- package/lib/esm/types/Transaction.types.js +1 -0
- package/lib/esm/utils/ether-to-wei.d.ts +3 -0
- package/lib/esm/utils/ether-to-wei.js +7 -0
- package/lib/esm/utils/index.d.ts +5 -0
- package/lib/esm/utils/index.js +5 -0
- package/lib/esm/utils/is-address.d.ts +1 -0
- package/lib/esm/utils/is-address.js +12 -0
- package/lib/esm/utils/to-checksum-address.d.ts +1 -0
- package/lib/esm/utils/to-checksum-address.js +25 -0
- package/lib/esm/utils/wei-to-ether.d.ts +3 -0
- package/lib/esm/utils/wei-to-ether.js +7 -0
- package/package.json +8 -22
- package/..eslintrc.js.un~ +0 -0
- package/..npmignore.un~ +0 -0
- package/.env +0 -1
- package/.eslintignore +0 -4
- package/.eslintrc.js +0 -34
- package/.gitattributes +0 -1
- package/.github/workflows/.test.yml.un~ +0 -0
- package/.github/workflows/test.yml +0 -29
- package/.package.json.un~ +0 -0
- package/.prettierignore +0 -7
- package/.travis.yml +0 -5
- package/jest.config.js +0 -9
- package/scripts/build-website.sh +0 -4
- package/scripts/bump-minor.sh +0 -4
- package/scripts/bump-patch.sh +0 -4
- package/scripts/fetch-chains-info.ts +0 -70
- package/scripts/pre-commit.sh +0 -5
- package/src/classes/Contract.ts +0 -161
- package/src/classes/test/Contract/crv-abi.ts +0 -488
- package/src/classes/test/Contract/crv.test.ts +0 -56
- package/src/classes/test/Contract/ens-abi.ts +0 -452
- package/src/classes/test/Contract/ens.test.ts +0 -39
- package/src/classes/test/Contract/fei-abi.ts +0 -526
- package/src/classes/test/Contract/fei.test.ts +0 -86
- package/src/classes/test/Contract/foo-abi.ts +0 -42
- package/src/classes/test/Contract/foo.test.ts +0 -33
- package/src/classes/test/Contract/uni.test.ts +0 -72
- package/src/classes/test/Contract/uniswap-abi.ts +0 -121
- package/src/classes/utils/clean-block.ts +0 -49
- package/src/classes/utils/clean-transaction.ts +0 -35
- package/src/classes/utils/encode-decode-transaction.ts +0 -126
- package/src/classes/utils/fetchers.ts +0 -27
- package/src/index.ts +0 -27
- package/src/providers/JsonRpcProvider.ts +0 -94
- package/src/providers/test/get-block.test.ts +0 -63
- package/src/providers/test/get-network.test.ts +0 -34
- package/src/providers/utils/chains-info.ts +0 -1079
- package/src/shared/tiny-big/helpers.test.ts +0 -30
- package/src/shared/tiny-big/helpers.ts +0 -89
- package/src/shared/tiny-big/tiny-big.test.ts +0 -10
- package/src/shared/tiny-big/tiny-big.ts +0 -36
- package/src/shared/validate-type.ts +0 -20
- package/src/types/.Contract.types.ts.un~ +0 -0
- package/src/types/Block.types.ts +0 -50
- package/src/types/Contract.types.ts +0 -67
- package/src/types/Network.types.ts +0 -8
- package/src/types/Transaction.types.ts +0 -35
- package/src/utils/is-address.ts +0 -16
- package/src/utils/tests/ether-to-wei.test.ts +0 -65
- package/src/utils/tests/is-address.test.ts +0 -52
- package/src/utils/tests/to-checksum-address.test.ts +0 -43
- package/src/utils/tests/wei-to-ether.test.ts +0 -72
- package/src/utils/to-checksum-address.ts +0 -47
- package/test/global-setup.js +0 -8
- package/test/global-teardown.js +0 -5
- package/test/jest.setup-after-env.js +0 -1
- package/test/server.js +0 -24
- package/tsconfig-cjs.json +0 -8
- package/tsconfig.json +0 -25
- package/typedoc/options-new-version.js +0 -8
- package/typedoc/options.js +0 -9
- package/types/just-omit.d.ts +0 -1
- package/website/.nojekyll +0 -1
- package/website/assets/highlight.css +0 -71
- package/website/assets/icons.css +0 -1043
- package/website/assets/icons.png +0 -0
- package/website/assets/icons@2x.png +0 -0
- package/website/assets/main.js +0 -52
- package/website/assets/search.js +0 -1
- package/website/assets/style.css +0 -1413
- package/website/assets/widgets.png +0 -0
- package/website/assets/widgets@2x.png +0 -0
- package/website/classes/Contract.html +0 -13
- package/website/classes/JsonRpcProvider.html +0 -8
- package/website/classes/TinyBig.html +0 -161
- package/website/index.html +0 -207
- package/website/interfaces/Block.html +0 -1
- package/website/interfaces/JSONABIArgument.html +0 -1
- package/website/interfaces/Network.html +0 -3
- package/website/interfaces/Transaction.html +0 -1
- package/website/modules.html +0 -32
- package/website/versions/0.1.2/assets/highlight.css +0 -57
- package/website/versions/0.1.2/assets/icons.css +0 -1043
- package/website/versions/0.1.2/assets/icons.png +0 -0
- package/website/versions/0.1.2/assets/icons@2x.png +0 -0
- package/website/versions/0.1.2/assets/main.js +0 -52
- package/website/versions/0.1.2/assets/search.js +0 -1
- package/website/versions/0.1.2/assets/style.css +0 -1341
- package/website/versions/0.1.2/assets/widgets.png +0 -0
- package/website/versions/0.1.2/assets/widgets@2x.png +0 -0
- package/website/versions/0.1.2/classes/TinyBig.html +0 -4
- package/website/versions/0.1.2/index.html +0 -20
- package/website/versions/0.1.2/modules.html +0 -23
- package/website/versions/0.1.3/assets/highlight.css +0 -64
- package/website/versions/0.1.3/assets/icons.css +0 -1043
- package/website/versions/0.1.3/assets/icons.png +0 -0
- package/website/versions/0.1.3/assets/icons@2x.png +0 -0
- package/website/versions/0.1.3/assets/main.js +0 -52
- package/website/versions/0.1.3/assets/search.js +0 -1
- package/website/versions/0.1.3/assets/style.css +0 -1341
- package/website/versions/0.1.3/assets/widgets.png +0 -0
- package/website/versions/0.1.3/assets/widgets@2x.png +0 -0
- package/website/versions/0.1.3/classes/TinyBig.html +0 -4
- package/website/versions/0.1.3/index.html +0 -53
- package/website/versions/0.1.3/modules.html +0 -23
- package/website/versions/0.1.4/assets/highlight.css +0 -64
- package/website/versions/0.1.4/assets/icons.css +0 -1043
- package/website/versions/0.1.4/assets/icons.png +0 -0
- package/website/versions/0.1.4/assets/icons@2x.png +0 -0
- package/website/versions/0.1.4/assets/main.js +0 -52
- package/website/versions/0.1.4/assets/search.js +0 -1
- package/website/versions/0.1.4/assets/style.css +0 -1341
- package/website/versions/0.1.4/assets/widgets.png +0 -0
- package/website/versions/0.1.4/assets/widgets@2x.png +0 -0
- package/website/versions/0.1.4/classes/EssentialEth.html +0 -1
- package/website/versions/0.1.4/classes/TinyBig.html +0 -4
- package/website/versions/0.1.4/index.html +0 -58
- package/website/versions/0.1.4/modules.html +0 -23
- package/website/versions/0.2.0/assets/highlight.css +0 -64
- package/website/versions/0.2.0/assets/icons.css +0 -1043
- package/website/versions/0.2.0/assets/icons.png +0 -0
- package/website/versions/0.2.0/assets/icons@2x.png +0 -0
- package/website/versions/0.2.0/assets/main.js +0 -52
- package/website/versions/0.2.0/assets/search.js +0 -1
- package/website/versions/0.2.0/assets/style.css +0 -1341
- package/website/versions/0.2.0/assets/widgets.png +0 -0
- package/website/versions/0.2.0/assets/widgets@2x.png +0 -0
- package/website/versions/0.2.0/classes/EssentialEth.html +0 -5
- package/website/versions/0.2.0/classes/TinyBig.html +0 -146
- package/website/versions/0.2.0/index.html +0 -89
- package/website/versions/0.2.0/modules.html +0 -25
- package/website/versions/0.2.1/assets/highlight.css +0 -64
- package/website/versions/0.2.1/assets/icons.css +0 -1043
- package/website/versions/0.2.1/assets/icons.png +0 -0
- package/website/versions/0.2.1/assets/icons@2x.png +0 -0
- package/website/versions/0.2.1/assets/main.js +0 -52
- package/website/versions/0.2.1/assets/search.js +0 -1
- package/website/versions/0.2.1/assets/style.css +0 -1341
- package/website/versions/0.2.1/assets/widgets.png +0 -0
- package/website/versions/0.2.1/assets/widgets@2x.png +0 -0
- package/website/versions/0.2.1/classes/EssentialEth.html +0 -5
- package/website/versions/0.2.1/classes/TinyBig.html +0 -146
- package/website/versions/0.2.1/index.html +0 -96
- package/website/versions/0.2.1/modules.html +0 -29
- package/website/versions/0.2.2/assets/highlight.css +0 -64
- package/website/versions/0.2.2/assets/icons.css +0 -1043
- package/website/versions/0.2.2/assets/icons.png +0 -0
- package/website/versions/0.2.2/assets/icons@2x.png +0 -0
- package/website/versions/0.2.2/assets/main.js +0 -52
- package/website/versions/0.2.2/assets/search.js +0 -1
- package/website/versions/0.2.2/assets/style.css +0 -1341
- package/website/versions/0.2.2/assets/widgets.png +0 -0
- package/website/versions/0.2.2/assets/widgets@2x.png +0 -0
- package/website/versions/0.2.2/classes/EssentialEth.html +0 -5
- package/website/versions/0.2.2/classes/TinyBig.html +0 -146
- package/website/versions/0.2.2/index.html +0 -96
- package/website/versions/0.2.2/modules.html +0 -29
- package/website/versions/0.3.0/.nojekyll +0 -1
- package/website/versions/0.3.0/assets/highlight.css +0 -71
- package/website/versions/0.3.0/assets/icons.css +0 -1043
- package/website/versions/0.3.0/assets/icons.png +0 -0
- package/website/versions/0.3.0/assets/icons@2x.png +0 -0
- package/website/versions/0.3.0/assets/main.js +0 -52
- package/website/versions/0.3.0/assets/search.js +0 -1
- package/website/versions/0.3.0/assets/style.css +0 -1384
- package/website/versions/0.3.0/assets/widgets.png +0 -0
- package/website/versions/0.3.0/assets/widgets@2x.png +0 -0
- package/website/versions/0.3.0/classes/Contract.html +0 -15
- package/website/versions/0.3.0/classes/TinyBig.html +0 -156
- package/website/versions/0.3.0/index.html +0 -123
- package/website/versions/0.3.0/modules.html +0 -32
- package/website/versions/0.3.1/.nojekyll +0 -1
- package/website/versions/0.3.1/assets/highlight.css +0 -71
- package/website/versions/0.3.1/assets/icons.css +0 -1043
- package/website/versions/0.3.1/assets/icons.png +0 -0
- package/website/versions/0.3.1/assets/icons@2x.png +0 -0
- package/website/versions/0.3.1/assets/main.js +0 -52
- package/website/versions/0.3.1/assets/search.js +0 -1
- package/website/versions/0.3.1/assets/style.css +0 -1384
- package/website/versions/0.3.1/assets/widgets.png +0 -0
- package/website/versions/0.3.1/assets/widgets@2x.png +0 -0
- package/website/versions/0.3.1/classes/Contract.html +0 -15
- package/website/versions/0.3.1/classes/TinyBig.html +0 -156
- package/website/versions/0.3.1/index.html +0 -123
- package/website/versions/0.3.1/modules.html +0 -32
- package/website/versions/0.3.2/.nojekyll +0 -1
- package/website/versions/0.3.2/assets/highlight.css +0 -71
- package/website/versions/0.3.2/assets/icons.css +0 -1043
- package/website/versions/0.3.2/assets/icons.png +0 -0
- package/website/versions/0.3.2/assets/icons@2x.png +0 -0
- package/website/versions/0.3.2/assets/main.js +0 -52
- package/website/versions/0.3.2/assets/search.js +0 -1
- package/website/versions/0.3.2/assets/style.css +0 -1384
- package/website/versions/0.3.2/assets/widgets.png +0 -0
- package/website/versions/0.3.2/assets/widgets@2x.png +0 -0
- package/website/versions/0.3.2/classes/Contract.html +0 -15
- package/website/versions/0.3.2/classes/JsonRpcProvider.html +0 -5
- package/website/versions/0.3.2/classes/TinyBig.html +0 -156
- package/website/versions/0.3.2/index.html +0 -123
- package/website/versions/0.3.2/modules.html +0 -32
- package/website/versions/0.3.3/.nojekyll +0 -1
- package/website/versions/0.3.3/assets/highlight.css +0 -71
- package/website/versions/0.3.3/assets/icons.css +0 -1043
- package/website/versions/0.3.3/assets/icons.png +0 -0
- package/website/versions/0.3.3/assets/icons@2x.png +0 -0
- package/website/versions/0.3.3/assets/main.js +0 -52
- package/website/versions/0.3.3/assets/search.js +0 -1
- package/website/versions/0.3.3/assets/style.css +0 -1384
- package/website/versions/0.3.3/assets/widgets.png +0 -0
- package/website/versions/0.3.3/assets/widgets@2x.png +0 -0
- package/website/versions/0.3.3/classes/Contract.html +0 -15
- package/website/versions/0.3.3/classes/JsonRpcProvider.html +0 -5
- package/website/versions/0.3.3/classes/TinyBig.html +0 -156
- package/website/versions/0.3.3/index.html +0 -123
- package/website/versions/0.3.3/interfaces/Block.html +0 -1
- package/website/versions/0.3.3/interfaces/Transaction.html +0 -1
- package/website/versions/0.3.3/modules.html +0 -32
- package/website/versions/0.4.0/.nojekyll +0 -1
- package/website/versions/0.4.0/assets/highlight.css +0 -71
- package/website/versions/0.4.0/assets/icons.css +0 -1043
- package/website/versions/0.4.0/assets/icons.png +0 -0
- package/website/versions/0.4.0/assets/icons@2x.png +0 -0
- package/website/versions/0.4.0/assets/main.js +0 -52
- package/website/versions/0.4.0/assets/search.js +0 -1
- package/website/versions/0.4.0/assets/style.css +0 -1384
- package/website/versions/0.4.0/assets/widgets.png +0 -0
- package/website/versions/0.4.0/assets/widgets@2x.png +0 -0
- package/website/versions/0.4.0/classes/Contract.html +0 -15
- package/website/versions/0.4.0/classes/JsonRpcProvider.html +0 -6
- package/website/versions/0.4.0/classes/TinyBig.html +0 -156
- package/website/versions/0.4.0/index.html +0 -148
- package/website/versions/0.4.0/interfaces/Block.html +0 -1
- package/website/versions/0.4.0/interfaces/Transaction.html +0 -1
- package/website/versions/0.4.0/modules.html +0 -32
- package/website/versions/0.4.1/.nojekyll +0 -1
- package/website/versions/0.4.1/assets/highlight.css +0 -71
- package/website/versions/0.4.1/assets/icons.css +0 -1043
- package/website/versions/0.4.1/assets/icons.png +0 -0
- package/website/versions/0.4.1/assets/icons@2x.png +0 -0
- package/website/versions/0.4.1/assets/main.js +0 -52
- package/website/versions/0.4.1/assets/search.js +0 -1
- package/website/versions/0.4.1/assets/style.css +0 -1384
- package/website/versions/0.4.1/assets/widgets.png +0 -0
- package/website/versions/0.4.1/assets/widgets@2x.png +0 -0
- package/website/versions/0.4.1/classes/Contract.html +0 -15
- package/website/versions/0.4.1/classes/JsonRpcProvider.html +0 -6
- package/website/versions/0.4.1/classes/TinyBig.html +0 -156
- package/website/versions/0.4.1/index.html +0 -148
- package/website/versions/0.4.1/interfaces/Block.html +0 -1
- package/website/versions/0.4.1/interfaces/Transaction.html +0 -1
- package/website/versions/0.4.1/modules.html +0 -32
- package/website/versions/0.4.2/.nojekyll +0 -1
- package/website/versions/0.4.2/assets/highlight.css +0 -71
- package/website/versions/0.4.2/assets/icons.css +0 -1043
- package/website/versions/0.4.2/assets/icons.png +0 -0
- package/website/versions/0.4.2/assets/icons@2x.png +0 -0
- package/website/versions/0.4.2/assets/main.js +0 -52
- package/website/versions/0.4.2/assets/search.js +0 -1
- package/website/versions/0.4.2/assets/style.css +0 -1384
- package/website/versions/0.4.2/assets/widgets.png +0 -0
- package/website/versions/0.4.2/assets/widgets@2x.png +0 -0
- package/website/versions/0.4.2/classes/Contract.html +0 -15
- package/website/versions/0.4.2/classes/JsonRpcProvider.html +0 -8
- package/website/versions/0.4.2/classes/TinyBig.html +0 -156
- package/website/versions/0.4.2/index.html +0 -199
- package/website/versions/0.4.2/interfaces/Block.html +0 -1
- package/website/versions/0.4.2/interfaces/Transaction.html +0 -1
- package/website/versions/0.4.2/modules.html +0 -34
- package/website/versions/0.4.3/.nojekyll +0 -1
- package/website/versions/0.4.3/assets/highlight.css +0 -71
- package/website/versions/0.4.3/assets/icons.css +0 -1043
- package/website/versions/0.4.3/assets/icons.png +0 -0
- package/website/versions/0.4.3/assets/icons@2x.png +0 -0
- package/website/versions/0.4.3/assets/main.js +0 -52
- package/website/versions/0.4.3/assets/search.js +0 -1
- package/website/versions/0.4.3/assets/style.css +0 -1384
- package/website/versions/0.4.3/assets/widgets.png +0 -0
- package/website/versions/0.4.3/assets/widgets@2x.png +0 -0
- package/website/versions/0.4.3/classes/Contract.html +0 -15
- package/website/versions/0.4.3/classes/JsonRpcProvider.html +0 -8
- package/website/versions/0.4.3/classes/TinyBig.html +0 -159
- package/website/versions/0.4.3/index.html +0 -199
- package/website/versions/0.4.3/interfaces/Block.html +0 -1
- package/website/versions/0.4.3/interfaces/Transaction.html +0 -1
- package/website/versions/0.4.3/modules.html +0 -34
- package/website/versions/0.4.6/.nojekyll +0 -1
- package/website/versions/0.4.6/assets/highlight.css +0 -71
- package/website/versions/0.4.6/assets/icons.css +0 -1043
- package/website/versions/0.4.6/assets/icons.png +0 -0
- package/website/versions/0.4.6/assets/icons@2x.png +0 -0
- package/website/versions/0.4.6/assets/main.js +0 -52
- package/website/versions/0.4.6/assets/search.js +0 -1
- package/website/versions/0.4.6/assets/style.css +0 -1413
- package/website/versions/0.4.6/assets/widgets.png +0 -0
- package/website/versions/0.4.6/assets/widgets@2x.png +0 -0
- package/website/versions/0.4.6/classes/Contract.html +0 -15
- package/website/versions/0.4.6/classes/JsonRpcProvider.html +0 -8
- package/website/versions/0.4.6/classes/TinyBig.html +0 -159
- package/website/versions/0.4.6/index.html +0 -207
- package/website/versions/0.4.6/interfaces/Block.html +0 -1
- package/website/versions/0.4.6/interfaces/Transaction.html +0 -1
- package/website/versions/0.4.6/modules.html +0 -34
- package/website/versions/0.4.8/.nojekyll +0 -1
- package/website/versions/0.4.8/assets/highlight.css +0 -71
- package/website/versions/0.4.8/assets/icons.css +0 -1043
- package/website/versions/0.4.8/assets/icons.png +0 -0
- package/website/versions/0.4.8/assets/icons@2x.png +0 -0
- package/website/versions/0.4.8/assets/main.js +0 -52
- package/website/versions/0.4.8/assets/search.js +0 -1
- package/website/versions/0.4.8/assets/style.css +0 -1413
- package/website/versions/0.4.8/assets/widgets.png +0 -0
- package/website/versions/0.4.8/assets/widgets@2x.png +0 -0
- package/website/versions/0.4.8/classes/Contract.html +0 -15
- package/website/versions/0.4.8/classes/JsonRpcProvider.html +0 -8
- package/website/versions/0.4.8/classes/TinyBig.html +0 -161
- package/website/versions/0.4.8/index.html +0 -207
- package/website/versions/0.4.8/interfaces/Block.html +0 -1
- package/website/versions/0.4.8/interfaces/Transaction.html +0 -1
- package/website/versions/0.4.8/modules.html +0 -34
- package/website/versions/0.4.9-beta.0/.nojekyll +0 -1
- package/website/versions/0.4.9-beta.0/assets/highlight.css +0 -71
- package/website/versions/0.4.9-beta.0/assets/icons.css +0 -1043
- package/website/versions/0.4.9-beta.0/assets/icons.png +0 -0
- package/website/versions/0.4.9-beta.0/assets/icons@2x.png +0 -0
- package/website/versions/0.4.9-beta.0/assets/main.js +0 -52
- package/website/versions/0.4.9-beta.0/assets/search.js +0 -1
- package/website/versions/0.4.9-beta.0/assets/style.css +0 -1413
- package/website/versions/0.4.9-beta.0/assets/widgets.png +0 -0
- package/website/versions/0.4.9-beta.0/assets/widgets@2x.png +0 -0
- package/website/versions/0.4.9-beta.0/classes/Contract.html +0 -13
- package/website/versions/0.4.9-beta.0/classes/JsonRpcProvider.html +0 -8
- package/website/versions/0.4.9-beta.0/classes/TinyBig.html +0 -161
- package/website/versions/0.4.9-beta.0/index.html +0 -207
- package/website/versions/0.4.9-beta.0/interfaces/Block.html +0 -1
- package/website/versions/0.4.9-beta.0/interfaces/JSONABIArgument.html +0 -1
- package/website/versions/0.4.9-beta.0/interfaces/Network.html +0 -3
- package/website/versions/0.4.9-beta.0/interfaces/Transaction.html +0 -1
- package/website/versions/0.4.9-beta.0/modules.html +0 -32
- package/website/versions/0.4.9-beta.1/.nojekyll +0 -1
- package/website/versions/0.4.9-beta.1/assets/highlight.css +0 -71
- package/website/versions/0.4.9-beta.1/assets/icons.css +0 -1043
- package/website/versions/0.4.9-beta.1/assets/icons.png +0 -0
- package/website/versions/0.4.9-beta.1/assets/icons@2x.png +0 -0
- package/website/versions/0.4.9-beta.1/assets/main.js +0 -52
- package/website/versions/0.4.9-beta.1/assets/search.js +0 -1
- package/website/versions/0.4.9-beta.1/assets/style.css +0 -1413
- package/website/versions/0.4.9-beta.1/assets/widgets.png +0 -0
- package/website/versions/0.4.9-beta.1/assets/widgets@2x.png +0 -0
- package/website/versions/0.4.9-beta.1/classes/Contract.html +0 -13
- package/website/versions/0.4.9-beta.1/classes/JsonRpcProvider.html +0 -8
- package/website/versions/0.4.9-beta.1/classes/TinyBig.html +0 -161
- package/website/versions/0.4.9-beta.1/index.html +0 -207
- package/website/versions/0.4.9-beta.1/interfaces/Block.html +0 -1
- package/website/versions/0.4.9-beta.1/interfaces/JSONABIArgument.html +0 -1
- package/website/versions/0.4.9-beta.1/interfaces/Network.html +0 -3
- package/website/versions/0.4.9-beta.1/interfaces/Transaction.html +0 -1
- package/website/versions/0.4.9-beta.1/modules.html +0 -32
- package/website/versions/versions/0.1.2/assets/highlight.css +0 -57
- package/website/versions/versions/0.1.2/assets/icons.css +0 -1043
- package/website/versions/versions/0.1.2/assets/icons.png +0 -0
- package/website/versions/versions/0.1.2/assets/icons@2x.png +0 -0
- package/website/versions/versions/0.1.2/assets/main.js +0 -52
- package/website/versions/versions/0.1.2/assets/search.js +0 -1
- package/website/versions/versions/0.1.2/assets/style.css +0 -1341
- package/website/versions/versions/0.1.2/assets/widgets.png +0 -0
- package/website/versions/versions/0.1.2/assets/widgets@2x.png +0 -0
- package/website/versions/versions/0.1.2/classes/TinyBig.html +0 -4
- package/website/versions/versions/0.1.2/index.html +0 -20
- package/website/versions/versions/0.1.2/modules.html +0 -23
- package/website/versions/versions/0.1.3/assets/highlight.css +0 -64
- package/website/versions/versions/0.1.3/assets/icons.css +0 -1043
- package/website/versions/versions/0.1.3/assets/icons.png +0 -0
- package/website/versions/versions/0.1.3/assets/icons@2x.png +0 -0
- package/website/versions/versions/0.1.3/assets/main.js +0 -52
- package/website/versions/versions/0.1.3/assets/search.js +0 -1
- package/website/versions/versions/0.1.3/assets/style.css +0 -1341
- package/website/versions/versions/0.1.3/assets/widgets.png +0 -0
- package/website/versions/versions/0.1.3/assets/widgets@2x.png +0 -0
- package/website/versions/versions/0.1.3/classes/TinyBig.html +0 -4
- package/website/versions/versions/0.1.3/index.html +0 -53
- package/website/versions/versions/0.1.3/modules.html +0 -23
- package/website/versions/versions/0.1.4/assets/highlight.css +0 -64
- package/website/versions/versions/0.1.4/assets/icons.css +0 -1043
- package/website/versions/versions/0.1.4/assets/icons.png +0 -0
- package/website/versions/versions/0.1.4/assets/icons@2x.png +0 -0
- package/website/versions/versions/0.1.4/assets/main.js +0 -52
- package/website/versions/versions/0.1.4/assets/search.js +0 -1
- package/website/versions/versions/0.1.4/assets/style.css +0 -1341
- package/website/versions/versions/0.1.4/assets/widgets.png +0 -0
- package/website/versions/versions/0.1.4/assets/widgets@2x.png +0 -0
- package/website/versions/versions/0.1.4/classes/TinyBig.html +0 -4
- package/website/versions/versions/0.1.4/index.html +0 -58
- package/website/versions/versions/0.1.4/modules.html +0 -23
|
Binary file
|
|
Binary file
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Contract | essential-eth - v0.4.9-beta.0</title><meta name="description" content="Documentation for essential-eth - v0.4.9-beta.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">essential-eth - v0.4.9-beta.0</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">essential-eth - v0.4.9-beta.0</a></li><li><a href="Contract.html">Contract</a></li></ul><h1>Class Contract</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
-
<p>Only accepts ABIS in JSON format. This allows for stronger typing and assurances of data-types</p>
|
|
3
|
-
</div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { Contract, JsonRpcProvider } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">'essential-eth'</span><span class="hl-1">;</span><br/><span class="hl-3">// UNI airdrop contract</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">contractAddress</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-2">'0x090D4613473dEE047c3f2706764f49E0821D256e'</span><span class="hl-1">;</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">provider</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">JsonRpcProvider</span><span class="hl-1">();</span><br/><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">JSONABI</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> inputs: [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> internalType: </span><span class="hl-2">'uint256'</span><span class="hl-1">,</span><br/><span class="hl-1"> name: </span><span class="hl-2">'index'</span><span class="hl-1">,</span><br/><span class="hl-1"> type: </span><span class="hl-2">'uint256'</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> ],</span><br/><span class="hl-1"> name: </span><span class="hl-2">'isClaimed'</span><span class="hl-1">,</span><br/><span class="hl-1"> outputs: [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> internalType: </span><span class="hl-2">'bool'</span><span class="hl-1">,</span><br/><span class="hl-1"> name: </span><span class="hl-2">''</span><span class="hl-1">,</span><br/><span class="hl-1"> type: </span><span class="hl-2">'bool'</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> ],</span><br/><span class="hl-1"> stateMutability: </span><span class="hl-2">'view'</span><span class="hl-1">,</span><br/><span class="hl-1"> type: </span><span class="hl-2">'function'</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1">]</span><br/><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">contract</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">Contract</span><span class="hl-1">(</span><br/><span class="hl-1"> contractAddress,</span><br/><span class="hl-1"> </span><span class="hl-4">JSONABI</span><span class="hl-1">,</span><br/><span class="hl-1"> provider,</span><br/><span class="hl-1">);</span><br/><br/><span class="hl-1">(</span><span class="hl-5">async</span><span class="hl-1"> () </span><span class="hl-5">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-3">// prints boolean as to whether index 0 has claimed airdrop or not</span><br/><span class="hl-1"> console.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-5">await</span><span class="hl-1"> contract.</span><span class="hl-0">isClaimed</span><span class="hl-1">(</span><span class="hl-4">0</span><span class="hl-1">));</span><br/><span class="hl-1">})()</span><br/><br/>
|
|
4
|
-
</code></pre>
|
|
5
|
-
</dd></dl></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">BaseContract</span><ul class="tsd-hierarchy"><li><span class="target">Contract</span></li></ul></li></ul></section><section class="tsd-panel tsd-kind-class"><h3 class="tsd-before-signature">Indexable</h3><div class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">any</span></div><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
-
<p>The dynamic contract calls on any given contract. Like "isClaimed", "merkleRoot", etc.</p>
|
|
7
|
-
</div></div></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section tsd-is-inherited"><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="Contract.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group tsd-is-inherited"><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">new <wbr/>Contract<span class="tsd-signature-symbol">(</span>addressOrName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, contractInterface<span class="tsd-signature-symbol">: </span><a href="../modules.html#JSONABI" class="tsd-signature-type" data-tsd-kind="Type alias">JSONABI</a>, signerOrProvider<span class="tsd-signature-symbol">: </span><a href="JsonRpcProvider.html" class="tsd-signature-type" data-tsd-kind="Class">JsonRpcProvider</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Contract.html" class="tsd-signature-type" data-tsd-kind="Class">Contract</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from BaseContract.constructor</p><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/classes/Contract.ts#L31">src/classes/Contract.ts:31</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>addressOrName: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
8
|
-
<p>The ethereum address of the smart-contract</p>
|
|
9
|
-
</div></div></li><li><h5>contractInterface: <a href="../modules.html#JSONABI" class="tsd-signature-type" data-tsd-kind="Type alias">JSONABI</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
10
|
-
<p>The JSON ABI of the smart-contract (like <a href="http://api.etherscan.io/api?module=contract&action=getabi&address=0x090d4613473dee047c3f2706764f49e0821d256e&format=raw">http://api.etherscan.io/api?module=contract&action=getabi&address=0x090d4613473dee047c3f2706764f49e0821d256e&format=raw</a>)</p>
|
|
11
|
-
</div></div></li><li><h5>signerOrProvider: <a href="JsonRpcProvider.html" class="tsd-signature-type" data-tsd-kind="Class">JsonRpcProvider</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
12
|
-
<p>An instantiated essential-eth provider</p>
|
|
13
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="Contract.html" class="tsd-signature-type" data-tsd-kind="Class">Contract</a></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="Contract.html" class="tsd-kind-icon">Contract</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="Contract.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>JsonRpcProvider | essential-eth - v0.4.9-beta.0</title><meta name="description" content="Documentation for essential-eth - v0.4.9-beta.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">essential-eth - v0.4.9-beta.0</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">essential-eth - v0.4.9-beta.0</a></li><li><a href="JsonRpcProvider.html">JsonRpcProvider</a></li></ul><h1>Class JsonRpcProvider</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">JsonRpcProvider</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="JsonRpcProvider.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="JsonRpcProvider.html#_rpcUrl" class="tsd-kind-icon">_rpc<wbr/>Url</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="JsonRpcProvider.html#_rpcUrlCounter" class="tsd-kind-icon">_rpc<wbr/>Url<wbr/>Counter</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="JsonRpcProvider.html#getBlock" class="tsd-kind-icon">get<wbr/>Block</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="JsonRpcProvider.html#getNetwork" class="tsd-kind-icon">get<wbr/>Network</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Json<wbr/>Rpc<wbr/>Provider<span class="tsd-signature-symbol">(</span>rpcUrl<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="JsonRpcProvider.html" class="tsd-signature-type" data-tsd-kind="Class">JsonRpcProvider</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/providers/JsonRpcProvider.ts#L13">src/providers/JsonRpcProvider.ts:13</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> rpcUrl: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="JsonRpcProvider.html" class="tsd-signature-type" data-tsd-kind="Class">JsonRpcProvider</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_rpcUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> _rpc<wbr/>Url<a href="#_rpcUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">_rpc<wbr/>Url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/providers/JsonRpcProvider.ts#L11">src/providers/JsonRpcProvider.ts:11</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
-
<p>The URL to your Eth node. Consider POKT or Infura</p>
|
|
3
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="_rpcUrlCounter" class="tsd-anchor"></a><h3 class="tsd-anchor-link">_rpc<wbr/>Url<wbr/>Counter<a href="#_rpcUrlCounter" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">_rpc<wbr/>Url<wbr/>Counter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/providers/JsonRpcProvider.ts#L12">src/providers/JsonRpcProvider.ts:12</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getBlock" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Block<a href="#getBlock" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Block<span class="tsd-signature-symbol">(</span>timeFrame<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"latest"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"earliest"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"pending"</span>, returnTransactionObjects<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Block.html" class="tsd-signature-type" data-tsd-kind="Interface">Block</a><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/providers/JsonRpcProvider.ts#L29">src/providers/JsonRpcProvider.ts:29</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
-
<p>Returns the block requested
|
|
5
|
-
Same as <code>web3.eth.getBlock</code></p>
|
|
6
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>timeFrame: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"latest"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"earliest"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"pending"</span></h5></li><li><h5>returnTransactionObjects: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Block.html" class="tsd-signature-type" data-tsd-kind="Interface">Block</a><span class="tsd-signature-symbol">></span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getNetwork" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Network<a href="#getNetwork" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Network<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Network.html" class="tsd-signature-type" data-tsd-kind="Interface">Network</a><span class="tsd-signature-symbol">></span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/providers/JsonRpcProvider.ts#L66">src/providers/JsonRpcProvider.ts:66</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
7
|
-
<p>Returns the network this provider is connected to</p>
|
|
8
|
-
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/Network.html" class="tsd-signature-type" data-tsd-kind="Interface">Network</a><span class="tsd-signature-symbol">></span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="JsonRpcProvider.html" class="tsd-kind-icon">Json<wbr/>Rpc<wbr/>Provider</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="JsonRpcProvider.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="JsonRpcProvider.html#_rpcUrl" class="tsd-kind-icon">_rpc<wbr/>Url</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="JsonRpcProvider.html#_rpcUrlCounter" class="tsd-kind-icon">_rpc<wbr/>Url<wbr/>Counter</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="JsonRpcProvider.html#getBlock" class="tsd-kind-icon">get<wbr/>Block</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="JsonRpcProvider.html#getNetwork" class="tsd-kind-icon">get<wbr/>Network</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>TinyBig | essential-eth - v0.4.9-beta.0</title><meta name="description" content="Documentation for essential-eth - v0.4.9-beta.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">essential-eth - v0.4.9-beta.0</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">essential-eth - v0.4.9-beta.0</a></li><li><a href="TinyBig.html">TinyBig</a></li></ul><h1>Class TinyBig</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
-
<p>A wrapper around big.js which expands scientific notation and creates a "toHexString" function.
|
|
3
|
-
This is the return type of every operation on ether, wei, etc.</p>
|
|
4
|
-
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">Big</span><ul class="tsd-hierarchy"><li><span class="target">TinyBig</span></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="TinyBig.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section tsd-is-inherited tsd-is-external"><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#c" class="tsd-kind-icon">c</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#e" class="tsd-kind-icon">e</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#s" class="tsd-kind-icon">s</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#DP" class="tsd-kind-icon">DP</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#NE" class="tsd-kind-icon">NE</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#PE" class="tsd-kind-icon">PE</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#RM" class="tsd-kind-icon">RM</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#roundDown" class="tsd-kind-icon">round<wbr/>Down</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#roundHalfEven" class="tsd-kind-icon">round<wbr/>Half<wbr/>Even</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#roundHalfUp" class="tsd-kind-icon">round<wbr/>Half<wbr/>Up</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#roundUp" class="tsd-kind-icon">round<wbr/>Up</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#abs" class="tsd-kind-icon">abs</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#add" class="tsd-kind-icon">add</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#cmp" class="tsd-kind-icon">cmp</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#div" class="tsd-kind-icon">div</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#eq" class="tsd-kind-icon">eq</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#gt" class="tsd-kind-icon">gt</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#gte" class="tsd-kind-icon">gte</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#lt" class="tsd-kind-icon">lt</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#lte" class="tsd-kind-icon">lte</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#minus" class="tsd-kind-icon">minus</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#mod" class="tsd-kind-icon">mod</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#mul" class="tsd-kind-icon">mul</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#plus" class="tsd-kind-icon">plus</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#pow" class="tsd-kind-icon">pow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#prec" class="tsd-kind-icon">prec</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#round" class="tsd-kind-icon">round</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#sqrt" class="tsd-kind-icon">sqrt</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#sub" class="tsd-kind-icon">sub</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#times" class="tsd-kind-icon">times</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#toExponential" class="tsd-kind-icon">to<wbr/>Exponential</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#toFixed" class="tsd-kind-icon">to<wbr/>Fixed</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="TinyBig.html#toHexString" class="tsd-kind-icon">to<wbr/>Hex<wbr/>String</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#toJSON" class="tsd-kind-icon">toJSON</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="TinyBig.html#toNumber" class="tsd-kind-icon">to<wbr/>Number</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#toPrecision" class="tsd-kind-icon">to<wbr/>Precision</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="TinyBig.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#valueOf" class="tsd-kind-icon">value<wbr/>Of</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new <wbr/>Tiny<wbr/>Big<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides Big.constructor</p><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/shared/tiny-big/tiny-big.ts#L9">src/shared/tiny-big/tiny-big.ts:9</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group tsd-is-inherited tsd-is-external"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="c" class="tsd-anchor"></a><h3 class="tsd-anchor-link">c<a href="#c" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">c<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><p>Inherited from Big.c</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:371</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
5
|
-
<p>Returns an array of single digits</p>
|
|
6
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="e" class="tsd-anchor"></a><h3 class="tsd-anchor-link">e<a href="#e" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">e<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from Big.e</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:375</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
7
|
-
<p>Returns the exponent, Integer, -1e+6 to 1e+6 inclusive</p>
|
|
8
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="s" class="tsd-anchor"></a><h3 class="tsd-anchor-link">s<a href="#s" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">s<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from Big.s</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:379</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
9
|
-
<p>Returns the sign, -1 or 1</p>
|
|
10
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a id="DP" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> DP<a href="#DP" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">DP<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from Big.DP</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:109</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
11
|
-
<p>The maximum number of decimal places of the results of operations involving division.
|
|
12
|
-
It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative.</p>
|
|
13
|
-
</div><div><p>0 to 1e+6 inclusive
|
|
14
|
-
Default value: 20</p>
|
|
15
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a id="NE" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> NE<a href="#NE" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">NE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from Big.NE</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:121</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
16
|
-
<p>The negative exponent value at and below which toString returns exponential notation.</p>
|
|
17
|
-
</div><div><p>-1e+6 to 0 inclusive
|
|
18
|
-
Default value: -7</p>
|
|
19
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a id="PE" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> PE<a href="#PE" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">PE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from Big.PE</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:128</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
20
|
-
<p>The positive exponent value at and above which toString returns exponential notation.</p>
|
|
21
|
-
</div><div><p>0 to 1e+6 inclusive
|
|
22
|
-
Default value: 21</p>
|
|
23
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a id="RM" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> RM<a href="#RM" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">RM<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from Big.RM</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:114</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
24
|
-
<p>The rounding mode used in the above operations and by round, toExponential, toFixed and toPrecision.
|
|
25
|
-
Default value: 1</p>
|
|
26
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a id="roundDown" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> round<wbr/>Down<a href="#roundDown" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">round<wbr/>Down<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">0</span></div><aside class="tsd-sources"><p>Inherited from Big.roundDown</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:136</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
27
|
-
<p>Rounds towards zero.
|
|
28
|
-
I.e. truncate, no rounding.</p>
|
|
29
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a id="roundHalfEven" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> round<wbr/>Half<wbr/>Even<a href="#roundHalfEven" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">round<wbr/>Half<wbr/>Even<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">2</span></div><aside class="tsd-sources"><p>Inherited from Big.roundHalfEven</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:146</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
30
|
-
<p>Rounds towards nearest neighbour.
|
|
31
|
-
If equidistant, rounds towards even neighbour.</p>
|
|
32
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a id="roundHalfUp" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> round<wbr/>Half<wbr/>Up<a href="#roundHalfUp" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">round<wbr/>Half<wbr/>Up<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">1</span></div><aside class="tsd-sources"><p>Inherited from Big.roundHalfUp</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:141</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
33
|
-
<p>Rounds towards nearest neighbour.
|
|
34
|
-
If equidistant, rounds away from zero.</p>
|
|
35
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a id="roundUp" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> round<wbr/>Up<a href="#roundUp" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">round<wbr/>Up<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">3</span></div><aside class="tsd-sources"><p>Inherited from Big.roundUp</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:150</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
36
|
-
<p>Rounds away from zero.</p>
|
|
37
|
-
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="abs" class="tsd-anchor"></a><h3 class="tsd-anchor-link">abs<a href="#abs" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">abs<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.abs</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:155</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
38
|
-
<p>Returns a Big number whose value is the absolute value, i.e. the magnitude, of this Big number.</p>
|
|
39
|
-
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="add" class="tsd-anchor"></a><h3 class="tsd-anchor-link">add<a href="#add" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">add<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.add</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:161</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
40
|
-
<p>Returns a Big number whose value is the value of this Big number plus n - alias for .plus().</p>
|
|
41
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
42
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="cmp" class="tsd-anchor"></a><h3 class="tsd-anchor-link">cmp<a href="#cmp" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">cmp<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Comparison</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.cmp</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:167</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
43
|
-
<p>Compare the values.</p>
|
|
44
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
45
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Comparison</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="div" class="tsd-anchor"></a><h3 class="tsd-anchor-link">div<a href="#div" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">div<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.div</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:177</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
46
|
-
<p>Returns a Big number whose value is the value of this Big number divided by n.</p>
|
|
47
|
-
</div><div><p>If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.</p>
|
|
48
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
49
|
-
</dd><dt>throws</dt><dd><p><code>±Infinity</code> on division by zero.</p>
|
|
50
|
-
</dd><dt>throws</dt><dd><p><code>NaN</code> on division of zero by zero.</p>
|
|
51
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="eq" class="tsd-anchor"></a><h3 class="tsd-anchor-link">eq<a href="#eq" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">eq<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.eq</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:183</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
52
|
-
<p>Returns true if the value of this Big equals the value of n, otherwise returns false.</p>
|
|
53
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
54
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="gt" class="tsd-anchor"></a><h3 class="tsd-anchor-link">gt<a href="#gt" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">gt<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.gt</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:189</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
55
|
-
<p>Returns true if the value of this Big is greater than the value of n, otherwise returns false.</p>
|
|
56
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
57
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="gte" class="tsd-anchor"></a><h3 class="tsd-anchor-link">gte<a href="#gte" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">gte<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.gte</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:195</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
58
|
-
<p>Returns true if the value of this Big is greater than or equal to the value of n, otherwise returns false.</p>
|
|
59
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
60
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="lt" class="tsd-anchor"></a><h3 class="tsd-anchor-link">lt<a href="#lt" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">lt<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.lt</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:201</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
61
|
-
<p>Returns true if the value of this Big is less than the value of n, otherwise returns false.</p>
|
|
62
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
63
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="lte" class="tsd-anchor"></a><h3 class="tsd-anchor-link">lte<a href="#lte" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">lte<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.lte</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:207</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
64
|
-
<p>Returns true if the value of this Big is less than or equal to the value of n, otherwise returns false.</p>
|
|
65
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
66
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="minus" class="tsd-anchor"></a><h3 class="tsd-anchor-link">minus<a href="#minus" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">minus<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.minus</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:213</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
67
|
-
<p>Returns a Big number whose value is the value of this Big number minus n.</p>
|
|
68
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
69
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="mod" class="tsd-anchor"></a><h3 class="tsd-anchor-link">mod<a href="#mod" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">mod<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.mod</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:221</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
70
|
-
<p>Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n.</p>
|
|
71
|
-
</div><div><p>The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method.</p>
|
|
72
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is negative or otherwise invalid.</p>
|
|
73
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="mul" class="tsd-anchor"></a><h3 class="tsd-anchor-link">mul<a href="#mul" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">mul<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.mul</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:227</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
74
|
-
<p>Returns a Big number whose value is the value of this Big number times n - alias for .times().</p>
|
|
75
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
76
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="plus" class="tsd-anchor"></a><h3 class="tsd-anchor-link">plus<a href="#plus" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">plus<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.plus</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:233</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
77
|
-
<p>Returns a Big number whose value is the value of this Big number plus n.</p>
|
|
78
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
79
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="pow" class="tsd-anchor"></a><h3 class="tsd-anchor-link">pow<a href="#pow" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">pow<span class="tsd-signature-symbol">(</span>exp<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.pow</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:244</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
80
|
-
<p>Returns a Big number whose value is the value of this Big number raised to the power exp.</p>
|
|
81
|
-
</div><div><p>If exp is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.</p>
|
|
82
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>!pow!</code> if exp is invalid.</p>
|
|
83
|
-
<p>Note: High value exponents may cause this method to be slow to return.</p>
|
|
84
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>exp: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
85
|
-
<p>The power to raise the number to, -1e+6 to 1e+6 inclusive</p>
|
|
86
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="prec" class="tsd-anchor"></a><h3 class="tsd-anchor-link">prec<a href="#prec" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">prec<span class="tsd-signature-symbol">(</span>sd<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, rm<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RoundingMode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.prec</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:254</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
87
|
-
<p>Return a new Big whose value is the value of this Big rounded to a maximum precision of sd
|
|
88
|
-
significant digits using rounding mode rm, or Big.RM if rm is not specified.</p>
|
|
89
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>!prec!</code> if sd is invalid.</p>
|
|
90
|
-
</dd><dt>throws</dt><dd><p><code>!Big.RM!</code> if rm is invalid.</p>
|
|
91
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>sd: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
92
|
-
<p>Significant digits: integer, 1 to MAX_DP inclusive.</p>
|
|
93
|
-
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> rm: <span class="tsd-signature-type">RoundingMode</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
94
|
-
<p>Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).</p>
|
|
95
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="round" class="tsd-anchor"></a><h3 class="tsd-anchor-link">round<a href="#round" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">round<span class="tsd-signature-symbol">(</span>dp<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, rm<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RoundingMode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.round</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:263</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
96
|
-
<p>Returns a Big number whose value is the value of this Big number rounded using rounding mode rm to a maximum of dp decimal places.</p>
|
|
97
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>!round!</code> if dp is invalid.</p>
|
|
98
|
-
</dd><dt>throws</dt><dd><p><code>!Big.RM!</code> if rm is invalid.</p>
|
|
99
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> dp: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
100
|
-
<p>Decimal places, 0 to 1e+6 inclusive</p>
|
|
101
|
-
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> rm: <span class="tsd-signature-type">RoundingMode</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
102
|
-
<p>Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).</p>
|
|
103
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="sqrt" class="tsd-anchor"></a><h3 class="tsd-anchor-link">sqrt<a href="#sqrt" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">sqrt<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.sqrt</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:271</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
104
|
-
<p>Returns a Big number whose value is the square root of this Big number.</p>
|
|
105
|
-
</div><div><p>If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.</p>
|
|
106
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if this Big number is negative.</p>
|
|
107
|
-
</dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="sub" class="tsd-anchor"></a><h3 class="tsd-anchor-link">sub<a href="#sub" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">sub<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.sub</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:277</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
108
|
-
<p>Returns a Big number whose value is the value of this Big number minus n - alias for .minus().</p>
|
|
109
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
110
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="times" class="tsd-anchor"></a><h3 class="tsd-anchor-link">times<a href="#times" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">times<span class="tsd-signature-symbol">(</span>n<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BigSource</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Big</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.times</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:283</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
111
|
-
<p>Returns a Big number whose value is the value of this Big number times n.</p>
|
|
112
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>NaN</code> if n is invalid.</p>
|
|
113
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>n: <span class="tsd-signature-type">BigSource</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Big</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="toExponential" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Exponential<a href="#toExponential" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">to<wbr/>Exponential<span class="tsd-signature-symbol">(</span>dp<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, rm<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RoundingMode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.toExponential</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:298</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
114
|
-
<p>Returns a string representing the value of this Big number in exponential notation to a fixed number of decimal places dp.</p>
|
|
115
|
-
</div><div><p>If the value of this Big number in exponential notation has more digits to the right of the decimal point than is specified by dp,
|
|
116
|
-
the return value will be rounded to dp decimal places using rounding mode Big.RM.</p>
|
|
117
|
-
<p>If the value of this Big number in exponential notation has fewer digits to the right of the decimal point than is specified by dp, the return value will be appended with zeros accordingly.</p>
|
|
118
|
-
<p>If dp is omitted, or is null or undefined, the number of digits after the decimal point defaults to the minimum number of digits necessary to represent the value exactly.</p>
|
|
119
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>!toFix!</code> if dp is invalid.</p>
|
|
120
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> dp: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
121
|
-
<p>Decimal places, 0 to 1e+6 inclusive</p>
|
|
122
|
-
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> rm: <span class="tsd-signature-type">RoundingMode</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
123
|
-
<p>Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).</p>
|
|
124
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="toFixed" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Fixed<a href="#toFixed" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">to<wbr/>Fixed<span class="tsd-signature-symbol">(</span>dp<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, rm<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RoundingMode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.toFixed</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:316</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
125
|
-
<p>Returns a string representing the value of this Big number in normal notation to a fixed number of decimal places dp.</p>
|
|
126
|
-
</div><div><p>If the value of this Big number in normal notation has more digits to the right of the decimal point than is specified by dp,
|
|
127
|
-
the return value will be rounded to dp decimal places using rounding mode Big.RM.</p>
|
|
128
|
-
<p>If the value of this Big number in normal notation has fewer fraction digits then is specified by dp, the return value will be appended with zeros accordingly.</p>
|
|
129
|
-
<p>Unlike Number.prototype.toFixed, which returns exponential notation if a number is greater or equal to 1021, this method will always return normal notation.</p>
|
|
130
|
-
<p>If dp is omitted, or is null or undefined, then the return value is simply the value in normal notation.
|
|
131
|
-
This is also unlike Number.prototype.toFixed, which returns the value to zero decimal places.</p>
|
|
132
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>!toFix!</code> if dp is invalid.</p>
|
|
133
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> dp: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
134
|
-
<p>Decimal places, 0 to 1e+6 inclusive</p>
|
|
135
|
-
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> rm: <span class="tsd-signature-type">RoundingMode</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
136
|
-
<p>Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).</p>
|
|
137
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toHexString" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Hex<wbr/>String<a href="#toHexString" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">to<wbr/>Hex<wbr/>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/shared/tiny-big/tiny-big.ts#L16">src/shared/tiny-big/tiny-big.ts:16</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
138
|
-
<p>Used anytime you're passing in "value" to ethers or web3
|
|
139
|
-
For now, TypeScript will complain that <code>TinyBig</code> is not a <code>BigNumberish</code>. You can // @ts-ignore or call this</p>
|
|
140
|
-
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="toJSON" class="tsd-anchor"></a><h3 class="tsd-anchor-link">toJSON<a href="#toJSON" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">toJSON<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.toJSON</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:367</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
141
|
-
<p>Returns a string representing the value of this Big number.</p>
|
|
142
|
-
</div><div><p>If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.</p>
|
|
143
|
-
<p>The point at which toString returns exponential rather than normal notation can be adjusted by changing
|
|
144
|
-
the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.</p>
|
|
145
|
-
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="toNumber" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Number<a href="#toNumber" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">to<wbr/>Number<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides Big.toNumber</p><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/shared/tiny-big/tiny-big.ts#L19">src/shared/tiny-big/tiny-big.ts:19</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="toPrecision" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Precision<a href="#toPrecision" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">to<wbr/>Precision<span class="tsd-signature-symbol">(</span>sd<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, rm<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">RoundingMode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.toPrecision</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:332</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
146
|
-
<p>Returns a string representing the value of this Big number to the specified number of significant digits sd.</p>
|
|
147
|
-
</div><div><p>If the value of this Big number has more digits than is specified by sd, the return value will be rounded to sd significant digits using rounding mode Big.RM.</p>
|
|
148
|
-
<p>If the value of this Big number has fewer digits than is specified by sd, the return value will be appended with zeros accordingly.</p>
|
|
149
|
-
<p>If sd is less than the number of digits necessary to represent the integer part of the value in normal notation, then exponential notation is used.</p>
|
|
150
|
-
<p>If sd is omitted, or is null or undefined, then the return value is the same as .toString().</p>
|
|
151
|
-
</div><dl class="tsd-comment-tags"><dt>throws</dt><dd><p><code>!toPre!</code> if sd is invalid.</p>
|
|
152
|
-
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> sd: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
153
|
-
<p>Significant digits, 1 to 1e+6 inclusive</p>
|
|
154
|
-
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> rm: <span class="tsd-signature-type">RoundingMode</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
155
|
-
<p>Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).</p>
|
|
156
|
-
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="toString" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>String<a href="#toString" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">to<wbr/>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides Big.toString</p><ul><li>Defined in <a href="https://github.com/Earnifi/essential-eth/blob/48763c3/src/shared/tiny-big/tiny-big.ts#L23">src/shared/tiny-big/tiny-big.ts:23</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a id="valueOf" class="tsd-anchor"></a><h3 class="tsd-anchor-link">value<wbr/>Of<a href="#valueOf" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><li class="tsd-signature tsd-kind-icon">value<wbr/>Of<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from Big.valueOf</p><ul><li>Defined in node_modules/@types/big.js/index.d.ts:358</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
157
|
-
<p>Returns a string representing the value of this Big number.</p>
|
|
158
|
-
</div><div><p>If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.</p>
|
|
159
|
-
<p>The point at which toString returns exponential rather than normal notation can be adjusted by changing
|
|
160
|
-
the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.</p>
|
|
161
|
-
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="TinyBig.html" class="tsd-kind-icon">Tiny<wbr/>Big</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="TinyBig.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#c" class="tsd-kind-icon">c</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#e" class="tsd-kind-icon">e</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#s" class="tsd-kind-icon">s</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#DP" class="tsd-kind-icon">DP</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#NE" class="tsd-kind-icon">NE</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#PE" class="tsd-kind-icon">PE</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#RM" class="tsd-kind-icon">RM</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#roundDown" class="tsd-kind-icon">round<wbr/>Down</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#roundHalfEven" class="tsd-kind-icon">round<wbr/>Half<wbr/>Even</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#roundHalfUp" class="tsd-kind-icon">round<wbr/>Half<wbr/>Up</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static tsd-is-external"><a href="TinyBig.html#roundUp" class="tsd-kind-icon">round<wbr/>Up</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#abs" class="tsd-kind-icon">abs</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#add" class="tsd-kind-icon">add</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#cmp" class="tsd-kind-icon">cmp</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#div" class="tsd-kind-icon">div</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#eq" class="tsd-kind-icon">eq</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#gt" class="tsd-kind-icon">gt</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#gte" class="tsd-kind-icon">gte</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#lt" class="tsd-kind-icon">lt</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#lte" class="tsd-kind-icon">lte</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#minus" class="tsd-kind-icon">minus</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#mod" class="tsd-kind-icon">mod</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#mul" class="tsd-kind-icon">mul</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#plus" class="tsd-kind-icon">plus</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#pow" class="tsd-kind-icon">pow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#prec" class="tsd-kind-icon">prec</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#round" class="tsd-kind-icon">round</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#sqrt" class="tsd-kind-icon">sqrt</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#sub" class="tsd-kind-icon">sub</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#times" class="tsd-kind-icon">times</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#toExponential" class="tsd-kind-icon">to<wbr/>Exponential</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#toFixed" class="tsd-kind-icon">to<wbr/>Fixed</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="TinyBig.html#toHexString" class="tsd-kind-icon">to<wbr/>Hex<wbr/>String</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#toJSON" class="tsd-kind-icon">toJSON</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="TinyBig.html#toNumber" class="tsd-kind-icon">to<wbr/>Number</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#toPrecision" class="tsd-kind-icon">to<wbr/>Precision</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="TinyBig.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-external"><a href="TinyBig.html#valueOf" class="tsd-kind-icon">value<wbr/>Of</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|