Commit Graph

33 Commits

Author SHA1 Message Date
Alexander Peters
58f3776f6e Implement tx counter for transaction info (#621)
* Implement tx counter for transaction info

* Count tx before pre-conditions

* Doc update
2021-09-27 21:53:01 +02:00
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
Alexander Peters
a447ee0c12 Ensure query isolation (#611)
* Ensure query isolation

* Review feedback
2021-09-14 17:25:05 +02:00
Alex Peters
2fe56bffaf Fix query handler instantiation 2021-09-13 09:48:31 +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
f51ec67099 Remove (now-unneeded) filtering in DefaultWasmVMContractResponseHandler.Handle 2021-08-12 13:36:22 +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
Alex Peters
e9156be200 Refactor events 2021-08-10 18:19:16 +02:00
Ethan Frey
12b6eb4fa8 Update gas price 2021-07-28 23:05:05 +02:00
Ethan Frey
b34290772b Adjust gas prices in tests 2021-07-28 13:06:09 +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
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
81c46ae567 Use _contract_address attribute in emitted events 2021-07-21 22:15:49 +02:00
Alex Peters
b0b1fa88bc Upgrade wasmvm v0.15.x 2021-07-07 09:53:03 +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
0dd695c126 Cleanup keeper result types 2021-06-11 12:38:30 +02:00
Alex Peters
470b2dacc7 Test Pinned contract does not loop forever 2021-06-07 11:28:10 +02:00
Alex Peters
2f2d59a151 Allow access to contract address builder 2021-06-01 10:42:07 +02:00
Alexander Peters
3d4b3d184f Upgrade to wasmvm v0.14.0-rc1 (#508)
* Upgrade to wasmvm v0.14.0-rc1

* Update contracts from cosmwasm#910, re-enable test

* Fix parsing in query type

Co-authored-by: Ethan Frey <ethanfrey@users.noreply.github.com>
2021-04-30 08:26:41 +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
Alex Peters
8c7967e5b4 Review feedback 2021-04-27 09:04:58 +02:00
Alex Peters
c377d7110e List contract address without other data 2021-04-23 15:15:54 +02:00
Alex Peters
8ef2d2695b Persist last code update with contract lookup index 2021-04-23 13:29:14 +02:00
Alex Peters
aabc575ff4 Fix InitializePinnedCodes 2021-04-16 13:39:15 +02:00
Alex Peters
9ec97b5de9 Handle wasmvm Burn message 2021-04-13 10:27:23 +02:00
Ethan Frey
84a6c4d7f4 Fix gas prices 2021-04-12 21:49:43 +02:00
Ethan Frey
6189e17271 Add ReplyOn fields to SubMsg, state is bech32 not canonical addresses 2021-04-12 21:39:19 +02:00
Alex Peters
408bba14a5 Extract contract keeper 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