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>
This commit is contained in:
@@ -26,6 +26,14 @@ message StoreCodeProposal {
|
||||
AccessConfig instantiate_permission = 7;
|
||||
// UnpinCode code on upload, optional
|
||||
bool unpin_code = 8;
|
||||
// Source is the URL where the code is hosted
|
||||
string source = 9;
|
||||
// Builder is the docker image used to build the code deterministically, used
|
||||
// for smart contract verification
|
||||
string builder = 10;
|
||||
// CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
||||
// contract verification
|
||||
bytes code_hash = 11;
|
||||
}
|
||||
|
||||
// InstantiateContractProposal gov proposal content type to instantiate a
|
||||
@@ -199,4 +207,12 @@ message StoreAndInstantiateContractProposal {
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||||
];
|
||||
// Source is the URL where the code is hosted
|
||||
string source = 11;
|
||||
// Builder is the docker image used to build the code deterministically, used
|
||||
// for smart contract verification
|
||||
string builder = 12;
|
||||
// CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
||||
// contract verification
|
||||
bytes code_hash = 13;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user