Commit Graph

207 Commits

Author SHA1 Message Date
Alex Peters
ad520ed1d3 Return init/migration msg with contract history 2020-07-20 17:22:10 +02:00
Alex Peters
a1aa2f5e4c Fix codec for msg 2020-07-20 14:59:23 +02:00
Alex Peters
430da1dbf5 Remove unused arguments 2020-07-20 14:44:19 +02:00
Alex Peters
00adcb4a58 Add contract history query handler 2020-07-20 14:44:19 +02:00
Alex Peters
72a1a45030 Use prefix store for contract history 2020-07-20 14:44:19 +02:00
Alex Peters
1c4d4d8f0e Validate json msg payload 2020-07-20 14:43:23 +02:00
Alex Peters
882d8177b8 Verify genesis import data 2020-07-20 14:42:26 +02:00
Alex Peters
e6e4839875 Genesis export via code prefix 2020-07-20 14:42:26 +02:00
Ethan Frey
65e4e3a9b5 Merge pull request #195 from CosmWasm/update_history
Full history of contract code migrations
2020-07-20 14:29:50 +02:00
Alexander Peters
02a54d33ff Merge pull request #204 from CosmWasm/code_id
Rename ambiguous Code attribute
2020-07-20 10:29:43 +02:00
Alexander Peters
81351d8c52 Merge pull request #200 from CosmWasm/amino_renaming
Follow sdk amino naming convention
2020-07-20 10:21:14 +02:00
Alex Peters
d9143bc927 Polish for go vet 2020-07-17 17:09:14 +02:00
Alex Peters
db464d891b Rename ambiguous Code attribute 2020-07-17 17:02:21 +02:00
Alex Peters
631aa8461c Follow sdk amino naming convention 2020-07-17 15:21:57 +02:00
Alex Peters
a9f31c7cd8 Additional tests and minor updates 2020-07-17 10:40:32 +02:00
Alex Peters
530710e67f Validate InstantiateConfig in CodeInfo 2020-07-17 09:49:43 +02:00
Alex Peters
871896c62b Reset history on import 2020-07-16 17:16:28 +02:00
Alex Peters
f8dbfd12f0 Store code history for contract 2020-07-16 16:49:14 +02:00
Alexander Peters
774f6d7876 Introduce Wasmgovd (#189)
* Introduce wasmgovd; disable wasm proposals with wasmd

* Update changelog

* Setup wasmgov with permission Nobody

* Review feedback
2020-07-16 16:47:44 +02:00
Ethan Frey
7f02f57f21 Increase and document the MaxGas limit 2020-07-15 16:21:40 +02:00
Ethan Frey
3dc9bed3e9 Merge pull request #190 from CosmWasm/gov_events_181
Cleanup event attribute keys
2020-07-15 16:15:21 +02:00
Alex Peters
165e347150 Cleanup event attribute keys 2020-07-15 10:17:34 +02:00
Alex Peters
aff2214391 Better naming for proposal type selections 2020-07-15 09:17:01 +02:00
Alex Peters
4400c4526f Move enabled gov types to app construction 2020-07-14 13:41:12 +02:00
Alex Peters
7903528306 Add code doc 2020-07-14 13:33:17 +02:00
Alexander Peters
9ab18fc46f Add wasm gov proposals to cli (#183)
* Add wasm gov proposals to cli

* Update changelog

* Rework gov proposal rest handlers

* Fix json naming

* Pretty print byte arrays in CLI

* Replace ambiguous cli flag and rest routes

* Minor cli usage doc update
2020-07-14 13:30:41 +02:00
Alex Peters
ad24376b58 Prevent contract funding from blocked addr 2020-07-09 13:37:33 +02:00
Alex Peters
522ba535cb Add configurable control for code instantiation 2020-07-08 16:58:35 +02:00
Alex Peters
85a404691a Add configurable control to upload code 2020-07-08 15:54:02 +02:00
Alexander Peters
8a547179d2 Gov proposal types and handler (#173)
* Gov proposal types and handler

* Review feedback

* Store code proposal and test

* Accept only valid proposals

* Complete proposal types
2020-07-07 17:55:11 +02:00
Alex Peters
82702a0bea Genesis code import not position agnostic 2020-07-01 12:03:25 +02:00
Alex Peters
44696c4a98 Test validateBasic methods 2020-07-01 09:59:40 +02:00
Alex Peters
f7b4acf47c Review comments and additinal tests 2020-06-30 20:37:21 +02:00
Alex Peters
a20e568bff Validate genesis model 2020-06-30 11:09:15 +02:00
Alex Peters
005c8bfe0a Go 1.13 backport 2020-06-29 18:07:03 +02:00
Alex Peters
f71a9bbb13 Ex/Import missing LastInstanceID key 2020-06-29 16:49:45 +02:00
Alex Peters
077d99dbc2 Initial fuzz test 2020-06-29 16:07:58 +02:00
Ethan Frey
5fd8dc363c Update to go-cosmwasm 0.9.0-beta 2020-06-26 16:41:31 +02:00
Ethan Frey
3b96d488c1 Updated with PR comments 2020-06-26 12:06:15 +02:00
Ethan Frey
4dac673884 Add MsgClearAdmin, MsgUpdateAdmin requires admin set 2020-06-26 11:27:34 +02:00
Ethan Frey
b65f47f95a Rename MsgUpdateAdministrator -> MsgUpdateAdmin 2020-06-26 11:11:44 +02:00
Ethan Frey
e0f9319624 Fix test cases 2020-06-23 15:59:36 +02:00
Ethan Frey
3f55bd7ceb Update to go-cosmwasm 0.9.0-alpha3 with new test contracts 2020-06-23 15:55:37 +02:00
Ethan Frey
420f3e2deb Update gas costs in unit tests 2020-06-22 21:07:02 +02:00
Ethan Frey
751ce5a9bf Charge gas per instance created 2020-06-22 21:05:31 +02:00
Ethan Frey
cefd743146 Update test code 2020-06-22 14:00:50 +02:00
Ethan Frey
ac95b583fc Update to handle multiple response types 2020-06-22 13:44:06 +02:00
Ethan Frey
f7d8d6bd6f Update with go-cosmwasm fix 2020-06-15 23:58:21 +02:00
Ethan Frey
ab5fdbb6c9 Merge pull request #141 from CosmWasm/minor_fixes
Minor fixes
2020-06-15 10:01:43 +02:00
Alex Peters
42f544f5c8 Minor fixes 2020-06-12 14:50:59 +02:00