Commit Graph

1160 Commits

Author SHA1 Message Date
Alex Peters 23ffdc9dc2
Add capabilities to begin block 2021-10-06 16:35:03 +02:00
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
Alexander Peters b32f53e9a0
Merge pull request #622 from CosmWasm/584-contract_info_query
Handle contract info query
2021-09-27 17:26:26 +02:00
Alex Peters bc785a4f01
Handle contract info query 2021-09-27 12:55:51 +02:00
Alexander Peters fc8d33eddc
Merge pull request #619 from assafmo/patch-1
Fix inconsistent return of contractAddress from keeper/init()
2021-09-23 10:54:47 +02:00
Assaf Morami ed96573c53 Fix inconsistent return of contractAddress from keeper/init()
This will not affect functionality whatsoever, it just makes for a more consistent code, as discussed in issue #616.
2021-09-22 21:59:47 +03:00
Ethan Frey 6bd917268c
Merge pull request #617 from CosmWasm/cosmwasm-1.0-soon
Update to Cosmwasm v1.0.0-soon
2021-09-22 20:05:22 +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
Ethan Frey f93461daf4 Use v1.0.0-soon contracts 2021-09-22 19:09:59 +02:00
Ethan Frey 5822a58cc6 Bump dependencies to wasmvm v1.0.0-soon 2021-09-22 19:07:17 +02:00
Alexander Peters 2900e6c276
Merge pull request #615 from CosmWasm/dependabot/go_modules/github.com/spf13/viper-1.9.0
Bump github.com/spf13/viper from 1.8.1 to 1.9.0
2021-09-22 10:45:34 +02:00
dependabot[bot] 7025a4503c
Bump github.com/spf13/viper from 1.8.1 to 1.9.0
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-20 08:29:09 +00:00
Alex Peters 5491498d03
Update changelog 2021-09-15 13:48:24 +02:00
Alexander Peters e3fb98fc03
Bump Go version to 1.16 (#612)
* Bump Go version to  1.16

* Update required version in README
2021-09-14 17:25:20 +02:00
Alexander Peters a447ee0c12
Ensure query isolation (#611)
* Ensure query isolation

* Review feedback
2021-09-14 17:25:05 +02:00
Alexander Peters 454576a2e8
Merge pull request #609 from CosmWasm/606-bank_query
Optimize BalanceQuery
2021-09-13 18:52:35 +02:00
Alex Peters 0589f38ad3
Optimize BalanceQuery 2021-09-13 14:51:14 +02:00
Alexander Peters 3c0bca7d2a
Merge pull request #607 from CosmWasm/604-fix_query_handler_init
Fix query handler instantiation
2021-09-13 14:04:00 +02:00
Ethan Frey 50815e687f
Merge pull request #605 from CosmWasm/bump_wasmvm_v0.16.1
Bump wasmvm to v0.16.1
2021-09-13 11:30:39 +02:00
Alex Peters 2fe56bffaf
Fix query handler instantiation 2021-09-13 09:48:31 +02:00
Alexander Peters 7c3c406526
Merge pull request #592 from CosmWasm/dependabot/go_modules/github.com/spf13/cast-1.4.1
Bump github.com/spf13/cast from 1.4.0 to 1.4.1
2021-09-13 08:34:13 +02:00
Alexander Peters aba0ebcc22
Merge pull request #603 from CosmWasm/dependabot/go_modules/github.com/rs/zerolog-1.25.0
Bump github.com/rs/zerolog from 1.23.0 to 1.25.0
2021-09-13 08:32:08 +02:00
Alex Peters 02babeac10
Bump wasmvm to v0.16.1 2021-09-13 08:27:13 +02:00
dependabot[bot] cf4690d274
Bump github.com/rs/zerolog from 1.23.0 to 1.25.0
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog) from 1.23.0 to 1.25.0.
- [Release notes](https://github.com/rs/zerolog/releases)
- [Commits](https://github.com/rs/zerolog/compare/v1.23.0...v1.25.0)

---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-10 08:31:09 +00:00
Alexander Peters 4e242e082c
Merge pull request #598 from CosmWasm/decorators
Add decorator options
2021-09-01 09:38:21 +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
Alexander Peters 93e2e66940
Merge pull request #594 from CosmWasm/changelog_v0.18
Update changelog
2021-08-16 14:59:45 +02:00
Alex Peters feeed14309
Update changelog 2021-08-16 13:02:15 +02:00
dependabot[bot] 2e818f2b26
Bump github.com/spf13/cast from 1.4.0 to 1.4.1
Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/spf13/cast/releases)
- [Commits](https://github.com/spf13/cast/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cast
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 08:20:31 +00:00
Ethan Frey 1933578398
Merge pull request #589 from CosmWasm/577-reply-events-2
Filter events before reply block
2021-08-12 14:59:42 +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
Ethan Frey 7b2e84c5e2
Merge pull request #586 from CosmWasm/event_types_440
Refactor events
2021-08-11 15:51:49 +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
Alexander Peters 0d2b291f3a
Merge pull request #585 from husio/shelltools
Use shellcheck and shfmt on contrib scripts
2021-08-09 17:54:09 +02:00
Ethan Frey 59129027a7
Merge pull request #581 from CosmWasm/events-docs
Document event handling
2021-08-09 14:55:17 +02:00
Piotr Husiatyński c30a5a35c5
Use shellcheck and shfmt on contrib scripts
This commit does not introduce any functionality change. It is only
applying suggestions from the shellcheck linter and reformats the code
using shfmt.

Shellcheck is a base shell linter that helps avoiding common shell
script mistakes.
Shfmt formats shell code similar to other Xfmt (i.e. gofmt) tools. No
need to format code manually or argue about the style anymore!

Both tools can be integrated with many editors or IDE.
2021-08-09 14:42:17 +02:00
Ethan Frey e4987f7fa5 Use mode: handle_failure/success attribute on reply 2021-08-09 13:55:48 +02:00
Ethan Frey 79f3fadf45 Remove hex-encoded result attribute 2021-08-09 10:47:05 +02:00
Ethan Frey be3fcf1b73 Remove submsg_start/stop, improve documentation of flattening 2021-08-09 10:46:11 +02:00