-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add cosmos.msg.v1.service to message services #8820
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ import "cosmos/msg/v1/msg.proto"; | |
option go_package = "github.com/osmosis-labs/osmosis/v27/x/gamm/pool-models/balancer"; | ||
|
||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Inconsistency detected: Missing The following proto files define
Please ensure that the 🔗 Analysis chainLGTM! The Cosmos message service option is correctly implemented. The addition of Let's verify the consistency of this change across other proto files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check if the cosmos.msg.v1.service option is consistently applied across all proto files with Msg services
# Expected: All Msg services should have this option
# Search for Msg service definitions and verify they include the cosmos.msg.v1.service option
rg -U "service Msg \{[\s\S]*?\}" --type proto | grep -v "cosmos\.msg\.v1\.service"
# If the above command returns results, it indicates Msg services that are missing the option
Length of output: 114 Script: #!/bin/bash
# Description: Check if the cosmos.msg.v1.service option is consistently applied across all proto files with Msg services
# Expected: All Msg services should have this option
# Search for Msg service definitions and verify they include the cosmos.msg.v1.service option
rg -U "service Msg \{[\s\S]*?\}" --glob "*.proto" | grep -v "cosmos\.msg\.v1\.service"
# If the above command returns results, it indicates Msg services that are missing the option
Length of output: 18427 |
||
|
||
rpc CreateBalancerPool(MsgCreateBalancerPool) | ||
returns (MsgCreateBalancerPoolResponse); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ import "cosmos/msg/v1/msg.proto"; | |
option go_package = "github.com/osmosis-labs/osmosis/v27/x/gamm/pool-models/stableswap"; | ||
|
||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Inconsistency Found: Missing
🔗 Analysis chainLGTM! Correctly adds Cosmos message service option. The addition of Let's verify this change is consistently applied across other proto files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for consistency of cosmos.msg.v1.service option across proto files
# Expected: All Msg services should have this option
# Search for Msg services in proto files
rg -U "service Msg \{[\s\S]*?\}" --type proto
# Search for the cosmos.msg.v1.service option
rg "option \(cosmos\.msg\.v1\.service\) = true;" --type proto
Length of output: 171 Script: #!/bin/bash
# Description: Check for consistency of cosmos.msg.v1.service option across proto files
# Expected: All Msg services should have this option
# Search for Msg services in proto files
rg -U "service Msg \{[\s\S]*?\}" -g "*.proto"
# Search for the cosmos.msg.v1.service option
rg "option \(cosmos\.msg\.v1\.service\) = true;" -g "*.proto"
Length of output: 20812 |
||
|
||
rpc CreateStableswapPool(MsgCreateStableswapPool) | ||
returns (MsgCreateStableswapPoolResponse); | ||
rpc StableSwapAdjustScalingFactors(MsgStableSwapAdjustScalingFactors) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ import "cosmos/msg/v1/msg.proto"; | |
option go_package = "github.com/osmosis-labs/osmosis/v27/x/gamm/types"; | ||
|
||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
|
||
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Inconsistent application of The following proto files have
Additionally, Please ensure the 🔗 Analysis chainLGTM! Consistent with Cosmos SDK message service pattern. The addition of Let's verify similar changes across other proto files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify consistent application of cosmos.msg.v1.service option across proto files
# Find all proto files with Msg services and check for the cosmos.msg.v1.service option
fd -e proto -x grep -l "service Msg" {} | while read -r file; do
echo "=== $file ==="
grep -A 1 "service Msg" "$file"
done
Length of output: 4489 |
||
rpc JoinPool(MsgJoinPool) returns (MsgJoinPoolResponse); | ||
rpc ExitPool(MsgExitPool) returns (MsgExitPoolResponse); | ||
rpc SwapExactAmountIn(MsgSwapExactAmountIn) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ import "cosmos/msg/v1/msg.proto"; | |
option go_package = "github.com/osmosis-labs/osmosis/v27/x/incentives/types"; | ||
|
||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Missing The 🔗 Analysis chainLGTM! Correctly implements Cosmos SDK message service standard. The addition of Let's verify this change is consistent across other proto files mentioned in the summary: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify consistent implementation of cosmos.msg.v1.service option across proto files
# Expected: All Msg services should have the cosmos.msg.v1.service option
# Search for Msg service definitions and their associated cosmos.msg.v1.service option
rg -U "service Msg \{[\s\S]*?\}" proto/osmosis/
Length of output: 19569 |
||
|
||
rpc CreateGauge(MsgCreateGauge) returns (MsgCreateGaugeResponse); | ||
rpc AddToGauge(MsgAddToGauge) returns (MsgAddToGaugeResponse); | ||
rpc CreateGroup(MsgCreateGroup) returns (MsgCreateGroupResponse); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ option go_package = "github.com/osmosis-labs/osmosis/v27/x/lockup/types"; | |
|
||
// Msg defines the Msg service. | ||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Missing
🔗 Analysis chainVerify consistent implementation across message services. Let's ensure this standardization is applied consistently across all message services in the codebase. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for consistency of cosmos.msg.v1.service option across proto files
# Find all proto files containing "service Msg"
echo "Checking Msg services in proto files..."
rg -l "service Msg" --type proto | while read -r file; do
echo "=== $file ==="
# Check if the file has the cosmos.msg.v1.service option
if ! rg "option \(cosmos\.msg\.v1\.service\) = true;" "$file" --quiet; then
echo "WARNING: Missing cosmos.msg.v1.service option"
fi
# Show the Msg service definition context
rg "service Msg \{" -A 5 "$file"
done
# Verify the import statement exists where the option is used
echo -e "\nChecking for proper imports..."
rg "option \(cosmos\.msg\.v1\.service\) = true;" -l --type proto | while read -r file; do
echo "=== $file ==="
if ! rg "import \"cosmos/msg/v1/msg\.proto\";" "$file" --quiet; then
echo "WARNING: Missing required import: cosmos/msg/v1/msg.proto"
fi
done
Length of output: 357 Script: #!/bin/bash
# Description: Check for consistency of cosmos.msg.v1.service option across proto files
# Find all proto files containing "service Msg"
echo "Checking Msg services in proto files..."
rg -l "service Msg" -g "*.proto" | while read -r file; do
echo "=== $file ==="
# Check if the file has the cosmos.msg.v1.service option
if ! rg "option \(cosmos\.msg\.v1\.service\) = true;" "$file" --quiet; then
echo "WARNING: Missing cosmos.msg.v1.service option"
fi
# Show the Msg service definition context
rg "service Msg \{" -A 5 "$file"
done
# Verify the import statement exists where the option is used
echo -e "\nChecking for proper imports..."
rg "option \(cosmos\.msg\.v1\.service\) = true;" -l -g "*.proto" | while read -r file; do
echo "=== $file ==="
if ! rg "import \"cosmos/msg/v1/msg\.proto\";" "$file" --quiet; then
echo "WARNING: Missing required import: cosmos/msg/v1/msg.proto"
fi
done
Length of output: 12031 |
||
|
||
// LockTokens lock tokens | ||
rpc LockTokens(MsgLockTokens) returns (MsgLockTokensResponse); | ||
// BeginUnlockingAll begin unlocking all tokens | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ import "cosmos/msg/v1/msg.proto"; | |
option go_package = "github.com/osmosis-labs/osmosis/v27/x/poolmanager/types"; | ||
|
||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
|
||
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Inconsistent application of The following files are missing the
🔗 Analysis chainLGTM! Verify consistency across other proto files. The addition of Let's verify this change is consistently applied across other proto files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for consistency of cosmos.msg.v1.service option across proto files
# Expected: All Msg services should have this option
# Find all proto files and check for Msg services without the cosmos.msg.v1.service option
fd -e proto | while read -r file; do
if grep -l "service Msg {" "$file" > /dev/null; then
if ! grep -A 1 "service Msg {" "$file" | grep -q "option (cosmos\.msg\.v1\.service)"; then
echo "Warning: $file contains Msg service but missing cosmos.msg.v1.service option"
fi
fi
done
Length of output: 12007 |
||
rpc SwapExactAmountIn(MsgSwapExactAmountIn) | ||
returns (MsgSwapExactAmountInResponse); | ||
rpc SwapExactAmountOut(MsgSwapExactAmountOut) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ option go_package = "github.com/osmosis-labs/osmosis/v27/x/superfluid/types"; | |
|
||
// Msg defines the Msg service. | ||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Add The 🔗 Analysis chainVerify consistency with other proto files Let's ensure this change is consistently applied across all message services in the codebase. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for all protobuf message services and check for the cosmos.msg.v1.service option
rg -U "service Msg \{[\s\S]*?\}" proto/ | grep -v "option (cosmos\.msg\.v1\.service)"
Length of output: 18426 |
||
|
||
// Execute superfluid delegation for a lockup | ||
rpc SuperfluidDelegate(MsgSuperfluidDelegate) | ||
returns (MsgSuperfluidDelegateResponse); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ option go_package = "github.com/osmosis-labs/osmosis/v27/x/tokenfactory/types"; | |
|
||
// Msg defines the tokefactory module's gRPC message service. | ||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
|
||
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Missing The following
🔗 Analysis chainLGTM! Correctly adds Cosmos message service option. The addition of Let's verify consistent implementation across other proto files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify consistent implementation of cosmos.msg.v1.service option across proto files
# Check for proto files with Msg service but missing the cosmos.msg.v1.service option
echo "Checking for Msg services without cosmos.msg.v1.service option..."
rg -l "service Msg" --type proto | while read -r file; do
if ! grep -q "option (cosmos\.msg\.v1\.service)" "$file"; then
echo "Missing option in: $file"
fi
done
# Verify correct import in all files using the option
echo -e "\nVerifying correct imports..."
rg -l "option \(cosmos\.msg\.v1\.service\)" --type proto | while read -r file; do
if ! grep -q "import \"cosmos/msg/v1/msg\.proto\";" "$file"; then
echo "Missing import in: $file"
fi
done
Length of output: 397 Script: #!/bin/bash
# Description: Verify consistent implementation of cosmos.msg.v1.service option across proto files
# Define proto file type
rg --type-add 'proto:*.proto' --type proto <<EOF
EOF
# Check for proto files with Msg service but missing the cosmos.msg.v1.service option
echo "Checking for Msg services without cosmos.msg.v1.service option..."
rg -l "service Msg" --type proto | while read -r file; do
if ! grep -q "option (cosmos\.msg\.v1\.service)" "$file"; then
echo "Missing option in: $file"
fi
done
# Verify correct import in all files using the option
echo -e "\nVerifying correct imports..."
rg -l "option \(cosmos\.msg\.v1\.service\)" --type proto | while read -r file; do
if ! grep -q "import \"cosmos/msg/v1/msg\.proto\";" "$file"; then
echo "Missing import in: $file"
fi
done
Length of output: 839 Script: #!/bin/bash
# Description: Verify consistent implementation of cosmos.msg.v1.service option across proto files
# Define proto file type
rg --type-add 'proto:*.proto'
# Check for proto files with Msg service but missing the cosmos.msg.v1.service option
echo "Checking for Msg services without cosmos.msg.v1.service option..."
rg -l "service Msg" --type proto | while read -r file; do
if ! grep -q "option (cosmos\.msg\.v1\.service)" "$file"; then
echo "Missing option in: $file"
fi
done
# Verify correct import in all files using the option
echo -e "\nVerifying correct imports..."
rg -l "option \(cosmos\.msg\.v1\.service\)" --type proto | while read -r file; do
if ! grep -q "import \"cosmos/msg/v1/msg\.proto\";" "$file"; then
echo "Missing import in: $file"
fi
done
Length of output: 826 Script: #!/bin/bash
# Description: Verify consistent implementation of cosmos.msg.v1.service option across proto files
# Check for proto files with Msg service but missing the cosmos.msg.v1.service option
echo "Checking for Msg services without cosmos.msg.v1.service option..."
rg -g '*.proto' -l "service Msg" | while read -r file; do
if ! grep -q "option (cosmos\.msg\.v1\.service)" "$file"; then
echo "Missing option in: $file"
fi
done
# Verify correct import in all files using the option
echo -e "\nVerifying correct imports..."
rg -g '*.proto' -l "option \(cosmos\.msg\.v1\.service\)" | while read -r file; do
if ! grep -q "import \"cosmos/msg/v1/msg\.proto\";" "$file"; then
echo "Missing import in: $file"
fi
done
Length of output: 4038 |
||
rpc CreateDenom(MsgCreateDenom) returns (MsgCreateDenomResponse); | ||
rpc Mint(MsgMint) returns (MsgMintResponse); | ||
rpc Burn(MsgBurn) returns (MsgBurnResponse); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ import "cosmos/msg/v1/msg.proto"; | |
option go_package = "github.com/osmosis-labs/osmosis/v27/x/txfees/types"; | ||
|
||
service Msg { | ||
option (cosmos.msg.v1.service) = true; | ||
|
||
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Missing
🔗 Analysis chainLGTM! Correctly adds Cosmos message service option. The addition of Let's verify this change is consistently applied across related message services: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify consistent application of cosmos.msg.v1.service option across proto files
# Expected: All Msg services should have this option
# Search for Msg services in proto files
rg -U "service Msg \{[\s\S]*?\}" --type proto
# Search for the cosmos.msg.v1.service option in proto files
rg "option \(cosmos\.msg\.v1\.service\) = true;" --type proto
Length of output: 171 Script: #!/bin/bash
# Description: Verify consistent application of cosmos.msg.v1.service option across proto files
# Expected: All Msg services should have this option
# Find all .proto files and search for 'service Msg { ... }'
fd --extension proto . | xargs rg -U "service Msg \{[\s\S]*?\}"
# Find all .proto files and search for the cosmos.msg.v1.service option
fd --extension proto . | xargs rg "option \(cosmos\.msg\.v1\.service\) = true;"
Length of output: 20848 |
||
rpc SetFeeTokens(MsgSetFeeTokens) returns (MsgSetFeeTokensResponse); | ||
} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Missing
cosmos.msg.v1.service
option in multiple proto files.The following proto files are missing the required
cosmos.msg.v1.service
option:proto/osmosis/tokenfactory/v1beta1/tx.proto
proto/osmosis/valsetpref/v1beta1/tx.proto
proto/osmosis/txfees/v1beta1/tx.proto
proto/osmosis/gamm/v1beta1/tx.proto
proto/osmosis/gamm/poolmodels/stableswap/v1beta1/tx.proto
proto/osmosis/gamm/poolmodels/balancer/v1beta1/tx.proto
proto/osmosis/concentratedliquidity/poolmodel/concentrated/v1beta1/tx.proto
proto/osmosis/cosmwasmpool/v1beta1/tx.proto
proto/osmosis/cosmwasmpool/v1beta1/model/tx.proto
proto/osmosis/superfluid/tx.proto
proto/osmosis/smartaccount/v1beta1/tx.proto
proto/osmosis/lockup/tx.proto
proto/osmosis/incentives/tx.proto
proto/osmosis/protorev/v1beta1/tx.proto
proto/osmosis/poolmanager/v1beta1/tx.proto
proto/osmosis/ibchooks/tx.proto
Please ensure that all
Msg
services across these proto files include theoption (cosmos.msg.v1.service) = true;
declaration to maintain consistency and adhere to Cosmos SDK protobuf standards.🔗 Analysis chain
LGTM! Verify consistency across other proto files.
The addition of
cosmos.msg.v1.service
option is correct and follows Cosmos SDK protobuf standards. This is a non-breaking change that enhances service discovery and code generation.Let's verify that this change is consistently applied across other similar proto files:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 237
Script:
Length of output: 6512