Commit Graph

621 Commits

Author SHA1 Message Date
Alex Peters
a543aa53a1 Use callback pattern for contract state iterator 2022-03-25 10:56:21 +01:00
Albert Chon
1c9a1e11b6 fix: close iterators 2022-03-22 19:38:34 -04:00
Ethan Frey
f35326ab27 Ensure SystemError is consistently unredacted 2022-03-09 19:50:55 +01:00
Ethan Frey
2bd4041bb8 Skip a few more tests on m1 2022-03-09 15:50:55 +01:00
Ethan Frey
380301da0b Improve how we redact query errors 2022-03-09 15:49:39 +01:00
Ethan Frey
2700e6b03e Merge pull request #774 from CosmWasm/wasmvm-beta7
Update to wasmvm beta7
2022-03-09 12:28:40 +01:00
Ethan Frey
a2512c49e1 Merge pull request #778 from CosmWasm/public_utils
Make type conversion helpers public
2022-03-09 12:27:40 +01:00
Ethan Frey
c1a72f7f25 Merge pull request #776 from CosmWasm/limit-stargate-querier
Verify Stargate Queries handles properly
2022-03-09 12:26:39 +01:00
Ethan Frey
4c12353e65 cleanup from PR comments 2022-03-09 12:12:06 +01:00
Alex Peters
6a780dc221 Make type conversion helpers public 2022-03-09 08:39:54 +01:00
Ethan Frey
46382135d3 Add deny list for some grpc queries 2022-03-07 22:47:05 +01:00
Ethan Frey
57574497ee Redact query errors 2022-03-07 22:27:19 +01:00
Ethan Frey
feeccb666b Mark a whole lot of tests to skip on m1 as they core dump 2022-03-07 22:09:39 +01:00
pinosu
bfa6a1cc85 Make utils methods public (#773)
Make GetAllCodes and GetAllContracts methods public
2022-03-03 18:19:14 +01:00
Ira Miller
e03c7f4f88 Relaxed address strength restrictions for legacy 20 byte addresses (#772)
* Use the length of contractAddr to support variable length addresses

* Add contract address len to index

* Add changelog entry

* Add tests to assure old address length is still supported

Co-authored-by: Carlton Hanna <channa@figure.com>
2022-03-03 18:16:02 +01:00
Ethan Frey
c3aeb1b6f9 Merge pull request #765 from CosmWasm/759-redact-reply-errors
Redact errors returned in reply
2022-03-02 21:06:19 +01:00
Alex Peters
70ee69a54e Add no admin flag for gov 2022-03-02 14:33:30 +01:00
Alex Peters
b2217a3a44 Fix test setup and assertions 2022-03-02 14:21:00 +01:00
Alex Peters
654fcec122 Revert "Handle nil logger again"
This reverts commit 66ac1f58ce.
2022-03-02 14:15:11 +01:00
Ethan Frey
66ac1f58ce Handle nil logger again 2022-03-02 10:17:23 +01:00
Ethan Frey
3953bdafcc Adjust error string 2022-03-02 10:07:28 +01:00
Ethan Frey
30bb2900c7 Fix submessage tests 2022-02-23 21:42:38 +01:00
Ethan Frey
8f75ad1faf Fix lint error, failing test 2022-02-23 21:13:33 +01:00
Ethan Frey
446c6642c2 Redact errors returned in reply 2022-02-23 20:47:10 +01:00
Alex Peters
0fc0ac585c Replace custom codec with sdk codec 2022-02-21 10:31:36 +01:00
Alexander Peters
e0e6cc4b55 Merge pull request #752 from loloicci/missing-colon
Add missing colons in String of some proposals
2022-02-15 12:24:12 +01:00
loloicci
bc1087db2c add missing colons in String of some proposals 2022-02-10 22:32:17 +09:00
pinosu
07153801fc Add cosmwasm project prefix to REST query paths (#743)
* Add cosmwasm project prefix to REST query paths
2022-02-08 08:34:04 +01:00
Ethan Frey
eb183fabd4 Merge pull request #739 from CosmWasm/proto_upgrade
Update IBC protobuf files
2022-01-31 10:56:42 +01:00
Alex Peters
26c3b672e7 Minor integration support 2022-01-28 12:11:25 +01:00
Alex Peters
f8d25eb930 Update IBC protobufs 2022-01-28 11:58:05 +01:00
Ethan Frey
20ed020fa7 Update documentation 2022-01-24 21:25:48 +01:00
Ethan Frey
fb568e3ef7 Allow sending tokens along with governance wasm_execute proposal 2022-01-24 21:18:29 +01:00
Ethan Frey
6a2a9d0bfa fix tests 2022-01-24 20:23:20 +01:00
Ethan Frey
0a96e26fba Remove RunAs from Migrate proposal 2022-01-24 20:00:01 +01:00
Ethan Frey
82f023ce51 Test execute and sudo proposal handlers 2022-01-24 19:54:26 +01:00
Ethan Frey
8a9771e8f6 Add tests for Rest client 2022-01-24 19:54:26 +01:00
Ethan Frey
fb1240c29a Add rest routes for proposals; 2022-01-24 19:54:26 +01:00
Ethan Frey
027b951f19 Wire up cli for exec and sudo proposal 2022-01-24 19:54:26 +01:00
Ethan Frey
53a44eb4d7 Wire up proposal handlers 2022-01-24 19:54:26 +01:00
Ethan Frey
d227112cc3 Registered new proposal types 2022-01-24 19:54:26 +01:00
Ethan Frey
6bd6ffe90b Compile proto files 2022-01-24 19:54:26 +01:00
Ethan Frey
3acc8c960c Expose SetParams as I will need that for migration code outside of this package 2022-01-24 13:46:18 +01:00
Ethan Frey
1e78fbccf2 Fixed error message capitalization 2022-01-21 10:48:54 +01:00
Ethan Frey
332f4cc9a8 Fix tests, handle genesis init as well 2022-01-21 10:48:34 +01:00
Ethan Frey
acd1cf9dfe Require --no-admin flag if no admin set 2022-01-21 10:48:34 +01:00
Ethan Frey
d60dbd56e0 And properly pin it on governance vote 2022-01-21 10:39:43 +01:00
Ethan Frey
ab12678446 Failing test showing it was not currently pinned 2022-01-21 10:39:43 +01:00
Mauro Lacy
bf84b199a8 Proper systemerror follow-up (#715)
* Add custom NoSuchContract error

* Return custom NoSuchContract error from WasmQuerier

* Add custom NoSuchContract error

* Use custom ErrNoSuchContract error

Map to corresponding wasmvmtypes error

* Handle wrapped errors

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2022-01-20 17:05:10 +01:00
Alexander Peters
b8319aa334 Upgrade to cosmos-sdk v0.45.0 (#717)
* Upgrade to cosmos-sdk v0.44.5

* Upgrade to sdk v0.45.0-rc1

* Fix local test deploy scripts

* Bump to v0.45.0 final release

* Fixed replace to 0.45.0 not rc1

* Fix changed import path since rc1

Co-authored-by: Ethan Frey <ethanfrey@users.noreply.github.com>
2022-01-20 12:47:01 +01:00