diff --git a/app/app.go b/app/app.go index ae9a9d77e2c..93f478a9228 100644 --- a/app/app.go +++ b/app/app.go @@ -11,6 +11,8 @@ import ( "github.com/gorilla/mux" "github.com/rakyll/statik/fs" + _ "github.com/c-osmosis/osmosis/client/docs/statik" + abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" tmos "github.com/tendermint/tendermint/libs/os" diff --git a/client/docs/config.json b/client/docs/config.json index 4380e668f48..8dc6649e7bc 100644 --- a/client/docs/config.json +++ b/client/docs/config.json @@ -13,6 +13,88 @@ "Params": "GAMMParams" } } + }, + { + "url": "../../tmp-swagger-gen/cosmos/auth/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "AuthParams" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/bank/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "BankParams" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/distribution/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "DistributionParams" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/evidence/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "EvidenceParams" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/gov/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "GovParams" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/mint/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "MintParams" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/params/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "Params" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/slashing/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "SlashingParams" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/staking/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "StakingParams", + "Pool": "StakingPool", + "DelegatorValidators": "StakingDelegatorValidators" + } + } + }, + { + "url": "../../tmp-swagger-gen/cosmos/upgrade/v1beta1/query.swagger.json", + "operationIds": { + "rename": { + "Params": "UpgradeParams" + } + } } ] } diff --git a/client/docs/static/openapi/index.html b/client/docs/static/openapi/index.html index acafcfc43f0..2f5c3ed9293 100644 --- a/client/docs/static/openapi/index.html +++ b/client/docs/static/openapi/index.html @@ -302,6 +302,9 @@ data-styled.g73[id="sc-TtZHJ"]{content:"cRaJfP,"}/*!sc*/ .bfDxeF{color:#d41f1c;font-size:0.9em;font-weight:normal;margin-left:20px;line-height:1;}/*!sc*/ data-styled.g74[id="sc-jHNhIU"]{content:"bfDxeF,"}/*!sc*/ +.dYpOEw{border-radius:2px;background-color:rgba(51,51,51,0.05);color:rgba(51,51,51,0.9);padding:0 5px;border:1px solid rgba(51,51,51,0.1);font-family:Courier,monospace;}/*!sc*/ +.sc-eKYRpg + .sc-eKYRpg{margin-left:0;}/*!sc*/ +data-styled.g78[id="sc-eKYRpg"]{content:"dYpOEw,"}/*!sc*/ .bCtQK{margin-top:0;margin-bottom:0.5em;}/*!sc*/ data-styled.g86[id="sc-fuIRbl"]{content:"bCtQK,"}/*!sc*/ .htVLwM{border:1px solid #32329f;color:#32329f;font-weight:normal;margin-left:0.5em;padding:4px 8px 4px;display:inline-block;-webkit-text-decoration:none;text-decoration:none;cursor:pointer;}/*!sc*/ @@ -399,7 +402,13 @@
- +address required | string address is the address to query balances for. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
validator_address required | string validator_address defines the validator address to query for. + |
starting_height | string <uint64> starting_height defines the optional starting height to query the slashes. + |
ending_height | string <uint64> starting_height defines the optional ending height to query the slashes. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
proposal_status | string Default: "PROPOSAL_STATUS_UNSPECIFIED" Enum: "PROPOSAL_STATUS_UNSPECIFIED" "PROPOSAL_STATUS_DEPOSIT_PERIOD" "PROPOSAL_STATUS_VOTING_PERIOD" "PROPOSAL_STATUS_PASSED" "PROPOSAL_STATUS_REJECTED" "PROPOSAL_STATUS_FAILED" proposal_status defines the status of the proposals. +
|
voter | string voter defines the voter address for the proposals. + |
depositor | string depositor defines the deposit addresses from the proposals. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
proposal_id required | string <uint64> proposal_id defines the unique id of the proposal. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
proposal_id required | string <uint64> proposal_id defines the unique id of the proposal. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
delegator_addr required | string delegator_addr defines the delegator address to query for. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
delegator_addr required | string delegator_addr defines the delegator address to query for. + |
src_validator_addr | string src_validator_addr defines the validator address to redelegate from. + |
dst_validator_addr | string dst_validator_addr defines the validator address to redelegate to. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
delegator_addr required | string delegator_addr defines the delegator address to query for. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
delegator_addr required | string delegator_addr defines the delegator address to query for. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
status | string status enables to query for validators matching a given status. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
validator_addr required | string validator_addr defines the validator address to query for. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |
validator_addr required | string validator_addr defines the validator address to query for. + |
pagination.key | string <byte> key is a value returned in PageResponse.next_key to begin +querying the next page most efficiently. Only one of offset or key +should be set. + |
pagination.offset | string <uint64> offset is a numeric offset that can be used when key is unavailable. +It is less efficient than using key. Only one of offset or key should +be set. + |
pagination.limit | string <uint64> limit is the total number of results to be returned in the result page. +If left empty it will default to a value to be set by each app. + |
pagination.count_total | boolean count_total is set to true to indicate that the result set should include +a count of the total number of items available for pagination in UIs. +count_total is only respected when offset is used. It is ignored when key +is set. + |