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>
This commit is contained in:
@@ -172,3 +172,31 @@ message UpdateInstantiateConfigProposal {
|
||||
repeated AccessConfigUpdate access_config_updates = 3
|
||||
[ (gogoproto.nullable) = false ];
|
||||
}
|
||||
|
||||
// StoreAndInstantiateContractProposal gov proposal content type to store
|
||||
// and instantiate the contract.
|
||||
message StoreAndInstantiateContractProposal {
|
||||
// Title is a short summary
|
||||
string title = 1;
|
||||
// Description is a human readable text
|
||||
string description = 2;
|
||||
// RunAs is the address that is passed to the contract's environment as sender
|
||||
string run_as = 3;
|
||||
// WASMByteCode can be raw or gzip compressed
|
||||
bytes wasm_byte_code = 4 [ (gogoproto.customname) = "WASMByteCode" ];
|
||||
// InstantiatePermission to apply on contract creation, optional
|
||||
AccessConfig instantiate_permission = 5;
|
||||
// UnpinCode code on upload, optional
|
||||
bool unpin_code = 6;
|
||||
// Admin is an optional address that can execute migrations
|
||||
string admin = 7;
|
||||
// Label is optional metadata to be stored with a constract instance.
|
||||
string label = 8;
|
||||
// Msg json encoded message to be passed to the contract on instantiation
|
||||
bytes msg = 9 [ (gogoproto.casttype) = "RawContractMessage" ];
|
||||
// Funds coins that are transferred to the contract on instantiation
|
||||
repeated cosmos.base.v1beta1.Coin funds = 10 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user