Commit Graph

32 Commits

Author SHA1 Message Date
Alex Peters
c88b8194cb Fix typos 2023-01-27 10:12:18 +01:00
pinosu
14c2daa667 Add UpdateInstantiateConfig command (#1121)
* Add UpdateInstantiateConfig msg

* Add implementation

* Add cli command

* Fix field description

* Fix review comments and add unit tests
2022-12-20 12:03:52 +01:00
Dan Lynch
cb6b854997 add proposal annotations 2022-12-18 02:28:36 -08: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
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
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
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
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
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
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
Alex Peters
ccb2fdd0b6 Make contract addresses predictable 2022-09-09 12:42:41 +02:00
Alex Peters
2674c53d7b Introduce AccessTypeAnyOfAddresses 2022-09-07 12:01:29 +02:00
jhernandezb
cc9e74075c change default behavior to always pin 2022-09-06 08:13:41 -06:00
jhernandezb
881d0aca94 add pin code flag to store code proposal 2022-09-05 10:32:22 -06:00
jhernandezb
e54d56e95f add params query 2022-08-31 10:58:42 -06:00
jhernandezb
3ade8159b6 update proto field name 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
Alex Peters
f1273864c9 Minor godoc update 2022-05-06 10:34:47 +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
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
pinosu
07153801fc Add cosmwasm project prefix to REST query paths (#743)
* Add cosmwasm project prefix to REST query paths
2022-02-08 08:34:04 +01:00
Ethan Frey
fb568e3ef7 Allow sending tokens along with governance wasm_execute proposal 2022-01-24 21:18:29 +01:00
Ethan Frey
0a96e26fba Remove RunAs from Migrate proposal 2022-01-24 20:00:01 +01:00
Ethan Frey
b315fe8e09 Add new proto types for the sudo an execute proposals 2022-01-24 19:54:26 +01:00
Alexander Peters
dfba1395d9 Fix message representation for signing (#658)
* Introduce RawContractMessage type

* Add json signbytes test for proposals

* No assumptions on MsgIBCSend.data content

* Smart query uses RawContractMessage

* Revert method signature change to be consistent

* Review comment

* Update after discussions
2021-10-25 15:23:19 +02:00
Alex Peters
b7a99e69ee Query all pinned code ids 2021-10-07 13:52:06 +02:00
Alex Peters
7ea8cd788d Add organisation to grpc gateway path 2021-08-04 17:00:04 +02:00
Ethan Frey
18741cb19a Used reserved keyword in protobuf 2021-07-28 11:26:51 +02:00
Ethan Frey
701c0c1ace Remove source, builder from proto files 2021-07-28 11:24:44 +02:00
Ethan Frey
43f698be6f Move proto files to v1 2021-07-27 14:25:33 +02:00