mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
82e2f26e14
* Add query methods * Add TotalDeposited rpc query * All accounts and all denoms query wip * Add query deposits * Remove IsDenomSupported strategy method This is not necessary and is already set in params allowed vaults * Add Vaults, TotalDeposited queries * Deposits query tests and fixes * proto lints * Add earn swagger docs * Add cli query cmds * Update init-new-chain.sh with usdx strategy and funds * Add denom url query path for vaults * Return a list of coins for each depositor instead of multiple deposit entries
245 lines
4.8 KiB
JSON
245 lines
4.8 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "Kava - Legacy REST and gRPC Gateway docs",
|
|
"description": "A REST interface for state queries",
|
|
"version": "1.0.0"
|
|
},
|
|
"externalDocs": {
|
|
"description": "GitHub",
|
|
"url": "https://github.com/Kava-Labs/kava"
|
|
},
|
|
"host": "api.data.kava.io",
|
|
"schemes": ["https"],
|
|
"apis": [
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/auction/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Auction"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Auction$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/bep3/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "BEP3"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "BEP3$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/cdp/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "CDP"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "CDP$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/committee/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Committee"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Committee$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/earn/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Earn"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Earn$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/hard/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Hard"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Hard$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/issuance/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Issuance"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Issuance$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/kavadist/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Kavadist"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Kavadist$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/pricefeed/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Pricefeed"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Pricefeed$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/swap/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Swap"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Swap$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./tmp-swagger-gen/kava/savings/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Savings"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Savings$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./client/docs/cosmos-swagger.yml",
|
|
"dereference": {
|
|
"circular": "ignore"
|
|
},
|
|
"tags": {
|
|
"rename": {
|
|
"Gaia REST": "KAVA Rest",
|
|
"Query": "Cosmos SDK"
|
|
}
|
|
},
|
|
"paths": {
|
|
"exclude": ["^/cosmos/authz/.*", "^/cosmos/feegrant/.*"]
|
|
}
|
|
},
|
|
{
|
|
"url": "./client/docs/ibc-go-swagger.yml",
|
|
"dereference": {
|
|
"circular": "ignore"
|
|
},
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "IBC"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Ibc$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./client/docs/legacy-swagger.yml",
|
|
"dereference": {
|
|
"circular": "ignore"
|
|
}
|
|
}
|
|
]
|
|
}
|