Jaco
30d5f5c118
Additional BN & BigInt negative tests ( #1443 )
2022-03-23 14:18:14 +02:00
Jaco
0859fe4b74
Small util return adjustments ( #1351 )
2022-01-03 13:56:54 +02:00
Jaco
3597a4eb4e
2022 ( #1346 )
2022-01-01 09:26:11 +02:00
Jaco
feae08fc0f
Adjust with tsconfig references ( #1317 )
...
* Adjust with tsconfig references
* tabs -> spaces
* Adjust
* Cleanup spacing
* Adjust
* eslint-specific config
* Bump deps
* Bumps
* Adjust
* Update tests
2021-12-14 08:23:16 +02:00
Jaco
9dfd013755
Dedupes for min/max ( #1297 )
2021-12-08 11:33:29 +02:00
Jaco
0ee4bc81f5
Performance test adjustments ( #1239 )
...
* Performance test adjustments
* testing
* adjust
* alphabet
* Adjust
2021-11-25 09:16:01 +02:00
Jaco
fa5b5bca7e
Additional bigint utilities ( #1194 )
...
* Additional bigint utilities
* Adjust tests
* biTo{Hex, U8a}
* Adjust
* Ordering
* biSqrt
* Fix toU8a
* Extensible BigInt
* Class TS issues....
* Move type def to types
* Update packages/util/src/bi/sqrt.spec.ts
* max/min
* min/max tests
2021-11-16 20:27:19 +02:00
Jaco
ac06f38118
Bump deps ( #1187 )
2021-11-15 14:30:31 +02:00
Jaco
ba0a183bd9
Re-use pre-define BN_{BE, LE}_* constants ( #1175 )
...
* Re-use pre-define BN_{BE, LE}_* constants
* ordering update
* bnMax/bnMin opt
* u8aToHex flatten
2021-11-12 09:19:49 +02:00
Jaco
733d7c1948
Add objectClear & objectSpread ( #1157 )
...
* Add objectClear & objectSpread
* Allow null/undefined as a source
2021-11-04 08:16:55 +02:00
Jaco
a4cefa4bfc
Adjust base library usage of for vs reduce/map ( #1151 )
...
* Adjust base library usage of `for` vs `reduce/map`
* Additional
* Adjust
2021-10-31 08:27:14 +02:00
Jaco
9fc57a23e8
Adjust isHex with template return ( #1103 )
...
* Adjust isHex with template return
* Unneeded assignment
* CHANGELOG
* typo
* Additional HexString types
* Additional HexString inputs
* Use U8aLike as applicable
* typo
* Unneeded type
* HexString outputs
* Export types
2021-09-08 14:38:53 +02:00
Nantian
2e4de2093c
fix bigint type ( #1079 )
2021-08-12 10:00:58 +02:00
Jaco
b58543237f
Sync ss58 ( #1013 )
2021-06-13 09:48:35 +02:00
Jaco
a5f3ce20ae
Fix internal bn/* imports ( #1010 )
2021-06-11 12:02:24 +02:00
Jaco
f2d611e26d
BN util export (& imports adjust) ( #1009 )
...
* BN util export (& imports adjust)
* Fix hexToBn
* Adjusts test
* Move bn export
2021-06-11 11:42:29 +02:00
Jaco
3a98323e8b
Minor readability improvements ( #952 )
...
* Minor readability improvements
* trigger
* Additional
* Additional
2021-04-21 10:31:28 +02:00
Jaco Greeff
654e44aa99
5.6 ( #874 )
...
* 5.6
* bnSqrt opt
* Additional sqrt tests
* Adjust bnSqrt input types
* test-case attributions
2021-02-07 12:14:55 +01:00
Jaco Greeff
1062ace58d
BN_{MILLION, BILLION} ( #866 )
...
* BN_{MILLION, BILLION}
* Add BN(2-9)
* adjust
* inline
* BN_TWO
* BN_ZERO
* BN_ONE gets used in return
2021-02-02 15:20:31 +01:00
Jaco Greeff
f0f0dec8ea
2021 ( #824 )
2021-01-03 11:20:22 +01:00
Jaco Greeff
31426858c6
detectPackage import revert
2020-12-18 11:18:02 +01:00
Jaco Greeff
408a6706b1
Adjust imports ( #791 )
2020-12-09 11:02:55 +01:00
Jaco Greeff
b1a40516c1
Bump dev (import sorting) ( #789 )
2020-12-07 16:13:47 +01:00
Jaco Greeff
af71673c7b
import type ( #782 )
2020-12-01 13:24:37 +01:00
Jaco Greeff
f07d66562b
Remove default exports ( #755 )
...
* Remove default exports
* Cleanup tests
* Exports in util
* Single secp256k1 instance
* Length check
* format check
* encoded lengths
2020-11-08 18:07:31 +01:00
Jaco Greeff
c67c1966d7
Adjust encoder/decoder fallbacks ( #750 )
...
* Adjust encoder/decoder fallbacks
* Dep-dup is functions
* Complexity cleanups
2020-11-08 11:20:22 +01:00
Jaco Greeff
695e19a8a7
Remove polyfills ( #739 )
...
* Remove polyfills
* CHANGELOG
* jestConfig
* Adjust jest
* Revert explicit overrides (from base)
* Fix dev
* 4.0.0
* Bump wasm-crypto
* min/max duplication
* Split tests, update dev
* startChar
* validate params
* complexity?
* secp256k1Verify options
* sign Options
* hasher extraction
2020-11-03 10:29:22 +01:00
Jaco Greeff
3230663ae1
3.7 ( #738 )
...
* 3.7
* Update new rules
* RegExp
* formatBalance cleanups
* Revert
* Formatting
* fill
* format test fix
* cleanups
* Cleanups
* Expand bip39 tests
* Cleanups
* Cleanups
2020-11-01 14:44:14 +01:00
Jaco Greeff
56a79924a0
SPDX ( #687 )
2020-09-17 16:13:39 +02:00
Keith Ingram
56d151fe66
Add BN consts and timeToString ( #610 )
...
* Add BN consts and timeToString
* docs
* lint
* fixes
* lint
* lint
* add tests, ms
* fix
* test
2020-06-09 03:55:21 +12:00
Jaco Greeff
94b058d6a3
Align bnToHex signature with bnToU8a ( #615 )
2020-06-08 14:29:40 +02:00
Jaco Greeff
d4491aeb7f
Small cleanups, u8aConcat optimization ( #607 )
...
* Small cleanups, u8aConcat oprimizations
* Cleanup
* Pre-allocate arrays
* Don't recreate PREFIX
2020-06-01 09:29:44 +02:00
Jaco Greeff
18a202c460
Bump dev w/ eslint ( #603 )
...
* Bump dev w/ eslint
* Mop-up remaining lint issues
* Update stringShorten expectation
2020-05-23 14:23:13 +02:00
Jaco Greeff
d1de30907f
TextEncoder allows non-Uint8Array Buffers ( #596 )
...
* TextEncoder allows non-Uint8Array Buffers
* Add eslintrc to eslintignore
2020-05-11 09:57:00 +02:00
Jaco Greeff
cbec4add88
Bump dev (incl. lint fixes) ( #579 )
...
* Bump dev (incl. lint fixes)
* Fix failures
2020-04-01 21:20:50 +02:00
Jaco Greeff
15c9904c96
Add bnSqrt ( #574 )
...
* Add bnSqrt function
* Bumps
* CHANGELOG
* Add extra case
2020-03-24 07:25:53 +01:00
Jaco Greeff
0f726ce777
Small formatting cleanups ( #554 )
...
* Small formatting cleanups
* Cleanup typos
2020-02-28 12:27:27 +01:00
Jaco Greeff
c60459e303
Add isBigInt & bnToBn support for ( #542 )
...
* Add isBigInt & bnToBn support for
* All BN inputs allow BigInt
2020-02-21 16:54:33 +01:00
Jaco Greeff
241febb707
Bump deps ( #497 )
2020-01-06 13:43:49 +01:00
Jaco Greeff
25fc033728
typescript-eslint 2 ( #462 )
...
* typescript-eslint 2
* startsWith fixes
* padStart/padEnd
2019-08-30 12:24:16 +02:00
Jaco Greeff
5d7ddcb708
Allow bnToBn to handle compact (or any with toBn) ( #449 )
2019-07-27 21:42:06 +02:00
Jaco Greeff
80db504a3b
Swap to using eslint ( #435 )
...
* WIP
* ... and more
* yet more...
* and examples (more-or-less) fixed
* Only problematic promisify left...
* Last batch
* rm config header
* Update
* Use Record
* Bumps
2019-07-14 11:12:46 +02:00
kwingram25
d8b3021776
Fix min max w 1 argument error ( #405 )
...
* Add BN min/max
* fixes
* array 2+ type
* assert
* rv hardcoding
* remove list type
* rv import
* fix error w 1 arg
2019-05-09 17:58:51 +02:00
kwingram25
b0d8c85057
Remove BnList type ( #402 )
...
* Add BN min/max
* fixes
* array 2+ type
* assert
* rv hardcoding
* remove list type
* rv import
2019-05-08 11:38:44 +02:00
kwingram25
9c03ec82ca
Add BN min/max functions ( #401 )
...
* Add BN min/max
* fixes
* array 2+ type
* assert
* rv hardcoding
2019-05-07 18:13:41 +02:00
Jaco Greeff
de67a88f45
Remove /index imports (swap to bare) ( #362 )
2019-03-14 08:41:00 +01:00
Jaco Greeff
1e6eb2c283
Converts tests to TypeScript ( #300 )
2019-02-14 10:48:08 +01:00
Jaco Greeff
89030f41b3
2019 ( #287 )
...
* 2019
* Bump deps
* Cleanup deps
* Update dev (markdown plugin)
* Bump deps (hopefully finally fixes doc gen)
* Fix inherit plugin
2019-01-04 14:50:50 +01:00
Amaury Martiny
74744e694b
Fix negative BNs ( #280 )
...
* Fix bug fromTwos
* Better default values
* Fix bugs
* Fix tests
* Eth uses BE!
* Add back compat
* Fix test
* Remove useless arg
2018-12-20 17:00:57 +01:00
Jaco Greeff
cab0713f33
Make exports consistent ( #269 )
...
* Make exports consistent
* Cleanup trie impl
2018-12-09 13:25:14 +01:00