* 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>
* 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>
* 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>
* 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>
* 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.
* 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