From 256d9b2184d923d5493b6ede3c89980d3028ce8f Mon Sep 17 00:00:00 2001 From: Assaf Morami Date: Wed, 12 Oct 2022 15:34:25 +0300 Subject: [PATCH] Fix proto/secret/compute/v1beta1/query.proto - Duplicate endpoint /compute/v1beta1/code_hash/ - Rename ID to Id to play nice with some protobuf parsers - Regenerate code from protobuf - Rebuild Swagger UI --- CHANGELOG.md | 3 +- Makefile | 5 +- client/docs/static/openapi/index.html | 12 +- client/docs/static/openapi/openapi.yaml | 10 +- client/docs/static/swagger/swagger.yaml | 10 +- client/docs/statik/statik.go | 2 +- .../test-compute-contract/Makefile | 4 +- proto/secret/compute/v1beta1/genesis.proto | 2 +- proto/secret/compute/v1beta1/msg.proto | 2 +- proto/secret/compute/v1beta1/query.proto | 18 +- proto/secret/compute/v1beta1/types.proto | 2 +- proto/secret/intertx/v1beta1/query.proto | 2 +- proto/secret/intertx/v1beta1/tx.proto | 2 +- .../secret/registration/v1beta1/genesis.proto | 2 +- proto/secret/registration/v1beta1/msg.proto | 4 +- proto/secret/registration/v1beta1/query.proto | 2 +- .../v1beta1/remote_attestation/types.proto | 2 +- proto/secret/registration/v1beta1/types.proto | 4 +- scripts/protocgen.sh | 2 +- x/compute/internal/types/genesis.pb.go | 58 ++-- x/compute/internal/types/msg.pb.go | 14 +- x/compute/internal/types/query.pb.go | 318 +++++++++--------- x/compute/internal/types/query.pb.gw.go | 62 ++-- x/compute/internal/types/types.pb.go | 94 +++--- x/mauth/types/query.pb.go | 52 +-- x/mauth/types/tx.pb.go | 62 ++-- x/registration/internal/types/genesis.pb.go | 46 +-- x/registration/internal/types/msg.pb.go | 52 +-- x/registration/internal/types/query.pb.go | 54 +-- x/registration/internal/types/types.pb.go | 50 +-- .../remote_attestation/reset_fuzzing.sh | 2 +- x/registration/remote_attestation/types.pb.go | 106 +++--- 32 files changed, 530 insertions(+), 530 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c08593ea7..cabf58537 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # CHANGELOG # 1.4.0 + - CosmWasm v1 - Bump WASM gas cost: - Base WASM invocation 10k -> 100k @@ -155,7 +156,7 @@ Secret-CosmWasm remains in a version that is compatabile with the v0.10 of vanil A new feature has been added - plaintext logs. To send an unencrypted log (contract output), use `plaintext_log` instead of `log`. This allows contracts to emit public events, and attach websockets to listen to specific events. To take advantage of this feature, compile contracts with -`cosmwasm-std = { git = "https://github.com/enigmampc/SecretNetwork", tag = "v1.2.0" }` +`cosmwasm-std = { git = "https://github.com/scrtlabs/SecretNetwork", tag = "v1.2.0" }` ## Known Issues diff --git a/Makefile b/Makefile index de1f39d20..7011d8c83 100644 --- a/Makefile +++ b/Makefile @@ -106,7 +106,7 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags)) ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=SecretNetwork \ -X github.com/cosmos/cosmos-sdk/version.AppName=secretd \ - -X github.com/enigmampc/SecretNetwork/cmd/secretcli/version.ClientName=secretcli \ + -X github.com/scrtlabs/SecretNetwork/cmd/secretcli/version.ClientName=secretcli \ -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags)" @@ -462,11 +462,12 @@ update-swagger-openapi-docs: statik-install proto-swagger-openapi-gen statik protoVer=v0.2 -proto-all: proto-format proto-lint proto-gen proto-swagger-openapi-gen +proto-all: proto-lint proto-gen proto-swagger-openapi-gen proto-gen: @echo "Generating Protobuf files" $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace tendermintdev/sdk-proto-gen:$(protoVer) sh ./scripts/protocgen.sh + go mod tidy proto-lint: @$(DOCKER_BUF) lint --error-format=json diff --git a/client/docs/static/openapi/index.html b/client/docs/static/openapi/index.html index fd0d2b7a6..f42e406a7 100644 --- a/client/docs/static/openapi/index.html +++ b/client/docs/static/openapi/index.html @@ -2126,7 +2126,7 @@ a given height.
  • Documentation Powered by Redocly
    getQuery a specific contract code by id
  • default

    An unexpected error response.

    Query a specific contract code by id

    path Parameters
    code_id
    required
    string <uint64>

    Responses

    Query code hash by code id

    path Parameters
    code_id
    required
    string <uint64>

    Responses

    Query code hash by code id

    path Parameters
    code_id
    required
    string <uint64>

    Responses

    Query code hash by contract address

    path Parameters
    contract_address
    required
    string

    address is the bech32 human readable address of the contract

    +

    Query code hash by contract address

    path Parameters
    contract_address
    required
    string

    address is the bech32 human readable address of the contract

    Responses

    Query all contract codes on-chain

    Responses

    Query all contract codes on-chain

    Responses

    Query contract address by label

    path Parameters
    label
    required
    string

    Responses

    Query code info by id

    path Parameters
    code_id
    required
    string <uint64>

    Responses

    Query code info by id

    path Parameters
    code_id
    required
    string <uint64>

    Responses

    Query contract info by address

    path Parameters
    contract_address
    required
    string

    address is the bech32 human readable address of the contract

    Responses