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

Feat/accepts implements any #272

Merged
merged 105 commits into from
Dec 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
7fa8b0d
parse during traversal
pyramation Nov 27, 2022
4083f34
cleanup and types
pyramation Nov 27, 2022
1d2140b
imports example
pyramation Nov 28, 2022
f1e73b7
traverse context
pyramation Nov 28, 2022
152ea57
TraverseContext
pyramation Nov 28, 2022
87d10cf
isolated test
pyramation Nov 29, 2022
7f84747
move ctx methods
pyramation Nov 29, 2022
7111211
algo WIP
pyramation Nov 29, 2022
2ba4150
implements any test
pyramation Nov 29, 2022
9095378
traversal methods and properly process Symbols
pyramation Nov 29, 2022
f4d3641
symbols to import names and importAs
pyramation Nov 30, 2022
76c99d5
update options to keep compat
pyramation Nov 30, 2022
d7312ed
plugins for implements
pyramation Nov 30, 2022
d4cecc0
remove deprecated traversal methods for import names
pyramation Nov 30, 2022
ff6371f
traversal with proper symbols
pyramation Dec 10, 2022
f7a0ac2
use LogLevel
pyramation Dec 10, 2022
328eaeb
agg LCD
pyramation Dec 10, 2022
3f59ffe
update osmosis protos for tests
pyramation Dec 10, 2022
af9e872
sketch proper output
pyramation Dec 10, 2022
1fd34fd
add interface decoder
pyramation Dec 10, 2022
5c1e5aa
test
pyramation Dec 10, 2022
e8ea091
parser pools test
pyramation Dec 10, 2022
ec833de
store
pyramation Dec 10, 2022
749b41f
new proto snaps
pyramation Dec 10, 2022
3882197
typeUrl map utils
pyramation Dec 10, 2022
8cb1155
types
pyramation Dec 10, 2022
e28d290
export interface decoder
pyramation Dec 10, 2022
40a54bb
add aminoType
pyramation Dec 11, 2022
2ca2e16
add interface
pyramation Dec 11, 2022
6a25447
parser null coallescing
pyramation Dec 11, 2022
f55b0ce
parser tests
pyramation Dec 11, 2022
bf03f23
update proposal protos for testing
pyramation Dec 11, 2022
d4fb9bd
annotations
pyramation Dec 11, 2022
2a87a1b
to amino scaffold
pyramation Dec 11, 2022
eee249c
from amino scaffold
pyramation Dec 11, 2022
b93559c
from amino
pyramation Dec 11, 2022
dfe794b
types
pyramation Dec 11, 2022
b0a95bf
base types
pyramation Dec 11, 2022
26a3299
utils
pyramation Dec 11, 2022
34207ae
to amino
pyramation Dec 11, 2022
d9d3ab1
decoder/amino interfaces
pyramation Dec 11, 2022
456c347
null coallescing
pyramation Dec 11, 2022
ddce12f
guards and types
pyramation Dec 11, 2022
98ee3d4
log
pyramation Dec 11, 2022
7bea72c
cleaner code
pyramation Dec 11, 2022
997ed70
amino name message option
pyramation Dec 11, 2022
17e3130
fixture
pyramation Dec 11, 2022
9055994
aminoType name fixture
pyramation Dec 11, 2022
ad19647
parser utils for ref inclusion
pyramation Dec 11, 2022
579f40f
only render some react query
pyramation Dec 11, 2022
1795ab8
types
pyramation Dec 11, 2022
1608f5a
test options
pyramation Dec 11, 2022
05f5649
streamswap fixture
pyramation Dec 11, 2022
4e0053b
google protobuf Any AminoType
pyramation Dec 16, 2022
c4a3bf7
types
pyramation Dec 16, 2022
9b27d89
remove comments from SDKTypes
pyramation Dec 16, 2022
bd39d8f
amino type for Any messages
pyramation Dec 16, 2022
4b62f1b
to-amino using interfaces
pyramation Dec 16, 2022
8132603
move tests
pyramation Dec 16, 2022
47653d6
interfaces for from Amino
pyramation Dec 16, 2022
6020657
decoder using interfaces
pyramation Dec 16, 2022
d3bf9f8
types
pyramation Dec 16, 2022
5449dd1
types
pyramation Dec 16, 2022
ccdfbc7
tAs Any for proper typing
pyramation Dec 16, 2022
01d022b
orig Any test w/o options
pyramation Dec 16, 2022
6bd1d7b
test with Any decoder
pyramation Dec 16, 2022
2fb207b
fromAmino w tests
pyramation Dec 16, 2022
a9319bd
to amino util for to-amino interfaces
pyramation Dec 16, 2022
8633ccf
types
pyramation Dec 16, 2022
997ea98
fix interface decoder for nested loops
pyramation Dec 16, 2022
f7cb4e7
add option for $typeUrl for interfaces
pyramation Dec 16, 2022
f61c05e
new telescope options for interface decoders to have $typeUrl
pyramation Dec 16, 2022
00e58ad
fix test utils for store singleton issue
pyramation Dec 17, 2022
31d83ff
proto implements
pyramation Dec 17, 2022
04b6416
type predicates
pyramation Dec 17, 2022
a5cbaa4
encode() with TS as Any
pyramation Dec 17, 2022
be1a2d0
toAmino() with TS as Any
pyramation Dec 17, 2022
64af570
ast package types
pyramation Dec 17, 2022
0adb0f3
test rpc
pyramation Dec 17, 2022
95e510a
interfaces.enabled option
pyramation Dec 17, 2022
53c8353
pull out nested union type for any interfaces
pyramation Dec 17, 2022
47099fe
swap works
pyramation Dec 17, 2022
7070d86
telescope types
pyramation Dec 17, 2022
b6014e9
join test with new toAmino/fromAmino encoders
pyramation Dec 17, 2022
4a977de
snaps
pyramation Dec 17, 2022
de07296
snap
pyramation Dec 17, 2022
c2e2ae1
proper options
pyramation Dec 17, 2022
867328b
osmosis aminoType names
pyramation Dec 17, 2022
3c43ab6
test utils types
pyramation Dec 17, 2022
53ad2b5
test package (swap, join, lock, unlock)
pyramation Dec 17, 2022
add469c
test defaults
pyramation Dec 17, 2022
1293e6e
test cleanup
pyramation Dec 17, 2022
1611617
fixtures and yarn
pyramation Dec 17, 2022
9690b21
signAndBroadcast
pyramation Dec 17, 2022
9814c65
claiming test with new amino encoder
pyramation Dec 17, 2022
34b99ea
test staking
pyramation Dec 17, 2022
d3c696e
cleanup
pyramation Dec 17, 2022
3fa1841
cleanup types
pyramation Dec 17, 2022
3fa6c0e
RC versions ready
pyramation Dec 17, 2022
292a0b0
chore(release): publish
pyramation Dec 17, 2022
2199093
moved scopes
pyramation Dec 18, 2022
1f7ebd5
notes
pyramation Dec 18, 2022
086a55f
Revert "chore(release): publish"
pyramation Dec 18, 2022
04081a9
Revert "RC versions ready"
pyramation Dec 18, 2022
46fba0b
chore(release): publish
pyramation Dec 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions __fixtures__/chain1/cosmos/gov/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ service Msg {
message MsgSubmitProposal {
option (cosmos.msg.v1.signer) = "proposer";

repeated google.protobuf.Any messages = 1;
repeated google.protobuf.Any messages = 1 [(cosmos_proto.accepts_interface) = "ProposalContentI"];
repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [(gogoproto.nullable) = false];
string proposer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// metadata is any arbitrary metadata attached to the proposal.
Expand All @@ -53,7 +53,7 @@ message MsgExecLegacyContent {
option (cosmos.msg.v1.signer) = "authority";

// content is the proposal's content.
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"];
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "ProposalContentI"];
// authority must be the gov module address.
string authority = 2;
}
Expand Down
4 changes: 2 additions & 2 deletions __fixtures__/chain1/cosmos/gov/v1beta1/gov.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ message WeightedVoteOption {
// TextProposal defines a standard text proposal whose changes need to be
// manually updated in case of approval.
message TextProposal {
option (cosmos_proto.implements_interface) = "Content";
option (cosmos_proto.implements_interface) = "ProposalContentI";

option (gogoproto.equal) = true;

Expand All @@ -70,7 +70,7 @@ message Proposal {
option (gogoproto.equal) = true;

uint64 proposal_id = 1;
google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "Content"];
google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "ProposalContentI"];
ProposalStatus status = 3;
// final_tally_result is the final tally result of the proposal. When
// querying a proposal via gRPC, this field is not populated until the
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/chain1/cosmos/gov/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ message MsgSubmitProposal {
option (gogoproto.stringer) = false;
option (gogoproto.goproto_getters) = false;

google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"];
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "ProposalContentI"];
repeated cosmos.base.v1beta1.Coin initial_deposit = 2
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
string proposer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
Expand Down
2 changes: 2 additions & 0 deletions __fixtures__/chain1/evmos/incentives/v1/incentives.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ message GasMeter {
// RegisterIncentiveProposal is a gov Content type to register an incentive
message RegisterIncentiveProposal {
option (gogoproto.equal) = false;
option (cosmos_proto.implements_interface) = "ProposalContentI";

// title of the proposal
string title = 1;
// proposal description
Expand Down
15 changes: 9 additions & 6 deletions __fixtures__/chain1/ibc/core/client/v1/client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ syntax = "proto3";

package ibc.core.client.v1;

option go_package = "github.com/cosmos/ibc-go/v2/modules/core/02-client/types";
option go_package = "github.com/cosmos/ibc-go/v6/modules/core/02-client/types";

import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";
import "cosmos/upgrade/v1beta1/upgrade.proto";
import "cosmos_proto/cosmos.proto";

// IdentifiedClientState defines a client state with an additional client
// identifier field.
Expand All @@ -23,7 +24,7 @@ message ConsensusStateWithHeight {
// consensus state height
Height height = 1 [(gogoproto.nullable) = false];
// consensus state
google.protobuf.Any consensus_state = 2 [(gogoproto.moretags) = "yaml\"consensus_state\""];
google.protobuf.Any consensus_state = 2 [(gogoproto.moretags) = "yaml:\"consensus_state\""];
}

// ClientConsensusStates defines all the stored consensus states for a given
Expand All @@ -41,7 +42,8 @@ message ClientConsensusStates {
// handler may fail if the subject and the substitute do not match in client and
// chain parameters (with exception to latest height, frozen height, and chain-id).
message ClientUpdateProposal {
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos_proto.implements_interface) = "ProposalContentI";
// the title of the update proposal
string title = 1;
// the description of the proposal
Expand All @@ -56,9 +58,10 @@ message ClientUpdateProposal {
// UpgradeProposal is a gov Content type for initiating an IBC breaking
// upgrade.
message UpgradeProposal {
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
option (gogoproto.equal) = true;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
option (gogoproto.equal) = true;
option (cosmos_proto.implements_interface) = "ProposalContentI";

string title = 1;
string description = 2;
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/chain1/osmosis/epochs/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/osmosis-labs/osmosis/v12/x/epochs/types";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/epochs/types";

// EpochInfo is a struct that describes the data going into
// a timer defined by the x/epochs module.
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/chain1/osmosis/epochs/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "osmosis/epochs/genesis.proto";

option go_package = "github.com/osmosis-labs/osmosis/v12/x/epochs/types";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/epochs/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import "google/protobuf/timestamp.proto";
import "cosmos/auth/v1beta1/auth.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/osmosis-labs/osmosis/v12/x/gamm/pool-models/balancer";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/gamm/pool-models/balancer";

// Parameters for changing the weights in a balancer pool smoothly from
// a start weight and end weight over a period of time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package osmosis.gamm.poolmodels.balancer.v1beta1;
import "gogoproto/gogo.proto";
import "osmosis/gamm/pool-models/balancer/balancerPool.proto";

option go_package = "github.com/osmosis-labs/osmosis/v12/x/gamm/pool-models/balancer";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/gamm/pool-models/balancer";

service Msg {
rpc CreateBalancerPool(MsgCreateBalancerPool)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "google/protobuf/timestamp.proto";
import "cosmos/auth/v1beta1/auth.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/osmosis-labs/osmosis/v12/x/gamm/pool-models/stableswap";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/gamm/pool-models/stableswap";

// PoolParams defined the parameters that will be managed by the pool
// governance in the future. This params are not managed by the chain
Expand Down Expand Up @@ -63,10 +63,11 @@ message Pool {
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];

// for calculation amognst assets with different precisions
repeated uint64 scaling_factor = 7
[ (gogoproto.moretags) = "yaml:\"stableswap_scaling_factor\"" ];
// scaling_factor_governor is the address can adjust pool scaling factors
string scaling_factor_governor = 8
[ (gogoproto.moretags) = "yaml:\"scaling_factor_governor\"" ];
repeated uint64 scaling_factors = 7
[ (gogoproto.moretags) = "yaml:\"stableswap_scaling_factors\"" ];
// scaling_factor_controller is the address can adjust pool scaling factors
string scaling_factor_controller = 8
[ (gogoproto.moretags) = "yaml:\"scaling_factor_controller\"" ];
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto";
import "osmosis/gamm/pool-models/stableswap/stableswap_pool.proto";

option go_package = "github.com/osmosis-labs/osmosis/v12/x/gamm/pool-models/stableswap";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/gamm/pool-models/stableswap";

service Msg {
rpc CreateStableswapPool(MsgCreateStableswapPool)
Expand All @@ -30,6 +30,9 @@ message MsgCreateStableswapPool {

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

string scaling_factor_controller = 6
[ (gogoproto.moretags) = "yaml:\"scaling_factor_controller\"" ];
}

// Returns a poolID with custom poolName.
Expand Down
2 changes: 1 addition & 1 deletion __fixtures__/chain1/osmosis/gamm/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ message Params {
];
}

option go_package = "github.com/osmosis-labs/osmosis/v12/x/gamm/types";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/gamm/types";

// GenesisState defines the gamm module's genesis state.
message GenesisState {
Expand Down
104 changes: 102 additions & 2 deletions __fixtures__/chain1/osmosis/gamm/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "google/api/annotations.proto";
import "google/protobuf/any.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/osmosis-labs/osmosis/v12/x/gamm/types";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/gamm/types";

service Query {
rpc Pools(QueryPoolsRequest) returns (QueryPoolsResponse) {
Expand All @@ -26,6 +26,13 @@ service Query {
option (google.api.http).get = "/osmosis/gamm/v1beta1/total_liquidity";
}

// PoolsWithFilter allows you to query specific pools with requested
// parameters
rpc PoolsWithFilter(QueryPoolsWithFilterRequest)
returns (QueryPoolsWithFilterResponse) {
option (google.api.http).get = "/osmosis/gamm/v1beta1/filtered_pools";
}

// Per Pool gRPC Endpoints
rpc Pool(QueryPoolRequest) returns (QueryPoolResponse) {
option (google.api.http).get = "/osmosis/gamm/v1beta1/pools/{pool_id}";
Expand All @@ -38,6 +45,22 @@ service Query {
option (google.api.http).get = "/osmosis/gamm/v1beta1/pool_type/{pool_id}";
}

// Simulates joining pool without a swap. Returns the amount of shares you'd
// get and tokens needed to provide
rpc CalcJoinPoolNoSwapShares(QueryCalcJoinPoolNoSwapSharesRequest)
returns (QueryCalcJoinPoolNoSwapSharesResponse) {}

rpc CalcJoinPoolShares(QueryCalcJoinPoolSharesRequest)
returns (QueryCalcJoinPoolSharesResponse) {
option (google.api.http).get =
"/osmosis/gamm/v1beta1/pools/{pool_id}/join_swap_exact_in";
}
rpc CalcExitPoolCoinsFromShares(QueryCalcExitPoolCoinsFromSharesRequest)
returns (QueryCalcExitPoolCoinsFromSharesResponse) {
option (google.api.http).get =
"/osmosis/gamm/v1beta1/pools/{pool_id}/exit_swap_share_amount_in";
}

rpc PoolParams(QueryPoolParamsRequest) returns (QueryPoolParamsResponse) {
option (google.api.http).get =
"/osmosis/gamm/v1beta1/pools/{pool_id}/params";
Expand All @@ -57,6 +80,7 @@ service Query {
// SpotPrice defines a gRPC query handler that returns the spot price given
// a base denomination and a quote denomination.
rpc SpotPrice(QuerySpotPriceRequest) returns (QuerySpotPriceResponse) {
option deprecated = true;
option (google.api.http).get =
"/osmosis/gamm/v1beta1/pools/{pool_id}/prices";
}
Expand Down Expand Up @@ -110,6 +134,41 @@ message QueryPoolTypeResponse {
string pool_type = 1 [ (gogoproto.moretags) = "yaml:\"pool_type\"" ];
}

//=============================== CalcJoinPoolShares
message QueryCalcJoinPoolSharesRequest {
uint64 pool_id = 1 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ];
repeated cosmos.base.v1beta1.Coin tokens_in = 2 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.nullable) = false
];
}
message QueryCalcJoinPoolSharesResponse {
string share_out_amount = 1 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"share_out_amount\"",
(gogoproto.nullable) = false
];
repeated cosmos.base.v1beta1.Coin tokens_out = 2 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.nullable) = false
];
}

//=============================== CalcExitPoolCoinsFromShares
message QueryCalcExitPoolCoinsFromSharesRequest {
uint64 pool_id = 1;
string share_in_amount = 2 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
];
}
message QueryCalcExitPoolCoinsFromSharesResponse {
repeated cosmos.base.v1beta1.Coin tokens_out = 1 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.nullable) = false
];
}

//=============================== PoolParams
message QueryPoolParamsRequest {
uint64 pool_id = 1 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ];
Expand Down Expand Up @@ -139,10 +198,29 @@ message QueryTotalSharesResponse {
(gogoproto.nullable) = false
];
}

//=============================== CalcJoinPoolNoSwapShares
message QueryCalcJoinPoolNoSwapSharesRequest {
uint64 pool_id = 1 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ];
repeated cosmos.base.v1beta1.Coin tokens_in = 2 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.nullable) = false
];
}
message QueryCalcJoinPoolNoSwapSharesResponse {
repeated cosmos.base.v1beta1.Coin tokens_out = 1 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "yaml:\"tokens_out\"",
(gogoproto.nullable) = false
];
string shares_out = 2 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false
];
}
// QuerySpotPriceRequest defines the gRPC request structure for a SpotPrice
// query.
message QuerySpotPriceRequest {
option deprecated = true;
uint64 pool_id = 1 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ];
string base_asset_denom = 2
[ (gogoproto.moretags) = "yaml:\"base_asset_denom\"" ];
Expand All @@ -152,15 +230,36 @@ message QuerySpotPriceRequest {
reserved "withSwapFee";
}

//=============================== PoolsWithFilter

message QueryPoolsWithFilterRequest {
repeated cosmos.base.v1beta1.Coin min_liquidity = 1 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "yaml:\"min_liquidity\"",
(gogoproto.nullable) = false
];
string pool_type = 2;
cosmos.base.query.v1beta1.PageRequest pagination = 3;
}

message QueryPoolsWithFilterResponse {
repeated google.protobuf.Any pools = 1
[ (cosmos_proto.accepts_interface) = "PoolI" ];
// pagination defines the pagination in the response.
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

// QuerySpotPriceResponse defines the gRPC response structure for a SpotPrice
// query.
message QuerySpotPriceResponse {
option deprecated = true;
// String of the Dec. Ex) 10.203uatom
string spot_price = 1 [ (gogoproto.moretags) = "yaml:\"spot_price\"" ];
}

//=============================== EstimateSwapExactAmountIn
message QuerySwapExactAmountInRequest {
// TODO: CHANGE THIS TO RESERVED IN A PATCH RELEASE
string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ];
uint64 pool_id = 2 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ];
string token_in = 3 [ (gogoproto.moretags) = "yaml:\"token_in\"" ];
Expand All @@ -180,6 +279,7 @@ message QuerySwapExactAmountInResponse {

//=============================== EstimateSwapExactAmountOut
message QuerySwapExactAmountOutRequest {
// TODO: CHANGE THIS TO RESERVED IN A PATCH RELEASE
string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ];
uint64 pool_id = 2 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ];
repeated SwapAmountOutRoute routes = 3 [
Expand Down
3 changes: 2 additions & 1 deletion __fixtures__/chain1/osmosis/gamm/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package osmosis.gamm.v1beta1;
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";

option go_package = "github.com/osmosis-labs/osmosis/v12/x/gamm/types";
option go_package = "github.com/osmosis-labs/osmosis/v13/x/gamm/types";

service Msg {
rpc JoinPool(MsgJoinPool) returns (MsgJoinPoolResponse);
Expand All @@ -26,6 +26,7 @@ service Msg {
// ===================== MsgJoinPool
// This is really MsgJoinPoolNoSwap
message MsgJoinPool {

string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ];
uint64 pool_id = 2 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ];
string share_out_amount = 3 [
Expand Down
Loading