-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6027 from hummingbot/staging
sync / staging -> master for Hummingbot version 1.12.0
- Loading branch information
Showing
319 changed files
with
7,577 additions
and
31,264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
paths: | ||
/cosmos: | ||
get: | ||
tags: | ||
- 'cosmos' | ||
summary: 'View the Cosmos network and RPC URL that gateway is configured to use' | ||
description: 'The user can change this by editing src/chains/cosmos/cosmos.config.ts' | ||
operationId: 'root' | ||
produces: | ||
- 'application/json' | ||
responses: | ||
'200': | ||
description: 'Cosmos config' | ||
schema: | ||
$ref: '#/definitions/CosmosConfigResponse' | ||
|
||
/cosmos/balances: | ||
post: | ||
tags: | ||
- 'cosmos' | ||
summary: 'Get the balances of a Cosmos wallet' | ||
operationId: 'balances' | ||
consumes: | ||
- 'application/json' | ||
produces: | ||
- 'application/json' | ||
parameters: | ||
- in: 'body' | ||
name: 'body' | ||
required: true | ||
schema: | ||
$ref: '#/definitions/CosmosBalanceRequest' | ||
responses: | ||
'200': | ||
schema: | ||
$ref: '#/definitions/BalancesResponse' | ||
|
||
/cosmos/poll: | ||
post: | ||
tags: | ||
- 'cosmos' | ||
summary: 'Poll the status of a Cosmos transaction' | ||
operationId: 'poll' | ||
consumes: | ||
- 'application/json' | ||
produces: | ||
- 'application/json' | ||
parameters: | ||
- in: 'body' | ||
name: 'body' | ||
required: true | ||
schema: | ||
$ref: '#/definitions/CosmosPollRequest' | ||
responses: | ||
'200': | ||
schema: | ||
$ref: '#/definitions/CosmosPollResponse' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Cosmos } from './cosmos'; | ||
import { NextFunction, Request, Response } from 'express'; | ||
import { CosmosConfig } from './cosmos.config'; | ||
|
||
export const verifyCosmosIsAvailable = async ( | ||
_req: Request, | ||
_res: Response, | ||
next: NextFunction | ||
) => { | ||
const cosmos = Cosmos.getInstance(CosmosConfig.config.network.name); | ||
if (!cosmos.ready()) { | ||
await cosmos.init(); | ||
} | ||
return next(); | ||
}; |
Oops, something went wrong.