Skip to content

Commit

Permalink
Add missing protobuf definitions (#8600)
Browse files Browse the repository at this point in the history
* Readd missing protobuf definitions

* Add Changelog

* Fix

* Refactor after review
  • Loading branch information
penso authored Sep 9, 2024
1 parent bfa80e3 commit ba5ecb1
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 2 deletions.
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

* [#8274](https://github.com/osmosis-labs/osmosis/pull/8274) SDK v50 and Comet v0.38 upgrade
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;
}

0 comments on commit ba5ecb1

Please sign in to comment.