这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@chesoft
Copy link
Contributor

@chesoft chesoft commented Nov 20, 2023

Before submitting this PR, please make sure:

  • [x ] Your code builds clean without any errors or warnings
  • [x ] You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
Adds Osmosis (with LP) support as a chain, plus some updates to Cosmos chain.

Cosmos amm.routes.ts models don't match up well with the rest due to inherent differences in their data. This has been handled by allowing certain endpoints to receive Cosmos-specific models switched by chain, eg. AddLiquidityRequest | CosmosAddLiquidityRequest.

Tests performed by the developer:
Jest tests added for all Osmosis functions. Very little patch use, instead a testnet wallet is instantiated and trades/liquidity actions are performed with it.
yarn test:cov is ~80% for Osmosis, improved for Cosmos.

Tips for QA testing:
THIS LINE MUST to be added to HBOT client native_tokens[]
"osmosis": "OSMO",
in hummingbot/core/utils/gateway_config_utils.py

Submitting separate PR for that file as well.

@rapcmia
Copy link
Contributor

rapcmia commented Nov 20, 2023

Hi @chasevoorhees good day,
For adding new connector:

@nkhrs
Copy link
Contributor

nkhrs commented Nov 20, 2023

@chesoft chesoft closed this Nov 22, 2023
@chesoft
Copy link
Contributor Author

chesoft commented Nov 22, 2023

Submitted a new PR on the dev branch
#237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants