Skip to content
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

Add missing protobuf definitions #8600

Merged
merged 4 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Bug Fixes

* [#8600](https://github.com/osmosis-labs/osmosis/pull/8600) Add missing protobuf definitions to be able to decode old block messages

### State Breaking

* [#8169](https://github.com/osmosis-labs/osmosis/pull/8169) [#8250](https://github.com/osmosis-labs/osmosis/pull/8250) [#8276](https://github.com/osmosis-labs/osmosis/pull/8276) [#8320](https://github.com/osmosis-labs/osmosis/pull/8320) Support non-pool assets in superfluid staking
Expand Down
33 changes: 33 additions & 0 deletions proto/osmosis/gamm/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package osmosis.gamm.v1beta1;
import "gogoproto/gogo.proto";
import "amino/amino.proto";
import "cosmos/base/v1beta1/coin.proto";
import "osmosis/gamm/v1beta1/balancerPool.proto";
import "osmosis/poolmanager/v1beta1/swap_route.proto";
import "cosmos/msg/v1/msg.proto";

Expand All @@ -26,6 +27,23 @@ service Msg {
returns (MsgExitSwapShareAmountInResponse);
}

// ===================== MsgCreatePool
// This is not used anymore, but must be retained in the file to allow indexers
// to index blocks since genesis
message MsgCreatePool {
string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ];

PoolParams poolParams = 2 [
(gogoproto.moretags) = "yaml:\"pool_params\"",
(gogoproto.nullable) = false
];

repeated PoolAsset poolAssets = 3 [ (gogoproto.nullable) = false ];

string future_pool_governor = 4
[ (gogoproto.moretags) = "yaml:\"future_pool_governor\"" ];
}

// ===================== MsgJoinPool
// This is really MsgJoinPoolNoSwap
message MsgJoinPool {
Expand Down Expand Up @@ -267,3 +285,18 @@ message MsgExitSwapExternAmountOutResponse {
(gogoproto.nullable) = false
];
}

// This is not used anymore, but must be retained in the file to allow indexers
// to index blocks since genesis
message MsgCreateBalancerPool {
string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ];

osmosis.gamm.v1beta1.PoolParams pool_params = 2
[ (gogoproto.moretags) = "yaml:\"pool_params\"" ];

repeated osmosis.gamm.v1beta1.PoolAsset pool_assets = 3
[ (gogoproto.nullable) = false ];

string future_pool_governor = 4
[ (gogoproto.moretags) = "yaml:\"future_pool_governor\"" ];
}
15 changes: 14 additions & 1 deletion proto/osmosis/lockup/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ service Msg {
returns (MsgSetRewardReceiverAddressResponse);
}

// This is not used anymore, but must be retained in the file to allow indexers
// to index blocks since genesis
message MsgUnlockPeriodLock {
string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ];
uint64 ID = 2;
}

message MsgLockTokens {
option (amino.name) = "osmosis/lockup/lock-tokens";
option (cosmos.msg.v1.signer) = "owner";
Expand All @@ -45,6 +52,12 @@ message MsgLockTokens {
}
message MsgLockTokensResponse { uint64 ID = 1; }

// This is not used anymore, but must be retained in the file to allow indexers
// to index blocks since genesis
message MsgUnlockTokens {
string owner = 1 [ (gogoproto.moretags) = "yaml:\"owner\"" ];
}

message MsgBeginUnlockingAll {
option (amino.name) = "osmosis/lockup/begin-unlock-tokens";
option (cosmos.msg.v1.signer) = "owner";
Expand Down Expand Up @@ -119,4 +132,4 @@ message MsgSetRewardReceiverAddress {
string reward_receiver = 3
[ (gogoproto.moretags) = "yaml:\"reward_receiver\"" ];
}
message MsgSetRewardReceiverAddressResponse { bool success = 1; }
message MsgSetRewardReceiverAddressResponse { bool success = 1; }
11 changes: 10 additions & 1 deletion proto/osmosis/protorev/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,13 @@ message MsgSetBaseDenoms {
}

// MsgSetBaseDenomsResponse defines the Msg/SetBaseDenoms response type.
message MsgSetBaseDenomsResponse {}
// This is not used anymore, but must be retained in the file to allow indexers
// to index blocks since genesis
message MsgSetBaseDenomsResponse {}
// MsgSetPoolWeights defines the Msg/SetPoolWeights request type.
message MsgSetPoolWeights {
// admin is the account that is authorized to set the pool weights.
string admin = 1;
// pool_weights is the list of pool weights to set.
PoolWeights pool_weights = 2;
}