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/Osmosis Chain/Connector #237

Closed
Closed
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d2eda9c
Merged with dev branch. Need to handle broken osmo-math pkg still.
chasevoorhees Nov 21, 2023
b871ec7
Fix file perms.
chasevoorhees Nov 21, 2023
7a8d9ce
Fix file perms.
chasevoorhees Nov 21, 2023
27f6bd1
coded in swap calcs locally
chasevoorhees Nov 21, 2023
c727aa0
coded in swap calcs locally
chasevoorhees Nov 21, 2023
0395d9a
made it cosmosish again
chasevoorhees Nov 21, 2023
f61f9dc
remove cosmospriceresponse, merged into priceresponse
chasevoorhees Nov 21, 2023
27264b9
remove commented tests and jest-free debug file
chasevoorhees Nov 21, 2023
6b29392
fix schemas again
chasevoorhees Nov 21, 2023
29de6ac
add cosmos-specific ymls to swagger
chasevoorhees Nov 21, 2023
3fc3956
add cosmos-specific ymls to swagger
chasevoorhees Nov 21, 2023
a457fa2
cosmos definitions and routes
nkhrs Nov 21, 2023
802fd74
update swap fee logic
chasevoorhees Nov 22, 2023
6c31117
remove unused cosmos endpoints from swagger
chasevoorhees Nov 22, 2023
67cca44
managed to add swagger same-paths with unique models
chasevoorhees Nov 22, 2023
455fd64
balance swap swap back trade quantities for testwallet balance
chasevoorhees Nov 23, 2023
7bca960
updated base fee to use EIP1559 by default and osmosis config for it.…
chasevoorhees Nov 25, 2023
a5d7f8a
Merge pull request #238 from hummingbot/staging
rapcmia Nov 27, 2023
bff7843
Merge branch 'hummingbot:main' into development-merged
nkhrs Nov 27, 2023
082d093
Merge branch 'development' into development-merged
chasevoorhees Nov 28, 2023
3905409
Merge branch 'development' into development-merged
chasevoorhees Dec 3, 2023
70c18f5
fixed yarn.lock bad paste
chasevoorhees Dec 3, 2023
6b6a0ec
update axios import into jest
chasevoorhees Dec 7, 2023
0186916
fixed gateway balance and some more logic around IEP1559
chasevoorhees Dec 7, 2023
89b7337
updated tendermint client to 37 so all tests work on testnet again. s…
chasevoorhees Dec 9, 2023
3eaffb1
Merge branch 'development' into development-merged
chasevoorhees Dec 13, 2023
f771fb7
Merge pull request #261 from hummingbot/development
nikspz Dec 26, 2023
6923d45
Merge branch 'main' into staging
nikspz Dec 26, 2023
74a9158
Merge pull request #258 from hummingbot/staging
nikspz Dec 26, 2023
f07e9c6
changes WIP - models are finished for SWAGGER DOCS updates though - h…
chasevoorhees Jan 11, 2024
2748c09
add test CURLs and json requests for osmosis
nkhrs Jan 12, 2024
29ebf90
merge
chasevoorhees Jan 12, 2024
da50036
Merge branch 'hummingbot:main' into development-merged
chasevoorhees Jan 12, 2024
e958d25
Revert "Merge branch 'hummingbot:main' into development-merged"
chasevoorhees Jan 13, 2024
b0929ab
Update definitions.yml
nkhrs Jan 18, 2024
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
85 changes: 85 additions & 0 deletions docs/swagger/amm-liquidity-routes-cosmos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
paths:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please don't override the default docs for these endpoints. currently, the Swagger addition causes duplicate entries in local docs when users go to localhost:8080
Screen Shot 2023-12-12 at 5 38 31 PM

if you want to show users how to use cosmos-specific endpoints, I suggest doing so on the doc page for this in the https://github.com/hummingbot/hummingbot-site repo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @fengtality, we have a PR planned for the /hummingbot-site repo with pages for osmosis dex, osmosis chain, update to cosmos chain, and the change to index, as described in the contribution guidelines - just havent done the PR yet, its coming up.

/amm/liquidity/price/:
post:
tags:
- 'cosmos'
- 'amm/liquidity'
summary: 'Cosmos: Get the historical pool prices for a pair'
operationId: 'historical'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CosmosPoolPriceRequest'
responses:
'200':
schema:
$ref: '#/definitions/CosmosPoolPriceResponse'
/amm/liquidity/add/:
post:
tags:
- 'cosmos'
- 'amm/liquidity'
summary: 'Cosmos: Add liquidity to pool'
operationId: 'add'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CosmosAddLiquidityRequest'
responses:
'200':
schema:
$ref: '#/definitions/CosmosAddLiquidityResponse'
/amm/liquidity/remove/:
post:
tags:
- 'cosmos'
- 'amm/liquidity'
summary: 'Cosmos: Remove liquidity to pool'
operationId: 'remove'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CosmosRemoveLiquidityRequest'
responses:
'200':
schema:
$ref: '#/definitions/CosmosRemoveLiquidityResponse'
/amm/liquidity/position:
post:
tags:
- 'cosmos'
- 'amm/liquidity/'
summary: 'Cosmos: Get details about position'
operationId: 'position'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/CosmosPoolPositionsRequest'
responses:
'200':
schema:
$ref: '#/definitions/CosmosPoolPositionsResponse'
22 changes: 22 additions & 0 deletions docs/swagger/amm-routes-cosmos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
paths:
/amm/trade/:
post:
tags:
- 'amm'
- 'cosmos'
summary: 'Cosmos: Perform a trade on an AMM'
operationId: 'trade'
consumes:
- 'application/json'
produces:
- 'application/json'
parameters:
- in: 'body'
name: 'body'
required: true
schema:
$ref: '#/definitions/TradeRequest'
responses:
'200':
schema:
$ref: '#/definitions/CosmosTradeResponse'
Loading
Loading