osmosis-labs / isotonic

Smart Contracts for the Lendex Protocol
MIT License
1 stars 0 forks source link

OSMOSIS bindings #83

Closed uint closed 2 years ago

uint commented 2 years ago

In order to integrate with OSMOSIS, we need to set up some sort of API bindings like we do for Tgrade.

We should probably reach out to OSMOSIS for API docs or some help there. Please: reach out to Dev Ojha on the "osmosis-confio-partnering"

If all else fails, we can try and figure it out from their client code: like the web UI or the CLI.

We don't need to have all the calls covered straight away. Swapping tokens would be a good start for liquidation.

uint commented 2 years ago

Promising README: https://github.com/osmosis-labs/osmosis/tree/main/x/gamm

uint commented 2 years ago

This is more complicated than I thought. As far as I can tell, this is blocked until Osmosis implements some sort of custom x/wasm module that has handlers for these bindings. This is what it looks like in TGrade:

https://github.com/confio/tgrade/blob/19de6f4a9c5242c1a4d296d788d689df92368184/x/twasm/contract/incoming_msgs.go

BirgitPohl commented 2 years ago

Blocked because: We don't yet have cosmos integration point to osmosis blockchain. Help from @ethanfrey We would like to know the status. Any updates?

ethanfrey commented 2 years ago

Yup, This will be done in another repo, current isotonic team (team Poland) doesn't need to worry about this, but consume it

ks-victor commented 2 years ago

Done in the repo that Ethan provided (See https://github.com/confio/osmosis-bindings/)