Commit Graph

1728 Commits

Author SHA1 Message Date
vuong
6d67d5b4f7 Get Contracts by Creator Address (#1021)
* add query to query.proto

* add ContractsByCreatorPrefix in keys.go

* add ContractCreatorThirdIndex to keeper.go

* add querier

* cli

* fix test

* linting

* add key test

* no need to change creator when migrate

* add query test

* minor

* add migrate logic

* add more test

* register migration

* minor

* Update x/wasm/client/cli/query.go

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>

* nits

* remove IterateAllContract

* Update x/wasm/keeper/genesis_test.go

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>

* nit

* nit: func name

* change key

* improve TestIteratorContractByCreator

* fix test

* use IterateContractInfo in migrate2to3

* minor

* move key

* improve test case

* add pagReq in ContractsByCreator query

* ordering query

* add migrate test

* Make ContractsByCreator plural; formatting and minor updates

* Comment why AbsoluteTxPositionLen makes sense

* Migrate 1 to 2

* Set module version

Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>
Co-authored-by: khanh-notional <50263489+catShaark@users.noreply.github.com>
2022-10-20 19:04:41 +02:00
vuong
2abf812a90 Permission (#1050)
* move subset check into 'CanCreateCode'

* testing

* fix logic

* minor

* Code feedback

* clean test

* Revert "clean test"

This reverts commit a59be56b5734fd5153d81d38c41ae91599e3faaf.

* Revert test and make all pass

* Cover instantiation config with tests

* Add gov policy for sanity check

* Test with gov policy for sanity check

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2022-10-20 18:30:27 +02:00
GNaD13
98580347b7 Add test for contract (#1053)
* add test close IBC different contract ibc channel

* fix test send ibc diff channel contract handle

* remove unused comment

* remove expose func HandleContractResponse

* correct comment for test scenario

* fix nit
2022-10-18 17:36:13 +02:00
Ethan Frey
d8ebe64076 Merge pull request #1052 from puneet2019/puneet/cosmos-sdkv45.9
update cosmos-sdk to v45.9, add dragonberry.
2022-10-14 20:23:50 +02:00
puneetmahajan
9aa38c22fb fix test. 2022-10-14 20:30:41 +04:00
puneetmahajan
93d34dd5e0 fix test. 2022-10-14 20:01:21 +04:00
puneetmahajan
7b25435b39 update cosmos-sdk to v45.9, add dragonberry. 2022-10-14 19:44:35 +04:00
Alexander Peters
319a9482a4 Changelog updates (#1024)
* Changelog updates

* Revert module version bump

* Update changelog

* Set release date

* Update changelog

* Update changelog

* Add buf repo tag for releases
2022-10-10 16:14:48 +02:00
Alexander Peters
6ae5aa4ece Merge pull request #1047 from CosmWasm/validate_msg
Validate incoming messages
2022-10-10 16:14:08 +02:00
Alex Peters
67a2ef1650 Validate incoming messages 2022-10-10 15:01:48 +02:00
pinosu
51931206db Add dependencies for protobuf and remove third_party forlder (#1030)
* Add dependencies for proto files and remove third_party forlder

* Pin cosmos-sdk dependency to v0.46.x

* Run "make proto-all" and generate new types files.
2022-10-10 13:07:18 +02:00
dependabot[bot]
79dbbe3e25 Bump bufbuild/buf-setup-action from 1.7.0 to 1.8.0 (#1006)
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-07 08:23:24 +02:00
GNaD13
2fe81b9ea9 Add check version wasm (#1029)
* add check version wasm

* add check wasmExpectedVersion

* update on nit
2022-10-07 08:22:13 +02:00
Alexander Peters
36b38e47f7 Merge pull request #1036 from CosmWasm/1019-make_field_pub
Make SenderPrivKey field public
2022-10-06 13:51:46 +02:00
Pino' Surace
5d21ad91f0 Make SenderPrivKey field public 2022-10-06 12:46:50 +02:00
Alexander Peters
38fdbeecd1 Merge pull request #1033 from CosmWasm/dependabot/github_actions/actions/checkout-3.1.0
Bump actions/checkout from 3.0.2 to 3.1.0
2022-10-06 12:33:44 +02:00
dependabot[bot]
7cb0015c23 Bump actions/checkout from 3.0.2 to 3.1.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.0.2...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 09:57:21 +00:00
Alexander Peters
f95e7c02b3 Merge pull request #1032 from CosmWasm/revert_module_version
Revert module version to 1 as there is no migration anymore
2022-10-04 10:12:29 +02:00
Alex Peters
016e3bc06b Revert module version to 1 as there is no migration 2022-10-04 09:50:31 +02:00
Alexander Peters
84ba3f9f2e Merge pull request #1027 from CosmWasm/minor_doc
Doc ante handler
2022-10-04 09:15:35 +02:00
Alex Peters
24daffd578 Doc ante handler 2022-09-30 12:30:13 +02:00
Alexander Peters
1a87b28539 Merge pull request #1026 from omahs/patch-1
Fix: typos
2022-09-30 09:24:09 +02:00
omahs
aa968fd13d Fix: typos
Fix: typos
2022-09-29 13:37:10 +02:00
Alexander Peters
a76999a1d7 Changelog for v0.29.0-rc1 (#1018)
* Update changelog

* Update CHANGELOG.md

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2022-09-22 18:23:06 +02:00
Alexander Peters
9c5ebbbc4c Implement improvements to new address generation (#1014)
* Revert default instance address generation to classic sequence based method

 Please enter the commit message for your changes. Lines starting

* Start re-adding classic address generator

* Extract address generation to file; minor updates

* Review comments

* Set max salt size

* Support predictable address on instantiation

* Switch attribute order for backwards compatiblity

* Fix salt param check in CLI

* Enable tests

* Add more tests

* Minor fix

* Remove migration

* Better cli description

* Fix init message length prefix

* Add sanity checks to address generation and minor updates

* Reduce max length in tests for CI

* CLI and address generation updates

* Add test vectors

* Minor updates

* Fix cli long doc
2022-09-22 18:22:35 +02:00
Alexander Peters
54fec05c11 Prune vesting accounts balances (#1003)
* Prevent out of gas

* Prune vesting account denoms only

* Fix test state

* Move account exists error  up again

* Review feedback: better naming
2022-09-21 15:13:58 +02:00
Alexander Peters
215e322cd2 Merge pull request #1016 from CosmWasm/dependabot/go_modules/github.com/cosmos/ibc-go/v3-3.3.0
Bump github.com/cosmos/ibc-go/v3 from 3.2.0 to 3.3.0
2022-09-21 10:25:32 +02:00
dependabot[bot]
7fb0a3acdb Bump github.com/cosmos/ibc-go/v3 from 3.2.0 to 3.3.0
Bumps [github.com/cosmos/ibc-go/v3](https://github.com/cosmos/ibc-go) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/cosmos/ibc-go/releases)
- [Changelog](https://github.com/cosmos/ibc-go/blob/v3.3.0/CHANGELOG.md)
- [Commits](https://github.com/cosmos/ibc-go/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: github.com/cosmos/ibc-go/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-21 08:20:56 +00:00
Alexander Peters
83dfbc586c Merge pull request #1011 from CosmWasm/changelog029
Update changelog for v0.29
2022-09-20 17:04:46 +02:00
Alexander Peters
72b526742d Merge pull request #1015 from CosmWasm/proof_proto_fix
Fix path to proofs in protos
2022-09-20 17:04:30 +02:00
Alex Peters
8ee2c9330c Fix path to proofs in protos 2022-09-20 15:54:26 +02:00
Simon Warta
5adb9e9f7f Merge pull request #1012 from CosmWasm/wasmvm-1.1.1
Upgrade to wasmvm 1.1.1
2022-09-20 15:17:10 +02:00
Simon Warta
0ec5b77480 Upgrade .a files to 1.1.1 2022-09-20 13:36:33 +02:00
Simon Warta
76df37d5fd Bump wasmvm to 1.1.1 2022-09-20 13:06:40 +02:00
Simon Warta
a8842ef774 Add libwasmvm version check 2022-09-20 13:06:34 +02:00
Simon Warta
f0072e6ff9 Always run docker-image 2022-09-20 13:05:09 +02:00
Simon Warta
d40888ac8b Fix master -> main in CI config 2022-09-20 12:58:26 +02:00
Alex Peters
bad814e19b Add migration note 2022-09-20 09:02:31 +02:00
Alex Peters
a9d2918000 Update changelog 2022-09-20 08:52:12 +02:00
Alexander Peters
e55db8bc81 Merge pull request #1001 from CosmWasm/896_scenario
Add factory contract scenario
2022-09-19 11:17:14 +02:00
Alexander Peters
9ec809112b Merge pull request #1002 from CosmWasm/942_fix_genmsg
Fix genesis message tooling
2022-09-19 11:14:21 +02:00
Alexander Peters
b99168f505 Merge pull request #1005 from CosmWasm/ibc32_proto
Bump ibc proto to v3.2.0
2022-09-19 11:13:59 +02:00
Alexander Peters
3e6992db0a Merge pull request #1004 from CosmWasm/sim_cleanup
Minor cleanup
2022-09-15 13:30:24 +02:00
Alex Peters
4d81fd44de Bump ibc proto to v3.2.0 2022-09-14 15:56:12 +02:00
Alex Peters
2d896aaefe Minor cleanup 2022-09-14 15:43:29 +02:00
Alex Peters
0b400d6c88 Fix genesis message tooling 2022-09-14 12:34:50 +02:00
Alex Peters
4a1d1b1e42 Add factory contract scenario 2022-09-14 10:42:03 +02:00
Alexander Peters
8fc9855a84 Merge pull request #995 from CosmWasm/876_doc
Link to medium  article
2022-09-12 15:19:44 +02:00
Alexander Peters
30fc73e5f8 Merge pull request #996 from CosmWasm/942_newaddr_generation
Make contract addresses predictable
2022-09-09 14:43:33 +02:00
Alex Peters
ccb2fdd0b6 Make contract addresses predictable 2022-09-09 12:42:41 +02:00