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 CalcJoinPoolShares and CalcExitPoolCoinsFromShares pool queries to Stargate whitelist #3217

Merged
merged 91 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
dd42b9e
TotalDelegationByValidatorForAsset query + tests
Sep 28, 2022
247b17d
TotalDelegationByValidatorForAsset + tests
Sep 28, 2022
615f816
Merge branch 'osmosis-labs:main' into main
pysel Sep 28, 2022
f8eacb2
TotalDelegationByValidatorForAsset + test
Sep 28, 2022
187eef1
Merge branch 'osmosis-labs:main' into main
pysel Sep 28, 2022
d55d7aa
Merge branch 'osmosis-labs:main' into main
pysel Oct 2, 2022
08583e8
names changed
Oct 3, 2022
0967120
Merge branch 'osmosis-labs:main' into main
pysel Oct 3, 2022
22dc2a9
Merge branch 'osmosis-labs:main' into main
pysel Oct 4, 2022
4494ccc
save
Oct 4, 2022
35619b2
TotalDelegationByValidatorForDenom query
Oct 4, 2022
e878a7e
TotalDelegationByValidatorForDenom
Oct 4, 2022
0b200e8
Merge branch 'osmosis-labs:main' into main
pysel Oct 6, 2022
5408389
JoinSwapExactAmountIn query
Oct 10, 2022
05c9085
ExitSwapShareAmountIn query
Oct 10, 2022
ccb22ed
JoinSwapExactAmountIn, ExitSwapShareAmountIn queries
Oct 10, 2022
1c1d967
JoinSwapExactAmountIn, ExitSwapShareAmountIn queries
Oct 10, 2022
61cca1e
JoinSwapExactAmountIn, ExitSwapShareAmountIn queries
Oct 10, 2022
6b2f1b9
JoinSwapExactAmountIn, ExitSwapShareAmountIn queries
Oct 10, 2022
de6441e
JoinSwapExactAmountIn, ExitSwapShareAmountIn queries
Oct 10, 2022
629733e
JoinSwapExactAmountIn, ExitSwapShareAmountIn queries
Oct 10, 2022
18d6466
Merge branch 'osmosis-labs:main' into issue2956
pysel Oct 12, 2022
a74afda
save
Oct 14, 2022
5f1d503
test: finish CalcJoinPoolShares query test
georgemc98 Oct 14, 2022
fe84dd6
Merge branch 'osmosis-labs:main' into issue2956
pysel Oct 15, 2022
1765435
tests for CalcExitPoolCoinsFromShares
Oct 15, 2022
d8473b5
tests for CalcExitPoolCoinsFromShares
Oct 15, 2022
c65a19f
save
Oct 17, 2022
19b7288
Merge branch 'osmosis-labs:main' into main
pysel Oct 17, 2022
b6516be
test: add additional exit coin tests
georgemc98 Oct 18, 2022
6f62edc
Merge branch 'osmosis-labs:main' into main
pysel Oct 18, 2022
7826254
docs rpc TotalDelegationByValidatorForDenom
Oct 19, 2022
7c11444
Merge branch 'osmosis-labs:main' into main
pysel Oct 19, 2022
e15c399
TotalDelegationByValidatorForDenom clean
Oct 20, 2022
bf926cc
Merge branch 'osmosis-labs:main' into main
pysel Oct 21, 2022
d1bdefb
TotalDelegationByValidatorForDenom query
Oct 21, 2022
e452e6c
TotalDelegationByValidatorForDenom query
Oct 22, 2022
91aa276
TotalDelegationByValidatorForDenom query
Oct 22, 2022
8372e07
Merge branch 'osmosis-labs:main' into main
pysel Oct 22, 2022
dcf85fa
Merge branch 'osmosis-labs:main' into main
pysel Oct 24, 2022
6694646
Merge branch 'osmosis-labs:main' into main
pysel Oct 25, 2022
917e9af
Merge branch 'osmosis-labs:main' into main
pysel Oct 28, 2022
1e55dd7
Merge branch 'osmosis-labs:main' into main
georgemc98 Oct 31, 2022
a8d80e5
Merge branch 'main' into issue2956
georgemc98 Oct 31, 2022
736d9d0
query
Nov 1, 2022
a152e66
save
Nov 1, 2022
59c1cd7
Update x/gamm/keeper/grpc_query.go
p0mvn Nov 2, 2022
9725f41
Update x/gamm/keeper/grpc_query.go
p0mvn Nov 2, 2022
f4c65c8
Update x/gamm/keeper/grpc_query.go
p0mvn Nov 2, 2022
1520c06
Merge branch 'osmosis-labs:main' into issue2956
pysel Nov 2, 2022
aae9f0b
queries
Nov 2, 2022
34d4d4e
docs fix
Nov 2, 2022
1d46792
Merge branch 'osmosis-labs:main' into main
pysel Nov 2, 2022
66b78a6
feat: add two pool shares queries to stargate whitelist
georgemc98 Nov 2, 2022
56e29e6
chore: update changelog
georgemc98 Nov 2, 2022
a36da25
feat: generate proto files
georgemc98 Nov 2, 2022
6d8dc1b
Merge branch 'main' of https://github.com/RusAkh/osmosis-fork
georgemc98 Nov 3, 2022
12c6851
Merge branch 'main' into feat/stargate-pool-queries-whitelist
georgemc98 Nov 3, 2022
fcd67c2
chore: generate proto files
georgemc98 Nov 3, 2022
4bccd64
autocli copy from cosmos
Nov 6, 2022
952805b
Merge branch 'osmosis-labs:main' into main
pysel Nov 8, 2022
0b36043
reset
Nov 8, 2022
772a339
Merge branch 'osmosis-labs:main' into main
pysel Nov 9, 2022
3a412be
save
Nov 3, 2022
44d5e7e
SimJoinPoolNoSwap
Nov 4, 2022
d256d6a
docs
Nov 4, 2022
21507ac
JoinPoolNoSwap simulation
Nov 5, 2022
13ee4cc
Merge branch 'osmosis-labs:main' into main
pysel Nov 10, 2022
8c1842a
more fixes
Nov 10, 2022
b0a7e02
fix docs and name
Nov 10, 2022
d27f5f5
fix: change tokens_in type
georgemc98 Nov 10, 2022
1885ab3
test: fix TestCalcJoinPoolNoSwapShares test
georgemc98 Nov 10, 2022
92bb3e0
Merge branch 'osmosis-labs:main' into main
pysel Nov 11, 2022
c610ca0
feat: add new pool query to whitelist
georgemc98 Nov 11, 2022
9966b7e
Merge branch 'main' into feat/stargate-pool-queries-whitelist
georgemc98 Nov 11, 2022
2165705
feat: build query.pb.go file
georgemc98 Nov 11, 2022
4c4b9f0
name version >>
Nov 14, 2022
25f5f54
update action v
Nov 14, 2022
77e1fba
check variable
Nov 14, 2022
5f8bf75
action from personal fork
Nov 14, 2022
49499bd
remove tag
Nov 14, 2022
db6389c
Merge branch 'main' into feat/stargate-pool-queries-whitelist
georgemc98 Nov 14, 2022
1d986b2
Merge branch 'osmosis-labs:main' into main
georgemc98 Nov 14, 2022
ee74359
Merge branch 'main' into feat/stargate-pool-queries-whitelist
georgemc98 Nov 14, 2022
9bc80f2
Merge branch 'main' into feat/stargate-pool-queries-whitelist
p0mvn Nov 14, 2022
371a4d2
chore: remove whitespace
georgemc98 Nov 14, 2022
86f92c0
chore: workflow files
georgemc98 Nov 14, 2022
2654ea7
chore: fix docker.yml file
georgemc98 Nov 14, 2022
e55493a
chore: fix required_labels.yml
georgemc98 Nov 14, 2022
c02d0af
chore: remove space
georgemc98 Nov 14, 2022
2aa3637
Update CHANGELOG.md
p0mvn Nov 15, 2022
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* [#2788](https://github.com/osmosis-labs/osmosis/pull/2788) Add logarithm base 2 implementation.
* [#2739](https://github.com/osmosis-labs/osmosis/pull/2739),[#3356](https://github.com/osmosis-labs/osmosis/pull/3356) Add pool type query, and add it to stargate whitelist
* [#2956](https://github.com/osmosis-labs/osmosis/issues/2956) Add queries for calculating amount of shares/tokens you get by providing X tokens/shares when entering/exiting a pool
* [#3217](https://github.com/osmosis-labs/osmosis/pull/3217) Add `CalcJoinPoolShares`, `CalcExitPoolCoinsFromShares`, `CalcJoinPoolNoSwapShares` to the registered Stargate queries list.
* [#3313](https://github.com/osmosis-labs/osmosis/pull/3313) Upgrade to IBC v3.4.0, allowing for IBC transfers with metadata.
* [#3335](https://github.com/osmosis-labs/osmosis/pull/3335) Add v2 spot price queries
- The v1beta1 queries actually have base asset and quote asset reversed, so you were always getting 1/correct spot price. People fixed this by reordering the arguments.
Expand Down
3 changes: 3 additions & 0 deletions wasmbinding/stargate_whitelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ func init() {
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/TotalPoolLiquidity", &gammtypes.QueryTotalPoolLiquidityResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/TotalShares", &gammtypes.QueryTotalSharesResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/SpotPrice", &gammtypes.QuerySpotPriceResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/CalcJoinPoolShares", &gammtypes.QueryCalcJoinPoolSharesResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/CalcExitPoolCoinsFromShares", &gammtypes.QueryCalcExitPoolCoinsFromSharesResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/CalcJoinPoolNoSwapShares", &gammtypes.QueryCalcJoinPoolNoSwapSharesResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/PoolType", &gammtypes.QueryPoolTypeResponse{})
setWhitelistedQuery("/osmosis.gamm.v2.Query/SpotPrice", &gammv2types.QuerySpotPriceResponse{})

Expand Down