Commit Graph

267 Commits

Author SHA1 Message Date
Alex Peters 7583340d82
Rename to funds in msgs 2021-03-03 13:59:03 +01:00
Alexander Peters 4141cc36f8
Add custom message handler option (#402)
* Add custom message handler option

* Update changelog
2021-02-01 09:14:54 +01:00
Alexander Peters 0f46dee0c4
Implement IBC contract support (#394)
* Implement IBC contract support

* Update changelog

* Adjust tests for new event logic

* Review comment
2021-01-29 11:11:15 +01:00
Ethan Frey 33333daf97 Change protobuf return for store code to return uint64 not string 2021-01-08 17:57:04 +01:00
Alex Peters c64d5d54ba
Refactor to grpc message server 2021-01-08 15:06:51 +01:00
Alex Peters bac2339ae2
Add sanity test for all genesis message types 2021-01-07 14:20:02 +01:00
Alex Peters 83d22a9352
Polish gen msg code and tests 2021-01-07 14:20:00 +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
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 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
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 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 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 2b34ee60cb Return raw stored bytes for raw queries 2020-10-06 17:48:13 +02:00
Ethan Frey 273a192513 Add tests for StakingQuery::{Delegation,BondedDenom} 2020-10-06 13:48:06 +02:00
Ethan Frey 38145e78a7 Cleanup from PR comments 2020-10-06 13:41:24 +02:00
Alex Peters fd9130d7df
Prevent integer overflow 2020-10-06 10:52:23 +02:00
Ethan Frey 2cc85186b4 Add test for StakingQuery::AllDelegations 2020-10-06 09:48:39 +02:00