Commit Graph

50 Commits

Author SHA1 Message Date
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
34e0220e03 Sort exports 2021-12-01 11:58:57 +01:00
Simon Warta
d6fa413e61 Move StdTx, isStdTx and makeStdTx to @cosmjs/amino 2021-11-25 22:46:30 +01:00
Simon Warta
0e63ee5cc6 Let coin/coins take amount as number | string 2021-11-09 17:51:12 +01:00
Simon Warta
86f5f56af4 Test decodeAminoPubkey with multisig 2021-09-30 22:23:47 +02:00
Hleb Albau
ab7e4f444b #882 fix review comments p2 2021-09-30 15:11:33 +02:00
Hleb Albau
98333c5850 #882 fix review comments 2021-09-30 12:00:51 +02:00
Hleb Albau
aeedeb1c5d #882 Decode multisig pubkey 2021-09-29 20:30:09 +02:00
Simon Warta
9a70faad3a Fix variable name testgroup*Address to testgroup*PubkeyBech32 2021-09-29 13:27:55 +02:00
Simon Warta
24e328077e Add Stargate-ready parseCoins 2021-07-21 09:59:38 +02:00
Simon Warta
11ea9d30a1 Upgrade prettier to 2.3.0 2021-06-01 09:07:53 +02:00
willclarktech
c6e72a50e8
amino/proto-signing: Increase ops in default KDF options 2021-05-11 14:28:17 +02:00
bartmacbartek
47220aa12f Fix default options merging in Secp256k1HdWallet 2021-05-06 13:41:44 +02:00
willclarktech
c0c8061ab1
amino: Add tests for deserialising wallets with multiple accounts 2021-04-20 17:28:56 +02:00
willclarktech
b5b15d234b
amino: Simplify Secp256k1HdWallet serialization 2021-04-20 17:26:10 +02:00
willclarktech
5c39bc9a5a
amino: Add support for multiple accounts to Secp256k1HdWallet 2021-04-20 16:41:09 +02:00
willclarktech
25e0ee4e18
amino: Add rawEd25519PubkeyToRawAddress helper 2021-04-06 18:43:47 +02:00
willclarktech
646fe7cc55
amino: Rearrange Secp256k1HdWallet options 2021-04-06 16:39:31 +02:00
willclarktech
41f6081363
amino: Transfer coins helpers from launchpad 2021-03-24 18:44:54 +01:00
willclarktech
6d7f3d279b
amino: Move base64Matcher into testutils 2021-03-24 18:05:47 +01:00
willclarktech
dde8334f21
amino: Add exports for paths/wallets 2021-03-24 17:14:57 +01:00
willclarktech
e4283c36de
amino: Transfer wallets from launchpad 2021-03-24 17:14:57 +01:00
willclarktech
38a650f307
amino: Transfer paths from launchpad 2021-03-24 17:14:57 +01:00
willclarktech
403286261d
Tidy up refactor mistakes 2021-03-24 16:55:23 +01:00
willclarktech
651af7d653
amino: Transfer signdoc functions from launchpad 2021-03-24 16:55:21 +01:00
willclarktech
26d3ed6506
amino: Export Coin and StdFee 2021-03-24 16:55:19 +01:00
willclarktech
f616abc4d8
amino: Transfer signer interfaces from launchpad 2021-03-24 16:55:18 +01:00
willclarktech
3a5877452e
amino: Export signature functions/type 2021-03-23 17:41:46 +01:00
willclarktech
a75b299ec5
amino: Copy signature encoding from launchpad 2021-03-23 17:40:48 +01:00
Simon Warta
8e9cd145cd Use hex representations for bytes 2021-03-23 14:28:07 +01:00
Simon Warta
599113da83 Add more ordering tests 2021-03-23 14:28:06 +01:00
Simon Warta
e81cb3b017 Inprove createMultisigThresholdPubkey threshold testing 2021-03-23 13:37:26 +01:00
Simon Warta
2655531891 Fix typos 2021-03-23 13:37:26 +01:00
Simon Warta
e0716fac21 Use locale independent sorting 2021-03-23 13:37:26 +01:00
Simon Warta
5fe0f5582e Check threashold against number of pubkeys 2021-03-23 13:37:25 +01:00
Simon Warta
7255af4186 Create createMultisigThresholdPubkey 2021-03-23 13:37:25 +01:00
Simon Warta
1a533fc24d Create addresses module 2021-03-23 13:37:25 +01:00
Simon Warta
843b82badd Create pubkeyToAddress in @cosmjs/amino 2021-03-23 13:37:24 +01:00
Simon Warta
18fcd841a4 Let multisig test test multisig 2021-03-23 13:37:24 +01:00
Simon Warta
3fb79b3dd7 Add rawSecp256k1PubkeyToRawAddress to @cosmjs/amino 2021-03-23 13:37:24 +01:00
Simon Warta
4f5d919c2c Create pubkeyToRawAddress and make it work for multisig accounts 2021-03-23 13:37:24 +01:00
Simon Warta
09ce133331 Replace switch with type checks 2021-03-23 13:37:24 +01:00
Simon Warta
7819836387 Create test with custom sorting 2021-03-23 13:37:24 +01:00
Simon Warta
ae97ce76a4 Add more clarity on encodeUvarint 2021-03-23 13:37:24 +01:00
Simon Warta
feef588431 Add 2/2 multisig 2021-03-23 13:37:24 +01:00
Simon Warta
99e1ac36b8 Add support for multisig in encodeAminoPubkey 2021-03-23 13:37:24 +01:00
Simon Warta
61aa989fb3 Add MultisigThresholdPubkey/isMultisigThresholdPubkey 2021-03-23 13:37:23 +01:00
Simon Warta
6190ca5c64 Cleanup prefix handling for decodeAminoPubkey 2021-03-23 13:37:23 +01:00
Simon Warta
810389d784 Generalize pubkey types 2021-03-23 13:37:23 +01:00
Simon Warta
f8cf23766c Pull out pubkey functionality into @cosmjs/amino 2021-03-23 13:37:18 +01:00