Commit Graph

368 Commits

Author SHA1 Message Date
Alex Peters
5882bf36cd Add cli tests 2021-01-07 14:19:22 +01:00
Alex Peters
35a7b90db6 Validate genesis messages 2021-01-07 14:19:22 +01:00
Alex Peters
be1927bcff Replace viper in cli 2021-01-07 14:19:21 +01:00
Alex Peters
03b31b22dc CLI integration 2021-01-07 14:19:21 +01:00
Alex Peters
57999b26b7 Start with wasm msg in genesis 2021-01-07 14:19:18 +01:00
Alex Peters
70f35d89b9 Fix test condition to work on Linux 2021-01-07 12:28:45 +01:00
Alex Peters
38707cb2b6 Upgrade wasmvm to v0.13.0 2021-01-07 11:58:22 +01:00
Alexander Peters
447fb07f6e Upgrade to cosmos-sdk v0.40.0-rc6 (#354)
* Upgrade to cosmos-sdk v0.40.0-rc6

* Apply workaround for gentx cli issue

* Update changelog
2021-01-06 10:05:36 +01:00
vincent
6acc71218b Fix legacy REST API (#352)
* fix legacy amino register

* add label for '/wasm/code/{codeId}'

* cleanup
2021-01-05 14:07:48 +01:00
Alexander Peters
53bbf96e9e Upgrade to cosmos-sdk v0.40.0-rc5 (#345)
* Upgrade to cosmos-sdk v0.40.0-rc5

* Migrate cli queries

* Update changelog

* Remove DONTCOVER filter for coverage
2020-12-17 14:13:18 +01:00
Alex Peters
b63a14952b Fix param usage issue in genesis import 2020-12-11 14:08:42 +01:00
Alex Peters
2a105ad215 Rename protobuf package 2020-12-03 14:27:58 +01:00
Alexander Peters
eeb3797d04 Merge pull request #322 from CosmWasm/handle_oog_321
Handle panics in query contract smart
2020-11-30 11:25:49 +01:00
Alex Peters
0b7b70363b Use base request data for sender 2020-11-25 11:04:40 +01:00
Alex Peters
1d3bc0ee30 Handle panics in query contract smart 2020-11-24 12:42:39 +01:00
Alexander Peters
b0b407d5f8 Add pagination to grpc queries (#317)
* Start pagination for queries

* Complete pagination support

* Cleanups

* Use GRPC endpoint in CLI queries

* Decode page-key in cli

* Review feedback
2020-11-23 12:56:25 +01:00
Alex Peters
0589dfa76a Review feedback 2020-11-17 13:43:51 +01:00
Alex Peters
6a920852bf Replace sdk.AccAddress with bech32 string 2020-11-17 13:19:54 +01:00
Alex Peters
ca040da925 Integrate wasmcli into wasmd 2020-11-17 12:54:21 +01:00
Alexander Peters
93761eac33 Upgrade wasmvm aka go-cosmwasm (#311)
* Upgrade wasmvm aka go-cosmwasm

* Update x/wasm/README.md

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

* Review feedback

* CircleCI: export GORACE

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2020-11-17 12:53:31 +01:00
Alexander Peters
550c6f5c4f Containerized Protobuf generation (#304)
* Docker container based Protobuf generation and linting

* Add protobuf comments

* Update contrib/prototools-docker/Dockerfile

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

* Update contrib/prototools-docker/Dockerfile

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

* Update x/wasm/internal/types/msg.proto

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

* Update x/wasm/internal/types/types.proto

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

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2020-11-11 12:13:04 +01:00
Alexander Peters
4fb3a50fa7 Support self calling contract on instantiation (#300)
* Support self calling contract on instantiation

* Review feedback

* Review feedback
2020-11-09 09:16:41 +01:00
Alex Peters
2efd962984 Add test to very limit on uncompressed data 2020-11-09 08:50:10 +01:00
Alex Peters
d4824f3d64 Parameter for max wasm code size 2020-11-06 11:47:01 +01:00
Alex Peters
e55cc9f3b5 Reject wasm zips exceeding limit 2020-11-05 16:58:23 +01:00
Alex Peters
bf83c4476c Upgrade to Stargate RC2 2020-11-03 18:20:26 +01:00
Alex Peters
cd3f72e6f1 Review feedback 2020-10-29 13:55:43 +01:00
Alex Peters
c6e0fda492 Cleanup module 2020-10-27 16:03:45 +01:00
Alex Peters
e54fbb9eb8 Better test setup 2020-10-27 15:01:22 +01:00
Alex Peters
5cc3e6dc8b Add GRPC querier and REST gateway 2020-10-27 15:01:22 +01:00
Alex Peters
bcb00d6017 Upgrade to Stargate commits 2020-10-27 15:01:22 +01:00
Ethan Frey
e3c37da8c4 Full test cases over all bounds 2020-10-12 23:16:58 +02:00
Ethan Frey
8ebab06603 Add simple iterator test - all asc/desc 2020-10-12 23:06:43 +02:00
Ethan Frey
80a7cfea84 Manually encode as base64 as auto-encoded doesn't work 2020-10-09 10:32:46 +02:00
Ethan Frey
13169ab629 Base64 encoded return data on wasm raw query REST endpoint 2020-10-08 20:18:51 +02:00
Ethan Frey
aa81939067 Download newest contracts 2020-10-08 20:12:54 +02:00
Ethan Frey
569539c0ff Update to go-cosmwasm v0.11.0-rc and raw query tests pass 2020-10-07 16:50:20 +02:00
Ethan Frey
09d547620b Add test showing WasmQuery::Raw fails for missing responses 2020-10-07 16:45:58 +02:00
Ethan Frey
ad4262a344 Merge pull request #274 from CosmWasm/prevent_overflow
Prevent integer overflow
2020-10-07 14:50:35 +02:00
Ethan Frey
3571625d9a Merge pull request #278 from CosmWasm/fix-staking-queries
Better calculation of Delegation data
2020-10-07 14:49:10 +02:00
Ethan Frey
aabe0b6287 Extra safe we do not write during the query 2020-10-07 14:45:23 +02:00
Ethan Frey
9593e91eea Ensure the DelegationQuery doesn't modify the state 2020-10-07 14:43:19 +02:00
Ethan Frey
e14514444d Minor PR cleanup 2020-10-07 14:35:46 +02:00
Alex Peters
5fbf4ae7c7 Review feedback 2020-10-07 11:59:57 +02:00
Simon Warta
d2d204891c Test nil key and adapt docs 2020-10-07 11:21:22 +02:00
Simon Warta
b4d22c63f8 Test QueryContractState based on binary 2020-10-07 11:17:01 +02:00
Ethan Frey
3143ea67a7 Update app.go for new constructor 2020-10-06 20:59:22 +02:00
Ethan Frey
2a92028b29 Wrote gnarly query to get outstanding rewards for delegator 2020-10-06 20:57:18 +02:00
Ethan Frey
0b290cbab4 Better calculation of Delegation.CanRedelegate 2020-10-06 20:02:06 +02:00
Ethan Frey
eb0f86ebe2 Use json.RawMessage for better encoding of REST interface on raw queries 2020-10-06 19:43:52 +02:00