Skip to content

Commit

Permalink
Used reserved keyword in protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jul 28, 2021
1 parent 2387a48 commit 18741cb
Show file tree
Hide file tree
Showing 9 changed files with 245 additions and 246 deletions.
14 changes: 4 additions & 10 deletions docs/proto/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ CodeInfo is data for the uploaded contract WASM code
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `code_hash` | [bytes](#bytes) | | CodeHash is the unique identifier created by wasmvm |
| `creator` | [string](#string) | | Creator address who initially stored the code

3 and 4 intentionally left empty (used in v1beta1) |
| `creator` | [string](#string) | | Creator address who initially stored the code |
| `instantiate_config` | [AccessConfig](#cosmwasm.wasm.v1.AccessConfig) | | InstantiateConfig access control to apply on contract creation, optional |


Expand Down Expand Up @@ -406,9 +404,7 @@ MsgStoreCode submit Wasm code to the system
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `sender` | [string](#string) | | Sender is the that actor that signed the messages |
| `wasm_byte_code` | [bytes](#bytes) | | WASMByteCode can be raw or gzip compressed

3 and 4 intentionally left empty (used in v1beta1) |
| `wasm_byte_code` | [bytes](#bytes) | | WASMByteCode can be raw or gzip compressed |
| `instantiate_permission` | [AccessConfig](#cosmwasm.wasm.v1.AccessConfig) | | InstantiatePermission access control to apply on contract creation, optional |


Expand Down Expand Up @@ -732,9 +728,7 @@ StoreCodeProposal gov proposal content type to submit WASM code to the system
| `title` | [string](#string) | | Title is a short summary |
| `description` | [string](#string) | | Description is a human readable text |
| `run_as` | [string](#string) | | RunAs is the address that is passed to the contract's environment as sender |
| `wasm_byte_code` | [bytes](#bytes) | | WASMByteCode can be raw or gzip compressed

5 and 6 intentionally left empty (used in v1beta1) |
| `wasm_byte_code` | [bytes](#bytes) | | WASMByteCode can be raw or gzip compressed |
| `instantiate_permission` | [AccessConfig](#cosmwasm.wasm.v1.AccessConfig) | | InstantiatePermission to apply on contract creation, optional |


Expand Down Expand Up @@ -804,7 +798,7 @@ CodeInfoResponse contains code meta data from CodeInfo
| ----- | ---- | ----- | ----------- |
| `code_id` | [uint64](#uint64) | | id for legacy support |
| `creator` | [string](#string) | | |
| `data_hash` | [bytes](#bytes) | | 4 and 5 intentionally left empty (used in v1beta1) |
| `data_hash` | [bytes](#bytes) | | |



Expand Down
4 changes: 2 additions & 2 deletions proto/cosmwasm/wasm/v1/proposal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ message StoreCodeProposal {
string run_as = 3;
// WASMByteCode can be raw or gzip compressed
bytes wasm_byte_code = 4 [ (gogoproto.customname) = "WASMByteCode" ];
// 5 and 6 intentionally left empty (used in v1beta1)

// Used in v1beta1
reserved 5, 6;
// InstantiatePermission to apply on contract creation, optional
AccessConfig instantiate_permission = 7;
}
Expand Down
3 changes: 2 additions & 1 deletion proto/cosmwasm/wasm/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ message CodeInfoResponse {
bytes data_hash = 3
[ (gogoproto.casttype) =
"github.com/tendermint/tendermint/libs/bytes.HexBytes" ];
// 4 and 5 intentionally left empty (used in v1beta1)
// Used in v1beta1
reserved 4, 5;
}

// QueryCodeResponse is the response type for the Query/Code RPC method
Expand Down
4 changes: 2 additions & 2 deletions proto/cosmwasm/wasm/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ message MsgStoreCode {
string sender = 1;
// WASMByteCode can be raw or gzip compressed
bytes wasm_byte_code = 2 [ (gogoproto.customname) = "WASMByteCode" ];
// 3 and 4 intentionally left empty (used in v1beta1)

// Used in v1beta1
reserved 3, 4;
// InstantiatePermission access control to apply on contract creation,
// optional
AccessConfig instantiate_permission = 5;
Expand Down
4 changes: 2 additions & 2 deletions proto/cosmwasm/wasm/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ message CodeInfo {
bytes code_hash = 1;
// Creator address who initially stored the code
string creator = 2;
// 3 and 4 intentionally left empty (used in v1beta1)

// Used in v1beta1
reserved 3, 4;
// InstantiateConfig access control to apply on contract creation, optional
AccessConfig instantiate_config = 5 [ (gogoproto.nullable) = false ];
}
Expand Down
87 changes: 44 additions & 43 deletions x/wasm/types/proposal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 18741cb

Please sign in to comment.