Commit Graph

1728 Commits

Author SHA1 Message Date
dependabot[bot]
e7b0a53e5d Bump actions/checkout from 3.1.0 to 3.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.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.1.0...v3.2.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-12-13 08:10:19 +00:00
pinosu
f3ebd929cc Remove genesis msgs (#1104)
* Remove genesis msgs

* Remove genesis msgs cli

* Refactor InitGenesis function
2022-12-09 13:20:49 +01:00
pinosu
c5abd338e3 Add gov proposal simulations (#1107)
* Add weights

* Add helper functions to create new proposals

* Add MigrateContractProposal simulation

* Add SudoContractProposal simulation

* Add PinContractProposal simulation

* Add UnpinContractProposal simulation

* Add UpdateInstantiateConfigProposal simulation

* Add StoreAndInstantiateContractProposal simulation

* Comment out failing simulations

* Fix comments
2022-12-09 12:40:34 +01:00
pinosu
299d4223af Enable key name usage for admin (#1103) 2022-12-06 10:51:38 +01:00
Alexander Peters
ef12d4bf36 Merge pull request #1117 from apollo-sturdy/main
fix: sort coins in `ConvertWasmCoinsToSdkCoins`
2022-12-05 10:20:24 +01:00
Alexander Peters
c5a7e5ebd4 Merge pull request #1113 from CosmWasm/close-test-dbs
Testing: Close test dbs
2022-12-05 09:07:39 +01:00
GNaD13
bc00a6bae3 Add proposal instantiate 2 (#1106)
* add proposal instantiate 2

* add basic validate test

* test case for validate basic

* add integration test

* add cli

* fix lint

* add new func init proposal

* make format
2022-12-02 15:04:32 +01:00
Alexander Peters
a347ace2ff Changelog for v0.30.0 (#1097)
* Update changelog

(cherry picked from commit e4a2bfb5616c4ce3ddbc994a17c20b6de5fccad1)

* Update changelog

* Update changelog

* Update changelog

* Update changelog

* Update versions

* Set release date
2022-12-02 14:26:01 +01:00
Sturdy
f7be3ba521 fix: sort coins in ConvertWasmCoinsToSdkCoins 2022-12-02 13:31:51 +01:00
Alex Peters
52ecb85f78 Close test dbs 2022-11-30 17:48:17 +01:00
Orkun Külçe
a589fe91e8 feat: Provide source, builder and codehash information in store code proposal message (#1072)
* Provide source, builder and codehash information in store code proposal message

* Make linter happy

* Update x/wasm/simulation/proposals.go

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

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

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

* Bump github.com/cosmos/gogoproto from 1.4.2 to 1.4.3

Bumps [github.com/cosmos/gogoproto](https://github.com/cosmos/gogoproto) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/cosmos/gogoproto/releases)
- [Changelog](https://github.com/cosmos/gogoproto/blob/main/CHANGELOG.md)
- [Commits](https://github.com/cosmos/gogoproto/compare/v1.4.2...v1.4.3)

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

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

* Update authz grant examples

* Enable larger wasm bytecode upload for gov proposals (#1095)

* Enable larger wasm bytecode upload for gov proposals

* Set max proposal wasm code size to 3MB

* Bump SDK to v0.45.11

* Fix license head

* Fix README header

* Bump version go to 1.19 (#1044)

* bump go 1.19

* add change log

* correct change log

* Provide source, builder and codehash information in store code proposal message

* Implement source, builder, code_info for StoreAndInstantiateProposal

* Apply review recommendations

* Make linter happy

* Fix tests

* Formatting only

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Alexander Peters <alpe@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Giancarlos Salas <giansalex@gmail.com>
Co-authored-by: pinosu <95283998+pinosu@users.noreply.github.com>
Co-authored-by: GNaD13 <89174180+GNaD13@users.noreply.github.com>
2022-11-22 15:14:38 +01:00
Alexander Peters
e6f51498b6 Upgrade to IBC v4.2.0 with interchain-accounts v0.2.4 (#1088)
* Upgrade to IBC v4.2.0 with interchain-accounts v0.2.4

* Fix linter issues

* Test version handshake

* Add more ibc e2e scenarios

* Add fee middleware to wasm

* Get ibc app version from middleware
2022-11-22 10:54:30 +01:00
GNaD13
fc476aa886 Bump version go to 1.19 (#1044)
* bump go 1.19

* add change log

* correct change log
2022-11-18 12:31:05 +01:00
Alexander Peters
603c751acb Merge pull request #1099 from CosmWasm/readme_header
Fix README header
2022-11-18 08:41:04 +01:00
Alexander Peters
d7cc8d0335 Merge pull request #1098 from CosmWasm/license_fix
Fix license head
2022-11-18 08:40:49 +01:00
Alex Peters
c7a3d23e25 Fix README header 2022-11-17 19:07:17 +01:00
Alex Peters
632cd30d8d Fix license head 2022-11-17 19:02:22 +01:00
Alexander Peters
81a515495f Merge pull request #1096 from CosmWasm/sdk4511
Bump SDK to v0.45.11
2022-11-17 18:34:13 +01:00
Alex Peters
b063af7652 Bump SDK to v0.45.11 2022-11-17 14:30:13 +01:00
pinosu
ab4ffa51e6 Enable larger wasm bytecode upload for gov proposals (#1095)
* Enable larger wasm bytecode upload for gov proposals

* Set max proposal wasm code size to 3MB
2022-11-17 14:19:57 +01:00
Alexander Peters
48ef13db42 Merge pull request #1094 from disperze/update-authz-cli
Update authz grant examples
2022-11-16 11:25:27 +01:00
Giancarlos Salas
df4fa9c8bd Update authz grant examples 2022-11-15 16:06:07 -06:00
Alexander Peters
5bd5160c91 Merge pull request #1092 from CosmWasm/dependabot/go_modules/github.com/cosmos/gogoproto-1.4.3
Bump github.com/cosmos/gogoproto from 1.4.2 to 1.4.3
2022-11-15 13:14:25 +01:00
dependabot[bot]
f1f36c7608 Bump github.com/cosmos/gogoproto from 1.4.2 to 1.4.3
Bumps [github.com/cosmos/gogoproto](https://github.com/cosmos/gogoproto) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/cosmos/gogoproto/releases)
- [Changelog](https://github.com/cosmos/gogoproto/blob/main/CHANGELOG.md)
- [Commits](https://github.com/cosmos/gogoproto/compare/v1.4.2...v1.4.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 08:02:50 +00:00
pinosu
c0a482ef36 Authz redesign: CLI implementation (#1079)
* Add contract authz proto

* Implement contract autorization

* Register contract authz

* Add contract-authz tests

* Consume gas for contract authz

* Add contract authz cli

* Update cli usage

* Model spike

* Add max funds limit

* Redesign authz model

* Start e2e test

* Full e2e test

* Add cli implementation for signle grant case

* Restore file to avoid merge conflicts

* Test filter and limits

* Add allow-al-messages flag

* Add cli implementation for signle grant case

* Add allow-al-messages flag

* Implement comments fixes

* Test accept

* Fix description

* No linter warning

* Fix flags and add example command

* Fix lint error

* Fix limits cli

* Add cli implementation for signle grant case

* Add allow-al-messages flag

* Implement comments fixes

* Fix flags and add example command

* Fix lint error

* Fix limits cli

* Add cli implementation for signle grant case

* Add allow-al-messages flag

* Implement comments fixes

* Fix flags and add example command

* Fix lint error

* Fix limits cli

* Fix comments

Co-authored-by: Giancarlos Salas <me@giansalex.dev>
Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2022-11-14 16:05:58 +01:00
Alexander Peters
2aebf5570d Merge pull request #1091 from CosmWasm/dependabot/go_modules/github.com/spf13/viper-1.14.0
Bump github.com/spf13/viper from 1.13.0 to 1.14.0
2022-11-14 11:23:01 +01:00
dependabot[bot]
f532c8f816 Bump github.com/spf13/viper from 1.13.0 to 1.14.0
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.13.0...v1.14.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>
2022-11-14 08:05:10 +00:00
pinosu
ef9a84dda8 Add StoreAndInstantiateContract gov proposal (#1074)
* Add StoreAndInstantiateContract gov proposal

* Add integration tests

* Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.13.0...v1.14.0)

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

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

* Remove exposed functions

* Add tests

* Add Developer's guide and best practices (#1075)

* Add Developer's guide and best practices

* Fix comments

* Change genesis preserving contract history (#1076)

* preserve contract created date on genesis import and add query contract created date

* add validate created

* fix sims test app import export

* add preserve contract history

* Make proto-all only

* Remove ResetFromGenesis

* Add validation

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

* Return contract history updates

* Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1082)

Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.13.0...v1.14.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Revert "Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1082)"

This reverts commit cf81eb8ea6.

* Add cli and refactor code

* Contract authz - redesign (#1077)

* Add contract authz proto

* Implement contract autorization

* Register contract authz

* Add contract-authz tests

* Consume gas for contract authz

* Add contract authz cli

* Update cli usage

* Model spike

* Add max funds limit

* Redesign authz model

* Start e2e test

* Full e2e test

* Test filter and limits

* Test accept

* Fix description

* No linter warning

Co-authored-by: Giancarlos Salas <me@giansalex.dev>

* Add StoreAndInstantiateContract gov proposal

* Add integration tests

* Remove exposed functions

* Add tests

* Add cli and refactor code

* Fix comments

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GNaD13 <89174180+GNaD13@users.noreply.github.com>
Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
Co-authored-by: Giancarlos Salas <me@giansalex.dev>
2022-11-11 16:04:04 +01:00
Alexander Peters
5c39daee99 Contract authz - redesign (#1077)
* Add contract authz proto

* Implement contract autorization

* Register contract authz

* Add contract-authz tests

* Consume gas for contract authz

* Add contract authz cli

* Update cli usage

* Model spike

* Add max funds limit

* Redesign authz model

* Start e2e test

* Full e2e test

* Test filter and limits

* Test accept

* Fix description

* No linter warning

Co-authored-by: Giancarlos Salas <me@giansalex.dev>
2022-11-11 13:39:16 +01:00
Alexander Peters
73079d77c5 Merge pull request #1089 from CosmWasm/1076_query
Return contract history updates on query
2022-11-11 13:38:18 +01:00
Alexander Peters
d094d071a6 Merge pull request #1086 from CosmWasm/dependabot/go_modules/github.com/prometheus/client_golang-1.14.0
Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0
2022-11-11 09:59:14 +01:00
Alex Peters
400eff8108 Revert "Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1082)"
This reverts commit cf81eb8ea6.
2022-11-11 09:55:43 +01:00
dependabot[bot]
cf81eb8ea6 Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1082)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](https://github.com/spf13/viper/compare/v1.13.0...v1.14.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-11 09:50:53 +01:00
Alex Peters
9cbf64d967 Return contract history updates 2022-11-11 09:47:59 +01:00
GNaD13
4c6afb38eb Change genesis preserving contract history (#1076)
* preserve contract created date on genesis import and add query contract created date

* add validate created

* fix sims test app import export

* add preserve contract history

* Make proto-all only

* Remove ResetFromGenesis

* Add validation

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2022-11-11 09:45:40 +01:00
pinosu
5caaab9c0b Add Developer's guide and best practices (#1075)
* Add Developer's guide and best practices

* Fix comments
2022-11-11 09:09:07 +01:00
dependabot[bot]
0ce88a4917 Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.13.0 to 1.14.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.13.0...v1.14.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-09 08:03:46 +00:00
Alexander Peters
4fe2fbc8f3 Deprecate REST endpoints (#1070)
* Deprecate REST support

* Add deprecation and nolint annotations
2022-11-09 08:58:05 +01:00
Alexander Peters
928483f445 Merge pull request #1084 from ravaliGangasani/main
Update gov_tx.go
2022-11-08 13:05:13 +01:00
ravaliGangasani
b7e4770e31 Update gov_tx.go
adding instantiate-anyof-addresses flag in the gov_tx.go
2022-11-08 16:37:54 +05:30
Alexander Peters
a9ce273e3c Introduce AcceptListStargateQuerier (#1069)
* Stargate query enable

* Remove initialized whitelists

* Roman's review

* Minor improvement

* Add tests

* Add testings and codec

* Fix lint

* Fix test

* Fix from code review

* Refactor Stargate querier init

* Fix typo

Co-authored-by: mattverse <mattpark1028@gmail.com>
2022-11-02 17:16:32 +01:00
pinosu
0223e2bddb Add SilenceUsage flag to hide menu when an error occurs. (#1068)
* Add SilenceUsage flag to hide menu when an error occurs.

* Fix lint errors
2022-11-02 17:14:41 +01:00
GNaD13
bfb4bc08ef Add weighted operations run simulation (#1055)
* add WeightedOperations msg update admin

* add check contract info condition

* add fnc simulate migrate

* add weights operations migrate contract

* fix simulation msg update admin

* add simulation.NewWeightedOperation

* add sml msg clear admin

* fix lint

* remove msg migrate

* change admin to use test account

* add migrate

* add new contract for simulation migrate

* correct return log

* Polish SimulateMsgMigrateContract

Co-authored-by: Alex Peters <alpe@users.noreply.github.com>
2022-11-02 09:54:15 +01:00
GNaD13
fe50854f8d Add simulation for gov (#1064)
* add struct for sim gov

* add proposal for store contract

* change wasm file

* add proposal instantiate contract

* change admin account

* add sim gov proposals Update Admin

* add sim gov execute contract

* fix some bug

* add sim gov clear admin

* add comment

* fix lint
2022-11-01 11:06:53 +01:00
Alexander Peters
84e24d304a Merge pull request #1060 from disperze/fix-cli-example
Update instantiate cli example
2022-11-01 09:59:43 +01:00
Alexander Peters
97f85fc3e8 Merge pull request #1065 from notional-labs/core-libs-bump
bump core libraries
2022-11-01 09:39:29 +01:00
Jacob Gadikian
0e0436ddae bump core libraries 2022-10-28 13:02:04 +07:00
Giancarlos Salas
4f8673913a Update instantiate cli example 2022-10-24 17:21:05 -05:00
dependabot[bot]
7ae500da5c Bump bufbuild/buf-setup-action from 1.8.0 to 1.9.0 (#1057)
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.8.0...v1.9.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-24 10:59:25 +02:00
GNaD13
7243617196 Can a contract send data on a different's contract IBC (#1056)
* add test contract send ibc not owned

* add test send ibc diff contract counterparty channel

* remove meaningless case
2022-10-21 13:01:51 +02:00