Commit Graph

123 Commits

Author SHA1 Message Date
Simon Warta
a12ceb8916 Upgrade IOV Core to v2.0.2 2020-02-14 16:22:42 +01:00
Simon Warta
7d610348c6 Remove broken height argument from RestClient.authAccounts 2020-02-13 12:30:47 +01:00
Simon Warta
fd725998c6 Avoid throwing error when transaction ID does not exist
Before we got "Error: Tx: RPC error -32603 - Internal error: tx
(0000000000000000000000000000000000000000000000000000000000000000) not
found"
2020-02-13 12:30:47 +01:00
Simon Warta
007b4dd362 Add comment on multi request implementation 2020-02-12 14:14:49 +01:00
Simon Warta
1e122a7546 Add CosmWasmClient.searchTx 2020-02-12 14:14:49 +01:00
Simon Warta
331702638b Add 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
Simon Warta
a11b756ea6 Let encodeSecp256k1Signature expect compressed pubkeys 2020-02-12 00:05:54 +01:00
Simon Warta
e2340ba0c1 Fix test description 2020-02-12 00:04:16 +01:00
Simon Warta
41ede3605e Let encodeSecp256k1Signature expect 64 byte signatures 2020-02-12 00:04:13 +01:00
Simon Warta
18740bc8b8 Let Pen.sign return full StdSignature 2020-02-11 19:34:46 +01:00
Simon Warta
4c7124d12c Add format guarantee to PostTxResult.transactionHash 2020-02-11 16:41:02 +01:00
Simon Warta
90e76b7a41 Create type ExecuteResult 2020-02-11 14:32:31 +01:00
Simon Warta
6783b273f8 Pull out explicit fee constants 2020-02-11 14:31:00 +01:00
Simon Warta
83bb1021aa Add CosmWasmClient.postTx 2020-02-11 14:31:00 +01:00
Simon Warta
0e0ff9455f Add and use CosmWasmClient.getNonce 2020-02-11 14:31:00 +01:00
Simon Warta
ae586cc012 Let makeSignBytes take account number and sequence as two args 2020-02-11 14:31:00 +01:00
Simon Warta
b4b36c3a34 Simplify memo handling 2020-02-11 14:31:00 +01:00
Simon Warta
e7df090ea7 Add CosmWasmClient.execute 2020-02-11 14:31:00 +01:00
Simon Warta
66fd0800ff Add first version of CosmWasmClient 2020-02-11 14:31:00 +01:00
Simon Warta
80d0c44616 Move test code to testutils.spec 2020-02-11 14:31:00 +01:00
Simon Warta
a6b2751936 Cleanup CosmosSdkTx 2020-02-11 14:31:00 +01:00
Ethan Frey
3a9cf56635 Use assert to avoid ! 2020-02-11 11:31:27 +01:00
Ethan Frey
13c708e787 Fix malformed REST response/parsing 2020-02-11 10:32:09 +01:00
Ethan Frey
5677976463 Tests pass 2020-02-11 10:32:09 +01:00
Ethan Frey
6f35fad87c WIP: update return types for queries 2020-02-11 10:32:09 +01:00
Simon Warta
fe5acb9056 Extract init.sh 2020-02-10 14:25:33 +01:00
Simon Warta
9bcf9fed8e Use beforeAll to create contract for "contract state" block 2020-02-10 13:08:33 +01:00
Simon Warta
6e83bd6459 Let queryContractSmart return a string 2020-02-10 13:08:32 +01:00
Ethan Frey
77294979bc Ensure metadata is set 2020-02-10 12:46:01 +01:00
Ethan Frey
abe8eeeac3 Return full info on 500 errors 2020-02-10 12:41:47 +01:00
Ethan Frey
efcca8a769 Download wasm code by id works 2020-02-10 12:20:32 +01:00
Ethan Frey
f1e1c76baa Update rest server, pass tests 2020-02-10 12:01:21 +01:00
Simon Warta
4520953e53 Move pubkey prefixes to pubkey.ts 2020-02-09 13:47:47 +01:00
Simon Warta
00c033b669 Use CosmosAddressBech32Prefix explicitely for addresses 2020-02-09 13:43:22 +01:00
Simon Warta
1ed25c1bc0 Test pubkey response in authAccounts 2020-02-09 13:31:29 +01:00
Simon Warta
af5e5a76a9 Add encodeBech32Pubkey 2020-02-09 13:27:53 +01:00
Simon Warta
b2fcb0b105 Move decodeBech32Pubkey to pubkey.ts 2020-02-09 13:16:54 +01:00
Simon Warta
ff78c296d4 Collect faucet data in object 2020-02-09 13:10:35 +01:00
Simon Warta
34c0f1e18f Rename type to CosmosSdkAccount 2020-02-09 13:08:28 +01:00
Simon Warta
a22f035c94 Test full authAccounts return value 2020-02-09 13:05:07 +01:00
Simon Warta
266697a63f Pull out encodeSecp256k1Pubkey 2020-02-08 20:13:24 +01:00
Simon Warta
5bcdf286f6 Fix optional types in MsgStoreCode
If they are unset, signatures are invalid.
2020-02-07 17:32:14 +01:00
Simon Warta
80b49841a6 Let getContractAddress return most recent contract 2020-02-07 17:10:41 +01:00
Simon Warta
2ecf319ab1 Allow unset transferAmount in test code 2020-02-07 16:39:56 +01:00
Simon Warta
c354af68d9 Export logs module from SDK 2020-02-07 16:30:09 +01:00
Simon Warta
8b382d76d5 Add findAttribute to logs module 2020-02-07 16:19:34 +01:00
Simon Warta
cce7ee52e4 Remove unnecessary parseSuccess 2020-02-07 16:15:05 +01:00
Simon Warta
999f0f3830 Make Pen construction async and pubkey synchonous
This avoids a lot of computation, since the HD derivation only happens
once.
2020-02-07 09:24:40 +01:00
Simon Warta
3d2fe5fd03 Use Pen in RestClient tests 2020-02-07 00:33:30 +01:00