Commit Graph

217 Commits

Author SHA1 Message Date
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
Alex Peters
21df300847 Verify migration events 2020-06-11 11:38:46 +02:00
Alex Peters
3a317f6fad Add migration integraton tests 2020-06-11 10:37:47 +02:00
Ethan Frey
46b2cadfd0 Update go-cosmwasm and test contracts 2020-06-09 14:27:01 +02:00
Alexander Peters
ebac9aac66 Implement CLI/REST server support for new messages (#131)
* Cleanup ContractInfo type

* Add admin to contract instanciation

* Add cli commands for new TX

* Add rest support for new TX

* Update changelog

* Make optional admin flag for better UX

* Add flag to not accidentally clear admin on update
2020-06-05 15:08:11 +02:00
Alexander Peters
9a16d583d3 Update contract admin (#124)
* Add update administrator

* Review comments
2020-06-05 14:02:01 +02:00
Reuven Podmazo
0ba1e68ff0 fixed test 2020-06-04 16:33:57 +03:00
Reuven Podmazo
675c92fedc added the GasConsumed method to QueryHandler 2020-06-04 16:32:27 +03:00
Alexander Peters
81d8560d41 Migrate contract backend functionality with go-cosmwasm stub impl (#122)
* Start migration server side

* Return migration response and emit events

* Dispatch migrate contract messages

* Rebase to 0.9 and minor updates

* Review feedback

* Update changelog

* Add msg test
2020-06-04 08:54:30 +02:00
Ethan Frey
545681db81 Update tests for new contracts 2020-06-03 17:08:41 +02:00
Ethan Frey
a03f4af61b Update wasm contracts 2020-06-03 17:06:08 +02:00
Reuven Podmazo
da3964a786 updated commit of go-cosmwasm dependency to branch dynamic-gas-metering 2020-05-28 00:54:22 +03:00
Reuven Podmazo
398763ae9a adjusted gas consumption logic in case of errors in go-cosmwasm
see:
https://github.com/CosmWasm/go-cosmwasm/pull/90
https://github.com/CosmWasm/cosmwasm/pull/359
2020-05-25 21:01:05 +03:00
Ethan Frey
a6bcf8c16e Update for new staking queries 2020-05-19 21:34:46 +02:00
Ethan Frey
5dbc443ae0 Import updated test contracts 2020-05-19 21:34:46 +02:00
Ethan Frey
533f4189fa Cleanup 2020-05-18 21:55:34 +02:00
Ethan Frey
eed809c22f Reinvest tests pass! 2020-05-18 21:49:11 +02:00
Ethan Frey
ade03a1d39 Progress on distro wiring for reinvest 2020-05-18 21:08:04 +02:00
Ethan Frey
11f889dac8 Test coverage for unbonded case 2020-05-18 18:15:47 +02:00
Ethan Frey
d80a6ea383 Add more queries to bonded case 2020-05-18 17:38:36 +02:00
Ethan Frey
da57fd357b Test contract bonds properly 2020-05-18 17:28:31 +02:00
Ethan Frey
c4c1f9cf35 Test scaffolding for staking, test init and query callbacks 2020-05-18 15:45:10 +02:00
Ethan Frey
0379db676c Add staking contract, rename mask -> reflect 2020-05-18 13:04:24 +02:00
Ethan Frey
95bd9e8efa Update alias.go, format, clean imports 2020-05-13 22:55:07 +02:00
Ethan Frey
c829fcff5a Rename import from cosmwasm/wasmd to CosmWasm/wasmd 2020-05-13 22:15:40 +02:00
Ethan Frey
27617a7551 Update test contracts and gas prices 2020-05-13 21:19:51 +02:00
Ethan Frey
945067f5c0 Update to 0.8.0-alpha2 2020-05-13 21:16:18 +02:00
Ethan Frey
c691c79042 Calculate staked amount for delegation 2020-05-11 13:22:57 +02:00
Ethan Frey
21fa8a6ba5 Test all CosmosMsg -> sdk.Msg encoding 2020-05-11 12:39:49 +02:00
Ethan Frey
6b88cefe43 Add staking queries with some open TODOs 2020-05-11 11:28:07 +02:00
Ethan Frey
e6dd80493b Implement StakingMsg.Withdraw as two sdk messages 2020-05-11 09:58:16 +02:00
Ethan Frey
b2ba8026ef WasmMsg Encoders can return []sdk.Msg 2020-05-11 09:53:34 +02:00
Ethan Frey
102ac8ed1d Add staking messages except Withdraw 2020-05-11 09:45:35 +02:00
Ethan Frey
8306d89010 Properly throw OutOfGas when we hit storage limits inside the contract 2020-05-07 12:03:31 +02:00
Ethan Frey
b3fe657920 Test custom query callbacks with mask contract 2020-05-07 11:43:57 +02:00
Ethan Frey
001969c70e Add wasm query callback 2020-05-07 11:27:17 +02:00
Ethan Frey
0ca2ff6702 Make QueryPlugins configurable for keeper 2020-05-07 11:08:20 +02:00
Ethan Frey
7caa786d71 Register and demo custom message handlers with mask 2020-05-07 10:40:54 +02:00
Ethan Frey
7b7a293835 Allow configuring custom message handlers in wasm 2020-05-07 10:20:18 +02:00
Ethan Frey
f727cb4aff Load contractAccount less, just use AccAddress 2020-05-07 09:59:32 +02:00
Ethan Frey
3f3eb3ef5c Fix up module level tests, only 2 skipped 2020-05-06 20:00:35 +02:00
Ethan Frey
42d187058e Handle Wasm instantiate 2020-05-06 17:26:36 +02:00
Ethan Frey
ffcab2176a Allow contracts to dispatch contract messages 2020-05-06 17:21:59 +02:00
Ethan Frey
77d1ea4c22 Add bank querier 2020-05-06 13:58:18 +02:00
Ethan Frey
f4294868d6 internal tests pass, with 3-4 skipped for now, escrow contract old 2020-05-06 12:45:23 +02:00
Ethan Frey
91bd23b910 Updated internal/keeper testcontracts to 0.8-dev 2020-05-06 12:09:11 +02:00
Ethan Frey
a53bfdf612 Added stubs for handler, querier to compile code 2020-05-06 11:57:55 +02:00
Ethan Frey
03ad1fb1a0 Update to CosmWasm/go-cosmwasm master 2020-05-06 11:21:15 +02:00