Ethan Frey
5c42c10b71
Adjust gas prices for new contracts
2021-09-22 19:19:58 +02:00
Ethan Frey
f5dc720926
Important: add iterator feature support
2021-09-22 19:11:49 +02:00
Ethan Frey
f93461daf4
Use v1.0.0-soon contracts
2021-09-22 19:09:59 +02:00
Alexander Peters
a447ee0c12
Ensure query isolation ( #611 )
...
* Ensure query isolation
* Review feedback
2021-09-14 17:25:05 +02:00
Alex Peters
0589f38ad3
Optimize BalanceQuery
2021-09-13 14:51:14 +02:00
Alex Peters
2fe56bffaf
Fix query handler instantiation
2021-09-13 09:48:31 +02:00
Alex Peters
8f0707a985
Add decorator options
2021-08-30 14:31:46 +02:00
Piotr Husiatyński
b2fc913398
Keeper tests ( #590 )
...
* More keeper tests
x/wasm/keeper tests are extended to test various input validation.
Keeper input is validated before passing to the keeper method when used
within wasmd application. We cannot ensure such validation when this
keeper is used outside of wasmd application. To keep it safe, fully
validate keeper methods input.
hackatom.wasm is loaded into memory during initialization to avoid
reading file in each test separately. Once migrated to go 1.16, embed
package should be used instead.
Run goimport on certain files.
Some comments fixed or removed.
* ensure that creator address is not nil
2021-08-27 15:37:07 +02:00
Ethan Frey
7fbf513d71
Simplify filter method
2021-08-12 14:49:43 +02:00
Ethan Frey
f51ec67099
Remove (now-unneeded) filtering in DefaultWasmVMContractResponseHandler.Handle
2021-08-12 13:36:22 +02:00
Ethan Frey
514985c4f1
Update tests to not expect message event
2021-08-12 13:33:23 +02:00
Ethan Frey
f547bf6630
Filter messages, fix new tests, break older ones
2021-08-12 13:28:58 +02:00
Ethan Frey
29d5e29dc0
One more test for message event without reply
2021-08-12 13:22:36 +02:00
Ethan Frey
35cc9027d8
Add failing testcase showing messages make it into reply block
2021-08-12 13:15:29 +02:00
Alex Peters
0e4916996e
Download cosmwasm contracts
2021-08-11 14:25:43 +02:00
Alex Peters
7b2cfa48ed
Strip message events and reorder
2021-08-11 14:08:56 +02:00
Alex Peters
7bc048e1ed
Add tests for events
2021-08-11 13:12:46 +02:00
Ethan Frey
a579455fdb
Update ibc reflect contract from CosmWasm PR 1046
2021-08-11 11:00:39 +02:00
Alex Peters
e9156be200
Refactor events
2021-08-10 18:19:16 +02:00
Ethan Frey
095ba8cb2f
update test contracts to cosmwasm v0.16.0
2021-08-05 18:53:07 +02:00
Alex Peters
4f22421404
Add contract features to debug logging
...
(cherry picked from commit ccd075200f704c39ae619d36be781092711bbd41)
2021-08-05 15:45:08 +02:00
Ethan Frey
0f6f437b38
Merge pull request #570 from CosmWasm/561-better-ibc-contract-interface
...
Better ibc contract interface
2021-07-29 09:13:59 +02:00
Ethan Frey
12b6eb4fa8
Update gas price
2021-07-28 23:05:05 +02:00
Ethan Frey
b25956d0a1
Use v0.16.0-rc5 contracts
2021-07-28 23:04:02 +02:00
Ethan Frey
0fe0b6223a
Fix relay tests
2021-07-28 22:15:31 +02:00
Ethan Frey
cf854947e9
Change IBCContractKeeper interface, code builds
2021-07-28 22:11:27 +02:00
Ethan Frey
103285337c
Update comments
2021-07-28 13:08:50 +02:00
Ethan Frey
b34290772b
Adjust gas prices in tests
2021-07-28 13:06:09 +02:00
Ethan Frey
774034f862
Make gas register tests more flexible, fix counting bug
2021-07-28 13:04:47 +02:00
Ethan Frey
5149372e53
Change default message size cost to 0
2021-07-28 13:04:47 +02:00
Ethan Frey
c9360f63d1
keeper and types pass tests
2021-07-28 11:24:44 +02:00
Ethan Frey
6bde321974
x/wasm/keeper compiled
2021-07-28 11:24:44 +02:00
Ethan Frey
6f720a4c88
PR Comment: move where truncating address length to 20
2021-07-28 11:18:58 +02:00
Ethan Frey
92850081f0
Fix last tests
2021-07-28 11:18:58 +02:00
Ethan Frey
b8b0f209b2
Update tests (new default contract addr)
2021-07-28 11:18:21 +02:00
Ethan Frey
1330b115d6
Update hash algorithm
2021-07-28 11:18:21 +02:00
Ethan Frey
a428d5c605
Add filtering to logic, tests pass
2021-07-28 10:17:24 +02:00
Ethan Frey
3016668d29
Add failing tests showing nothing filtered now
2021-07-28 10:14:06 +02:00
Ethan Frey
699fbbc215
Changed references in code - 2 broken tests
2021-07-27 14:25:33 +02:00
Ethan Frey
d540e00967
Update with PR comments
2021-07-27 14:15:20 +02:00
Ethan Frey
98b4a12891
Better event tests
2021-07-26 22:20:08 +02:00
Ethan Frey
166f9dc78e
Tests compile and pass
2021-07-26 22:11:29 +02:00
Ethan Frey
be79de6c28
Add error messages on invalid event attributes
2021-07-26 22:05:19 +02:00
Ethan Frey
7d92b4bc13
Fix tests
2021-07-22 15:55:36 +02:00
Ethan Frey
77a38e25ef
Contracts to v0.16.0-rc4, wasmvm to v0.16.0-rc2
2021-07-22 15:53:40 +02:00
Ethan Frey
fec9153e32
Return custom events from IBC calls as well
2021-07-22 10:24:50 +02:00
Ethan Frey
d68f27f4d0
Test for events returned from IBC
2021-07-22 10:24:50 +02:00
Ethan Frey
a464d6b336
Reserve all attributes that start with _
2021-07-22 10:05:23 +02:00
Ethan Frey
81c46ae567
Use _contract_address attribute in emitted events
2021-07-21 22:15:49 +02:00
Ethan Frey
d1f4ae398c
Update to cosmwasm 0.16.0-rc3 contracts, with some fixes
2021-07-21 22:05:45 +02:00