mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-29 09:45:18 +00:00
57a1a4b10d
* refactor param validation test cases to be shared by genesis and params tests * add additional test case for zero staking rewards in order to ensure no regressions in support for turning off rewards * add test case to ensure default params are valid -- prevent regression if defaults change to an invalid state during updates of validation or defaults * zero out parameters in migration -- this module will be used with existing chains and parameters should be set after migrations in each upgrade handler * update StakingRewardsPerSecond to an 18 decimal type in order to reduce error * add community grpc rest endpoints to swagger * Fix copy pasta query name to refer to correct Community module Co-authored-by: drklee3 <derrick@dlee.dev> * generate swagger changes from previous commit --------- Co-authored-by: drklee3 <derrick@dlee.dev>
306 lines
6.0 KiB
JSON
306 lines
6.0 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "Kava - 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": "./out/swagger/kava/auction/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Auction"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Auction$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/bep3/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "BEP3"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "BEP3$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/cdp/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "CDP"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "CDP$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/committee/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Committee"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Committee$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/earn/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Earn"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Earn$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/hard/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Hard"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Hard$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/incentive/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Incentive"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Incentive$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/issuance/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Issuance"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Issuance$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/kavadist/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Kavadist"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Kavadist$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/liquid/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Liquid"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Liquid$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/pricefeed/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Pricefeed"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Pricefeed$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/swap/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Swap"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Swap$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/savings/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Savings"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Savings$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./out/swagger/kava/community/v1beta1/query.swagger.json",
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "Community"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Community$1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./client/docs/cosmos-swagger.yml",
|
|
"dereference": {
|
|
"circular": "ignore"
|
|
},
|
|
"tags": {
|
|
"rename": {
|
|
"Gaia REST": "KAVA Rest",
|
|
"Query": "Cosmos SDK"
|
|
}
|
|
},
|
|
"paths": {
|
|
"exclude": [
|
|
"^/cosmos/feegrant/.*",
|
|
"^/cosmos/nft/.*",
|
|
"^/cosmos/group/.*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./client/docs/ibc-go-swagger.yml",
|
|
"dereference": {
|
|
"circular": "ignore"
|
|
},
|
|
"tags": {
|
|
"rename": {
|
|
"Query": "IBC"
|
|
}
|
|
},
|
|
"operationIds": {
|
|
"rename": [
|
|
{
|
|
"type": "regex",
|
|
"from": "(.*)",
|
|
"to": "Ibc$1"
|
|
}
|
|
]
|
|
},
|
|
"paths": {
|
|
"exclude": [
|
|
"^/ibc/apps/interchain_accounts/.*",
|
|
"^/ibc/apps/fee/.*"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "./client/docs/legacy-swagger.yml",
|
|
"dereference": {
|
|
"circular": "ignore"
|
|
}
|
|
}
|
|
]
|
|
}
|