Commit Graph

62 Commits

Author SHA1 Message Date
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 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 a428d5c605 Add filtering to logic, tests pass 2021-07-28 10:17:24 +02:00
Ethan Frey 8d73c2d657 IBC Code compiles (non-test) 2021-07-21 21:38:58 +02:00
Alexander Peters c05df881fb
Charge gas for custom event attributes and messages (#539)
* Charge gas for custom event attributes

* Introduce gas register for gas costs

* Review feedback

* Tests and minor updates

* Godoc
2021-06-25 10:00:46 +02:00
Alex Peters 7f5200b9dd
Add cost and api cost options 2021-06-11 11:46:49 +02:00
Alexander Peters 305f13cc0a
Submessage reply can overwrite caller response (#502)
* Reply may overwrite result data

* Fix interface name

* Refacting for tests

* Test response handler

* Fix naked error
2021-04-27 14:00:42 +02:00
Ethan Frey 9ebeb859cf
Update to wasmvm 0.14.0-beta4 (#499)
* Update deps and test contracts to v0.14.0-beta4

* Update to new DistributionMsg, StakingQuery

* Fix existing tests

* Add test for single Validator query
2021-04-27 08:24:38 +02:00
Alex Peters 03bf7b0adf
Introduce new interfaces for extendability 2021-03-24 14:11:42 +01:00
Alexander Peters d9142662c1
Remove internal package (#464)
* Move internal subfolders up

* Fix broken imports and fmt
2021-03-19 09:52:01 +01:00