Commit Graph

118 Commits

Author SHA1 Message Date
Simon Warta
dd65786df0 Remove makeSecp256k1SignatureFromFixedLength
in favour of native Secp256k1Signature.fromFixedLength
2020-02-23 22:40:20 +01:00
Simon Warta
dfe1cccadb Implement min/max height filters in CosmWasmClient 2020-02-21 13:57:09 +01:00
Simon Warta
00801b2831 Avoid unnecessary conversion to bytes in postTx
In Cosmos world, transactions are posted as JSON. Move the byte
representation into BCP.
2020-02-21 13:57:01 +01:00
Simon Warta
67b21337ba Rename method to pubkeyToAddress 2020-02-19 10:15:41 +01:00
Simon Warta
ef999070e8 Remove CosmosAddressBech32Prefix/isValidAddress 2020-02-19 10:15:41 +01:00
Simon Warta
9705b98be9 Bring back no-bitwise 2020-02-19 09:42:20 +01:00
Simon Warta
4b7a060a4b Remove tslint 2020-02-19 09:37:05 +01:00
Simon Warta
e53f96439d
Merge pull request #104 from confio/update-test-setup
Update test setup
2020-02-18 22:35:38 +01:00
Simon Warta
64a3273f9d
Merge pull request #103 from confio/unpadded-r-s
Unpad integers r, s in Secp256k1Signature constructor
2020-02-18 22:34:20 +01:00
Simon Warta
cd40206651 Use new token names HASH/ISA/JADE
those don't conflict with other BCP demo tokens
2020-02-18 17:55:46 +01:00
Simon Warta
1f0b6845c8 Implement liveTx 2020-02-18 13:25:26 +01:00
Simon Warta
16b875fac6 Unpad integers r, s in Secp256k1Signature constructor
Closes #100
2020-02-18 13:24:32 +01:00
Simon Warta
a9c605de51 Throw early if transaction fee is missing 2020-02-18 11:23:41 +01:00
Simon Warta
2f41f93d96 Add minHeight/maxHeight support to searchTx 2020-02-18 10:36:58 +01:00
Simon Warta
5091b3d94c Implement CosmWasmConnection.watchAccount 2020-02-17 17:17:41 +01:00
Simon Warta
318dc6f32c Make ERC20s non-optional in parseMsg 2020-02-17 15:43:42 +01:00
Simon Warta
5495828a6c Test ERC20 getter 2020-02-17 15:43:42 +01:00
Simon Warta
f3d24e1acd Add ERC20 support to parseUnsignedTx 2020-02-17 15:41:05 +01:00
Simon Warta
c94a49a1fb Add ERC20 supprt to parseMsg 2020-02-17 15:41:05 +01:00
Simon Warta
b46b7d7cc7 Rename COSMOS_ENABLED to WASMD_ENABLED 2020-02-17 15:35:29 +01:00
Simon Warta
6b522e5b4d Split CosmWasmClient and SigningCosmWasmClient 2020-02-17 13:51:48 +01:00
Simon Warta
87b6556710 Remove restClient from CosmWasmConnection 2020-02-17 12:39:38 +01:00
Simon Warta
fa0fe7e22e Use cosmWasmClient.getAccount in BCP 2020-02-17 12:38:13 +01:00
Simon Warta
f8051b93dc Use BCP type in decodeCosmosPubkey 2020-02-17 12:36:55 +01:00
Simon Warta
4470efbeda Use CosmWasmClient.getBlock 2020-02-16 09:58:15 +01:00
Simon Warta
fa78a7460c Fix broken BlockResponse types 2020-02-16 09:57:26 +01:00
Simon Warta
b80d5c39fc Fix height type 2020-02-16 09:57:26 +01:00
Simon Warta
b15dc96ea6 Test and use findSequenceForSignedTx 2020-02-14 23:10:10 +01:00
Simon Warta
964965ca82 Restore naive implementation for getting sequence 2020-02-14 23:10:10 +01:00
Simon Warta
e4f1252331 Move test into "getTx" block 2020-02-14 23:10:10 +01:00
Simon Warta
c6683f0219 Grounp account data into "faucet" object 2020-02-14 23:10:10 +01:00
Simon Warta
0818542fec Add some fields to TxsResponse 2020-02-14 23:10:09 +01:00
Simon Warta
b56970eeb9 Use CosmWasmClient.queryContractSmart 2020-02-14 22:46:53 +01:00
Simon Warta
da2ce9987e Adapt code to BCP changes 2020-02-14 16:29:53 +01:00
Simon Warta
7d610348c6 Remove broken height argument from RestClient.authAccounts 2020-02-13 12:30:47 +01:00
Simon Warta
d24d6255e1 Improve "can post and get a transaction" test code 2020-02-13 12:30:47 +01:00
Simon Warta
3e5bd7c3c7 Fix handling of non-existent ID in getTx 2020-02-13 12:30:47 +01:00
Simon Warta
7b72afc74c Rename to primarySignerAddress 2020-02-12 15:01:38 +01:00
Simon Warta
1ce8bf3580 Remove unnecessary chainId argument 2020-02-12 14:59:51 +01:00
Simon Warta
84c9ac4406 Create parseAndPopulateTxResponseUnsigned 2020-02-12 14:58:56 +01:00
Simon Warta
580ce6bfaa Create parseTxsResponseUnsigned 2020-02-12 14:55:33 +01:00
Simon Warta
11710d5849 Pull out parseUnsignedTx 2020-02-12 14:51:41 +01:00
Simon Warta
8ad5524b09 Fix memo handling in parseMsg 2020-02-12 14:48:54 +01:00
Simon Warta
4e97af33e6 Import testdata as testdata for readability 2020-02-12 14:48:24 +01:00
Simon Warta
769e6ce9d3 Rename method to parseSignedTx 2020-02-12 14:35:45 +01:00
Simon Warta
8c7b6c0305 Pull out isDefined 2020-02-12 14:22:24 +01:00
Simon Warta
18aa7e33dd Add more information about missing minHeight/maxHeight support 2020-02-12 14:20:21 +01:00
Simon Warta
f27b278014 Use CosmWasmClient.searchTx to implement searchTx 2020-02-12 14:14:49 +01:00
Simon Warta
e66aa14d6d Use CosmWasmClient.getIdentifier 2020-02-12 09:55:48 +01:00
Simon Warta
3c59a68b3a Improve interface of CosmWasmConnection.identifier 2020-02-12 09:55:48 +01:00