15 Commits

Author SHA1 Message Date
Simon Warta
0351a46d97 Remove Bech32 class 2023-03-07 15:21:09 +01:00
Simon Warta
a08c6bae92 Add lossy parameter to fromUtf8 2022-10-24 16:49:20 +02:00
Simon Warta
64ee51db5b Simplify padded implementation 2022-07-14 13:29:59 +02:00
Simon Warta
f6666ba52c Add missing normalizeBech32 export 2022-04-11 11:25:22 +02:00
Simon Warta
ba2c7bec84 Create normalizeBech32 2022-04-07 08:13:05 +02:00
Simon Warta
5fe6622f46 Test upper case and mixed case bech32 addresses 2022-04-07 08:12:16 +02:00
Simon Warta
cd638dbb13 Adapt test code to the free functions 2022-04-07 08:12:16 +02:00
Milan Steiner
4c8b278c1d
Create toBech32 and fromBech32 in @cosmjs/encoding (#1058)
* Create toBech32 and fromBech32

* Add changes to CHANGELOG.md

* Fix linting

* Update packages/encoding/src/bech32.ts

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update packages/encoding/src/bech32.ts

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

* Update bech32.ts

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2022-02-22 14:05:34 +01:00
Simon Warta
aa804db064 Improve fromHex: avoid deprecated substr, write to output buffer directly 2022-01-29 20:50:26 +01:00
willclarktech
daaeea0ff2
encoding: Remove TextEncoder/TextDecoder fallbacks 2021-06-09 16:37:09 +02:00
Simon Warta
11ea9d30a1 Upgrade prettier to 2.3.0 2021-06-01 09:07:53 +02:00
Simon Warta
da9459553e Let fromRfc3339 return mutable Date type 2021-02-12 14:37:24 +01:00
willclarktech
7e7f6ec364
encoding: Add limit parameters to Bech32.encode and .decode 2020-08-04 17:35:56 +02:00
willclarktech
6d387412af
eslint: Update file-based rule overrides 2020-07-15 13:29:21 +02:00
Simon Warta
3cfad7a541 Add @cosmjs/encoding and @cosmjs/math 2020-06-09 17:46:03 +02:00