Mark wasm queries with module_query_safe (#1915)

* Mark wasm queries with module_query_safe

* Consume gas in build address query

* Update gas calculation

* Update DefaultGasCostBuildAddress value
This commit is contained in:
Pino' Surace
2024-07-03 11:38:03 +02:00
committed by GitHub
parent 3ba5718a74
commit 8171d65a27
4 changed files with 117 additions and 96 deletions

View File

@@ -5,6 +5,7 @@ import "gogoproto/gogo.proto";
import "cosmwasm/wasm/v1/types.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "cosmos/query/v1/query.proto";
import "amino/amino.proto";
import "cosmos_proto/cosmos.proto";
@@ -17,58 +18,69 @@ service Query {
// ContractInfo gets the contract meta data
rpc ContractInfo(QueryContractInfoRequest)
returns (QueryContractInfoResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmwasm/wasm/v1/contract/{address}";
}
// ContractHistory gets the contract code history
rpc ContractHistory(QueryContractHistoryRequest)
returns (QueryContractHistoryResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get =
"/cosmwasm/wasm/v1/contract/{address}/history";
}
// ContractsByCode lists all smart contracts for a code id
rpc ContractsByCode(QueryContractsByCodeRequest)
returns (QueryContractsByCodeResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmwasm/wasm/v1/code/{code_id}/contracts";
}
// AllContractState gets all raw store data for a single contract
rpc AllContractState(QueryAllContractStateRequest)
returns (QueryAllContractStateResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmwasm/wasm/v1/contract/{address}/state";
}
// RawContractState gets single key from the raw store data of a contract
rpc RawContractState(QueryRawContractStateRequest)
returns (QueryRawContractStateResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get =
"/cosmwasm/wasm/v1/contract/{address}/raw/{query_data}";
}
// SmartContractState get smart query result from the contract
rpc SmartContractState(QuerySmartContractStateRequest)
returns (QuerySmartContractStateResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get =
"/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}";
}
// Code gets the binary code and metadata for a singe wasm code
rpc Code(QueryCodeRequest) returns (QueryCodeResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmwasm/wasm/v1/code/{code_id}";
}
// Codes gets the metadata for all stored wasm codes
rpc Codes(QueryCodesRequest) returns (QueryCodesResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmwasm/wasm/v1/code";
}
// PinnedCodes gets the pinned code ids
rpc PinnedCodes(QueryPinnedCodesRequest) returns (QueryPinnedCodesResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmwasm/wasm/v1/codes/pinned";
}
// Params gets the module params
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmwasm/wasm/v1/codes/params";
}
// ContractsByCreator gets the contracts by creator
rpc ContractsByCreator(QueryContractsByCreatorRequest)
returns (QueryContractsByCreatorResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get =
"/cosmwasm/wasm/v1/contracts/creator/{creator_address}";
}
@@ -76,6 +88,7 @@ service Query {
// BuildAddress builds a contract address
rpc BuildAddress(QueryBuildAddressRequest)
returns (QueryBuildAddressResponse) {
option (cosmos.query.v1.module_query_safe) = true;
option (google.api.http).get = "/cosmwasm/wasm/v1/contract/build_address";
}
}

View File

@@ -7,6 +7,7 @@ import (
"strings"
"testing"
wasmvmtypes "github.com/CosmWasm/wasmvm/v2/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -17,7 +18,6 @@ import (
"github.com/CosmWasm/wasmd/x/wasm/keeper/testdata"
"github.com/CosmWasm/wasmd/x/wasm/keeper/wasmtesting"
"github.com/CosmWasm/wasmd/x/wasm/types"
wasmvmtypes "github.com/CosmWasm/wasmvm/v2/types"
)
func TestInstantiate2(t *testing.T) {

View File

@@ -24,6 +24,9 @@ import (
"github.com/CosmWasm/wasmd/x/wasm/types"
)
// DefaultGasCostBuildAddress is the SDK gas cost to build a contract address
const DefaultGasCostBuildAddress = 10
var _ types.QueryServer = &GrpcQuerier{}
type GrpcQuerier struct {
@@ -428,6 +431,10 @@ func (q GrpcQuerier) BuildAddress(c context.Context, req *types.QueryBuildAddres
if len(salt) == 0 {
return nil, status.Error(codes.InvalidArgument, "empty salt")
}
ctx := sdk.UnwrapSDKContext(c)
defer ctx.GasMeter().ConsumeGas(DefaultGasCostBuildAddress, "build address")
if req.InitArgs == nil {
return &types.QueryBuildAddressResponse{
Address: BuildContractAddressPredictable(codeHash, creator, salt, []byte{}).String(),

View File

@@ -1210,101 +1210,102 @@ func init() {
func init() { proto.RegisterFile("cosmwasm/wasm/v1/query.proto", fileDescriptor_9677c207036b9f2b) }
var fileDescriptor_9677c207036b9f2b = []byte{
// 1493 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x6f, 0x1b, 0xc5,
0x17, 0xf7, 0xa4, 0x8e, 0x63, 0x4f, 0xf2, 0x6d, 0x9d, 0xf9, 0x96, 0xd6, 0x75, 0xdb, 0x75, 0xb4,
0x94, 0x90, 0xba, 0xad, 0xb7, 0x49, 0x0b, 0x15, 0x45, 0x08, 0xd9, 0x69, 0x69, 0x5a, 0x51, 0x9a,
0xba, 0x12, 0x48, 0x20, 0x64, 0xc6, 0xde, 0x89, 0xb3, 0xc8, 0xde, 0x75, 0x77, 0x26, 0x6d, 0xad,
0x28, 0x1c, 0x7a, 0x85, 0x03, 0x12, 0xe2, 0xd0, 0x72, 0x80, 0x43, 0x05, 0x95, 0x2a, 0xa4, 0x0a,
0x38, 0x54, 0xfc, 0x05, 0x39, 0x56, 0x70, 0xe1, 0x64, 0x20, 0x45, 0x2a, 0xca, 0x9f, 0xd0, 0x13,
0xda, 0x99, 0x59, 0x7b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x9f, 0x81, 0x48, 0x03, 0x66, 0xe3, 0x40,
0xa4, 0x41, 0x83, 0xad, 0xfa, 0x06, 0x47, 0x7a, 0x06, 0xbd, 0x12, 0x0a, 0xa9, 0x8d, 0x6f, 0x6a,
0xeb, 0x9d, 0xe9, 0x74, 0x03, 0xfd, 0x0c, 0x20, 0xea, 0x9d, 0x30, 0xd1, 0xc9, 0x00, 0x18, 0x81,
0x93, 0x72, 0x7a, 0xfe, 0x39, 0x34, 0x24, 0xf4, 0x37, 0x39, 0xf4, 0xd7, 0xd0, 0x99, 0x70, 0x24,
0x3b, 0x86, 0xfc, 0xe0, 0x9b, 0x30, 0xca, 0xd3, 0x56, 0x0d, 0xcc, 0xc3, 0x4e, 0xae, 0xbe, 0x38,
0x50, 0x46, 0x22, 0x9a, 0xe3, 0x88, 0x54, 0x34, 0x33, 0x2c, 0x41, 0x91, 0x0d, 0xc7, 0x79, 0x5f,
0x47, 0x83, 0xec, 0xba, 0x85, 0x39, 0x7d, 0x64, 0xb0, 0x90, 0xf4, 0xae, 0x70, 0xef, 0x29, 0xb4,
0xaf, 0xbf, 0x77, 0xf4, 0x19, 0x80, 0x93, 0x9e, 0x91, 0x02, 0x1d, 0x0d, 0xb0, 0xda, 0x3b, 0xda,
0xa4, 0xb3, 0x61, 0x44, 0x25, 0x8c, 0x59, 0x0e, 0x63, 0x06, 0x29, 0xfd, 0x61, 0x50, 0xad, 0xc1,
0x95, 0xd0, 0x06, 0x8c, 0x89, 0x59, 0x00, 0x05, 0x6d, 0xcf, 0x37, 0x72, 0xa4, 0x5f, 0x1a, 0x22,
0x15, 0xda, 0xbd, 0x70, 0xfa, 0x08, 0x40, 0xd4, 0xdb, 0xba, 0x03, 0x33, 0x37, 0x70, 0x26, 0x09,
0xcc, 0xdc, 0xe0, 0xb9, 0x20, 0xcc, 0xa1, 0xa3, 0x9a, 0x6c, 0x9e, 0xda, 0x7a, 0x57, 0xdb, 0xdd,
0x40, 0x77, 0x00, 0x9c, 0xf2, 0xb6, 0xc4, 0xc0, 0xde, 0xd5, 0xa7, 0xc9, 0x07, 0xf6, 0xae, 0x7e,
0x3d, 0x56, 0x3d, 0xc9, 0x81, 0x66, 0xd1, 0xdc, 0x80, 0x23, 0x56, 0x76, 0x14, 0x5d, 0x70, 0x85,
0xa5, 0xcd, 0x3f, 0x95, 0xc8, 0xfd, 0x2d, 0x25, 0xb2, 0xb9, 0xa5, 0x80, 0xc7, 0x5b, 0x0a, 0xf8,
0x63, 0x4b, 0x01, 0x9f, 0x3f, 0x51, 0x22, 0x8f, 0x9f, 0x28, 0x91, 0xdf, 0x9e, 0x28, 0x91, 0xf7,
0x67, 0x3d, 0x37, 0xb0, 0x45, 0x8b, 0xd6, 0xdf, 0x73, 0xad, 0xea, 0xda, 0x2d, 0x61, 0x9d, 0xff,
0x83, 0x5a, 0x8e, 0xf1, 0xbf, 0x32, 0x4f, 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff, 0x63, 0x9e, 0xb7,
0x27, 0xa8, 0x15, 0x00, 0x00,
// 1509 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x98, 0xcf, 0x6f, 0x1b, 0x45,
0x1b, 0xc7, 0x33, 0xa9, 0xe3, 0xd8, 0x93, 0xbc, 0x6f, 0x9d, 0xa1, 0xb4, 0xae, 0xdb, 0xda, 0xd1,
0xb6, 0x84, 0xd4, 0x6d, 0xbd, 0x4d, 0x4a, 0xa9, 0x5a, 0x4e, 0x76, 0x5a, 0x9a, 0x56, 0x94, 0xa6,
0xae, 0x04, 0x12, 0x08, 0x99, 0xb1, 0x77, 0xe2, 0x2c, 0xb2, 0x77, 0xdd, 0x9d, 0x49, 0xd3, 0x28,
0x4a, 0x0f, 0x3d, 0x21, 0x71, 0x01, 0x71, 0xa2, 0x20, 0xe0, 0xc0, 0xa1, 0xa8, 0x20, 0x55, 0x02,
0x89, 0x5e, 0x10, 0xd7, 0x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, 0x42,
0xcc, 0xfc, 0x33, 0x80, 0xa8, 0xb3, 0xda, 0x87, 0xc6, 0x74, 0x68, 0x1b, 0x13, 0x1a, 0xd3, 0xe1,
0xad, 0xc4, 0xc0, 0x67, 0x92, 0xea, 0xb2, 0xe8, 0xea, 0x1b, 0x6d, 0xe5, 0x7a, 0x13, 0x7d, 0x09,
0xe0, 0xa4, 0xbf, 0x94, 0x86, 0xd6, 0xbc, 0x2e, 0xcd, 0x41, 0x68, 0xcd, 0xeb, 0x56, 0x9b, 0xb5,
0xd3, 0x1e, 0x6d, 0x16, 0xcd, 0xf6, 0x38, 0x81, 0x65, 0xd7, 0x5b, 0x11, 0x16, 0x16, 0xb7, 0xfe,
0x4c, 0x8f, 0xdc, 0xdb, 0x4e, 0x8f, 0x6c, 0x6d, 0xa7, 0xc1, 0xa3, 0xed, 0x34, 0xf8, 0x63, 0x3b,
0x0d, 0x3e, 0x7e, 0x9c, 0x1e, 0x79, 0xf4, 0x38, 0x3d, 0xf2, 0xfb, 0xe3, 0xf4, 0xc8, 0x3b, 0x33,
0xbe, 0xeb, 0xdb, 0x82, 0x4d, 0xeb, 0x6f, 0xab, 0x51, 0x0d, 0xfd, 0x96, 0x18, 0x9d, 0xff, 0x6f,
0xb6, 0x1c, 0xe5, 0xff, 0x07, 0x3d, 0xf5, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x22, 0x05, 0x98,
0xc8, 0x02, 0x16, 0x00, 0x00,
}
func (this *QueryContractInfoResponse) Equal(that interface{}) bool {