Commit Graph

212 Commits

Author SHA1 Message Date
Alexander Peters
e714fdf3b4 Charge gas to unzip wasm code (#898)
* Charge gas for unzip wasm code

* Add uncompress test

* Apply review feedback

* Add testcase to uncompress spec
2022-08-31 16:17:03 +02:00
Alexander Peters
b62b7ac94a Merge pull request #905 from shiki-tak/remove-unnecessary-err-check
Remove unnecessary error check
2022-08-24 11:44:56 +02:00
Jacob Gadikian
4875db2055 depracte-ioutil (#934) 2022-08-24 10:21:16 +02:00
Alex Peters
20fb936205 Fix keeper test 2022-08-24 08:54:57 +02:00
Alexander Peters
9d63bc061c Merge pull request #901 from CosmWasm/access_config
Restrict code access config modifications
2022-08-23 17:03:31 +02:00
Alexander Peters
00082a25b8 Make app keepers public (#951)
* use ecosystem convention for keeper names in app.go

* fix linting

* Revert variable renaming

* Deprecate attribute access helper

* Formatting only

* Replace usage of deprecated test helper

* Address linter report

Co-authored-by: faddat <jacobgadikian@gmail.com>
2022-08-23 17:01:04 +02:00
Ethan Frey
f14c46988a Merge pull request #900 from CosmWasm/migration_fix
Prevent migration to a restricted code
2022-08-15 16:53:06 +02:00
Ethan Frey
c25550d775 put sorting fix next to event filtering 2022-07-29 08:42:47 +02:00
Ethan Frey
a697c70650 Code cleanup suggested by @peterbourgon 2022-07-29 08:34:23 +02:00
Alex Lynham
393f49e5cb Fix imports 2022-07-29 08:31:56 +02:00
Alex Lynham
e08c8a37c8 Add sorting fix from terra devs 2022-07-29 08:31:56 +02:00
Ethan Frey
f5804fc57d Merge pull request #917 from CosmWasm/v0.27.0-dont-pass-non-wasm-events-to-reply
Don't pass non-wasm events to reply()
2022-07-29 08:27:47 +02:00
Ethan Frey
ce1cf7446d Fix tests in keeper 2022-07-29 08:12:07 +02:00
Assaf Morami
9671a21430 Oops 2022-07-28 12:53:28 +03:00
Assaf Morami
ee44cc06d0 Don't pass non-wasm events to reply()
Output events are not part of consensus and can be non-deterministic
2022-07-28 12:52:06 +03:00
shiki.takahashi
29340b692a Remove unnecessary error check 2022-07-19 16:24:34 +09:00
Alex Peters
e5ff7c195a Restrict code access config modifications 2022-07-08 14:28:45 +02:00
Alex Peters
ffd8a3c871 Prevent migration to a restricted code 2022-07-08 13:13:21 +02:00
Alexander Peters
2a9c5c1ea5 Fix wasm simulations (#870)
* Fix wasm simulations + make functions compatible with tgrade

* Fix lint issues

* Fix simulation setup

* Make simulations store msg pass

* Use default values params to make operations succeed

* Normalize wasm store

* Add simulations to circleci config

* Run simulation in temp dir

* Store sim logs

* Increase circleci machine type

* Extract reflect contract api into helper

* Add execute msg to simulations

* Embed refect wasm contract

Co-authored-by: Pino' Surace <pino.surace@live.it>
2022-05-31 10:07:16 +02:00
Simon Warta
2390ea15a0 Create query stack size limit 2022-05-19 10:35:27 +02:00
Ethan Frey
2b0b1677df Prepare release notes for 0.27 (#860)
* Add warning notes about intertx

* Update CHANGELOG

* Run all tests on m1 as it is stable now
2022-05-17 13:13:57 +02:00
Ethan Frey
76a5053fa6 Expose ibc v3 entry points 2022-05-16 15:42:59 +02:00
Simon Warta
4851278090 Use wasmvm import consistently 2022-05-16 14:19:06 +02:00
Simon Warta
53e735d76e Adapt codebase to new IBC3ChannelOpenResponse return value 2022-05-16 14:17:19 +02:00
Ethan Frey
27d30513b2 Add a few more tests as requested in review 2022-05-10 16:25:11 +02:00
Ethan Frey
a67dae70b7 Enforce permission less permissive than default 2022-05-10 16:09:35 +02:00
Ethan Frey
bff3aff95b Run new "make format" 2022-05-09 22:34:26 +02:00
jhernandezb
3ade8159b6 update proto field name 2022-05-09 11:35:37 -06:00
jhernandezb
30f05722f1 address code review comments 2022-05-09 11:35:37 -06:00
jhernandezb
01157fa914 add tests 2022-05-09 11:35:37 -06:00
jhernandezb
cd76a61bcf update UpdateInstantiateConfigProposal proto definition 2022-05-09 11:35:37 -06:00
jhernandezb
72710effca add UpdateInstantiateConfig gov proposal 2022-05-09 11:35:37 -06:00
Alexander Peters
96a9b5a303 Bump wasmvm to v1.0.0-rc.0 (#844)
* Bump wasmvm to v1.0.0-rc.0

* Fix linter warning

* Replace deprecated types

Co-authored-by: Ethan Frey <ethanfrey@users.noreply.github.com>
2022-05-06 14:54:02 +02:00
Jorge Hernandez
cd3c9ddddb Add instantiate permission to CodeInfoResponse (#836)
* Add instantiate permission to CodeInfoResponse

* add query code info test

* add codes query response test
2022-05-05 15:20:51 +02:00
Ethan Frey
5c82f4edd0 Fixups 2022-05-04 10:34:16 +02:00
vuong
f79a46b396 update test 2022-05-04 10:34:16 +02:00
Jacob Gadikian
f740dae543 push smol thing to github so can work with Mr. Vuong 2022-05-04 10:34:15 +02:00
Ethan Frey
1253c8e360 Merge branch 'main' into add-state-sync 2022-05-04 10:18:53 +02:00
Alex Peters
a5695eeda1 Fix linter warnings 2022-05-03 14:34:20 +02:00
Alex Peters
297a646c95 Minor test update 2022-05-03 14:05:27 +02:00
Alex Peters
6b4accb3b6 Add snapshotter integration tests and minor cleanup 2022-05-03 13:48:30 +02:00
Jorge Hernandez
591ff72868 fix: allow no admin in instantiation through proposal (#828)
* fix: allow no admin in instantiation through proposal

* add test for invalid amin address
2022-05-02 15:59:40 +02:00
Alexander Peters
bfb4d31fca Consolidate MaxWasmSize constraints into a single var (#826)
* Convert MaxWasmSize to var

Also removes redundant maxWasmSize param

* Convert MaxWasmSize to int

* Update CHANGELOG

* Complete max wasm size changes

* Update compile flags

Co-authored-by: Cole Brown <bigswim@gmail.com>
2022-04-29 18:54:06 +02:00
Ethan Frey
cdcb18d3ad Cleanup from Simon's comments 2022-04-28 20:55:01 +02:00
Ethan Frey
a154a9a124 SRemove loading history until I can fix tests here 2022-04-28 15:43:52 +02:00
Ethan Frey
7663d6ffdd Cannot commit in my test cases to load from proper height 2022-04-28 15:39:16 +02:00
Ethan Frey
d8426fbc1e Updates inspired by @giansalex branch 2022-04-28 15:26:23 +02:00
Ethan Frey
9705a8dc9c Address @giansalex PR comments 2022-04-27 21:45:31 +02:00
Ethan Frey
fea9d393f1 Basic tend to end test for no errors 2022-04-27 21:41:27 +02:00
Ethan Frey
a5dd494aaa Start testing snapshots 2022-04-27 21:30:32 +02:00