Commit Graph

34 Commits

Author SHA1 Message Date
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
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
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
f043f19388 Add module name to buf.yml file (#756)
The module name is a required field as specified here:
https://docs.buf.build/bsr/overview
2022-02-14 10:56:31 +01:00
pinosu
6c5ac2c2bf Add buf.md for proto API docs (#755)
In this file a module description could be added as exaplained here:
https://docs.buf.build/bsr/documentation
2022-02-14 10:21:06 +01:00
pinosu
a6cb4c026f Add GH action to publish proto files to BSR (#753)
GH Action includes:
- check for lint errors
- check for backward compatibility breaking changes

Migrated buf config files from v1beta1 to v1 using command:
'buf config migrate-v1beta1'
(https://docs.buf.build/configuration/v1beta1-migration-guide)
2022-02-12 14:25:36 +01: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
Ethan Frey
e144b2ea76 {Init,Migrate}Msg -> Msg in proposals as well 2021-07-27 14:25:33 +02:00
Ethan Frey
1fa2165806 Rename 2 fields and regenerate protobuf 2021-07-27 14:25:33 +02:00
Alex Peters
98431c6dc9 Remove json type cast for contract msgs 2021-05-21 14:05:44 +02:00
Alex Peters
c377d7110e List contract address without other data 2021-04-23 15:15:54 +02:00
Alexander Peters
d90bf6ec3f Extend ContractInfo for custom data (#492)
* Extend ContractInfo with custom data

* Review comments
2021-04-16 13:38:21 +02:00
Alexander Peters
cfcfa64ecc Restructure protobuf files (#466)
* Restructure protobuf dir and generation

* Format protobuf definitions
2021-03-22 15:50:23 +01:00