Commit Graph

118 Commits

Author SHA1 Message Date
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
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
Ethan Frey
d9afc08be6 Simplify handling of simulation in UploadCode given v0.7.1 behavior 2020-03-12 15:30:03 +01:00
Ethan Frey
9dda90cdf6 Update simulation test to the high-level behavior we want - simulate than create for real 2020-03-12 15:29:07 +01:00
Ethan Frey
b389b75fdb Add test failure (cannot create duplicate) 2020-03-12 15:21:16 +01:00
Ethan Frey
fee390d8f4 Return all info with GetCode, not just wasm 2020-03-01 21:20:34 +01:00
Ethan Frey
4bac7d7daf Return null not error when query missing contract 2020-02-29 20:50:38 +01:00
Ethan Frey
79d45f0525 Remove unneeded filter in handleSdkMessage 2020-02-27 20:13:29 +01:00
Ethan Frey
443c6b9614 Also redact Created field when showing contract details 2020-02-27 19:07:56 +01:00
Ethan Frey
340fa4c5b2 Test and fix the sorting and redacting of created at 2020-02-27 19:07:56 +01:00
Ethan Frey
4a2ee1ab9a Store CreatedAt info when instantiating contracts 2020-02-27 19:07:56 +01:00
Ethan Frey
863c5e1439 Cleanup rest - no null init_msg, error on no such contract 2020-02-27 18:08:06 +01:00
Ethan Frey
502e02429e Properly emit events for every sub-message dispatched by x/wasm 2020-02-27 15:46:27 +01:00
Ethan Frey
90192b8257 Cleanup mask tests 2020-02-27 14:47:43 +01:00
Ethan Frey
4ee327ff2c Add updated mask contract 2020-02-27 14:37:59 +01:00
Ethan Frey
4ad9c900a4 Update test contract, escrow to 0.7 version 2020-02-27 12:24:13 +01:00
Ethan Frey
9b8dcefb24 x/wasm compiles, many tests fail 2020-02-27 11:47:30 +01:00
Ethan Frey
c509fb91d8 Remove contract string list, add address info to by code id, filter out init_msg in list 2020-02-26 09:19:26 +01:00
Ethan Frey
61a117db05 Add test label is properly stored 2020-02-25 17:09:42 +01:00
Ethan Frey
ba53b8a9c9 Store Label with new contracts 2020-02-25 17:04:34 +01:00
Ethan Frey
28591613fa querySmart returns base64-encoded contract result
queryRaw and queryAllState return []model object
(array of key-hex and value-base64)
2020-02-10 20:10:45 +01:00
Ethan Frey
d3abcc69c0 Include source and builder in code info return info 2020-02-09 22:12:29 +01:00
Ethan Frey
a458606b17 Add /wasm/code/{codeID}/contracts to rest to get all contract info by codeID 2020-02-09 22:09:48 +01:00
Ethan Frey
cb148f0d13 Sort the contract addresses on queries 2020-02-09 21:59:20 +01:00
Ethan Frey
d3ef507da7 Ensure storage loop throws an ErrorOutOfGas 2020-02-07 19:36:32 +01:00
Ethan Frey
ce50e155ed Test panic and cpuloop handling 2020-02-07 19:26:13 +01:00
Ethan Frey
7d3b0e4ca5 Use base64 encoding for the CosmosMsg::Contract string payload 2020-02-07 19:11:27 +01:00
Ethan Frey
b30f96a551 Use new test contract with failure modes, and fix all calls 2020-02-07 19:04:01 +01:00